@rtc-agent/component 0.1.1-rc.3 → 0.1.2-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var cN=Object.defineProperty;var uN=(Ws,Ss,Oa)=>Ss in Ws?cN(Ws,Ss,{enumerable:!0,configurable:!0,writable:!0,value:Oa}):Ws[Ss]=Oa;var Yt=(Ws,Ss,Oa)=>uN(Ws,typeof Ss!="symbol"?Ss+"":Ss,Oa);(function(){"use strict";/**
1
+ var cN=Object.defineProperty;var uN=(Ws,Ss,Oa)=>Ss in Ws?cN(Ws,Ss,{enumerable:!0,configurable:!0,writable:!0,value:Oa}):Ws[Ss]=Oa;var Ht=(Ws,Ss,Oa)=>uN(Ws,typeof Ss!="symbol"?Ss+"":Ss,Oa);(function(){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
@@ -8,23 +8,23 @@ var cN=Object.defineProperty;var uN=(Ws,Ss,Oa)=>Ss in Ws?cN(Ws,Ss,{enumerable:!0
8
8
  `):r=e;try{yield this._writer.write(r)}catch{this.close()}})}}const WT=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class GT{constructor(e){this.a=e,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){const e=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw new RangeError("out of bounds");return e}getChar(){return String.fromCharCode(this.getByte())}getInt(){let e=0,r;for(;this.haveBytes()&&(r=WT[127&this.getByte()])>=0;)e=(e<<6)+r;return this.pos--,e>>>0}}class zT{constructor(){this.a=[]}toByteArray(e){return Array.isArray(e)?this.a:new Uint8Array(this.a)}putArray(e,r,n){for(let s=r;s<n;s++)this.a.push(e[s])}}function HT(t){let e=0,r=0,n=0,s=0,o=0,a=t.length;for(;a>=16;)e=e+t[o+0]|0,r=r+t[o+1]|0,n=n+t[o+2]|0,s=s+t[o+3]|0,e=e+t[o+4]|0,r=r+t[o+5]|0,n=n+t[o+6]|0,s=s+t[o+7]|0,e=e+t[o+8]|0,r=r+t[o+9]|0,n=n+t[o+10]|0,s=s+t[o+11]|0,e=e+t[o+12]|0,r=r+t[o+13]|0,n=n+t[o+14]|0,s=s+t[o+15]|0,o+=16,a-=16;for(;a>=4;)e=e+t[o+0]|0,r=r+t[o+1]|0,n=n+t[o+2]|0,s=s+t[o+3]|0,o+=4,a-=4;switch(s=((s+(n<<8)|0)+(r<<16)|0)+(e<<24)|0,a){case 3:s=s+(t[o+2]<<8)|0;case 2:s=s+(t[o+1]<<16)|0;case 1:s=s+(t[o+0]<<24)|0}return s>>>0}function JT(t,e){let r=0;const n=new GT(e),s=t.length,o=e.length,a=n.getInt();if(n.getChar()!==`
9
9
  `)throw new Error("size integer not terminated by '\\n'");const u=new zT;for(;n.haveBytes();){const p=n.getInt();let y;switch(n.getChar()){case"@":if(y=n.getInt(),n.haveBytes()&&n.getChar()!==",")throw new Error("copy command not terminated by ','");if(r+=p,r>a)throw new Error("copy exceeds output file size");if(y+p>s)throw new Error("copy extends past end of input");u.putArray(t,y,y+p);break;case":":if(r+=p,r>a)throw new Error("insert command gives an output larger than predicted");if(p>o)throw new Error("insert count exceeds size of delta");u.putArray(n.a,n.pos,n.pos+p),n.pos+=p;break;case";":{const h=u.toByteArray(t);if(p!==HT(h))throw new Error("bad checksum");if(r!==a)throw new Error("generated size does not match predicted size");return h}default:throw new Error("unknown delta operator")}}throw new Error("unterminated delta")}class Dy{name(){return"json"}encodeCommands(e){return e.map(r=>JSON.stringify(r)).join(`
10
10
  `)}decodeReplies(e){return e.trim().split(`
11
- `).map(r=>JSON.parse(r))}applyDeltaIfNeeded(e,r){let n,s,o,a;if(e.delta){a=!0;const u=new TextEncoder().encode(e.data),p=JT(r,u);n=JSON.parse(new TextDecoder().decode(p)),s=p,o=u.length}else a=!1,n=JSON.parse(e.data),s=new TextEncoder().encode(e.data),o=s.length;return{newData:n,newPrevValue:s,isDelta:a,wireBytes:o,fullBytes:s.length}}}const YT={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class Es extends Error{constructor(e){super(e),this.name=this.constructor.name}}class Pl extends Ny{constructor(e,r){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=Br.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new Dy,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},YT),r),this._configure(),this._debugEnabled?(this.on("state",n=>{this._debug("client state",n.oldState,"->",n.newState)}),this.on("error",n=>{this._debug("client error",n)})):this.on("error",function(){Function.prototype()})}newSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new FT(this,e,r);return this._subs[e]=n,n}newMapSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new _f(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,tagsFilter:r==null?void 0:r.tagsFilter,map:!0,mapPageSize:r==null?void 0:r.pageSize,mapUnrecoverableStrategy:r==null?void 0:r.unrecoverableStrategy});return this._subs[e]=n,n}newMapClientsSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new _f(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,tagsFilter:r==null?void 0:r.tagsFilter,map:!0,mapPresenceType:2,mapPageSize:r==null?void 0:r.pageSize,mapUnrecoverableStrategy:r==null?void 0:r.unrecoverableStrategy});return this._subs[e]=n,n}newMapUsersSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new _f(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,tagsFilter:r==null?void 0:r.tagsFilter,map:!0,mapPresenceType:3,mapPageSize:r==null?void 0:r.pageSize,mapUnrecoverableStrategy:r==null?void 0:r.unrecoverableStrategy});return this._subs[e]=n,n}newSharedPollSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new qT(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,sharedPoll:!0,sharedPollGetSignature:r==null?void 0:r.getSignature});return this._subs[e]=n,n}getSubscription(e){return this._getSub(e)}getMapSubscription(e){return this._getSub(e)}getSharedPollSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==ln.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}removeMapSubscription(e){this.removeSubscription(e)}removeSharedPollSubscription(e){this.removeSubscription(e)}subscriptions(){return this._subs}mapSubscriptions(){const e={};for(const[r,n]of Object.entries(this._subs))n.type==="map"&&(e[r]=n);return e}sharedPollSubscriptions(){const e={};for(const[r,n]of Object.entries(this._subs))n.type==="shared_poll"&&(e[r]=n);return e}ready(e){return Dr(this,void 0,void 0,function*(){switch(this.state){case Br.Disconnected:throw{code:ur.clientDisconnected,message:"client disconnected"};case Br.Connected:return;default:return new Promise((r,n)=>{const s={resolve:r,reject:n};e&&(s.timeout=setTimeout(()=>{n({code:ur.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=s})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(ka.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}setData(e){this._data=e}setHeaders(e){this._config.headers=e}send(e){return Dr(this,void 0,void 0,function*(){const r={send:{data:e}};if(yield this._methodCall(),!this._transportSendCommands([r]))throw this._createErrorObject(ur.transportWriteError,"transport write error")})}rpc(e,r){return Dr(this,void 0,void 0,function*(){const n={rpc:{method:e,data:r}};return yield this._methodCall(),{data:(yield this._callPromise(n,o=>o.rpc)).data}})}publish(e,r){return Dr(this,void 0,void 0,function*(){const n={publish:{channel:e,data:r}};return yield this._methodCall(),yield this._callPromise(n,()=>({})),{}})}mapPublish(e,r,n){return Dr(this,void 0,void 0,function*(){const s={publish:{channel:e,type:1,key:r,data:n}};return yield this._methodCall(),yield this._callPromise(s,()=>({})),{}})}mapRemove(e,r){return Dr(this,void 0,void 0,function*(){const n={publish:{channel:e,type:1,key:r,removed:!0}};return yield this._methodCall(),yield this._callPromise(n,()=>({})),{}})}history(e,r){return Dr(this,void 0,void 0,function*(){const n={history:this._getHistoryRequest(e,r)};yield this._methodCall();const s=yield this._callPromise(n,a=>a.history),o=[];if(s.publications)for(let a=0;a<s.publications.length;a++)o.push(this._getPublicationContext(e,s.publications[a]));return{publications:o,epoch:s.epoch||"",offset:s.offset||0}})}presence(e){return Dr(this,void 0,void 0,function*(){const r={presence:{channel:e}};yield this._methodCall();const s=(yield this._callPromise(r,o=>o.presence)).presence;for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)){const a=s[o],u=a.conn_info,p=a.chan_info;u&&(a.connInfo=u),p&&(a.chanInfo=p)}return{clients:s}})}presenceStats(e){return Dr(this,void 0,void 0,function*(){const r={presence_stats:{channel:e}};yield this._methodCall();const n=yield this._callPromise(r,s=>s.presence_stats);return{numUsers:n.num_users,numClients:n.num_clients}})}startBatching(){this._batching=!0}stopBatching(){const e=this;Promise.resolve().then(function(){Promise.resolve().then(function(){e._batching=!1,e._flush()})})}_debug(...e){this._debugEnabled&&RT("debug",e)}_codecName(){return this._codec.name()}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(this._config.token!==null&&(this._token=this._config.token),this._config.data!==null&&(this._data=this._config.data),this._codec=new Dy,this._formatOverride(),(this._config.debug===!0||LT("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),typeof this._endpoint!="string")if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(const e in this._transports)if(this._transports.hasOwnProperty(e)){const r=this._transports[e];if(!r.endpoint||!r.transport)throw new Error("malformed transport configuration");const n=r.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n)<0)throw new Error("unsupported transport name: "+n)}}else throw new Error("unsupported url configuration type: only string or array of objects are supported")}_setState(e){if(this.state!==e){this._reconnecting=!1;const r=this.state;return this.state=e,this.emit("state",{newState:e,oldState:r}),!0}return!1}_isDisconnected(){return this.state===Br.Disconnected}_isConnecting(){return this.state===Br.Connecting}_isConnected(){return this.state===Br.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;this._config.networkEventTarget!==null?e=this._config.networkEventTarget:typeof globalThis.addEventListener<"u"&&(e=globalThis),e&&(e.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===Br.Connected||this.state===Br.Connecting)&&(this._disconnect(Ts.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),e.addEventListener("online",()=>{this._debug("online event triggered"),this.state===Br.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const e=ra(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(const e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){const r=this._callbacks[e];clearTimeout(r.timeout);const n=r.errback;if(!n)continue;n({error:this._createErrorObject(ur.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const e in this._subs){if(!this._subs.hasOwnProperty(e))continue;const r=this._subs[e];r.state===ln.Subscribed&&r._setSubscribing(xl.transportClosed,"transport closed")}for(const e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(const r of e){const n=r.id;if(!(n in this._callbacks))continue;const s=this._callbacks[n];clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n];const o=s.errback;o({error:this._createErrorObject(ur.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(r){return this._debug("error writing commands",r),this._handleWriteError(e),!1}return!0}_advanceTransportIndex(){this._currentTransportIndex++,this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0)}_initializeTransport(){let e;this._config.websocket!==null?e=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(e=globalThis.WebSocket);let r=null;this._config.sockjs!==null?r=this._config.sockjs:typeof globalThis.SockJS<"u"&&(r=globalThis.SockJS);let n=null;this._config.eventsource!==null?n=this._config.eventsource:typeof globalThis.EventSource<"u"&&(n=globalThis.EventSource);let s=null;this._config.fetch!==null?s=this._config.fetch:typeof globalThis.fetch<"u"&&(s=globalThis.fetch);let o=null;if(this._config.readableStream!==null?o=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(o=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let S=0;for(;;){if(S>=this._transports.length)throw new Error("no supported transport found");const O=this._transports[this._currentTransportIndex],_=O.transport,w=O.endpoint;if(_==="websocket"){if(this._debug("trying websocket transport"),this._transport=new ky(w,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new KT(w,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new UT(w,{fetch:s,readableStream:o,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="sse"){if(this._debug("trying sse transport"),this._transport=new VT(w,{eventsource:n,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="sockjs"){if(this._debug("trying sockjs"),this._transport=new $T(w,{sockjs:r,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._advanceTransportIndex(),S++;continue}}else throw new Error("unknown transport "+_);break}}else{if(BT(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new ky(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}const a=this,u=this._transport,p=this._nextTransportId();a._debug("id of transport",p);let y=!1;const h=[];if(this._transport.emulation()){const S=a._sendConnect(!0);h.push(S)}this._setNetworkEvents();const g=this._codec.encodeCommands(h);this._transportClosed=!1;let b;b=setTimeout(function(){u.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(b&&(clearTimeout(b),b=null),a._transportId!=p){a._debug("open callback from non-actual transport"),u.close();return}y=!0,a._debug(u.subName(),"transport open"),!u.emulation()&&(a._transportIsOpen=!0,a._transportWasOpen=!0,a.startBatching(),a._sendConnect(!1),a._sendSubscribeCommands(),a.stopBatching(),a.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(S){if(a._transportId!=p){a._debug("error callback from non-actual transport");return}a._debug("transport level error",S)},onClose:function(S){if(b&&(clearTimeout(b),b=null),a._transportId!=p){a._debug("close callback from non-actual transport");return}a._debug(u.subName(),"transport closed"),a._transportClosed=!0,a._transportIsOpen=!1;let O="connection closed",_=!0,w=0;if(S&&"code"in S&&S.code&&(w=S.code),S&&S.reason)try{const C=JSON.parse(S.reason);O=C.reason,_=C.reconnect}catch{O=S.reason,(w>=3500&&w<4e3||w>=4500&&w<5e3)&&(_=!1)}w<3e3?(w===1009?(w=ka.messageSizeLimit,O="message size limit exceeded",_=!1):(w=Ts.transportClosed,O="transport closed"),a._emulation&&!a._transportWasOpen&&a._advanceTransportIndex()):a._transportWasOpen=!0,a._isConnecting()&&!y&&a.emit("error",{type:"transport",error:{code:ur.transportClosed,message:"transport closed"},transport:u.name()}),a._reconnecting=!1,a._disconnect(w,O,_)},onMessage:function(S){a._dataReceived(S)}},g),a.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){const r=this._constructConnectCommand(),n=this;return this._call(r,e).then(s=>{const o=s.reply.connect;n._connectResponse(o),s.next&&s.next()},s=>{n._connectError(s.error),s.next&&s.next()}),r}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;const e=this._token==="";if(!(this._refreshRequired||e&&this._config.getToken!==null)){this._config.getData?this._config.getData().then(s=>{this._isConnecting()&&(this._data=s,this._initializeTransport())}).catch(s=>this._handleGetDataError(s)):this._initializeTransport();return}const n=this;this._getToken().then(function(s){if(n._isConnecting()){if(s==null||s==null){n._failUnauthorized();return}n._token=s,n._debug("connection token refreshed"),n._config.getData?n._config.getData().then(function(o){n._isConnecting()&&(n._data=o,n._initializeTransport())}).catch(o=>n._handleGetDataError(o)):n._initializeTransport()}}).catch(function(s){if(!n._isConnecting())return;if(s instanceof Es){n._failUnauthorized();return}n.emit("error",{type:"connectToken",error:{code:ur.clientConnectToken,message:s!==void 0?s.toString():""}});const o=n._getReconnectDelay();n._debug("error on getting connection token, reconnect after "+o+" milliseconds",s),n._reconnecting=!1,n._reconnectTimeout=setTimeout(()=>{n._startReconnecting()},o)})}_handleGetDataError(e){if(e instanceof Es){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:ur.badConfiguration,message:(e==null?void 0:e.toString())||""}});const r=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+r+" milliseconds",e),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},r)}_connectError(e){this.state===Br.Connecting&&(e.code===109&&(this._refreshRequired=!0),e.code<100||e.temporary===!0||e.code===109?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;this._emulation&&!this._transportWasOpen&&!this._triedAllTransports&&(e=!0);let r=this._getReconnectDelay();e&&(r=0),this._debug("reconnect after "+r+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},r)}_constructConnectCommand(){const e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version),Object.keys(this._config.headers).length>0&&(e.headers=this._config.headers);const r={};let n=!1;for(const s in this._serverSubs)if(this._serverSubs.hasOwnProperty(s)&&this._serverSubs[s].recoverable){n=!0;const o={recover:!0};this._serverSubs[s].offset&&(o.offset=this._serverSubs[s].offset),this._serverSubs[s].epoch&&(o.epoch=this._serverSubs[s].epoch),r[s]=o}return n&&(e.subs=r),{connect:e}}_getHistoryRequest(e,r){const n={channel:e};return r!==void 0&&(r.since&&(n.since={offset:r.since.offset},r.since.epoch&&(n.since.epoch=r.since.epoch)),r.limit!==void 0&&(n.limit=r.limit),r.reverse===!0&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(function(){r({code:ur.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:r}})}_callPromise(e,r){return new Promise((n,s)=>{this._call(e,!1).then(o=>{var a;const u=r(o.reply);n(u),(a=o.next)===null||a===void 0||a.call(o)},o=>{var a;s(o.error),(a=o.next)===null||a===void 0||a.call(o)})})}_dataReceived(e){this._serverPing>0&&this._waitServerPing();const r=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then(()=>{let n;this._dispatchPromise=new Promise(s=>{n=s}),this._dispatchSynchronized(r,n)})}_dispatchSynchronized(e,r){let n=Promise.resolve();for(const s in e)e.hasOwnProperty(s)&&(n=n.then(()=>this._dispatchReply(e[s])));n.then(()=>{r()})}_dispatchReply(e){let r;const n=new Promise(o=>{r=o});if(e==null)return this._debug("dispatch: got undefined or null reply"),r(),n;const s=e.id;return s&&s>0?this._handleReply(e,r):e.push?this._handlePush(e.push,r):this._handleServerPing(r),n}_call(e,r){return new Promise((n,s)=>{e.id=this._nextCommandId(),this._registerCall(e.id,n,s),r||this._addCommand(e)})}_startConnecting(){this._debug("start connecting"),this._setState(Br.Connecting)&&this.emit("connecting",{code:Ts.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,r,n){if(e===ka.stateInvalidated){this._token="",this._refreshRequired=!0;for(const u in this._subs)this._subs.hasOwnProperty(u)&&this._subs[u]._invalidateState();for(const u in this._serverSubs)this._serverSubs.hasOwnProperty(u)&&(this._serverSubs[u].offset=0,this._serverSubs[u].epoch="_")}if(this._isDisconnected())return;this._transportIsOpen=!1;const s=this.state;this._reconnecting=!1;const o={code:e,reason:r};let a;if(n?a=this._setState(Br.Connecting):(a=this._setState(Br.Disconnected),this._rejectPromises({code:ur.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),s===Br.Connecting&&this._clearReconnectTimeout(),s===Br.Connected&&this._clearConnectedState(),a&&(this._isConnecting()?this.emit("connecting",o):this.emit("disconnected",o)),this._transport){this._debug("closing existing transport");const u=this._transport;this._transport=null,u.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(ka.unauthorized,"unauthorized",!1)}_getToken(){return this._debug("get connection token"),this._config.getToken?this._config.getToken({}):(this.emit("error",{type:"configuration",error:{code:ur.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new Es("")))}_refresh(){const e=this._client,r=this;this._getToken().then(function(n){if(e!==r._client)return;if(!n){r._failUnauthorized();return}if(r._token=n,r._debug("connection token refreshed"),!r._isConnected())return;const s={refresh:{token:r._token}};r._call(s,!1).then(o=>{const a=o.reply.refresh;r._refreshResponse(a),o.next&&o.next()},o=>{r._refreshError(o.error),o.next&&o.next()})}).catch(function(n){if(r._isConnected()){if(n instanceof Es){r._failUnauthorized();return}r.emit("error",{type:"refreshToken",error:{code:ur.clientRefreshToken,message:n!==void 0?n.toString():""}}),r._refreshTimeout=setTimeout(()=>r._refresh(),r._getRefreshRetryDelay())}})}_refreshError(e){e.code<100||e.temporary===!0?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return ra(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout(()=>this._refresh(),vo(e.ttl)))}_removeSubscription(e){e!==null&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();const n={unsubscribe:{channel:e.channel}},s=this;return new Promise((a,u)=>{this._call(n,!1).then(p=>{a(),p.next&&p.next()},p=>{a(),p.next&&p.next(),s._disconnect(Ts.unsubscribeError,"unsubscribe error",!0)})})}_getSub(e,r){if(r&&r>0){for(const s in this._subs)if(this._subs.hasOwnProperty(s)){const o=this._subs[s];if(o._id===r)return o}return null}const n=this._subs[e];return n||null}_isServerSub(e){return this._serverSubs[e]!==void 0}_sendSubscribeCommands(){const e=[];for(const r in this._subs){if(!this._subs.hasOwnProperty(r))continue;const n=this._subs[r];if(n._inflight!==!0&&n.state===ln.Subscribing){const s=n._subscribe();s&&e.push(s)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(Br.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),vo(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const r={client:e.client,transport:this._transport.subName()};e.data&&(r.data=e.data),this.emit("connected",r),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=e.ping*1e3,this._sendPong=e.pong===!0,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r];this._serverSubs[r]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};const s=this._getSubscribeContext(r,n);this.emit("subscribed",s)}for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r];if(n.recovered){const s=n.publications;if(s&&s.length>0)for(const o in s)s.hasOwnProperty(o)&&this._handlePublication(r,s[o])}}for(const r in this._serverSubs)this._serverSubs.hasOwnProperty(r)&&(e[r]||(this.emit("unsubscribed",{channel:r}),delete this._serverSubs[r]))}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(Ts.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,r){const n={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};r.recovered&&(n.recovered=!0),r.positioned&&(n.positioned=!0),r.recoverable&&(n.recoverable=!0),r.was_recovering&&(n.wasRecovering=!0);let s="";"epoch"in r&&(s=r.epoch);let o=0;return"offset"in r&&(o=r.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:o,epoch:s}),Array.isArray(r.publications)&&r.publications.length>0&&(n.hasRecoveredPublications=!0),r.data&&(n.data=r.data),n}_handleReply(e,r){const n=e.id;if(!(n in this._callbacks)){r();return}const s=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],MT(e)){const o=s.errback;if(!o){r();return}const a={code:e.error.code,message:e.error.message||"",temporary:e.error.temporary||!1};o({error:a,next:r})}else{const o=s.callback;if(!o)return;o({reply:e,next:r})}}_handleJoin(e,r,n){const s=this._getSub(e,n);if(!s){if(e&&this._isServerSub(e)){const o={channel:e,info:this._getJoinLeaveContext(r.info)};this.emit("join",o)}return}s._handleJoin(r)}_handleLeave(e,r,n){const s=this._getSub(e,n);if(!s){if(e&&this._isServerSub(e)){const o={channel:e,info:this._getJoinLeaveContext(r.info)};this.emit("leave",o)}return}s._handleLeave(r)}_handleUnsubscribe(e,r){const n=this._getSub(e,0);if(!n&&e){this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}));return}r.code<2500?n._setUnsubscribed(r.code,r.reason,!1):(r.code===go.stateInvalidated&&n._invalidateState(),n._setSubscribing(r.code,r.reason))}_handleSubscribe(e,r){this._serverSubs[e]={offset:r.offset,epoch:r.epoch,recoverable:r.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,r))}_handleDisconnect(e){const r=e.code;let n=!0;(r>=3500&&r<4e3||r>=4500&&r<5e3)&&(n=!1),this._disconnect(r,e.reason,n)}_getPublicationContext(e,r){const n={channel:e,data:r.data};return r.offset&&(n.offset=r.offset),r.info&&(n.info=this._getJoinLeaveContext(r.info)),r.tags&&(n.tags=r.tags),n}_getJoinLeaveContext(e){const r={client:e.client,user:e.user},n=e.conn_info;n&&(r.connInfo=n);const s=e.chan_info;return s&&(r.chanInfo=s),r}_handlePublication(e,r,n){const s=this._getSub(e,n);if(!s){if(e&&this._isServerSub(e)){const o=this._getPublicationContext(e,r);this.emit("publication",o),r.offset!==void 0&&(this._serverSubs[e].offset=r.offset)}return}s._handlePublication(r)}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){if(this._sendPong){const r={};this._transportSendCommands([r])}e()}_handlePush(e,r){const n=e.channel,s=e.id;e.pub?this._handlePublication(n,e.pub,s):e.message?this._handleMessage(e.message):e.join?this._handleJoin(n,e.join,s):e.leave?this._handleLeave(n,e.leave,s):e.unsubscribe?this._handleUnsubscribe(n,e.unsubscribe):e.subscribe?this._handleSubscribe(n,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),r()}_flush(){const e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,r,n){const s={code:e,message:r};return n&&(s.temporary=!0),s}_registerCall(e,r,n){this._callbacks[e]={callback:r,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout(()=>{delete this._callbacks[e],xf(n)&&n({error:this._createErrorObject(ur.timeout,"timeout")})},this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const r in this._promises)this._promises.hasOwnProperty(r)&&(this._promises[r].timeout&&clearTimeout(this._promises[r].timeout),this._promises[r].reject(e),delete this._promises[r])}}Pl.SubscriptionState=ln,Pl.State=Br,Pl.UnauthorizedError=Es;const Fn={SessionList:"v1.session.list",SessionGet:"v1.session.get",SessionClose:"v1.session.close",SessionUpdate:"v1.session.update",SessionFork:"v1.session.fork",SessionCompact:"v1.session.compact",MessageSend:"v1.message.send",MessageList:"v1.message.list",TurnList:"v1.turn.list",TurnStop:"v1.turn.stop",RtcList:"v1.rtc.list",RtcUpdateStatus:"v1.rtc.update_status",RtcSubmitResult:"v1.rtc.submit_result"};class XT{constructor(e){Yt(this,"options");Yt(this,"centrifuge",null);Yt(this,"connectionState","disconnected");Yt(this,"listeners",new Map);Yt(this,"shouldReconnect",!0);Yt(this,"applyUpdatesQueue",null);Yt(this,"subscriptions",new Map);Yt(this,"epochCache",new Map);this.options=e}async connect(){if(console.log("[RTCAgentClient] connect() called, current state:",this.connectionState),this.connectionState==="connected"||this.connectionState==="connecting"){console.log("[RTCAgentClient] connect() early return, already",this.connectionState);return}this.shouldReconnect=!0,this.setConnectionState("connecting"),this.centrifuge=new Pl(this.options.endpoint,{getToken:async()=>{var r;if(this.options.onTokenExpired&&await this.options.onTokenExpired()==="relogin")throw this.shouldReconnect=!1,(r=this.centrifuge)==null||r.disconnect(),this.setConnectionState("disconnected","token expired, relogin required"),new Error("Token expired, user needs to re-login");return await this.options.getToken()}}),this.centrifuge.on("connecting",e=>{var r;if(!this.shouldReconnect){(r=this.centrifuge)==null||r.disconnect();return}this.setConnectionState("connecting",e==null?void 0:e.reason)}),this.centrifuge.on("connected",()=>{console.log("[RTCAgentClient] centrifuge connected, setting state to connected"),this.setConnectionState("connected"),this.subscribeChannels()}),this.centrifuge.on("disconnected",e=>{console.log("[RTCAgentClient] centrifuge disconnected, reason:",e==null?void 0:e.reason),this.setConnectionState("disconnected",e==null?void 0:e.reason)}),this.centrifuge.on("error",e=>{var r;console.error("[RTCAgentClient] centrifuge error:",e==null?void 0:e.error),this.emit("error",new Error(((r=e==null?void 0:e.error)==null?void 0:r.message)??"centrifuge error"))}),console.log("[RTCAgentClient] calling centrifuge.connect() synchronously"),this.centrifuge.connect(),console.log("[RTCAgentClient] centrifuge.connect() returned, state:",this.connectionState,"(WebSocket not yet established)")}disconnect(){var e;this.shouldReconnect=!1,(e=this.centrifuge)==null||e.disconnect(),this.centrifuge=null,this.subscriptions.clear(),this.setConnectionState("disconnected")}async reconnect(){this.disconnect(),await this.connect()}getConnectionState(){return this.connectionState}getUserId(){return this.options.userId}async listSessions(e,r){return this.rpc(Fn.SessionList,{cursor:e,limit:r})}async getSession(e){return this.rpc(Fn.SessionGet,{session_id:e})}async closeSession(e){return this.rpc(Fn.SessionClose,{session_id:e})}async compactSession(e){return this.rpc(Fn.SessionCompact,e)}async updateSession(e){return this.rpc(Fn.SessionUpdate,e)}async sendMessage(e){return this.rpc(Fn.MessageSend,e)}async forkSession(e){return this.rpc(Fn.SessionFork,e)}async stopTurn(e){return this.rpc(Fn.TurnStop,{session_id:e})}async listMessages(e,r,n){return this.rpc(Fn.MessageList,{session_id:e,cursor:r,limit:n})}async listTurns(e,r,n){return this.rpc(Fn.TurnList,{session_id:e,cursor:r,limit:n})}async listRtc(e,r,n){return this.rpc(Fn.RtcList,{session_id:e,cursor:r,limit:n})}async updateRtcStatus(e,r){return this.rpc(Fn.RtcUpdateStatus,{rtc_id:e,status:r})}async submitRtcResult(e,r,n,s){return this.rpc(Fn.RtcSubmitResult,{rtc_id:e,success:r,result:n,error:s})}async applyUpdates(e){let r=this.applyUpdatesQueue;const n=(async()=>{r&&await r;for(const s of e)await this.processUpdate(s)})();this.applyUpdatesQueue=n;try{await n}finally{this.applyUpdatesQueue===n&&(this.applyUpdatesQueue=null)}}async processUpdate(e){var n,s,o,a,u,p;const r=`topic:u=${this.options.userId}`;if(e.offset>0){const y=await((s=(n=this.options).getLastOffset)==null?void 0:s.call(n,r)),h=y==null?void 0:y.offset,g=(y==null?void 0:y.epoch)??this.epochCache.get(r)??"";if(h!==void 0&&e.offset>h+1){await this.fillOffsetGap(r,h,g,e.offset);const b=await((a=(o=this.options).getLastOffset)==null?void 0:a.call(o,r)),S=b==null?void 0:b.offset,O=b==null?void 0:b.epoch,_=this.epochCache.get(r)??"";if(S===void 0||S!==e.offset-1)throw new Error(`[RTCAgentClient] Offset gap fill failed: expected ${e.offset-1}, got ${S}. Rejecting update ${e.offset} to maintain strict +1 continuity.`);if(O!==void 0&&O!==_)throw new Error(`[RTCAgentClient] Epoch mismatch after gap fill: expected '${_}', got '${O}'. Rejecting update ${e.offset} to prevent data corruption.`)}}if(this.options.onPublication){const y={channel:`topic:u=${this.options.userId}`,offset:e.offset,data:e};await this.options.onPublication(y)}if(e.offset>0){const y=this.epochCache.get(r)??"";await((p=(u=this.options).updateOffset)==null?void 0:p.call(u,r,e.offset,y))}}on(e,r){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(r),()=>{n.delete(r)}}emit(e,r){const n=this.listeners.get(e);if(n)for(const s of n)try{s(r)}catch(o){console.error(`[RTCAgentClient] listener for '${e}' threw:`,o)}}setConnectionState(e,r){var s,o;if(console.log("[RTCAgentClient] setConnectionState:",e,"reason:",r,"previous:",this.connectionState),this.connectionState===e)return;this.connectionState=e;const n={state:e,reason:r};this.emit("connection",n),(o=(s=this.options).onConnectionStateChange)==null||o.call(s,n)}async rpc(e,r){if(!this.centrifuge)throw new Error("RTCAgentClient not connected");if(this.connectionState!=="connected")throw new Error(`Cannot call RPC '${e}': connection state is ${this.connectionState}`);try{return(await this.centrifuge.rpc(e,r)).data}catch(n){throw console.error(`[RTCAgentClient] RPC '${e}' failed:`,n),n}}subscribeChannels(){var s,o;if(!this.centrifuge||!this.options.userId)return;const e=this.options.userId,r=`topic:u=${e}`;if(!this.subscriptions.has(r)){const a=this.centrifuge.newSubscription(r);this.subscriptions.set(r,a),a.on("publication",async u=>{const p=u.data;try{await this.applyUpdates([p])}catch(y){console.error(`[RTCAgentClient] applyUpdates failed for offset ${p.offset} on channel ${r}:`,y),this.emit("error",y instanceof Error?y:new Error(String(y)))}}),a.on("subscribed",async u=>{var p,y,h,g,b,S,O,_;if(u.streamPosition){const w=u.streamPosition.epoch,C=u.streamPosition.offset;this.epochCache.set(r,w);const T=await((y=(p=this.options).getLastOffset)==null?void 0:y.call(p,r)),x=T==null?void 0:T.offset;if(x===void 0)await((g=(h=this.options).updateOffset)==null?void 0:g.call(h,r,C,w));else if(!(C<=x)){const E=(T==null?void 0:T.epoch)??this.epochCache.get(r)??"";try{await this.fillOffsetGap(r,x,E,C+1);const j=await((S=(b=this.options).getLastOffset)==null?void 0:S.call(b,r)),R=j==null?void 0:j.offset,I=j==null?void 0:j.epoch;if(R===void 0||R!==C)throw new Error(`[RTCAgentClient] Offset gap fill failed on subscribe: expected ${C}, got ${R}. Offline updates may be lost.`);if(I!==void 0&&I!==w)throw new Error(`[RTCAgentClient] Epoch mismatch after gap fill on subscribe: expected '${w}', got '${I}'. Server may have restarted.`);await((_=(O=this.options).updateOffset)==null?void 0:_.call(O,r,C,w))}catch(j){console.error(`[RTCAgentClient] fillOffsetGap failed on subscribe for offset ${C}:`,j),this.emit("error",j instanceof Error?j:new Error(String(j)))}}}})}(s=this.subscriptions.get(r))==null||s.subscribe();const n=`live:u=${e}`;if(!this.subscriptions.has(n)){const a=this.centrifuge.newSubscription(n);this.subscriptions.set(n,a),a.on("publication",async u=>{const p={channel:n,data:u.data};await this.handlePublication(p,a)})}(o=this.subscriptions.get(n))==null||o.subscribe()}async fillOffsetGap(e,r,n,s){const o=this.subscriptions.get(e);if(!o){console.warn(`[RTCAgentClient] fillOffsetGap: subscription not found for channel ${e}`);return}let a={since:{offset:r,epoch:n},limit:void 0,reverse:!1};if(s){const u=s-r-1;if(u<=0)return;a.limit=u}try{const u=await o.history(a);for(const p of u.publications){const y=p.data;await this.processUpdate(y)}}catch(u){throw console.error(`[RTCAgentClient] fillOffsetGap failed for channel ${e}:`,u),u}}async handlePublication(e,r){if(this.options.onPublication)try{await this.options.onPublication(e)}catch(n){throw console.error(`[RTCAgentClient] onPublication threw for channel '${e.channel}':`,n),r.unsubscribe(),n}}}var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function QT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var By={exports:{}};(function(t,e){((r,n)=>{t.exports=n()})(Ii,function(){var r=function(v,P){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(M,V){M.__proto__=V}:function(M,V){for(var re in V)Object.prototype.hasOwnProperty.call(V,re)&&(M[re]=V[re])}))(v,P)},n=function(){return(n=Object.assign||function(v){for(var P,M=1,V=arguments.length;M<V;M++)for(var re in P=arguments[M])Object.prototype.hasOwnProperty.call(P,re)&&(v[re]=P[re]);return v}).apply(this,arguments)};function s(v,P,M){for(var V,re=0,pe=P.length;re<pe;re++)!V&&re in P||((V=V||Array.prototype.slice.call(P,0,re))[re]=P[re]);return v.concat(V||Array.prototype.slice.call(P))}var o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ii,a=Object.keys,u=Array.isArray;function p(v,P){return typeof P=="object"&&a(P).forEach(function(M){v[M]=P[M]}),v}typeof Promise>"u"||o.Promise||(o.Promise=Promise);var y=Object.getPrototypeOf,h={}.hasOwnProperty;function g(v,P){return h.call(v,P)}function b(v,P){typeof P=="function"&&(P=P(y(v))),(typeof Reflect>"u"?a:Reflect.ownKeys)(P).forEach(function(M){O(v,M,P[M])})}var S=Object.defineProperty;function O(v,P,M,V){S(v,P,p(M&&g(M,"get")&&typeof M.get=="function"?{get:M.get,set:M.set,configurable:!0}:{value:M,configurable:!0,writable:!0},V))}function _(v){return{from:function(P){return v.prototype=Object.create(P.prototype),O(v.prototype,"constructor",v),{extend:b.bind(null,v.prototype)}}}}var w=Object.getOwnPropertyDescriptor,C=[].slice;function T(v,P,M){return C.call(v,P,M)}function x(v,P){return P(v)}function E(v){if(!v)throw new Error("Assertion Failed")}function j(v){o.setImmediate?setImmediate(v):setTimeout(v,0)}function R(v,P){if(typeof P=="string"&&g(v,P))return v[P];if(!P)return v;if(typeof P!="string"){for(var M=[],V=0,re=P.length;V<re;++V){var pe=R(v,P[V]);M.push(pe)}return M}var Te,Ne=P.indexOf(".");return Ne===-1||(Te=v[P.substr(0,Ne)])==null?void 0:R(Te,P.substr(Ne+1))}function I(v,P,M){if(v&&P!==void 0&&!("isFrozen"in Object&&Object.isFrozen(v)))if(typeof P!="string"&&"length"in P){E(typeof M!="string"&&"length"in M);for(var V=0,re=P.length;V<re;++V)I(v,P[V],M[V])}else{var pe=P.indexOf(".");if(pe!==-1){var Te=P.substr(0,pe),pe=P.substr(pe+1);if(pe==="")M===void 0?u(v)&&!isNaN(parseInt(Te))?v.splice(Te,1):delete v[Te]:v[Te]=M;else{var Ne=v[Te];if(!Ne||!g(v,Te)){if(M===void 0)return;Ne=v[Te]={}}I(Ne,pe,M)}}else M===void 0?u(v)&&!isNaN(parseInt(P))?v.splice(P,1):delete v[P]:v[P]=M}}function D(v){var P,M={};for(P in v)g(v,P)&&(M[P]=v[P]);return M}var Z=[].concat;function J(v){return Z.apply([],v)}var ae="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(J([8,16,32,64].map(function(v){return["Int","Uint","Float"].map(function(P){return P+v+"Array"})}))).filter(function(v){return o[v]}),N=new Set(ae.map(function(v){return o[v]})),$=null;function ne(v){return $=new WeakMap,v=function P(M){if(!M||typeof M!="object")return M;var V=$.get(M);if(V)return V;if(u(M)){V=[],$.set(M,V);for(var re=0,pe=M.length;re<pe;++re)V.push(P(M[re]))}else if(N.has(M.constructor))V=M;else{var Te,Ne=y(M);for(Te in V=Ne===Object.prototype?{}:Object.create(Ne),$.set(M,V),M)g(M,Te)&&(V[Te]=P(M[Te]))}return V}(v),$=null,v}var me={}.toString;function Ce(v){return me.call(v).slice(8,-1)}var Ae=typeof Symbol<"u"?Symbol.iterator:"@@iterator",ce=typeof Ae=="symbol"?function(v){var P;return v!=null&&(P=v[Ae])&&P.apply(v)}:function(){return null};function ue(v,P){P=v.indexOf(P),0<=P&&v.splice(P,1)}var K={};function Y(v){var P,M,V,re;if(arguments.length===1){if(u(v))return v.slice();if(this===K&&typeof v=="string")return[v];if(re=ce(v))for(M=[];!(V=re.next()).done;)M.push(V.value);else{if(v==null)return[v];if(typeof(P=v.length)!="number")return[v];for(M=new Array(P);P--;)M[P]=v[P]}}else for(P=arguments.length,M=new Array(P);P--;)M[P]=arguments[P];return M}var he=typeof Symbol<"u"?function(v){return v[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},ae=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],oe=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ae),U={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function L(v,P){this.name=v,this.message=P}function H(v,P){return v+". Errors: "+Object.keys(P).map(function(M){return P[M].toString()}).filter(function(M,V,re){return re.indexOf(M)===V}).join(`
11
+ `).map(r=>JSON.parse(r))}applyDeltaIfNeeded(e,r){let n,s,o,a;if(e.delta){a=!0;const u=new TextEncoder().encode(e.data),p=JT(r,u);n=JSON.parse(new TextDecoder().decode(p)),s=p,o=u.length}else a=!1,n=JSON.parse(e.data),s=new TextEncoder().encode(e.data),o=s.length;return{newData:n,newPrevValue:s,isDelta:a,wireBytes:o,fullBytes:s.length}}}const YT={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:2e4,timeout:5e3,maxServerPingDelay:1e4,networkEventTarget:null};class Es extends Error{constructor(e){super(e),this.name=this.constructor.name}}class Pl extends Ny{constructor(e,r){super(),this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=Br.Disconnected,this._transportIsOpen=!1,this._endpoint=e,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new Dy,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},YT),r),this._configure(),this._debugEnabled?(this.on("state",n=>{this._debug("client state",n.oldState,"->",n.newState)}),this.on("error",n=>{this._debug("client error",n)})):this.on("error",function(){Function.prototype()})}newSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new FT(this,e,r);return this._subs[e]=n,n}newMapSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new _f(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,tagsFilter:r==null?void 0:r.tagsFilter,map:!0,mapPageSize:r==null?void 0:r.pageSize,mapUnrecoverableStrategy:r==null?void 0:r.unrecoverableStrategy});return this._subs[e]=n,n}newMapClientsSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new _f(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,tagsFilter:r==null?void 0:r.tagsFilter,map:!0,mapPresenceType:2,mapPageSize:r==null?void 0:r.pageSize,mapUnrecoverableStrategy:r==null?void 0:r.unrecoverableStrategy});return this._subs[e]=n,n}newMapUsersSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new _f(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,tagsFilter:r==null?void 0:r.tagsFilter,map:!0,mapPresenceType:3,mapPageSize:r==null?void 0:r.pageSize,mapUnrecoverableStrategy:r==null?void 0:r.unrecoverableStrategy});return this._subs[e]=n,n}newSharedPollSubscription(e,r){if(this.getSubscription(e)!==null)throw new Error("Subscription to the channel "+e+" already exists");const n=new qT(this,e,{token:r==null?void 0:r.token,getToken:r==null?void 0:r.getToken,data:r==null?void 0:r.data,minResubscribeDelay:r==null?void 0:r.minResubscribeDelay,maxResubscribeDelay:r==null?void 0:r.maxResubscribeDelay,delta:r==null?void 0:r.delta,sharedPoll:!0,sharedPollGetSignature:r==null?void 0:r.getSignature});return this._subs[e]=n,n}getSubscription(e){return this._getSub(e)}getMapSubscription(e){return this._getSub(e)}getSharedPollSubscription(e){return this._getSub(e)}removeSubscription(e){e&&(e.state!==ln.Unsubscribed&&e.unsubscribe(),this._removeSubscription(e))}removeMapSubscription(e){this.removeSubscription(e)}removeSharedPollSubscription(e){this.removeSubscription(e)}subscriptions(){return this._subs}mapSubscriptions(){const e={};for(const[r,n]of Object.entries(this._subs))n.type==="map"&&(e[r]=n);return e}sharedPollSubscriptions(){const e={};for(const[r,n]of Object.entries(this._subs))n.type==="shared_poll"&&(e[r]=n);return e}ready(e){return Dr(this,void 0,void 0,function*(){switch(this.state){case Br.Disconnected:throw{code:ur.clientDisconnected,message:"client disconnected"};case Br.Connected:return;default:return new Promise((r,n)=>{const s={resolve:r,reject:n};e&&(s.timeout=setTimeout(()=>{n({code:ur.timeout,message:"timeout"})},e)),this._promises[this._nextPromiseId()]=s})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(ka.disconnectCalled,"disconnect called",!1)}setToken(e){this._token=e}setData(e){this._data=e}setHeaders(e){this._config.headers=e}send(e){return Dr(this,void 0,void 0,function*(){const r={send:{data:e}};if(yield this._methodCall(),!this._transportSendCommands([r]))throw this._createErrorObject(ur.transportWriteError,"transport write error")})}rpc(e,r){return Dr(this,void 0,void 0,function*(){const n={rpc:{method:e,data:r}};return yield this._methodCall(),{data:(yield this._callPromise(n,o=>o.rpc)).data}})}publish(e,r){return Dr(this,void 0,void 0,function*(){const n={publish:{channel:e,data:r}};return yield this._methodCall(),yield this._callPromise(n,()=>({})),{}})}mapPublish(e,r,n){return Dr(this,void 0,void 0,function*(){const s={publish:{channel:e,type:1,key:r,data:n}};return yield this._methodCall(),yield this._callPromise(s,()=>({})),{}})}mapRemove(e,r){return Dr(this,void 0,void 0,function*(){const n={publish:{channel:e,type:1,key:r,removed:!0}};return yield this._methodCall(),yield this._callPromise(n,()=>({})),{}})}history(e,r){return Dr(this,void 0,void 0,function*(){const n={history:this._getHistoryRequest(e,r)};yield this._methodCall();const s=yield this._callPromise(n,a=>a.history),o=[];if(s.publications)for(let a=0;a<s.publications.length;a++)o.push(this._getPublicationContext(e,s.publications[a]));return{publications:o,epoch:s.epoch||"",offset:s.offset||0}})}presence(e){return Dr(this,void 0,void 0,function*(){const r={presence:{channel:e}};yield this._methodCall();const s=(yield this._callPromise(r,o=>o.presence)).presence;for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)){const a=s[o],u=a.conn_info,p=a.chan_info;u&&(a.connInfo=u),p&&(a.chanInfo=p)}return{clients:s}})}presenceStats(e){return Dr(this,void 0,void 0,function*(){const r={presence_stats:{channel:e}};yield this._methodCall();const n=yield this._callPromise(r,s=>s.presence_stats);return{numUsers:n.num_users,numClients:n.num_clients}})}startBatching(){this._batching=!0}stopBatching(){const e=this;Promise.resolve().then(function(){Promise.resolve().then(function(){e._batching=!1,e._flush()})})}_debug(...e){this._debugEnabled&&RT("debug",e)}_codecName(){return this._codec.name()}_formatOverride(){}_configure(){if(!("Promise"in globalThis))throw new Error("Promise polyfill required");if(!this._endpoint)throw new Error("endpoint configuration required");if(this._config.token!==null&&(this._token=this._config.token),this._config.data!==null&&(this._data=this._config.data),this._codec=new Dy,this._formatOverride(),(this._config.debug===!0||LT("centrifuge.debug"))&&(this._debugEnabled=!0),this._debug("config",this._config),typeof this._endpoint!="string")if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(const e in this._transports)if(this._transports.hasOwnProperty(e)){const r=this._transports[e];if(!r.endpoint||!r.transport)throw new Error("malformed transport configuration");const n=r.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(n)<0)throw new Error("unsupported transport name: "+n)}}else throw new Error("unsupported url configuration type: only string or array of objects are supported")}_setState(e){if(this.state!==e){this._reconnecting=!1;const r=this.state;return this.state=e,this.emit("state",{newState:e,oldState:r}),!0}return!1}_isDisconnected(){return this.state===Br.Disconnected}_isConnecting(){return this.state===Br.Connecting}_isConnected(){return this.state===Br.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let e=null;this._config.networkEventTarget!==null?e=this._config.networkEventTarget:typeof globalThis.addEventListener<"u"&&(e=globalThis),e&&(e.addEventListener("offline",()=>{this._debug("offline event triggered"),(this.state===Br.Connected||this.state===Br.Connecting)&&(this._disconnect(Ts.transportClosed,"transport closed",!0),this._deviceWentOffline=!0)}),e.addEventListener("online",()=>{this._debug("online event triggered"),this.state===Br.Connecting&&(this._deviceWentOffline&&!this._transportClosed&&(this._deviceWentOffline=!1,this._transportClosed=!0),this._clearReconnectTimeout(),this._startReconnecting())}),this._networkEventsSet=!0)}_getReconnectDelay(){const e=ra(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,e}_clearOutgoingRequests(){for(const e in this._callbacks)if(this._callbacks.hasOwnProperty(e)){const r=this._callbacks[e];clearTimeout(r.timeout);const n=r.errback;if(!n)continue;n({error:this._createErrorObject(ur.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(const e in this._subs){if(!this._subs.hasOwnProperty(e))continue;const r=this._subs[e];r.state===ln.Subscribed&&r._setSubscribing(xl.transportClosed,"transport closed")}for(const e in this._serverSubs)this._serverSubs.hasOwnProperty(e)&&this.emit("subscribing",{channel:e})}_handleWriteError(e){for(const r of e){const n=r.id;if(!(n in this._callbacks))continue;const s=this._callbacks[n];clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n];const o=s.errback;o({error:this._createErrorObject(ur.transportWriteError,"transport write error")})}}_transportSendCommands(e){if(!e.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(e),this._session,this._node)}catch(r){return this._debug("error writing commands",r),this._handleWriteError(e),!1}return!0}_advanceTransportIndex(){this._currentTransportIndex++,this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0)}_initializeTransport(){let e;this._config.websocket!==null?e=this._config.websocket:typeof globalThis.WebSocket!="function"&&typeof globalThis.WebSocket!="object"||(e=globalThis.WebSocket);let r=null;this._config.sockjs!==null?r=this._config.sockjs:typeof globalThis.SockJS<"u"&&(r=globalThis.SockJS);let n=null;this._config.eventsource!==null?n=this._config.eventsource:typeof globalThis.EventSource<"u"&&(n=globalThis.EventSource);let s=null;this._config.fetch!==null?s=this._config.fetch:typeof globalThis.fetch<"u"&&(s=globalThis.fetch);let o=null;if(this._config.readableStream!==null?o=this._config.readableStream:typeof globalThis.ReadableStream<"u"&&(o=globalThis.ReadableStream),this._emulation){this._currentTransportIndex>=this._transports.length&&(this._triedAllTransports=!0,this._currentTransportIndex=0);let S=0;for(;;){if(S>=this._transports.length)throw new Error("no supported transport found");const O=this._transports[this._currentTransportIndex],_=O.transport,w=O.endpoint;if(_==="websocket"){if(this._debug("trying websocket transport"),this._transport=new ky(w,{websocket:e}),!this._transport.supported()){this._debug("websocket transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new KT(w,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new UT(w,{fetch:s,readableStream:o,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="sse"){if(this._debug("trying sse transport"),this._transport=new VT(w,{eventsource:n,fetch:s,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._advanceTransportIndex(),S++;continue}}else if(_==="sockjs"){if(this._debug("trying sockjs"),this._transport=new $T(w,{sockjs:r,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._advanceTransportIndex(),S++;continue}}else throw new Error("unknown transport "+_);break}}else{if(BT(this._endpoint,"http"))throw new Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");if(this._debug("client will use websocket"),this._transport=new ky(this._endpoint,{websocket:e}),!this._transport.supported())throw new Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}const a=this,u=this._transport,p=this._nextTransportId();a._debug("id of transport",p);let y=!1;const h=[];if(this._transport.emulation()){const S=a._sendConnect(!0);h.push(S)}this._setNetworkEvents();const g=this._codec.encodeCommands(h);this._transportClosed=!1;let b;b=setTimeout(function(){u.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(b&&(clearTimeout(b),b=null),a._transportId!=p){a._debug("open callback from non-actual transport"),u.close();return}y=!0,a._debug(u.subName(),"transport open"),!u.emulation()&&(a._transportIsOpen=!0,a._transportWasOpen=!0,a.startBatching(),a._sendConnect(!1),a._sendSubscribeCommands(),a.stopBatching(),a.emit("__centrifuge_debug:connect_frame_sent",{}))},onError:function(S){if(a._transportId!=p){a._debug("error callback from non-actual transport");return}a._debug("transport level error",S)},onClose:function(S){if(b&&(clearTimeout(b),b=null),a._transportId!=p){a._debug("close callback from non-actual transport");return}a._debug(u.subName(),"transport closed"),a._transportClosed=!0,a._transportIsOpen=!1;let O="connection closed",_=!0,w=0;if(S&&"code"in S&&S.code&&(w=S.code),S&&S.reason)try{const C=JSON.parse(S.reason);O=C.reason,_=C.reconnect}catch{O=S.reason,(w>=3500&&w<4e3||w>=4500&&w<5e3)&&(_=!1)}w<3e3?(w===1009?(w=ka.messageSizeLimit,O="message size limit exceeded",_=!1):(w=Ts.transportClosed,O="transport closed"),a._emulation&&!a._transportWasOpen&&a._advanceTransportIndex()):a._transportWasOpen=!0,a._isConnecting()&&!y&&a.emit("error",{type:"transport",error:{code:ur.transportClosed,message:"transport closed"},transport:u.name()}),a._reconnecting=!1,a._disconnect(w,O,_)},onMessage:function(S){a._dataReceived(S)}},g),a.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(e){const r=this._constructConnectCommand(),n=this;return this._call(r,e).then(s=>{const o=s.reply.connect;n._connectResponse(o),s.next&&s.next()},s=>{n._connectError(s.error),s.next&&s.next()}),r}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;const e=this._token==="";if(!(this._refreshRequired||e&&this._config.getToken!==null)){this._config.getData?this._config.getData().then(s=>{this._isConnecting()&&(this._data=s,this._initializeTransport())}).catch(s=>this._handleGetDataError(s)):this._initializeTransport();return}const n=this;this._getToken().then(function(s){if(n._isConnecting()){if(s==null||s==null){n._failUnauthorized();return}n._token=s,n._debug("connection token refreshed"),n._config.getData?n._config.getData().then(function(o){n._isConnecting()&&(n._data=o,n._initializeTransport())}).catch(o=>n._handleGetDataError(o)):n._initializeTransport()}}).catch(function(s){if(!n._isConnecting())return;if(s instanceof Es){n._failUnauthorized();return}n.emit("error",{type:"connectToken",error:{code:ur.clientConnectToken,message:s!==void 0?s.toString():""}});const o=n._getReconnectDelay();n._debug("error on getting connection token, reconnect after "+o+" milliseconds",s),n._reconnecting=!1,n._reconnectTimeout=setTimeout(()=>{n._startReconnecting()},o)})}_handleGetDataError(e){if(e instanceof Es){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:ur.badConfiguration,message:(e==null?void 0:e.toString())||""}});const r=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+r+" milliseconds",e),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},r)}_connectError(e){this.state===Br.Connecting&&(e.code===109&&(this._refreshRequired=!0),e.code<100||e.temporary===!0||e.code===109?(this.emit("error",{type:"connect",error:e}),this._debug("closing transport due to connect error"),this._disconnect(e.code,e.message,!0)):this._disconnect(e.code,e.message,!1))}_scheduleReconnect(){if(!this._isConnecting())return;let e=!1;this._emulation&&!this._transportWasOpen&&!this._triedAllTransports&&(e=!0);let r=this._getReconnectDelay();e&&(r=0),this._debug("reconnect after "+r+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},r)}_constructConnectCommand(){const e={};this._token&&(e.token=this._token),this._data&&(e.data=this._data),this._config.name&&(e.name=this._config.name),this._config.version&&(e.version=this._config.version),Object.keys(this._config.headers).length>0&&(e.headers=this._config.headers);const r={};let n=!1;for(const s in this._serverSubs)if(this._serverSubs.hasOwnProperty(s)&&this._serverSubs[s].recoverable){n=!0;const o={recover:!0};this._serverSubs[s].offset&&(o.offset=this._serverSubs[s].offset),this._serverSubs[s].epoch&&(o.epoch=this._serverSubs[s].epoch),r[s]=o}return n&&(e.subs=r),{connect:e}}_getHistoryRequest(e,r){const n={channel:e};return r!==void 0&&(r.since&&(n.since={offset:r.since.offset},r.since.epoch&&(n.since.epoch=r.since.epoch)),r.limit!==void 0&&(n.limit=r.limit),r.reverse===!0&&(n.reverse=!0)),n}_methodCall(){return this._isConnected()?Promise.resolve():new Promise((e,r)=>{const n=setTimeout(function(){r({code:ur.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:n,resolve:e,reject:r}})}_callPromise(e,r){return new Promise((n,s)=>{this._call(e,!1).then(o=>{var a;const u=r(o.reply);n(u),(a=o.next)===null||a===void 0||a.call(o)},o=>{var a;s(o.error),(a=o.next)===null||a===void 0||a.call(o)})})}_dataReceived(e){this._serverPing>0&&this._waitServerPing();const r=this._codec.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then(()=>{let n;this._dispatchPromise=new Promise(s=>{n=s}),this._dispatchSynchronized(r,n)})}_dispatchSynchronized(e,r){let n=Promise.resolve();for(const s in e)e.hasOwnProperty(s)&&(n=n.then(()=>this._dispatchReply(e[s])));n.then(()=>{r()})}_dispatchReply(e){let r;const n=new Promise(o=>{r=o});if(e==null)return this._debug("dispatch: got undefined or null reply"),r(),n;const s=e.id;return s&&s>0?this._handleReply(e,r):e.push?this._handlePush(e.push,r):this._handleServerPing(r),n}_call(e,r){return new Promise((n,s)=>{e.id=this._nextCommandId(),this._registerCall(e.id,n,s),r||this._addCommand(e)})}_startConnecting(){this._debug("start connecting"),this._setState(Br.Connecting)&&this.emit("connecting",{code:Ts.connectCalled,reason:"connect called"}),this._client=null,this._startReconnecting()}_disconnect(e,r,n){if(e===ka.stateInvalidated){this._token="",this._refreshRequired=!0;for(const u in this._subs)this._subs.hasOwnProperty(u)&&this._subs[u]._invalidateState();for(const u in this._serverSubs)this._serverSubs.hasOwnProperty(u)&&(this._serverSubs[u].offset=0,this._serverSubs[u].epoch="_")}if(this._isDisconnected())return;this._transportIsOpen=!1;const s=this.state;this._reconnecting=!1;const o={code:e,reason:r};let a;if(n?a=this._setState(Br.Connecting):(a=this._setState(Br.Disconnected),this._rejectPromises({code:ur.clientDisconnected,message:"disconnected"})),this._clearOutgoingRequests(),s===Br.Connecting&&this._clearReconnectTimeout(),s===Br.Connected&&this._clearConnectedState(),a&&(this._isConnecting()?this.emit("connecting",o):this.emit("disconnected",o)),this._transport){this._debug("closing existing transport");const u=this._transport;this._transport=null,u.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(ka.unauthorized,"unauthorized",!1)}_getToken(){return this._debug("get connection token"),this._config.getToken?this._config.getToken({}):(this.emit("error",{type:"configuration",error:{code:ur.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new Es("")))}_refresh(){const e=this._client,r=this;this._getToken().then(function(n){if(e!==r._client)return;if(!n){r._failUnauthorized();return}if(r._token=n,r._debug("connection token refreshed"),!r._isConnected())return;const s={refresh:{token:r._token}};r._call(s,!1).then(o=>{const a=o.reply.refresh;r._refreshResponse(a),o.next&&o.next()},o=>{r._refreshError(o.error),o.next&&o.next()})}).catch(function(n){if(r._isConnected()){if(n instanceof Es){r._failUnauthorized();return}r.emit("error",{type:"refreshToken",error:{code:ur.clientRefreshToken,message:n!==void 0?n.toString():""}}),r._refreshTimeout=setTimeout(()=>r._refresh(),r._getRefreshRetryDelay())}})}_refreshError(e){e.code<100||e.temporary===!0?(this.emit("error",{type:"refresh",error:e}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay())):this._disconnect(e.code,e.message,!1)}_getRefreshRetryDelay(){return ra(0,5e3,1e4)}_refreshResponse(e){this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._client=e.client,this._refreshTimeout=setTimeout(()=>this._refresh(),vo(e.ttl)))}_removeSubscription(e){e!==null&&delete this._subs[e.channel]}_unsubscribe(e){if(!this._transportIsOpen)return Promise.resolve();const n={unsubscribe:{channel:e.channel}},s=this;return new Promise((a,u)=>{this._call(n,!1).then(p=>{a(),p.next&&p.next()},p=>{a(),p.next&&p.next(),s._disconnect(Ts.unsubscribeError,"unsubscribe error",!0)})})}_getSub(e,r){if(r&&r>0){for(const s in this._subs)if(this._subs.hasOwnProperty(s)){const o=this._subs[s];if(o._id===r)return o}return null}const n=this._subs[e];return n||null}_isServerSub(e){return this._serverSubs[e]!==void 0}_sendSubscribeCommands(){const e=[];for(const r in this._subs){if(!this._subs.hasOwnProperty(r))continue;const n=this._subs[r];if(n._inflight!==!0&&n.state===ln.Subscribing){const s=n._subscribe();s&&e.push(s)}}return e}_connectResponse(e){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;this._client=e.client,this._setState(Br.Connected),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout(()=>this._refresh(),vo(e.ttl))),this._session=e.session,this._node=e.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();const r={client:e.client,transport:this._transport.subName()};e.data&&(r.data=e.data),this.emit("connected",r),this._resolvePromises(),this._processServerSubs(e.subs||{}),e.ping&&e.ping>0?(this._serverPing=e.ping*1e3,this._sendPong=e.pong===!0,this._waitServerPing()):this._serverPing=0}_processServerSubs(e){for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r];this._serverSubs[r]={offset:n.offset,epoch:n.epoch,recoverable:n.recoverable||!1};const s=this._getSubscribeContext(r,n);this.emit("subscribed",s)}for(const r in e){if(!e.hasOwnProperty(r))continue;const n=e[r];if(n.recovered){const s=n.publications;if(s&&s.length>0)for(const o in s)s.hasOwnProperty(o)&&this._handlePublication(r,s[o])}}for(const r in this._serverSubs)this._serverSubs.hasOwnProperty(r)&&(e[r]||(this.emit("unsubscribed",{channel:r}),delete this._serverSubs[r]))}_clearRefreshTimeout(){this._refreshTimeout!==null&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null)}_clearReconnectTimeout(){this._reconnectTimeout!==null&&(clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null)}_clearServerPingTimeout(){this._serverPingTimeout!==null&&(clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null)}_waitServerPing(){this._config.maxServerPingDelay!==0&&this._isConnected()&&(this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{this._isConnected()&&this._disconnect(Ts.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay))}_getSubscribeContext(e,r){const n={channel:e,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};r.recovered&&(n.recovered=!0),r.positioned&&(n.positioned=!0),r.recoverable&&(n.recoverable=!0),r.was_recovering&&(n.wasRecovering=!0);let s="";"epoch"in r&&(s=r.epoch);let o=0;return"offset"in r&&(o=r.offset),(n.positioned||n.recoverable)&&(n.streamPosition={offset:o,epoch:s}),Array.isArray(r.publications)&&r.publications.length>0&&(n.hasRecoveredPublications=!0),r.data&&(n.data=r.data),n}_handleReply(e,r){const n=e.id;if(!(n in this._callbacks)){r();return}const s=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],MT(e)){const o=s.errback;if(!o){r();return}const a={code:e.error.code,message:e.error.message||"",temporary:e.error.temporary||!1};o({error:a,next:r})}else{const o=s.callback;if(!o)return;o({reply:e,next:r})}}_handleJoin(e,r,n){const s=this._getSub(e,n);if(!s){if(e&&this._isServerSub(e)){const o={channel:e,info:this._getJoinLeaveContext(r.info)};this.emit("join",o)}return}s._handleJoin(r)}_handleLeave(e,r,n){const s=this._getSub(e,n);if(!s){if(e&&this._isServerSub(e)){const o={channel:e,info:this._getJoinLeaveContext(r.info)};this.emit("leave",o)}return}s._handleLeave(r)}_handleUnsubscribe(e,r){const n=this._getSub(e,0);if(!n&&e){this._isServerSub(e)&&(delete this._serverSubs[e],this.emit("unsubscribed",{channel:e}));return}r.code<2500?n._setUnsubscribed(r.code,r.reason,!1):(r.code===go.stateInvalidated&&n._invalidateState(),n._setSubscribing(r.code,r.reason))}_handleSubscribe(e,r){this._serverSubs[e]={offset:r.offset,epoch:r.epoch,recoverable:r.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(e,r))}_handleDisconnect(e){const r=e.code;let n=!0;(r>=3500&&r<4e3||r>=4500&&r<5e3)&&(n=!1),this._disconnect(r,e.reason,n)}_getPublicationContext(e,r){const n={channel:e,data:r.data};return r.offset&&(n.offset=r.offset),r.info&&(n.info=this._getJoinLeaveContext(r.info)),r.tags&&(n.tags=r.tags),n}_getJoinLeaveContext(e){const r={client:e.client,user:e.user},n=e.conn_info;n&&(r.connInfo=n);const s=e.chan_info;return s&&(r.chanInfo=s),r}_handlePublication(e,r,n){const s=this._getSub(e,n);if(!s){if(e&&this._isServerSub(e)){const o=this._getPublicationContext(e,r);this.emit("publication",o),r.offset!==void 0&&(this._serverSubs[e].offset=r.offset)}return}s._handlePublication(r)}_handleMessage(e){this.emit("message",{data:e.data})}_handleServerPing(e){if(this._sendPong){const r={};this._transportSendCommands([r])}e()}_handlePush(e,r){const n=e.channel,s=e.id;e.pub?this._handlePublication(n,e.pub,s):e.message?this._handleMessage(e.message):e.join?this._handleJoin(n,e.join,s):e.leave?this._handleLeave(n,e.leave,s):e.unsubscribe?this._handleUnsubscribe(n,e.unsubscribe):e.subscribe?this._handleSubscribe(n,e.subscribe):e.disconnect&&this._handleDisconnect(e.disconnect),r()}_flush(){const e=this._commands.slice(0);this._commands=[],this._transportSendCommands(e)}_createErrorObject(e,r,n){const s={code:e,message:r};return n&&(s.temporary=!0),s}_registerCall(e,r,n){this._callbacks[e]={callback:r,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout(()=>{delete this._callbacks[e],xf(n)&&n({error:this._createErrorObject(ur.timeout,"timeout")})},this._config.timeout)}_addCommand(e){this._batching?this._commands.push(e):this._transportSendCommands([e])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(const e in this._promises)this._promises.hasOwnProperty(e)&&(this._promises[e].timeout&&clearTimeout(this._promises[e].timeout),this._promises[e].resolve(),delete this._promises[e])}_rejectPromises(e){for(const r in this._promises)this._promises.hasOwnProperty(r)&&(this._promises[r].timeout&&clearTimeout(this._promises[r].timeout),this._promises[r].reject(e),delete this._promises[r])}}Pl.SubscriptionState=ln,Pl.State=Br,Pl.UnauthorizedError=Es;const Fn={SessionList:"v1.session.list",SessionGet:"v1.session.get",SessionClose:"v1.session.close",SessionUpdate:"v1.session.update",SessionFork:"v1.session.fork",SessionCompact:"v1.session.compact",MessageSend:"v1.message.send",MessageList:"v1.message.list",TurnList:"v1.turn.list",TurnStop:"v1.turn.stop",RtcList:"v1.rtc.list",RtcUpdateStatus:"v1.rtc.update_status",RtcSubmitResult:"v1.rtc.submit_result"};class XT{constructor(e){Ht(this,"options");Ht(this,"centrifuge",null);Ht(this,"connectionState","disconnected");Ht(this,"listeners",new Map);Ht(this,"shouldReconnect",!0);Ht(this,"wasConnected",!1);Ht(this,"applyUpdatesQueue",null);Ht(this,"subscriptions",new Map);Ht(this,"epochCache",new Map);this.options=e}async connect(){if(console.log("[RTCAgentClient] connect() called, current state:",this.connectionState),this.connectionState==="connected"||this.connectionState==="connecting"){console.log("[RTCAgentClient] connect() early return, already",this.connectionState);return}this.shouldReconnect=!0,this.setConnectionState("connecting"),this.centrifuge=new Pl(this.options.endpoint,{getToken:async()=>{var r;const e=await this.options.getToken();if(this._isTokenExpired(e)&&this.options.onTokenExpired){if(await this.options.onTokenExpired()==="relogin")throw this.shouldReconnect=!1,(r=this.centrifuge)==null||r.disconnect(),this.setConnectionState("disconnected","token expired, relogin required"),new Error("Token expired, user needs to re-login");return this.options.getToken()}return e}}),this.centrifuge.on("connecting",e=>{var n;if(!this.shouldReconnect){(n=this.centrifuge)==null||n.disconnect();return}const r=this.wasConnected?"reconnecting":"connecting";this.setConnectionState(r,e==null?void 0:e.reason)}),this.centrifuge.on("connected",()=>{console.log("[RTCAgentClient] centrifuge connected, setting state to connected"),this.wasConnected=!0,this.setConnectionState("connected"),this.subscribeChannels()}),this.centrifuge.on("disconnected",e=>{console.log("[RTCAgentClient] centrifuge disconnected, reason:",e==null?void 0:e.reason),this.setConnectionState("disconnected",e==null?void 0:e.reason)}),this.centrifuge.on("error",e=>{var r;console.error("[RTCAgentClient] centrifuge error:",e==null?void 0:e.error),this.emit("error",new Error(((r=e==null?void 0:e.error)==null?void 0:r.message)??"centrifuge error"))}),console.log("[RTCAgentClient] calling centrifuge.connect() synchronously"),this.centrifuge.connect(),console.log("[RTCAgentClient] centrifuge.connect() returned, state:",this.connectionState,"(WebSocket not yet established)")}disconnect(){var e;this.shouldReconnect=!1,this.wasConnected=!1,(e=this.centrifuge)==null||e.disconnect(),this.centrifuge=null,this.subscriptions.clear(),this.setConnectionState("disconnected")}async reconnect(){this.disconnect(),await this.connect()}getConnectionState(){return this.connectionState}getUserId(){return this.options.userId}async listSessions(e,r){return this.rpc(Fn.SessionList,{cursor:e,limit:r})}async getSession(e){return this.rpc(Fn.SessionGet,{session_id:e})}async closeSession(e){return this.rpc(Fn.SessionClose,{session_id:e})}async compactSession(e){return this.rpc(Fn.SessionCompact,e)}async updateSession(e){return this.rpc(Fn.SessionUpdate,e)}async sendMessage(e){return this.rpc(Fn.MessageSend,e)}async forkSession(e){return this.rpc(Fn.SessionFork,e)}async stopTurn(e){return this.rpc(Fn.TurnStop,{session_id:e})}async listMessages(e,r,n){return this.rpc(Fn.MessageList,{session_id:e,cursor:r,limit:n})}async listTurns(e,r,n){return this.rpc(Fn.TurnList,{session_id:e,cursor:r,limit:n})}async listRtc(e,r,n){return this.rpc(Fn.RtcList,{session_id:e,cursor:r,limit:n})}async updateRtcStatus(e,r){return this.rpc(Fn.RtcUpdateStatus,{rtc_id:e,status:r})}async submitRtcResult(e,r,n,s){return this.rpc(Fn.RtcSubmitResult,{rtc_id:e,success:r,result:n,error:s})}async applyUpdates(e){let r=this.applyUpdatesQueue;const n=(async()=>{r&&await r;for(const s of e)await this.processUpdate(s)})();this.applyUpdatesQueue=n;try{await n}finally{this.applyUpdatesQueue===n&&(this.applyUpdatesQueue=null)}}async processUpdate(e){var n,s,o,a,u,p;const r=`topic:u=${this.options.userId}`;if(e.offset>0){const y=await((s=(n=this.options).getLastOffset)==null?void 0:s.call(n,r)),h=y==null?void 0:y.offset,g=(y==null?void 0:y.epoch)??this.epochCache.get(r)??"";if(h!==void 0&&e.offset>h+1){await this.fillOffsetGap(r,h,g,e.offset);const b=await((a=(o=this.options).getLastOffset)==null?void 0:a.call(o,r)),S=b==null?void 0:b.offset,O=b==null?void 0:b.epoch,_=this.epochCache.get(r)??"";if(S===void 0||S!==e.offset-1)throw new Error(`[RTCAgentClient] Offset gap fill failed: expected ${e.offset-1}, got ${S}. Rejecting update ${e.offset} to maintain strict +1 continuity.`);if(O!==void 0&&O!==_)throw new Error(`[RTCAgentClient] Epoch mismatch after gap fill: expected '${_}', got '${O}'. Rejecting update ${e.offset} to prevent data corruption.`)}}if(this.options.onPublication){const y={channel:`topic:u=${this.options.userId}`,offset:e.offset,data:e};await this.options.onPublication(y)}if(e.offset>0){const y=this.epochCache.get(r)??"";await((p=(u=this.options).updateOffset)==null?void 0:p.call(u,r,e.offset,y))}}on(e,r){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(r),()=>{n.delete(r)}}emit(e,r){const n=this.listeners.get(e);if(n)for(const s of n)try{s(r)}catch(o){console.error(`[RTCAgentClient] listener for '${e}' threw:`,o)}}setConnectionState(e,r){var s,o;if(console.log("[RTCAgentClient] setConnectionState:",e,"reason:",r,"previous:",this.connectionState),this.connectionState===e)return;this.connectionState=e;const n={state:e,reason:r};this.emit("connection",n),(o=(s=this.options).onConnectionStateChange)==null||o.call(s,n)}_isTokenExpired(e){try{const r=e.split(".");if(r.length!==3)return!1;const n=JSON.parse(atob(r[1]));return typeof n.exp!="number"?!1:n.exp*1e3<Date.now()}catch{return!1}}async rpc(e,r){if(!this.centrifuge)throw new Error("RTCAgentClient not connected");if(this.connectionState!=="connected")throw new Error(`Cannot call RPC '${e}': connection state is ${this.connectionState}`);try{return(await this.centrifuge.rpc(e,r)).data}catch(n){throw console.error(`[RTCAgentClient] RPC '${e}' failed:`,n),n}}subscribeChannels(){var s,o;if(!this.centrifuge||!this.options.userId)return;const e=this.options.userId,r=`topic:u=${e}`;if(!this.subscriptions.has(r)){const a=this.centrifuge.newSubscription(r);this.subscriptions.set(r,a),a.on("publication",async u=>{const p=u.data;try{await this.applyUpdates([p])}catch(y){console.error(`[RTCAgentClient] applyUpdates failed for offset ${p.offset} on channel ${r}:`,y),this.emit("error",y instanceof Error?y:new Error(String(y)))}}),a.on("subscribed",async u=>{var p,y,h,g,b,S,O,_;if(u.streamPosition){const w=u.streamPosition.epoch,C=u.streamPosition.offset;this.epochCache.set(r,w);const T=await((y=(p=this.options).getLastOffset)==null?void 0:y.call(p,r)),x=T==null?void 0:T.offset;if(x===void 0)await((g=(h=this.options).updateOffset)==null?void 0:g.call(h,r,C,w));else if(!(C<=x)){const E=(T==null?void 0:T.epoch)??this.epochCache.get(r)??"";try{await this.fillOffsetGap(r,x,E,C+1);const j=await((S=(b=this.options).getLastOffset)==null?void 0:S.call(b,r)),R=j==null?void 0:j.offset,I=j==null?void 0:j.epoch;if(R===void 0||R!==C)throw new Error(`[RTCAgentClient] Offset gap fill failed on subscribe: expected ${C}, got ${R}. Offline updates may be lost.`);if(I!==void 0&&I!==w)throw new Error(`[RTCAgentClient] Epoch mismatch after gap fill on subscribe: expected '${w}', got '${I}'. Server may have restarted.`);await((_=(O=this.options).updateOffset)==null?void 0:_.call(O,r,C,w))}catch(j){console.error(`[RTCAgentClient] fillOffsetGap failed on subscribe for offset ${C}:`,j),this.emit("error",j instanceof Error?j:new Error(String(j)))}}}})}(s=this.subscriptions.get(r))==null||s.subscribe();const n=`live:u=${e}`;if(!this.subscriptions.has(n)){const a=this.centrifuge.newSubscription(n);this.subscriptions.set(n,a),a.on("publication",async u=>{const p={channel:n,data:u.data};await this.handlePublication(p,a)})}(o=this.subscriptions.get(n))==null||o.subscribe()}async fillOffsetGap(e,r,n,s){const o=this.subscriptions.get(e);if(!o){console.warn(`[RTCAgentClient] fillOffsetGap: subscription not found for channel ${e}`);return}let a={since:{offset:r,epoch:n},limit:void 0,reverse:!1};if(s){const u=s-r-1;if(u<=0)return;a.limit=u}try{const u=await o.history(a);for(const p of u.publications){const y=p.data;await this.processUpdate(y)}}catch(u){throw console.error(`[RTCAgentClient] fillOffsetGap failed for channel ${e}:`,u),u}}async handlePublication(e,r){if(this.options.onPublication)try{await this.options.onPublication(e)}catch(n){throw console.error(`[RTCAgentClient] onPublication threw for channel '${e.channel}':`,n),r.unsubscribe(),n}}}var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function QT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var By={exports:{}};(function(t,e){((r,n)=>{t.exports=n()})(Ii,function(){var r=function(v,P){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(M,V){M.__proto__=V}:function(M,V){for(var re in V)Object.prototype.hasOwnProperty.call(V,re)&&(M[re]=V[re])}))(v,P)},n=function(){return(n=Object.assign||function(v){for(var P,M=1,V=arguments.length;M<V;M++)for(var re in P=arguments[M])Object.prototype.hasOwnProperty.call(P,re)&&(v[re]=P[re]);return v}).apply(this,arguments)};function s(v,P,M){for(var V,re=0,pe=P.length;re<pe;re++)!V&&re in P||((V=V||Array.prototype.slice.call(P,0,re))[re]=P[re]);return v.concat(V||Array.prototype.slice.call(P))}var o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ii,a=Object.keys,u=Array.isArray;function p(v,P){return typeof P=="object"&&a(P).forEach(function(M){v[M]=P[M]}),v}typeof Promise>"u"||o.Promise||(o.Promise=Promise);var y=Object.getPrototypeOf,h={}.hasOwnProperty;function g(v,P){return h.call(v,P)}function b(v,P){typeof P=="function"&&(P=P(y(v))),(typeof Reflect>"u"?a:Reflect.ownKeys)(P).forEach(function(M){O(v,M,P[M])})}var S=Object.defineProperty;function O(v,P,M,V){S(v,P,p(M&&g(M,"get")&&typeof M.get=="function"?{get:M.get,set:M.set,configurable:!0}:{value:M,configurable:!0,writable:!0},V))}function _(v){return{from:function(P){return v.prototype=Object.create(P.prototype),O(v.prototype,"constructor",v),{extend:b.bind(null,v.prototype)}}}}var w=Object.getOwnPropertyDescriptor,C=[].slice;function T(v,P,M){return C.call(v,P,M)}function x(v,P){return P(v)}function E(v){if(!v)throw new Error("Assertion Failed")}function j(v){o.setImmediate?setImmediate(v):setTimeout(v,0)}function R(v,P){if(typeof P=="string"&&g(v,P))return v[P];if(!P)return v;if(typeof P!="string"){for(var M=[],V=0,re=P.length;V<re;++V){var pe=R(v,P[V]);M.push(pe)}return M}var Te,Ne=P.indexOf(".");return Ne===-1||(Te=v[P.substr(0,Ne)])==null?void 0:R(Te,P.substr(Ne+1))}function I(v,P,M){if(v&&P!==void 0&&!("isFrozen"in Object&&Object.isFrozen(v)))if(typeof P!="string"&&"length"in P){E(typeof M!="string"&&"length"in M);for(var V=0,re=P.length;V<re;++V)I(v,P[V],M[V])}else{var pe=P.indexOf(".");if(pe!==-1){var Te=P.substr(0,pe),pe=P.substr(pe+1);if(pe==="")M===void 0?u(v)&&!isNaN(parseInt(Te))?v.splice(Te,1):delete v[Te]:v[Te]=M;else{var Ne=v[Te];if(!Ne||!g(v,Te)){if(M===void 0)return;Ne=v[Te]={}}I(Ne,pe,M)}}else M===void 0?u(v)&&!isNaN(parseInt(P))?v.splice(P,1):delete v[P]:v[P]=M}}function D(v){var P,M={};for(P in v)g(v,P)&&(M[P]=v[P]);return M}var Z=[].concat;function J(v){return Z.apply([],v)}var ae="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(J([8,16,32,64].map(function(v){return["Int","Uint","Float"].map(function(P){return P+v+"Array"})}))).filter(function(v){return o[v]}),N=new Set(ae.map(function(v){return o[v]})),$=null;function ne(v){return $=new WeakMap,v=function P(M){if(!M||typeof M!="object")return M;var V=$.get(M);if(V)return V;if(u(M)){V=[],$.set(M,V);for(var re=0,pe=M.length;re<pe;++re)V.push(P(M[re]))}else if(N.has(M.constructor))V=M;else{var Te,Ne=y(M);for(Te in V=Ne===Object.prototype?{}:Object.create(Ne),$.set(M,V),M)g(M,Te)&&(V[Te]=P(M[Te]))}return V}(v),$=null,v}var me={}.toString;function Ce(v){return me.call(v).slice(8,-1)}var Ae=typeof Symbol<"u"?Symbol.iterator:"@@iterator",ce=typeof Ae=="symbol"?function(v){var P;return v!=null&&(P=v[Ae])&&P.apply(v)}:function(){return null};function ue(v,P){P=v.indexOf(P),0<=P&&v.splice(P,1)}var K={};function Y(v){var P,M,V,re;if(arguments.length===1){if(u(v))return v.slice();if(this===K&&typeof v=="string")return[v];if(re=ce(v))for(M=[];!(V=re.next()).done;)M.push(V.value);else{if(v==null)return[v];if(typeof(P=v.length)!="number")return[v];for(M=new Array(P);P--;)M[P]=v[P]}}else for(P=arguments.length,M=new Array(P);P--;)M[P]=arguments[P];return M}var he=typeof Symbol<"u"?function(v){return v[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},ae=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],oe=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ae),U={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function L(v,P){this.name=v,this.message=P}function H(v,P){return v+". Errors: "+Object.keys(P).map(function(M){return P[M].toString()}).filter(function(M,V,re){return re.indexOf(M)===V}).join(`
12
12
  `)}function ye(v,P,M,V){this.failures=P,this.failedKeys=V,this.successCount=M,this.message=H(v,P)}function Ie(v,P){this.name="BulkError",this.failures=Object.keys(P).map(function(M){return P[M]}),this.failuresByPos=P,this.message=H(v,this.failures)}_(L).from(Error).extend({toString:function(){return this.name+": "+this.message}}),_(ye).from(L),_(Ie).from(L);var Ee=oe.reduce(function(v,P){return v[P]=P+"Error",v},{}),De=L,Me=oe.reduce(function(v,P){var M=P+"Error";function V(re,pe){this.name=M,re?typeof re=="string"?(this.message="".concat(re).concat(pe?`
13
- `+pe:""),this.inner=pe||null):typeof re=="object"&&(this.message="".concat(re.name," ").concat(re.message),this.inner=re):(this.message=U[P]||M,this.inner=null)}return _(V).from(De),v[P]=V,v},{}),Ve=(Me.Syntax=SyntaxError,Me.Type=TypeError,Me.Range=RangeError,ae.reduce(function(v,P){return v[P+"Error"]=Me[P],v},{}));ae=oe.reduce(function(v,P){return["Syntax","Type","Range"].indexOf(P)===-1&&(v[P+"Error"]=Me[P]),v},{});function Ze(){}function ut(v){return v}function st(v,P){return v==null||v===ut?P:function(M){return P(v(M))}}function dt(v,P){return function(){v.apply(this,arguments),P.apply(this,arguments)}}function $e(v,P){return v===Ze?P:function(){var M=v.apply(this,arguments),V=(M!==void 0&&(arguments[0]=M),this.onsuccess),re=this.onerror,pe=(this.onsuccess=null,this.onerror=null,P.apply(this,arguments));return V&&(this.onsuccess=this.onsuccess?dt(V,this.onsuccess):V),re&&(this.onerror=this.onerror?dt(re,this.onerror):re),pe!==void 0?pe:M}}function je(v,P){return v===Ze?P:function(){v.apply(this,arguments);var M=this.onsuccess,V=this.onerror;this.onsuccess=this.onerror=null,P.apply(this,arguments),M&&(this.onsuccess=this.onsuccess?dt(M,this.onsuccess):M),V&&(this.onerror=this.onerror?dt(V,this.onerror):V)}}function qe(v,P){return v===Ze?P:function(re){var V=v.apply(this,arguments),re=(p(re,V),this.onsuccess),pe=this.onerror,Te=(this.onsuccess=null,this.onerror=null,P.apply(this,arguments));return re&&(this.onsuccess=this.onsuccess?dt(re,this.onsuccess):re),pe&&(this.onerror=this.onerror?dt(pe,this.onerror):pe),V===void 0?Te===void 0?void 0:Te:p(V,Te)}}function Le(v,P){return v===Ze?P:function(){return P.apply(this,arguments)!==!1&&v.apply(this,arguments)}}function gt(v,P){return v===Ze?P:function(){var M=v.apply(this,arguments);if(M&&typeof M.then=="function"){for(var V=this,re=arguments.length,pe=new Array(re);re--;)pe[re]=arguments[re];return M.then(function(){return P.apply(V,pe)})}return P.apply(this,arguments)}}ae.ModifyError=ye,ae.DexieError=L,ae.BulkError=Ie;var ht=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function xe(v){ht=v}var Se={},se=100,ee=typeof Promise>"u"?[]:(oe=Promise.resolve(),typeof crypto<"u"&&crypto.subtle?[ee=crypto.subtle.digest("SHA-512",new Uint8Array([0])),y(ee),oe]:[oe,y(oe),oe]),oe=ee[0],In=ee[1],In=In&&In.then,W=oe&&oe.constructor,fe=!!ee[2],Re=function(v,P){te.push([v,P]),Ke&&(queueMicrotask(Lt),Ke=!1)},Fe=!0,Ke=!0,it=[],_t=[],Mt=ut,pt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Ze,pgp:!1,env:{},finalize:Ze},xt=pt,te=[],de=0,G=[];function be(v){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var P=this._PSD=xt;if(typeof v!="function"){if(v!==Se)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&rt(this,this._value)}else this._state=null,this._value=null,++P.ref,function M(V,re){try{re(function(pe){if(V._state===null){if(pe===V)throw new TypeError("A promise cannot be resolved with itself.");var Te=V._lib&&Vt();pe&&typeof pe.then=="function"?M(V,function(Ne,We){pe instanceof be?pe._then(Ne,We):pe.then(Ne,We)}):(V._state=!0,V._value=pe,yt(V)),Te&&Ht()}},rt.bind(null,V))}catch(pe){rt(V,pe)}}(this,v)}var et={get:function(){var v=xt,P=Rt;function M(V,re){var pe=this,Te=!v.global&&(v!==xt||P!==Rt),Ne=Te&&!Rr(),We=new be(function(at,Je){mt(pe,new ge(An(V,v,Te,Ne),An(re,v,Te,Ne),at,Je,v))});return this._consoleTask&&(We._consoleTask=this._consoleTask),We}return M.prototype=Se,M},set:function(v){O(this,"then",v&&v.prototype===Se?et:{get:function(){return v},set:et.set})}};function ge(v,P,M,V,re){this.onFulfilled=typeof v=="function"?v:null,this.onRejected=typeof P=="function"?P:null,this.resolve=M,this.reject=V,this.psd=re}function rt(v,P){var M,V;_t.push(P),v._state===null&&(M=v._lib&&Vt(),P=Mt(P),v._state=!1,v._value=P,V=v,it.some(function(re){return re._value===V._value})||it.push(V),yt(v),M)&&Ht()}function yt(v){var P=v._listeners;v._listeners=[];for(var M=0,V=P.length;M<V;++M)mt(v,P[M]);var re=v._PSD;--re.ref||re.finalize(),de===0&&(++de,Re(function(){--de==0&&lr()},[]))}function mt(v,P){if(v._state===null)v._listeners.push(P);else{var M=v._state?P.onFulfilled:P.onRejected;if(M===null)return(v._state?P.resolve:P.reject)(v._value);++P.psd.ref,++de,Re(Bt,[M,v,P])}}function Bt(v,P,M){try{var V,re=P._value;!P._state&&_t.length&&(_t=[]),V=ht&&P._consoleTask?P._consoleTask.run(function(){return v(re)}):v(re),P._state||_t.indexOf(re)!==-1||(pe=>{for(var Te=it.length;Te;)if(it[--Te]._value===pe._value)return it.splice(Te,1)})(P),M.resolve(V)}catch(pe){M.reject(pe)}finally{--de==0&&lr(),--M.psd.ref||M.psd.finalize()}}function Lt(){Nr(pt,function(){Vt()&&Ht()})}function Vt(){var v=Fe;return Ke=Fe=!1,v}function Ht(){var v,P,M;do for(;0<te.length;)for(v=te,te=[],M=v.length,P=0;P<M;++P){var V=v[P];V[0].apply(null,V[1])}while(0<te.length);Ke=Fe=!0}function lr(){for(var v=it,P=(it=[],v.forEach(function(V){V._PSD.onunhandled.call(null,V._value,V)}),G.slice(0)),M=P.length;M;)P[--M]()}function xr(v){return new be(Se,!1,v)}function Wt(v,P){var M=xt;return function(){var V=Vt(),re=xt;try{return Kr(M,!0),v.apply(this,arguments)}catch(pe){P&&P(pe)}finally{Kr(re,!1),V&&Ht()}}}b(be.prototype,{then:et,_then:function(v,P){mt(this,new ge(null,null,v,P,xt))},catch:function(v){var P,M;return arguments.length===1?this.then(null,v):(P=v,M=arguments[1],typeof P=="function"?this.then(null,function(V){return(V instanceof P?M:xr)(V)}):this.then(null,function(V){return(V&&V.name===P?M:xr)(V)}))},finally:function(v){return this.then(function(P){return be.resolve(v()).then(function(){return P})},function(P){return be.resolve(v()).then(function(){return xr(P)})})},timeout:function(v,P){var M=this;return v<1/0?new be(function(V,re){var pe=setTimeout(function(){return re(new Me.Timeout(P))},v);M.then(V,re).finally(clearTimeout.bind(null,pe))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&O(be.prototype,Symbol.toStringTag,"Dexie.Promise"),pt.env=Hn(),b(be,{all:function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P,M){v.length===0&&P([]);var V=v.length;v.forEach(function(re,pe){return be.resolve(re).then(function(Te){v[pe]=Te,--V||P(v)},M)})})},resolve:function(v){return v instanceof be?v:v&&typeof v.then=="function"?new be(function(P,M){v.then(P,M)}):new be(Se,!0,v)},reject:xr,race:function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P,M){v.map(function(V){return be.resolve(V).then(P,M)})})},PSD:{get:function(){return xt},set:function(v){return xt=v}},totalEchoes:{get:function(){return Rt}},newPSD:Vr,usePSD:Nr,scheduler:{get:function(){return Re},set:function(v){Re=v}},rejectionMapper:{get:function(){return Mt},set:function(v){Mt=v}},follow:function(v,P){return new be(function(M,V){return Vr(function(re,pe){var Te=xt;Te.unhandleds=[],Te.onunhandled=pe,Te.finalize=dt(function(){var Ne,We=this;Ne=function(){We.unhandleds.length===0?re():pe(We.unhandleds[0])},G.push(function at(){Ne(),G.splice(G.indexOf(at),1)}),++de,Re(function(){--de==0&&lr()},[])},Te.finalize),v()},P,M,V)})}}),W&&(W.allSettled&&O(be,"allSettled",function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P){v.length===0&&P([]);var M=v.length,V=new Array(M);v.forEach(function(re,pe){return be.resolve(re).then(function(Te){return V[pe]={status:"fulfilled",value:Te}},function(Te){return V[pe]={status:"rejected",reason:Te}}).then(function(){return--M||P(V)})})})}),W.any&&typeof AggregateError<"u"&&O(be,"any",function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P,M){v.length===0&&M(new AggregateError([]));var V=v.length,re=new Array(V);v.forEach(function(pe,Te){return be.resolve(pe).then(function(Ne){return P(Ne)},function(Ne){re[Te]=Ne,--V||M(new AggregateError(re))})})})}),W.withResolvers)&&(be.withResolvers=W.withResolvers);var tr={awaits:0,echoes:0,id:0},pn=0,dn=[],Sr=0,Rt=0,ui=0;function Vr(v,Te,M,V){var re=xt,pe=Object.create(re),Te=(pe.parent=re,pe.ref=0,pe.global=!1,pe.id=++ui,pt.env,pe.env=fe?{Promise:be,PromiseProp:{value:be,configurable:!0,writable:!0},all:be.all,race:be.race,allSettled:be.allSettled,any:be.any,resolve:be.resolve,reject:be.reject}:{},Te&&p(pe,Te),++re.ref,pe.finalize=function(){--this.parent.ref||this.parent.finalize()},Nr(pe,v,M,V));return pe.ref===0&&pe.finalize(),Te}function tn(){return tr.id||(tr.id=++pn),++tr.awaits,tr.echoes+=se,tr.id}function Rr(){return!!tr.awaits&&(--tr.awaits==0&&(tr.id=0),tr.echoes=tr.awaits*se,!0)}function jr(v){return tr.echoes&&v&&v.constructor===W?(tn(),v.then(function(P){return Rr(),P},function(P){return Rr(),dr(P)})):v}function Dn(){var v=dn[dn.length-1];dn.pop(),Kr(v,!1)}function Kr(v,P){var M,V,re=xt;(P?!tr.echoes||Sr++&&v===xt:!Sr||--Sr&&v===xt)||queueMicrotask(P?(function(pe){++Rt,tr.echoes&&--tr.echoes!=0||(tr.echoes=tr.awaits=tr.id=0),dn.push(xt),Kr(pe,!0)}).bind(null,v):Dn),v!==xt&&(xt=v,re===pt&&(pt.env=Hn()),fe)&&(M=pt.env.Promise,V=v.env,re.global||v.global)&&(Object.defineProperty(o,"Promise",V.PromiseProp),M.all=V.all,M.race=V.race,M.resolve=V.resolve,M.reject=V.reject,V.allSettled&&(M.allSettled=V.allSettled),V.any)&&(M.any=V.any)}function Hn(){var v=o.Promise;return fe?{Promise:v,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:v.all,race:v.race,allSettled:v.allSettled,any:v.any,resolve:v.resolve,reject:v.reject}:{}}function Nr(v,P,M,V,re){var pe=xt;try{return Kr(v,!0),P(M,V,re)}finally{Kr(pe,!1)}}function An(v,P,M,V){return typeof v!="function"?v:function(){var re=xt;M&&tn(),Kr(P,!0);try{return v.apply(this,arguments)}finally{Kr(re,!1),V&&queueMicrotask(Rr)}}}function fi(v){Promise===W&&tr.echoes===0?Sr===0?v():enqueueNativeMicroTask(v):setTimeout(v,0)}(""+In).indexOf("[native code]")===-1&&(tn=Rr=Ze);var dr=be.reject,rn="￿",nn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",hn="String expected.",Wr="__dbnames",yn="readonly",Ri="readwrite";function Cn(v,P){return v?P?function(){return v.apply(this,arguments)&&P.apply(this,arguments)}:v:P}var is={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function pi(v){return typeof v!="string"||/\./.test(v)?function(P){return P}:function(P){return P[v]===void 0&&v in P&&delete(P=ne(P))[v],P}}function Jn(){throw Me.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function zt(v,P){try{var M=ji(v),V=ji(P);if(M!==V)return M==="Array"?1:V==="Array"?-1:M==="binary"?1:V==="binary"?-1:M==="string"?1:V==="string"?-1:M==="Date"?1:V!=="Date"?NaN:-1;switch(M){case"number":case"Date":case"string":return P<v?1:v<P?-1:0;case"binary":for(var re=ss(v),pe=ss(P),Te=re.length,Ne=pe.length,We=Te<Ne?Te:Ne,at=0;at<We;++at)if(re[at]!==pe[at])return re[at]<pe[at]?-1:1;return Te===Ne?0:Te<Ne?-1:1;case"Array":for(var Je=v,Ge=P,He=Je.length,nt=Ge.length,Xe=He<nt?He:nt,Ye=0;Ye<Xe;++Ye){var Qe=zt(Je[Ye],Ge[Ye]);if(Qe!==0)return Qe}return He===nt?0:He<nt?-1:1}}catch{}return NaN}function ji(v){var P=typeof v;return P=="object"&&(ArrayBuffer.isView(v)||(P=Ce(v))==="ArrayBuffer")?"binary":P}function ss(v){return v instanceof Uint8Array?v:ArrayBuffer.isView(v)?new Uint8Array(v.buffer,v.byteOffset,v.byteLength):new Uint8Array(v)}function mn(v,P,M){var V=v.schema.yProps;return V?(P&&0<M.numFailures&&(P=P.filter(function(re,pe){return!M.failures[pe]})),Promise.all(V.map(function(re){return re=re.updatesTable,P?v.db.table(re).where("k").anyOf(P).delete():v.db.table(re).clear()})).then(function(){return M})):M}as.prototype.execute=function(v){var P=this["@@propmod"];if(P.add!==void 0){var M=P.add;if(u(M))return s(s([],u(v)?v:[],!0),M).sort();if(typeof M=="number")return(Number(v)||0)+M;if(typeof M=="bigint")try{return BigInt(v)+M}catch{return BigInt(0)+M}throw new TypeError("Invalid term ".concat(M))}if(P.remove!==void 0){var V=P.remove;if(u(V))return u(v)?v.filter(function(re){return!V.includes(re)}).sort():[];if(typeof V=="number")return Number(v)-V;if(typeof V=="bigint")try{return BigInt(v)-V}catch{return BigInt(0)-V}throw new TypeError("Invalid subtrahend ".concat(V))}return M=(M=P.replacePrefix)==null?void 0:M[0],M&&typeof v=="string"&&v.startsWith(M)?P.replacePrefix[1]+v.substring(M.length):v};var Pr=as;function as(v){this["@@propmod"]=v}function di(v,P){for(var M=a(P),V=M.length,re=!1,pe=0;pe<V;++pe){var Te=M[pe],Ne=P[Te],We=R(v,Te);Ne instanceof Pr?(I(v,Te,Ne.execute(We)),re=!0):We!==Ne&&(I(v,Te,Ne),re=!0)}return re}ir.prototype._trans=function(v,P,M){var V=this._tx||xt.trans,re=this.name,pe=ht&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(v==="readonly"?"read":"write"," ").concat(this.name));function Te(at,Je,Ge){if(Ge.schema[re])return P(Ge.idbtrans,Ge);throw new Me.NotFound("Table "+re+" not part of transaction")}var Ne=Vt();try{var We=V&&V.db._novip===this.db._novip?V===xt.trans?V._promise(v,Te,M):Vr(function(){return V._promise(v,Te,M)},{trans:V,transless:xt.transless||xt}):function at(Je,Ge,He,nt){if(Je.idbdb&&(Je._state.openComplete||xt.letThrough||Je._vip)){var Xe=Je._createTransaction(Ge,He,Je._dbSchema);try{Xe.create(),Je._state.PR1398_maxLoop=3}catch(Ye){return Ye.name===Ee.InvalidState&&Je.isOpen()&&0<--Je._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Je.close({disableAutoOpen:!1}),Je.open().then(function(){return at(Je,Ge,He,nt)})):dr(Ye)}return Xe._promise(Ge,function(Ye,Qe){return Vr(function(){return xt.trans=Xe,nt(Ye,Qe,Xe)})}).then(function(Ye){if(Ge==="readwrite")try{Xe.idbtrans.commit()}catch{}return Ge==="readonly"?Ye:Xe._completion.then(function(){return Ye})})}if(Je._state.openComplete)return dr(new Me.DatabaseClosed(Je._state.dbOpenError));if(!Je._state.isBeingOpened){if(!Je._state.autoOpen)return dr(new Me.DatabaseClosed);Je.open().catch(Ze)}return Je._state.dbReadyPromise.then(function(){return at(Je,Ge,He,nt)})}(this.db,v,[this.name],Te);return pe&&(We._consoleTask=pe,We=We.catch(function(at){return console.trace(at),dr(at)})),We}finally{Ne&&Ht()}},ir.prototype.get=function(v,P){var M=this;return v&&v.constructor===Object?this.where(v).first(P):v==null?dr(new Me.Type("Invalid argument to Table.get()")):this._trans("readonly",function(V){return M.core.get({trans:V,key:v}).then(function(re){return M.hook.reading.fire(re)})}).then(P)},ir.prototype.where=function(v){if(typeof v=="string")return new this.db.WhereClause(this,v);if(u(v))return new this.db.WhereClause(this,"[".concat(v.join("+"),"]"));var P=a(v);if(P.length===1)return this.where(P[0]).equals(v[P[0]]);var M=this.schema.indexes.concat(this.schema.primKey).filter(function(Ne){if(Ne.compound&&P.every(function(at){return 0<=Ne.keyPath.indexOf(at)})){for(var We=0;We<P.length;++We)if(P.indexOf(Ne.keyPath[We])===-1)return!1;return!0}return!1}).sort(function(Ne,We){return Ne.keyPath.length-We.keyPath.length})[0];if(M&&this.db._maxKey!==rn)return Te=M.keyPath.slice(0,P.length),this.where(Te).equals(Te.map(function(Ne){return v[Ne]}));!M&&ht&&console.warn("The query ".concat(JSON.stringify(v)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(P.join("+"),"]"));var V=this.schema.idxByName;function re(Ne,We){return zt(Ne,We)===0}var Te=P.reduce(function(Je,We){var at=Je[0],Je=Je[1],Ge=V[We],He=v[We];return[at||Ge,at||!Ge?Cn(Je,Ge&&Ge.multi?function(nt){return nt=R(nt,We),u(nt)&&nt.some(function(Xe){return re(He,Xe)})}:function(nt){return re(He,R(nt,We))}):Je]},[null,null]),pe=Te[0],Te=Te[1];return pe?this.where(pe.name).equals(v[pe.keyPath]).filter(Te):M?this.filter(Te):this.where(P).equals("")},ir.prototype.filter=function(v){return this.toCollection().and(v)},ir.prototype.count=function(v){return this.toCollection().count(v)},ir.prototype.offset=function(v){return this.toCollection().offset(v)},ir.prototype.limit=function(v){return this.toCollection().limit(v)},ir.prototype.each=function(v){return this.toCollection().each(v)},ir.prototype.toArray=function(v){return this.toCollection().toArray(v)},ir.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},ir.prototype.orderBy=function(v){return new this.db.Collection(new this.db.WhereClause(this,u(v)?"[".concat(v.join("+"),"]"):v))},ir.prototype.reverse=function(){return this.toCollection().reverse()},ir.prototype.mapToClass=function(v){for(var P=this.db,M=this.name,V=((this.schema.mappedClass=v).prototype instanceof Jn&&(v=(Te=>{var Ne=Je,We=Te;if(typeof We!="function"&&We!==null)throw new TypeError("Class extends value "+String(We)+" is not a constructor or null");function at(){this.constructor=Ne}function Je(){return Te!==null&&Te.apply(this,arguments)||this}return r(Ne,We),Ne.prototype=We===null?Object.create(We):(at.prototype=We.prototype,new at),Object.defineProperty(Je.prototype,"db",{get:function(){return P},enumerable:!1,configurable:!0}),Je.prototype.table=function(){return M},Je})(v)),new Set),re=v.prototype;re;re=y(re))Object.getOwnPropertyNames(re).forEach(function(Te){return V.add(Te)});function pe(Te){if(!Te)return Te;var Ne,We=Object.create(v.prototype);for(Ne in Te)if(!V.has(Ne))try{We[Ne]=Te[Ne]}catch{}return We}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=pe,this.hook("reading",pe),v},ir.prototype.defineClass=function(){return this.mapToClass(function(v){p(this,v)})},ir.prototype.add=function(v,P){var M=this,V=this.schema.primKey,re=V.auto,pe=V.keyPath,Te=v;return pe&&re&&(Te=pi(pe)(v)),this._trans("readwrite",function(Ne){return M.core.mutate({trans:Ne,type:"add",keys:P!=null?[P]:null,values:[Te]})}).then(function(Ne){return Ne.numFailures?be.reject(Ne.failures[0]):Ne.lastResult}).then(function(Ne){if(pe)try{I(v,pe,Ne)}catch{}return Ne})},ir.prototype.upsert=function(v,P){var M=this,V=this.schema.primKey.keyPath;return this._trans("readwrite",function(re){return M.core.get({trans:re,key:v}).then(function(pe){var Te=pe??{};return di(Te,P),V&&I(Te,V,v),M.core.mutate({trans:re,type:"put",values:[Te],keys:[v],upsert:!0,updates:{keys:[v],changeSpecs:[P]}}).then(function(Ne){return Ne.numFailures?be.reject(Ne.failures[0]):!!pe})})})},ir.prototype.update=function(v,P){return typeof v!="object"||u(v)?this.where(":id").equals(v).modify(P):(v=R(v,this.schema.primKey.keyPath))===void 0?dr(new Me.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(v).modify(P)},ir.prototype.put=function(v,P){var M=this,V=this.schema.primKey,re=V.auto,pe=V.keyPath,Te=v;return pe&&re&&(Te=pi(pe)(v)),this._trans("readwrite",function(Ne){return M.core.mutate({trans:Ne,type:"put",values:[Te],keys:P!=null?[P]:null})}).then(function(Ne){return Ne.numFailures?be.reject(Ne.failures[0]):Ne.lastResult}).then(function(Ne){if(pe)try{I(v,pe,Ne)}catch{}return Ne})},ir.prototype.delete=function(v){var P=this;return this._trans("readwrite",function(M){return P.core.mutate({trans:M,type:"delete",keys:[v]}).then(function(V){return mn(P,[v],V)}).then(function(V){return V.numFailures?be.reject(V.failures[0]):void 0})})},ir.prototype.clear=function(){var v=this;return this._trans("readwrite",function(P){return v.core.mutate({trans:P,type:"deleteRange",range:is}).then(function(M){return mn(v,null,M)})}).then(function(P){return P.numFailures?be.reject(P.failures[0]):void 0})},ir.prototype.bulkGet=function(v){var P=this;return this._trans("readonly",function(M){return P.core.getMany({keys:v,trans:M}).then(function(V){return V.map(function(re){return P.hook.reading.fire(re)})})})},ir.prototype.bulkAdd=function(v,P,M){var V=this,re=Array.isArray(P)?P:void 0,pe=(M=M||(re?void 0:P))?M.allKeys:void 0;return this._trans("readwrite",function(Te){var Ne=V.schema.primKey,at=Ne.auto,Ne=Ne.keyPath;if(Ne&&re)throw new Me.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(re&&re.length!==v.length)throw new Me.InvalidArgument("Arguments objects and keys must have the same length");var We=v.length,at=Ne&&at?v.map(pi(Ne)):v;return V.core.mutate({trans:Te,type:"add",keys:re,values:at,wantResults:pe}).then(function(Je){var Ge=Je.numFailures,He=Je.failures;if(Ge===0)return pe?Je.results:Je.lastResult;throw new Ie("".concat(V.name,".bulkAdd(): ").concat(Ge," of ").concat(We," operations failed"),He)})})},ir.prototype.bulkPut=function(v,P,M){var V=this,re=Array.isArray(P)?P:void 0,pe=(M=M||(re?void 0:P))?M.allKeys:void 0;return this._trans("readwrite",function(Te){var Ne=V.schema.primKey,at=Ne.auto,Ne=Ne.keyPath;if(Ne&&re)throw new Me.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(re&&re.length!==v.length)throw new Me.InvalidArgument("Arguments objects and keys must have the same length");var We=v.length,at=Ne&&at?v.map(pi(Ne)):v;return V.core.mutate({trans:Te,type:"put",keys:re,values:at,wantResults:pe}).then(function(Je){var Ge=Je.numFailures,He=Je.failures;if(Ge===0)return pe?Je.results:Je.lastResult;throw new Ie("".concat(V.name,".bulkPut(): ").concat(Ge," of ").concat(We," operations failed"),He)})})},ir.prototype.bulkUpdate=function(v){var P=this,M=this.core,V=v.map(function(Te){return Te.key}),re=v.map(function(Te){return Te.changes}),pe=[];return this._trans("readwrite",function(Te){return M.getMany({trans:Te,keys:V,cache:"clone"}).then(function(Ne){var We=[],at=[],Je=(v.forEach(function(Ge,He){var nt=Ge.key,Xe=Ge.changes,Ye=Ne[He];if(Ye){for(var Qe=0,lt=Object.keys(Xe);Qe<lt.length;Qe++){var ot=lt[Qe],ft=Xe[ot];if(ot===P.schema.primKey.keyPath){if(zt(ft,nt)!==0)throw new Me.Constraint("Cannot update primary key in bulkUpdate()")}else I(Ye,ot,ft)}pe.push(He),We.push(nt),at.push(Ye)}}),We.length);return M.mutate({trans:Te,type:"put",keys:We,values:at,updates:{keys:V,changeSpecs:re}}).then(function(Ge){var He=Ge.numFailures,nt=Ge.failures;if(He===0)return Je;for(var Xe=0,Ye=Object.keys(nt);Xe<Ye.length;Xe++){var Qe,lt=Ye[Xe],ot=pe[Number(lt)];ot!=null&&(Qe=nt[lt],delete nt[lt],nt[ot]=Qe)}throw new Ie("".concat(P.name,".bulkUpdate(): ").concat(He," of ").concat(Je," operations failed"),nt)})})})},ir.prototype.bulkDelete=function(v){var P=this,M=v.length;return this._trans("readwrite",function(V){return P.core.mutate({trans:V,type:"delete",keys:v}).then(function(re){return mn(P,v,re)})}).then(function(V){var re=V.numFailures,pe=V.failures;if(re===0)return V.lastResult;throw new Ie("".concat(P.name,".bulkDelete(): ").concat(re," of ").concat(M," operations failed"),pe)})};var os=ir;function ir(){}function gn(v){function P(Te,Ne){if(Ne){for(var We=arguments.length,at=new Array(We-1);--We;)at[We-1]=arguments[We];return M[Te].subscribe.apply(null,at),v}if(typeof Te=="string")return M[Te]}var M={};P.addEventType=pe;for(var V=1,re=arguments.length;V<re;++V)pe(arguments[V]);return P;function pe(Te,Ne,We){var at,Je;if(typeof Te!="object")return Ne=Ne||Le,Je={subscribers:[],fire:We=We||Ze,subscribe:function(Ge){Je.subscribers.indexOf(Ge)===-1&&(Je.subscribers.push(Ge),Je.fire=Ne(Je.fire,Ge))},unsubscribe:function(Ge){Je.subscribers=Je.subscribers.filter(function(He){return He!==Ge}),Je.fire=Je.subscribers.reduce(Ne,We)}},M[Te]=P[Te]=Je;a(at=Te).forEach(function(Ge){var He=at[Ge];if(u(He))pe(Ge,at[Ge][0],at[Ge][1]);else{if(He!=="asap")throw new Me.InvalidArgument("Invalid event config");var nt=pe(Ge,ut,function(){for(var Xe=arguments.length,Ye=new Array(Xe);Xe--;)Ye[Xe]=arguments[Xe];nt.subscribers.forEach(function(Qe){j(function(){Qe.apply(null,Ye)})})})}})}}function Bn(v,P){return _(P).from({prototype:v}),P}function Rn(v,P){return!(v.filter||v.algorithm||v.or)&&(P?v.justLimit:!v.replayFilter)}function Mi(v,P){v.filter=Cn(v.filter,P)}function Yn(v,P,M){var V=v.replayFilter;v.replayFilter=V?function(){return Cn(V(),P())}:P,v.justLimit=M&&!V}function Xn(v,P){if(v.isPrimKey)return P.primaryKey;var M=P.getIndexByKeyPath(v.index);if(M)return M;throw new Me.Schema("KeyPath "+v.index+" on object store "+P.name+" is not indexed")}function Li(v,P,M){var V=Xn(v,P.schema);return P.openCursor({trans:M,values:!v.keysOnly,reverse:v.dir==="prev",unique:!!v.unique,query:{index:V,range:v.range}})}function bn(v,P,M,V){var re,pe,Te=v.replayFilter?Cn(v.filter,v.replayFilter()):v.filter;return v.or?(re={},pe=function(Ne,We,at){var Je,Ge;Te&&!Te(We,at,function(He){return We.stop(He)},function(He){return We.fail(He)})||((Ge=""+(Je=We.primaryKey))=="[object ArrayBuffer]"&&(Ge=""+new Uint8Array(Je)),g(re,Ge))||(re[Ge]=!0,P(Ne,We,at))},Promise.all([v.or._iterate(pe,M),ls(Li(v,V,M),v.algorithm,pe,!v.keysOnly&&v.valueMapper)])):ls(Li(v,V,M),Cn(v.algorithm,Te),P,!v.keysOnly&&v.valueMapper)}function ls(v,P,M,V){var re=Wt(V?function(pe,Te,Ne){return M(V(pe),Te,Ne)}:M);return v.then(function(pe){if(pe)return pe.start(function(){var Te=function(){return pe.continue()};P&&!P(pe,function(Ne){return Te=Ne},function(Ne){pe.stop(Ne),Te=Ze},function(Ne){pe.fail(Ne),Te=Ze})||re(pe.value,pe,function(Ne){return Te=Ne}),Te()})})}Qt.prototype._read=function(v,P){var M=this._ctx;return M.error?M.table._trans(null,dr.bind(null,M.error)):M.table._trans("readonly",v).then(P)},Qt.prototype._write=function(v){var P=this._ctx;return P.error?P.table._trans(null,dr.bind(null,P.error)):P.table._trans("readwrite",v,"locked")},Qt.prototype._addAlgorithm=function(v){var P=this._ctx;P.algorithm=Cn(P.algorithm,v)},Qt.prototype._iterate=function(v,P){return bn(this._ctx,v,P,this._ctx.table.core)},Qt.prototype.clone=function(v){var P=Object.create(this.constructor.prototype),M=Object.create(this._ctx);return v&&p(M,v),P._ctx=M,P},Qt.prototype.raw=function(){return this._ctx.valueMapper=null,this},Qt.prototype.each=function(v){var P=this._ctx;return this._read(function(M){return bn(P,v,M,P.table.core)})},Qt.prototype.count=function(v){var P=this;return this._read(function(M){var V,re=P._ctx,pe=re.table.core;return Rn(re,!0)?pe.count({trans:M,query:{index:Xn(re,pe.schema),range:re.range}}).then(function(Te){return Math.min(Te,re.limit)}):(V=0,bn(re,function(){return++V,!1},M,pe).then(function(){return V}))}).then(v)},Qt.prototype.sortBy=function(v,P){var M=v.split(".").reverse(),V=M[0],re=M.length-1;function pe(We,at){return at?pe(We[M[at]],at-1):We[V]}var Te=this._ctx.dir==="next"?1:-1;function Ne(We,at){return zt(pe(We,re),pe(at,re))*Te}return this.toArray(function(We){return We.slice().sort(Ne)}).then(P)},Qt.prototype.toArray=function(v){var P=this;return this._read(function(M){var V,re,pe,Te=P._ctx;return Rn(Te,!0)&&0<Te.limit?(V=Te.valueMapper,re=Xn(Te,Te.table.core.schema),Te.table.core.query({trans:M,limit:Te.limit,values:!0,direction:Te.dir==="prev"?"prev":void 0,query:{index:re,range:Te.range}}).then(function(Ne){return Ne=Ne.result,V?Ne.map(V):Ne})):(pe=[],bn(Te,function(Ne){return pe.push(Ne)},M,Te.table.core).then(function(){return pe}))},v)},Qt.prototype.offset=function(v){var P=this._ctx;return v<=0||(P.offset+=v,Rn(P)?Yn(P,function(){var M=v;return function(V,re){return M===0||(M===1?--M:re(function(){V.advance(M),M=0}),!1)}}):Yn(P,function(){var M=v;return function(){return--M<0}})),this},Qt.prototype.limit=function(v){return this._ctx.limit=Math.min(this._ctx.limit,v),Yn(this._ctx,function(){var P=v;return function(M,V,re){return--P<=0&&V(re),0<=P}},!0),this},Qt.prototype.until=function(v,P){return Mi(this._ctx,function(M,V,re){return!v(M.value)||(V(re),P)}),this},Qt.prototype.first=function(v){return this.limit(1).toArray(function(P){return P[0]}).then(v)},Qt.prototype.last=function(v){return this.reverse().first(v)},Qt.prototype.filter=function(v){var P;return Mi(this._ctx,function(M){return v(M.value)}),(P=this._ctx).isMatch=Cn(P.isMatch,v),this},Qt.prototype.and=function(v){return this.filter(v)},Qt.prototype.or=function(v){return new this.db.WhereClause(this._ctx.table,v,this)},Qt.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Qt.prototype.desc=function(){return this.reverse()},Qt.prototype.eachKey=function(v){var P=this._ctx;return P.keysOnly=!P.isMatch,this.each(function(M,V){v(V.key,V)})},Qt.prototype.eachUniqueKey=function(v){return this._ctx.unique="unique",this.eachKey(v)},Qt.prototype.eachPrimaryKey=function(v){var P=this._ctx;return P.keysOnly=!P.isMatch,this.each(function(M,V){v(V.primaryKey,V)})},Qt.prototype.keys=function(v){var P=this._ctx,M=(P.keysOnly=!P.isMatch,[]);return this.each(function(V,re){M.push(re.key)}).then(function(){return M}).then(v)},Qt.prototype.primaryKeys=function(v){var P=this._ctx;if(Rn(P,!0)&&0<P.limit)return this._read(function(V){var re=Xn(P,P.table.core.schema);return P.table.core.query({trans:V,values:!1,limit:P.limit,direction:P.dir==="prev"?"prev":void 0,query:{index:re,range:P.range}})}).then(function(V){return V.result}).then(v);P.keysOnly=!P.isMatch;var M=[];return this.each(function(V,re){M.push(re.primaryKey)}).then(function(){return M}).then(v)},Qt.prototype.uniqueKeys=function(v){return this._ctx.unique="unique",this.keys(v)},Qt.prototype.firstKey=function(v){return this.limit(1).keys(function(P){return P[0]}).then(v)},Qt.prototype.lastKey=function(v){return this.reverse().firstKey(v)},Qt.prototype.distinct=function(){var v,P=this._ctx,P=P.index&&P.table.schema.idxByName[P.index];return P&&P.multi&&(v={},Mi(this._ctx,function(V){var V=V.primaryKey.toString(),re=g(v,V);return v[V]=!0,!re})),this},Qt.prototype.modify=function(v){var P=this,M=this._ctx;return this._write(function(V){function re(Ye,Qe){var lt=Qe.failures;He+=Ye-Qe.numFailures;for(var ot=0,ft=a(lt);ot<ft.length;ot++){var bt=ft[ot];Ge.push(lt[bt])}}var pe=typeof v=="function"?v:function(Ye){return di(Ye,v)},Te=M.table.core,Je=Te.schema.primaryKey,Ne=Je.outbound,We=Je.extractKey,at=200,Je=P.db._options.modifyChunkSize,Ge=(Je&&(at=typeof Je=="object"?Je[Te.name]||Je["*"]||200:Je),[]),He=0,nt=[],Xe=v===cs;return P.clone().primaryKeys().then(function(Ye){function Qe(ot){var ft=Math.min(at,Ye.length-ot),bt=Ye.slice(ot,ot+ft);return(Xe?Promise.resolve([]):Te.getMany({trans:V,keys:bt,cache:"immutable"})).then(function(Et){var Ct=[],Pt=[],Dt=Ne?[]:null,At=Xe?bt:[];if(!Xe)for(var jt=0;jt<ft;++jt){var St=Et[jt],qt={value:ne(St),primKey:Ye[ot+jt]};pe.call(qt,qt.value,qt)!==!1&&(qt.value==null?At.push(Ye[ot+jt]):Ne||zt(We(St),We(qt.value))===0?(Pt.push(qt.value),Ne&&Dt.push(Ye[ot+jt])):(At.push(Ye[ot+jt]),Ct.push(qt.value)))}return Promise.resolve(0<Ct.length&&Te.mutate({trans:V,type:"add",values:Ct}).then(function($t){for(var Kt in $t.failures)At.splice(parseInt(Kt),1);re(Ct.length,$t)})).then(function(){return(0<Pt.length||lt&&typeof v=="object")&&Te.mutate({trans:V,type:"put",keys:Dt,values:Pt,criteria:lt,changeSpec:typeof v!="function"&&v,isAdditionalChunk:0<ot}).then(function($t){return re(Pt.length,$t)})}).then(function(){return(0<At.length||lt&&Xe)&&Te.mutate({trans:V,type:"delete",keys:At,criteria:lt,isAdditionalChunk:0<ot}).then(function($t){return mn(M.table,At,$t)}).then(function($t){return re(At.length,$t)})}).then(function(){return Ye.length>ot+ft&&Qe(ot+at)})})}var lt=Rn(M)&&M.limit===1/0&&(typeof v!="function"||Xe)&&{index:M.index,range:M.range};return Qe(0).then(function(){if(0<Ge.length)throw new ye("Error modifying one or more objects",Ge,He,nt);return Ye.length})})})},Qt.prototype.delete=function(){var v=this._ctx,P=v.range;return!Rn(v)||v.table.schema.yProps||!v.isPrimKey&&P.type!==3?this.modify(cs):this._write(function(M){var V=v.table.core.schema.primaryKey,re=P;return v.table.core.count({trans:M,query:{index:V,range:re}}).then(function(pe){return v.table.core.mutate({trans:M,type:"deleteRange",range:re}).then(function(We){var Ne=We.failures,We=We.numFailures;if(We)throw new ye("Could not delete some values",Object.keys(Ne).map(function(at){return Ne[at]}),pe-We);return pe-We})})})};var vn=Qt;function Qt(){}var cs=function(v,P){return P.value=null};function Ls(v,P){return v<P?-1:v===P?0:1}function hi(v,P){return P<v?-1:v===P?0:1}function Ar(v,P,M){return v=v instanceof Fi?new v.Collection(v):v,v._ctx.error=new(M||TypeError)(P),v}function jn(v){return new v.Collection(v,function(){return us("")}).limit(0)}function yi(nt,P,M,V){var re,pe,Te,Ne,We,at,Je,Ge=M.length;if(!M.every(function(Ye){return typeof Ye=="string"}))return Ar(nt,hn);function He(Ye){re=Ye==="next"?function(lt){return lt.toUpperCase()}:function(lt){return lt.toLowerCase()},pe=Ye==="next"?function(lt){return lt.toLowerCase()}:function(lt){return lt.toUpperCase()},Te=Ye==="next"?Ls:hi;var Qe=M.map(function(lt){return{lower:pe(lt),upper:re(lt)}}).sort(function(lt,ot){return Te(lt.lower,ot.lower)});Ne=Qe.map(function(lt){return lt.upper}),We=Qe.map(function(lt){return lt.lower}),Je=(at=Ye)==="next"?"":V}He("next");var nt=new nt.Collection(nt,function(){return Sn(Ne[0],We[Ge-1]+V)}),Xe=(nt._ondirectionchange=function(Ye){He(Ye)},0);return nt._addAlgorithm(function(Ye,Qe,lt){var ot=Ye.key;if(typeof ot=="string"){var ft=pe(ot);if(P(ft,We,Xe))return!0;for(var bt=null,Et=Xe;Et<Ge;++Et){var Ct=((Pt,Dt,At,jt,St,qt)=>{for(var $t=Math.min(Pt.length,jt.length),Kt=-1,Jt=0;Jt<$t;++Jt){var B=Dt[Jt];if(B!==jt[Jt])return St(Pt[Jt],At[Jt])<0?Pt.substr(0,Jt)+At[Jt]+At.substr(Jt+1):St(Pt[Jt],jt[Jt])<0?Pt.substr(0,Jt)+jt[Jt]+At.substr(Jt+1):0<=Kt?Pt.substr(0,Kt)+Dt[Kt]+At.substr(Kt+1):null;St(Pt[Jt],B)<0&&(Kt=Jt)}return $t<jt.length&&qt==="next"?Pt+At.substr(Pt.length):$t<Pt.length&&qt==="prev"?Pt.substr(0,At.length):Kt<0?null:Pt.substr(0,Kt)+jt[Kt]+At.substr(Kt+1)})(ot,ft,Ne[Et],We[Et],Te,at);Ct===null&&bt===null?Xe=Et+1:(bt===null||0<Te(bt,Ct))&&(bt=Ct)}Qe(bt!==null?function(){Ye.continue(bt+Je)}:lt)}return!1}),nt}function Sn(v,P,M,V){return{type:2,lower:v,upper:P,lowerOpen:M,upperOpen:V}}function us(v){return{type:1,lower:v,upper:v}}Object.defineProperty(br.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),br.prototype.between=function(v,P,M,V){M=M!==!1,V=V===!0;try{return 0<this._cmp(v,P)||this._cmp(v,P)===0&&(M||V)&&(!M||!V)?jn(this):new this.Collection(this,function(){return Sn(v,P,!M,!V)})}catch{return Ar(this,nn)}},br.prototype.equals=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return us(v)})},br.prototype.above=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(v,void 0,!0)})},br.prototype.aboveOrEqual=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(v,void 0,!1)})},br.prototype.below=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(void 0,v,!1,!0)})},br.prototype.belowOrEqual=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(void 0,v)})},br.prototype.startsWith=function(v){return typeof v!="string"?Ar(this,hn):this.between(v,v+rn,!0,!0)},br.prototype.startsWithIgnoreCase=function(v){return v===""?this.startsWith(v):yi(this,function(P,M){return P.indexOf(M[0])===0},[v],rn)},br.prototype.equalsIgnoreCase=function(v){return yi(this,function(P,M){return P===M[0]},[v],"")},br.prototype.anyOfIgnoreCase=function(){var v=Y.apply(K,arguments);return v.length===0?jn(this):yi(this,function(P,M){return M.indexOf(P)!==-1},v,"")},br.prototype.startsWithAnyOfIgnoreCase=function(){var v=Y.apply(K,arguments);return v.length===0?jn(this):yi(this,function(P,M){return M.some(function(V){return P.indexOf(V)===0})},v,rn)},br.prototype.anyOf=function(){var v,P,M=this,V=Y.apply(K,arguments),re=this._cmp;try{V.sort(re)}catch{return Ar(this,nn)}return V.length===0?jn(this):((v=new this.Collection(this,function(){return Sn(V[0],V[V.length-1])}))._ondirectionchange=function(pe){re=pe==="next"?M._ascending:M._descending,V.sort(re)},P=0,v._addAlgorithm(function(pe,Te,Ne){for(var We=pe.key;0<re(We,V[P]);)if(++P===V.length)return Te(Ne),!1;return re(We,V[P])===0||(Te(function(){pe.continue(V[P])}),!1)}),v)},br.prototype.notEqual=function(v){return this.inAnyRange([[-1/0,v],[v,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},br.prototype.noneOf=function(){var v=Y.apply(K,arguments);if(v.length===0)return new this.Collection(this);try{v.sort(this._ascending)}catch{return Ar(this,nn)}var P=v.reduce(function(M,V){return M?M.concat([[M[M.length-1][1],V]]):[[-1/0,V]]},null);return P.push([v[v.length-1],this.db._maxKey]),this.inAnyRange(P,{includeLowers:!1,includeUppers:!1})},br.prototype.inAnyRange=function(v,lt){var M=this,V=this._cmp,re=this._ascending,pe=this._descending,Te=this._min,Ne=this._max;if(v.length===0)return jn(this);if(!v.every(function(ot){return ot[0]!==void 0&&ot[1]!==void 0&&re(ot[0],ot[1])<=0}))return Ar(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Me.InvalidArgument);var We=!lt||lt.includeLowers!==!1,at=lt&&lt.includeUppers===!0,Je,Ge=re;function He(ot,ft){return Ge(ot[0],ft[0])}try{(Je=v.reduce(function(ot,ft){for(var bt=0,Et=ot.length;bt<Et;++bt){var Ct=ot[bt];if(V(ft[0],Ct[1])<0&&0<V(ft[1],Ct[0])){Ct[0]=Te(Ct[0],ft[0]),Ct[1]=Ne(Ct[1],ft[1]);break}}return bt===Et&&ot.push(ft),ot},[])).sort(He)}catch{return Ar(this,nn)}var nt=0,Xe=at?function(ot){return 0<re(ot,Je[nt][1])}:function(ot){return 0<=re(ot,Je[nt][1])},Ye=We?function(ot){return 0<pe(ot,Je[nt][0])}:function(ot){return 0<=pe(ot,Je[nt][0])},Qe=Xe,lt=new this.Collection(this,function(){return Sn(Je[0][0],Je[Je.length-1][1],!We,!at)});return lt._ondirectionchange=function(ot){Ge=ot==="next"?(Qe=Xe,re):(Qe=Ye,pe),Je.sort(He)},lt._addAlgorithm(function(ot,ft,bt){for(var Et,Ct=ot.key;Qe(Ct);)if(++nt===Je.length)return ft(bt),!1;return!Xe(Et=Ct)&&!Ye(Et)||(M._cmp(Ct,Je[nt][1])===0||M._cmp(Ct,Je[nt][0])===0||ft(function(){Ge===re?ot.continue(Je[nt][0]):ot.continue(Je[nt][1])}),!1)}),lt},br.prototype.startsWithAnyOf=function(){var v=Y.apply(K,arguments);return v.every(function(P){return typeof P=="string"})?v.length===0?jn(this):this.inAnyRange(v.map(function(P){return[P,P+rn]})):Ar(this,"startsWithAnyOf() only works with strings")};var Fi=br;function br(){}function Cr(v){return Wt(function(P){return Tn(P),v(P.target.error),!1})}function Tn(v){v.stopPropagation&&v.stopPropagation(),v.preventDefault&&v.preventDefault()}var Mn="storagemutated",qi="x-storagemutated-1",Yr=gn(null,Mn),Fs=(Mr.prototype._lock=function(){return E(!xt.global),++this._reculock,this._reculock!==1||xt.global||(xt.lockOwnerFor=this),this},Mr.prototype._unlock=function(){if(E(!xt.global),--this._reculock==0)for(xt.global||(xt.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var v=this._blockedFuncs.shift();try{Nr(v[1],v[0])}catch{}}return this},Mr.prototype._locked=function(){return this._reculock&&xt.lockOwnerFor!==this},Mr.prototype.create=function(v){var P=this;if(this.mode){var M=this.db.idbdb,V=this.db._state.dbOpenError;if(E(!this.idbtrans),!v&&!M)switch(V&&V.name){case"DatabaseClosedError":throw new Me.DatabaseClosed(V);case"MissingAPIError":throw new Me.MissingAPI(V.message,V);default:throw new Me.OpenFailed(V)}if(!this.active)throw new Me.TransactionInactive;E(this._completion._state===null),(v=this.idbtrans=v||(this.db.core||M).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Wt(function(re){Tn(re),P._reject(v.error)}),v.onabort=Wt(function(re){Tn(re),P.active&&P._reject(new Me.Abort(v.error)),P.active=!1,P.on("abort").fire(re)}),v.oncomplete=Wt(function(){P.active=!1,P._resolve(),"mutatedParts"in v&&Yr.storagemutated.fire(v.mutatedParts)})}return this},Mr.prototype._promise=function(v,P,M){var V,re=this;return v==="readwrite"&&this.mode!=="readwrite"?dr(new Me.ReadOnly("Transaction is readonly")):this.active?this._locked()?new be(function(pe,Te){re._blockedFuncs.push([function(){re._promise(v,P,M).then(pe,Te)},xt])}):M?Vr(function(){var pe=new be(function(Te,Ne){re._lock();var We=P(Te,Ne,re);We&&We.then&&We.then(Te,Ne)});return pe.finally(function(){return re._unlock()}),pe._lib=!0,pe}):((V=new be(function(pe,Te){var Ne=P(pe,Te,re);Ne&&Ne.then&&Ne.then(pe,Te)}))._lib=!0,V):dr(new Me.TransactionInactive)},Mr.prototype._root=function(){return this.parent?this.parent._root():this},Mr.prototype.waitFor=function(v){var P,M=this._root(),V=be.resolve(v),re=(M._waitingFor?M._waitingFor=M._waitingFor.then(function(){return V}):(M._waitingFor=V,M._waitingQueue=[],P=M.idbtrans.objectStore(M.storeNames[0]),function pe(){for(++M._spinCount;M._waitingQueue.length;)M._waitingQueue.shift()();M._waitingFor&&(P.get(-1/0).onsuccess=pe)}()),M._waitingFor);return new be(function(pe,Te){V.then(function(Ne){return M._waitingQueue.push(Wt(pe.bind(null,Ne)))},function(Ne){return M._waitingQueue.push(Wt(Te.bind(null,Ne)))}).finally(function(){M._waitingFor===re&&(M._waitingFor=null)})})},Mr.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Me.Abort))},Mr.prototype.table=function(v){var P=this._memoizedTables||(this._memoizedTables={});if(g(P,v))return P[v];var M=this.schema[v];if(M)return(M=new this.db.Table(v,M,this)).core=this.db.core.table(v),P[v]=M;throw new Me.NotFound("Table "+v+" not part of transaction")},Mr);function Mr(){}function $i(v,P,M,V,re,pe,Te,Ne){return{name:v,keyPath:P,unique:M,multi:V,auto:re,compound:pe,src:(M&&!Te?"&":"")+(V?"*":"")+(re?"++":"")+Ui(P),type:Ne}}function Ui(v){return typeof v=="string"?v:v?"["+[].join.call(v,"+")+"]":""}function It(v,P,M){return{name:v,primKey:P,indexes:M,mappedClass:null,idxByName:(V=function(re){return[re.name,re]},M.reduce(function(re,pe,Te){return pe=V(pe,Te),pe&&(re[pe[0]]=pe[1]),re},{}))};var V}var Qn=function(v){try{return v.only([[]]),Qn=function(){return[[]]},[[]]}catch{return Qn=function(){return rn},rn}};function mi(v){return v==null?function(){}:typeof v=="string"?(P=v).split(".").length===1?function(M){return M[P]}:function(M){return R(M,P)}:function(M){return R(M,v)};var P}function fs(v){return[].slice.call(v)}var qs=0;function Zn(v){return v==null?":id":typeof v=="string"?v:"[".concat(v.join("+"),"]")}function $s(v,P,Te){function V(Qe){if(Qe.type===3)return null;if(Qe.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var nt=Qe.lower,Xe=Qe.upper,Ye=Qe.lowerOpen,Qe=Qe.upperOpen;return nt===void 0?Xe===void 0?null:P.upperBound(Xe,!!Qe):Xe===void 0?P.lowerBound(nt,!!Ye):P.bound(nt,Xe,!!Ye,!!Qe)}function re(He){var nt,Xe,Ye=He.name;return{name:Ye,schema:He,mutate:function(Qe){var lt=Qe.trans,ot=Qe.type,ft=Qe.keys,bt=Qe.values,Et=Qe.range;return new Promise(function(Ct,Pt){Ct=Wt(Ct);var Dt=lt.objectStore(Ye),At=Dt.keyPath==null,jt=ot==="put"||ot==="add";if(!jt&&ot!=="delete"&&ot!=="deleteRange")throw new Error("Invalid operation type: "+ot);var St,qt=(ft||bt||{length:1}).length;if(ft&&bt&&ft.length!==bt.length)throw new Error("Given keys array must have same length as given values array.");if(qt===0)return Ct({numFailures:0,failures:{},results:[],lastResult:void 0});function $t(tt){++B,Tn(tt)}var Kt=[],Jt=[],B=0;if(ot==="deleteRange"){if(Et.type===4)return Ct({numFailures:B,failures:Jt,results:[],lastResult:void 0});Et.type===3?Kt.push(St=Dt.clear()):Kt.push(St=Dt.delete(V(Et)))}else{var At=jt?At?[bt,ft]:[bt,null]:[ft,null],k=At[0],F=At[1];if(jt)for(var ie=0;ie<qt;++ie)Kt.push(St=F&&F[ie]!==void 0?Dt[ot](k[ie],F[ie]):Dt[ot](k[ie])),St.onerror=$t;else for(ie=0;ie<qt;++ie)Kt.push(St=Dt[ot](k[ie])),St.onerror=$t}function ke(tt){tt=tt.target.result,Kt.forEach(function(Nt,cr){return Nt.error!=null&&(Jt[cr]=Nt.error)}),Ct({numFailures:B,failures:Jt,results:ot==="delete"?ft:Kt.map(function(Nt){return Nt.result}),lastResult:tt})}St.onerror=function(tt){$t(tt),ke(tt)},St.onsuccess=ke})},getMany:function(Qe){var lt=Qe.trans,ot=Qe.keys;return new Promise(function(ft,bt){ft=Wt(ft);for(var Et,Ct=lt.objectStore(Ye),Pt=ot.length,Dt=new Array(Pt),At=0,jt=0,St=function(Kt){Kt=Kt.target,Dt[Kt._pos]=Kt.result,++jt===At&&ft(Dt)},qt=Cr(bt),$t=0;$t<Pt;++$t)ot[$t]!=null&&((Et=Ct.get(ot[$t]))._pos=$t,Et.onsuccess=St,Et.onerror=qt,++At);At===0&&ft(Dt)})},get:function(Qe){var lt=Qe.trans,ot=Qe.key;return new Promise(function(ft,bt){ft=Wt(ft);var Et=lt.objectStore(Ye).get(ot);Et.onsuccess=function(Ct){return ft(Ct.target.result)},Et.onerror=Cr(bt)})},query:(nt=We,Xe=at,function(Qe){return new Promise(function(lt,ot){lt=Wt(lt);var ft,bt,Et,Ct,qt=Qe.trans,Pt=Qe.values,Dt=Qe.limit,St=Qe.query,At=(At=Qe.direction)!=null?At:"next",jt=Dt===1/0?void 0:Dt,$t=St.index,St=St.range,qt=qt.objectStore(Ye),qt=$t.isPrimaryKey?qt:qt.index($t.name),$t=V(St);if(Dt===0)return lt({result:[]});Xe?(St={query:$t,count:jt,direction:At},(ft=Pt?qt.getAll(St):qt.getAllKeys(St)).onsuccess=function(Kt){return lt({result:Kt.target.result})},ft.onerror=Cr(ot)):nt&&At==="next"?((ft=Pt?qt.getAll($t,jt):qt.getAllKeys($t,jt)).onsuccess=function(Kt){return lt({result:Kt.target.result})},ft.onerror=Cr(ot)):(bt=0,Et=!Pt&&"openKeyCursor"in qt?qt.openKeyCursor($t,At):qt.openCursor($t,At),Ct=[],Et.onsuccess=function(){var Kt=Et.result;return!Kt||(Ct.push(Pt?Kt.value:Kt.primaryKey),++bt===Dt)?lt({result:Ct}):void Kt.continue()},Et.onerror=Cr(ot))})}),openCursor:function(Qe){var lt=Qe.trans,ot=Qe.values,ft=Qe.query,bt=Qe.reverse,Et=Qe.unique;return new Promise(function(Ct,Pt){Ct=Wt(Ct);var jt=ft.index,Dt=ft.range,At=lt.objectStore(Ye),At=jt.isPrimaryKey?At:At.index(jt.name),jt=bt?Et?"prevunique":"prev":Et?"nextunique":"next",St=!ot&&"openKeyCursor"in At?At.openKeyCursor(V(Dt),jt):At.openCursor(V(Dt),jt);St.onerror=Cr(Pt),St.onsuccess=Wt(function(qt){var $t,Kt,Jt,B,k=St.result;k?(k.___id=++qs,k.done=!1,$t=k.continue.bind(k),Kt=(Kt=k.continuePrimaryKey)&&Kt.bind(k),Jt=k.advance.bind(k),B=function(){throw new Error("Cursor not stopped")},k.trans=lt,k.stop=k.continue=k.continuePrimaryKey=k.advance=function(){throw new Error("Cursor not started")},k.fail=Wt(Pt),k.next=function(){var F=this,ie=1;return this.start(function(){return ie--?F.continue():F.stop()}).then(function(){return F})},k.start=function(F){function ie(){if(St.result)try{F()}catch(tt){k.fail(tt)}else k.done=!0,k.start=function(){throw new Error("Cursor behind last entry")},k.stop()}var ke=new Promise(function(tt,Nt){tt=Wt(tt),St.onerror=Cr(Nt),k.fail=Nt,k.stop=function(cr){k.stop=k.continue=k.continuePrimaryKey=k.advance=B,tt(cr)}});return St.onsuccess=Wt(function(tt){St.onsuccess=ie,ie()}),k.continue=$t,k.continuePrimaryKey=Kt,k.advance=Jt,ie(),ke},Ct(k)):Ct(null)},Pt)})},count:function(Qe){var lt=Qe.query,ot=Qe.trans,ft=lt.index,bt=lt.range;return new Promise(function(Et,Ct){var Pt=ot.objectStore(Ye),Pt=ft.isPrimaryKey?Pt:Pt.index(ft.name),Dt=V(bt),Dt=Dt?Pt.count(Dt):Pt.count();Dt.onsuccess=Wt(function(At){return Et(At.target.result)}),Dt.onerror=Cr(Ct)})}}}pe=Te,Ne=fs((Te=v).objectStoreNames),Je=0<Ne.length?pe.objectStore(Ne[0]):{};var pe,Te={schema:{name:Te.name,tables:Ne.map(function(He){return pe.objectStore(He)}).map(function(He){var nt=He.keyPath,Xe=He.autoIncrement,Qe=u(nt),Ye={},Qe={name:He.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:nt==null,compound:Qe,keyPath:nt,autoIncrement:Xe,unique:!0,extractKey:mi(nt)},indexes:fs(He.indexNames).map(function(lt){return He.index(lt)}).map(function(bt){var Et=bt.name,ot=bt.unique,ft=bt.multiEntry,bt=bt.keyPath,Et={name:Et,compound:u(bt),keyPath:bt,unique:ot,multiEntry:ft,extractKey:mi(bt)};return Ye[Zn(bt)]=Et}),getIndexByKeyPath:function(lt){return Ye[Zn(lt)]}};return Ye[":id"]=Qe.primaryKey,nt!=null&&(Ye[Zn(nt)]=Qe.primaryKey),Qe})},hasGetAll:0<Ne.length&&"getAll"in Je&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604),hasIdb3Features:"getAllRecords"in Je},Ne=Te.schema,We=Te.hasGetAll,at=Te.hasIdb3Features,Je=Ne.tables.map(re),Ge={};return Je.forEach(function(He){return Ge[He.name]=He}),{stack:"dbcore",transaction:v.transaction.bind(v),table:function(He){if(Ge[He])return Ge[He];throw new Error("Table '".concat(He,"' not found"))},MIN_KEY:-1/0,MAX_KEY:Qn(P),schema:Ne}}function ps(v,P,M,V){return M=M.IDBKeyRange,P=$s(P,M,V),{dbcore:v.dbcore.reduce(function(re,pe){return pe=pe.create,n(n({},re),pe(re))},P)}}function gi(v,P){var M=P.db,M=ps(v._middlewares,M,v._deps,P);v.core=M.dbcore,v.tables.forEach(function(V){var re=V.name;v.core.schema.tables.some(function(pe){return pe.name===re})&&(V.core=v.core.table(re),v[re]instanceof v.Table)&&(v[re].core=V.core)})}function ei(v,P,M,V){M.forEach(function(re){var pe=V[re];P.forEach(function(Te){var Ne=function We(at,Je){return w(at,Je)||(at=y(at))&&We(at,Je)}(Te,re);(!Ne||"value"in Ne&&Ne.value===void 0)&&(Te===v.Transaction.prototype||Te instanceof v.Transaction?O(Te,re,{get:function(){return this.table(re)},set:function(We){S(this,re,{value:We,writable:!0,configurable:!0,enumerable:!0})}}):Te[re]=new v.Table(re,pe))})})}function bi(v,P){P.forEach(function(M){for(var V in M)M[V]instanceof v.Table&&delete M[V]})}function Us(v,P){return v._cfg.version-P._cfg.version}function Vs(v,P,M,V){var re=v._dbSchema,pe=(M.objectStoreNames.contains("$meta")&&!re.$meta&&(re.$meta=It("$meta",hs("")[0],[]),v._storeNames.push("$meta")),v._createTransaction("readwrite",v._storeNames,re)),Te=(pe.create(M),pe._completion.catch(V),pe._reject.bind(pe)),Ne=xt.transless||xt;Vr(function(){if(xt.trans=pe,xt.transless=Ne,P!==0)return gi(v,M),at=P,((We=pe).storeNames.includes("$meta")?We.table("$meta").get("version").then(function(Je){return Je??at}):be.resolve(at)).then(function(Qe){var Ge=v,He=Qe,nt=pe,Xe=M,Ye=[],Qe=Ge._versions,lt=Ge._dbSchema=Ti(0,Ge.idbdb,Xe);return(Qe=Qe.filter(function(ot){return ot._cfg.version>=He})).length===0?be.resolve():(Qe.forEach(function(ot){Ye.push(function(){var ft,bt,Et,Ct=lt,Pt=ot._cfg.dbschema,Dt=(Ln(Ge,Ct,Xe),Ln(Ge,Pt,Xe),lt=Ge._dbSchema=Pt,vi(Ct,Pt)),At=(Dt.add.forEach(function(jt){Vi(Xe,jt[0],jt[1].primKey,jt[1].indexes)}),Dt.change.forEach(function(jt){if(jt.recreate)throw new Me.Upgrade("Not yet support for changing primary key");var St=Xe.objectStore(jt.name);jt.add.forEach(function(qt){return Si(St,qt)}),jt.change.forEach(function(qt){St.deleteIndex(qt.name),Si(St,qt)}),jt.del.forEach(function(qt){return St.deleteIndex(qt)})}),ot._cfg.contentUpgrade);if(At&&ot._cfg.version>He)return gi(Ge,Xe),nt._memoizedTables={},ft=D(Pt),Dt.del.forEach(function(jt){ft[jt]=Ct[jt]}),bi(Ge,[Ge.Transaction.prototype]),ei(Ge,[Ge.Transaction.prototype],a(ft),ft),nt.schema=ft,(bt=he(At))&&tn(),Pt=be.follow(function(){var jt;(Et=At(nt))&&bt&&(jt=Rr.bind(null,null),Et.then(jt,jt))}),Et&&typeof Et.then=="function"?be.resolve(Et):Pt.then(function(){return Et})}),Ye.push(function(ft){var bt,Et,Ct=ot._cfg.dbschema;bt=Ct,Et=ft,[].slice.call(Et.db.objectStoreNames).forEach(function(Pt){return bt[Pt]==null&&Et.db.deleteObjectStore(Pt)}),bi(Ge,[Ge.Transaction.prototype]),ei(Ge,[Ge.Transaction.prototype],Ge._storeNames,Ge._dbSchema),nt.schema=Ge._dbSchema}),Ye.push(function(ft){Ge.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Ge.idbdb.version/10)===ot._cfg.version?(Ge.idbdb.deleteObjectStore("$meta"),delete Ge._dbSchema.$meta,Ge._storeNames=Ge._storeNames.filter(function(bt){return bt!=="$meta"})):ft.objectStore("$meta").put(ot._cfg.version,"version"))})}),function ot(){return Ye.length?be.resolve(Ye.shift()(nt.idbtrans)).then(ot):be.resolve()}().then(function(){Ki(lt,Xe)}))}).catch(Te);var We,at;a(re).forEach(function(Je){Vi(M,Je,re[Je].primKey,re[Je].indexes)}),gi(v,M),be.follow(function(){return v.on.populate.fire(pe)}).catch(Te)})}function ds(v,P){Ki(v._dbSchema,P),P.db.version%10!=0||P.objectStoreNames.contains("$meta")||P.db.createObjectStore("$meta").add(Math.ceil(P.db.version/10-1),"version");var M=Ti(0,v.idbdb,P);Ln(v,v._dbSchema,P);for(var V=0,re=vi(M,v._dbSchema).change;V<re.length;V++){var pe=(Te=>{if(Te.change.length||Te.recreate)return console.warn("Unable to patch indexes of table ".concat(Te.name," because it has changes on the type of index or primary key.")),{value:void 0};var Ne=P.objectStore(Te.name);Te.add.forEach(function(We){ht&&console.debug("Dexie upgrade patch: Creating missing index ".concat(Te.name,".").concat(We.src)),Si(Ne,We)})})(re[V]);if(typeof pe=="object")return pe.value}}function vi(v,P){var M,V={del:[],add:[],change:[]};for(M in v)P[M]||V.del.push(M);for(M in P){var re=v[M],pe=P[M];if(re){var Te={name:M,def:pe,recreate:!1,del:[],add:[],change:[]};if(""+(re.primKey.keyPath||"")!=""+(pe.primKey.keyPath||"")||re.primKey.auto!==pe.primKey.auto)Te.recreate=!0,V.change.push(Te);else{var Ne=re.idxByName,We=pe.idxByName,at=void 0;for(at in Ne)We[at]||Te.del.push(at);for(at in We){var Je=Ne[at],Ge=We[at];Je?Je.src!==Ge.src&&Te.change.push(Ge):Te.add.push(Ge)}(0<Te.del.length||0<Te.add.length||0<Te.change.length)&&V.change.push(Te)}}else V.add.push([M,pe])}return V}function Vi(v,P,M,V){var re=v.db.createObjectStore(P,M.keyPath?{keyPath:M.keyPath,autoIncrement:M.auto}:{autoIncrement:M.auto});V.forEach(function(pe){return Si(re,pe)})}function Ki(v,P){a(v).forEach(function(M){P.db.objectStoreNames.contains(M)||(ht&&console.debug("Dexie: Creating missing table",M),Vi(P,M,v[M].primKey,v[M].indexes))})}function Si(v,P){v.createIndex(P.name,P.keyPath,{unique:P.unique,multiEntry:P.multi})}function Ti(v,P,M){var V={};return T(P.objectStoreNames,0).forEach(function(re){for(var pe=M.objectStore(re),Te=$i(Ui(at=pe.keyPath),at||"",!0,!1,!!pe.autoIncrement,at&&typeof at!="string",!0),Ne=[],We=0;We<pe.indexNames.length;++We){var Je=pe.index(pe.indexNames[We]),at=Je.keyPath,Je=$i(Je.name,at,!!Je.unique,!!Je.multiEntry,!1,at&&typeof at!="string",!1);Ne.push(Je)}V[re]=It(re,Te,Ne)}),V}function Ln(v,P,M){for(var V=M.db.objectStoreNames,re=0;re<V.length;++re){var pe=V[re],Te=M.objectStore(pe);v._hasGetAll="getAll"in Te;for(var Ne=0;Ne<Te.indexNames.length;++Ne){var We,at=Te.indexNames[Ne],Je=Te.index(at).keyPath,Je=typeof Je=="string"?Je:"["+T(Je).join("+")+"]";P[pe]&&(We=P[pe].idxByName[Je])&&(We.name=at,delete P[pe].idxByName[Je],P[pe].idxByName[at]=We)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(v._hasGetAll=!1)}function hs(v){return v.split(",").map(function(P,M){var re=P.split(":"),V=(V=re[1])==null?void 0:V.trim(),re=(P=re[0].trim()).replace(/([&*]|\+\+)/g,""),pe=/^\[/.test(re)?re.match(/^\[(.*)\]$/)[1].split("+"):re;return $i(re,pe||null,/\&/.test(P),/\*/.test(P),/\+\+/.test(P),u(pe),M===0,V)})}En.prototype._createTableSchema=It,En.prototype._parseIndexSyntax=hs,En.prototype._parseStoresSpec=function(v,P){var M=this;a(v).forEach(function(V){if(v[V]!==null){var re=M._parseIndexSyntax(v[V]),pe=re.shift();if(!pe)throw new Me.Schema("Invalid schema for table "+V+": "+v[V]);if(pe.unique=!0,pe.multi)throw new Me.Schema("Primary key cannot be multiEntry*");re.forEach(function(Te){if(Te.auto)throw new Me.Schema("Only primary key can be marked as autoIncrement (++)");if(!Te.keyPath)throw new Me.Schema("Index must have a name and cannot be an empty string")}),pe=M._createTableSchema(V,pe,re),P[V]=pe}})},En.prototype.stores=function(M){var P=this.db,M=(this._cfg.storesSource=this._cfg.storesSource?p(this._cfg.storesSource,M):M,P._versions),V={},re={};return M.forEach(function(pe){p(V,pe._cfg.storesSource),re=pe._cfg.dbschema={},pe._parseStoresSpec(V,re)}),P._dbSchema=re,bi(P,[P._allTables,P,P.Transaction.prototype]),ei(P,[P._allTables,P,P.Transaction.prototype,this._cfg.tables],a(re),re),P._storeNames=a(re),this},En.prototype.upgrade=function(v){return this._cfg.contentUpgrade=gt(this._cfg.contentUpgrade||Ze,v),this};var Ks=En;function En(){}var ti=(()=>{var v,P,M;return typeof FinalizationRegistry<"u"&&typeof WeakRef<"u"?(v=new Set,P=new FinalizationRegistry(function(V){v.delete(V)}),{toArray:function(){return Array.from(v).map(function(V){return V.deref()}).filter(function(V){return V!==void 0})},add:function(V){var re=new WeakRef(V._novip);v.add(re),P.register(V._novip,re,re),v.size>V._options.maxConnections&&(re=v.values().next().value,v.delete(re),P.unregister(re))},remove:function(V){if(V)for(var re=v.values(),pe=re.next();!pe.done;){var Te=pe.value;if(Te.deref()===V._novip)return v.delete(Te),void P.unregister(Te);pe=re.next()}}}):(M=[],{toArray:function(){return M},add:function(V){M.push(V._novip)},remove:function(V){V&&(V=M.indexOf(V._novip))!==-1&&M.splice(V,1)}})})();function Wi(v,P){var M=v._dbNamesDB;return M||(M=v._dbNamesDB=new Xr(Wr,{addons:[],indexedDB:v,IDBKeyRange:P})).version(1).stores({dbnames:"name"}),M.table("dbnames")}function Ei(v){return v&&typeof v.databases=="function"}function Gi(v){return Vr(function(){return xt.letThrough=!0,v()})}function zi(v){return!("from"in v)}var Tr=function(v,P){var M;if(!this)return M=new Tr,v&&"d"in v&&p(M,v),M;p(this,arguments.length?{d:1,from:v,to:1<arguments.length?P:v}:{d:0})};function ri(v,P,M){var V=zt(P,M);if(!isNaN(V)){if(0<V)throw RangeError();if(zi(v))return p(v,{from:P,to:M,d:1});var V=v.l,re=v.r;if(zt(M,v.from)<0)return V?ri(V,P,M):v.l={from:P,to:M,d:1,l:null,r:null},z(v);if(0<zt(P,v.to))return re?ri(re,P,M):v.r={from:P,to:M,d:1,l:null,r:null},z(v);zt(P,v.from)<0&&(v.from=P,v.l=null,v.d=re?re.d+1:1),0<zt(M,v.to)&&(v.to=M,v.r=null,v.d=v.l?v.l.d+1:1),P=!v.r,V&&!v.l&&sn(v,V),re&&P&&sn(v,re)}}function sn(v,P){zi(P)||function M(V,re){var pe=re.from,Te=re.l,Ne=re.r;ri(V,pe,re.to),Te&&M(V,Te),Ne&&M(V,Ne)}(v,P)}function Hi(v,P){var M=xi(P),V=M.next();if(!V.done)for(var re=V.value,pe=xi(v),Te=pe.next(re.from),Ne=Te.value;!V.done&&!Te.done;){if(zt(Ne.from,re.to)<=0&&0<=zt(Ne.to,re.from))return!0;zt(re.from,Ne.from)<0?re=(V=M.next(Ne.from)).value:Ne=(Te=pe.next(re.from)).value}return!1}function xi(v){var P=zi(v)?null:{s:0,n:v};return{next:function(M){for(var V=0<arguments.length;P;)switch(P.s){case 0:if(P.s=1,V)for(;P.n.l&&zt(M,P.n.from)<0;)P={up:P,n:P.n.l,s:1};else for(;P.n.l;)P={up:P,n:P.n.l,s:1};case 1:if(P.s=2,!V||zt(M,P.n.to)<=0)return{value:P.n,done:!1};case 2:if(P.n.r){P.s=3,P={up:P,n:P.n.r,s:0};continue}case 3:P=P.up}return{done:!0}}}}function z(v){var P,M,V,re=(((re=v.r)==null?void 0:re.d)||0)-(((re=v.l)==null?void 0:re.d)||0),re=1<re?"r":re<-1?"l":"";re&&(P=re=="r"?"l":"r",M=n({},v),V=v[re],v.from=V.from,v.to=V.to,v[re]=V[re],M[re]=V[P],(v[P]=M).d=l(M)),v.d=l(v)}function l(M){var P=M.r,M=M.l;return(P?M?Math.max(P.d,M.d):P.d:M?M.d:0)+1}function i(v,P){return a(P).forEach(function(M){v[M]?sn(v[M],P[M]):v[M]=function V(re){var pe,Te,Ne={};for(pe in re)g(re,pe)&&(Te=re[pe],Ne[pe]=!Te||typeof Te!="object"||N.has(Te.constructor)?Te:V(Te));return Ne}(P[M])}),v}function c(v,P){return v.all||P.all||Object.keys(v).some(function(M){return P[M]&&Hi(P[M],v[M])})}b(Tr.prototype,((oe={add:function(v){return sn(this,v),this},addKey:function(v){return ri(this,v,v),this},addKeys:function(v){var P=this;return v.forEach(function(M){return ri(P,M,M)}),this},hasKey:function(v){var P=xi(this).next(v).value;return P&&zt(P.from,v)<=0&&0<=zt(P.to,v)}})[Ae]=function(){return xi(this)},oe));var d={},A={},Q=!1;function le(v){i(A,v),Q||(Q=!0,setTimeout(function(){Q=!1,Pe(A,!(A={}))},0))}function Pe(v,P){P===void 0&&(P=!1);var M=new Set;if(v.all)for(var V=0,re=Object.values(d);V<re.length;V++)Be(Ne=re[V],v,M,P);else for(var pe in v){var Te,Ne,pe=/^idb\:\/\/(.*)\/(.*)\//.exec(pe);pe&&(Te=pe[1],pe=pe[2],Ne=d["idb://".concat(Te,"/").concat(pe)])&&Be(Ne,v,M,P)}M.forEach(function(We){return We()})}function Be(v,P,M,V){for(var re=[],pe=0,Te=Object.entries(v.queries.query);pe<Te.length;pe++){for(var Ne=Te[pe],We=Ne[0],at=[],Je=0,Ge=Ne[1];Je<Ge.length;Je++){var He=Ge[Je];c(P,He.obsSet)?He.subscribers.forEach(function(Qe){return M.add(Qe)}):V&&at.push(He)}V&&re.push([We,at])}if(V)for(var nt=0,Xe=re;nt<Xe.length;nt++){var Ye=Xe[nt],We=Ye[0],at=Ye[1];v.queries.query[We]=at}}function Ue(v){var P=v._state,M=v._deps.indexedDB;if(P.isBeingOpened||v.idbdb)return P.dbReadyPromise.then(function(){return P.dbOpenError?dr(P.dbOpenError):v});P.isBeingOpened=!0,P.dbOpenError=null,P.openComplete=!1;var V=P.openCanceller,re=Math.round(10*v.verno),pe=!1;function Te(){if(P.openCanceller!==V)throw new Me.DatabaseClosed("db.open() was cancelled")}function Ne(){return new be(function(He,nt){if(Te(),!M)throw new Me.MissingAPI;var Xe=v.name,Ye=P.autoSchema||!re?M.open(Xe):M.open(Xe,re);if(!Ye)throw new Me.MissingAPI;Ye.onerror=Cr(nt),Ye.onblocked=Wt(v._fireOnBlocked),Ye.onupgradeneeded=Wt(function(Qe){var lt;Je=Ye.transaction,P.autoSchema&&!v._options.allowEmptyDB?(Ye.onerror=Tn,Je.abort(),Ye.result.close(),(lt=M.deleteDatabase(Xe)).onsuccess=lt.onerror=Wt(function(){nt(new Me.NoSuchDatabase("Database ".concat(Xe," doesnt exist")))})):(Je.onerror=Cr(nt),lt=Qe.oldVersion>Math.pow(2,62)?0:Qe.oldVersion,Ge=lt<1,v.idbdb=Ye.result,pe&&ds(v,Je),Vs(v,lt/10,Je,nt))},nt),Ye.onsuccess=Wt(function(){Je=null;var Qe,lt,ot,ft,bt,Et,Ct=v.idbdb=Ye.result,Pt=T(Ct.objectStoreNames);if(0<Pt.length)try{var Dt=Ct.transaction((bt=Pt).length===1?bt[0]:bt,"readonly");if(P.autoSchema)Et=Ct,ft=Dt,(ot=v).verno=Et.version/10,ft=ot._dbSchema=Ti(0,Et,ft),ot._storeNames=T(Et.objectStoreNames,0),ei(ot,[ot._allTables],a(ft),ft);else if(Ln(v,v._dbSchema,Dt),lt=Dt,((lt=vi(Ti(0,(Qe=v).idbdb,lt),Qe._dbSchema)).add.length||lt.change.some(function(At){return At.add.length||At.change.length}))&&!pe)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Ct.close(),re=Ct.version+1,pe=!0,He(Ne());gi(v,Dt)}catch{}ti.add(v),Ct.onversionchange=Wt(function(At){P.vcFired=!0,v.on("versionchange").fire(At)}),Ct.onclose=Wt(function(){v.close({disableAutoOpen:!1})}),Ge&&(Pt=v._deps,bt=Xe,Ei(Et=Pt.indexedDB)||bt===Wr||Wi(Et,Pt.IDBKeyRange).put({name:bt}).catch(Ze)),He()},nt)}).catch(function(He){switch(He==null?void 0:He.name){case"UnknownError":if(0<P.PR1398_maxLoop)return P.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Ne();break;case"VersionError":if(0<re)return re=0,Ne()}return be.reject(He)})}var We,at=P.dbReadyResolve,Je=null,Ge=!1;return be.race([V,(typeof navigator>"u"?be.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(He){function nt(){return indexedDB.databases().finally(He)}We=setInterval(nt,100),nt()}).finally(function(){return clearInterval(We)}):Promise.resolve()).then(Ne)]).then(function(){return Te(),P.onReadyBeingFired=[],be.resolve(Gi(function(){return v.on.ready.fire(v.vip)})).then(function He(){var nt;if(0<P.onReadyBeingFired.length)return nt=P.onReadyBeingFired.reduce(gt,Ze),P.onReadyBeingFired=[],be.resolve(Gi(function(){return nt(v.vip)})).then(He)})}).finally(function(){P.openCanceller===V&&(P.onReadyBeingFired=null,P.isBeingOpened=!1)}).catch(function(He){P.dbOpenError=He;try{Je&&Je.abort()}catch{}return V===P.openCanceller&&v._close(),dr(He)}).finally(function(){P.openComplete=!0,at()}).then(function(){var He;return Ge&&(He={},v.tables.forEach(function(nt){nt.schema.indexes.forEach(function(Xe){Xe.name&&(He["idb://".concat(v.name,"/").concat(nt.name,"/").concat(Xe.name)]=new Tr(-1/0,[[[]]]))}),He["idb://".concat(v.name,"/").concat(nt.name,"/")]=He["idb://".concat(v.name,"/").concat(nt.name,"/:dels")]=new Tr(-1/0,[[[]]])}),Yr(Mn).fire(He),Pe(He,!0)),v})}function ct(v){function P(pe){return v.next(pe)}var M=re(P),V=re(function(pe){return v.throw(pe)});function re(pe){return function(Ne){var Ne=pe(Ne),We=Ne.value;return Ne.done?We:We&&typeof We.then=="function"?We.then(M,V):u(We)?Promise.all(We).then(M,V):M(We)}}return re(P)()}function vt(v,P,M){for(var V=u(v)?v.slice():[v],re=0;re<M;++re)V.push(P);return V}var wt={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(v){return n(n({},v),{table:function(V){var M=v.table(V),V=M.schema,re=Object.create(null),pe=[];function Te(He,nt,Xe){var ot=Zn(He),Ye=re[ot]=re[ot]||[],Qe=He==null?0:typeof He=="string"?1:He.length,lt=0<nt,ot=n(n({},Xe),{name:lt?"".concat(ot,"(virtual-from:").concat(Xe.name,")"):Xe.name,lowLevelIndex:Xe,isVirtual:lt,keyTail:nt,keyLength:Qe,extractKey:mi(He),unique:!lt&&Xe.unique});return Ye.push(ot),ot.isPrimaryKey||pe.push(ot),1<Qe&&Te(Qe===2?He[0]:He.slice(0,Qe-1),nt+1,Xe),Ye.sort(function(ft,bt){return ft.keyTail-bt.keyTail}),ot}var Ne=Te(V.primaryKey.keyPath,0,V.primaryKey);re[":id"]=[Ne];for(var We=0,at=V.indexes;We<at.length;We++){var Je=at[We];Te(Je.keyPath,0,Je)}function Ge(He){var nt,Xe=He.query.index;return Xe.isVirtual?n(n({},He),{query:{index:Xe.lowLevelIndex,range:(nt=He.query.range,Xe=Xe.keyTail,{type:nt.type===1?2:nt.type,lower:vt(nt.lower,nt.lowerOpen?v.MAX_KEY:v.MIN_KEY,Xe),lowerOpen:!0,upper:vt(nt.upper,nt.upperOpen?v.MIN_KEY:v.MAX_KEY,Xe),upperOpen:!0})}}):He}return n(n({},M),{schema:n(n({},V),{primaryKey:Ne,indexes:pe,getIndexByKeyPath:function(He){return(He=re[Zn(He)])&&He[0]}}),count:function(He){return M.count(Ge(He))},query:function(He){return M.query(Ge(He))},openCursor:function(He){var nt=He.query.index,Xe=nt.keyTail,Ye=nt.keyLength;return nt.isVirtual?M.openCursor(Ge(He)).then(function(lt){return lt&&Qe(lt)}):M.openCursor(He);function Qe(lt){return Object.create(lt,{continue:{value:function(ot){ot!=null?lt.continue(vt(ot,He.reverse?v.MAX_KEY:v.MIN_KEY,Xe)):He.unique?lt.continue(lt.key.slice(0,Ye).concat(He.reverse?v.MIN_KEY:v.MAX_KEY,Xe)):lt.continue()}},continuePrimaryKey:{value:function(ot,ft){lt.continuePrimaryKey(vt(ot,v.MAX_KEY,Xe),ft)}},primaryKey:{get:function(){return lt.primaryKey}},key:{get:function(){var ot=lt.key;return Ye===1?ot[0]:ot.slice(0,Ye)}},value:{get:function(){return lt.value}}})}}})}})}};function Ot(v,P,M,V){return M=M||{},V=V||"",a(v).forEach(function(re){var pe,Te,Ne;g(P,re)?(pe=v[re],Te=P[re],typeof pe=="object"&&typeof Te=="object"&&pe&&Te?(Ne=Ce(pe))!==Ce(Te)?M[V+re]=P[re]:Ne==="Object"?Ot(pe,Te,M,V+re+"."):pe!==Te&&(M[V+re]=P[re]):pe!==Te&&(M[V+re]=P[re])):M[V+re]=void 0}),a(P).forEach(function(re){g(v,re)||(M[V+re]=P[re])}),M}function Gt(v,P){return P.type==="delete"?P.keys:P.keys||P.values.map(v.extractKey)}var or={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(v){return n(n({},v),{table:function(P){var M=v.table(P),V=M.schema.primaryKey;return n(n({},M),{mutate:function(re){var pe=xt.trans,Te=pe.table(P).hook,Ne=Te.deleting,We=Te.creating,at=Te.updating;switch(re.type){case"add":if(We.fire===Ze)break;return pe._promise("readwrite",function(){return Je(re)},!0);case"put":if(We.fire===Ze&&at.fire===Ze)break;return pe._promise("readwrite",function(){return Je(re)},!0);case"delete":if(Ne.fire===Ze)break;return pe._promise("readwrite",function(){return Je(re)},!0);case"deleteRange":if(Ne.fire===Ze)break;return pe._promise("readwrite",function(){return function Ge(He,nt,Xe){return M.query({trans:He,values:!1,query:{index:V,range:nt},limit:Xe}).then(function(Ye){var Qe=Ye.result;return Je({type:"delete",keys:Qe,trans:He}).then(function(lt){return 0<lt.numFailures?Promise.reject(lt.failures[0]):Qe.length<Xe?{failures:[],numFailures:0,lastResult:void 0}:Ge(He,n(n({},nt),{lower:Qe[Qe.length-1],lowerOpen:!0}),Xe)})})}(re.trans,re.range,1e4)},!0)}return M.mutate(re);function Je(Ge){var He,nt,Xe,Ye=xt.trans,Qe=Ge.keys||Gt(V,Ge);if(Qe)return(Ge=Ge.type==="add"||Ge.type==="put"?n(n({},Ge),{keys:Qe}):n({},Ge)).type!=="delete"&&(Ge.values=s([],Ge.values)),Ge.keys&&(Ge.keys=s([],Ge.keys)),He=M,Xe=Qe,((nt=Ge).type==="add"?Promise.resolve([]):He.getMany({trans:nt.trans,keys:Xe,cache:"immutable"})).then(function(lt){var ot=Qe.map(function(ft,bt){var Et,Ct,Pt,Dt=lt[bt],At={onerror:null,onsuccess:null};return Ge.type==="delete"?Ne.fire.call(At,ft,Dt,Ye):Ge.type==="add"||Dt===void 0?(Et=We.fire.call(At,ft,Ge.values[bt],Ye),ft==null&&Et!=null&&(Ge.keys[bt]=ft=Et,V.outbound||I(Ge.values[bt],V.keyPath,ft))):(Et=Ot(Dt,Ge.values[bt]),(Ct=at.fire.call(At,Et,ft,Dt,Ye))&&(Pt=Ge.values[bt],Object.keys(Ct).forEach(function(jt){g(Pt,jt)?Pt[jt]=Ct[jt]:I(Pt,jt,Ct[jt])}))),At});return M.mutate(Ge).then(function(ft){for(var bt=ft.failures,Et=ft.results,Ct=ft.numFailures,ft=ft.lastResult,Pt=0;Pt<Qe.length;++Pt){var Dt=(Et||Qe)[Pt],At=ot[Pt];Dt==null?At.onerror&&At.onerror(bt[Pt]):At.onsuccess&&At.onsuccess(Ge.type==="put"&&lt[Pt]?Ge.values[Pt]:Dt)}return{failures:bt,results:Et,numFailures:Ct,lastResult:ft}}).catch(function(ft){return ot.forEach(function(bt){return bt.onerror&&bt.onerror(ft)}),Promise.reject(ft)})});throw new Error("Keys missing")}}})}})}};function Ft(v,P,M){try{if(!P||P.keys.length<v.length)return null;for(var V=[],re=0,pe=0;re<P.keys.length&&pe<v.length;++re)zt(P.keys[re],v[pe])===0&&(V.push(M?ne(P.values[re]):P.values[re]),++pe);return V.length===v.length?V:null}catch{return null}}var sr={stack:"dbcore",level:-1,create:function(v){return{table:function(P){var M=v.table(P);return n(n({},M),{getMany:function(V){var re;return V.cache?(re=Ft(V.keys,V.trans._cache,V.cache==="clone"))?be.resolve(re):M.getMany(V).then(function(pe){return V.trans._cache={keys:V.keys,values:V.cache==="clone"?ne(pe):pe},pe}):M.getMany(V)},mutate:function(V){return V.type!=="add"&&(V.trans._cache=null),M.mutate(V)}})}}}};function xn(v,P){return v.trans.mode==="readonly"&&!!v.subscr&&!v.trans.explicit&&v.trans.db._options.cache!=="disabled"&&!P.schema.primaryKey.outbound}function an(v,P){switch(v){case"query":return P.values&&!P.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var ys={stack:"dbcore",level:0,name:"Observability",create:function(v){var P=v.schema.name,M=new Tr(v.MIN_KEY,v.MAX_KEY);return n(n({},v),{transaction:function(V,re,pe){if(xt.subscr&&re!=="readonly")throw new Me.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(xt.querier));return v.transaction(V,re,pe)},table:function(V){function re(Qe){var Ye,Qe=Qe.query;return[Ye=Qe.index,new Tr((Ye=(Qe=Qe.range).lower)!=null?Ye:v.MIN_KEY,(Ye=Qe.upper)!=null?Ye:v.MAX_KEY)]}var pe=v.table(V),Te=pe.schema,Ne=Te.primaryKey,We=Te.indexes,at=Ne.extractKey,Je=Ne.outbound,Ge=Ne.autoIncrement&&We.filter(function(Xe){return Xe.compound&&Xe.keyPath.includes(Ne.keyPath)}),He=n(n({},pe),{mutate:function(Xe){function Ye(St){return St="idb://".concat(P,"/").concat(V,"/").concat(St),bt[St]||(bt[St]=new Tr)}var Qe,lt,ot,ft=Xe.trans,bt=Xe.mutatedParts||(Xe.mutatedParts={}),Et=Ye(""),Ct=Ye(":dels"),Pt=Xe.type,At=Xe.type==="deleteRange"?[Xe.range]:Xe.type==="delete"?[Xe.keys]:Xe.values.length<50?[Gt(Ne,Xe).filter(function(St){return St}),Xe.values]:[],Dt=At[0],At=At[1],jt=Xe.trans._cache;return u(Dt)?(Et.addKeys(Dt),(Pt=Pt==="delete"||Dt.length===At.length?Ft(Dt,jt):null)||Ct.addKeys(Dt),(Pt||At)&&(Qe=Ye,lt=Pt,ot=At,Te.indexes.forEach(function(St){var qt=Qe(St.name||"");function $t(Jt){return Jt!=null?St.extractKey(Jt):null}function Kt(Jt){St.multiEntry&&u(Jt)?Jt.forEach(function(B){return qt.addKey(B)}):qt.addKey(Jt)}(lt||ot).forEach(function(Jt,F){var k=lt&&$t(lt[F]),F=ot&&$t(ot[F]);zt(k,F)!==0&&(k!=null&&Kt(k),F!=null)&&Kt(F)})}))):Dt?(At={from:(jt=Dt.lower)!=null?jt:v.MIN_KEY,to:(Pt=Dt.upper)!=null?Pt:v.MAX_KEY},Ct.add(At),Et.add(At)):(Et.add(M),Ct.add(M),Te.indexes.forEach(function(St){return Ye(St.name).add(M)})),pe.mutate(Xe).then(function(St){return!Dt||Xe.type!=="add"&&Xe.type!=="put"||(Et.addKeys(St.results),Ge&&Ge.forEach(function(qt){for(var $t=Xe.values.map(function(k){return qt.extractKey(k)}),Kt=qt.keyPath.findIndex(function(k){return k===Ne.keyPath}),Jt=0,B=St.results.length;Jt<B;++Jt)$t[Jt][Kt]=St.results[Jt];Ye(qt.name).addKeys($t)})),ft.mutatedParts=i(ft.mutatedParts||{},bt),St})}}),nt={get:function(Xe){return[Ne,new Tr(Xe.key)]},getMany:function(Xe){return[Ne,new Tr().addKeys(Xe.keys)]},count:re,query:re,openCursor:re};return a(nt).forEach(function(Xe){He[Xe]=function(Ye){var Qe=xt.subscr,lt=!!Qe,ot=xn(xt,pe)&&an(Xe,Ye)?Ye.obsSet={}:Qe;if(lt){var ft,Qe=function(At){return At="idb://".concat(P,"/").concat(V,"/").concat(At),ot[At]||(ot[At]=new Tr)},bt=Qe(""),Et=Qe(":dels"),lt=nt[Xe](Ye),Ct=lt[0],lt=lt[1];if((Xe==="query"&&Ct.isPrimaryKey&&!Ye.values?Et:Qe(Ct.name||"")).add(lt),!Ct.isPrimaryKey){if(Xe!=="count")return ft=Xe==="query"&&Je&&Ye.values&&pe.query(n(n({},Ye),{values:!1})),pe[Xe].apply(this,arguments).then(function(At){if(Xe==="query"){if(Je&&Ye.values)return ft.then(function($t){return $t=$t.result,bt.addKeys($t),At});var jt=Ye.values?At.result.map(at):At.result;(Ye.values?bt:Et).addKeys(jt)}else{var St,qt;if(Xe==="openCursor")return qt=Ye.values,(St=At)&&Object.create(St,{key:{get:function(){return Et.addKey(St.primaryKey),St.key}},primaryKey:{get:function(){var $t=St.primaryKey;return Et.addKey($t),$t}},value:{get:function(){return qt&&bt.addKey(St.primaryKey),St.value}}})}return At});Et.add(M)}}return pe[Xe].apply(this,arguments)}}),He}})}};function Ji(v,P,M){var V;return M.numFailures===0?P:P.type==="deleteRange"||(V=P.keys?P.keys.length:"values"in P&&P.values?P.values.length:1,M.numFailures===V)?null:(V=n({},P),u(V.keys)&&(V.keys=V.keys.filter(function(re,pe){return!(pe in M.failures)})),"values"in V&&u(V.values)&&(V.values=V.values.filter(function(re,pe){return!(pe in M.failures)})),V)}function Pi(v,P){return M=v,((V=P).lower===void 0||(V.lowerOpen?0<zt(M,V.lower):0<=zt(M,V.lower)))&&(M=v,(V=P).upper===void 0||(V.upperOpen?zt(M,V.upper)<0:zt(M,V.upper)<=0));var M,V}function Yi(v,P,M,V,re,pe){var Te,Ne,We,at,Je,Ge,He;return!M||M.length===0||(Te=P.query.index,Ne=Te.multiEntry,We=P.query.range,at=V.schema.primaryKey.extractKey,Je=Te.extractKey,Ge=(Te.lowLevelIndex||Te).extractKey,(V=M.reduce(function(nt,Xe){var Ye=nt,Qe=[];if(Xe.type==="add"||Xe.type==="put")for(var lt=new Tr,ot=Xe.values.length-1;0<=ot;--ot){var ft,bt=Xe.values[ot],Et=at(bt);!lt.hasKey(Et)&&(ft=Je(bt),Ne&&u(ft)?ft.some(function(jt){return Pi(jt,We)}):Pi(ft,We))&&(lt.addKey(Et),Qe.push(bt))}switch(Xe.type){case"add":var Ct=new Tr().addKeys(P.values?nt.map(function(St){return at(St)}):nt),Ye=nt.concat(P.values?Qe.filter(function(St){return St=at(St),!Ct.hasKey(St)&&(Ct.addKey(St),!0)}):Qe.map(function(St){return at(St)}).filter(function(St){return!Ct.hasKey(St)&&(Ct.addKey(St),!0)}));break;case"put":var Pt=new Tr().addKeys(Xe.values.map(function(St){return at(St)}));Ye=nt.filter(function(St){return!Pt.hasKey(P.values?at(St):St)}).concat(P.values?Qe:Qe.map(function(St){return at(St)}));break;case"delete":var Dt=new Tr().addKeys(Xe.keys);Ye=nt.filter(function(St){return!Dt.hasKey(P.values?at(St):St)});break;case"deleteRange":var At=Xe.range;Ye=nt.filter(function(St){return!Pi(at(St),At)})}return Ye},v))===v)?v:(He=function(nt,Xe){return zt(Ge(nt),Ge(Xe))||zt(at(nt),at(Xe))},V.sort(P.direction==="prev"||P.direction==="prevunique"?function(nt,Xe){return He(Xe,nt)}:He),P.limit&&P.limit<1/0&&(V.length>P.limit?V.length=P.limit:v.length===P.limit&&V.length<P.limit&&(re.dirty=!0)),pe?Object.freeze(V):V)}function Xi(v,P){return zt(v.lower,P.lower)===0&&zt(v.upper,P.upper)===0&&!!v.lowerOpen==!!P.lowerOpen&&!!v.upperOpen==!!P.upperOpen}function ms(v,P){return((M,V,re,pe)=>{if(M===void 0)return V!==void 0?-1:0;if(V===void 0)return 1;if((M=zt(M,V))===0){if(re&&pe)return 0;if(re)return 1;if(pe)return-1}return M})(v.lower,P.lower,v.lowerOpen,P.lowerOpen)<=0&&0<=((M,V,re,pe)=>{if(M===void 0)return V!==void 0?1:0;if(V===void 0)return-1;if((M=zt(M,V))===0){if(re&&pe)return 0;if(re)return-1;if(pe)return 1}return M})(v.upper,P.upper,v.upperOpen,P.upperOpen)}function gs(v,P,M,V){v.subscribers.add(M),V.addEventListener("abort",function(){var re,pe;v.subscribers.delete(M),v.subscribers.size===0&&(re=v,pe=P,setTimeout(function(){re.subscribers.size===0&&ue(pe,re)},3e3))})}var bs={stack:"dbcore",level:0,name:"Cache",create:function(v){var P=v.schema.name;return n(n({},v),{transaction:function(M,V,re){var pe,Te,Ne=v.transaction(M,V,re);return V==="readwrite"&&(re=(pe=new AbortController).signal,Ne.addEventListener("abort",(Te=function(We){return function(){if(pe.abort(),V==="readwrite"){for(var at=new Set,Je=0,Ge=M;Je<Ge.length;Je++){var He=Ge[Je],nt=d["idb://".concat(P,"/").concat(He)];if(nt){var Xe=v.table(He),Ye=nt.optimisticOps.filter(function(St){return St.trans===Ne});if(Ne._explicit&&We&&Ne.mutatedParts)for(var Qe=0,lt=Object.values(nt.queries.query);Qe<lt.length;Qe++)for(var ot=0,ft=(Ct=lt[Qe]).slice();ot<ft.length;ot++)c((Pt=ft[ot]).obsSet,Ne.mutatedParts)&&(ue(Ct,Pt),Pt.subscribers.forEach(function(St){return at.add(St)}));else if(0<Ye.length){nt.optimisticOps=nt.optimisticOps.filter(function(St){return St.trans!==Ne});for(var bt=0,Et=Object.values(nt.queries.query);bt<Et.length;bt++)for(var Ct,Pt,Dt,At=0,jt=(Ct=Et[bt]).slice();At<jt.length;At++)(Pt=jt[At]).res!=null&&Ne.mutatedParts&&(We&&!Pt.dirty?(Dt=Object.isFrozen(Pt.res),Dt=Yi(Pt.res,Pt.req,Ye,Xe,Pt,Dt),Pt.dirty?(ue(Ct,Pt),Pt.subscribers.forEach(function(St){return at.add(St)})):Dt!==Pt.res&&(Pt.res=Dt,Pt.promise=be.resolve({result:Dt}))):(Pt.dirty&&ue(Ct,Pt),Pt.subscribers.forEach(function(St){return at.add(St)})))}}}at.forEach(function(St){return St()})}}})(!1),{signal:re}),Ne.addEventListener("error",Te(!1),{signal:re}),Ne.addEventListener("complete",Te(!0),{signal:re})),Ne},table:function(M){var V=v.table(M),re=V.schema.primaryKey;return n(n({},V),{mutate:function(pe){var Te,Ne=xt.trans;return!re.outbound&&Ne.db._options.cache!=="disabled"&&!Ne.explicit&&Ne.idbtrans.mode==="readwrite"&&(Te=d["idb://".concat(P,"/").concat(M)])?(Ne=V.mutate(pe),pe.type!=="add"&&pe.type!=="put"||!(50<=pe.values.length||Gt(re,pe).some(function(We){return We==null}))?(Te.optimisticOps.push(pe),pe.mutatedParts&&le(pe.mutatedParts),Ne.then(function(We){0<We.numFailures&&(ue(Te.optimisticOps,pe),(We=Ji(0,pe,We))&&Te.optimisticOps.push(We),pe.mutatedParts)&&le(pe.mutatedParts)}),Ne.catch(function(){ue(Te.optimisticOps,pe),pe.mutatedParts&&le(pe.mutatedParts)})):Ne.then(function(We){var at=Ji(0,n(n({},pe),{values:pe.values.map(function(Je,Ge){var He;return We.failures[Ge]?Je:(I(He=(He=re.keyPath)!=null&&He.includes(".")?ne(Je):n({},Je),re.keyPath,We.results[Ge]),He)})}),We);Te.optimisticOps.push(at),queueMicrotask(function(){return pe.mutatedParts&&le(pe.mutatedParts)})}),Ne):V.mutate(pe)},query:function(pe){var Te,Ne,We,at,Je,Ge,He;return xn(xt,V)&&an("query",pe)?(Te=((We=xt.trans)==null?void 0:We.db._options.cache)==="immutable",Ne=(We=xt).requery,We=We.signal,Ge=((nt,Xe,Ye,Qe)=>{var lt=d["idb://".concat(nt,"/").concat(Xe)];if(!lt)return[];if(!(nt=lt.queries[Ye]))return[null,!1,lt,null];var ot=nt[(Qe.query?Qe.query.index.name:null)||""];if(!ot)return[null,!1,lt,null];switch(Ye){case"query":var ft=(bt=Qe.direction)!=null?bt:"next",bt=ot.find(function(Et){var Ct;return Et.req.limit===Qe.limit&&Et.req.values===Qe.values&&((Ct=Et.req.direction)!=null?Ct:"next")===ft&&Xi(Et.req.query.range,Qe.query.range)});return bt?[bt,!0,lt,ot]:[ot.find(function(Et){var Ct;return("limit"in Et.req?Et.req.limit:1/0)>=Qe.limit&&((Ct=Et.req.direction)!=null?Ct:"next")===ft&&(!Qe.values||Et.req.values)&&ms(Et.req.query.range,Qe.query.range)}),!1,lt,ot];case"count":return bt=ot.find(function(Et){return Xi(Et.req.query.range,Qe.query.range)}),[bt,!!bt,lt,ot]}})(P,M,"query",pe),He=Ge[0],at=Ge[2],Je=Ge[3],He&&Ge[1]?He.obsSet=pe.obsSet:(Ge=V.query(pe).then(function(nt){var Xe=nt.result;if(He&&(He.res=Xe),Te){for(var Ye=0,Qe=Xe.length;Ye<Qe;++Ye)Object.freeze(Xe[Ye]);Object.freeze(Xe)}return nt}).catch(function(nt){return Je&&He&&ue(Je,He),Promise.reject(nt)}),He={obsSet:pe.obsSet,promise:Ge,subscribers:new Set,type:"query",req:pe,dirty:!1},Je?Je.push(He):(Je=[He],(at=at||(d["idb://".concat(P,"/").concat(M)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[pe.query.index.name||""]=Je)),gs(He,Je,Ne,We),He.promise.then(function(nt){return nt=Yi(nt.result,pe,at==null?void 0:at.optimisticOps,V,He,Te),{result:Te?nt:ne(nt)}})):V.query(pe)}})}})}};function ni(v,P){return new Proxy(v,{get:function(M,V,re){return V==="db"?P:Reflect.get(M,V,re)}})}hr.prototype.version=function(v){if(isNaN(v)||v<.1)throw new Me.Type("Given version is not a positive number");if(v=Math.round(10*v)/10,this.idbdb||this._state.isBeingOpened)throw new Me.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,v);var P=this._versions,M=P.filter(function(V){return V._cfg.version===v})[0];return M||(M=new this.Version(v),P.push(M),P.sort(Us),M.stores({}),this._state.autoSchema=!1),M},hr.prototype._whenReady=function(v){var P=this;return this.idbdb&&(this._state.openComplete||xt.letThrough||this._vip)?v():new be(function(M,V){if(P._state.openComplete)return V(new Me.DatabaseClosed(P._state.dbOpenError));if(!P._state.isBeingOpened){if(!P._state.autoOpen)return void V(new Me.DatabaseClosed);P.open().catch(Ze)}P._state.dbReadyPromise.then(M,V)}).then(v)},hr.prototype.use=function(re){var P=re.stack,M=re.create,V=re.level,re=re.name,pe=(re&&this.unuse({stack:P,name:re}),this._middlewares[P]||(this._middlewares[P]=[]));return pe.push({stack:P,create:M,level:V??10,name:re}),pe.sort(function(Te,Ne){return Te.level-Ne.level}),this},hr.prototype.unuse=function(v){var P=v.stack,M=v.name,V=v.create;return P&&this._middlewares[P]&&(this._middlewares[P]=this._middlewares[P].filter(function(re){return V?re.create!==V:!!M&&re.name!==M})),this},hr.prototype.open=function(){var v=this;return Nr(pt,function(){return Ue(v)})},hr.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var v=this._state;if(ti.remove(this),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}v.isBeingOpened||(v.dbReadyPromise=new be(function(P){v.dbReadyResolve=P}),v.openCanceller=new be(function(P,M){v.cancelOpen=M}))},hr.prototype.close=function(P){var P=(P===void 0?{disableAutoOpen:!0}:P).disableAutoOpen,M=this._state;P?(M.isBeingOpened&&M.cancelOpen(new Me.DatabaseClosed),this._close(),M.autoOpen=!1,M.dbOpenError=new Me.DatabaseClosed):(this._close(),M.autoOpen=this._options.autoOpen||M.isBeingOpened,M.openComplete=!1,M.dbOpenError=null)},hr.prototype.delete=function(v){var P=this,M=(v===void 0&&(v={disableAutoOpen:!0}),0<arguments.length&&typeof arguments[0]!="object"),V=this._state;return new be(function(re,pe){function Te(){P.close(v);var Ne=P._deps.indexedDB.deleteDatabase(P.name);Ne.onsuccess=Wt(function(){var We,at,Je;We=P._deps,at=P.name,Ei(Je=We.indexedDB)||at===Wr||Wi(Je,We.IDBKeyRange).delete(at).catch(Ze),re()}),Ne.onerror=Cr(pe),Ne.onblocked=P._fireOnBlocked}if(M)throw new Me.InvalidArgument("Invalid closeOptions argument to db.delete()");V.isBeingOpened?V.dbReadyPromise.then(Te):Te()})},hr.prototype.backendDB=function(){return this.idbdb},hr.prototype.isOpen=function(){return this.idbdb!==null},hr.prototype.hasBeenClosed=function(){var v=this._state.dbOpenError;return v&&v.name==="DatabaseClosed"},hr.prototype.hasFailed=function(){return this._state.dbOpenError!==null},hr.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(hr.prototype,"tables",{get:function(){var v=this;return a(this._allTables).map(function(P){return v._allTables[P]})},enumerable:!1,configurable:!0}),hr.prototype.transaction=function(){var v=(function(P,M,V){var re=arguments.length;if(re<2)throw new Me.InvalidArgument("Too few arguments");for(var pe=new Array(re-1);--re;)pe[re-1]=arguments[re];return V=pe.pop(),[P,J(pe),V]}).apply(this,arguments);return this._transaction.apply(this,v)},hr.prototype._transaction=function(v,P,M){var V,re,pe=this,Te=xt.trans,Ne=(Te&&Te.db===this&&v.indexOf("!")===-1||(Te=null),v.indexOf("?")!==-1);v=v.replace("!","").replace("?","");try{if(re=P.map(function(at){if(at=at instanceof pe.Table?at.name:at,typeof at!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return at}),v=="r"||v===yn)V=yn;else{if(v!="rw"&&v!=Ri)throw new Me.InvalidArgument("Invalid transaction mode: "+v);V=Ri}if(Te){if(Te.mode===yn&&V===Ri){if(!Ne)throw new Me.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");Te=null}Te&&re.forEach(function(at){if(Te&&Te.storeNames.indexOf(at)===-1){if(!Ne)throw new Me.SubTransaction("Table "+at+" not included in parent transaction.");Te=null}}),Ne&&Te&&!Te.active&&(Te=null)}}catch(at){return Te?Te._promise(null,function(Je,Ge){Ge(at)}):dr(at)}var We=(function at(Je,Ge,He,nt,Xe){return be.resolve().then(function(){var ot=xt.transless||xt,Ye=Je._createTransaction(Ge,He,Je._dbSchema,nt),ot=(Ye.explicit=!0,{trans:Ye,transless:ot});if(nt)Ye.idbtrans=nt.idbtrans;else try{Ye.create(),Ye.idbtrans._explicit=!0,Je._state.PR1398_maxLoop=3}catch(ft){return ft.name===Ee.InvalidState&&Je.isOpen()&&0<--Je._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Je.close({disableAutoOpen:!1}),Je.open().then(function(){return at(Je,Ge,He,null,Xe)})):dr(ft)}var Qe,lt=he(Xe),ot=(lt&&tn(),be.follow(function(){var ft;(Qe=Xe.call(Ye,Ye))&&(lt?(ft=Rr.bind(null,null),Qe.then(ft,ft)):typeof Qe.next=="function"&&typeof Qe.throw=="function"&&(Qe=ct(Qe)))},ot));return(Qe&&typeof Qe.then=="function"?be.resolve(Qe).then(function(ft){return Ye.active?ft:dr(new Me.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):ot.then(function(){return Qe})).then(function(ft){return nt&&Ye._resolve(),Ye._completion.then(function(){return ft})}).catch(function(ft){return Ye._reject(ft),dr(ft)})})}).bind(null,this,V,re,Te,M);return Te?Te._promise(V,We,"lock"):xt.trans?Nr(xt.transless,function(){return pe._whenReady(We)}):this._whenReady(We)},hr.prototype.table=function(v){if(g(this._allTables,v))return this._allTables[v];throw new Me.InvalidTable("Table ".concat(v," does not exist"))};var Xr=hr;function hr(v,P){var M,V,re,pe,Te,Ne=this,We=(this._middlewares={},this.verno=0,hr.dependencies),We=(this._options=P=n({addons:hr.addons,autoOpen:!0,indexedDB:We.indexedDB,IDBKeyRange:We.IDBKeyRange,cache:"cloned",maxConnections:1e3},P),this._deps={indexedDB:P.indexedDB,IDBKeyRange:P.IDBKeyRange},P.addons),at=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ze,dbReadyPromise:null,cancelOpen:Ze,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:P.autoOpen}),Je=(at.dbReadyPromise=new be(function(Ge){at.dbReadyResolve=Ge}),at.openCanceller=new be(function(Ge,He){at.cancelOpen=He}),this._state=at,this.name=v,this.on=gn(this,"populate","blocked","versionchange","close",{ready:[gt,Ze]}),this.once=function(Ge,He){var nt=function(){for(var Xe=[],Ye=0;Ye<arguments.length;Ye++)Xe[Ye]=arguments[Ye];Ne.on(Ge).unsubscribe(nt),He.apply(Ne,Xe)};return Ne.on(Ge,nt)},this.on.ready.subscribe=x(this.on.ready.subscribe,function(Ge){return function(He,nt){hr.vip(function(){var Xe,Ye=Ne._state;Ye.openComplete?(Ye.dbOpenError||be.resolve().then(He),nt&&Ge(He)):Ye.onReadyBeingFired?(Ye.onReadyBeingFired.push(He),nt&&Ge(He)):(Ge(He),Xe=Ne,nt||Ge(function Qe(){Xe.on.ready.unsubscribe(He),Xe.on.ready.unsubscribe(Qe)}))})}}),this.Collection=(M=this,Bn(vn.prototype,function(Qe,Ye){this.db=M;var nt=is,Xe=null;if(Ye)try{nt=Ye()}catch(ot){Xe=ot}var Ye=Qe._ctx,Qe=Ye.table,lt=Qe.hook.reading.fire;this._ctx={table:Qe,index:Ye.index,isPrimKey:!Ye.index||Qe.schema.primKey.keyPath&&Ye.index===Qe.schema.primKey.name,range:nt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:Xe,or:Ye.or,valueMapper:lt!==ut?lt:null}})),this.Table=(V=this,Bn(os.prototype,function(Ge,He,nt){this.db=V,this._tx=nt,this.name=Ge,this.schema=He,this.hook=V._allTables[Ge]?V._allTables[Ge].hook:gn(null,{creating:[$e,Ze],reading:[st,ut],updating:[qe,Ze],deleting:[je,Ze]})})),this.Transaction=(re=this,Bn(Fs.prototype,function(Ge,He,nt,Xe,Ye){var Qe=this;Ge!=="readonly"&&He.forEach(function(lt){lt=(lt=nt[lt])==null?void 0:lt.yProps,lt&&(He=He.concat(lt.map(function(ot){return ot.updatesTable})))}),this.db=re,this.mode=Ge,this.storeNames=He,this.schema=nt,this.chromeTransactionDurability=Xe,this.idbtrans=null,this.on=gn(this,"complete","error","abort"),this.parent=Ye||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new be(function(lt,ot){Qe._resolve=lt,Qe._reject=ot}),this._completion.then(function(){Qe.active=!1,Qe.on.complete.fire()},function(lt){var ot=Qe.active;return Qe.active=!1,Qe.on.error.fire(lt),Qe.parent?Qe.parent._reject(lt):ot&&Qe.idbtrans&&Qe.idbtrans.abort(),dr(lt)})})),this.Version=(pe=this,Bn(Ks.prototype,function(Ge){this.db=pe,this._cfg={version:Ge,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(Te=this,Bn(Fi.prototype,function(Ge,He,nt){if(this.db=Te,this._ctx={table:Ge,index:He===":id"?null:He,or:nt},this._cmp=this._ascending=zt,this._descending=function(Xe,Ye){return zt(Ye,Xe)},this._max=function(Xe,Ye){return 0<zt(Xe,Ye)?Xe:Ye},this._min=function(Xe,Ye){return zt(Xe,Ye)<0?Xe:Ye},this._IDBKeyRange=Te._deps.IDBKeyRange,!this._IDBKeyRange)throw new Me.MissingAPI})),this.on("versionchange",function(Ge){0<Ge.newVersion?console.warn("Another connection wants to upgrade database '".concat(Ne.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(Ne.name,"'. Closing db now to resume the delete request.")),Ne.close({disableAutoOpen:!1})}),this.on("blocked",function(Ge){!Ge.newVersion||Ge.newVersion<Ge.oldVersion?console.warn("Dexie.delete('".concat(Ne.name,"') was blocked")):console.warn("Upgrade '".concat(Ne.name,"' blocked by other connection holding version ").concat(Ge.oldVersion/10))}),this._maxKey=Qn(P.IDBKeyRange),this._createTransaction=function(Ge,He,nt,Xe){return new Ne.Transaction(Ge,He,nt,Ne._options.chromeTransactionDurability,Xe)},this._fireOnBlocked=function(Ge){Ne.on("blocked").fire(Ge),ti.toArray().filter(function(He){return He.name===Ne.name&&He!==Ne&&!He._state.vcFired}).map(function(He){return He.on("versionchange").fire(Ge)})},this.use(sr),this.use(bs),this.use(ys),this.use(wt),this.use(or),new Proxy(this,{get:function(Ge,He,nt){var Xe;return He==="_vip"||(He==="table"?function(Ye){return ni(Ne.table(Ye),Je)}:(Xe=Reflect.get(Ge,He,nt))instanceof os?ni(Xe,Je):He==="tables"?Xe.map(function(Ye){return ni(Ye,Je)}):He==="_createTransaction"?function(){return ni(Xe.apply(this,arguments),Je)}:Xe)}}));this.vip=Je,We.forEach(function(Ge){return Ge(Ne)})}var ii,In=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",vs=(_i.prototype.subscribe=function(v,P,M){return this._subscribe(v&&typeof v!="function"?v:{next:v,error:P,complete:M})},_i.prototype[In]=function(){return this},_i);function _i(v){this._subscribe=v}try{ii={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{ii={indexedDB:null,IDBKeyRange:null}}function Qi(v){var P,M=!1,V=new vs(function(re){var pe=he(v),Te,Ne=!1,We={},at={},Je={get closed(){return Ne},unsubscribe:function(){Ne||(Ne=!0,Te&&Te.abort(),Ge&&Yr.storagemutated.unsubscribe(Xe))}},Ge=(re.start&&re.start(Je),!1),He=function(){return fi(Ye)};function nt(){return c(at,We)}var Xe=function(Qe){i(We,Qe),nt()&&He()},Ye=function(){var Qe,lt,ot;!Ne&&ii.indexedDB&&(We={},Qe={},Te&&Te.abort(),Te=new AbortController,ot=(ft=>{var bt=Vt();try{pe&&tn();var Et=Vr(v,ft);return Et=pe?Et.finally(Rr):Et}finally{bt&&Ht()}})(lt={subscr:Qe,signal:Te.signal,requery:He,querier:v,trans:null}),Ge||(Yr.storagemutated.subscribe(Xe),Ge=!0),Promise.resolve(ot).then(function(ft){M=!0,P=ft,Ne||lt.signal.aborted||(nt()||(at=Qe,nt())?He():(We={},fi(function(){return!Ne&&re.next&&re.next(ft)})))},function(ft){M=!1,["DatabaseClosedError","AbortError"].includes(ft==null?void 0:ft.name)||Ne||fi(function(){Ne||re.error&&re.error(ft)})}))};return setTimeout(He,0),Je});return V.hasValue=function(){return M},V.getValue=function(){return P},V}var Pn=Xr;function wi(v){var P=on;try{on=!0,Yr.storagemutated.fire(v),Pe(v,!0)}finally{on=P}}b(Pn,n(n({},ae),{delete:function(v){return new Pn(v,{addons:[]}).delete()},exists:function(v){return new Pn(v,{addons:[]}).open().then(function(P){return P.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(v){try{return P=Pn.dependencies,M=P.indexedDB,P=P.IDBKeyRange,(Ei(M)?Promise.resolve(M.databases()).then(function(V){return V.map(function(re){return re.name}).filter(function(re){return re!==Wr})}):Wi(M,P).toCollection().primaryKeys()).then(v)}catch{return dr(new Me.MissingAPI)}var P,M},defineClass:function(){return function(v){p(this,v)}},ignoreTransaction:function(v){return xt.trans?Nr(xt.transless||pt,v):v()},vip:Gi,async:function(v){return function(){try{var P=ct(v.apply(this,arguments));return P&&typeof P.then=="function"?P:be.resolve(P)}catch(M){return dr(M)}}},spawn:function(v,P,M){try{var V=ct(v.apply(M,P||[]));return V&&typeof V.then=="function"?V:be.resolve(V)}catch(re){return dr(re)}},currentTransaction:{get:function(){return xt.trans||null}},waitFor:function(v,P){return v=be.resolve(typeof v=="function"?Pn.ignoreTransaction(v):v).timeout(P||6e4),xt.trans?xt.trans.waitFor(v):v},Promise:be,debug:{get:function(){return ht},set:function(v){xe(v)}},derive:_,extend:p,props:b,override:x,Events:gn,on:Yr,liveQuery:Qi,extendObservabilitySet:i,getByKeyPath:R,setByKeyPath:I,delByKeyPath:function(v,P){typeof P=="string"?I(v,P,void 0):"length"in P&&[].map.call(P,function(M){I(v,M,void 0)})},shallowClone:D,deepClone:ne,getObjectDiff:Ot,cmp:zt,asap:j,minKey:-1/0,addons:[],connections:{get:ti.toArray},errnames:Ee,dependencies:ii,cache:d,semVer:"4.4.5",version:"4.4.5".split(".").map(function(v){return parseInt(v)}).reduce(function(v,P,M){return v+P/Math.pow(10,2*M)})})),Pn.maxKey=Qn(Pn.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Yr(Mn,function(v){on||(v=new CustomEvent(qi,{detail:v}),on=!0,dispatchEvent(v),on=!1)}),addEventListener(qi,function(v){v=v.detail,on||wi(v)}));var On,on=!1,Zi=function(){};return typeof BroadcastChannel<"u"&&((Zi=function(){(On=new BroadcastChannel(qi)).onmessage=function(v){return v.data&&wi(v.data)}})(),typeof On.unref=="function"&&On.unref(),Yr(Mn,function(v){on||On.postMessage(v)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(v){if(!Xr.disableBfCache&&v.persisted){ht&&console.debug("Dexie: handling persisted pagehide"),On!=null&&On.close();for(var P=0,M=ti.toArray();P<M.length;P++)M[P].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(v){!Xr.disableBfCache&&v.persisted&&(ht&&console.debug("Dexie: handling persisted pageshow"),Zi(),wi({all:new Tr(-1/0,[[]])}))})),be.rejectionMapper=function(v,P){return!v||v instanceof L||v instanceof TypeError||v instanceof SyntaxError||!v.name||!Ve[v.name]?v:(P=new Ve[v.name](P||v.message,v),"stack"in v&&O(P,"stack",{get:function(){return this.inner.stack}}),P)},xe(ht),n(Xr,Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:1e3,Dexie:Xr,Entity:Jn,PropModification:Pr,RangeSet:Tr,add:function(v){return new Pr({add:v})},cmp:zt,default:Xr,liveQuery:Qi,mergeRanges:sn,rangesOverlap:Hi,remove:function(v){return new Pr({remove:v})},replacePrefix:function(v,P){return new Pr({replacePrefix:[v,P]})}}),{default:Xr}),Xr})})(By);var ZT=By.exports,wf=QT(ZT);const Ry=Symbol.for("Dexie"),_l=globalThis[Ry]||(globalThis[Ry]=wf);if(wf.semVer!==_l.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${wf.semVer} and ${_l.semVer}`);const{liveQuery:fN,mergeRanges:pN,rangesOverlap:dN,RangeSet:hN,cmp:yN,Entity:mN,PropModification:gN,replacePrefix:bN,add:vN,remove:SN,DexieYProvider:TN}=_l,So="rtc-agent-";class eE extends _l{constructor(r){if(!r.startsWith(So))throw new Error(`[RTCAgentDatabase] databaseName must start with "${So}", got "${r}"`);super(r);Yt(this,"sessions");Yt(this,"turns");Yt(this,"messages");Yt(this,"rtcs");Yt(this,"offsets");Yt(this,"fileSystemEntries");this.version(1).stores({sessions:"id, &client_id, sync_status, owner_ref_id, status",turns:"id, &client_id, sync_status, session_id, status",messages:"id, &client_id, sync_status, session_id, turn_id, global_offset",rtcs:"id, &client_id, sync_status, session_id, turn_id, status",offsets:"channel"}),this.version(2).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status",offsets:"channel"}).upgrade(async n=>{const s=n.table("sessions"),o=await s.toArray();await s.clear();const a=new Map;for(const u of o){const p=u,y=p.id,g=p.client_id||y||crypto.randomUUID();y&&a.set(y,g);const b={...p};b.client_id=g,b.server_id=y,delete b.id,await s.add(b)}for(const u of["turns","messages","rtcs"]){const p=n.table(u),y=await p.toArray();await p.clear();for(const h of y){const g=h,b=g.id,S=g.client_id,O=g.session_id,_={...g};if(_.client_id=S||b||crypto.randomUUID(),_.server_id=b,delete _.id,O){const w=a.get(O);_.session_client_id=w||O}else _.session_client_id="";delete _.session_id,await p.add(_)}}}),this.version(3).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status",offsets:"channel"}),this.version(4).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset, created_at",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status",offsets:"channel"}),this.version(5).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset, created_at",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status, offset",offsets:"channel"}),this.version(6).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset, created_at",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status, offset",offsets:"channel",fileSystemEntries:"path, type, metadata.group, *metadata.tags"})}}let es=null,Af=null;function yr(t){if(t===void 0){if(es)return es;throw new Error(`[RTCAgentDatabase] getDatabase() called without a name before any database was initialized. Pass a databaseName starting with "${So}".`)}if(!t.startsWith(So))throw new Error(`[RTCAgentDatabase] databaseName must start with "${So}", got "${t}"`);const e=t;return(!es||Af!==e)&&(es&&es.close(),es=new eE(e),Af=e),es}async function tE(){es&&(es.close(),es=null,Af=null)}async function rE(){const t=yr(),e=[t.sessions,t.turns,t.messages,t.rtcs,t.offsets,t.fileSystemEntries];await t.transaction("rw",e,async()=>{await t.sessions.clear(),await t.turns.clear(),await t.messages.clear(),await t.rtcs.clear(),await t.offsets.clear(),await t.fileSystemEntries.clear()})}class nE{async getPosition(e){const n=await yr().offsets.get(e);if(n)return{offset:n.offset,epoch:n.epoch}}async updatePosition(e,r,n){const s=yr(),o={channel:e,offset:r,epoch:n,updatedAt:Date.now()};await s.offsets.put(o)}async clearPosition(e){await yr().offsets.delete(e)}async clearAll(){await yr().offsets.clear()}async reset(){await this.clearAll()}}let Cf=null;function jy(){return Cf||(Cf=new nE),Cf}class iE{constructor(){Yt(this,"entityListeners",new Map);Yt(this,"wildcardListeners",new Set)}subscribe(e,r){if(typeof e=="function")return this.wildcardListeners.add(e),()=>{this.wildcardListeners.delete(e)};const n=e,s=r;let o=this.entityListeners.get(n);return o||(o=new Set,this.entityListeners.set(n,o)),o.add(s),()=>{o.delete(s),o.size===0&&this.entityListeners.delete(n)}}publish(e){for(const n of this.wildcardListeners)try{n(e)}catch(s){console.error("[UIUpdateBus] listener error:",s)}const r=this.entityListeners.get(e.entity);if(r)for(const n of r)try{n(e)}catch(s){console.error("[UIUpdateBus] listener error:",s)}}clear(){this.entityListeners.clear(),this.wildcardListeners.clear()}}let If=null;function My(){return If||(If=new iE),If}function sE(t=new Date){const e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=String(t.getHours()).padStart(2,"0"),o=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0"),u=String(t.getMilliseconds()).padStart(3,"0"),p=-t.getTimezoneOffset(),y=String(Math.floor(Math.abs(p)/60)).padStart(2,"0"),h=String(Math.abs(p)%60).padStart(2,"0"),g=p>=0?"+":"-";return`${e}-${r}-${n}T${s}:${o}:${a}.${u}${g}${y}:${h}`}function si(){return sE(new Date)}const Ly=["Date","RegExp","String","Number"],Fy=Object.getOwnPropertyNames(globalThis.Temporal||{});function qy(t,e,r={cyclesFix:!0},n=[]){var u,p;let s=[];const o=Array.isArray(t);for(const y in t){const h=t[y],g=o?+y:y;if(!(y in e)){s.push({type:"REMOVE",path:[g],oldValue:h});continue}const b=e[y],S=typeof h=="object"&&typeof b=="object"&&Array.isArray(h)===Array.isArray(b),O=S&&h?(p=(u=Object.getPrototypeOf(h))==null?void 0:u.constructor)==null?void 0:p.name:void 0;if(h&&b&&S&&!Ly.includes(O)&&!Fy.includes(O)&&(!r.cyclesFix||!n.includes(h))){r.cyclesFix&&n.push(h);const _=qy(h,b,r,n);r.cyclesFix&&n.pop();for(const w of _)w.path.unshift(g),s.push(w)}else Object.is(h,b)||Fy.includes(O)&&String(h)===String(b)||Ly.includes(O)&&(isNaN(h)?h+""==b+"":+h==+b)||s.push({path:[g],type:"CHANGE",value:b,oldValue:h})}const a=Array.isArray(e);for(const y in e)y in t||s.push({type:"CREATE",path:[a?+y:y],value:e[y]});return s}function aE(t){return t.join(".")}function wl(t,e,r,n,s){const o=My();if(!n){for(const[u,p]of Object.entries(s))o.publish({entity:t,action:e,entityId:r,field:u,oldValue:void 0,newValue:p});return}const a=qy(n,s);for(const u of a)o.publish({entity:t,action:e,entityId:r,field:aE(u.path),oldValue:u.oldValue,newValue:u.value})}class oE{async upsertSession(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.sessions.where("client_id").equals(e.client_id).first()),console.log("[EntityRepository.upsertSession]",a?"UPDATE":"CREATE","client_id:",e.client_id,"title:",e.title);let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.sessions.put(h),u={before:y,after:h},p="updated",console.log("[EntityRepository.upsertSession] After update - title:",h.title)}else{const y={client_id:e.client_id||"",server_id:e.server_id,owner_kind:e.owner_kind||"",owner_ref_id:e.owner_ref_id||"",title:e.title,status:e.status||"active",created_at:e.created_at||o,updated_at:e.updated_at||o,sync_status:r,pending_turn_count:0,running_turn_count:0,agent_prompt:e.agent_prompt||""};await s.sessions.put(y),u={before:void 0,after:y},p="created",console.log("[EntityRepository.upsertSession] After create - title:",y.title)}return n!=null&&n.silent||wl("session",p,u.after.client_id,u.before,u.after),u}async getClientSession(e){return yr().sessions.get(e)}async getSessionByClientId(e){return this.getClientSession(e)}async getSessionByServerId(e){return yr().sessions.where("server_id").equals(e).first()}async getMessageByServerId(e){return yr().messages.where("server_id").equals(e).first()}async listSessions(e,r=50){const o=await yr().sessions.orderBy("updated_at").reverse().toArray();console.log(`[EntityRepository.listSessions] total=${o.length}, with deleted_at=${o.filter(u=>u.deleted_at).length}`);const a=o.filter(u=>!u.deleted_at);if(console.log(`[EntityRepository.listSessions] after filter=${a.length}`),e){const u=a.findIndex(p=>p.client_id===e);return u===-1?a.slice(0,r):a.slice(u+1,u+1+r)}return a.slice(0,r)}async softDeleteSession(e){if(!await this.getClientSession(e))throw new Error(`[EntityRepository] softDeleteSession: session not found: ${e}`);const n=si();console.log(`[EntityRepository.softDeleteSession] setting deleted_at=${n} for ${e}`);const s=await this.upsertSession({client_id:e,deleted_at:n,updated_at:n},"pending");return console.log(`[EntityRepository.softDeleteSession] after upsert, deleted_at=${s.after.deleted_at}`),s}async upsertTurn(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.turns.where("client_id").equals(e.client_id).first());let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.turns.put(h),u={before:y,after:h},p="updated"}else{const y={client_id:e.client_id||"",server_id:e.server_id,session_client_id:e.session_client_id||"",status:e.status||"pending",created_at:e.created_at||o,sync_status:r};await s.turns.put(y),u={before:void 0,after:y},p="created"}return n!=null&&n.silent||wl("turn",p,u.after.client_id,u.before,u.after),u}async getClientTurn(e){return yr().turns.get(e)}async countActiveTurns(e){const r=yr(),n=r.turns.where("session_client_id").equals(e),[s,o]=await Promise.all([n.filter(a=>a.status==="pending").count(),r.turns.where("session_client_id").equals(e).filter(a=>a.status==="running").count()]);return{pending:s,running:o}}async upsertMessage(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.messages.where("client_id").equals(e.client_id).first());let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.messages.put(h),u={before:y,after:h},p="updated"}else{const y={client_id:e.client_id||"",server_id:e.server_id,session_client_id:e.session_client_id||"",turn_id:e.turn_id,global_offset:e.global_offset||0,turn_offset:e.turn_offset,role:e.role||"user",content:e.content,streaming_status:e.streaming_status||"pending",creator_kind:e.creator_kind||"user",creator_ref_id:e.creator_ref_id||"",created_at:e.created_at||o,updated_at:e.updated_at||o,sync_status:r,parent_client_id:e.parent_client_id};await s.messages.put(y),u={before:void 0,after:y},p="created"}return n!=null&&n.silent||wl("message",p,u.after.client_id,u.before,u.after),u}async getClientMessage(e){return yr().messages.get(e)}async listMessagesBySession(e,r,n=50,s="backward"){const u=await yr().messages.where("session_client_id").equals(e).sortBy("created_at");if(s==="backward"){let p=u;return r!==void 0&&r>0&&(p=u.filter(h=>h.global_offset!==void 0&&h.global_offset<r)),p.slice(-n).sort((h,g)=>h.created_at.localeCompare(g.created_at))}if(r!==void 0&&r>0){const p=u.findIndex(y=>y.global_offset!==void 0&&y.global_offset>r);return p===-1?[]:u.slice(p,p+n)}return u.slice(0,n)}async upsertRtc(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.rtcs.where("client_id").equals(e.client_id).first());let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.rtcs.put(h),u={before:y,after:h},p="updated"}else{const y={client_id:e.client_id||"",server_id:e.server_id,session_client_id:e.session_client_id||"",turn_id:e.turn_id||"",offset:e.offset||0,tool_name:e.tool_name||"",parameters:e.parameters,status:e.status||"pending",result:e.result,error_message:e.error_message,created_at:e.created_at||o,updated_at:e.updated_at||o,sync_status:r};await s.rtcs.put(y),u={before:void 0,after:y},p="created"}return n!=null&&n.silent||wl("rtc",p,u.after.client_id,u.before,u.after),u}async getClientRtc(e){return yr().rtcs.get(e)}async getNextRtcToProcess(e){const r=yr(),n=await r.rtcs.where("sync_status").equals("failed").sortBy("offset"),s=e?n.filter(a=>a.session_client_id===e):n;if(s.length>0)return s[0];const o=await r.rtcs.filter(a=>a.status==="pending").sortBy("offset");return e?o.find(a=>a.session_client_id===e):o[0]}async listRtcBySession(e,r,n=50){const a=(await yr().rtcs.where("session_client_id").equals(e).toArray()).sort((p,y)=>p.offset-y.offset),u=r||0;return a.slice(u,u+n)}async applyUpdate(e){var r;for(let n=0;n<e.items.length;n++){const s=e.items[n],o=(r=e.data_list)==null?void 0:r[n];o&&await this.applyUpdateItem(s,o)}}async _resolveSessionClientId(e,r,n){const s=await this.getSessionByServerId(e);return s?s.client_id:(console.warn(`[EntityRepository] ${r} ${n} references unknown session ${e}`),e)}async applyUpdateItem(e,r){switch(e.entity){case"session":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};delete s.id,await this.upsertSession(s,"synced");break}case"turn":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};delete s.id,n.session_id&&(s.session_client_id=await this._resolveSessionClientId(n.session_id,"Turn",n.client_id||n.id)),delete s.session_id,await this.upsertTurn(s,"synced");const o=s.session_client_id;if(o){const{pending:a,running:u}=await this.countActiveTurns(o),p=await this.getClientSession(o);p&&await this.upsertSession({client_id:o,pending_turn_count:a,running_turn_count:u},p.sync_status)}break}case"message":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};if(delete s.id,n.session_id&&(s.session_client_id=await this._resolveSessionClientId(n.session_id,"Message",n.client_id||n.id)),delete s.session_id,n.parent_message_id){const o=await this.getMessageByServerId(n.parent_message_id);o?s.parent_client_id=o.client_id:console.warn(`[EntityRepository] Message ${n.client_id||n.id} references unknown parent ${n.parent_message_id}`)}delete s.parent_message_id,await this.upsertMessage(s,"synced");break}case"rtc":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};if(delete s.id,n.session_id){const o=await this.getSessionByServerId(n.session_id);o?s.session_client_id=o.client_id:(console.warn(`[EntityRepository] Rtc ${n.client_id||n.id} references unknown session ${n.session_id}`),s.session_client_id=n.session_id)}delete s.session_id,await this.upsertRtc(s,"pending");break}}}}let Of=null;function lE(){return Of||(Of=new oE),Of}class To extends Error{constructor(e,r){super(r),this.code=e,this.name="PathError"}}function Gs(t){if(!t||typeof t!="string")throw new To("EINVAL","Path must be a non-empty string");let e=t.startsWith("/")?t:"/"+t;const r=e.split("/").filter(n=>n&&n!==".");for(const n of r)if(n==="..")throw new To("EINVAL","Path traversal (..) is not allowed");return e="/"+r.join("/"),e==="/"?"/":e.replace(/\/$/,"")}function cE(t){const e=Gs(t),r=e.lastIndexOf("/");return e.substring(r+1)}function $y(t,e){const r=t.replace(/[.+^${}()|[\]\\/+]/g,"\\$&").replace(/\*/g,"[^\\/]*").replace(/\?/g,"[^\\/]");return new RegExp(`^${r}$`).test(e)}class uE{async read(e,r,n){const s=Gs(e),a=await yr().fileSystemEntries.get(s);if(!a)throw new To("ENOENT",`File not found: ${s}`);let u=a.content;if(r!==void 0||n!==void 0){const p=r||0,y=n!==void 0?p+n:void 0;u=u.substring(p,y)}return u}async write(e,r,n="overwrite",s){const o=Gs(e),a=yr(),u=this.inferFileType(o),p=await a.fileSystemEntries.get(o);if(n==="create-new"&&p)return p.content.length;let y=r,h;if(p&&n==="append")y=p.content+r,h={...p.metadata,...s,updatedAt:new Date};else{const b=new Date;if(h={name:cE(o),description:"",createdAt:(p==null?void 0:p.metadata.createdAt)||b,updatedAt:b,...s},u==="function"){const S=this.extractGroupFromPath(o);S&&(h.group=S)}}const g={path:o,type:u,content:y,metadata:h};return await a.fileSystemEntries.put(g),y.length}async ls(e="/"){const r=Gs(e),n=yr(),s=new Set;if(r==="/"){const o=await n.fileSystemEntries.toArray();for(const a of o){const u=a.path.split("/").filter(Boolean);u.length>0&&s.add(u[0])}}else{const o=r+"/",a=await n.fileSystemEntries.filter(u=>u.path.startsWith(o)).toArray();for(const u of a){const y=u.path.substring(o.length).split("/");y.length>0&&s.add(y[0])}}return Array.from(s).sort()}async find(e,r="/"){const n=Gs(r),s=yr();let o;if(n==="/")o=await s.fileSystemEntries.toArray();else{const u=n+"/";o=await s.fileSystemEntries.filter(p=>p.path.startsWith(u)).toArray()}const a=[];for(const u of o){const p=n==="/"?u.path.substring(1):u.path.substring(n.length+1);($y(e,p)||$y(e,u.path))&&a.push(u.path)}return a.sort()}async grep(e,r="/",n=!1,s=100){const o=Gs(r),a=yr();let u;try{const h=n?"":"i";u=new RegExp(e,h)}catch{throw new SyntaxError(`Invalid regex pattern: ${e}`)}let p;if(o==="/")p=await a.fileSystemEntries.toArray();else{const h=o+"/";p=await a.fileSystemEntries.filter(g=>g.path.startsWith(h)).toArray()}const y=[];for(const h of p){const g=h.content.split(`
13
+ `+pe:""),this.inner=pe||null):typeof re=="object"&&(this.message="".concat(re.name," ").concat(re.message),this.inner=re):(this.message=U[P]||M,this.inner=null)}return _(V).from(De),v[P]=V,v},{}),Ve=(Me.Syntax=SyntaxError,Me.Type=TypeError,Me.Range=RangeError,ae.reduce(function(v,P){return v[P+"Error"]=Me[P],v},{}));ae=oe.reduce(function(v,P){return["Syntax","Type","Range"].indexOf(P)===-1&&(v[P+"Error"]=Me[P]),v},{});function Ze(){}function ut(v){return v}function st(v,P){return v==null||v===ut?P:function(M){return P(v(M))}}function dt(v,P){return function(){v.apply(this,arguments),P.apply(this,arguments)}}function $e(v,P){return v===Ze?P:function(){var M=v.apply(this,arguments),V=(M!==void 0&&(arguments[0]=M),this.onsuccess),re=this.onerror,pe=(this.onsuccess=null,this.onerror=null,P.apply(this,arguments));return V&&(this.onsuccess=this.onsuccess?dt(V,this.onsuccess):V),re&&(this.onerror=this.onerror?dt(re,this.onerror):re),pe!==void 0?pe:M}}function je(v,P){return v===Ze?P:function(){v.apply(this,arguments);var M=this.onsuccess,V=this.onerror;this.onsuccess=this.onerror=null,P.apply(this,arguments),M&&(this.onsuccess=this.onsuccess?dt(M,this.onsuccess):M),V&&(this.onerror=this.onerror?dt(V,this.onerror):V)}}function qe(v,P){return v===Ze?P:function(re){var V=v.apply(this,arguments),re=(p(re,V),this.onsuccess),pe=this.onerror,Te=(this.onsuccess=null,this.onerror=null,P.apply(this,arguments));return re&&(this.onsuccess=this.onsuccess?dt(re,this.onsuccess):re),pe&&(this.onerror=this.onerror?dt(pe,this.onerror):pe),V===void 0?Te===void 0?void 0:Te:p(V,Te)}}function Le(v,P){return v===Ze?P:function(){return P.apply(this,arguments)!==!1&&v.apply(this,arguments)}}function gt(v,P){return v===Ze?P:function(){var M=v.apply(this,arguments);if(M&&typeof M.then=="function"){for(var V=this,re=arguments.length,pe=new Array(re);re--;)pe[re]=arguments[re];return M.then(function(){return P.apply(V,pe)})}return P.apply(this,arguments)}}ae.ModifyError=ye,ae.DexieError=L,ae.BulkError=Ie;var ht=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function xe(v){ht=v}var Se={},se=100,ee=typeof Promise>"u"?[]:(oe=Promise.resolve(),typeof crypto<"u"&&crypto.subtle?[ee=crypto.subtle.digest("SHA-512",new Uint8Array([0])),y(ee),oe]:[oe,y(oe),oe]),oe=ee[0],In=ee[1],In=In&&In.then,W=oe&&oe.constructor,fe=!!ee[2],Re=function(v,P){te.push([v,P]),Ke&&(queueMicrotask(Lt),Ke=!1)},Fe=!0,Ke=!0,it=[],_t=[],Mt=ut,pt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Ze,pgp:!1,env:{},finalize:Ze},xt=pt,te=[],de=0,G=[];function be(v){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var P=this._PSD=xt;if(typeof v!="function"){if(v!==Se)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&rt(this,this._value)}else this._state=null,this._value=null,++P.ref,function M(V,re){try{re(function(pe){if(V._state===null){if(pe===V)throw new TypeError("A promise cannot be resolved with itself.");var Te=V._lib&&Vt();pe&&typeof pe.then=="function"?M(V,function(Ne,We){pe instanceof be?pe._then(Ne,We):pe.then(Ne,We)}):(V._state=!0,V._value=pe,yt(V)),Te&&Jt()}},rt.bind(null,V))}catch(pe){rt(V,pe)}}(this,v)}var et={get:function(){var v=xt,P=Rt;function M(V,re){var pe=this,Te=!v.global&&(v!==xt||P!==Rt),Ne=Te&&!Rr(),We=new be(function(at,Je){mt(pe,new ge(An(V,v,Te,Ne),An(re,v,Te,Ne),at,Je,v))});return this._consoleTask&&(We._consoleTask=this._consoleTask),We}return M.prototype=Se,M},set:function(v){O(this,"then",v&&v.prototype===Se?et:{get:function(){return v},set:et.set})}};function ge(v,P,M,V,re){this.onFulfilled=typeof v=="function"?v:null,this.onRejected=typeof P=="function"?P:null,this.resolve=M,this.reject=V,this.psd=re}function rt(v,P){var M,V;_t.push(P),v._state===null&&(M=v._lib&&Vt(),P=Mt(P),v._state=!1,v._value=P,V=v,it.some(function(re){return re._value===V._value})||it.push(V),yt(v),M)&&Jt()}function yt(v){var P=v._listeners;v._listeners=[];for(var M=0,V=P.length;M<V;++M)mt(v,P[M]);var re=v._PSD;--re.ref||re.finalize(),de===0&&(++de,Re(function(){--de==0&&lr()},[]))}function mt(v,P){if(v._state===null)v._listeners.push(P);else{var M=v._state?P.onFulfilled:P.onRejected;if(M===null)return(v._state?P.resolve:P.reject)(v._value);++P.psd.ref,++de,Re(Bt,[M,v,P])}}function Bt(v,P,M){try{var V,re=P._value;!P._state&&_t.length&&(_t=[]),V=ht&&P._consoleTask?P._consoleTask.run(function(){return v(re)}):v(re),P._state||_t.indexOf(re)!==-1||(pe=>{for(var Te=it.length;Te;)if(it[--Te]._value===pe._value)return it.splice(Te,1)})(P),M.resolve(V)}catch(pe){M.reject(pe)}finally{--de==0&&lr(),--M.psd.ref||M.psd.finalize()}}function Lt(){Nr(pt,function(){Vt()&&Jt()})}function Vt(){var v=Fe;return Ke=Fe=!1,v}function Jt(){var v,P,M;do for(;0<te.length;)for(v=te,te=[],M=v.length,P=0;P<M;++P){var V=v[P];V[0].apply(null,V[1])}while(0<te.length);Ke=Fe=!0}function lr(){for(var v=it,P=(it=[],v.forEach(function(V){V._PSD.onunhandled.call(null,V._value,V)}),G.slice(0)),M=P.length;M;)P[--M]()}function xr(v){return new be(Se,!1,v)}function Wt(v,P){var M=xt;return function(){var V=Vt(),re=xt;try{return Kr(M,!0),v.apply(this,arguments)}catch(pe){P&&P(pe)}finally{Kr(re,!1),V&&Jt()}}}b(be.prototype,{then:et,_then:function(v,P){mt(this,new ge(null,null,v,P,xt))},catch:function(v){var P,M;return arguments.length===1?this.then(null,v):(P=v,M=arguments[1],typeof P=="function"?this.then(null,function(V){return(V instanceof P?M:xr)(V)}):this.then(null,function(V){return(V&&V.name===P?M:xr)(V)}))},finally:function(v){return this.then(function(P){return be.resolve(v()).then(function(){return P})},function(P){return be.resolve(v()).then(function(){return xr(P)})})},timeout:function(v,P){var M=this;return v<1/0?new be(function(V,re){var pe=setTimeout(function(){return re(new Me.Timeout(P))},v);M.then(V,re).finally(clearTimeout.bind(null,pe))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&O(be.prototype,Symbol.toStringTag,"Dexie.Promise"),pt.env=Hn(),b(be,{all:function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P,M){v.length===0&&P([]);var V=v.length;v.forEach(function(re,pe){return be.resolve(re).then(function(Te){v[pe]=Te,--V||P(v)},M)})})},resolve:function(v){return v instanceof be?v:v&&typeof v.then=="function"?new be(function(P,M){v.then(P,M)}):new be(Se,!0,v)},reject:xr,race:function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P,M){v.map(function(V){return be.resolve(V).then(P,M)})})},PSD:{get:function(){return xt},set:function(v){return xt=v}},totalEchoes:{get:function(){return Rt}},newPSD:Vr,usePSD:Nr,scheduler:{get:function(){return Re},set:function(v){Re=v}},rejectionMapper:{get:function(){return Mt},set:function(v){Mt=v}},follow:function(v,P){return new be(function(M,V){return Vr(function(re,pe){var Te=xt;Te.unhandleds=[],Te.onunhandled=pe,Te.finalize=dt(function(){var Ne,We=this;Ne=function(){We.unhandleds.length===0?re():pe(We.unhandleds[0])},G.push(function at(){Ne(),G.splice(G.indexOf(at),1)}),++de,Re(function(){--de==0&&lr()},[])},Te.finalize),v()},P,M,V)})}}),W&&(W.allSettled&&O(be,"allSettled",function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P){v.length===0&&P([]);var M=v.length,V=new Array(M);v.forEach(function(re,pe){return be.resolve(re).then(function(Te){return V[pe]={status:"fulfilled",value:Te}},function(Te){return V[pe]={status:"rejected",reason:Te}}).then(function(){return--M||P(V)})})})}),W.any&&typeof AggregateError<"u"&&O(be,"any",function(){var v=Y.apply(null,arguments).map(jr);return new be(function(P,M){v.length===0&&M(new AggregateError([]));var V=v.length,re=new Array(V);v.forEach(function(pe,Te){return be.resolve(pe).then(function(Ne){return P(Ne)},function(Ne){re[Te]=Ne,--V||M(new AggregateError(re))})})})}),W.withResolvers)&&(be.withResolvers=W.withResolvers);var tr={awaits:0,echoes:0,id:0},pn=0,dn=[],Sr=0,Rt=0,ui=0;function Vr(v,Te,M,V){var re=xt,pe=Object.create(re),Te=(pe.parent=re,pe.ref=0,pe.global=!1,pe.id=++ui,pt.env,pe.env=fe?{Promise:be,PromiseProp:{value:be,configurable:!0,writable:!0},all:be.all,race:be.race,allSettled:be.allSettled,any:be.any,resolve:be.resolve,reject:be.reject}:{},Te&&p(pe,Te),++re.ref,pe.finalize=function(){--this.parent.ref||this.parent.finalize()},Nr(pe,v,M,V));return pe.ref===0&&pe.finalize(),Te}function tn(){return tr.id||(tr.id=++pn),++tr.awaits,tr.echoes+=se,tr.id}function Rr(){return!!tr.awaits&&(--tr.awaits==0&&(tr.id=0),tr.echoes=tr.awaits*se,!0)}function jr(v){return tr.echoes&&v&&v.constructor===W?(tn(),v.then(function(P){return Rr(),P},function(P){return Rr(),dr(P)})):v}function Dn(){var v=dn[dn.length-1];dn.pop(),Kr(v,!1)}function Kr(v,P){var M,V,re=xt;(P?!tr.echoes||Sr++&&v===xt:!Sr||--Sr&&v===xt)||queueMicrotask(P?(function(pe){++Rt,tr.echoes&&--tr.echoes!=0||(tr.echoes=tr.awaits=tr.id=0),dn.push(xt),Kr(pe,!0)}).bind(null,v):Dn),v!==xt&&(xt=v,re===pt&&(pt.env=Hn()),fe)&&(M=pt.env.Promise,V=v.env,re.global||v.global)&&(Object.defineProperty(o,"Promise",V.PromiseProp),M.all=V.all,M.race=V.race,M.resolve=V.resolve,M.reject=V.reject,V.allSettled&&(M.allSettled=V.allSettled),V.any)&&(M.any=V.any)}function Hn(){var v=o.Promise;return fe?{Promise:v,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:v.all,race:v.race,allSettled:v.allSettled,any:v.any,resolve:v.resolve,reject:v.reject}:{}}function Nr(v,P,M,V,re){var pe=xt;try{return Kr(v,!0),P(M,V,re)}finally{Kr(pe,!1)}}function An(v,P,M,V){return typeof v!="function"?v:function(){var re=xt;M&&tn(),Kr(P,!0);try{return v.apply(this,arguments)}finally{Kr(re,!1),V&&queueMicrotask(Rr)}}}function fi(v){Promise===W&&tr.echoes===0?Sr===0?v():enqueueNativeMicroTask(v):setTimeout(v,0)}(""+In).indexOf("[native code]")===-1&&(tn=Rr=Ze);var dr=be.reject,rn="￿",nn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",hn="String expected.",Wr="__dbnames",yn="readonly",Ri="readwrite";function Cn(v,P){return v?P?function(){return v.apply(this,arguments)&&P.apply(this,arguments)}:v:P}var is={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function pi(v){return typeof v!="string"||/\./.test(v)?function(P){return P}:function(P){return P[v]===void 0&&v in P&&delete(P=ne(P))[v],P}}function Jn(){throw Me.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function zt(v,P){try{var M=ji(v),V=ji(P);if(M!==V)return M==="Array"?1:V==="Array"?-1:M==="binary"?1:V==="binary"?-1:M==="string"?1:V==="string"?-1:M==="Date"?1:V!=="Date"?NaN:-1;switch(M){case"number":case"Date":case"string":return P<v?1:v<P?-1:0;case"binary":for(var re=ss(v),pe=ss(P),Te=re.length,Ne=pe.length,We=Te<Ne?Te:Ne,at=0;at<We;++at)if(re[at]!==pe[at])return re[at]<pe[at]?-1:1;return Te===Ne?0:Te<Ne?-1:1;case"Array":for(var Je=v,Ge=P,He=Je.length,nt=Ge.length,Xe=He<nt?He:nt,Ye=0;Ye<Xe;++Ye){var Qe=zt(Je[Ye],Ge[Ye]);if(Qe!==0)return Qe}return He===nt?0:He<nt?-1:1}}catch{}return NaN}function ji(v){var P=typeof v;return P=="object"&&(ArrayBuffer.isView(v)||(P=Ce(v))==="ArrayBuffer")?"binary":P}function ss(v){return v instanceof Uint8Array?v:ArrayBuffer.isView(v)?new Uint8Array(v.buffer,v.byteOffset,v.byteLength):new Uint8Array(v)}function mn(v,P,M){var V=v.schema.yProps;return V?(P&&0<M.numFailures&&(P=P.filter(function(re,pe){return!M.failures[pe]})),Promise.all(V.map(function(re){return re=re.updatesTable,P?v.db.table(re).where("k").anyOf(P).delete():v.db.table(re).clear()})).then(function(){return M})):M}as.prototype.execute=function(v){var P=this["@@propmod"];if(P.add!==void 0){var M=P.add;if(u(M))return s(s([],u(v)?v:[],!0),M).sort();if(typeof M=="number")return(Number(v)||0)+M;if(typeof M=="bigint")try{return BigInt(v)+M}catch{return BigInt(0)+M}throw new TypeError("Invalid term ".concat(M))}if(P.remove!==void 0){var V=P.remove;if(u(V))return u(v)?v.filter(function(re){return!V.includes(re)}).sort():[];if(typeof V=="number")return Number(v)-V;if(typeof V=="bigint")try{return BigInt(v)-V}catch{return BigInt(0)-V}throw new TypeError("Invalid subtrahend ".concat(V))}return M=(M=P.replacePrefix)==null?void 0:M[0],M&&typeof v=="string"&&v.startsWith(M)?P.replacePrefix[1]+v.substring(M.length):v};var Pr=as;function as(v){this["@@propmod"]=v}function di(v,P){for(var M=a(P),V=M.length,re=!1,pe=0;pe<V;++pe){var Te=M[pe],Ne=P[Te],We=R(v,Te);Ne instanceof Pr?(I(v,Te,Ne.execute(We)),re=!0):We!==Ne&&(I(v,Te,Ne),re=!0)}return re}ir.prototype._trans=function(v,P,M){var V=this._tx||xt.trans,re=this.name,pe=ht&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(v==="readonly"?"read":"write"," ").concat(this.name));function Te(at,Je,Ge){if(Ge.schema[re])return P(Ge.idbtrans,Ge);throw new Me.NotFound("Table "+re+" not part of transaction")}var Ne=Vt();try{var We=V&&V.db._novip===this.db._novip?V===xt.trans?V._promise(v,Te,M):Vr(function(){return V._promise(v,Te,M)},{trans:V,transless:xt.transless||xt}):function at(Je,Ge,He,nt){if(Je.idbdb&&(Je._state.openComplete||xt.letThrough||Je._vip)){var Xe=Je._createTransaction(Ge,He,Je._dbSchema);try{Xe.create(),Je._state.PR1398_maxLoop=3}catch(Ye){return Ye.name===Ee.InvalidState&&Je.isOpen()&&0<--Je._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Je.close({disableAutoOpen:!1}),Je.open().then(function(){return at(Je,Ge,He,nt)})):dr(Ye)}return Xe._promise(Ge,function(Ye,Qe){return Vr(function(){return xt.trans=Xe,nt(Ye,Qe,Xe)})}).then(function(Ye){if(Ge==="readwrite")try{Xe.idbtrans.commit()}catch{}return Ge==="readonly"?Ye:Xe._completion.then(function(){return Ye})})}if(Je._state.openComplete)return dr(new Me.DatabaseClosed(Je._state.dbOpenError));if(!Je._state.isBeingOpened){if(!Je._state.autoOpen)return dr(new Me.DatabaseClosed);Je.open().catch(Ze)}return Je._state.dbReadyPromise.then(function(){return at(Je,Ge,He,nt)})}(this.db,v,[this.name],Te);return pe&&(We._consoleTask=pe,We=We.catch(function(at){return console.trace(at),dr(at)})),We}finally{Ne&&Jt()}},ir.prototype.get=function(v,P){var M=this;return v&&v.constructor===Object?this.where(v).first(P):v==null?dr(new Me.Type("Invalid argument to Table.get()")):this._trans("readonly",function(V){return M.core.get({trans:V,key:v}).then(function(re){return M.hook.reading.fire(re)})}).then(P)},ir.prototype.where=function(v){if(typeof v=="string")return new this.db.WhereClause(this,v);if(u(v))return new this.db.WhereClause(this,"[".concat(v.join("+"),"]"));var P=a(v);if(P.length===1)return this.where(P[0]).equals(v[P[0]]);var M=this.schema.indexes.concat(this.schema.primKey).filter(function(Ne){if(Ne.compound&&P.every(function(at){return 0<=Ne.keyPath.indexOf(at)})){for(var We=0;We<P.length;++We)if(P.indexOf(Ne.keyPath[We])===-1)return!1;return!0}return!1}).sort(function(Ne,We){return Ne.keyPath.length-We.keyPath.length})[0];if(M&&this.db._maxKey!==rn)return Te=M.keyPath.slice(0,P.length),this.where(Te).equals(Te.map(function(Ne){return v[Ne]}));!M&&ht&&console.warn("The query ".concat(JSON.stringify(v)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(P.join("+"),"]"));var V=this.schema.idxByName;function re(Ne,We){return zt(Ne,We)===0}var Te=P.reduce(function(Je,We){var at=Je[0],Je=Je[1],Ge=V[We],He=v[We];return[at||Ge,at||!Ge?Cn(Je,Ge&&Ge.multi?function(nt){return nt=R(nt,We),u(nt)&&nt.some(function(Xe){return re(He,Xe)})}:function(nt){return re(He,R(nt,We))}):Je]},[null,null]),pe=Te[0],Te=Te[1];return pe?this.where(pe.name).equals(v[pe.keyPath]).filter(Te):M?this.filter(Te):this.where(P).equals("")},ir.prototype.filter=function(v){return this.toCollection().and(v)},ir.prototype.count=function(v){return this.toCollection().count(v)},ir.prototype.offset=function(v){return this.toCollection().offset(v)},ir.prototype.limit=function(v){return this.toCollection().limit(v)},ir.prototype.each=function(v){return this.toCollection().each(v)},ir.prototype.toArray=function(v){return this.toCollection().toArray(v)},ir.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},ir.prototype.orderBy=function(v){return new this.db.Collection(new this.db.WhereClause(this,u(v)?"[".concat(v.join("+"),"]"):v))},ir.prototype.reverse=function(){return this.toCollection().reverse()},ir.prototype.mapToClass=function(v){for(var P=this.db,M=this.name,V=((this.schema.mappedClass=v).prototype instanceof Jn&&(v=(Te=>{var Ne=Je,We=Te;if(typeof We!="function"&&We!==null)throw new TypeError("Class extends value "+String(We)+" is not a constructor or null");function at(){this.constructor=Ne}function Je(){return Te!==null&&Te.apply(this,arguments)||this}return r(Ne,We),Ne.prototype=We===null?Object.create(We):(at.prototype=We.prototype,new at),Object.defineProperty(Je.prototype,"db",{get:function(){return P},enumerable:!1,configurable:!0}),Je.prototype.table=function(){return M},Je})(v)),new Set),re=v.prototype;re;re=y(re))Object.getOwnPropertyNames(re).forEach(function(Te){return V.add(Te)});function pe(Te){if(!Te)return Te;var Ne,We=Object.create(v.prototype);for(Ne in Te)if(!V.has(Ne))try{We[Ne]=Te[Ne]}catch{}return We}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=pe,this.hook("reading",pe),v},ir.prototype.defineClass=function(){return this.mapToClass(function(v){p(this,v)})},ir.prototype.add=function(v,P){var M=this,V=this.schema.primKey,re=V.auto,pe=V.keyPath,Te=v;return pe&&re&&(Te=pi(pe)(v)),this._trans("readwrite",function(Ne){return M.core.mutate({trans:Ne,type:"add",keys:P!=null?[P]:null,values:[Te]})}).then(function(Ne){return Ne.numFailures?be.reject(Ne.failures[0]):Ne.lastResult}).then(function(Ne){if(pe)try{I(v,pe,Ne)}catch{}return Ne})},ir.prototype.upsert=function(v,P){var M=this,V=this.schema.primKey.keyPath;return this._trans("readwrite",function(re){return M.core.get({trans:re,key:v}).then(function(pe){var Te=pe??{};return di(Te,P),V&&I(Te,V,v),M.core.mutate({trans:re,type:"put",values:[Te],keys:[v],upsert:!0,updates:{keys:[v],changeSpecs:[P]}}).then(function(Ne){return Ne.numFailures?be.reject(Ne.failures[0]):!!pe})})})},ir.prototype.update=function(v,P){return typeof v!="object"||u(v)?this.where(":id").equals(v).modify(P):(v=R(v,this.schema.primKey.keyPath))===void 0?dr(new Me.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(v).modify(P)},ir.prototype.put=function(v,P){var M=this,V=this.schema.primKey,re=V.auto,pe=V.keyPath,Te=v;return pe&&re&&(Te=pi(pe)(v)),this._trans("readwrite",function(Ne){return M.core.mutate({trans:Ne,type:"put",values:[Te],keys:P!=null?[P]:null})}).then(function(Ne){return Ne.numFailures?be.reject(Ne.failures[0]):Ne.lastResult}).then(function(Ne){if(pe)try{I(v,pe,Ne)}catch{}return Ne})},ir.prototype.delete=function(v){var P=this;return this._trans("readwrite",function(M){return P.core.mutate({trans:M,type:"delete",keys:[v]}).then(function(V){return mn(P,[v],V)}).then(function(V){return V.numFailures?be.reject(V.failures[0]):void 0})})},ir.prototype.clear=function(){var v=this;return this._trans("readwrite",function(P){return v.core.mutate({trans:P,type:"deleteRange",range:is}).then(function(M){return mn(v,null,M)})}).then(function(P){return P.numFailures?be.reject(P.failures[0]):void 0})},ir.prototype.bulkGet=function(v){var P=this;return this._trans("readonly",function(M){return P.core.getMany({keys:v,trans:M}).then(function(V){return V.map(function(re){return P.hook.reading.fire(re)})})})},ir.prototype.bulkAdd=function(v,P,M){var V=this,re=Array.isArray(P)?P:void 0,pe=(M=M||(re?void 0:P))?M.allKeys:void 0;return this._trans("readwrite",function(Te){var Ne=V.schema.primKey,at=Ne.auto,Ne=Ne.keyPath;if(Ne&&re)throw new Me.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(re&&re.length!==v.length)throw new Me.InvalidArgument("Arguments objects and keys must have the same length");var We=v.length,at=Ne&&at?v.map(pi(Ne)):v;return V.core.mutate({trans:Te,type:"add",keys:re,values:at,wantResults:pe}).then(function(Je){var Ge=Je.numFailures,He=Je.failures;if(Ge===0)return pe?Je.results:Je.lastResult;throw new Ie("".concat(V.name,".bulkAdd(): ").concat(Ge," of ").concat(We," operations failed"),He)})})},ir.prototype.bulkPut=function(v,P,M){var V=this,re=Array.isArray(P)?P:void 0,pe=(M=M||(re?void 0:P))?M.allKeys:void 0;return this._trans("readwrite",function(Te){var Ne=V.schema.primKey,at=Ne.auto,Ne=Ne.keyPath;if(Ne&&re)throw new Me.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(re&&re.length!==v.length)throw new Me.InvalidArgument("Arguments objects and keys must have the same length");var We=v.length,at=Ne&&at?v.map(pi(Ne)):v;return V.core.mutate({trans:Te,type:"put",keys:re,values:at,wantResults:pe}).then(function(Je){var Ge=Je.numFailures,He=Je.failures;if(Ge===0)return pe?Je.results:Je.lastResult;throw new Ie("".concat(V.name,".bulkPut(): ").concat(Ge," of ").concat(We," operations failed"),He)})})},ir.prototype.bulkUpdate=function(v){var P=this,M=this.core,V=v.map(function(Te){return Te.key}),re=v.map(function(Te){return Te.changes}),pe=[];return this._trans("readwrite",function(Te){return M.getMany({trans:Te,keys:V,cache:"clone"}).then(function(Ne){var We=[],at=[],Je=(v.forEach(function(Ge,He){var nt=Ge.key,Xe=Ge.changes,Ye=Ne[He];if(Ye){for(var Qe=0,lt=Object.keys(Xe);Qe<lt.length;Qe++){var ot=lt[Qe],ft=Xe[ot];if(ot===P.schema.primKey.keyPath){if(zt(ft,nt)!==0)throw new Me.Constraint("Cannot update primary key in bulkUpdate()")}else I(Ye,ot,ft)}pe.push(He),We.push(nt),at.push(Ye)}}),We.length);return M.mutate({trans:Te,type:"put",keys:We,values:at,updates:{keys:V,changeSpecs:re}}).then(function(Ge){var He=Ge.numFailures,nt=Ge.failures;if(He===0)return Je;for(var Xe=0,Ye=Object.keys(nt);Xe<Ye.length;Xe++){var Qe,lt=Ye[Xe],ot=pe[Number(lt)];ot!=null&&(Qe=nt[lt],delete nt[lt],nt[ot]=Qe)}throw new Ie("".concat(P.name,".bulkUpdate(): ").concat(He," of ").concat(Je," operations failed"),nt)})})})},ir.prototype.bulkDelete=function(v){var P=this,M=v.length;return this._trans("readwrite",function(V){return P.core.mutate({trans:V,type:"delete",keys:v}).then(function(re){return mn(P,v,re)})}).then(function(V){var re=V.numFailures,pe=V.failures;if(re===0)return V.lastResult;throw new Ie("".concat(P.name,".bulkDelete(): ").concat(re," of ").concat(M," operations failed"),pe)})};var os=ir;function ir(){}function gn(v){function P(Te,Ne){if(Ne){for(var We=arguments.length,at=new Array(We-1);--We;)at[We-1]=arguments[We];return M[Te].subscribe.apply(null,at),v}if(typeof Te=="string")return M[Te]}var M={};P.addEventType=pe;for(var V=1,re=arguments.length;V<re;++V)pe(arguments[V]);return P;function pe(Te,Ne,We){var at,Je;if(typeof Te!="object")return Ne=Ne||Le,Je={subscribers:[],fire:We=We||Ze,subscribe:function(Ge){Je.subscribers.indexOf(Ge)===-1&&(Je.subscribers.push(Ge),Je.fire=Ne(Je.fire,Ge))},unsubscribe:function(Ge){Je.subscribers=Je.subscribers.filter(function(He){return He!==Ge}),Je.fire=Je.subscribers.reduce(Ne,We)}},M[Te]=P[Te]=Je;a(at=Te).forEach(function(Ge){var He=at[Ge];if(u(He))pe(Ge,at[Ge][0],at[Ge][1]);else{if(He!=="asap")throw new Me.InvalidArgument("Invalid event config");var nt=pe(Ge,ut,function(){for(var Xe=arguments.length,Ye=new Array(Xe);Xe--;)Ye[Xe]=arguments[Xe];nt.subscribers.forEach(function(Qe){j(function(){Qe.apply(null,Ye)})})})}})}}function Bn(v,P){return _(P).from({prototype:v}),P}function Rn(v,P){return!(v.filter||v.algorithm||v.or)&&(P?v.justLimit:!v.replayFilter)}function Mi(v,P){v.filter=Cn(v.filter,P)}function Yn(v,P,M){var V=v.replayFilter;v.replayFilter=V?function(){return Cn(V(),P())}:P,v.justLimit=M&&!V}function Xn(v,P){if(v.isPrimKey)return P.primaryKey;var M=P.getIndexByKeyPath(v.index);if(M)return M;throw new Me.Schema("KeyPath "+v.index+" on object store "+P.name+" is not indexed")}function Li(v,P,M){var V=Xn(v,P.schema);return P.openCursor({trans:M,values:!v.keysOnly,reverse:v.dir==="prev",unique:!!v.unique,query:{index:V,range:v.range}})}function bn(v,P,M,V){var re,pe,Te=v.replayFilter?Cn(v.filter,v.replayFilter()):v.filter;return v.or?(re={},pe=function(Ne,We,at){var Je,Ge;Te&&!Te(We,at,function(He){return We.stop(He)},function(He){return We.fail(He)})||((Ge=""+(Je=We.primaryKey))=="[object ArrayBuffer]"&&(Ge=""+new Uint8Array(Je)),g(re,Ge))||(re[Ge]=!0,P(Ne,We,at))},Promise.all([v.or._iterate(pe,M),ls(Li(v,V,M),v.algorithm,pe,!v.keysOnly&&v.valueMapper)])):ls(Li(v,V,M),Cn(v.algorithm,Te),P,!v.keysOnly&&v.valueMapper)}function ls(v,P,M,V){var re=Wt(V?function(pe,Te,Ne){return M(V(pe),Te,Ne)}:M);return v.then(function(pe){if(pe)return pe.start(function(){var Te=function(){return pe.continue()};P&&!P(pe,function(Ne){return Te=Ne},function(Ne){pe.stop(Ne),Te=Ze},function(Ne){pe.fail(Ne),Te=Ze})||re(pe.value,pe,function(Ne){return Te=Ne}),Te()})})}Qt.prototype._read=function(v,P){var M=this._ctx;return M.error?M.table._trans(null,dr.bind(null,M.error)):M.table._trans("readonly",v).then(P)},Qt.prototype._write=function(v){var P=this._ctx;return P.error?P.table._trans(null,dr.bind(null,P.error)):P.table._trans("readwrite",v,"locked")},Qt.prototype._addAlgorithm=function(v){var P=this._ctx;P.algorithm=Cn(P.algorithm,v)},Qt.prototype._iterate=function(v,P){return bn(this._ctx,v,P,this._ctx.table.core)},Qt.prototype.clone=function(v){var P=Object.create(this.constructor.prototype),M=Object.create(this._ctx);return v&&p(M,v),P._ctx=M,P},Qt.prototype.raw=function(){return this._ctx.valueMapper=null,this},Qt.prototype.each=function(v){var P=this._ctx;return this._read(function(M){return bn(P,v,M,P.table.core)})},Qt.prototype.count=function(v){var P=this;return this._read(function(M){var V,re=P._ctx,pe=re.table.core;return Rn(re,!0)?pe.count({trans:M,query:{index:Xn(re,pe.schema),range:re.range}}).then(function(Te){return Math.min(Te,re.limit)}):(V=0,bn(re,function(){return++V,!1},M,pe).then(function(){return V}))}).then(v)},Qt.prototype.sortBy=function(v,P){var M=v.split(".").reverse(),V=M[0],re=M.length-1;function pe(We,at){return at?pe(We[M[at]],at-1):We[V]}var Te=this._ctx.dir==="next"?1:-1;function Ne(We,at){return zt(pe(We,re),pe(at,re))*Te}return this.toArray(function(We){return We.slice().sort(Ne)}).then(P)},Qt.prototype.toArray=function(v){var P=this;return this._read(function(M){var V,re,pe,Te=P._ctx;return Rn(Te,!0)&&0<Te.limit?(V=Te.valueMapper,re=Xn(Te,Te.table.core.schema),Te.table.core.query({trans:M,limit:Te.limit,values:!0,direction:Te.dir==="prev"?"prev":void 0,query:{index:re,range:Te.range}}).then(function(Ne){return Ne=Ne.result,V?Ne.map(V):Ne})):(pe=[],bn(Te,function(Ne){return pe.push(Ne)},M,Te.table.core).then(function(){return pe}))},v)},Qt.prototype.offset=function(v){var P=this._ctx;return v<=0||(P.offset+=v,Rn(P)?Yn(P,function(){var M=v;return function(V,re){return M===0||(M===1?--M:re(function(){V.advance(M),M=0}),!1)}}):Yn(P,function(){var M=v;return function(){return--M<0}})),this},Qt.prototype.limit=function(v){return this._ctx.limit=Math.min(this._ctx.limit,v),Yn(this._ctx,function(){var P=v;return function(M,V,re){return--P<=0&&V(re),0<=P}},!0),this},Qt.prototype.until=function(v,P){return Mi(this._ctx,function(M,V,re){return!v(M.value)||(V(re),P)}),this},Qt.prototype.first=function(v){return this.limit(1).toArray(function(P){return P[0]}).then(v)},Qt.prototype.last=function(v){return this.reverse().first(v)},Qt.prototype.filter=function(v){var P;return Mi(this._ctx,function(M){return v(M.value)}),(P=this._ctx).isMatch=Cn(P.isMatch,v),this},Qt.prototype.and=function(v){return this.filter(v)},Qt.prototype.or=function(v){return new this.db.WhereClause(this._ctx.table,v,this)},Qt.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Qt.prototype.desc=function(){return this.reverse()},Qt.prototype.eachKey=function(v){var P=this._ctx;return P.keysOnly=!P.isMatch,this.each(function(M,V){v(V.key,V)})},Qt.prototype.eachUniqueKey=function(v){return this._ctx.unique="unique",this.eachKey(v)},Qt.prototype.eachPrimaryKey=function(v){var P=this._ctx;return P.keysOnly=!P.isMatch,this.each(function(M,V){v(V.primaryKey,V)})},Qt.prototype.keys=function(v){var P=this._ctx,M=(P.keysOnly=!P.isMatch,[]);return this.each(function(V,re){M.push(re.key)}).then(function(){return M}).then(v)},Qt.prototype.primaryKeys=function(v){var P=this._ctx;if(Rn(P,!0)&&0<P.limit)return this._read(function(V){var re=Xn(P,P.table.core.schema);return P.table.core.query({trans:V,values:!1,limit:P.limit,direction:P.dir==="prev"?"prev":void 0,query:{index:re,range:P.range}})}).then(function(V){return V.result}).then(v);P.keysOnly=!P.isMatch;var M=[];return this.each(function(V,re){M.push(re.primaryKey)}).then(function(){return M}).then(v)},Qt.prototype.uniqueKeys=function(v){return this._ctx.unique="unique",this.keys(v)},Qt.prototype.firstKey=function(v){return this.limit(1).keys(function(P){return P[0]}).then(v)},Qt.prototype.lastKey=function(v){return this.reverse().firstKey(v)},Qt.prototype.distinct=function(){var v,P=this._ctx,P=P.index&&P.table.schema.idxByName[P.index];return P&&P.multi&&(v={},Mi(this._ctx,function(V){var V=V.primaryKey.toString(),re=g(v,V);return v[V]=!0,!re})),this},Qt.prototype.modify=function(v){var P=this,M=this._ctx;return this._write(function(V){function re(Ye,Qe){var lt=Qe.failures;He+=Ye-Qe.numFailures;for(var ot=0,ft=a(lt);ot<ft.length;ot++){var bt=ft[ot];Ge.push(lt[bt])}}var pe=typeof v=="function"?v:function(Ye){return di(Ye,v)},Te=M.table.core,Je=Te.schema.primaryKey,Ne=Je.outbound,We=Je.extractKey,at=200,Je=P.db._options.modifyChunkSize,Ge=(Je&&(at=typeof Je=="object"?Je[Te.name]||Je["*"]||200:Je),[]),He=0,nt=[],Xe=v===cs;return P.clone().primaryKeys().then(function(Ye){function Qe(ot){var ft=Math.min(at,Ye.length-ot),bt=Ye.slice(ot,ot+ft);return(Xe?Promise.resolve([]):Te.getMany({trans:V,keys:bt,cache:"immutable"})).then(function(Et){var Ct=[],Pt=[],Dt=Ne?[]:null,At=Xe?bt:[];if(!Xe)for(var jt=0;jt<ft;++jt){var St=Et[jt],qt={value:ne(St),primKey:Ye[ot+jt]};pe.call(qt,qt.value,qt)!==!1&&(qt.value==null?At.push(Ye[ot+jt]):Ne||zt(We(St),We(qt.value))===0?(Pt.push(qt.value),Ne&&Dt.push(Ye[ot+jt])):(At.push(Ye[ot+jt]),Ct.push(qt.value)))}return Promise.resolve(0<Ct.length&&Te.mutate({trans:V,type:"add",values:Ct}).then(function($t){for(var Kt in $t.failures)At.splice(parseInt(Kt),1);re(Ct.length,$t)})).then(function(){return(0<Pt.length||lt&&typeof v=="object")&&Te.mutate({trans:V,type:"put",keys:Dt,values:Pt,criteria:lt,changeSpec:typeof v!="function"&&v,isAdditionalChunk:0<ot}).then(function($t){return re(Pt.length,$t)})}).then(function(){return(0<At.length||lt&&Xe)&&Te.mutate({trans:V,type:"delete",keys:At,criteria:lt,isAdditionalChunk:0<ot}).then(function($t){return mn(M.table,At,$t)}).then(function($t){return re(At.length,$t)})}).then(function(){return Ye.length>ot+ft&&Qe(ot+at)})})}var lt=Rn(M)&&M.limit===1/0&&(typeof v!="function"||Xe)&&{index:M.index,range:M.range};return Qe(0).then(function(){if(0<Ge.length)throw new ye("Error modifying one or more objects",Ge,He,nt);return Ye.length})})})},Qt.prototype.delete=function(){var v=this._ctx,P=v.range;return!Rn(v)||v.table.schema.yProps||!v.isPrimKey&&P.type!==3?this.modify(cs):this._write(function(M){var V=v.table.core.schema.primaryKey,re=P;return v.table.core.count({trans:M,query:{index:V,range:re}}).then(function(pe){return v.table.core.mutate({trans:M,type:"deleteRange",range:re}).then(function(We){var Ne=We.failures,We=We.numFailures;if(We)throw new ye("Could not delete some values",Object.keys(Ne).map(function(at){return Ne[at]}),pe-We);return pe-We})})})};var vn=Qt;function Qt(){}var cs=function(v,P){return P.value=null};function Ls(v,P){return v<P?-1:v===P?0:1}function hi(v,P){return P<v?-1:v===P?0:1}function Ar(v,P,M){return v=v instanceof Fi?new v.Collection(v):v,v._ctx.error=new(M||TypeError)(P),v}function jn(v){return new v.Collection(v,function(){return us("")}).limit(0)}function yi(nt,P,M,V){var re,pe,Te,Ne,We,at,Je,Ge=M.length;if(!M.every(function(Ye){return typeof Ye=="string"}))return Ar(nt,hn);function He(Ye){re=Ye==="next"?function(lt){return lt.toUpperCase()}:function(lt){return lt.toLowerCase()},pe=Ye==="next"?function(lt){return lt.toLowerCase()}:function(lt){return lt.toUpperCase()},Te=Ye==="next"?Ls:hi;var Qe=M.map(function(lt){return{lower:pe(lt),upper:re(lt)}}).sort(function(lt,ot){return Te(lt.lower,ot.lower)});Ne=Qe.map(function(lt){return lt.upper}),We=Qe.map(function(lt){return lt.lower}),Je=(at=Ye)==="next"?"":V}He("next");var nt=new nt.Collection(nt,function(){return Sn(Ne[0],We[Ge-1]+V)}),Xe=(nt._ondirectionchange=function(Ye){He(Ye)},0);return nt._addAlgorithm(function(Ye,Qe,lt){var ot=Ye.key;if(typeof ot=="string"){var ft=pe(ot);if(P(ft,We,Xe))return!0;for(var bt=null,Et=Xe;Et<Ge;++Et){var Ct=((Pt,Dt,At,jt,St,qt)=>{for(var $t=Math.min(Pt.length,jt.length),Kt=-1,Yt=0;Yt<$t;++Yt){var B=Dt[Yt];if(B!==jt[Yt])return St(Pt[Yt],At[Yt])<0?Pt.substr(0,Yt)+At[Yt]+At.substr(Yt+1):St(Pt[Yt],jt[Yt])<0?Pt.substr(0,Yt)+jt[Yt]+At.substr(Yt+1):0<=Kt?Pt.substr(0,Kt)+Dt[Kt]+At.substr(Kt+1):null;St(Pt[Yt],B)<0&&(Kt=Yt)}return $t<jt.length&&qt==="next"?Pt+At.substr(Pt.length):$t<Pt.length&&qt==="prev"?Pt.substr(0,At.length):Kt<0?null:Pt.substr(0,Kt)+jt[Kt]+At.substr(Kt+1)})(ot,ft,Ne[Et],We[Et],Te,at);Ct===null&&bt===null?Xe=Et+1:(bt===null||0<Te(bt,Ct))&&(bt=Ct)}Qe(bt!==null?function(){Ye.continue(bt+Je)}:lt)}return!1}),nt}function Sn(v,P,M,V){return{type:2,lower:v,upper:P,lowerOpen:M,upperOpen:V}}function us(v){return{type:1,lower:v,upper:v}}Object.defineProperty(br.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),br.prototype.between=function(v,P,M,V){M=M!==!1,V=V===!0;try{return 0<this._cmp(v,P)||this._cmp(v,P)===0&&(M||V)&&(!M||!V)?jn(this):new this.Collection(this,function(){return Sn(v,P,!M,!V)})}catch{return Ar(this,nn)}},br.prototype.equals=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return us(v)})},br.prototype.above=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(v,void 0,!0)})},br.prototype.aboveOrEqual=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(v,void 0,!1)})},br.prototype.below=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(void 0,v,!1,!0)})},br.prototype.belowOrEqual=function(v){return v==null?Ar(this,nn):new this.Collection(this,function(){return Sn(void 0,v)})},br.prototype.startsWith=function(v){return typeof v!="string"?Ar(this,hn):this.between(v,v+rn,!0,!0)},br.prototype.startsWithIgnoreCase=function(v){return v===""?this.startsWith(v):yi(this,function(P,M){return P.indexOf(M[0])===0},[v],rn)},br.prototype.equalsIgnoreCase=function(v){return yi(this,function(P,M){return P===M[0]},[v],"")},br.prototype.anyOfIgnoreCase=function(){var v=Y.apply(K,arguments);return v.length===0?jn(this):yi(this,function(P,M){return M.indexOf(P)!==-1},v,"")},br.prototype.startsWithAnyOfIgnoreCase=function(){var v=Y.apply(K,arguments);return v.length===0?jn(this):yi(this,function(P,M){return M.some(function(V){return P.indexOf(V)===0})},v,rn)},br.prototype.anyOf=function(){var v,P,M=this,V=Y.apply(K,arguments),re=this._cmp;try{V.sort(re)}catch{return Ar(this,nn)}return V.length===0?jn(this):((v=new this.Collection(this,function(){return Sn(V[0],V[V.length-1])}))._ondirectionchange=function(pe){re=pe==="next"?M._ascending:M._descending,V.sort(re)},P=0,v._addAlgorithm(function(pe,Te,Ne){for(var We=pe.key;0<re(We,V[P]);)if(++P===V.length)return Te(Ne),!1;return re(We,V[P])===0||(Te(function(){pe.continue(V[P])}),!1)}),v)},br.prototype.notEqual=function(v){return this.inAnyRange([[-1/0,v],[v,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},br.prototype.noneOf=function(){var v=Y.apply(K,arguments);if(v.length===0)return new this.Collection(this);try{v.sort(this._ascending)}catch{return Ar(this,nn)}var P=v.reduce(function(M,V){return M?M.concat([[M[M.length-1][1],V]]):[[-1/0,V]]},null);return P.push([v[v.length-1],this.db._maxKey]),this.inAnyRange(P,{includeLowers:!1,includeUppers:!1})},br.prototype.inAnyRange=function(v,lt){var M=this,V=this._cmp,re=this._ascending,pe=this._descending,Te=this._min,Ne=this._max;if(v.length===0)return jn(this);if(!v.every(function(ot){return ot[0]!==void 0&&ot[1]!==void 0&&re(ot[0],ot[1])<=0}))return Ar(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Me.InvalidArgument);var We=!lt||lt.includeLowers!==!1,at=lt&&lt.includeUppers===!0,Je,Ge=re;function He(ot,ft){return Ge(ot[0],ft[0])}try{(Je=v.reduce(function(ot,ft){for(var bt=0,Et=ot.length;bt<Et;++bt){var Ct=ot[bt];if(V(ft[0],Ct[1])<0&&0<V(ft[1],Ct[0])){Ct[0]=Te(Ct[0],ft[0]),Ct[1]=Ne(Ct[1],ft[1]);break}}return bt===Et&&ot.push(ft),ot},[])).sort(He)}catch{return Ar(this,nn)}var nt=0,Xe=at?function(ot){return 0<re(ot,Je[nt][1])}:function(ot){return 0<=re(ot,Je[nt][1])},Ye=We?function(ot){return 0<pe(ot,Je[nt][0])}:function(ot){return 0<=pe(ot,Je[nt][0])},Qe=Xe,lt=new this.Collection(this,function(){return Sn(Je[0][0],Je[Je.length-1][1],!We,!at)});return lt._ondirectionchange=function(ot){Ge=ot==="next"?(Qe=Xe,re):(Qe=Ye,pe),Je.sort(He)},lt._addAlgorithm(function(ot,ft,bt){for(var Et,Ct=ot.key;Qe(Ct);)if(++nt===Je.length)return ft(bt),!1;return!Xe(Et=Ct)&&!Ye(Et)||(M._cmp(Ct,Je[nt][1])===0||M._cmp(Ct,Je[nt][0])===0||ft(function(){Ge===re?ot.continue(Je[nt][0]):ot.continue(Je[nt][1])}),!1)}),lt},br.prototype.startsWithAnyOf=function(){var v=Y.apply(K,arguments);return v.every(function(P){return typeof P=="string"})?v.length===0?jn(this):this.inAnyRange(v.map(function(P){return[P,P+rn]})):Ar(this,"startsWithAnyOf() only works with strings")};var Fi=br;function br(){}function Cr(v){return Wt(function(P){return Tn(P),v(P.target.error),!1})}function Tn(v){v.stopPropagation&&v.stopPropagation(),v.preventDefault&&v.preventDefault()}var Mn="storagemutated",qi="x-storagemutated-1",Yr=gn(null,Mn),Fs=(Mr.prototype._lock=function(){return E(!xt.global),++this._reculock,this._reculock!==1||xt.global||(xt.lockOwnerFor=this),this},Mr.prototype._unlock=function(){if(E(!xt.global),--this._reculock==0)for(xt.global||(xt.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var v=this._blockedFuncs.shift();try{Nr(v[1],v[0])}catch{}}return this},Mr.prototype._locked=function(){return this._reculock&&xt.lockOwnerFor!==this},Mr.prototype.create=function(v){var P=this;if(this.mode){var M=this.db.idbdb,V=this.db._state.dbOpenError;if(E(!this.idbtrans),!v&&!M)switch(V&&V.name){case"DatabaseClosedError":throw new Me.DatabaseClosed(V);case"MissingAPIError":throw new Me.MissingAPI(V.message,V);default:throw new Me.OpenFailed(V)}if(!this.active)throw new Me.TransactionInactive;E(this._completion._state===null),(v=this.idbtrans=v||(this.db.core||M).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Wt(function(re){Tn(re),P._reject(v.error)}),v.onabort=Wt(function(re){Tn(re),P.active&&P._reject(new Me.Abort(v.error)),P.active=!1,P.on("abort").fire(re)}),v.oncomplete=Wt(function(){P.active=!1,P._resolve(),"mutatedParts"in v&&Yr.storagemutated.fire(v.mutatedParts)})}return this},Mr.prototype._promise=function(v,P,M){var V,re=this;return v==="readwrite"&&this.mode!=="readwrite"?dr(new Me.ReadOnly("Transaction is readonly")):this.active?this._locked()?new be(function(pe,Te){re._blockedFuncs.push([function(){re._promise(v,P,M).then(pe,Te)},xt])}):M?Vr(function(){var pe=new be(function(Te,Ne){re._lock();var We=P(Te,Ne,re);We&&We.then&&We.then(Te,Ne)});return pe.finally(function(){return re._unlock()}),pe._lib=!0,pe}):((V=new be(function(pe,Te){var Ne=P(pe,Te,re);Ne&&Ne.then&&Ne.then(pe,Te)}))._lib=!0,V):dr(new Me.TransactionInactive)},Mr.prototype._root=function(){return this.parent?this.parent._root():this},Mr.prototype.waitFor=function(v){var P,M=this._root(),V=be.resolve(v),re=(M._waitingFor?M._waitingFor=M._waitingFor.then(function(){return V}):(M._waitingFor=V,M._waitingQueue=[],P=M.idbtrans.objectStore(M.storeNames[0]),function pe(){for(++M._spinCount;M._waitingQueue.length;)M._waitingQueue.shift()();M._waitingFor&&(P.get(-1/0).onsuccess=pe)}()),M._waitingFor);return new be(function(pe,Te){V.then(function(Ne){return M._waitingQueue.push(Wt(pe.bind(null,Ne)))},function(Ne){return M._waitingQueue.push(Wt(Te.bind(null,Ne)))}).finally(function(){M._waitingFor===re&&(M._waitingFor=null)})})},Mr.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Me.Abort))},Mr.prototype.table=function(v){var P=this._memoizedTables||(this._memoizedTables={});if(g(P,v))return P[v];var M=this.schema[v];if(M)return(M=new this.db.Table(v,M,this)).core=this.db.core.table(v),P[v]=M;throw new Me.NotFound("Table "+v+" not part of transaction")},Mr);function Mr(){}function $i(v,P,M,V,re,pe,Te,Ne){return{name:v,keyPath:P,unique:M,multi:V,auto:re,compound:pe,src:(M&&!Te?"&":"")+(V?"*":"")+(re?"++":"")+Ui(P),type:Ne}}function Ui(v){return typeof v=="string"?v:v?"["+[].join.call(v,"+")+"]":""}function It(v,P,M){return{name:v,primKey:P,indexes:M,mappedClass:null,idxByName:(V=function(re){return[re.name,re]},M.reduce(function(re,pe,Te){return pe=V(pe,Te),pe&&(re[pe[0]]=pe[1]),re},{}))};var V}var Qn=function(v){try{return v.only([[]]),Qn=function(){return[[]]},[[]]}catch{return Qn=function(){return rn},rn}};function mi(v){return v==null?function(){}:typeof v=="string"?(P=v).split(".").length===1?function(M){return M[P]}:function(M){return R(M,P)}:function(M){return R(M,v)};var P}function fs(v){return[].slice.call(v)}var qs=0;function Zn(v){return v==null?":id":typeof v=="string"?v:"[".concat(v.join("+"),"]")}function $s(v,P,Te){function V(Qe){if(Qe.type===3)return null;if(Qe.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var nt=Qe.lower,Xe=Qe.upper,Ye=Qe.lowerOpen,Qe=Qe.upperOpen;return nt===void 0?Xe===void 0?null:P.upperBound(Xe,!!Qe):Xe===void 0?P.lowerBound(nt,!!Ye):P.bound(nt,Xe,!!Ye,!!Qe)}function re(He){var nt,Xe,Ye=He.name;return{name:Ye,schema:He,mutate:function(Qe){var lt=Qe.trans,ot=Qe.type,ft=Qe.keys,bt=Qe.values,Et=Qe.range;return new Promise(function(Ct,Pt){Ct=Wt(Ct);var Dt=lt.objectStore(Ye),At=Dt.keyPath==null,jt=ot==="put"||ot==="add";if(!jt&&ot!=="delete"&&ot!=="deleteRange")throw new Error("Invalid operation type: "+ot);var St,qt=(ft||bt||{length:1}).length;if(ft&&bt&&ft.length!==bt.length)throw new Error("Given keys array must have same length as given values array.");if(qt===0)return Ct({numFailures:0,failures:{},results:[],lastResult:void 0});function $t(tt){++B,Tn(tt)}var Kt=[],Yt=[],B=0;if(ot==="deleteRange"){if(Et.type===4)return Ct({numFailures:B,failures:Yt,results:[],lastResult:void 0});Et.type===3?Kt.push(St=Dt.clear()):Kt.push(St=Dt.delete(V(Et)))}else{var At=jt?At?[bt,ft]:[bt,null]:[ft,null],k=At[0],F=At[1];if(jt)for(var ie=0;ie<qt;++ie)Kt.push(St=F&&F[ie]!==void 0?Dt[ot](k[ie],F[ie]):Dt[ot](k[ie])),St.onerror=$t;else for(ie=0;ie<qt;++ie)Kt.push(St=Dt[ot](k[ie])),St.onerror=$t}function ke(tt){tt=tt.target.result,Kt.forEach(function(Nt,cr){return Nt.error!=null&&(Yt[cr]=Nt.error)}),Ct({numFailures:B,failures:Yt,results:ot==="delete"?ft:Kt.map(function(Nt){return Nt.result}),lastResult:tt})}St.onerror=function(tt){$t(tt),ke(tt)},St.onsuccess=ke})},getMany:function(Qe){var lt=Qe.trans,ot=Qe.keys;return new Promise(function(ft,bt){ft=Wt(ft);for(var Et,Ct=lt.objectStore(Ye),Pt=ot.length,Dt=new Array(Pt),At=0,jt=0,St=function(Kt){Kt=Kt.target,Dt[Kt._pos]=Kt.result,++jt===At&&ft(Dt)},qt=Cr(bt),$t=0;$t<Pt;++$t)ot[$t]!=null&&((Et=Ct.get(ot[$t]))._pos=$t,Et.onsuccess=St,Et.onerror=qt,++At);At===0&&ft(Dt)})},get:function(Qe){var lt=Qe.trans,ot=Qe.key;return new Promise(function(ft,bt){ft=Wt(ft);var Et=lt.objectStore(Ye).get(ot);Et.onsuccess=function(Ct){return ft(Ct.target.result)},Et.onerror=Cr(bt)})},query:(nt=We,Xe=at,function(Qe){return new Promise(function(lt,ot){lt=Wt(lt);var ft,bt,Et,Ct,qt=Qe.trans,Pt=Qe.values,Dt=Qe.limit,St=Qe.query,At=(At=Qe.direction)!=null?At:"next",jt=Dt===1/0?void 0:Dt,$t=St.index,St=St.range,qt=qt.objectStore(Ye),qt=$t.isPrimaryKey?qt:qt.index($t.name),$t=V(St);if(Dt===0)return lt({result:[]});Xe?(St={query:$t,count:jt,direction:At},(ft=Pt?qt.getAll(St):qt.getAllKeys(St)).onsuccess=function(Kt){return lt({result:Kt.target.result})},ft.onerror=Cr(ot)):nt&&At==="next"?((ft=Pt?qt.getAll($t,jt):qt.getAllKeys($t,jt)).onsuccess=function(Kt){return lt({result:Kt.target.result})},ft.onerror=Cr(ot)):(bt=0,Et=!Pt&&"openKeyCursor"in qt?qt.openKeyCursor($t,At):qt.openCursor($t,At),Ct=[],Et.onsuccess=function(){var Kt=Et.result;return!Kt||(Ct.push(Pt?Kt.value:Kt.primaryKey),++bt===Dt)?lt({result:Ct}):void Kt.continue()},Et.onerror=Cr(ot))})}),openCursor:function(Qe){var lt=Qe.trans,ot=Qe.values,ft=Qe.query,bt=Qe.reverse,Et=Qe.unique;return new Promise(function(Ct,Pt){Ct=Wt(Ct);var jt=ft.index,Dt=ft.range,At=lt.objectStore(Ye),At=jt.isPrimaryKey?At:At.index(jt.name),jt=bt?Et?"prevunique":"prev":Et?"nextunique":"next",St=!ot&&"openKeyCursor"in At?At.openKeyCursor(V(Dt),jt):At.openCursor(V(Dt),jt);St.onerror=Cr(Pt),St.onsuccess=Wt(function(qt){var $t,Kt,Yt,B,k=St.result;k?(k.___id=++qs,k.done=!1,$t=k.continue.bind(k),Kt=(Kt=k.continuePrimaryKey)&&Kt.bind(k),Yt=k.advance.bind(k),B=function(){throw new Error("Cursor not stopped")},k.trans=lt,k.stop=k.continue=k.continuePrimaryKey=k.advance=function(){throw new Error("Cursor not started")},k.fail=Wt(Pt),k.next=function(){var F=this,ie=1;return this.start(function(){return ie--?F.continue():F.stop()}).then(function(){return F})},k.start=function(F){function ie(){if(St.result)try{F()}catch(tt){k.fail(tt)}else k.done=!0,k.start=function(){throw new Error("Cursor behind last entry")},k.stop()}var ke=new Promise(function(tt,Nt){tt=Wt(tt),St.onerror=Cr(Nt),k.fail=Nt,k.stop=function(cr){k.stop=k.continue=k.continuePrimaryKey=k.advance=B,tt(cr)}});return St.onsuccess=Wt(function(tt){St.onsuccess=ie,ie()}),k.continue=$t,k.continuePrimaryKey=Kt,k.advance=Yt,ie(),ke},Ct(k)):Ct(null)},Pt)})},count:function(Qe){var lt=Qe.query,ot=Qe.trans,ft=lt.index,bt=lt.range;return new Promise(function(Et,Ct){var Pt=ot.objectStore(Ye),Pt=ft.isPrimaryKey?Pt:Pt.index(ft.name),Dt=V(bt),Dt=Dt?Pt.count(Dt):Pt.count();Dt.onsuccess=Wt(function(At){return Et(At.target.result)}),Dt.onerror=Cr(Ct)})}}}pe=Te,Ne=fs((Te=v).objectStoreNames),Je=0<Ne.length?pe.objectStore(Ne[0]):{};var pe,Te={schema:{name:Te.name,tables:Ne.map(function(He){return pe.objectStore(He)}).map(function(He){var nt=He.keyPath,Xe=He.autoIncrement,Qe=u(nt),Ye={},Qe={name:He.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:nt==null,compound:Qe,keyPath:nt,autoIncrement:Xe,unique:!0,extractKey:mi(nt)},indexes:fs(He.indexNames).map(function(lt){return He.index(lt)}).map(function(bt){var Et=bt.name,ot=bt.unique,ft=bt.multiEntry,bt=bt.keyPath,Et={name:Et,compound:u(bt),keyPath:bt,unique:ot,multiEntry:ft,extractKey:mi(bt)};return Ye[Zn(bt)]=Et}),getIndexByKeyPath:function(lt){return Ye[Zn(lt)]}};return Ye[":id"]=Qe.primaryKey,nt!=null&&(Ye[Zn(nt)]=Qe.primaryKey),Qe})},hasGetAll:0<Ne.length&&"getAll"in Je&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604),hasIdb3Features:"getAllRecords"in Je},Ne=Te.schema,We=Te.hasGetAll,at=Te.hasIdb3Features,Je=Ne.tables.map(re),Ge={};return Je.forEach(function(He){return Ge[He.name]=He}),{stack:"dbcore",transaction:v.transaction.bind(v),table:function(He){if(Ge[He])return Ge[He];throw new Error("Table '".concat(He,"' not found"))},MIN_KEY:-1/0,MAX_KEY:Qn(P),schema:Ne}}function ps(v,P,M,V){return M=M.IDBKeyRange,P=$s(P,M,V),{dbcore:v.dbcore.reduce(function(re,pe){return pe=pe.create,n(n({},re),pe(re))},P)}}function gi(v,P){var M=P.db,M=ps(v._middlewares,M,v._deps,P);v.core=M.dbcore,v.tables.forEach(function(V){var re=V.name;v.core.schema.tables.some(function(pe){return pe.name===re})&&(V.core=v.core.table(re),v[re]instanceof v.Table)&&(v[re].core=V.core)})}function ei(v,P,M,V){M.forEach(function(re){var pe=V[re];P.forEach(function(Te){var Ne=function We(at,Je){return w(at,Je)||(at=y(at))&&We(at,Je)}(Te,re);(!Ne||"value"in Ne&&Ne.value===void 0)&&(Te===v.Transaction.prototype||Te instanceof v.Transaction?O(Te,re,{get:function(){return this.table(re)},set:function(We){S(this,re,{value:We,writable:!0,configurable:!0,enumerable:!0})}}):Te[re]=new v.Table(re,pe))})})}function bi(v,P){P.forEach(function(M){for(var V in M)M[V]instanceof v.Table&&delete M[V]})}function Us(v,P){return v._cfg.version-P._cfg.version}function Vs(v,P,M,V){var re=v._dbSchema,pe=(M.objectStoreNames.contains("$meta")&&!re.$meta&&(re.$meta=It("$meta",hs("")[0],[]),v._storeNames.push("$meta")),v._createTransaction("readwrite",v._storeNames,re)),Te=(pe.create(M),pe._completion.catch(V),pe._reject.bind(pe)),Ne=xt.transless||xt;Vr(function(){if(xt.trans=pe,xt.transless=Ne,P!==0)return gi(v,M),at=P,((We=pe).storeNames.includes("$meta")?We.table("$meta").get("version").then(function(Je){return Je??at}):be.resolve(at)).then(function(Qe){var Ge=v,He=Qe,nt=pe,Xe=M,Ye=[],Qe=Ge._versions,lt=Ge._dbSchema=Ti(0,Ge.idbdb,Xe);return(Qe=Qe.filter(function(ot){return ot._cfg.version>=He})).length===0?be.resolve():(Qe.forEach(function(ot){Ye.push(function(){var ft,bt,Et,Ct=lt,Pt=ot._cfg.dbschema,Dt=(Ln(Ge,Ct,Xe),Ln(Ge,Pt,Xe),lt=Ge._dbSchema=Pt,vi(Ct,Pt)),At=(Dt.add.forEach(function(jt){Vi(Xe,jt[0],jt[1].primKey,jt[1].indexes)}),Dt.change.forEach(function(jt){if(jt.recreate)throw new Me.Upgrade("Not yet support for changing primary key");var St=Xe.objectStore(jt.name);jt.add.forEach(function(qt){return Si(St,qt)}),jt.change.forEach(function(qt){St.deleteIndex(qt.name),Si(St,qt)}),jt.del.forEach(function(qt){return St.deleteIndex(qt)})}),ot._cfg.contentUpgrade);if(At&&ot._cfg.version>He)return gi(Ge,Xe),nt._memoizedTables={},ft=D(Pt),Dt.del.forEach(function(jt){ft[jt]=Ct[jt]}),bi(Ge,[Ge.Transaction.prototype]),ei(Ge,[Ge.Transaction.prototype],a(ft),ft),nt.schema=ft,(bt=he(At))&&tn(),Pt=be.follow(function(){var jt;(Et=At(nt))&&bt&&(jt=Rr.bind(null,null),Et.then(jt,jt))}),Et&&typeof Et.then=="function"?be.resolve(Et):Pt.then(function(){return Et})}),Ye.push(function(ft){var bt,Et,Ct=ot._cfg.dbschema;bt=Ct,Et=ft,[].slice.call(Et.db.objectStoreNames).forEach(function(Pt){return bt[Pt]==null&&Et.db.deleteObjectStore(Pt)}),bi(Ge,[Ge.Transaction.prototype]),ei(Ge,[Ge.Transaction.prototype],Ge._storeNames,Ge._dbSchema),nt.schema=Ge._dbSchema}),Ye.push(function(ft){Ge.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Ge.idbdb.version/10)===ot._cfg.version?(Ge.idbdb.deleteObjectStore("$meta"),delete Ge._dbSchema.$meta,Ge._storeNames=Ge._storeNames.filter(function(bt){return bt!=="$meta"})):ft.objectStore("$meta").put(ot._cfg.version,"version"))})}),function ot(){return Ye.length?be.resolve(Ye.shift()(nt.idbtrans)).then(ot):be.resolve()}().then(function(){Ki(lt,Xe)}))}).catch(Te);var We,at;a(re).forEach(function(Je){Vi(M,Je,re[Je].primKey,re[Je].indexes)}),gi(v,M),be.follow(function(){return v.on.populate.fire(pe)}).catch(Te)})}function ds(v,P){Ki(v._dbSchema,P),P.db.version%10!=0||P.objectStoreNames.contains("$meta")||P.db.createObjectStore("$meta").add(Math.ceil(P.db.version/10-1),"version");var M=Ti(0,v.idbdb,P);Ln(v,v._dbSchema,P);for(var V=0,re=vi(M,v._dbSchema).change;V<re.length;V++){var pe=(Te=>{if(Te.change.length||Te.recreate)return console.warn("Unable to patch indexes of table ".concat(Te.name," because it has changes on the type of index or primary key.")),{value:void 0};var Ne=P.objectStore(Te.name);Te.add.forEach(function(We){ht&&console.debug("Dexie upgrade patch: Creating missing index ".concat(Te.name,".").concat(We.src)),Si(Ne,We)})})(re[V]);if(typeof pe=="object")return pe.value}}function vi(v,P){var M,V={del:[],add:[],change:[]};for(M in v)P[M]||V.del.push(M);for(M in P){var re=v[M],pe=P[M];if(re){var Te={name:M,def:pe,recreate:!1,del:[],add:[],change:[]};if(""+(re.primKey.keyPath||"")!=""+(pe.primKey.keyPath||"")||re.primKey.auto!==pe.primKey.auto)Te.recreate=!0,V.change.push(Te);else{var Ne=re.idxByName,We=pe.idxByName,at=void 0;for(at in Ne)We[at]||Te.del.push(at);for(at in We){var Je=Ne[at],Ge=We[at];Je?Je.src!==Ge.src&&Te.change.push(Ge):Te.add.push(Ge)}(0<Te.del.length||0<Te.add.length||0<Te.change.length)&&V.change.push(Te)}}else V.add.push([M,pe])}return V}function Vi(v,P,M,V){var re=v.db.createObjectStore(P,M.keyPath?{keyPath:M.keyPath,autoIncrement:M.auto}:{autoIncrement:M.auto});V.forEach(function(pe){return Si(re,pe)})}function Ki(v,P){a(v).forEach(function(M){P.db.objectStoreNames.contains(M)||(ht&&console.debug("Dexie: Creating missing table",M),Vi(P,M,v[M].primKey,v[M].indexes))})}function Si(v,P){v.createIndex(P.name,P.keyPath,{unique:P.unique,multiEntry:P.multi})}function Ti(v,P,M){var V={};return T(P.objectStoreNames,0).forEach(function(re){for(var pe=M.objectStore(re),Te=$i(Ui(at=pe.keyPath),at||"",!0,!1,!!pe.autoIncrement,at&&typeof at!="string",!0),Ne=[],We=0;We<pe.indexNames.length;++We){var Je=pe.index(pe.indexNames[We]),at=Je.keyPath,Je=$i(Je.name,at,!!Je.unique,!!Je.multiEntry,!1,at&&typeof at!="string",!1);Ne.push(Je)}V[re]=It(re,Te,Ne)}),V}function Ln(v,P,M){for(var V=M.db.objectStoreNames,re=0;re<V.length;++re){var pe=V[re],Te=M.objectStore(pe);v._hasGetAll="getAll"in Te;for(var Ne=0;Ne<Te.indexNames.length;++Ne){var We,at=Te.indexNames[Ne],Je=Te.index(at).keyPath,Je=typeof Je=="string"?Je:"["+T(Je).join("+")+"]";P[pe]&&(We=P[pe].idxByName[Je])&&(We.name=at,delete P[pe].idxByName[Je],P[pe].idxByName[at]=We)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(v._hasGetAll=!1)}function hs(v){return v.split(",").map(function(P,M){var re=P.split(":"),V=(V=re[1])==null?void 0:V.trim(),re=(P=re[0].trim()).replace(/([&*]|\+\+)/g,""),pe=/^\[/.test(re)?re.match(/^\[(.*)\]$/)[1].split("+"):re;return $i(re,pe||null,/\&/.test(P),/\*/.test(P),/\+\+/.test(P),u(pe),M===0,V)})}En.prototype._createTableSchema=It,En.prototype._parseIndexSyntax=hs,En.prototype._parseStoresSpec=function(v,P){var M=this;a(v).forEach(function(V){if(v[V]!==null){var re=M._parseIndexSyntax(v[V]),pe=re.shift();if(!pe)throw new Me.Schema("Invalid schema for table "+V+": "+v[V]);if(pe.unique=!0,pe.multi)throw new Me.Schema("Primary key cannot be multiEntry*");re.forEach(function(Te){if(Te.auto)throw new Me.Schema("Only primary key can be marked as autoIncrement (++)");if(!Te.keyPath)throw new Me.Schema("Index must have a name and cannot be an empty string")}),pe=M._createTableSchema(V,pe,re),P[V]=pe}})},En.prototype.stores=function(M){var P=this.db,M=(this._cfg.storesSource=this._cfg.storesSource?p(this._cfg.storesSource,M):M,P._versions),V={},re={};return M.forEach(function(pe){p(V,pe._cfg.storesSource),re=pe._cfg.dbschema={},pe._parseStoresSpec(V,re)}),P._dbSchema=re,bi(P,[P._allTables,P,P.Transaction.prototype]),ei(P,[P._allTables,P,P.Transaction.prototype,this._cfg.tables],a(re),re),P._storeNames=a(re),this},En.prototype.upgrade=function(v){return this._cfg.contentUpgrade=gt(this._cfg.contentUpgrade||Ze,v),this};var Ks=En;function En(){}var ti=(()=>{var v,P,M;return typeof FinalizationRegistry<"u"&&typeof WeakRef<"u"?(v=new Set,P=new FinalizationRegistry(function(V){v.delete(V)}),{toArray:function(){return Array.from(v).map(function(V){return V.deref()}).filter(function(V){return V!==void 0})},add:function(V){var re=new WeakRef(V._novip);v.add(re),P.register(V._novip,re,re),v.size>V._options.maxConnections&&(re=v.values().next().value,v.delete(re),P.unregister(re))},remove:function(V){if(V)for(var re=v.values(),pe=re.next();!pe.done;){var Te=pe.value;if(Te.deref()===V._novip)return v.delete(Te),void P.unregister(Te);pe=re.next()}}}):(M=[],{toArray:function(){return M},add:function(V){M.push(V._novip)},remove:function(V){V&&(V=M.indexOf(V._novip))!==-1&&M.splice(V,1)}})})();function Wi(v,P){var M=v._dbNamesDB;return M||(M=v._dbNamesDB=new Xr(Wr,{addons:[],indexedDB:v,IDBKeyRange:P})).version(1).stores({dbnames:"name"}),M.table("dbnames")}function Ei(v){return v&&typeof v.databases=="function"}function Gi(v){return Vr(function(){return xt.letThrough=!0,v()})}function zi(v){return!("from"in v)}var Tr=function(v,P){var M;if(!this)return M=new Tr,v&&"d"in v&&p(M,v),M;p(this,arguments.length?{d:1,from:v,to:1<arguments.length?P:v}:{d:0})};function ri(v,P,M){var V=zt(P,M);if(!isNaN(V)){if(0<V)throw RangeError();if(zi(v))return p(v,{from:P,to:M,d:1});var V=v.l,re=v.r;if(zt(M,v.from)<0)return V?ri(V,P,M):v.l={from:P,to:M,d:1,l:null,r:null},z(v);if(0<zt(P,v.to))return re?ri(re,P,M):v.r={from:P,to:M,d:1,l:null,r:null},z(v);zt(P,v.from)<0&&(v.from=P,v.l=null,v.d=re?re.d+1:1),0<zt(M,v.to)&&(v.to=M,v.r=null,v.d=v.l?v.l.d+1:1),P=!v.r,V&&!v.l&&sn(v,V),re&&P&&sn(v,re)}}function sn(v,P){zi(P)||function M(V,re){var pe=re.from,Te=re.l,Ne=re.r;ri(V,pe,re.to),Te&&M(V,Te),Ne&&M(V,Ne)}(v,P)}function Hi(v,P){var M=xi(P),V=M.next();if(!V.done)for(var re=V.value,pe=xi(v),Te=pe.next(re.from),Ne=Te.value;!V.done&&!Te.done;){if(zt(Ne.from,re.to)<=0&&0<=zt(Ne.to,re.from))return!0;zt(re.from,Ne.from)<0?re=(V=M.next(Ne.from)).value:Ne=(Te=pe.next(re.from)).value}return!1}function xi(v){var P=zi(v)?null:{s:0,n:v};return{next:function(M){for(var V=0<arguments.length;P;)switch(P.s){case 0:if(P.s=1,V)for(;P.n.l&&zt(M,P.n.from)<0;)P={up:P,n:P.n.l,s:1};else for(;P.n.l;)P={up:P,n:P.n.l,s:1};case 1:if(P.s=2,!V||zt(M,P.n.to)<=0)return{value:P.n,done:!1};case 2:if(P.n.r){P.s=3,P={up:P,n:P.n.r,s:0};continue}case 3:P=P.up}return{done:!0}}}}function z(v){var P,M,V,re=(((re=v.r)==null?void 0:re.d)||0)-(((re=v.l)==null?void 0:re.d)||0),re=1<re?"r":re<-1?"l":"";re&&(P=re=="r"?"l":"r",M=n({},v),V=v[re],v.from=V.from,v.to=V.to,v[re]=V[re],M[re]=V[P],(v[P]=M).d=l(M)),v.d=l(v)}function l(M){var P=M.r,M=M.l;return(P?M?Math.max(P.d,M.d):P.d:M?M.d:0)+1}function i(v,P){return a(P).forEach(function(M){v[M]?sn(v[M],P[M]):v[M]=function V(re){var pe,Te,Ne={};for(pe in re)g(re,pe)&&(Te=re[pe],Ne[pe]=!Te||typeof Te!="object"||N.has(Te.constructor)?Te:V(Te));return Ne}(P[M])}),v}function c(v,P){return v.all||P.all||Object.keys(v).some(function(M){return P[M]&&Hi(P[M],v[M])})}b(Tr.prototype,((oe={add:function(v){return sn(this,v),this},addKey:function(v){return ri(this,v,v),this},addKeys:function(v){var P=this;return v.forEach(function(M){return ri(P,M,M)}),this},hasKey:function(v){var P=xi(this).next(v).value;return P&&zt(P.from,v)<=0&&0<=zt(P.to,v)}})[Ae]=function(){return xi(this)},oe));var d={},A={},Q=!1;function le(v){i(A,v),Q||(Q=!0,setTimeout(function(){Q=!1,Pe(A,!(A={}))},0))}function Pe(v,P){P===void 0&&(P=!1);var M=new Set;if(v.all)for(var V=0,re=Object.values(d);V<re.length;V++)Be(Ne=re[V],v,M,P);else for(var pe in v){var Te,Ne,pe=/^idb\:\/\/(.*)\/(.*)\//.exec(pe);pe&&(Te=pe[1],pe=pe[2],Ne=d["idb://".concat(Te,"/").concat(pe)])&&Be(Ne,v,M,P)}M.forEach(function(We){return We()})}function Be(v,P,M,V){for(var re=[],pe=0,Te=Object.entries(v.queries.query);pe<Te.length;pe++){for(var Ne=Te[pe],We=Ne[0],at=[],Je=0,Ge=Ne[1];Je<Ge.length;Je++){var He=Ge[Je];c(P,He.obsSet)?He.subscribers.forEach(function(Qe){return M.add(Qe)}):V&&at.push(He)}V&&re.push([We,at])}if(V)for(var nt=0,Xe=re;nt<Xe.length;nt++){var Ye=Xe[nt],We=Ye[0],at=Ye[1];v.queries.query[We]=at}}function Ue(v){var P=v._state,M=v._deps.indexedDB;if(P.isBeingOpened||v.idbdb)return P.dbReadyPromise.then(function(){return P.dbOpenError?dr(P.dbOpenError):v});P.isBeingOpened=!0,P.dbOpenError=null,P.openComplete=!1;var V=P.openCanceller,re=Math.round(10*v.verno),pe=!1;function Te(){if(P.openCanceller!==V)throw new Me.DatabaseClosed("db.open() was cancelled")}function Ne(){return new be(function(He,nt){if(Te(),!M)throw new Me.MissingAPI;var Xe=v.name,Ye=P.autoSchema||!re?M.open(Xe):M.open(Xe,re);if(!Ye)throw new Me.MissingAPI;Ye.onerror=Cr(nt),Ye.onblocked=Wt(v._fireOnBlocked),Ye.onupgradeneeded=Wt(function(Qe){var lt;Je=Ye.transaction,P.autoSchema&&!v._options.allowEmptyDB?(Ye.onerror=Tn,Je.abort(),Ye.result.close(),(lt=M.deleteDatabase(Xe)).onsuccess=lt.onerror=Wt(function(){nt(new Me.NoSuchDatabase("Database ".concat(Xe," doesnt exist")))})):(Je.onerror=Cr(nt),lt=Qe.oldVersion>Math.pow(2,62)?0:Qe.oldVersion,Ge=lt<1,v.idbdb=Ye.result,pe&&ds(v,Je),Vs(v,lt/10,Je,nt))},nt),Ye.onsuccess=Wt(function(){Je=null;var Qe,lt,ot,ft,bt,Et,Ct=v.idbdb=Ye.result,Pt=T(Ct.objectStoreNames);if(0<Pt.length)try{var Dt=Ct.transaction((bt=Pt).length===1?bt[0]:bt,"readonly");if(P.autoSchema)Et=Ct,ft=Dt,(ot=v).verno=Et.version/10,ft=ot._dbSchema=Ti(0,Et,ft),ot._storeNames=T(Et.objectStoreNames,0),ei(ot,[ot._allTables],a(ft),ft);else if(Ln(v,v._dbSchema,Dt),lt=Dt,((lt=vi(Ti(0,(Qe=v).idbdb,lt),Qe._dbSchema)).add.length||lt.change.some(function(At){return At.add.length||At.change.length}))&&!pe)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Ct.close(),re=Ct.version+1,pe=!0,He(Ne());gi(v,Dt)}catch{}ti.add(v),Ct.onversionchange=Wt(function(At){P.vcFired=!0,v.on("versionchange").fire(At)}),Ct.onclose=Wt(function(){v.close({disableAutoOpen:!1})}),Ge&&(Pt=v._deps,bt=Xe,Ei(Et=Pt.indexedDB)||bt===Wr||Wi(Et,Pt.IDBKeyRange).put({name:bt}).catch(Ze)),He()},nt)}).catch(function(He){switch(He==null?void 0:He.name){case"UnknownError":if(0<P.PR1398_maxLoop)return P.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),Ne();break;case"VersionError":if(0<re)return re=0,Ne()}return be.reject(He)})}var We,at=P.dbReadyResolve,Je=null,Ge=!1;return be.race([V,(typeof navigator>"u"?be.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(He){function nt(){return indexedDB.databases().finally(He)}We=setInterval(nt,100),nt()}).finally(function(){return clearInterval(We)}):Promise.resolve()).then(Ne)]).then(function(){return Te(),P.onReadyBeingFired=[],be.resolve(Gi(function(){return v.on.ready.fire(v.vip)})).then(function He(){var nt;if(0<P.onReadyBeingFired.length)return nt=P.onReadyBeingFired.reduce(gt,Ze),P.onReadyBeingFired=[],be.resolve(Gi(function(){return nt(v.vip)})).then(He)})}).finally(function(){P.openCanceller===V&&(P.onReadyBeingFired=null,P.isBeingOpened=!1)}).catch(function(He){P.dbOpenError=He;try{Je&&Je.abort()}catch{}return V===P.openCanceller&&v._close(),dr(He)}).finally(function(){P.openComplete=!0,at()}).then(function(){var He;return Ge&&(He={},v.tables.forEach(function(nt){nt.schema.indexes.forEach(function(Xe){Xe.name&&(He["idb://".concat(v.name,"/").concat(nt.name,"/").concat(Xe.name)]=new Tr(-1/0,[[[]]]))}),He["idb://".concat(v.name,"/").concat(nt.name,"/")]=He["idb://".concat(v.name,"/").concat(nt.name,"/:dels")]=new Tr(-1/0,[[[]]])}),Yr(Mn).fire(He),Pe(He,!0)),v})}function ct(v){function P(pe){return v.next(pe)}var M=re(P),V=re(function(pe){return v.throw(pe)});function re(pe){return function(Ne){var Ne=pe(Ne),We=Ne.value;return Ne.done?We:We&&typeof We.then=="function"?We.then(M,V):u(We)?Promise.all(We).then(M,V):M(We)}}return re(P)()}function vt(v,P,M){for(var V=u(v)?v.slice():[v],re=0;re<M;++re)V.push(P);return V}var wt={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(v){return n(n({},v),{table:function(V){var M=v.table(V),V=M.schema,re=Object.create(null),pe=[];function Te(He,nt,Xe){var ot=Zn(He),Ye=re[ot]=re[ot]||[],Qe=He==null?0:typeof He=="string"?1:He.length,lt=0<nt,ot=n(n({},Xe),{name:lt?"".concat(ot,"(virtual-from:").concat(Xe.name,")"):Xe.name,lowLevelIndex:Xe,isVirtual:lt,keyTail:nt,keyLength:Qe,extractKey:mi(He),unique:!lt&&Xe.unique});return Ye.push(ot),ot.isPrimaryKey||pe.push(ot),1<Qe&&Te(Qe===2?He[0]:He.slice(0,Qe-1),nt+1,Xe),Ye.sort(function(ft,bt){return ft.keyTail-bt.keyTail}),ot}var Ne=Te(V.primaryKey.keyPath,0,V.primaryKey);re[":id"]=[Ne];for(var We=0,at=V.indexes;We<at.length;We++){var Je=at[We];Te(Je.keyPath,0,Je)}function Ge(He){var nt,Xe=He.query.index;return Xe.isVirtual?n(n({},He),{query:{index:Xe.lowLevelIndex,range:(nt=He.query.range,Xe=Xe.keyTail,{type:nt.type===1?2:nt.type,lower:vt(nt.lower,nt.lowerOpen?v.MAX_KEY:v.MIN_KEY,Xe),lowerOpen:!0,upper:vt(nt.upper,nt.upperOpen?v.MIN_KEY:v.MAX_KEY,Xe),upperOpen:!0})}}):He}return n(n({},M),{schema:n(n({},V),{primaryKey:Ne,indexes:pe,getIndexByKeyPath:function(He){return(He=re[Zn(He)])&&He[0]}}),count:function(He){return M.count(Ge(He))},query:function(He){return M.query(Ge(He))},openCursor:function(He){var nt=He.query.index,Xe=nt.keyTail,Ye=nt.keyLength;return nt.isVirtual?M.openCursor(Ge(He)).then(function(lt){return lt&&Qe(lt)}):M.openCursor(He);function Qe(lt){return Object.create(lt,{continue:{value:function(ot){ot!=null?lt.continue(vt(ot,He.reverse?v.MAX_KEY:v.MIN_KEY,Xe)):He.unique?lt.continue(lt.key.slice(0,Ye).concat(He.reverse?v.MIN_KEY:v.MAX_KEY,Xe)):lt.continue()}},continuePrimaryKey:{value:function(ot,ft){lt.continuePrimaryKey(vt(ot,v.MAX_KEY,Xe),ft)}},primaryKey:{get:function(){return lt.primaryKey}},key:{get:function(){var ot=lt.key;return Ye===1?ot[0]:ot.slice(0,Ye)}},value:{get:function(){return lt.value}}})}}})}})}};function Ot(v,P,M,V){return M=M||{},V=V||"",a(v).forEach(function(re){var pe,Te,Ne;g(P,re)?(pe=v[re],Te=P[re],typeof pe=="object"&&typeof Te=="object"&&pe&&Te?(Ne=Ce(pe))!==Ce(Te)?M[V+re]=P[re]:Ne==="Object"?Ot(pe,Te,M,V+re+"."):pe!==Te&&(M[V+re]=P[re]):pe!==Te&&(M[V+re]=P[re])):M[V+re]=void 0}),a(P).forEach(function(re){g(v,re)||(M[V+re]=P[re])}),M}function Gt(v,P){return P.type==="delete"?P.keys:P.keys||P.values.map(v.extractKey)}var or={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(v){return n(n({},v),{table:function(P){var M=v.table(P),V=M.schema.primaryKey;return n(n({},M),{mutate:function(re){var pe=xt.trans,Te=pe.table(P).hook,Ne=Te.deleting,We=Te.creating,at=Te.updating;switch(re.type){case"add":if(We.fire===Ze)break;return pe._promise("readwrite",function(){return Je(re)},!0);case"put":if(We.fire===Ze&&at.fire===Ze)break;return pe._promise("readwrite",function(){return Je(re)},!0);case"delete":if(Ne.fire===Ze)break;return pe._promise("readwrite",function(){return Je(re)},!0);case"deleteRange":if(Ne.fire===Ze)break;return pe._promise("readwrite",function(){return function Ge(He,nt,Xe){return M.query({trans:He,values:!1,query:{index:V,range:nt},limit:Xe}).then(function(Ye){var Qe=Ye.result;return Je({type:"delete",keys:Qe,trans:He}).then(function(lt){return 0<lt.numFailures?Promise.reject(lt.failures[0]):Qe.length<Xe?{failures:[],numFailures:0,lastResult:void 0}:Ge(He,n(n({},nt),{lower:Qe[Qe.length-1],lowerOpen:!0}),Xe)})})}(re.trans,re.range,1e4)},!0)}return M.mutate(re);function Je(Ge){var He,nt,Xe,Ye=xt.trans,Qe=Ge.keys||Gt(V,Ge);if(Qe)return(Ge=Ge.type==="add"||Ge.type==="put"?n(n({},Ge),{keys:Qe}):n({},Ge)).type!=="delete"&&(Ge.values=s([],Ge.values)),Ge.keys&&(Ge.keys=s([],Ge.keys)),He=M,Xe=Qe,((nt=Ge).type==="add"?Promise.resolve([]):He.getMany({trans:nt.trans,keys:Xe,cache:"immutable"})).then(function(lt){var ot=Qe.map(function(ft,bt){var Et,Ct,Pt,Dt=lt[bt],At={onerror:null,onsuccess:null};return Ge.type==="delete"?Ne.fire.call(At,ft,Dt,Ye):Ge.type==="add"||Dt===void 0?(Et=We.fire.call(At,ft,Ge.values[bt],Ye),ft==null&&Et!=null&&(Ge.keys[bt]=ft=Et,V.outbound||I(Ge.values[bt],V.keyPath,ft))):(Et=Ot(Dt,Ge.values[bt]),(Ct=at.fire.call(At,Et,ft,Dt,Ye))&&(Pt=Ge.values[bt],Object.keys(Ct).forEach(function(jt){g(Pt,jt)?Pt[jt]=Ct[jt]:I(Pt,jt,Ct[jt])}))),At});return M.mutate(Ge).then(function(ft){for(var bt=ft.failures,Et=ft.results,Ct=ft.numFailures,ft=ft.lastResult,Pt=0;Pt<Qe.length;++Pt){var Dt=(Et||Qe)[Pt],At=ot[Pt];Dt==null?At.onerror&&At.onerror(bt[Pt]):At.onsuccess&&At.onsuccess(Ge.type==="put"&&lt[Pt]?Ge.values[Pt]:Dt)}return{failures:bt,results:Et,numFailures:Ct,lastResult:ft}}).catch(function(ft){return ot.forEach(function(bt){return bt.onerror&&bt.onerror(ft)}),Promise.reject(ft)})});throw new Error("Keys missing")}}})}})}};function Ft(v,P,M){try{if(!P||P.keys.length<v.length)return null;for(var V=[],re=0,pe=0;re<P.keys.length&&pe<v.length;++re)zt(P.keys[re],v[pe])===0&&(V.push(M?ne(P.values[re]):P.values[re]),++pe);return V.length===v.length?V:null}catch{return null}}var sr={stack:"dbcore",level:-1,create:function(v){return{table:function(P){var M=v.table(P);return n(n({},M),{getMany:function(V){var re;return V.cache?(re=Ft(V.keys,V.trans._cache,V.cache==="clone"))?be.resolve(re):M.getMany(V).then(function(pe){return V.trans._cache={keys:V.keys,values:V.cache==="clone"?ne(pe):pe},pe}):M.getMany(V)},mutate:function(V){return V.type!=="add"&&(V.trans._cache=null),M.mutate(V)}})}}}};function xn(v,P){return v.trans.mode==="readonly"&&!!v.subscr&&!v.trans.explicit&&v.trans.db._options.cache!=="disabled"&&!P.schema.primaryKey.outbound}function an(v,P){switch(v){case"query":return P.values&&!P.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var ys={stack:"dbcore",level:0,name:"Observability",create:function(v){var P=v.schema.name,M=new Tr(v.MIN_KEY,v.MAX_KEY);return n(n({},v),{transaction:function(V,re,pe){if(xt.subscr&&re!=="readonly")throw new Me.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(xt.querier));return v.transaction(V,re,pe)},table:function(V){function re(Qe){var Ye,Qe=Qe.query;return[Ye=Qe.index,new Tr((Ye=(Qe=Qe.range).lower)!=null?Ye:v.MIN_KEY,(Ye=Qe.upper)!=null?Ye:v.MAX_KEY)]}var pe=v.table(V),Te=pe.schema,Ne=Te.primaryKey,We=Te.indexes,at=Ne.extractKey,Je=Ne.outbound,Ge=Ne.autoIncrement&&We.filter(function(Xe){return Xe.compound&&Xe.keyPath.includes(Ne.keyPath)}),He=n(n({},pe),{mutate:function(Xe){function Ye(St){return St="idb://".concat(P,"/").concat(V,"/").concat(St),bt[St]||(bt[St]=new Tr)}var Qe,lt,ot,ft=Xe.trans,bt=Xe.mutatedParts||(Xe.mutatedParts={}),Et=Ye(""),Ct=Ye(":dels"),Pt=Xe.type,At=Xe.type==="deleteRange"?[Xe.range]:Xe.type==="delete"?[Xe.keys]:Xe.values.length<50?[Gt(Ne,Xe).filter(function(St){return St}),Xe.values]:[],Dt=At[0],At=At[1],jt=Xe.trans._cache;return u(Dt)?(Et.addKeys(Dt),(Pt=Pt==="delete"||Dt.length===At.length?Ft(Dt,jt):null)||Ct.addKeys(Dt),(Pt||At)&&(Qe=Ye,lt=Pt,ot=At,Te.indexes.forEach(function(St){var qt=Qe(St.name||"");function $t(Yt){return Yt!=null?St.extractKey(Yt):null}function Kt(Yt){St.multiEntry&&u(Yt)?Yt.forEach(function(B){return qt.addKey(B)}):qt.addKey(Yt)}(lt||ot).forEach(function(Yt,F){var k=lt&&$t(lt[F]),F=ot&&$t(ot[F]);zt(k,F)!==0&&(k!=null&&Kt(k),F!=null)&&Kt(F)})}))):Dt?(At={from:(jt=Dt.lower)!=null?jt:v.MIN_KEY,to:(Pt=Dt.upper)!=null?Pt:v.MAX_KEY},Ct.add(At),Et.add(At)):(Et.add(M),Ct.add(M),Te.indexes.forEach(function(St){return Ye(St.name).add(M)})),pe.mutate(Xe).then(function(St){return!Dt||Xe.type!=="add"&&Xe.type!=="put"||(Et.addKeys(St.results),Ge&&Ge.forEach(function(qt){for(var $t=Xe.values.map(function(k){return qt.extractKey(k)}),Kt=qt.keyPath.findIndex(function(k){return k===Ne.keyPath}),Yt=0,B=St.results.length;Yt<B;++Yt)$t[Yt][Kt]=St.results[Yt];Ye(qt.name).addKeys($t)})),ft.mutatedParts=i(ft.mutatedParts||{},bt),St})}}),nt={get:function(Xe){return[Ne,new Tr(Xe.key)]},getMany:function(Xe){return[Ne,new Tr().addKeys(Xe.keys)]},count:re,query:re,openCursor:re};return a(nt).forEach(function(Xe){He[Xe]=function(Ye){var Qe=xt.subscr,lt=!!Qe,ot=xn(xt,pe)&&an(Xe,Ye)?Ye.obsSet={}:Qe;if(lt){var ft,Qe=function(At){return At="idb://".concat(P,"/").concat(V,"/").concat(At),ot[At]||(ot[At]=new Tr)},bt=Qe(""),Et=Qe(":dels"),lt=nt[Xe](Ye),Ct=lt[0],lt=lt[1];if((Xe==="query"&&Ct.isPrimaryKey&&!Ye.values?Et:Qe(Ct.name||"")).add(lt),!Ct.isPrimaryKey){if(Xe!=="count")return ft=Xe==="query"&&Je&&Ye.values&&pe.query(n(n({},Ye),{values:!1})),pe[Xe].apply(this,arguments).then(function(At){if(Xe==="query"){if(Je&&Ye.values)return ft.then(function($t){return $t=$t.result,bt.addKeys($t),At});var jt=Ye.values?At.result.map(at):At.result;(Ye.values?bt:Et).addKeys(jt)}else{var St,qt;if(Xe==="openCursor")return qt=Ye.values,(St=At)&&Object.create(St,{key:{get:function(){return Et.addKey(St.primaryKey),St.key}},primaryKey:{get:function(){var $t=St.primaryKey;return Et.addKey($t),$t}},value:{get:function(){return qt&&bt.addKey(St.primaryKey),St.value}}})}return At});Et.add(M)}}return pe[Xe].apply(this,arguments)}}),He}})}};function Ji(v,P,M){var V;return M.numFailures===0?P:P.type==="deleteRange"||(V=P.keys?P.keys.length:"values"in P&&P.values?P.values.length:1,M.numFailures===V)?null:(V=n({},P),u(V.keys)&&(V.keys=V.keys.filter(function(re,pe){return!(pe in M.failures)})),"values"in V&&u(V.values)&&(V.values=V.values.filter(function(re,pe){return!(pe in M.failures)})),V)}function Pi(v,P){return M=v,((V=P).lower===void 0||(V.lowerOpen?0<zt(M,V.lower):0<=zt(M,V.lower)))&&(M=v,(V=P).upper===void 0||(V.upperOpen?zt(M,V.upper)<0:zt(M,V.upper)<=0));var M,V}function Yi(v,P,M,V,re,pe){var Te,Ne,We,at,Je,Ge,He;return!M||M.length===0||(Te=P.query.index,Ne=Te.multiEntry,We=P.query.range,at=V.schema.primaryKey.extractKey,Je=Te.extractKey,Ge=(Te.lowLevelIndex||Te).extractKey,(V=M.reduce(function(nt,Xe){var Ye=nt,Qe=[];if(Xe.type==="add"||Xe.type==="put")for(var lt=new Tr,ot=Xe.values.length-1;0<=ot;--ot){var ft,bt=Xe.values[ot],Et=at(bt);!lt.hasKey(Et)&&(ft=Je(bt),Ne&&u(ft)?ft.some(function(jt){return Pi(jt,We)}):Pi(ft,We))&&(lt.addKey(Et),Qe.push(bt))}switch(Xe.type){case"add":var Ct=new Tr().addKeys(P.values?nt.map(function(St){return at(St)}):nt),Ye=nt.concat(P.values?Qe.filter(function(St){return St=at(St),!Ct.hasKey(St)&&(Ct.addKey(St),!0)}):Qe.map(function(St){return at(St)}).filter(function(St){return!Ct.hasKey(St)&&(Ct.addKey(St),!0)}));break;case"put":var Pt=new Tr().addKeys(Xe.values.map(function(St){return at(St)}));Ye=nt.filter(function(St){return!Pt.hasKey(P.values?at(St):St)}).concat(P.values?Qe:Qe.map(function(St){return at(St)}));break;case"delete":var Dt=new Tr().addKeys(Xe.keys);Ye=nt.filter(function(St){return!Dt.hasKey(P.values?at(St):St)});break;case"deleteRange":var At=Xe.range;Ye=nt.filter(function(St){return!Pi(at(St),At)})}return Ye},v))===v)?v:(He=function(nt,Xe){return zt(Ge(nt),Ge(Xe))||zt(at(nt),at(Xe))},V.sort(P.direction==="prev"||P.direction==="prevunique"?function(nt,Xe){return He(Xe,nt)}:He),P.limit&&P.limit<1/0&&(V.length>P.limit?V.length=P.limit:v.length===P.limit&&V.length<P.limit&&(re.dirty=!0)),pe?Object.freeze(V):V)}function Xi(v,P){return zt(v.lower,P.lower)===0&&zt(v.upper,P.upper)===0&&!!v.lowerOpen==!!P.lowerOpen&&!!v.upperOpen==!!P.upperOpen}function ms(v,P){return((M,V,re,pe)=>{if(M===void 0)return V!==void 0?-1:0;if(V===void 0)return 1;if((M=zt(M,V))===0){if(re&&pe)return 0;if(re)return 1;if(pe)return-1}return M})(v.lower,P.lower,v.lowerOpen,P.lowerOpen)<=0&&0<=((M,V,re,pe)=>{if(M===void 0)return V!==void 0?1:0;if(V===void 0)return-1;if((M=zt(M,V))===0){if(re&&pe)return 0;if(re)return-1;if(pe)return 1}return M})(v.upper,P.upper,v.upperOpen,P.upperOpen)}function gs(v,P,M,V){v.subscribers.add(M),V.addEventListener("abort",function(){var re,pe;v.subscribers.delete(M),v.subscribers.size===0&&(re=v,pe=P,setTimeout(function(){re.subscribers.size===0&&ue(pe,re)},3e3))})}var bs={stack:"dbcore",level:0,name:"Cache",create:function(v){var P=v.schema.name;return n(n({},v),{transaction:function(M,V,re){var pe,Te,Ne=v.transaction(M,V,re);return V==="readwrite"&&(re=(pe=new AbortController).signal,Ne.addEventListener("abort",(Te=function(We){return function(){if(pe.abort(),V==="readwrite"){for(var at=new Set,Je=0,Ge=M;Je<Ge.length;Je++){var He=Ge[Je],nt=d["idb://".concat(P,"/").concat(He)];if(nt){var Xe=v.table(He),Ye=nt.optimisticOps.filter(function(St){return St.trans===Ne});if(Ne._explicit&&We&&Ne.mutatedParts)for(var Qe=0,lt=Object.values(nt.queries.query);Qe<lt.length;Qe++)for(var ot=0,ft=(Ct=lt[Qe]).slice();ot<ft.length;ot++)c((Pt=ft[ot]).obsSet,Ne.mutatedParts)&&(ue(Ct,Pt),Pt.subscribers.forEach(function(St){return at.add(St)}));else if(0<Ye.length){nt.optimisticOps=nt.optimisticOps.filter(function(St){return St.trans!==Ne});for(var bt=0,Et=Object.values(nt.queries.query);bt<Et.length;bt++)for(var Ct,Pt,Dt,At=0,jt=(Ct=Et[bt]).slice();At<jt.length;At++)(Pt=jt[At]).res!=null&&Ne.mutatedParts&&(We&&!Pt.dirty?(Dt=Object.isFrozen(Pt.res),Dt=Yi(Pt.res,Pt.req,Ye,Xe,Pt,Dt),Pt.dirty?(ue(Ct,Pt),Pt.subscribers.forEach(function(St){return at.add(St)})):Dt!==Pt.res&&(Pt.res=Dt,Pt.promise=be.resolve({result:Dt}))):(Pt.dirty&&ue(Ct,Pt),Pt.subscribers.forEach(function(St){return at.add(St)})))}}}at.forEach(function(St){return St()})}}})(!1),{signal:re}),Ne.addEventListener("error",Te(!1),{signal:re}),Ne.addEventListener("complete",Te(!0),{signal:re})),Ne},table:function(M){var V=v.table(M),re=V.schema.primaryKey;return n(n({},V),{mutate:function(pe){var Te,Ne=xt.trans;return!re.outbound&&Ne.db._options.cache!=="disabled"&&!Ne.explicit&&Ne.idbtrans.mode==="readwrite"&&(Te=d["idb://".concat(P,"/").concat(M)])?(Ne=V.mutate(pe),pe.type!=="add"&&pe.type!=="put"||!(50<=pe.values.length||Gt(re,pe).some(function(We){return We==null}))?(Te.optimisticOps.push(pe),pe.mutatedParts&&le(pe.mutatedParts),Ne.then(function(We){0<We.numFailures&&(ue(Te.optimisticOps,pe),(We=Ji(0,pe,We))&&Te.optimisticOps.push(We),pe.mutatedParts)&&le(pe.mutatedParts)}),Ne.catch(function(){ue(Te.optimisticOps,pe),pe.mutatedParts&&le(pe.mutatedParts)})):Ne.then(function(We){var at=Ji(0,n(n({},pe),{values:pe.values.map(function(Je,Ge){var He;return We.failures[Ge]?Je:(I(He=(He=re.keyPath)!=null&&He.includes(".")?ne(Je):n({},Je),re.keyPath,We.results[Ge]),He)})}),We);Te.optimisticOps.push(at),queueMicrotask(function(){return pe.mutatedParts&&le(pe.mutatedParts)})}),Ne):V.mutate(pe)},query:function(pe){var Te,Ne,We,at,Je,Ge,He;return xn(xt,V)&&an("query",pe)?(Te=((We=xt.trans)==null?void 0:We.db._options.cache)==="immutable",Ne=(We=xt).requery,We=We.signal,Ge=((nt,Xe,Ye,Qe)=>{var lt=d["idb://".concat(nt,"/").concat(Xe)];if(!lt)return[];if(!(nt=lt.queries[Ye]))return[null,!1,lt,null];var ot=nt[(Qe.query?Qe.query.index.name:null)||""];if(!ot)return[null,!1,lt,null];switch(Ye){case"query":var ft=(bt=Qe.direction)!=null?bt:"next",bt=ot.find(function(Et){var Ct;return Et.req.limit===Qe.limit&&Et.req.values===Qe.values&&((Ct=Et.req.direction)!=null?Ct:"next")===ft&&Xi(Et.req.query.range,Qe.query.range)});return bt?[bt,!0,lt,ot]:[ot.find(function(Et){var Ct;return("limit"in Et.req?Et.req.limit:1/0)>=Qe.limit&&((Ct=Et.req.direction)!=null?Ct:"next")===ft&&(!Qe.values||Et.req.values)&&ms(Et.req.query.range,Qe.query.range)}),!1,lt,ot];case"count":return bt=ot.find(function(Et){return Xi(Et.req.query.range,Qe.query.range)}),[bt,!!bt,lt,ot]}})(P,M,"query",pe),He=Ge[0],at=Ge[2],Je=Ge[3],He&&Ge[1]?He.obsSet=pe.obsSet:(Ge=V.query(pe).then(function(nt){var Xe=nt.result;if(He&&(He.res=Xe),Te){for(var Ye=0,Qe=Xe.length;Ye<Qe;++Ye)Object.freeze(Xe[Ye]);Object.freeze(Xe)}return nt}).catch(function(nt){return Je&&He&&ue(Je,He),Promise.reject(nt)}),He={obsSet:pe.obsSet,promise:Ge,subscribers:new Set,type:"query",req:pe,dirty:!1},Je?Je.push(He):(Je=[He],(at=at||(d["idb://".concat(P,"/").concat(M)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[pe.query.index.name||""]=Je)),gs(He,Je,Ne,We),He.promise.then(function(nt){return nt=Yi(nt.result,pe,at==null?void 0:at.optimisticOps,V,He,Te),{result:Te?nt:ne(nt)}})):V.query(pe)}})}})}};function ni(v,P){return new Proxy(v,{get:function(M,V,re){return V==="db"?P:Reflect.get(M,V,re)}})}hr.prototype.version=function(v){if(isNaN(v)||v<.1)throw new Me.Type("Given version is not a positive number");if(v=Math.round(10*v)/10,this.idbdb||this._state.isBeingOpened)throw new Me.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,v);var P=this._versions,M=P.filter(function(V){return V._cfg.version===v})[0];return M||(M=new this.Version(v),P.push(M),P.sort(Us),M.stores({}),this._state.autoSchema=!1),M},hr.prototype._whenReady=function(v){var P=this;return this.idbdb&&(this._state.openComplete||xt.letThrough||this._vip)?v():new be(function(M,V){if(P._state.openComplete)return V(new Me.DatabaseClosed(P._state.dbOpenError));if(!P._state.isBeingOpened){if(!P._state.autoOpen)return void V(new Me.DatabaseClosed);P.open().catch(Ze)}P._state.dbReadyPromise.then(M,V)}).then(v)},hr.prototype.use=function(re){var P=re.stack,M=re.create,V=re.level,re=re.name,pe=(re&&this.unuse({stack:P,name:re}),this._middlewares[P]||(this._middlewares[P]=[]));return pe.push({stack:P,create:M,level:V??10,name:re}),pe.sort(function(Te,Ne){return Te.level-Ne.level}),this},hr.prototype.unuse=function(v){var P=v.stack,M=v.name,V=v.create;return P&&this._middlewares[P]&&(this._middlewares[P]=this._middlewares[P].filter(function(re){return V?re.create!==V:!!M&&re.name!==M})),this},hr.prototype.open=function(){var v=this;return Nr(pt,function(){return Ue(v)})},hr.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var v=this._state;if(ti.remove(this),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}v.isBeingOpened||(v.dbReadyPromise=new be(function(P){v.dbReadyResolve=P}),v.openCanceller=new be(function(P,M){v.cancelOpen=M}))},hr.prototype.close=function(P){var P=(P===void 0?{disableAutoOpen:!0}:P).disableAutoOpen,M=this._state;P?(M.isBeingOpened&&M.cancelOpen(new Me.DatabaseClosed),this._close(),M.autoOpen=!1,M.dbOpenError=new Me.DatabaseClosed):(this._close(),M.autoOpen=this._options.autoOpen||M.isBeingOpened,M.openComplete=!1,M.dbOpenError=null)},hr.prototype.delete=function(v){var P=this,M=(v===void 0&&(v={disableAutoOpen:!0}),0<arguments.length&&typeof arguments[0]!="object"),V=this._state;return new be(function(re,pe){function Te(){P.close(v);var Ne=P._deps.indexedDB.deleteDatabase(P.name);Ne.onsuccess=Wt(function(){var We,at,Je;We=P._deps,at=P.name,Ei(Je=We.indexedDB)||at===Wr||Wi(Je,We.IDBKeyRange).delete(at).catch(Ze),re()}),Ne.onerror=Cr(pe),Ne.onblocked=P._fireOnBlocked}if(M)throw new Me.InvalidArgument("Invalid closeOptions argument to db.delete()");V.isBeingOpened?V.dbReadyPromise.then(Te):Te()})},hr.prototype.backendDB=function(){return this.idbdb},hr.prototype.isOpen=function(){return this.idbdb!==null},hr.prototype.hasBeenClosed=function(){var v=this._state.dbOpenError;return v&&v.name==="DatabaseClosed"},hr.prototype.hasFailed=function(){return this._state.dbOpenError!==null},hr.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(hr.prototype,"tables",{get:function(){var v=this;return a(this._allTables).map(function(P){return v._allTables[P]})},enumerable:!1,configurable:!0}),hr.prototype.transaction=function(){var v=(function(P,M,V){var re=arguments.length;if(re<2)throw new Me.InvalidArgument("Too few arguments");for(var pe=new Array(re-1);--re;)pe[re-1]=arguments[re];return V=pe.pop(),[P,J(pe),V]}).apply(this,arguments);return this._transaction.apply(this,v)},hr.prototype._transaction=function(v,P,M){var V,re,pe=this,Te=xt.trans,Ne=(Te&&Te.db===this&&v.indexOf("!")===-1||(Te=null),v.indexOf("?")!==-1);v=v.replace("!","").replace("?","");try{if(re=P.map(function(at){if(at=at instanceof pe.Table?at.name:at,typeof at!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return at}),v=="r"||v===yn)V=yn;else{if(v!="rw"&&v!=Ri)throw new Me.InvalidArgument("Invalid transaction mode: "+v);V=Ri}if(Te){if(Te.mode===yn&&V===Ri){if(!Ne)throw new Me.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");Te=null}Te&&re.forEach(function(at){if(Te&&Te.storeNames.indexOf(at)===-1){if(!Ne)throw new Me.SubTransaction("Table "+at+" not included in parent transaction.");Te=null}}),Ne&&Te&&!Te.active&&(Te=null)}}catch(at){return Te?Te._promise(null,function(Je,Ge){Ge(at)}):dr(at)}var We=(function at(Je,Ge,He,nt,Xe){return be.resolve().then(function(){var ot=xt.transless||xt,Ye=Je._createTransaction(Ge,He,Je._dbSchema,nt),ot=(Ye.explicit=!0,{trans:Ye,transless:ot});if(nt)Ye.idbtrans=nt.idbtrans;else try{Ye.create(),Ye.idbtrans._explicit=!0,Je._state.PR1398_maxLoop=3}catch(ft){return ft.name===Ee.InvalidState&&Je.isOpen()&&0<--Je._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),Je.close({disableAutoOpen:!1}),Je.open().then(function(){return at(Je,Ge,He,null,Xe)})):dr(ft)}var Qe,lt=he(Xe),ot=(lt&&tn(),be.follow(function(){var ft;(Qe=Xe.call(Ye,Ye))&&(lt?(ft=Rr.bind(null,null),Qe.then(ft,ft)):typeof Qe.next=="function"&&typeof Qe.throw=="function"&&(Qe=ct(Qe)))},ot));return(Qe&&typeof Qe.then=="function"?be.resolve(Qe).then(function(ft){return Ye.active?ft:dr(new Me.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):ot.then(function(){return Qe})).then(function(ft){return nt&&Ye._resolve(),Ye._completion.then(function(){return ft})}).catch(function(ft){return Ye._reject(ft),dr(ft)})})}).bind(null,this,V,re,Te,M);return Te?Te._promise(V,We,"lock"):xt.trans?Nr(xt.transless,function(){return pe._whenReady(We)}):this._whenReady(We)},hr.prototype.table=function(v){if(g(this._allTables,v))return this._allTables[v];throw new Me.InvalidTable("Table ".concat(v," does not exist"))};var Xr=hr;function hr(v,P){var M,V,re,pe,Te,Ne=this,We=(this._middlewares={},this.verno=0,hr.dependencies),We=(this._options=P=n({addons:hr.addons,autoOpen:!0,indexedDB:We.indexedDB,IDBKeyRange:We.IDBKeyRange,cache:"cloned",maxConnections:1e3},P),this._deps={indexedDB:P.indexedDB,IDBKeyRange:P.IDBKeyRange},P.addons),at=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ze,dbReadyPromise:null,cancelOpen:Ze,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:P.autoOpen}),Je=(at.dbReadyPromise=new be(function(Ge){at.dbReadyResolve=Ge}),at.openCanceller=new be(function(Ge,He){at.cancelOpen=He}),this._state=at,this.name=v,this.on=gn(this,"populate","blocked","versionchange","close",{ready:[gt,Ze]}),this.once=function(Ge,He){var nt=function(){for(var Xe=[],Ye=0;Ye<arguments.length;Ye++)Xe[Ye]=arguments[Ye];Ne.on(Ge).unsubscribe(nt),He.apply(Ne,Xe)};return Ne.on(Ge,nt)},this.on.ready.subscribe=x(this.on.ready.subscribe,function(Ge){return function(He,nt){hr.vip(function(){var Xe,Ye=Ne._state;Ye.openComplete?(Ye.dbOpenError||be.resolve().then(He),nt&&Ge(He)):Ye.onReadyBeingFired?(Ye.onReadyBeingFired.push(He),nt&&Ge(He)):(Ge(He),Xe=Ne,nt||Ge(function Qe(){Xe.on.ready.unsubscribe(He),Xe.on.ready.unsubscribe(Qe)}))})}}),this.Collection=(M=this,Bn(vn.prototype,function(Qe,Ye){this.db=M;var nt=is,Xe=null;if(Ye)try{nt=Ye()}catch(ot){Xe=ot}var Ye=Qe._ctx,Qe=Ye.table,lt=Qe.hook.reading.fire;this._ctx={table:Qe,index:Ye.index,isPrimKey:!Ye.index||Qe.schema.primKey.keyPath&&Ye.index===Qe.schema.primKey.name,range:nt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:Xe,or:Ye.or,valueMapper:lt!==ut?lt:null}})),this.Table=(V=this,Bn(os.prototype,function(Ge,He,nt){this.db=V,this._tx=nt,this.name=Ge,this.schema=He,this.hook=V._allTables[Ge]?V._allTables[Ge].hook:gn(null,{creating:[$e,Ze],reading:[st,ut],updating:[qe,Ze],deleting:[je,Ze]})})),this.Transaction=(re=this,Bn(Fs.prototype,function(Ge,He,nt,Xe,Ye){var Qe=this;Ge!=="readonly"&&He.forEach(function(lt){lt=(lt=nt[lt])==null?void 0:lt.yProps,lt&&(He=He.concat(lt.map(function(ot){return ot.updatesTable})))}),this.db=re,this.mode=Ge,this.storeNames=He,this.schema=nt,this.chromeTransactionDurability=Xe,this.idbtrans=null,this.on=gn(this,"complete","error","abort"),this.parent=Ye||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new be(function(lt,ot){Qe._resolve=lt,Qe._reject=ot}),this._completion.then(function(){Qe.active=!1,Qe.on.complete.fire()},function(lt){var ot=Qe.active;return Qe.active=!1,Qe.on.error.fire(lt),Qe.parent?Qe.parent._reject(lt):ot&&Qe.idbtrans&&Qe.idbtrans.abort(),dr(lt)})})),this.Version=(pe=this,Bn(Ks.prototype,function(Ge){this.db=pe,this._cfg={version:Ge,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(Te=this,Bn(Fi.prototype,function(Ge,He,nt){if(this.db=Te,this._ctx={table:Ge,index:He===":id"?null:He,or:nt},this._cmp=this._ascending=zt,this._descending=function(Xe,Ye){return zt(Ye,Xe)},this._max=function(Xe,Ye){return 0<zt(Xe,Ye)?Xe:Ye},this._min=function(Xe,Ye){return zt(Xe,Ye)<0?Xe:Ye},this._IDBKeyRange=Te._deps.IDBKeyRange,!this._IDBKeyRange)throw new Me.MissingAPI})),this.on("versionchange",function(Ge){0<Ge.newVersion?console.warn("Another connection wants to upgrade database '".concat(Ne.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(Ne.name,"'. Closing db now to resume the delete request.")),Ne.close({disableAutoOpen:!1})}),this.on("blocked",function(Ge){!Ge.newVersion||Ge.newVersion<Ge.oldVersion?console.warn("Dexie.delete('".concat(Ne.name,"') was blocked")):console.warn("Upgrade '".concat(Ne.name,"' blocked by other connection holding version ").concat(Ge.oldVersion/10))}),this._maxKey=Qn(P.IDBKeyRange),this._createTransaction=function(Ge,He,nt,Xe){return new Ne.Transaction(Ge,He,nt,Ne._options.chromeTransactionDurability,Xe)},this._fireOnBlocked=function(Ge){Ne.on("blocked").fire(Ge),ti.toArray().filter(function(He){return He.name===Ne.name&&He!==Ne&&!He._state.vcFired}).map(function(He){return He.on("versionchange").fire(Ge)})},this.use(sr),this.use(bs),this.use(ys),this.use(wt),this.use(or),new Proxy(this,{get:function(Ge,He,nt){var Xe;return He==="_vip"||(He==="table"?function(Ye){return ni(Ne.table(Ye),Je)}:(Xe=Reflect.get(Ge,He,nt))instanceof os?ni(Xe,Je):He==="tables"?Xe.map(function(Ye){return ni(Ye,Je)}):He==="_createTransaction"?function(){return ni(Xe.apply(this,arguments),Je)}:Xe)}}));this.vip=Je,We.forEach(function(Ge){return Ge(Ne)})}var ii,In=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",vs=(_i.prototype.subscribe=function(v,P,M){return this._subscribe(v&&typeof v!="function"?v:{next:v,error:P,complete:M})},_i.prototype[In]=function(){return this},_i);function _i(v){this._subscribe=v}try{ii={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{ii={indexedDB:null,IDBKeyRange:null}}function Qi(v){var P,M=!1,V=new vs(function(re){var pe=he(v),Te,Ne=!1,We={},at={},Je={get closed(){return Ne},unsubscribe:function(){Ne||(Ne=!0,Te&&Te.abort(),Ge&&Yr.storagemutated.unsubscribe(Xe))}},Ge=(re.start&&re.start(Je),!1),He=function(){return fi(Ye)};function nt(){return c(at,We)}var Xe=function(Qe){i(We,Qe),nt()&&He()},Ye=function(){var Qe,lt,ot;!Ne&&ii.indexedDB&&(We={},Qe={},Te&&Te.abort(),Te=new AbortController,ot=(ft=>{var bt=Vt();try{pe&&tn();var Et=Vr(v,ft);return Et=pe?Et.finally(Rr):Et}finally{bt&&Jt()}})(lt={subscr:Qe,signal:Te.signal,requery:He,querier:v,trans:null}),Ge||(Yr.storagemutated.subscribe(Xe),Ge=!0),Promise.resolve(ot).then(function(ft){M=!0,P=ft,Ne||lt.signal.aborted||(nt()||(at=Qe,nt())?He():(We={},fi(function(){return!Ne&&re.next&&re.next(ft)})))},function(ft){M=!1,["DatabaseClosedError","AbortError"].includes(ft==null?void 0:ft.name)||Ne||fi(function(){Ne||re.error&&re.error(ft)})}))};return setTimeout(He,0),Je});return V.hasValue=function(){return M},V.getValue=function(){return P},V}var Pn=Xr;function wi(v){var P=on;try{on=!0,Yr.storagemutated.fire(v),Pe(v,!0)}finally{on=P}}b(Pn,n(n({},ae),{delete:function(v){return new Pn(v,{addons:[]}).delete()},exists:function(v){return new Pn(v,{addons:[]}).open().then(function(P){return P.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(v){try{return P=Pn.dependencies,M=P.indexedDB,P=P.IDBKeyRange,(Ei(M)?Promise.resolve(M.databases()).then(function(V){return V.map(function(re){return re.name}).filter(function(re){return re!==Wr})}):Wi(M,P).toCollection().primaryKeys()).then(v)}catch{return dr(new Me.MissingAPI)}var P,M},defineClass:function(){return function(v){p(this,v)}},ignoreTransaction:function(v){return xt.trans?Nr(xt.transless||pt,v):v()},vip:Gi,async:function(v){return function(){try{var P=ct(v.apply(this,arguments));return P&&typeof P.then=="function"?P:be.resolve(P)}catch(M){return dr(M)}}},spawn:function(v,P,M){try{var V=ct(v.apply(M,P||[]));return V&&typeof V.then=="function"?V:be.resolve(V)}catch(re){return dr(re)}},currentTransaction:{get:function(){return xt.trans||null}},waitFor:function(v,P){return v=be.resolve(typeof v=="function"?Pn.ignoreTransaction(v):v).timeout(P||6e4),xt.trans?xt.trans.waitFor(v):v},Promise:be,debug:{get:function(){return ht},set:function(v){xe(v)}},derive:_,extend:p,props:b,override:x,Events:gn,on:Yr,liveQuery:Qi,extendObservabilitySet:i,getByKeyPath:R,setByKeyPath:I,delByKeyPath:function(v,P){typeof P=="string"?I(v,P,void 0):"length"in P&&[].map.call(P,function(M){I(v,M,void 0)})},shallowClone:D,deepClone:ne,getObjectDiff:Ot,cmp:zt,asap:j,minKey:-1/0,addons:[],connections:{get:ti.toArray},errnames:Ee,dependencies:ii,cache:d,semVer:"4.4.5",version:"4.4.5".split(".").map(function(v){return parseInt(v)}).reduce(function(v,P,M){return v+P/Math.pow(10,2*M)})})),Pn.maxKey=Qn(Pn.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Yr(Mn,function(v){on||(v=new CustomEvent(qi,{detail:v}),on=!0,dispatchEvent(v),on=!1)}),addEventListener(qi,function(v){v=v.detail,on||wi(v)}));var On,on=!1,Zi=function(){};return typeof BroadcastChannel<"u"&&((Zi=function(){(On=new BroadcastChannel(qi)).onmessage=function(v){return v.data&&wi(v.data)}})(),typeof On.unref=="function"&&On.unref(),Yr(Mn,function(v){on||On.postMessage(v)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(v){if(!Xr.disableBfCache&&v.persisted){ht&&console.debug("Dexie: handling persisted pagehide"),On!=null&&On.close();for(var P=0,M=ti.toArray();P<M.length;P++)M[P].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(v){!Xr.disableBfCache&&v.persisted&&(ht&&console.debug("Dexie: handling persisted pageshow"),Zi(),wi({all:new Tr(-1/0,[[]])}))})),be.rejectionMapper=function(v,P){return!v||v instanceof L||v instanceof TypeError||v instanceof SyntaxError||!v.name||!Ve[v.name]?v:(P=new Ve[v.name](P||v.message,v),"stack"in v&&O(P,"stack",{get:function(){return this.inner.stack}}),P)},xe(ht),n(Xr,Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:1e3,Dexie:Xr,Entity:Jn,PropModification:Pr,RangeSet:Tr,add:function(v){return new Pr({add:v})},cmp:zt,default:Xr,liveQuery:Qi,mergeRanges:sn,rangesOverlap:Hi,remove:function(v){return new Pr({remove:v})},replacePrefix:function(v,P){return new Pr({replacePrefix:[v,P]})}}),{default:Xr}),Xr})})(By);var ZT=By.exports,wf=QT(ZT);const Ry=Symbol.for("Dexie"),_l=globalThis[Ry]||(globalThis[Ry]=wf);if(wf.semVer!==_l.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${wf.semVer} and ${_l.semVer}`);const{liveQuery:fN,mergeRanges:pN,rangesOverlap:dN,RangeSet:hN,cmp:yN,Entity:mN,PropModification:gN,replacePrefix:bN,add:vN,remove:SN,DexieYProvider:TN}=_l,So="rtc-agent-";class eE extends _l{constructor(r){if(!r.startsWith(So))throw new Error(`[RTCAgentDatabase] databaseName must start with "${So}", got "${r}"`);super(r);Ht(this,"sessions");Ht(this,"turns");Ht(this,"messages");Ht(this,"rtcs");Ht(this,"offsets");Ht(this,"fileSystemEntries");this.version(1).stores({sessions:"id, &client_id, sync_status, owner_ref_id, status",turns:"id, &client_id, sync_status, session_id, status",messages:"id, &client_id, sync_status, session_id, turn_id, global_offset",rtcs:"id, &client_id, sync_status, session_id, turn_id, status",offsets:"channel"}),this.version(2).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status",offsets:"channel"}).upgrade(async n=>{const s=n.table("sessions"),o=await s.toArray();await s.clear();const a=new Map;for(const u of o){const p=u,y=p.id,g=p.client_id||y||crypto.randomUUID();y&&a.set(y,g);const b={...p};b.client_id=g,b.server_id=y,delete b.id,await s.add(b)}for(const u of["turns","messages","rtcs"]){const p=n.table(u),y=await p.toArray();await p.clear();for(const h of y){const g=h,b=g.id,S=g.client_id,O=g.session_id,_={...g};if(_.client_id=S||b||crypto.randomUUID(),_.server_id=b,delete _.id,O){const w=a.get(O);_.session_client_id=w||O}else _.session_client_id="";delete _.session_id,await p.add(_)}}}),this.version(3).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status",offsets:"channel"}),this.version(4).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset, created_at",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status",offsets:"channel"}),this.version(5).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset, created_at",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status, offset",offsets:"channel"}),this.version(6).stores({sessions:"client_id, server_id, sync_status, owner_ref_id, status, updated_at",turns:"client_id, server_id, sync_status, session_client_id, status",messages:"client_id, server_id, sync_status, session_client_id, turn_id, global_offset, created_at",rtcs:"client_id, server_id, sync_status, session_client_id, turn_id, status, offset",offsets:"channel",fileSystemEntries:"path, type, metadata.group, *metadata.tags"})}}let es=null,Af=null;function yr(t){if(t===void 0){if(es)return es;throw new Error(`[RTCAgentDatabase] getDatabase() called without a name before any database was initialized. Pass a databaseName starting with "${So}".`)}if(!t.startsWith(So))throw new Error(`[RTCAgentDatabase] databaseName must start with "${So}", got "${t}"`);const e=t;return(!es||Af!==e)&&(es&&es.close(),es=new eE(e),Af=e),es}async function tE(){es&&(es.close(),es=null,Af=null)}async function rE(){const t=yr(),e=[t.sessions,t.turns,t.messages,t.rtcs,t.offsets,t.fileSystemEntries];await t.transaction("rw",e,async()=>{await t.sessions.clear(),await t.turns.clear(),await t.messages.clear(),await t.rtcs.clear(),await t.offsets.clear(),await t.fileSystemEntries.clear()})}class nE{async getPosition(e){const n=await yr().offsets.get(e);if(n)return{offset:n.offset,epoch:n.epoch}}async updatePosition(e,r,n){const s=yr(),o={channel:e,offset:r,epoch:n,updatedAt:Date.now()};await s.offsets.put(o)}async clearPosition(e){await yr().offsets.delete(e)}async clearAll(){await yr().offsets.clear()}async reset(){await this.clearAll()}}let Cf=null;function jy(){return Cf||(Cf=new nE),Cf}class iE{constructor(){Ht(this,"entityListeners",new Map);Ht(this,"wildcardListeners",new Set)}subscribe(e,r){if(typeof e=="function")return this.wildcardListeners.add(e),()=>{this.wildcardListeners.delete(e)};const n=e,s=r;let o=this.entityListeners.get(n);return o||(o=new Set,this.entityListeners.set(n,o)),o.add(s),()=>{o.delete(s),o.size===0&&this.entityListeners.delete(n)}}publish(e){for(const n of this.wildcardListeners)try{n(e)}catch(s){console.error("[UIUpdateBus] listener error:",s)}const r=this.entityListeners.get(e.entity);if(r)for(const n of r)try{n(e)}catch(s){console.error("[UIUpdateBus] listener error:",s)}}clear(){this.entityListeners.clear(),this.wildcardListeners.clear()}}let If=null;function My(){return If||(If=new iE),If}function sE(t=new Date){const e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),s=String(t.getHours()).padStart(2,"0"),o=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0"),u=String(t.getMilliseconds()).padStart(3,"0"),p=-t.getTimezoneOffset(),y=String(Math.floor(Math.abs(p)/60)).padStart(2,"0"),h=String(Math.abs(p)%60).padStart(2,"0"),g=p>=0?"+":"-";return`${e}-${r}-${n}T${s}:${o}:${a}.${u}${g}${y}:${h}`}function si(){return sE(new Date)}const Ly=["Date","RegExp","String","Number"],Fy=Object.getOwnPropertyNames(globalThis.Temporal||{});function qy(t,e,r={cyclesFix:!0},n=[]){var u,p;let s=[];const o=Array.isArray(t);for(const y in t){const h=t[y],g=o?+y:y;if(!(y in e)){s.push({type:"REMOVE",path:[g],oldValue:h});continue}const b=e[y],S=typeof h=="object"&&typeof b=="object"&&Array.isArray(h)===Array.isArray(b),O=S&&h?(p=(u=Object.getPrototypeOf(h))==null?void 0:u.constructor)==null?void 0:p.name:void 0;if(h&&b&&S&&!Ly.includes(O)&&!Fy.includes(O)&&(!r.cyclesFix||!n.includes(h))){r.cyclesFix&&n.push(h);const _=qy(h,b,r,n);r.cyclesFix&&n.pop();for(const w of _)w.path.unshift(g),s.push(w)}else Object.is(h,b)||Fy.includes(O)&&String(h)===String(b)||Ly.includes(O)&&(isNaN(h)?h+""==b+"":+h==+b)||s.push({path:[g],type:"CHANGE",value:b,oldValue:h})}const a=Array.isArray(e);for(const y in e)y in t||s.push({type:"CREATE",path:[a?+y:y],value:e[y]});return s}function aE(t){return t.join(".")}function wl(t,e,r,n,s){const o=My();if(!n){for(const[u,p]of Object.entries(s))o.publish({entity:t,action:e,entityId:r,field:u,oldValue:void 0,newValue:p});return}const a=qy(n,s);for(const u of a)o.publish({entity:t,action:e,entityId:r,field:aE(u.path),oldValue:u.oldValue,newValue:u.value})}class oE{async upsertSession(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.sessions.where("client_id").equals(e.client_id).first()),console.log("[EntityRepository.upsertSession]",a?"UPDATE":"CREATE","client_id:",e.client_id,"title:",e.title);let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.sessions.put(h),u={before:y,after:h},p="updated",console.log("[EntityRepository.upsertSession] After update - title:",h.title)}else{const y={client_id:e.client_id||"",server_id:e.server_id,owner_kind:e.owner_kind||"",owner_ref_id:e.owner_ref_id||"",title:e.title,status:e.status||"active",created_at:e.created_at||o,updated_at:e.updated_at||o,sync_status:r,pending_turn_count:0,running_turn_count:0,agent_prompt:e.agent_prompt||""};await s.sessions.put(y),u={before:void 0,after:y},p="created",console.log("[EntityRepository.upsertSession] After create - title:",y.title)}return n!=null&&n.silent||wl("session",p,u.after.client_id,u.before,u.after),u}async getClientSession(e){return yr().sessions.get(e)}async getSessionByClientId(e){return this.getClientSession(e)}async getSessionByServerId(e){return yr().sessions.where("server_id").equals(e).first()}async getMessageByServerId(e){return yr().messages.where("server_id").equals(e).first()}async listSessions(e,r=50){const o=await yr().sessions.orderBy("updated_at").reverse().toArray();console.log(`[EntityRepository.listSessions] total=${o.length}, with deleted_at=${o.filter(u=>u.deleted_at).length}`);const a=o.filter(u=>!u.deleted_at);if(console.log(`[EntityRepository.listSessions] after filter=${a.length}`),e){const u=a.findIndex(p=>p.client_id===e);return u===-1?a.slice(0,r):a.slice(u+1,u+1+r)}return a.slice(0,r)}async softDeleteSession(e){if(!await this.getClientSession(e))throw new Error(`[EntityRepository] softDeleteSession: session not found: ${e}`);const n=si();console.log(`[EntityRepository.softDeleteSession] setting deleted_at=${n} for ${e}`);const s=await this.upsertSession({client_id:e,deleted_at:n,updated_at:n},"pending");return console.log(`[EntityRepository.softDeleteSession] after upsert, deleted_at=${s.after.deleted_at}`),s}async upsertTurn(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.turns.where("client_id").equals(e.client_id).first());let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.turns.put(h),u={before:y,after:h},p="updated"}else{const y={client_id:e.client_id||"",server_id:e.server_id,session_client_id:e.session_client_id||"",status:e.status||"pending",created_at:e.created_at||o,sync_status:r};await s.turns.put(y),u={before:void 0,after:y},p="created"}return n!=null&&n.silent||wl("turn",p,u.after.client_id,u.before,u.after),u}async getClientTurn(e){return yr().turns.get(e)}async countActiveTurns(e){const r=yr(),n=r.turns.where("session_client_id").equals(e),[s,o]=await Promise.all([n.filter(a=>a.status==="pending").count(),r.turns.where("session_client_id").equals(e).filter(a=>a.status==="running").count()]);return{pending:s,running:o}}async upsertMessage(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.messages.where("client_id").equals(e.client_id).first());let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.messages.put(h),u={before:y,after:h},p="updated"}else{const y={client_id:e.client_id||"",server_id:e.server_id,session_client_id:e.session_client_id||"",turn_id:e.turn_id,global_offset:e.global_offset||0,turn_offset:e.turn_offset,role:e.role||"user",content:e.content,streaming_status:e.streaming_status||"pending",creator_kind:e.creator_kind||"user",creator_ref_id:e.creator_ref_id||"",created_at:e.created_at||o,updated_at:e.updated_at||o,sync_status:r,parent_client_id:e.parent_client_id};await s.messages.put(y),u={before:void 0,after:y},p="created"}return n!=null&&n.silent||wl("message",p,u.after.client_id,u.before,u.after),u}async getClientMessage(e){return yr().messages.get(e)}async listMessagesBySession(e,r,n=50,s="backward"){const u=await yr().messages.where("session_client_id").equals(e).sortBy("created_at");if(s==="backward"){let p=u;return r!==void 0&&r>0&&(p=u.filter(h=>h.global_offset!==void 0&&h.global_offset<r)),p.slice(-n).sort((h,g)=>h.created_at.localeCompare(g.created_at))}if(r!==void 0&&r>0){const p=u.findIndex(y=>y.global_offset!==void 0&&y.global_offset>r);return p===-1?[]:u.slice(p,p+n)}return u.slice(0,n)}async upsertRtc(e,r="synced",n){const s=yr(),o=si();let a;e.client_id&&(a=await s.rtcs.where("client_id").equals(e.client_id).first());let u,p;if(a){const y={...a},h={...a,...e,sync_status:r,server_id:e.server_id||a.server_id};await s.rtcs.put(h),u={before:y,after:h},p="updated"}else{const y={client_id:e.client_id||"",server_id:e.server_id,session_client_id:e.session_client_id||"",turn_id:e.turn_id||"",offset:e.offset||0,tool_name:e.tool_name||"",parameters:e.parameters,status:e.status||"pending",result:e.result,error_message:e.error_message,created_at:e.created_at||o,updated_at:e.updated_at||o,sync_status:r};await s.rtcs.put(y),u={before:void 0,after:y},p="created"}return n!=null&&n.silent||wl("rtc",p,u.after.client_id,u.before,u.after),u}async getClientRtc(e){return yr().rtcs.get(e)}async getNextRtcToProcess(e){const r=yr(),n=await r.rtcs.where("sync_status").equals("failed").sortBy("offset"),s=e?n.filter(a=>a.session_client_id===e):n;if(s.length>0)return s[0];const o=await r.rtcs.filter(a=>a.status==="pending").sortBy("offset");return e?o.find(a=>a.session_client_id===e):o[0]}async listRtcBySession(e,r,n=50){const a=(await yr().rtcs.where("session_client_id").equals(e).toArray()).sort((p,y)=>p.offset-y.offset),u=r||0;return a.slice(u,u+n)}async applyUpdate(e){var r;for(let n=0;n<e.items.length;n++){const s=e.items[n],o=(r=e.data_list)==null?void 0:r[n];o&&await this.applyUpdateItem(s,o)}}async _resolveSessionClientId(e,r,n){const s=await this.getSessionByServerId(e);return s?s.client_id:(console.warn(`[EntityRepository] ${r} ${n} references unknown session ${e}`),e)}async applyUpdateItem(e,r){switch(e.entity){case"session":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};delete s.id,await this.upsertSession(s,"synced");break}case"turn":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};delete s.id,n.session_id&&(s.session_client_id=await this._resolveSessionClientId(n.session_id,"Turn",n.client_id||n.id)),delete s.session_id,await this.upsertTurn(s,"synced");const o=s.session_client_id;if(o){const{pending:a,running:u}=await this.countActiveTurns(o),p=await this.getClientSession(o);p&&await this.upsertSession({client_id:o,pending_turn_count:a,running_turn_count:u},p.sync_status)}break}case"message":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};if(delete s.id,n.session_id&&(s.session_client_id=await this._resolveSessionClientId(n.session_id,"Message",n.client_id||n.id)),delete s.session_id,n.parent_message_id){const o=await this.getMessageByServerId(n.parent_message_id);o?s.parent_client_id=o.client_id:console.warn(`[EntityRepository] Message ${n.client_id||n.id} references unknown parent ${n.parent_message_id}`)}delete s.parent_message_id,await this.upsertMessage(s,"synced");break}case"rtc":{const n=r,s={...n,server_id:n.id,client_id:n.client_id||n.id};if(delete s.id,n.session_id){const o=await this.getSessionByServerId(n.session_id);o?s.session_client_id=o.client_id:(console.warn(`[EntityRepository] Rtc ${n.client_id||n.id} references unknown session ${n.session_id}`),s.session_client_id=n.session_id)}delete s.session_id,await this.upsertRtc(s,"pending");break}}}}let Of=null;function lE(){return Of||(Of=new oE),Of}class To extends Error{constructor(e,r){super(r),this.code=e,this.name="PathError"}}function Gs(t){if(!t||typeof t!="string")throw new To("EINVAL","Path must be a non-empty string");let e=t.startsWith("/")?t:"/"+t;const r=e.split("/").filter(n=>n&&n!==".");for(const n of r)if(n==="..")throw new To("EINVAL","Path traversal (..) is not allowed");return e="/"+r.join("/"),e==="/"?"/":e.replace(/\/$/,"")}function cE(t){const e=Gs(t),r=e.lastIndexOf("/");return e.substring(r+1)}function $y(t,e){const r=t.replace(/[.+^${}()|[\]\\/+]/g,"\\$&").replace(/\*/g,"[^\\/]*").replace(/\?/g,"[^\\/]");return new RegExp(`^${r}$`).test(e)}class uE{async read(e,r,n){const s=Gs(e),a=await yr().fileSystemEntries.get(s);if(!a)throw new To("ENOENT",`File not found: ${s}`);let u=a.content;if(r!==void 0||n!==void 0){const p=r||0,y=n!==void 0?p+n:void 0;u=u.substring(p,y)}return u}async write(e,r,n="overwrite",s){const o=Gs(e),a=yr(),u=this.inferFileType(o),p=await a.fileSystemEntries.get(o);if(n==="create-new"&&p)return p.content.length;let y=r,h;if(p&&n==="append")y=p.content+r,h={...p.metadata,...s,updatedAt:new Date};else{const b=new Date;if(h={name:cE(o),description:"",createdAt:(p==null?void 0:p.metadata.createdAt)||b,updatedAt:b,...s},u==="function"){const S=this.extractGroupFromPath(o);S&&(h.group=S)}}const g={path:o,type:u,content:y,metadata:h};return await a.fileSystemEntries.put(g),y.length}async ls(e="/"){const r=Gs(e),n=yr(),s=new Set;if(r==="/"){const o=await n.fileSystemEntries.toArray();for(const a of o){const u=a.path.split("/").filter(Boolean);u.length>0&&s.add(u[0])}}else{const o=r+"/",a=await n.fileSystemEntries.filter(u=>u.path.startsWith(o)).toArray();for(const u of a){const y=u.path.substring(o.length).split("/");y.length>0&&s.add(y[0])}}return Array.from(s).sort()}async find(e,r="/"){const n=Gs(r),s=yr();let o;if(n==="/")o=await s.fileSystemEntries.toArray();else{const u=n+"/";o=await s.fileSystemEntries.filter(p=>p.path.startsWith(u)).toArray()}const a=[];for(const u of o){const p=n==="/"?u.path.substring(1):u.path.substring(n.length+1);($y(e,p)||$y(e,u.path))&&a.push(u.path)}return a.sort()}async grep(e,r="/",n=!1,s=100){const o=Gs(r),a=yr();let u;try{const h=n?"":"i";u=new RegExp(e,h)}catch{throw new SyntaxError(`Invalid regex pattern: ${e}`)}let p;if(o==="/")p=await a.fileSystemEntries.toArray();else{const h=o+"/";p=await a.fileSystemEntries.filter(g=>g.path.startsWith(h)).toArray()}const y=[];for(const h of p){const g=h.content.split(`
14
14
  `);for(let b=0;b<g.length;b++){const S=g[b];if(u.test(S)&&(y.push({file:h.path,line:S,lineNumber:b+1}),y.length>=s))return y}}return y}async queryByType(e){return yr().fileSystemEntries.where("type").equals(e).toArray()}async exists(e){const r=Gs(e);return await yr().fileSystemEntries.get(r)!==void 0}async remove(e){const r=Gs(e),n=yr();if(!await this.exists(r))throw new To("ENOENT",`File not found: ${r}`);await n.fileSystemEntries.delete(r)}inferFileType(e){return e.startsWith("/functions/")?"function":e.startsWith("/scenarios/")?"scenario":e.startsWith("/scripts/")?"script":(e.endsWith("/INDEX.md")||e==="/AGENT.md","index")}extractGroupFromPath(e){const r=e.split("/").filter(Boolean);if(r.length>=3&&r[0]==="functions")return r[1]}}const Lr=new uE;var Nf={},Eo={},ai={},kf={},xo={},Al={},Cl={},_e={},Il={},Uy;function Df(){if(Uy)return Il;Uy=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=t;function t(e,r){const n=Object.keys(r);for(const s of n)if(e[s]!==r[s])return!1;return!0}return Il}var Ol={},Vy;function Po(){if(Vy)return Ol;Vy=1,Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.default=e;const t=new Set;function e(n,s,o="",a=n){if(t.has(a))return;t.add(a);const{internal:u,trace:p}=r(1,2);u||console.warn(`${o}\`${n}\` has been deprecated, please migrate to \`${s}\`
15
15
  ${p}`)}function r(n,s){const{stackTraceLimit:o,prepareStackTrace:a}=Error;let u;if(Error.stackTraceLimit=1+n+s,Error.prepareStackTrace=function(y,h){u=h},new Error().stack,Error.stackTraceLimit=o,Error.prepareStackTrace=a,!u)return{internal:!1,trace:""};const p=u.slice(1+n,1+n+s);return{internal:/[\\/]@babel[\\/]/.test(p[1].getFileName()),trace:p.map(y=>` at ${y}`).join(`
16
- `)}}return Ol}var Ky;function Ir(){if(Ky)return _e;Ky=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.isAccessor=iy,_e.isAnyTypeAnnotation=dn,_e.isArgumentPlaceholder=Ln,_e.isArrayExpression=r,_e.isArrayPattern=qe,_e.isArrayTypeAnnotation=Sr,_e.isArrowFunctionExpression=Le,_e.isAssignmentExpression=n,_e.isAssignmentPattern=je,_e.isAwaitExpression=ge,_e.isBigIntLiteral=yt,_e.isBinary=St,_e.isBinaryExpression=s,_e.isBindExpression=hs,_e.isBlock=Kt,_e.isBlockParent=$t,_e.isBlockStatement=p,_e.isBooleanLiteral=ne,_e.isBooleanLiteralTypeAnnotation=ui,_e.isBooleanTypeAnnotation=Rt,_e.isBreakStatement=y,_e.isCallExpression=h,_e.isCatchClause=g,_e.isClass=ty,_e.isClassAccessorProperty=Ht,_e.isClassBody=gt,_e.isClassDeclaration=xe,_e.isClassExpression=ht,_e.isClassImplements=tn,_e.isClassMethod=Mt,_e.isClassPrivateMethod=xr,_e.isClassPrivateProperty=lr,_e.isClassProperty=Vt,_e.isCompletionStatement=k,_e.isConditional=F,_e.isConditionalExpression=b,_e.isContinueStatement=S,_e.isDebuggerStatement=O,_e.isDecimalLiteral=Gi,_e.isDeclaration=Uh,_e.isDeclareClass=Rr,_e.isDeclareExportAllDeclaration=rn,_e.isDeclareExportDeclaration=dr,_e.isDeclareFunction=jr,_e.isDeclareInterface=Dn,_e.isDeclareModule=Kr,_e.isDeclareModuleExports=Hn,_e.isDeclareOpaqueType=An,_e.isDeclareTypeAlias=Nr,_e.isDeclareVariable=fi,_e.isDeclaredPredicate=nn,_e.isDecorator=Ks,_e.isDirective=a,_e.isDirectiveLiteral=u,_e.isDoExpression=En,_e.isDoWhileStatement=_,_e.isEmptyStatement=w,_e.isEmptyTypeAnnotation=ss,_e.isEnumBody=fy,_e.isEnumBooleanBody=Cr,_e.isEnumBooleanMember=Yr,_e.isEnumDeclaration=br,_e.isEnumDefaultedMember=$i,_e.isEnumMember=py,_e.isEnumNumberBody=Tn,_e.isEnumNumberMember=Fs,_e.isEnumStringBody=Mn,_e.isEnumStringMember=Mr,_e.isEnumSymbolBody=qi,_e.isExistsTypeAnnotation=hn,_e.isExportAllDeclaration=Se,_e.isExportDeclaration=ry,_e.isExportDefaultDeclaration=se,_e.isExportDefaultSpecifier=ti,_e.isExportNamedDeclaration=ee,_e.isExportNamespaceSpecifier=mt,_e.isExportSpecifier=oe,_e.isExpression=jt,_e.isExpressionStatement=C,_e.isExpressionWrapper=tt,_e.isFile=T,_e.isFlow=ay,_e.isFlowBaseAnnotation=ly,_e.isFlowDeclaration=cy,_e.isFlowPredicate=uy,_e.isFlowType=oy,_e.isFor=Nt,_e.isForInStatement=x,_e.isForOfStatement=W,_e.isForStatement=E,_e.isForXStatement=cr,_e.isFunction=kr,_e.isFunctionDeclaration=j,_e.isFunctionExpression=R,_e.isFunctionParameter=Vh,_e.isFunctionParent=Ai,_e.isFunctionTypeAnnotation=Wr,_e.isFunctionTypeParam=yn,_e.isGenericTypeAnnotation=Ri,_e.isIdentifier=I,_e.isIfStatement=D,_e.isImmutable=Hh,_e.isImport=rt,_e.isImportAttribute=pn,_e.isImportDeclaration=fe,_e.isImportDefaultSpecifier=Re,_e.isImportExpression=it,_e.isImportNamespaceSpecifier=Fe,_e.isImportOrExportDeclaration=vf,_e.isImportSpecifier=Ke,_e.isIndexedAccessType=Ui,_e.isInferredPredicate=Cn,_e.isInterfaceDeclaration=pi,_e.isInterfaceExtends=is,_e.isInterfaceTypeAnnotation=Jn,_e.isInterpreterDirective=o,_e.isIntersectionTypeAnnotation=zt,_e.isJSX=dy,_e.isJSXAttribute=Qn,_e.isJSXClosingElement=mi,_e.isJSXClosingFragment=Vi,_e.isJSXElement=fs,_e.isJSXEmptyExpression=qs,_e.isJSXExpressionContainer=Zn,_e.isJSXFragment=ds,_e.isJSXIdentifier=ps,_e.isJSXMemberExpression=gi,_e.isJSXNamespacedName=ei,_e.isJSXOpeningElement=bi,_e.isJSXOpeningFragment=vi,_e.isJSXSpreadAttribute=Us,_e.isJSXSpreadChild=$s,_e.isJSXText=Vs,_e.isLVal=Wh,_e.isLabeledStatement=Z,_e.isLiteral=zh,_e.isLogicalExpression=Ce,_e.isLoop=ie,_e.isMemberExpression=Ae,_e.isMetaProperty=_t,_e.isMethod=Yh,_e.isMiscellaneous=hy,_e.isMixedTypeAnnotation=ji,_e.isModuleDeclaration=xy,_e.isModuleExpression=zi,_e.isModuleSpecifier=ny,_e.isNewExpression=ce,_e.isNoop=Ki,_e.isNullLiteral=$,_e.isNullLiteralTypeAnnotation=Vr,_e.isNullableTypeAnnotation=mn,_e.isNumberLiteral=vy,_e.isNumberLiteralTypeAnnotation=Pr,_e.isNumberTypeAnnotation=as,_e.isNumericLiteral=N,_e.isObjectExpression=K,_e.isObjectMember=Xh,_e.isObjectMethod=Y,_e.isObjectPattern=pt,_e.isObjectProperty=he,_e.isObjectTypeAnnotation=di,_e.isObjectTypeCallProperty=ir,_e.isObjectTypeIndexer=gn,_e.isObjectTypeInternalSlot=os,_e.isObjectTypeProperty=Bn,_e.isObjectTypeSpreadProperty=Rn,_e.isOpaqueType=Mi,_e.isOptionalCallExpression=Lt,_e.isOptionalIndexedAccessType=It,_e.isOptionalMemberExpression=Bt,_e.isParenthesizedExpression=H,_e.isPattern=ey,_e.isPatternLike=Kh,_e.isPipelineBareFunction=sn,_e.isPipelinePrimaryTopicReference=Hi,_e.isPipelineTopicExpression=ri,_e.isPlaceholder=Si,_e.isPrivate=sy,_e.isPrivateName=Wt,_e.isProgram=ue,_e.isProperty=Qh,_e.isPureish=$h,_e.isQualifiedTypeIdentifier=Yn,_e.isRecordExpression=Wi,_e.isRegExpLiteral=me,_e.isRegexLiteral=Sy,_e.isRestElement=ae,_e.isRestProperty=Ty,_e.isReturnStatement=U,_e.isScopable=qt,_e.isSequenceExpression=L,_e.isSpreadElement=xt,_e.isSpreadProperty=Ey,_e.isStandardized=At,_e.isStatement=Jt,_e.isStaticBlock=tr,_e.isStringLiteral=J,_e.isStringLiteralTypeAnnotation=Xn,_e.isStringTypeAnnotation=Li,_e.isSuper=te,_e.isSwitchCase=ye,_e.isSwitchStatement=Ie,_e.isSymbolTypeAnnotation=bn,_e.isTSAnyKeyword=Be,_e.isTSArrayType=ni,_e.isTSAsExpression=Ne,_e.isTSBaseType=by,_e.isTSBigIntKeyword=ct,_e.isTSBooleanKeyword=Ue,_e.isTSCallSignatureDeclaration=d,_e.isTSConditionalType=Qi,_e.isTSConstructSignatureDeclaration=A,_e.isTSConstructorType=Yi,_e.isTSDeclareFunction=l,_e.isTSDeclareMethod=i,_e.isTSEntityName=Gh,_e.isTSEnumBody=Je,_e.isTSEnumDeclaration=Ge,_e.isTSEnumMember=He,_e.isTSExportAssignment=ft,_e.isTSExpressionWithTypeArguments=M,_e.isTSExternalModuleReference=lt,_e.isTSFunctionType=Pi,_e.isTSImportEqualsDeclaration=Qe,_e.isTSImportType=Ye,_e.isTSIndexSignature=Pe,_e.isTSIndexedAccessType=on,_e.isTSInferType=Pn,_e.isTSInstantiationExpression=Te,_e.isTSInterfaceBody=re,_e.isTSInterfaceDeclaration=V,_e.isTSIntersectionType=_i,_e.isTSIntrinsicKeyword=vt,_e.isTSLiteralType=P,_e.isTSMappedType=Zi,_e.isTSMethodSignature=le,_e.isTSModuleBlock=Xe,_e.isTSModuleDeclaration=nt,_e.isTSNamedTupleMember=In,_e.isTSNamespaceExportDeclaration=bt,_e.isTSNeverKeyword=wt,_e.isTSNonNullExpression=ot,_e.isTSNullKeyword=Ot,_e.isTSNumberKeyword=Gt,_e.isTSObjectKeyword=or,_e.isTSOptionalType=hr,_e.isTSParameterProperty=z,_e.isTSParenthesizedType=wi,_e.isTSPropertySignature=Q,_e.isTSQualifiedName=c,_e.isTSRestType=ii,_e.isTSSatisfiesExpression=We,_e.isTSStringKeyword=Ft,_e.isTSSymbolKeyword=sr,_e.isTSTemplateLiteralType=v,_e.isTSThisType=Ji,_e.isTSTupleType=Xr,_e.isTSType=gy,_e.isTSTypeAliasDeclaration=pe,_e.isTSTypeAnnotation=Et,_e.isTSTypeAssertion=at,_e.isTSTypeElement=my,_e.isTSTypeLiteral=bs,_e.isTSTypeOperator=On,_e.isTSTypeParameter=Dt,_e.isTSTypeParameterDeclaration=Pt,_e.isTSTypeParameterInstantiation=Ct,_e.isTSTypePredicate=ms,_e.isTSTypeQuery=gs,_e.isTSTypeReference=Xi,_e.isTSUndefinedKeyword=xn,_e.isTSUnionType=vs,_e.isTSUnknownKeyword=an,_e.isTSVoidKeyword=ys,_e.isTaggedTemplateExpression=de,_e.isTemplateElement=G,_e.isTemplateLiteral=be,_e.isTerminatorless=B,_e.isThisExpression=Ee,_e.isThisTypeAnnotation=ls,_e.isThrowStatement=De,_e.isTopicReference=Tr,_e.isTryStatement=Me,_e.isTupleExpression=Ei,_e.isTupleTypeAnnotation=vn,_e.isTypeAlias=cs,_e.isTypeAnnotation=Ls,_e.isTypeCastExpression=hi,_e.isTypeParameter=Ar,_e.isTypeParameterDeclaration=jn,_e.isTypeParameterInstantiation=yi,_e.isTypeScript=yy,_e.isTypeofTypeAnnotation=Qt,_e.isUnaryExpression=Ve,_e.isUnaryLike=Zh,_e.isUnionTypeAnnotation=Sn,_e.isUpdateExpression=Ze,_e.isUserWhitespacable=Jh,_e.isV8IntrinsicIdentifier=Ti,_e.isVariableDeclaration=ut,_e.isVariableDeclarator=st,_e.isVariance=us,_e.isVoidPattern=xi,_e.isVoidTypeAnnotation=Fi,_e.isWhile=ke,_e.isWhileStatement=dt,_e.isWithStatement=$e,_e.isYieldExpression=et;var t=Df(),e=Po();function r(m,f){return!m||m.type!=="ArrayExpression"?!1:f==null||(0,t.default)(m,f)}function n(m,f){return!m||m.type!=="AssignmentExpression"?!1:f==null||(0,t.default)(m,f)}function s(m,f){return!m||m.type!=="BinaryExpression"?!1:f==null||(0,t.default)(m,f)}function o(m,f){return!m||m.type!=="InterpreterDirective"?!1:f==null||(0,t.default)(m,f)}function a(m,f){return!m||m.type!=="Directive"?!1:f==null||(0,t.default)(m,f)}function u(m,f){return!m||m.type!=="DirectiveLiteral"?!1:f==null||(0,t.default)(m,f)}function p(m,f){return!m||m.type!=="BlockStatement"?!1:f==null||(0,t.default)(m,f)}function y(m,f){return!m||m.type!=="BreakStatement"?!1:f==null||(0,t.default)(m,f)}function h(m,f){return!m||m.type!=="CallExpression"?!1:f==null||(0,t.default)(m,f)}function g(m,f){return!m||m.type!=="CatchClause"?!1:f==null||(0,t.default)(m,f)}function b(m,f){return!m||m.type!=="ConditionalExpression"?!1:f==null||(0,t.default)(m,f)}function S(m,f){return!m||m.type!=="ContinueStatement"?!1:f==null||(0,t.default)(m,f)}function O(m,f){return!m||m.type!=="DebuggerStatement"?!1:f==null||(0,t.default)(m,f)}function _(m,f){return!m||m.type!=="DoWhileStatement"?!1:f==null||(0,t.default)(m,f)}function w(m,f){return!m||m.type!=="EmptyStatement"?!1:f==null||(0,t.default)(m,f)}function C(m,f){return!m||m.type!=="ExpressionStatement"?!1:f==null||(0,t.default)(m,f)}function T(m,f){return!m||m.type!=="File"?!1:f==null||(0,t.default)(m,f)}function x(m,f){return!m||m.type!=="ForInStatement"?!1:f==null||(0,t.default)(m,f)}function E(m,f){return!m||m.type!=="ForStatement"?!1:f==null||(0,t.default)(m,f)}function j(m,f){return!m||m.type!=="FunctionDeclaration"?!1:f==null||(0,t.default)(m,f)}function R(m,f){return!m||m.type!=="FunctionExpression"?!1:f==null||(0,t.default)(m,f)}function I(m,f){return!m||m.type!=="Identifier"?!1:f==null||(0,t.default)(m,f)}function D(m,f){return!m||m.type!=="IfStatement"?!1:f==null||(0,t.default)(m,f)}function Z(m,f){return!m||m.type!=="LabeledStatement"?!1:f==null||(0,t.default)(m,f)}function J(m,f){return!m||m.type!=="StringLiteral"?!1:f==null||(0,t.default)(m,f)}function N(m,f){return!m||m.type!=="NumericLiteral"?!1:f==null||(0,t.default)(m,f)}function $(m,f){return!m||m.type!=="NullLiteral"?!1:f==null||(0,t.default)(m,f)}function ne(m,f){return!m||m.type!=="BooleanLiteral"?!1:f==null||(0,t.default)(m,f)}function me(m,f){return!m||m.type!=="RegExpLiteral"?!1:f==null||(0,t.default)(m,f)}function Ce(m,f){return!m||m.type!=="LogicalExpression"?!1:f==null||(0,t.default)(m,f)}function Ae(m,f){return!m||m.type!=="MemberExpression"?!1:f==null||(0,t.default)(m,f)}function ce(m,f){return!m||m.type!=="NewExpression"?!1:f==null||(0,t.default)(m,f)}function ue(m,f){return!m||m.type!=="Program"?!1:f==null||(0,t.default)(m,f)}function K(m,f){return!m||m.type!=="ObjectExpression"?!1:f==null||(0,t.default)(m,f)}function Y(m,f){return!m||m.type!=="ObjectMethod"?!1:f==null||(0,t.default)(m,f)}function he(m,f){return!m||m.type!=="ObjectProperty"?!1:f==null||(0,t.default)(m,f)}function ae(m,f){return!m||m.type!=="RestElement"?!1:f==null||(0,t.default)(m,f)}function U(m,f){return!m||m.type!=="ReturnStatement"?!1:f==null||(0,t.default)(m,f)}function L(m,f){return!m||m.type!=="SequenceExpression"?!1:f==null||(0,t.default)(m,f)}function H(m,f){return!m||m.type!=="ParenthesizedExpression"?!1:f==null||(0,t.default)(m,f)}function ye(m,f){return!m||m.type!=="SwitchCase"?!1:f==null||(0,t.default)(m,f)}function Ie(m,f){return!m||m.type!=="SwitchStatement"?!1:f==null||(0,t.default)(m,f)}function Ee(m,f){return!m||m.type!=="ThisExpression"?!1:f==null||(0,t.default)(m,f)}function De(m,f){return!m||m.type!=="ThrowStatement"?!1:f==null||(0,t.default)(m,f)}function Me(m,f){return!m||m.type!=="TryStatement"?!1:f==null||(0,t.default)(m,f)}function Ve(m,f){return!m||m.type!=="UnaryExpression"?!1:f==null||(0,t.default)(m,f)}function Ze(m,f){return!m||m.type!=="UpdateExpression"?!1:f==null||(0,t.default)(m,f)}function ut(m,f){return!m||m.type!=="VariableDeclaration"?!1:f==null||(0,t.default)(m,f)}function st(m,f){return!m||m.type!=="VariableDeclarator"?!1:f==null||(0,t.default)(m,f)}function dt(m,f){return!m||m.type!=="WhileStatement"?!1:f==null||(0,t.default)(m,f)}function $e(m,f){return!m||m.type!=="WithStatement"?!1:f==null||(0,t.default)(m,f)}function je(m,f){return!m||m.type!=="AssignmentPattern"?!1:f==null||(0,t.default)(m,f)}function qe(m,f){return!m||m.type!=="ArrayPattern"?!1:f==null||(0,t.default)(m,f)}function Le(m,f){return!m||m.type!=="ArrowFunctionExpression"?!1:f==null||(0,t.default)(m,f)}function gt(m,f){return!m||m.type!=="ClassBody"?!1:f==null||(0,t.default)(m,f)}function ht(m,f){return!m||m.type!=="ClassExpression"?!1:f==null||(0,t.default)(m,f)}function xe(m,f){return!m||m.type!=="ClassDeclaration"?!1:f==null||(0,t.default)(m,f)}function Se(m,f){return!m||m.type!=="ExportAllDeclaration"?!1:f==null||(0,t.default)(m,f)}function se(m,f){return!m||m.type!=="ExportDefaultDeclaration"?!1:f==null||(0,t.default)(m,f)}function ee(m,f){return!m||m.type!=="ExportNamedDeclaration"?!1:f==null||(0,t.default)(m,f)}function oe(m,f){return!m||m.type!=="ExportSpecifier"?!1:f==null||(0,t.default)(m,f)}function W(m,f){return!m||m.type!=="ForOfStatement"?!1:f==null||(0,t.default)(m,f)}function fe(m,f){return!m||m.type!=="ImportDeclaration"?!1:f==null||(0,t.default)(m,f)}function Re(m,f){return!m||m.type!=="ImportDefaultSpecifier"?!1:f==null||(0,t.default)(m,f)}function Fe(m,f){return!m||m.type!=="ImportNamespaceSpecifier"?!1:f==null||(0,t.default)(m,f)}function Ke(m,f){return!m||m.type!=="ImportSpecifier"?!1:f==null||(0,t.default)(m,f)}function it(m,f){return!m||m.type!=="ImportExpression"?!1:f==null||(0,t.default)(m,f)}function _t(m,f){return!m||m.type!=="MetaProperty"?!1:f==null||(0,t.default)(m,f)}function Mt(m,f){return!m||m.type!=="ClassMethod"?!1:f==null||(0,t.default)(m,f)}function pt(m,f){return!m||m.type!=="ObjectPattern"?!1:f==null||(0,t.default)(m,f)}function xt(m,f){return!m||m.type!=="SpreadElement"?!1:f==null||(0,t.default)(m,f)}function te(m,f){return!m||m.type!=="Super"?!1:f==null||(0,t.default)(m,f)}function de(m,f){return!m||m.type!=="TaggedTemplateExpression"?!1:f==null||(0,t.default)(m,f)}function G(m,f){return!m||m.type!=="TemplateElement"?!1:f==null||(0,t.default)(m,f)}function be(m,f){return!m||m.type!=="TemplateLiteral"?!1:f==null||(0,t.default)(m,f)}function et(m,f){return!m||m.type!=="YieldExpression"?!1:f==null||(0,t.default)(m,f)}function ge(m,f){return!m||m.type!=="AwaitExpression"?!1:f==null||(0,t.default)(m,f)}function rt(m,f){return!m||m.type!=="Import"?!1:f==null||(0,t.default)(m,f)}function yt(m,f){return!m||m.type!=="BigIntLiteral"?!1:f==null||(0,t.default)(m,f)}function mt(m,f){return!m||m.type!=="ExportNamespaceSpecifier"?!1:f==null||(0,t.default)(m,f)}function Bt(m,f){return!m||m.type!=="OptionalMemberExpression"?!1:f==null||(0,t.default)(m,f)}function Lt(m,f){return!m||m.type!=="OptionalCallExpression"?!1:f==null||(0,t.default)(m,f)}function Vt(m,f){return!m||m.type!=="ClassProperty"?!1:f==null||(0,t.default)(m,f)}function Ht(m,f){return!m||m.type!=="ClassAccessorProperty"?!1:f==null||(0,t.default)(m,f)}function lr(m,f){return!m||m.type!=="ClassPrivateProperty"?!1:f==null||(0,t.default)(m,f)}function xr(m,f){return!m||m.type!=="ClassPrivateMethod"?!1:f==null||(0,t.default)(m,f)}function Wt(m,f){return!m||m.type!=="PrivateName"?!1:f==null||(0,t.default)(m,f)}function tr(m,f){return!m||m.type!=="StaticBlock"?!1:f==null||(0,t.default)(m,f)}function pn(m,f){return!m||m.type!=="ImportAttribute"?!1:f==null||(0,t.default)(m,f)}function dn(m,f){return!m||m.type!=="AnyTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Sr(m,f){return!m||m.type!=="ArrayTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Rt(m,f){return!m||m.type!=="BooleanTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ui(m,f){return!m||m.type!=="BooleanLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Vr(m,f){return!m||m.type!=="NullLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function tn(m,f){return!m||m.type!=="ClassImplements"?!1:f==null||(0,t.default)(m,f)}function Rr(m,f){return!m||m.type!=="DeclareClass"?!1:f==null||(0,t.default)(m,f)}function jr(m,f){return!m||m.type!=="DeclareFunction"?!1:f==null||(0,t.default)(m,f)}function Dn(m,f){return!m||m.type!=="DeclareInterface"?!1:f==null||(0,t.default)(m,f)}function Kr(m,f){return!m||m.type!=="DeclareModule"?!1:f==null||(0,t.default)(m,f)}function Hn(m,f){return!m||m.type!=="DeclareModuleExports"?!1:f==null||(0,t.default)(m,f)}function Nr(m,f){return!m||m.type!=="DeclareTypeAlias"?!1:f==null||(0,t.default)(m,f)}function An(m,f){return!m||m.type!=="DeclareOpaqueType"?!1:f==null||(0,t.default)(m,f)}function fi(m,f){return!m||m.type!=="DeclareVariable"?!1:f==null||(0,t.default)(m,f)}function dr(m,f){return!m||m.type!=="DeclareExportDeclaration"?!1:f==null||(0,t.default)(m,f)}function rn(m,f){return!m||m.type!=="DeclareExportAllDeclaration"?!1:f==null||(0,t.default)(m,f)}function nn(m,f){return!m||m.type!=="DeclaredPredicate"?!1:f==null||(0,t.default)(m,f)}function hn(m,f){return!m||m.type!=="ExistsTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Wr(m,f){return!m||m.type!=="FunctionTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function yn(m,f){return!m||m.type!=="FunctionTypeParam"?!1:f==null||(0,t.default)(m,f)}function Ri(m,f){return!m||m.type!=="GenericTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Cn(m,f){return!m||m.type!=="InferredPredicate"?!1:f==null||(0,t.default)(m,f)}function is(m,f){return!m||m.type!=="InterfaceExtends"?!1:f==null||(0,t.default)(m,f)}function pi(m,f){return!m||m.type!=="InterfaceDeclaration"?!1:f==null||(0,t.default)(m,f)}function Jn(m,f){return!m||m.type!=="InterfaceTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function zt(m,f){return!m||m.type!=="IntersectionTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ji(m,f){return!m||m.type!=="MixedTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ss(m,f){return!m||m.type!=="EmptyTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function mn(m,f){return!m||m.type!=="NullableTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Pr(m,f){return!m||m.type!=="NumberLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function as(m,f){return!m||m.type!=="NumberTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function di(m,f){return!m||m.type!=="ObjectTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function os(m,f){return!m||m.type!=="ObjectTypeInternalSlot"?!1:f==null||(0,t.default)(m,f)}function ir(m,f){return!m||m.type!=="ObjectTypeCallProperty"?!1:f==null||(0,t.default)(m,f)}function gn(m,f){return!m||m.type!=="ObjectTypeIndexer"?!1:f==null||(0,t.default)(m,f)}function Bn(m,f){return!m||m.type!=="ObjectTypeProperty"?!1:f==null||(0,t.default)(m,f)}function Rn(m,f){return!m||m.type!=="ObjectTypeSpreadProperty"?!1:f==null||(0,t.default)(m,f)}function Mi(m,f){return!m||m.type!=="OpaqueType"?!1:f==null||(0,t.default)(m,f)}function Yn(m,f){return!m||m.type!=="QualifiedTypeIdentifier"?!1:f==null||(0,t.default)(m,f)}function Xn(m,f){return!m||m.type!=="StringLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Li(m,f){return!m||m.type!=="StringTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function bn(m,f){return!m||m.type!=="SymbolTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ls(m,f){return!m||m.type!=="ThisTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function vn(m,f){return!m||m.type!=="TupleTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Qt(m,f){return!m||m.type!=="TypeofTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function cs(m,f){return!m||m.type!=="TypeAlias"?!1:f==null||(0,t.default)(m,f)}function Ls(m,f){return!m||m.type!=="TypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function hi(m,f){return!m||m.type!=="TypeCastExpression"?!1:f==null||(0,t.default)(m,f)}function Ar(m,f){return!m||m.type!=="TypeParameter"?!1:f==null||(0,t.default)(m,f)}function jn(m,f){return!m||m.type!=="TypeParameterDeclaration"?!1:f==null||(0,t.default)(m,f)}function yi(m,f){return!m||m.type!=="TypeParameterInstantiation"?!1:f==null||(0,t.default)(m,f)}function Sn(m,f){return!m||m.type!=="UnionTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function us(m,f){return!m||m.type!=="Variance"?!1:f==null||(0,t.default)(m,f)}function Fi(m,f){return!m||m.type!=="VoidTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function br(m,f){return!m||m.type!=="EnumDeclaration"?!1:f==null||(0,t.default)(m,f)}function Cr(m,f){return!m||m.type!=="EnumBooleanBody"?!1:f==null||(0,t.default)(m,f)}function Tn(m,f){return!m||m.type!=="EnumNumberBody"?!1:f==null||(0,t.default)(m,f)}function Mn(m,f){return!m||m.type!=="EnumStringBody"?!1:f==null||(0,t.default)(m,f)}function qi(m,f){return!m||m.type!=="EnumSymbolBody"?!1:f==null||(0,t.default)(m,f)}function Yr(m,f){return!m||m.type!=="EnumBooleanMember"?!1:f==null||(0,t.default)(m,f)}function Fs(m,f){return!m||m.type!=="EnumNumberMember"?!1:f==null||(0,t.default)(m,f)}function Mr(m,f){return!m||m.type!=="EnumStringMember"?!1:f==null||(0,t.default)(m,f)}function $i(m,f){return!m||m.type!=="EnumDefaultedMember"?!1:f==null||(0,t.default)(m,f)}function Ui(m,f){return!m||m.type!=="IndexedAccessType"?!1:f==null||(0,t.default)(m,f)}function It(m,f){return!m||m.type!=="OptionalIndexedAccessType"?!1:f==null||(0,t.default)(m,f)}function Qn(m,f){return!m||m.type!=="JSXAttribute"?!1:f==null||(0,t.default)(m,f)}function mi(m,f){return!m||m.type!=="JSXClosingElement"?!1:f==null||(0,t.default)(m,f)}function fs(m,f){return!m||m.type!=="JSXElement"?!1:f==null||(0,t.default)(m,f)}function qs(m,f){return!m||m.type!=="JSXEmptyExpression"?!1:f==null||(0,t.default)(m,f)}function Zn(m,f){return!m||m.type!=="JSXExpressionContainer"?!1:f==null||(0,t.default)(m,f)}function $s(m,f){return!m||m.type!=="JSXSpreadChild"?!1:f==null||(0,t.default)(m,f)}function ps(m,f){return!m||m.type!=="JSXIdentifier"?!1:f==null||(0,t.default)(m,f)}function gi(m,f){return!m||m.type!=="JSXMemberExpression"?!1:f==null||(0,t.default)(m,f)}function ei(m,f){return!m||m.type!=="JSXNamespacedName"?!1:f==null||(0,t.default)(m,f)}function bi(m,f){return!m||m.type!=="JSXOpeningElement"?!1:f==null||(0,t.default)(m,f)}function Us(m,f){return!m||m.type!=="JSXSpreadAttribute"?!1:f==null||(0,t.default)(m,f)}function Vs(m,f){return!m||m.type!=="JSXText"?!1:f==null||(0,t.default)(m,f)}function ds(m,f){return!m||m.type!=="JSXFragment"?!1:f==null||(0,t.default)(m,f)}function vi(m,f){return!m||m.type!=="JSXOpeningFragment"?!1:f==null||(0,t.default)(m,f)}function Vi(m,f){return!m||m.type!=="JSXClosingFragment"?!1:f==null||(0,t.default)(m,f)}function Ki(m,f){return!m||m.type!=="Noop"?!1:f==null||(0,t.default)(m,f)}function Si(m,f){return!m||m.type!=="Placeholder"?!1:f==null||(0,t.default)(m,f)}function Ti(m,f){return!m||m.type!=="V8IntrinsicIdentifier"?!1:f==null||(0,t.default)(m,f)}function Ln(m,f){return!m||m.type!=="ArgumentPlaceholder"?!1:f==null||(0,t.default)(m,f)}function hs(m,f){return!m||m.type!=="BindExpression"?!1:f==null||(0,t.default)(m,f)}function Ks(m,f){return!m||m.type!=="Decorator"?!1:f==null||(0,t.default)(m,f)}function En(m,f){return!m||m.type!=="DoExpression"?!1:f==null||(0,t.default)(m,f)}function ti(m,f){return!m||m.type!=="ExportDefaultSpecifier"?!1:f==null||(0,t.default)(m,f)}function Wi(m,f){return!m||m.type!=="RecordExpression"?!1:f==null||(0,t.default)(m,f)}function Ei(m,f){return!m||m.type!=="TupleExpression"?!1:f==null||(0,t.default)(m,f)}function Gi(m,f){return!m||m.type!=="DecimalLiteral"?!1:f==null||(0,t.default)(m,f)}function zi(m,f){return!m||m.type!=="ModuleExpression"?!1:f==null||(0,t.default)(m,f)}function Tr(m,f){return!m||m.type!=="TopicReference"?!1:f==null||(0,t.default)(m,f)}function ri(m,f){return!m||m.type!=="PipelineTopicExpression"?!1:f==null||(0,t.default)(m,f)}function sn(m,f){return!m||m.type!=="PipelineBareFunction"?!1:f==null||(0,t.default)(m,f)}function Hi(m,f){return!m||m.type!=="PipelinePrimaryTopicReference"?!1:f==null||(0,t.default)(m,f)}function xi(m,f){return!m||m.type!=="VoidPattern"?!1:f==null||(0,t.default)(m,f)}function z(m,f){return!m||m.type!=="TSParameterProperty"?!1:f==null||(0,t.default)(m,f)}function l(m,f){return!m||m.type!=="TSDeclareFunction"?!1:f==null||(0,t.default)(m,f)}function i(m,f){return!m||m.type!=="TSDeclareMethod"?!1:f==null||(0,t.default)(m,f)}function c(m,f){return!m||m.type!=="TSQualifiedName"?!1:f==null||(0,t.default)(m,f)}function d(m,f){return!m||m.type!=="TSCallSignatureDeclaration"?!1:f==null||(0,t.default)(m,f)}function A(m,f){return!m||m.type!=="TSConstructSignatureDeclaration"?!1:f==null||(0,t.default)(m,f)}function Q(m,f){return!m||m.type!=="TSPropertySignature"?!1:f==null||(0,t.default)(m,f)}function le(m,f){return!m||m.type!=="TSMethodSignature"?!1:f==null||(0,t.default)(m,f)}function Pe(m,f){return!m||m.type!=="TSIndexSignature"?!1:f==null||(0,t.default)(m,f)}function Be(m,f){return!m||m.type!=="TSAnyKeyword"?!1:f==null||(0,t.default)(m,f)}function Ue(m,f){return!m||m.type!=="TSBooleanKeyword"?!1:f==null||(0,t.default)(m,f)}function ct(m,f){return!m||m.type!=="TSBigIntKeyword"?!1:f==null||(0,t.default)(m,f)}function vt(m,f){return!m||m.type!=="TSIntrinsicKeyword"?!1:f==null||(0,t.default)(m,f)}function wt(m,f){return!m||m.type!=="TSNeverKeyword"?!1:f==null||(0,t.default)(m,f)}function Ot(m,f){return!m||m.type!=="TSNullKeyword"?!1:f==null||(0,t.default)(m,f)}function Gt(m,f){return!m||m.type!=="TSNumberKeyword"?!1:f==null||(0,t.default)(m,f)}function or(m,f){return!m||m.type!=="TSObjectKeyword"?!1:f==null||(0,t.default)(m,f)}function Ft(m,f){return!m||m.type!=="TSStringKeyword"?!1:f==null||(0,t.default)(m,f)}function sr(m,f){return!m||m.type!=="TSSymbolKeyword"?!1:f==null||(0,t.default)(m,f)}function xn(m,f){return!m||m.type!=="TSUndefinedKeyword"?!1:f==null||(0,t.default)(m,f)}function an(m,f){return!m||m.type!=="TSUnknownKeyword"?!1:f==null||(0,t.default)(m,f)}function ys(m,f){return!m||m.type!=="TSVoidKeyword"?!1:f==null||(0,t.default)(m,f)}function Ji(m,f){return!m||m.type!=="TSThisType"?!1:f==null||(0,t.default)(m,f)}function Pi(m,f){return!m||m.type!=="TSFunctionType"?!1:f==null||(0,t.default)(m,f)}function Yi(m,f){return!m||m.type!=="TSConstructorType"?!1:f==null||(0,t.default)(m,f)}function Xi(m,f){return!m||m.type!=="TSTypeReference"?!1:f==null||(0,t.default)(m,f)}function ms(m,f){return!m||m.type!=="TSTypePredicate"?!1:f==null||(0,t.default)(m,f)}function gs(m,f){return!m||m.type!=="TSTypeQuery"?!1:f==null||(0,t.default)(m,f)}function bs(m,f){return!m||m.type!=="TSTypeLiteral"?!1:f==null||(0,t.default)(m,f)}function ni(m,f){return!m||m.type!=="TSArrayType"?!1:f==null||(0,t.default)(m,f)}function Xr(m,f){return!m||m.type!=="TSTupleType"?!1:f==null||(0,t.default)(m,f)}function hr(m,f){return!m||m.type!=="TSOptionalType"?!1:f==null||(0,t.default)(m,f)}function ii(m,f){return!m||m.type!=="TSRestType"?!1:f==null||(0,t.default)(m,f)}function In(m,f){return!m||m.type!=="TSNamedTupleMember"?!1:f==null||(0,t.default)(m,f)}function vs(m,f){return!m||m.type!=="TSUnionType"?!1:f==null||(0,t.default)(m,f)}function _i(m,f){return!m||m.type!=="TSIntersectionType"?!1:f==null||(0,t.default)(m,f)}function Qi(m,f){return!m||m.type!=="TSConditionalType"?!1:f==null||(0,t.default)(m,f)}function Pn(m,f){return!m||m.type!=="TSInferType"?!1:f==null||(0,t.default)(m,f)}function wi(m,f){return!m||m.type!=="TSParenthesizedType"?!1:f==null||(0,t.default)(m,f)}function On(m,f){return!m||m.type!=="TSTypeOperator"?!1:f==null||(0,t.default)(m,f)}function on(m,f){return!m||m.type!=="TSIndexedAccessType"?!1:f==null||(0,t.default)(m,f)}function Zi(m,f){return!m||m.type!=="TSMappedType"?!1:f==null||(0,t.default)(m,f)}function v(m,f){return!m||m.type!=="TSTemplateLiteralType"?!1:f==null||(0,t.default)(m,f)}function P(m,f){return!m||m.type!=="TSLiteralType"?!1:f==null||(0,t.default)(m,f)}function M(m,f){return!m||m.type!=="TSExpressionWithTypeArguments"?!1:f==null||(0,t.default)(m,f)}function V(m,f){return!m||m.type!=="TSInterfaceDeclaration"?!1:f==null||(0,t.default)(m,f)}function re(m,f){return!m||m.type!=="TSInterfaceBody"?!1:f==null||(0,t.default)(m,f)}function pe(m,f){return!m||m.type!=="TSTypeAliasDeclaration"?!1:f==null||(0,t.default)(m,f)}function Te(m,f){return!m||m.type!=="TSInstantiationExpression"?!1:f==null||(0,t.default)(m,f)}function Ne(m,f){return!m||m.type!=="TSAsExpression"?!1:f==null||(0,t.default)(m,f)}function We(m,f){return!m||m.type!=="TSSatisfiesExpression"?!1:f==null||(0,t.default)(m,f)}function at(m,f){return!m||m.type!=="TSTypeAssertion"?!1:f==null||(0,t.default)(m,f)}function Je(m,f){return!m||m.type!=="TSEnumBody"?!1:f==null||(0,t.default)(m,f)}function Ge(m,f){return!m||m.type!=="TSEnumDeclaration"?!1:f==null||(0,t.default)(m,f)}function He(m,f){return!m||m.type!=="TSEnumMember"?!1:f==null||(0,t.default)(m,f)}function nt(m,f){return!m||m.type!=="TSModuleDeclaration"?!1:f==null||(0,t.default)(m,f)}function Xe(m,f){return!m||m.type!=="TSModuleBlock"?!1:f==null||(0,t.default)(m,f)}function Ye(m,f){return!m||m.type!=="TSImportType"?!1:f==null||(0,t.default)(m,f)}function Qe(m,f){return!m||m.type!=="TSImportEqualsDeclaration"?!1:f==null||(0,t.default)(m,f)}function lt(m,f){return!m||m.type!=="TSExternalModuleReference"?!1:f==null||(0,t.default)(m,f)}function ot(m,f){return!m||m.type!=="TSNonNullExpression"?!1:f==null||(0,t.default)(m,f)}function ft(m,f){return!m||m.type!=="TSExportAssignment"?!1:f==null||(0,t.default)(m,f)}function bt(m,f){return!m||m.type!=="TSNamespaceExportDeclaration"?!1:f==null||(0,t.default)(m,f)}function Et(m,f){return!m||m.type!=="TSTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Ct(m,f){return!m||m.type!=="TSTypeParameterInstantiation"?!1:f==null||(0,t.default)(m,f)}function Pt(m,f){return!m||m.type!=="TSTypeParameterDeclaration"?!1:f==null||(0,t.default)(m,f)}function Dt(m,f){return!m||m.type!=="TSTypeParameter"?!1:f==null||(0,t.default)(m,f)}function At(m,f){if(!m)return!1;switch(m.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(m.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function jt(m,f){if(!m)return!1;switch(m.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(m.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function St(m,f){if(!m)return!1;switch(m.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return f==null||(0,t.default)(m,f)}function qt(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(m.expectedNode==="BlockStatement")break;default:return!1}return f==null||(0,t.default)(m,f)}function $t(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(m.expectedNode==="BlockStatement")break;default:return!1}return f==null||(0,t.default)(m,f)}function Kt(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(m.expectedNode==="BlockStatement")break;default:return!1}return f==null||(0,t.default)(m,f)}function Jt(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(m.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function B(m,f){if(!m)return!1;switch(m.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return f==null||(0,t.default)(m,f)}function k(m,f){if(!m)return!1;switch(m.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function F(m,f){if(!m)return!1;switch(m.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function ie(m,f){if(!m)return!1;switch(m.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function ke(m,f){if(!m)return!1;switch(m.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function tt(m,f){if(!m)return!1;switch(m.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return f==null||(0,t.default)(m,f)}function Nt(m,f){if(!m)return!1;switch(m.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function cr(m,f){if(!m)return!1;switch(m.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function kr(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return f==null||(0,t.default)(m,f)}function Ai(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return f==null||(0,t.default)(m,f)}function $h(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(m.expectedNode==="StringLiteral")break;default:return!1}return f==null||(0,t.default)(m,f)}function Uh(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(m.expectedNode==="Declaration")break;default:return!1}return f==null||(0,t.default)(m,f)}function Vh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(m.expectedNode==="Identifier")break;default:return!1}return f==null||(0,t.default)(m,f)}function Kh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(m.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function Wh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(m.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function Gh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(m.expectedNode==="Identifier")break;default:return!1}return f==null||(0,t.default)(m,f)}function zh(m,f){if(!m)return!1;switch(m.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(m.expectedNode==="StringLiteral")break;default:return!1}return f==null||(0,t.default)(m,f)}function Hh(m,f){if(!m)return!1;switch(m.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(m.expectedNode==="StringLiteral")break;default:return!1}return f==null||(0,t.default)(m,f)}function Jh(m,f){if(!m)return!1;switch(m.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function Yh(m,f){if(!m)return!1;switch(m.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return f==null||(0,t.default)(m,f)}function Xh(m,f){if(!m)return!1;switch(m.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function Qh(m,f){if(!m)return!1;switch(m.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function Zh(m,f){if(!m)return!1;switch(m.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return f==null||(0,t.default)(m,f)}function ey(m,f){if(!m)return!1;switch(m.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(m.expectedNode==="Pattern")break;default:return!1}return f==null||(0,t.default)(m,f)}function ty(m,f){if(!m)return!1;switch(m.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return f==null||(0,t.default)(m,f)}function vf(m,f){if(!m)return!1;switch(m.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return f==null||(0,t.default)(m,f)}function ry(m,f){if(!m)return!1;switch(m.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return f==null||(0,t.default)(m,f)}function ny(m,f){if(!m)return!1;switch(m.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return f==null||(0,t.default)(m,f)}function iy(m,f){if(!m)return!1;switch(m.type){case"ClassAccessorProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function sy(m,f){if(!m)return!1;switch(m.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return f==null||(0,t.default)(m,f)}function ay(m,f){if(!m)return!1;switch(m.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return f==null||(0,t.default)(m,f)}function oy(m,f){if(!m)return!1;switch(m.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return f==null||(0,t.default)(m,f)}function ly(m,f){if(!m)return!1;switch(m.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return f==null||(0,t.default)(m,f)}function cy(m,f){if(!m)return!1;switch(m.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return f==null||(0,t.default)(m,f)}function uy(m,f){if(!m)return!1;switch(m.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return f==null||(0,t.default)(m,f)}function fy(m,f){if(!m)return!1;switch(m.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return f==null||(0,t.default)(m,f)}function py(m,f){if(!m)return!1;switch(m.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return f==null||(0,t.default)(m,f)}function dy(m,f){if(!m)return!1;switch(m.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return f==null||(0,t.default)(m,f)}function hy(m,f){if(!m)return!1;switch(m.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return f==null||(0,t.default)(m,f)}function yy(m,f){if(!m)return!1;switch(m.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return f==null||(0,t.default)(m,f)}function my(m,f){if(!m)return!1;switch(m.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return f==null||(0,t.default)(m,f)}function gy(m,f){if(!m)return!1;switch(m.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return f==null||(0,t.default)(m,f)}function by(m,f){if(!m)return!1;switch(m.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return f==null||(0,t.default)(m,f)}function vy(m,f){return(0,e.default)("isNumberLiteral","isNumericLiteral"),!m||m.type!=="NumberLiteral"?!1:f==null||(0,t.default)(m,f)}function Sy(m,f){return(0,e.default)("isRegexLiteral","isRegExpLiteral"),!m||m.type!=="RegexLiteral"?!1:f==null||(0,t.default)(m,f)}function Ty(m,f){return(0,e.default)("isRestProperty","isRestElement"),!m||m.type!=="RestProperty"?!1:f==null||(0,t.default)(m,f)}function Ey(m,f){return(0,e.default)("isSpreadProperty","isSpreadElement"),!m||m.type!=="SpreadProperty"?!1:f==null||(0,t.default)(m,f)}function xy(m,f){return(0,e.default)("isModuleDeclaration","isImportOrExportDeclaration"),vf(m,f)}return _e}var Wy;function Gy(){if(Wy)return Cl;Wy=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=r;var t=Ir();function e(n){return(0,t.isMemberExpression)(n)||(0,t.isMetaProperty)(n)}function r(n,s,o){if(!e(n))return!1;const a=Array.isArray(s)?s:s.split("."),u=[];let p;for(p=n;e(p);p=(y=p.object)!=null?y:p.meta){var y;u.push(p.property)}if(u.push(p),u.length<a.length||!o&&u.length>a.length)return!1;for(let h=0,g=u.length-1;h<a.length;h++,g--){const b=u[g];let S;if((0,t.isIdentifier)(b))S=b.name;else if((0,t.isStringLiteral)(b))S=b.value;else if((0,t.isThisExpression)(b))S="this";else if((0,t.isSuper)(b))S="super";else if((0,t.isPrivateName)(b))S="#"+b.id.name;else return!1;if(a[h]!==S)return!1}return!0}return Cl}var zy;function Hy(){if(zy)return Al;zy=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=e;var t=Gy();function e(r,n){const s=r.split(".");return o=>(0,t.default)(o,s,n)}return Al}var Jy;function fE(){if(Jy)return xo;Jy=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var t=Hy();const e=(0,t.default)("React.Component");return xo.default=e,xo}var Nl={},Yy;function pE(){if(Yy)return Nl;Yy=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=t;function t(e){return!!e&&/^[a-z]/.test(e)}return Nl}var kl={},Dl={},Bf={},ve={},na={},Rf={},Fr={},Bl={},Rl={},Xy;function jf(){if(Xy)return Rl;Xy=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=e;var t=Oi();function e(r,n){if(r===n)return!0;if(r==null||t.ALIAS_KEYS[n])return!1;const s=t.FLIPPED_ALIAS_KEYS[n];return!!(s!=null&&s.includes(r))}return Rl}var jl={},Qy;function Zy(){if(Qy)return jl;Qy=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=e;var t=Oi();function e(r,n){if(r===n)return!0;const s=t.PLACEHOLDERS_ALIAS[r];return!!(s!=null&&s.includes(n))}return jl}var em;function _o(){if(em)return Bl;em=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=s;var t=Df(),e=jf(),r=Zy(),n=Oi();function s(o,a,u){return a?(0,e.default)(a.type,o)?u===void 0?!0:(0,t.default)(a,u):!u&&a.type==="Placeholder"&&o in n.FLIPPED_ALIAS_KEYS?(0,r.default)(a.expectedNode,o):!1:!1}return Bl}var Ml={},Da={},wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.isIdentifierChar=im,wo.isIdentifierName=mE,wo.isIdentifierStart=nm;let Mf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tm="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const dE=new RegExp("["+Mf+"]"),hE=new RegExp("["+Mf+tm+"]");Mf=tm=null;const rm=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],yE=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Lf(t,e){let r=65536;for(let n=0,s=e.length;n<s;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function nm(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&dE.test(String.fromCharCode(t)):Lf(t,rm)}function im(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&hE.test(String.fromCharCode(t)):Lf(t,rm)||Lf(t,yE)}function mE(t){let e=!0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if((n&64512)===55296&&r+1<t.length){const s=t.charCodeAt(++r);(s&64512)===56320&&(n=65536+((n&1023)<<10)+(s&1023))}if(e){if(e=!1,!nm(n))return!1}else if(!im(n))return!1}return!e}var ia={};Object.defineProperty(ia,"__esModule",{value:!0}),ia.isKeyword=TE,ia.isReservedWord=sm,ia.isStrictBindOnlyReservedWord=om,ia.isStrictBindReservedWord=SE,ia.isStrictReservedWord=am;const Ff={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},gE=new Set(Ff.keyword),bE=new Set(Ff.strict),vE=new Set(Ff.strictBind);function sm(t,e){return e&&t==="await"||t==="enum"}function am(t,e){return sm(t,e)||bE.has(t)}function om(t){return vE.has(t)}function SE(t,e){return am(t,e)||om(t)}function TE(t){return gE.has(t)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var e=wo,r=ia})(Da);var lm;function Ao(){if(lm)return Ml;lm=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=e;var t=Da;function e(r,n=!0){return typeof r!="string"||n&&((0,t.isKeyword)(r)||(0,t.isStrictReservedWord)(r,!0))?!1:(0,t.isIdentifierName)(r)}return Ml}var Ba={},cm;function EE(){if(cm)return Ba;cm=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.readCodePoint=p,Ba.readInt=u,Ba.readStringContents=n;var t=function(h){return h>=48&&h<=57};const e={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r={bin:y=>y===48||y===49,oct:y=>y>=48&&y<=55,dec:y=>y>=48&&y<=57,hex:y=>y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102};function n(y,h,g,b,S,O){const _=g,w=b,C=S;let T="",x=null,E=g;const{length:j}=h;for(;;){if(g>=j){O.unterminated(_,w,C),T+=h.slice(E,g);break}const R=h.charCodeAt(g);if(s(y,R,h,g)){T+=h.slice(E,g);break}if(R===92){T+=h.slice(E,g);const I=o(h,g,b,S,y==="template",O);I.ch===null&&!x?x={pos:g,lineStart:b,curLine:S}:T+=I.ch,{pos:g,lineStart:b,curLine:S}=I,E=g}else R===8232||R===8233?(++g,++S,b=g):R===10||R===13?y==="template"?(T+=h.slice(E,g)+`
16
+ `)}}return Ol}var Ky;function Ir(){if(Ky)return _e;Ky=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.isAccessor=iy,_e.isAnyTypeAnnotation=dn,_e.isArgumentPlaceholder=Ln,_e.isArrayExpression=r,_e.isArrayPattern=qe,_e.isArrayTypeAnnotation=Sr,_e.isArrowFunctionExpression=Le,_e.isAssignmentExpression=n,_e.isAssignmentPattern=je,_e.isAwaitExpression=ge,_e.isBigIntLiteral=yt,_e.isBinary=St,_e.isBinaryExpression=s,_e.isBindExpression=hs,_e.isBlock=Kt,_e.isBlockParent=$t,_e.isBlockStatement=p,_e.isBooleanLiteral=ne,_e.isBooleanLiteralTypeAnnotation=ui,_e.isBooleanTypeAnnotation=Rt,_e.isBreakStatement=y,_e.isCallExpression=h,_e.isCatchClause=g,_e.isClass=ty,_e.isClassAccessorProperty=Jt,_e.isClassBody=gt,_e.isClassDeclaration=xe,_e.isClassExpression=ht,_e.isClassImplements=tn,_e.isClassMethod=Mt,_e.isClassPrivateMethod=xr,_e.isClassPrivateProperty=lr,_e.isClassProperty=Vt,_e.isCompletionStatement=k,_e.isConditional=F,_e.isConditionalExpression=b,_e.isContinueStatement=S,_e.isDebuggerStatement=O,_e.isDecimalLiteral=Gi,_e.isDeclaration=Uh,_e.isDeclareClass=Rr,_e.isDeclareExportAllDeclaration=rn,_e.isDeclareExportDeclaration=dr,_e.isDeclareFunction=jr,_e.isDeclareInterface=Dn,_e.isDeclareModule=Kr,_e.isDeclareModuleExports=Hn,_e.isDeclareOpaqueType=An,_e.isDeclareTypeAlias=Nr,_e.isDeclareVariable=fi,_e.isDeclaredPredicate=nn,_e.isDecorator=Ks,_e.isDirective=a,_e.isDirectiveLiteral=u,_e.isDoExpression=En,_e.isDoWhileStatement=_,_e.isEmptyStatement=w,_e.isEmptyTypeAnnotation=ss,_e.isEnumBody=fy,_e.isEnumBooleanBody=Cr,_e.isEnumBooleanMember=Yr,_e.isEnumDeclaration=br,_e.isEnumDefaultedMember=$i,_e.isEnumMember=py,_e.isEnumNumberBody=Tn,_e.isEnumNumberMember=Fs,_e.isEnumStringBody=Mn,_e.isEnumStringMember=Mr,_e.isEnumSymbolBody=qi,_e.isExistsTypeAnnotation=hn,_e.isExportAllDeclaration=Se,_e.isExportDeclaration=ry,_e.isExportDefaultDeclaration=se,_e.isExportDefaultSpecifier=ti,_e.isExportNamedDeclaration=ee,_e.isExportNamespaceSpecifier=mt,_e.isExportSpecifier=oe,_e.isExpression=jt,_e.isExpressionStatement=C,_e.isExpressionWrapper=tt,_e.isFile=T,_e.isFlow=ay,_e.isFlowBaseAnnotation=ly,_e.isFlowDeclaration=cy,_e.isFlowPredicate=uy,_e.isFlowType=oy,_e.isFor=Nt,_e.isForInStatement=x,_e.isForOfStatement=W,_e.isForStatement=E,_e.isForXStatement=cr,_e.isFunction=kr,_e.isFunctionDeclaration=j,_e.isFunctionExpression=R,_e.isFunctionParameter=Vh,_e.isFunctionParent=Ai,_e.isFunctionTypeAnnotation=Wr,_e.isFunctionTypeParam=yn,_e.isGenericTypeAnnotation=Ri,_e.isIdentifier=I,_e.isIfStatement=D,_e.isImmutable=Hh,_e.isImport=rt,_e.isImportAttribute=pn,_e.isImportDeclaration=fe,_e.isImportDefaultSpecifier=Re,_e.isImportExpression=it,_e.isImportNamespaceSpecifier=Fe,_e.isImportOrExportDeclaration=vf,_e.isImportSpecifier=Ke,_e.isIndexedAccessType=Ui,_e.isInferredPredicate=Cn,_e.isInterfaceDeclaration=pi,_e.isInterfaceExtends=is,_e.isInterfaceTypeAnnotation=Jn,_e.isInterpreterDirective=o,_e.isIntersectionTypeAnnotation=zt,_e.isJSX=dy,_e.isJSXAttribute=Qn,_e.isJSXClosingElement=mi,_e.isJSXClosingFragment=Vi,_e.isJSXElement=fs,_e.isJSXEmptyExpression=qs,_e.isJSXExpressionContainer=Zn,_e.isJSXFragment=ds,_e.isJSXIdentifier=ps,_e.isJSXMemberExpression=gi,_e.isJSXNamespacedName=ei,_e.isJSXOpeningElement=bi,_e.isJSXOpeningFragment=vi,_e.isJSXSpreadAttribute=Us,_e.isJSXSpreadChild=$s,_e.isJSXText=Vs,_e.isLVal=Wh,_e.isLabeledStatement=Z,_e.isLiteral=zh,_e.isLogicalExpression=Ce,_e.isLoop=ie,_e.isMemberExpression=Ae,_e.isMetaProperty=_t,_e.isMethod=Yh,_e.isMiscellaneous=hy,_e.isMixedTypeAnnotation=ji,_e.isModuleDeclaration=xy,_e.isModuleExpression=zi,_e.isModuleSpecifier=ny,_e.isNewExpression=ce,_e.isNoop=Ki,_e.isNullLiteral=$,_e.isNullLiteralTypeAnnotation=Vr,_e.isNullableTypeAnnotation=mn,_e.isNumberLiteral=vy,_e.isNumberLiteralTypeAnnotation=Pr,_e.isNumberTypeAnnotation=as,_e.isNumericLiteral=N,_e.isObjectExpression=K,_e.isObjectMember=Xh,_e.isObjectMethod=Y,_e.isObjectPattern=pt,_e.isObjectProperty=he,_e.isObjectTypeAnnotation=di,_e.isObjectTypeCallProperty=ir,_e.isObjectTypeIndexer=gn,_e.isObjectTypeInternalSlot=os,_e.isObjectTypeProperty=Bn,_e.isObjectTypeSpreadProperty=Rn,_e.isOpaqueType=Mi,_e.isOptionalCallExpression=Lt,_e.isOptionalIndexedAccessType=It,_e.isOptionalMemberExpression=Bt,_e.isParenthesizedExpression=H,_e.isPattern=ey,_e.isPatternLike=Kh,_e.isPipelineBareFunction=sn,_e.isPipelinePrimaryTopicReference=Hi,_e.isPipelineTopicExpression=ri,_e.isPlaceholder=Si,_e.isPrivate=sy,_e.isPrivateName=Wt,_e.isProgram=ue,_e.isProperty=Qh,_e.isPureish=$h,_e.isQualifiedTypeIdentifier=Yn,_e.isRecordExpression=Wi,_e.isRegExpLiteral=me,_e.isRegexLiteral=Sy,_e.isRestElement=ae,_e.isRestProperty=Ty,_e.isReturnStatement=U,_e.isScopable=qt,_e.isSequenceExpression=L,_e.isSpreadElement=xt,_e.isSpreadProperty=Ey,_e.isStandardized=At,_e.isStatement=Yt,_e.isStaticBlock=tr,_e.isStringLiteral=J,_e.isStringLiteralTypeAnnotation=Xn,_e.isStringTypeAnnotation=Li,_e.isSuper=te,_e.isSwitchCase=ye,_e.isSwitchStatement=Ie,_e.isSymbolTypeAnnotation=bn,_e.isTSAnyKeyword=Be,_e.isTSArrayType=ni,_e.isTSAsExpression=Ne,_e.isTSBaseType=by,_e.isTSBigIntKeyword=ct,_e.isTSBooleanKeyword=Ue,_e.isTSCallSignatureDeclaration=d,_e.isTSConditionalType=Qi,_e.isTSConstructSignatureDeclaration=A,_e.isTSConstructorType=Yi,_e.isTSDeclareFunction=l,_e.isTSDeclareMethod=i,_e.isTSEntityName=Gh,_e.isTSEnumBody=Je,_e.isTSEnumDeclaration=Ge,_e.isTSEnumMember=He,_e.isTSExportAssignment=ft,_e.isTSExpressionWithTypeArguments=M,_e.isTSExternalModuleReference=lt,_e.isTSFunctionType=Pi,_e.isTSImportEqualsDeclaration=Qe,_e.isTSImportType=Ye,_e.isTSIndexSignature=Pe,_e.isTSIndexedAccessType=on,_e.isTSInferType=Pn,_e.isTSInstantiationExpression=Te,_e.isTSInterfaceBody=re,_e.isTSInterfaceDeclaration=V,_e.isTSIntersectionType=_i,_e.isTSIntrinsicKeyword=vt,_e.isTSLiteralType=P,_e.isTSMappedType=Zi,_e.isTSMethodSignature=le,_e.isTSModuleBlock=Xe,_e.isTSModuleDeclaration=nt,_e.isTSNamedTupleMember=In,_e.isTSNamespaceExportDeclaration=bt,_e.isTSNeverKeyword=wt,_e.isTSNonNullExpression=ot,_e.isTSNullKeyword=Ot,_e.isTSNumberKeyword=Gt,_e.isTSObjectKeyword=or,_e.isTSOptionalType=hr,_e.isTSParameterProperty=z,_e.isTSParenthesizedType=wi,_e.isTSPropertySignature=Q,_e.isTSQualifiedName=c,_e.isTSRestType=ii,_e.isTSSatisfiesExpression=We,_e.isTSStringKeyword=Ft,_e.isTSSymbolKeyword=sr,_e.isTSTemplateLiteralType=v,_e.isTSThisType=Ji,_e.isTSTupleType=Xr,_e.isTSType=gy,_e.isTSTypeAliasDeclaration=pe,_e.isTSTypeAnnotation=Et,_e.isTSTypeAssertion=at,_e.isTSTypeElement=my,_e.isTSTypeLiteral=bs,_e.isTSTypeOperator=On,_e.isTSTypeParameter=Dt,_e.isTSTypeParameterDeclaration=Pt,_e.isTSTypeParameterInstantiation=Ct,_e.isTSTypePredicate=ms,_e.isTSTypeQuery=gs,_e.isTSTypeReference=Xi,_e.isTSUndefinedKeyword=xn,_e.isTSUnionType=vs,_e.isTSUnknownKeyword=an,_e.isTSVoidKeyword=ys,_e.isTaggedTemplateExpression=de,_e.isTemplateElement=G,_e.isTemplateLiteral=be,_e.isTerminatorless=B,_e.isThisExpression=Ee,_e.isThisTypeAnnotation=ls,_e.isThrowStatement=De,_e.isTopicReference=Tr,_e.isTryStatement=Me,_e.isTupleExpression=Ei,_e.isTupleTypeAnnotation=vn,_e.isTypeAlias=cs,_e.isTypeAnnotation=Ls,_e.isTypeCastExpression=hi,_e.isTypeParameter=Ar,_e.isTypeParameterDeclaration=jn,_e.isTypeParameterInstantiation=yi,_e.isTypeScript=yy,_e.isTypeofTypeAnnotation=Qt,_e.isUnaryExpression=Ve,_e.isUnaryLike=Zh,_e.isUnionTypeAnnotation=Sn,_e.isUpdateExpression=Ze,_e.isUserWhitespacable=Jh,_e.isV8IntrinsicIdentifier=Ti,_e.isVariableDeclaration=ut,_e.isVariableDeclarator=st,_e.isVariance=us,_e.isVoidPattern=xi,_e.isVoidTypeAnnotation=Fi,_e.isWhile=ke,_e.isWhileStatement=dt,_e.isWithStatement=$e,_e.isYieldExpression=et;var t=Df(),e=Po();function r(m,f){return!m||m.type!=="ArrayExpression"?!1:f==null||(0,t.default)(m,f)}function n(m,f){return!m||m.type!=="AssignmentExpression"?!1:f==null||(0,t.default)(m,f)}function s(m,f){return!m||m.type!=="BinaryExpression"?!1:f==null||(0,t.default)(m,f)}function o(m,f){return!m||m.type!=="InterpreterDirective"?!1:f==null||(0,t.default)(m,f)}function a(m,f){return!m||m.type!=="Directive"?!1:f==null||(0,t.default)(m,f)}function u(m,f){return!m||m.type!=="DirectiveLiteral"?!1:f==null||(0,t.default)(m,f)}function p(m,f){return!m||m.type!=="BlockStatement"?!1:f==null||(0,t.default)(m,f)}function y(m,f){return!m||m.type!=="BreakStatement"?!1:f==null||(0,t.default)(m,f)}function h(m,f){return!m||m.type!=="CallExpression"?!1:f==null||(0,t.default)(m,f)}function g(m,f){return!m||m.type!=="CatchClause"?!1:f==null||(0,t.default)(m,f)}function b(m,f){return!m||m.type!=="ConditionalExpression"?!1:f==null||(0,t.default)(m,f)}function S(m,f){return!m||m.type!=="ContinueStatement"?!1:f==null||(0,t.default)(m,f)}function O(m,f){return!m||m.type!=="DebuggerStatement"?!1:f==null||(0,t.default)(m,f)}function _(m,f){return!m||m.type!=="DoWhileStatement"?!1:f==null||(0,t.default)(m,f)}function w(m,f){return!m||m.type!=="EmptyStatement"?!1:f==null||(0,t.default)(m,f)}function C(m,f){return!m||m.type!=="ExpressionStatement"?!1:f==null||(0,t.default)(m,f)}function T(m,f){return!m||m.type!=="File"?!1:f==null||(0,t.default)(m,f)}function x(m,f){return!m||m.type!=="ForInStatement"?!1:f==null||(0,t.default)(m,f)}function E(m,f){return!m||m.type!=="ForStatement"?!1:f==null||(0,t.default)(m,f)}function j(m,f){return!m||m.type!=="FunctionDeclaration"?!1:f==null||(0,t.default)(m,f)}function R(m,f){return!m||m.type!=="FunctionExpression"?!1:f==null||(0,t.default)(m,f)}function I(m,f){return!m||m.type!=="Identifier"?!1:f==null||(0,t.default)(m,f)}function D(m,f){return!m||m.type!=="IfStatement"?!1:f==null||(0,t.default)(m,f)}function Z(m,f){return!m||m.type!=="LabeledStatement"?!1:f==null||(0,t.default)(m,f)}function J(m,f){return!m||m.type!=="StringLiteral"?!1:f==null||(0,t.default)(m,f)}function N(m,f){return!m||m.type!=="NumericLiteral"?!1:f==null||(0,t.default)(m,f)}function $(m,f){return!m||m.type!=="NullLiteral"?!1:f==null||(0,t.default)(m,f)}function ne(m,f){return!m||m.type!=="BooleanLiteral"?!1:f==null||(0,t.default)(m,f)}function me(m,f){return!m||m.type!=="RegExpLiteral"?!1:f==null||(0,t.default)(m,f)}function Ce(m,f){return!m||m.type!=="LogicalExpression"?!1:f==null||(0,t.default)(m,f)}function Ae(m,f){return!m||m.type!=="MemberExpression"?!1:f==null||(0,t.default)(m,f)}function ce(m,f){return!m||m.type!=="NewExpression"?!1:f==null||(0,t.default)(m,f)}function ue(m,f){return!m||m.type!=="Program"?!1:f==null||(0,t.default)(m,f)}function K(m,f){return!m||m.type!=="ObjectExpression"?!1:f==null||(0,t.default)(m,f)}function Y(m,f){return!m||m.type!=="ObjectMethod"?!1:f==null||(0,t.default)(m,f)}function he(m,f){return!m||m.type!=="ObjectProperty"?!1:f==null||(0,t.default)(m,f)}function ae(m,f){return!m||m.type!=="RestElement"?!1:f==null||(0,t.default)(m,f)}function U(m,f){return!m||m.type!=="ReturnStatement"?!1:f==null||(0,t.default)(m,f)}function L(m,f){return!m||m.type!=="SequenceExpression"?!1:f==null||(0,t.default)(m,f)}function H(m,f){return!m||m.type!=="ParenthesizedExpression"?!1:f==null||(0,t.default)(m,f)}function ye(m,f){return!m||m.type!=="SwitchCase"?!1:f==null||(0,t.default)(m,f)}function Ie(m,f){return!m||m.type!=="SwitchStatement"?!1:f==null||(0,t.default)(m,f)}function Ee(m,f){return!m||m.type!=="ThisExpression"?!1:f==null||(0,t.default)(m,f)}function De(m,f){return!m||m.type!=="ThrowStatement"?!1:f==null||(0,t.default)(m,f)}function Me(m,f){return!m||m.type!=="TryStatement"?!1:f==null||(0,t.default)(m,f)}function Ve(m,f){return!m||m.type!=="UnaryExpression"?!1:f==null||(0,t.default)(m,f)}function Ze(m,f){return!m||m.type!=="UpdateExpression"?!1:f==null||(0,t.default)(m,f)}function ut(m,f){return!m||m.type!=="VariableDeclaration"?!1:f==null||(0,t.default)(m,f)}function st(m,f){return!m||m.type!=="VariableDeclarator"?!1:f==null||(0,t.default)(m,f)}function dt(m,f){return!m||m.type!=="WhileStatement"?!1:f==null||(0,t.default)(m,f)}function $e(m,f){return!m||m.type!=="WithStatement"?!1:f==null||(0,t.default)(m,f)}function je(m,f){return!m||m.type!=="AssignmentPattern"?!1:f==null||(0,t.default)(m,f)}function qe(m,f){return!m||m.type!=="ArrayPattern"?!1:f==null||(0,t.default)(m,f)}function Le(m,f){return!m||m.type!=="ArrowFunctionExpression"?!1:f==null||(0,t.default)(m,f)}function gt(m,f){return!m||m.type!=="ClassBody"?!1:f==null||(0,t.default)(m,f)}function ht(m,f){return!m||m.type!=="ClassExpression"?!1:f==null||(0,t.default)(m,f)}function xe(m,f){return!m||m.type!=="ClassDeclaration"?!1:f==null||(0,t.default)(m,f)}function Se(m,f){return!m||m.type!=="ExportAllDeclaration"?!1:f==null||(0,t.default)(m,f)}function se(m,f){return!m||m.type!=="ExportDefaultDeclaration"?!1:f==null||(0,t.default)(m,f)}function ee(m,f){return!m||m.type!=="ExportNamedDeclaration"?!1:f==null||(0,t.default)(m,f)}function oe(m,f){return!m||m.type!=="ExportSpecifier"?!1:f==null||(0,t.default)(m,f)}function W(m,f){return!m||m.type!=="ForOfStatement"?!1:f==null||(0,t.default)(m,f)}function fe(m,f){return!m||m.type!=="ImportDeclaration"?!1:f==null||(0,t.default)(m,f)}function Re(m,f){return!m||m.type!=="ImportDefaultSpecifier"?!1:f==null||(0,t.default)(m,f)}function Fe(m,f){return!m||m.type!=="ImportNamespaceSpecifier"?!1:f==null||(0,t.default)(m,f)}function Ke(m,f){return!m||m.type!=="ImportSpecifier"?!1:f==null||(0,t.default)(m,f)}function it(m,f){return!m||m.type!=="ImportExpression"?!1:f==null||(0,t.default)(m,f)}function _t(m,f){return!m||m.type!=="MetaProperty"?!1:f==null||(0,t.default)(m,f)}function Mt(m,f){return!m||m.type!=="ClassMethod"?!1:f==null||(0,t.default)(m,f)}function pt(m,f){return!m||m.type!=="ObjectPattern"?!1:f==null||(0,t.default)(m,f)}function xt(m,f){return!m||m.type!=="SpreadElement"?!1:f==null||(0,t.default)(m,f)}function te(m,f){return!m||m.type!=="Super"?!1:f==null||(0,t.default)(m,f)}function de(m,f){return!m||m.type!=="TaggedTemplateExpression"?!1:f==null||(0,t.default)(m,f)}function G(m,f){return!m||m.type!=="TemplateElement"?!1:f==null||(0,t.default)(m,f)}function be(m,f){return!m||m.type!=="TemplateLiteral"?!1:f==null||(0,t.default)(m,f)}function et(m,f){return!m||m.type!=="YieldExpression"?!1:f==null||(0,t.default)(m,f)}function ge(m,f){return!m||m.type!=="AwaitExpression"?!1:f==null||(0,t.default)(m,f)}function rt(m,f){return!m||m.type!=="Import"?!1:f==null||(0,t.default)(m,f)}function yt(m,f){return!m||m.type!=="BigIntLiteral"?!1:f==null||(0,t.default)(m,f)}function mt(m,f){return!m||m.type!=="ExportNamespaceSpecifier"?!1:f==null||(0,t.default)(m,f)}function Bt(m,f){return!m||m.type!=="OptionalMemberExpression"?!1:f==null||(0,t.default)(m,f)}function Lt(m,f){return!m||m.type!=="OptionalCallExpression"?!1:f==null||(0,t.default)(m,f)}function Vt(m,f){return!m||m.type!=="ClassProperty"?!1:f==null||(0,t.default)(m,f)}function Jt(m,f){return!m||m.type!=="ClassAccessorProperty"?!1:f==null||(0,t.default)(m,f)}function lr(m,f){return!m||m.type!=="ClassPrivateProperty"?!1:f==null||(0,t.default)(m,f)}function xr(m,f){return!m||m.type!=="ClassPrivateMethod"?!1:f==null||(0,t.default)(m,f)}function Wt(m,f){return!m||m.type!=="PrivateName"?!1:f==null||(0,t.default)(m,f)}function tr(m,f){return!m||m.type!=="StaticBlock"?!1:f==null||(0,t.default)(m,f)}function pn(m,f){return!m||m.type!=="ImportAttribute"?!1:f==null||(0,t.default)(m,f)}function dn(m,f){return!m||m.type!=="AnyTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Sr(m,f){return!m||m.type!=="ArrayTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Rt(m,f){return!m||m.type!=="BooleanTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ui(m,f){return!m||m.type!=="BooleanLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Vr(m,f){return!m||m.type!=="NullLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function tn(m,f){return!m||m.type!=="ClassImplements"?!1:f==null||(0,t.default)(m,f)}function Rr(m,f){return!m||m.type!=="DeclareClass"?!1:f==null||(0,t.default)(m,f)}function jr(m,f){return!m||m.type!=="DeclareFunction"?!1:f==null||(0,t.default)(m,f)}function Dn(m,f){return!m||m.type!=="DeclareInterface"?!1:f==null||(0,t.default)(m,f)}function Kr(m,f){return!m||m.type!=="DeclareModule"?!1:f==null||(0,t.default)(m,f)}function Hn(m,f){return!m||m.type!=="DeclareModuleExports"?!1:f==null||(0,t.default)(m,f)}function Nr(m,f){return!m||m.type!=="DeclareTypeAlias"?!1:f==null||(0,t.default)(m,f)}function An(m,f){return!m||m.type!=="DeclareOpaqueType"?!1:f==null||(0,t.default)(m,f)}function fi(m,f){return!m||m.type!=="DeclareVariable"?!1:f==null||(0,t.default)(m,f)}function dr(m,f){return!m||m.type!=="DeclareExportDeclaration"?!1:f==null||(0,t.default)(m,f)}function rn(m,f){return!m||m.type!=="DeclareExportAllDeclaration"?!1:f==null||(0,t.default)(m,f)}function nn(m,f){return!m||m.type!=="DeclaredPredicate"?!1:f==null||(0,t.default)(m,f)}function hn(m,f){return!m||m.type!=="ExistsTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Wr(m,f){return!m||m.type!=="FunctionTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function yn(m,f){return!m||m.type!=="FunctionTypeParam"?!1:f==null||(0,t.default)(m,f)}function Ri(m,f){return!m||m.type!=="GenericTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Cn(m,f){return!m||m.type!=="InferredPredicate"?!1:f==null||(0,t.default)(m,f)}function is(m,f){return!m||m.type!=="InterfaceExtends"?!1:f==null||(0,t.default)(m,f)}function pi(m,f){return!m||m.type!=="InterfaceDeclaration"?!1:f==null||(0,t.default)(m,f)}function Jn(m,f){return!m||m.type!=="InterfaceTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function zt(m,f){return!m||m.type!=="IntersectionTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ji(m,f){return!m||m.type!=="MixedTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ss(m,f){return!m||m.type!=="EmptyTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function mn(m,f){return!m||m.type!=="NullableTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Pr(m,f){return!m||m.type!=="NumberLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function as(m,f){return!m||m.type!=="NumberTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function di(m,f){return!m||m.type!=="ObjectTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function os(m,f){return!m||m.type!=="ObjectTypeInternalSlot"?!1:f==null||(0,t.default)(m,f)}function ir(m,f){return!m||m.type!=="ObjectTypeCallProperty"?!1:f==null||(0,t.default)(m,f)}function gn(m,f){return!m||m.type!=="ObjectTypeIndexer"?!1:f==null||(0,t.default)(m,f)}function Bn(m,f){return!m||m.type!=="ObjectTypeProperty"?!1:f==null||(0,t.default)(m,f)}function Rn(m,f){return!m||m.type!=="ObjectTypeSpreadProperty"?!1:f==null||(0,t.default)(m,f)}function Mi(m,f){return!m||m.type!=="OpaqueType"?!1:f==null||(0,t.default)(m,f)}function Yn(m,f){return!m||m.type!=="QualifiedTypeIdentifier"?!1:f==null||(0,t.default)(m,f)}function Xn(m,f){return!m||m.type!=="StringLiteralTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Li(m,f){return!m||m.type!=="StringTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function bn(m,f){return!m||m.type!=="SymbolTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function ls(m,f){return!m||m.type!=="ThisTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function vn(m,f){return!m||m.type!=="TupleTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Qt(m,f){return!m||m.type!=="TypeofTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function cs(m,f){return!m||m.type!=="TypeAlias"?!1:f==null||(0,t.default)(m,f)}function Ls(m,f){return!m||m.type!=="TypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function hi(m,f){return!m||m.type!=="TypeCastExpression"?!1:f==null||(0,t.default)(m,f)}function Ar(m,f){return!m||m.type!=="TypeParameter"?!1:f==null||(0,t.default)(m,f)}function jn(m,f){return!m||m.type!=="TypeParameterDeclaration"?!1:f==null||(0,t.default)(m,f)}function yi(m,f){return!m||m.type!=="TypeParameterInstantiation"?!1:f==null||(0,t.default)(m,f)}function Sn(m,f){return!m||m.type!=="UnionTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function us(m,f){return!m||m.type!=="Variance"?!1:f==null||(0,t.default)(m,f)}function Fi(m,f){return!m||m.type!=="VoidTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function br(m,f){return!m||m.type!=="EnumDeclaration"?!1:f==null||(0,t.default)(m,f)}function Cr(m,f){return!m||m.type!=="EnumBooleanBody"?!1:f==null||(0,t.default)(m,f)}function Tn(m,f){return!m||m.type!=="EnumNumberBody"?!1:f==null||(0,t.default)(m,f)}function Mn(m,f){return!m||m.type!=="EnumStringBody"?!1:f==null||(0,t.default)(m,f)}function qi(m,f){return!m||m.type!=="EnumSymbolBody"?!1:f==null||(0,t.default)(m,f)}function Yr(m,f){return!m||m.type!=="EnumBooleanMember"?!1:f==null||(0,t.default)(m,f)}function Fs(m,f){return!m||m.type!=="EnumNumberMember"?!1:f==null||(0,t.default)(m,f)}function Mr(m,f){return!m||m.type!=="EnumStringMember"?!1:f==null||(0,t.default)(m,f)}function $i(m,f){return!m||m.type!=="EnumDefaultedMember"?!1:f==null||(0,t.default)(m,f)}function Ui(m,f){return!m||m.type!=="IndexedAccessType"?!1:f==null||(0,t.default)(m,f)}function It(m,f){return!m||m.type!=="OptionalIndexedAccessType"?!1:f==null||(0,t.default)(m,f)}function Qn(m,f){return!m||m.type!=="JSXAttribute"?!1:f==null||(0,t.default)(m,f)}function mi(m,f){return!m||m.type!=="JSXClosingElement"?!1:f==null||(0,t.default)(m,f)}function fs(m,f){return!m||m.type!=="JSXElement"?!1:f==null||(0,t.default)(m,f)}function qs(m,f){return!m||m.type!=="JSXEmptyExpression"?!1:f==null||(0,t.default)(m,f)}function Zn(m,f){return!m||m.type!=="JSXExpressionContainer"?!1:f==null||(0,t.default)(m,f)}function $s(m,f){return!m||m.type!=="JSXSpreadChild"?!1:f==null||(0,t.default)(m,f)}function ps(m,f){return!m||m.type!=="JSXIdentifier"?!1:f==null||(0,t.default)(m,f)}function gi(m,f){return!m||m.type!=="JSXMemberExpression"?!1:f==null||(0,t.default)(m,f)}function ei(m,f){return!m||m.type!=="JSXNamespacedName"?!1:f==null||(0,t.default)(m,f)}function bi(m,f){return!m||m.type!=="JSXOpeningElement"?!1:f==null||(0,t.default)(m,f)}function Us(m,f){return!m||m.type!=="JSXSpreadAttribute"?!1:f==null||(0,t.default)(m,f)}function Vs(m,f){return!m||m.type!=="JSXText"?!1:f==null||(0,t.default)(m,f)}function ds(m,f){return!m||m.type!=="JSXFragment"?!1:f==null||(0,t.default)(m,f)}function vi(m,f){return!m||m.type!=="JSXOpeningFragment"?!1:f==null||(0,t.default)(m,f)}function Vi(m,f){return!m||m.type!=="JSXClosingFragment"?!1:f==null||(0,t.default)(m,f)}function Ki(m,f){return!m||m.type!=="Noop"?!1:f==null||(0,t.default)(m,f)}function Si(m,f){return!m||m.type!=="Placeholder"?!1:f==null||(0,t.default)(m,f)}function Ti(m,f){return!m||m.type!=="V8IntrinsicIdentifier"?!1:f==null||(0,t.default)(m,f)}function Ln(m,f){return!m||m.type!=="ArgumentPlaceholder"?!1:f==null||(0,t.default)(m,f)}function hs(m,f){return!m||m.type!=="BindExpression"?!1:f==null||(0,t.default)(m,f)}function Ks(m,f){return!m||m.type!=="Decorator"?!1:f==null||(0,t.default)(m,f)}function En(m,f){return!m||m.type!=="DoExpression"?!1:f==null||(0,t.default)(m,f)}function ti(m,f){return!m||m.type!=="ExportDefaultSpecifier"?!1:f==null||(0,t.default)(m,f)}function Wi(m,f){return!m||m.type!=="RecordExpression"?!1:f==null||(0,t.default)(m,f)}function Ei(m,f){return!m||m.type!=="TupleExpression"?!1:f==null||(0,t.default)(m,f)}function Gi(m,f){return!m||m.type!=="DecimalLiteral"?!1:f==null||(0,t.default)(m,f)}function zi(m,f){return!m||m.type!=="ModuleExpression"?!1:f==null||(0,t.default)(m,f)}function Tr(m,f){return!m||m.type!=="TopicReference"?!1:f==null||(0,t.default)(m,f)}function ri(m,f){return!m||m.type!=="PipelineTopicExpression"?!1:f==null||(0,t.default)(m,f)}function sn(m,f){return!m||m.type!=="PipelineBareFunction"?!1:f==null||(0,t.default)(m,f)}function Hi(m,f){return!m||m.type!=="PipelinePrimaryTopicReference"?!1:f==null||(0,t.default)(m,f)}function xi(m,f){return!m||m.type!=="VoidPattern"?!1:f==null||(0,t.default)(m,f)}function z(m,f){return!m||m.type!=="TSParameterProperty"?!1:f==null||(0,t.default)(m,f)}function l(m,f){return!m||m.type!=="TSDeclareFunction"?!1:f==null||(0,t.default)(m,f)}function i(m,f){return!m||m.type!=="TSDeclareMethod"?!1:f==null||(0,t.default)(m,f)}function c(m,f){return!m||m.type!=="TSQualifiedName"?!1:f==null||(0,t.default)(m,f)}function d(m,f){return!m||m.type!=="TSCallSignatureDeclaration"?!1:f==null||(0,t.default)(m,f)}function A(m,f){return!m||m.type!=="TSConstructSignatureDeclaration"?!1:f==null||(0,t.default)(m,f)}function Q(m,f){return!m||m.type!=="TSPropertySignature"?!1:f==null||(0,t.default)(m,f)}function le(m,f){return!m||m.type!=="TSMethodSignature"?!1:f==null||(0,t.default)(m,f)}function Pe(m,f){return!m||m.type!=="TSIndexSignature"?!1:f==null||(0,t.default)(m,f)}function Be(m,f){return!m||m.type!=="TSAnyKeyword"?!1:f==null||(0,t.default)(m,f)}function Ue(m,f){return!m||m.type!=="TSBooleanKeyword"?!1:f==null||(0,t.default)(m,f)}function ct(m,f){return!m||m.type!=="TSBigIntKeyword"?!1:f==null||(0,t.default)(m,f)}function vt(m,f){return!m||m.type!=="TSIntrinsicKeyword"?!1:f==null||(0,t.default)(m,f)}function wt(m,f){return!m||m.type!=="TSNeverKeyword"?!1:f==null||(0,t.default)(m,f)}function Ot(m,f){return!m||m.type!=="TSNullKeyword"?!1:f==null||(0,t.default)(m,f)}function Gt(m,f){return!m||m.type!=="TSNumberKeyword"?!1:f==null||(0,t.default)(m,f)}function or(m,f){return!m||m.type!=="TSObjectKeyword"?!1:f==null||(0,t.default)(m,f)}function Ft(m,f){return!m||m.type!=="TSStringKeyword"?!1:f==null||(0,t.default)(m,f)}function sr(m,f){return!m||m.type!=="TSSymbolKeyword"?!1:f==null||(0,t.default)(m,f)}function xn(m,f){return!m||m.type!=="TSUndefinedKeyword"?!1:f==null||(0,t.default)(m,f)}function an(m,f){return!m||m.type!=="TSUnknownKeyword"?!1:f==null||(0,t.default)(m,f)}function ys(m,f){return!m||m.type!=="TSVoidKeyword"?!1:f==null||(0,t.default)(m,f)}function Ji(m,f){return!m||m.type!=="TSThisType"?!1:f==null||(0,t.default)(m,f)}function Pi(m,f){return!m||m.type!=="TSFunctionType"?!1:f==null||(0,t.default)(m,f)}function Yi(m,f){return!m||m.type!=="TSConstructorType"?!1:f==null||(0,t.default)(m,f)}function Xi(m,f){return!m||m.type!=="TSTypeReference"?!1:f==null||(0,t.default)(m,f)}function ms(m,f){return!m||m.type!=="TSTypePredicate"?!1:f==null||(0,t.default)(m,f)}function gs(m,f){return!m||m.type!=="TSTypeQuery"?!1:f==null||(0,t.default)(m,f)}function bs(m,f){return!m||m.type!=="TSTypeLiteral"?!1:f==null||(0,t.default)(m,f)}function ni(m,f){return!m||m.type!=="TSArrayType"?!1:f==null||(0,t.default)(m,f)}function Xr(m,f){return!m||m.type!=="TSTupleType"?!1:f==null||(0,t.default)(m,f)}function hr(m,f){return!m||m.type!=="TSOptionalType"?!1:f==null||(0,t.default)(m,f)}function ii(m,f){return!m||m.type!=="TSRestType"?!1:f==null||(0,t.default)(m,f)}function In(m,f){return!m||m.type!=="TSNamedTupleMember"?!1:f==null||(0,t.default)(m,f)}function vs(m,f){return!m||m.type!=="TSUnionType"?!1:f==null||(0,t.default)(m,f)}function _i(m,f){return!m||m.type!=="TSIntersectionType"?!1:f==null||(0,t.default)(m,f)}function Qi(m,f){return!m||m.type!=="TSConditionalType"?!1:f==null||(0,t.default)(m,f)}function Pn(m,f){return!m||m.type!=="TSInferType"?!1:f==null||(0,t.default)(m,f)}function wi(m,f){return!m||m.type!=="TSParenthesizedType"?!1:f==null||(0,t.default)(m,f)}function On(m,f){return!m||m.type!=="TSTypeOperator"?!1:f==null||(0,t.default)(m,f)}function on(m,f){return!m||m.type!=="TSIndexedAccessType"?!1:f==null||(0,t.default)(m,f)}function Zi(m,f){return!m||m.type!=="TSMappedType"?!1:f==null||(0,t.default)(m,f)}function v(m,f){return!m||m.type!=="TSTemplateLiteralType"?!1:f==null||(0,t.default)(m,f)}function P(m,f){return!m||m.type!=="TSLiteralType"?!1:f==null||(0,t.default)(m,f)}function M(m,f){return!m||m.type!=="TSExpressionWithTypeArguments"?!1:f==null||(0,t.default)(m,f)}function V(m,f){return!m||m.type!=="TSInterfaceDeclaration"?!1:f==null||(0,t.default)(m,f)}function re(m,f){return!m||m.type!=="TSInterfaceBody"?!1:f==null||(0,t.default)(m,f)}function pe(m,f){return!m||m.type!=="TSTypeAliasDeclaration"?!1:f==null||(0,t.default)(m,f)}function Te(m,f){return!m||m.type!=="TSInstantiationExpression"?!1:f==null||(0,t.default)(m,f)}function Ne(m,f){return!m||m.type!=="TSAsExpression"?!1:f==null||(0,t.default)(m,f)}function We(m,f){return!m||m.type!=="TSSatisfiesExpression"?!1:f==null||(0,t.default)(m,f)}function at(m,f){return!m||m.type!=="TSTypeAssertion"?!1:f==null||(0,t.default)(m,f)}function Je(m,f){return!m||m.type!=="TSEnumBody"?!1:f==null||(0,t.default)(m,f)}function Ge(m,f){return!m||m.type!=="TSEnumDeclaration"?!1:f==null||(0,t.default)(m,f)}function He(m,f){return!m||m.type!=="TSEnumMember"?!1:f==null||(0,t.default)(m,f)}function nt(m,f){return!m||m.type!=="TSModuleDeclaration"?!1:f==null||(0,t.default)(m,f)}function Xe(m,f){return!m||m.type!=="TSModuleBlock"?!1:f==null||(0,t.default)(m,f)}function Ye(m,f){return!m||m.type!=="TSImportType"?!1:f==null||(0,t.default)(m,f)}function Qe(m,f){return!m||m.type!=="TSImportEqualsDeclaration"?!1:f==null||(0,t.default)(m,f)}function lt(m,f){return!m||m.type!=="TSExternalModuleReference"?!1:f==null||(0,t.default)(m,f)}function ot(m,f){return!m||m.type!=="TSNonNullExpression"?!1:f==null||(0,t.default)(m,f)}function ft(m,f){return!m||m.type!=="TSExportAssignment"?!1:f==null||(0,t.default)(m,f)}function bt(m,f){return!m||m.type!=="TSNamespaceExportDeclaration"?!1:f==null||(0,t.default)(m,f)}function Et(m,f){return!m||m.type!=="TSTypeAnnotation"?!1:f==null||(0,t.default)(m,f)}function Ct(m,f){return!m||m.type!=="TSTypeParameterInstantiation"?!1:f==null||(0,t.default)(m,f)}function Pt(m,f){return!m||m.type!=="TSTypeParameterDeclaration"?!1:f==null||(0,t.default)(m,f)}function Dt(m,f){return!m||m.type!=="TSTypeParameter"?!1:f==null||(0,t.default)(m,f)}function At(m,f){if(!m)return!1;switch(m.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(m.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function jt(m,f){if(!m)return!1;switch(m.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(m.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function St(m,f){if(!m)return!1;switch(m.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return f==null||(0,t.default)(m,f)}function qt(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(m.expectedNode==="BlockStatement")break;default:return!1}return f==null||(0,t.default)(m,f)}function $t(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(m.expectedNode==="BlockStatement")break;default:return!1}return f==null||(0,t.default)(m,f)}function Kt(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(m.expectedNode==="BlockStatement")break;default:return!1}return f==null||(0,t.default)(m,f)}function Yt(m,f){if(!m)return!1;switch(m.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(m.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function B(m,f){if(!m)return!1;switch(m.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return f==null||(0,t.default)(m,f)}function k(m,f){if(!m)return!1;switch(m.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function F(m,f){if(!m)return!1;switch(m.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function ie(m,f){if(!m)return!1;switch(m.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function ke(m,f){if(!m)return!1;switch(m.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function tt(m,f){if(!m)return!1;switch(m.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return f==null||(0,t.default)(m,f)}function Nt(m,f){if(!m)return!1;switch(m.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function cr(m,f){if(!m)return!1;switch(m.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return f==null||(0,t.default)(m,f)}function kr(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return f==null||(0,t.default)(m,f)}function Ai(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return f==null||(0,t.default)(m,f)}function $h(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(m.expectedNode==="StringLiteral")break;default:return!1}return f==null||(0,t.default)(m,f)}function Uh(m,f){if(!m)return!1;switch(m.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(m.expectedNode==="Declaration")break;default:return!1}return f==null||(0,t.default)(m,f)}function Vh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(m.expectedNode==="Identifier")break;default:return!1}return f==null||(0,t.default)(m,f)}function Kh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(m.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function Wh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(m.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return f==null||(0,t.default)(m,f)}function Gh(m,f){if(!m)return!1;switch(m.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(m.expectedNode==="Identifier")break;default:return!1}return f==null||(0,t.default)(m,f)}function zh(m,f){if(!m)return!1;switch(m.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(m.expectedNode==="StringLiteral")break;default:return!1}return f==null||(0,t.default)(m,f)}function Hh(m,f){if(!m)return!1;switch(m.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(m.expectedNode==="StringLiteral")break;default:return!1}return f==null||(0,t.default)(m,f)}function Jh(m,f){if(!m)return!1;switch(m.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function Yh(m,f){if(!m)return!1;switch(m.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return f==null||(0,t.default)(m,f)}function Xh(m,f){if(!m)return!1;switch(m.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function Qh(m,f){if(!m)return!1;switch(m.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function Zh(m,f){if(!m)return!1;switch(m.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return f==null||(0,t.default)(m,f)}function ey(m,f){if(!m)return!1;switch(m.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(m.expectedNode==="Pattern")break;default:return!1}return f==null||(0,t.default)(m,f)}function ty(m,f){if(!m)return!1;switch(m.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return f==null||(0,t.default)(m,f)}function vf(m,f){if(!m)return!1;switch(m.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return f==null||(0,t.default)(m,f)}function ry(m,f){if(!m)return!1;switch(m.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return f==null||(0,t.default)(m,f)}function ny(m,f){if(!m)return!1;switch(m.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return f==null||(0,t.default)(m,f)}function iy(m,f){if(!m)return!1;switch(m.type){case"ClassAccessorProperty":break;default:return!1}return f==null||(0,t.default)(m,f)}function sy(m,f){if(!m)return!1;switch(m.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return f==null||(0,t.default)(m,f)}function ay(m,f){if(!m)return!1;switch(m.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return f==null||(0,t.default)(m,f)}function oy(m,f){if(!m)return!1;switch(m.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return f==null||(0,t.default)(m,f)}function ly(m,f){if(!m)return!1;switch(m.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return f==null||(0,t.default)(m,f)}function cy(m,f){if(!m)return!1;switch(m.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return f==null||(0,t.default)(m,f)}function uy(m,f){if(!m)return!1;switch(m.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return f==null||(0,t.default)(m,f)}function fy(m,f){if(!m)return!1;switch(m.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return f==null||(0,t.default)(m,f)}function py(m,f){if(!m)return!1;switch(m.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return f==null||(0,t.default)(m,f)}function dy(m,f){if(!m)return!1;switch(m.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return f==null||(0,t.default)(m,f)}function hy(m,f){if(!m)return!1;switch(m.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return f==null||(0,t.default)(m,f)}function yy(m,f){if(!m)return!1;switch(m.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return f==null||(0,t.default)(m,f)}function my(m,f){if(!m)return!1;switch(m.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return f==null||(0,t.default)(m,f)}function gy(m,f){if(!m)return!1;switch(m.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return f==null||(0,t.default)(m,f)}function by(m,f){if(!m)return!1;switch(m.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return f==null||(0,t.default)(m,f)}function vy(m,f){return(0,e.default)("isNumberLiteral","isNumericLiteral"),!m||m.type!=="NumberLiteral"?!1:f==null||(0,t.default)(m,f)}function Sy(m,f){return(0,e.default)("isRegexLiteral","isRegExpLiteral"),!m||m.type!=="RegexLiteral"?!1:f==null||(0,t.default)(m,f)}function Ty(m,f){return(0,e.default)("isRestProperty","isRestElement"),!m||m.type!=="RestProperty"?!1:f==null||(0,t.default)(m,f)}function Ey(m,f){return(0,e.default)("isSpreadProperty","isSpreadElement"),!m||m.type!=="SpreadProperty"?!1:f==null||(0,t.default)(m,f)}function xy(m,f){return(0,e.default)("isModuleDeclaration","isImportOrExportDeclaration"),vf(m,f)}return _e}var Wy;function Gy(){if(Wy)return Cl;Wy=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=r;var t=Ir();function e(n){return(0,t.isMemberExpression)(n)||(0,t.isMetaProperty)(n)}function r(n,s,o){if(!e(n))return!1;const a=Array.isArray(s)?s:s.split("."),u=[];let p;for(p=n;e(p);p=(y=p.object)!=null?y:p.meta){var y;u.push(p.property)}if(u.push(p),u.length<a.length||!o&&u.length>a.length)return!1;for(let h=0,g=u.length-1;h<a.length;h++,g--){const b=u[g];let S;if((0,t.isIdentifier)(b))S=b.name;else if((0,t.isStringLiteral)(b))S=b.value;else if((0,t.isThisExpression)(b))S="this";else if((0,t.isSuper)(b))S="super";else if((0,t.isPrivateName)(b))S="#"+b.id.name;else return!1;if(a[h]!==S)return!1}return!0}return Cl}var zy;function Hy(){if(zy)return Al;zy=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=e;var t=Gy();function e(r,n){const s=r.split(".");return o=>(0,t.default)(o,s,n)}return Al}var Jy;function fE(){if(Jy)return xo;Jy=1,Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var t=Hy();const e=(0,t.default)("React.Component");return xo.default=e,xo}var Nl={},Yy;function pE(){if(Yy)return Nl;Yy=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=t;function t(e){return!!e&&/^[a-z]/.test(e)}return Nl}var kl={},Dl={},Bf={},ve={},na={},Rf={},Fr={},Bl={},Rl={},Xy;function jf(){if(Xy)return Rl;Xy=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=e;var t=Oi();function e(r,n){if(r===n)return!0;if(r==null||t.ALIAS_KEYS[n])return!1;const s=t.FLIPPED_ALIAS_KEYS[n];return!!(s!=null&&s.includes(r))}return Rl}var jl={},Qy;function Zy(){if(Qy)return jl;Qy=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=e;var t=Oi();function e(r,n){if(r===n)return!0;const s=t.PLACEHOLDERS_ALIAS[r];return!!(s!=null&&s.includes(n))}return jl}var em;function _o(){if(em)return Bl;em=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.default=s;var t=Df(),e=jf(),r=Zy(),n=Oi();function s(o,a,u){return a?(0,e.default)(a.type,o)?u===void 0?!0:(0,t.default)(a,u):!u&&a.type==="Placeholder"&&o in n.FLIPPED_ALIAS_KEYS?(0,r.default)(a.expectedNode,o):!1:!1}return Bl}var Ml={},Da={},wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.isIdentifierChar=im,wo.isIdentifierName=mE,wo.isIdentifierStart=nm;let Mf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tm="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const dE=new RegExp("["+Mf+"]"),hE=new RegExp("["+Mf+tm+"]");Mf=tm=null;const rm=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],yE=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Lf(t,e){let r=65536;for(let n=0,s=e.length;n<s;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}return!1}function nm(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&dE.test(String.fromCharCode(t)):Lf(t,rm)}function im(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&hE.test(String.fromCharCode(t)):Lf(t,rm)||Lf(t,yE)}function mE(t){let e=!0;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if((n&64512)===55296&&r+1<t.length){const s=t.charCodeAt(++r);(s&64512)===56320&&(n=65536+((n&1023)<<10)+(s&1023))}if(e){if(e=!1,!nm(n))return!1}else if(!im(n))return!1}return!e}var ia={};Object.defineProperty(ia,"__esModule",{value:!0}),ia.isKeyword=TE,ia.isReservedWord=sm,ia.isStrictBindOnlyReservedWord=om,ia.isStrictBindReservedWord=SE,ia.isStrictReservedWord=am;const Ff={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},gE=new Set(Ff.keyword),bE=new Set(Ff.strict),vE=new Set(Ff.strictBind);function sm(t,e){return e&&t==="await"||t==="enum"}function am(t,e){return sm(t,e)||bE.has(t)}function om(t){return vE.has(t)}function SE(t,e){return am(t,e)||om(t)}function TE(t){return gE.has(t)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return e.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return e.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return e.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var e=wo,r=ia})(Da);var lm;function Ao(){if(lm)return Ml;lm=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=e;var t=Da;function e(r,n=!0){return typeof r!="string"||n&&((0,t.isKeyword)(r)||(0,t.isStrictReservedWord)(r,!0))?!1:(0,t.isIdentifierName)(r)}return Ml}var Ba={},cm;function EE(){if(cm)return Ba;cm=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.readCodePoint=p,Ba.readInt=u,Ba.readStringContents=n;var t=function(h){return h>=48&&h<=57};const e={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r={bin:y=>y===48||y===49,oct:y=>y>=48&&y<=55,dec:y=>y>=48&&y<=57,hex:y=>y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102};function n(y,h,g,b,S,O){const _=g,w=b,C=S;let T="",x=null,E=g;const{length:j}=h;for(;;){if(g>=j){O.unterminated(_,w,C),T+=h.slice(E,g);break}const R=h.charCodeAt(g);if(s(y,R,h,g)){T+=h.slice(E,g);break}if(R===92){T+=h.slice(E,g);const I=o(h,g,b,S,y==="template",O);I.ch===null&&!x?x={pos:g,lineStart:b,curLine:S}:T+=I.ch,{pos:g,lineStart:b,curLine:S}=I,E=g}else R===8232||R===8233?(++g,++S,b=g):R===10||R===13?y==="template"?(T+=h.slice(E,g)+`
17
17
  `,++g,R===13&&h.charCodeAt(g)===10&&++g,++S,E=b=g):O.unterminated(_,w,C):++g}return{pos:g,str:T,firstInvalidLoc:x,lineStart:b,curLine:S,containsInvalid:!!x}}function s(y,h,g,b){return y==="template"?h===96||h===36&&g.charCodeAt(b+1)===123:h===(y==="double"?34:39)}function o(y,h,g,b,S,O){const _=!S;h++;const w=T=>({pos:h,ch:T,lineStart:g,curLine:b}),C=y.charCodeAt(h++);switch(C){case 110:return w(`
18
18
  `);case 114:return w("\r");case 120:{let T;return{code:T,pos:h}=a(y,h,g,b,2,!1,_,O),w(T===null?null:String.fromCharCode(T))}case 117:{let T;return{code:T,pos:h}=p(y,h,g,b,_,O),w(T===null?null:String.fromCodePoint(T))}case 116:return w(" ");case 98:return w("\b");case 118:return w("\v");case 102:return w("\f");case 13:y.charCodeAt(h)===10&&++h;case 10:g=h,++b;case 8232:case 8233:return w("");case 56:case 57:if(S)return w(null);O.strictNumericEscape(h-1,g,b);default:if(C>=48&&C<=55){const T=h-1;let E=/^[0-7]+/.exec(y.slice(T,h+2))[0],j=parseInt(E,8);j>255&&(E=E.slice(0,-1),j=parseInt(E,8)),h+=E.length-1;const R=y.charCodeAt(h);if(E!=="0"||R===56||R===57){if(S)return w(null);O.strictNumericEscape(T,g,b)}return w(String.fromCharCode(j))}return w(String.fromCharCode(C))}}function a(y,h,g,b,S,O,_,w){const C=h;let T;return{n:T,pos:h}=u(y,h,g,b,16,S,O,!1,w,!_),T===null&&(_?w.invalidEscapeSequence(C,g,b):h=C-1),{code:T,pos:h}}function u(y,h,g,b,S,O,_,w,C,T){const x=h,E=S===16?e.hex:e.decBinOct,j=S===16?r.hex:S===10?r.dec:S===8?r.oct:r.bin;let R=!1,I=0;for(let D=0,Z=O??1/0;D<Z;++D){const J=y.charCodeAt(h);let N;if(J===95&&w!=="bail"){const $=y.charCodeAt(h-1),ne=y.charCodeAt(h+1);if(w){if(Number.isNaN(ne)||!j(ne)||E.has($)||E.has(ne)){if(T)return{n:null,pos:h};C.unexpectedNumericSeparator(h,g,b)}}else{if(T)return{n:null,pos:h};C.numericSeparatorInEscapeSequence(h,g,b)}++h;continue}if(J>=97?N=J-97+10:J>=65?N=J-65+10:t(J)?N=J-48:N=1/0,N>=S){if(N<=9&&T)return{n:null,pos:h};if(N<=9&&C.invalidDigit(h,g,b,S))N=0;else if(_)N=0,R=!0;else break}++h,I=I*S+N}return h===x||O!=null&&h-x!==O||R?{n:null,pos:h}:{n:I,pos:h}}function p(y,h,g,b,S,O){const _=y.charCodeAt(h);let w;if(_===123){if(++h,{code:w,pos:h}=a(y,h,g,b,y.indexOf("}",h)-h,!0,S,O),++h,w!==null&&w>1114111)if(S)O.invalidCodePoint(h,g,b);else return{code:null,pos:h}}else({code:w,pos:h}=a(y,h,g,b,4,!1,S,O));return{code:w,pos:h}}return Ba}var Xt={},um;function Co(){if(um)return Xt;um=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.UPDATE_OPERATORS=Xt.UNARY_OPERATORS=Xt.STRING_UNARY_OPERATORS=Xt.STATEMENT_OR_BLOCK_KEYS=Xt.NUMBER_UNARY_OPERATORS=Xt.NUMBER_BINARY_OPERATORS=Xt.LOGICAL_OPERATORS=Xt.INHERIT_KEYS=Xt.FOR_INIT_KEYS=Xt.FLATTENABLE_KEYS=Xt.EQUALITY_BINARY_OPERATORS=Xt.COMPARISON_BINARY_OPERATORS=Xt.COMMENT_KEYS=Xt.BOOLEAN_UNARY_OPERATORS=Xt.BOOLEAN_NUMBER_BINARY_OPERATORS=Xt.BOOLEAN_BINARY_OPERATORS=Xt.BINARY_OPERATORS=Xt.ASSIGNMENT_OPERATORS=void 0,Xt.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],Xt.FLATTENABLE_KEYS=["body","expressions"],Xt.FOR_INIT_KEYS=["left","init"],Xt.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const t=Xt.LOGICAL_OPERATORS=["||","&&","??"];Xt.UPDATE_OPERATORS=["++","--"];const e=Xt.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],r=Xt.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],n=Xt.COMPARISON_BINARY_OPERATORS=[...r,"in","instanceof"],s=Xt.BOOLEAN_BINARY_OPERATORS=[...n,...e],o=Xt.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];Xt.BINARY_OPERATORS=["+",...o,...s,"|>"],Xt.ASSIGNMENT_OPERATORS=["=","+=",...o.map(y=>y+"="),...t.map(y=>y+"=")];const a=Xt.BOOLEAN_UNARY_OPERATORS=["delete","!"],u=Xt.NUMBER_UNARY_OPERATORS=["+","-","~"],p=Xt.STRING_UNARY_OPERATORS=["typeof"];return Xt.UNARY_OPERATORS=["void","throw",...a,...u,...p],Xt.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},Xt.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),Xt.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding"),Xt}var er={},fm;function xs(){if(fm)return er;fm=1;var t={};Object.defineProperty(er,"__esModule",{value:!0}),er.allExpandedTypes=er.VISITOR_KEYS=er.NODE_UNION_SHAPES__PRIVATE=er.NODE_PARENT_VALIDATIONS=er.NODE_FIELDS=er.FLIPPED_ALIAS_KEYS=er.DEPRECATED_KEYS=er.BUILDER_KEYS=er.ALIAS_KEYS=void 0,er.arrayOf=w,er.arrayOfType=C,er.assertEach=x,er.assertNodeOrValueType=I,er.assertNodeType=R,er.assertOneOf=E,er.assertOptionalChainStart=J,er.assertShape=Z,er.assertValueType=D,er.chain=N,er.default=Ae,er.defineAliasedType=Ce,er.validate=b,er.validateArrayOfType=T,er.validateOptional=O,er.validateOptionalType=_,er.validateType=S;var e=_o(),r=qf();const n=er.VISITOR_KEYS={},s=er.ALIAS_KEYS={},o=er.FLIPPED_ALIAS_KEYS={},a=er.NODE_FIELDS={},u=er.BUILDER_KEYS={},p=er.DEPRECATED_KEYS={},y=er.NODE_PARENT_VALIDATIONS={},h=er.NODE_UNION_SHAPES__PRIVATE={};function g(ce){return Array.isArray(ce)?"array":ce===null?"null":typeof ce}function b(ce){return{validate:ce}}function S(...ce){return b(R(...ce))}function O(ce){return{validate:ce,optional:!0}}function _(...ce){return{validate:R(...ce),optional:!0}}function w(ce){return N(D("array"),x(ce))}function C(...ce){return w(R(...ce))}function T(...ce){return b(C(...ce))}function x(ce){const ue=t.BABEL_TYPES_8_BREAKING?r.validateChild:()=>{};function K(Y,he,ae){if(!Array.isArray(ae))return;let U=0;const L={toString(){return`${he}[${U}]`}};for(;U<ae.length;U++){const H=ae[U];ce(Y,L,H),ue(Y,L,H)}}return K.each=ce,K}function E(...ce){function ue(K,Y,he){if(!ce.includes(he))throw new TypeError(`Property ${Y} expected value to be one of ${JSON.stringify(ce)} but got ${JSON.stringify(he)}`)}return ue.oneOf=ce,ue}const j=er.allExpandedTypes=[];function R(...ce){const ue=new Set;j.push({types:ce,set:ue});function K(Y,he,ae){const U=ae==null?void 0:ae.type;if(U!=null){if(ue.has(U)){(0,r.validateChild)(Y,he,ae);return}if(U==="Placeholder"){for(const L of ce)if((0,e.default)(L,ae)){(0,r.validateChild)(Y,he,ae);return}}}throw new TypeError(`Property ${he} of ${Y.type} expected node to be of a type ${JSON.stringify(ce)} but instead got ${JSON.stringify(U)}`)}return K.oneOfNodeTypes=ce,K}function I(...ce){function ue(K,Y,he){const ae=g(he);for(const U of ce)if(ae===U||(0,e.default)(U,he)){(0,r.validateChild)(K,Y,he);return}throw new TypeError(`Property ${Y} of ${K.type} expected node to be of a type ${JSON.stringify(ce)} but instead got ${JSON.stringify(he==null?void 0:he.type)}`)}return ue.oneOfNodeOrValueTypes=ce,ue}function D(ce){function ue(K,Y,he){if(g(he)!==ce)throw new TypeError(`Property ${Y} expected type of ${ce} but got ${g(he)}`)}return ue.type=ce,ue}function Z(ce){const ue=Object.keys(ce);function K(Y,he,ae){const U=[];for(const L of ue)try{(0,r.validateField)(Y,L,ae[L],ce[L])}catch(H){if(H instanceof TypeError){U.push(H.message);continue}throw H}if(U.length)throw new TypeError(`Property ${he} of ${Y.type} expected to have the following:
19
19
  ${U.join(`
20
20
  `)}`)}return K.shapeOf=ce,K}function J(){function ce(ue){var K;let Y=ue;for(;ue;){const{type:he}=Y;if(he==="OptionalCallExpression"){if(Y.optional)return;Y=Y.callee;continue}if(he==="OptionalMemberExpression"){if(Y.optional)return;Y=Y.object;continue}break}throw new TypeError(`Non-optional ${ue.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(K=Y)==null?void 0:K.type}`)}return ce}function N(...ce){function ue(...K){for(const Y of ce)Y(...K)}if(ue.chainOf=ce,ce.length>=2&&"type"in ce[0]&&ce[0].type==="array"&&!("each"in ce[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return ue}const $=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),ne=new Set(["default","optional","deprecated","validate"]),me={};function Ce(...ce){return(ue,K={})=>{let Y=K.aliases;if(!Y){var he;K.inherits&&(Y=(he=me[K.inherits].aliases)==null?void 0:he.slice()),Y??(Y=[]),K.aliases=Y}const ae=ce.filter(U=>!Y.includes(U));Y.unshift(...ae),Ae(ue,K)}}function Ae(ce,ue={}){const K=ue.inherits&&me[ue.inherits]||{};let Y=ue.fields;if(!Y&&(Y={},K.fields)){const L=Object.getOwnPropertyNames(K.fields);for(const H of L){const ye=K.fields[H],Ie=ye.default;if(Array.isArray(Ie)?Ie.length>0:Ie&&typeof Ie=="object")throw new Error("field defaults can only be primitives or empty arrays currently");Y[H]={default:Array.isArray(Ie)?[]:Ie,optional:ye.optional,deprecated:ye.deprecated,validate:ye.validate}}}const he=ue.visitor||K.visitor||[],ae=ue.aliases||K.aliases||[],U=ue.builder||K.builder||ue.visitor||[];for(const L of Object.keys(ue))if(!$.has(L))throw new Error(`Unknown type option "${L}" on ${ce}`);ue.deprecatedAlias&&(p[ue.deprecatedAlias]=ce);for(const L of he.concat(U))Y[L]=Y[L]||{};for(const L of Object.keys(Y)){const H=Y[L];H.default!==void 0&&!U.includes(L)&&(H.optional=!0),H.default===void 0?H.default=null:!H.validate&&H.default!=null&&(H.validate=D(g(H.default)));for(const ye of Object.keys(H))if(!ne.has(ye))throw new Error(`Unknown field key "${ye}" on ${ce}.${L}`)}n[ce]=ue.visitor=he,u[ce]=ue.builder=U,a[ce]=ue.fields=Y,s[ce]=ue.aliases=ae,ae.forEach(L=>{o[L]=o[L]||[],o[L].push(ce)}),ue.validate&&(y[ce]=ue.validate),ue.unionShape&&(h[ce]=ue.unionShape),me[ce]=ue}return er}var pm;function Ll(){if(pm)return Fr;pm=1;var t={};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.patternLikeCommon=Fr.importAttributes=Fr.functionTypeAnnotationCommon=Fr.functionDeclarationCommon=Fr.functionCommon=Fr.classMethodOrPropertyUnionShapeCommon=Fr.classMethodOrPropertyCommon=Fr.classMethodOrDeclareMethodCommon=void 0;var e=_o(),r=Ao(),n=Da,s=EE(),o=Co(),a=xs();const u=(w=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,a.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:w?(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});Fr.classMethodOrPropertyUnionShapeCommon=u;const p=(0,a.defineAliasedType)("Standardized");p("ArrayExpression",{fields:{elements:{validate:(0,a.arrayOf)((0,a.assertNodeOrValueType)("null","Expression","SpreadElement")),default:t.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),p("AssignmentExpression",{fields:{operator:{validate:t.BABEL_TYPES_8_BREAKING?Object.assign(function(){const w=(0,a.assertOneOf)(...o.ASSIGNMENT_OPERATORS),C=(0,a.assertOneOf)("=");return function(T,x,E){((0,e.default)("Pattern",T.left)?C:w)(T,x,E)}}(),{oneOf:o.ASSIGNMENT_OPERATORS}):(0,a.assertValueType)("string")},left:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,a.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),p("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,a.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const w=(0,a.assertNodeType)("Expression"),C=(0,a.assertNodeType)("Expression","PrivateName");return Object.assign(function(x,E,j){(x.operator==="in"?C:w)(x,E,j)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,a.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),p("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),p("Directive",{visitor:["value"],fields:{value:{validate:(0,a.assertNodeType)("DirectiveLiteral")}}}),p("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),p("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),p("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},t.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),p("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Expression")},alternate:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),p("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p("DebuggerStatement",{aliases:["Statement"]}),p("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),p("EmptyStatement",{aliases:["Statement"]}),p("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),p("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,a.assertNodeType)("Program")},comments:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.assertEach)((0,a.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,a.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),p("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),p("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,a.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},update:{validate:(0,a.assertNodeType)("Expression"),optional:!0},body:{validate:(0,a.assertNodeType)("Statement")}}});const y=()=>({params:(0,a.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});Fr.functionCommon=y;const h=()=>({returnType:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});Fr.functionTypeAnnotationCommon=h;const g=()=>Object.assign({},y(),{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}});Fr.functionDeclarationCommon=g,p("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},g(),h(),{body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:t.BABEL_TYPES_8_BREAKING?function(){const w=(0,a.assertNodeType)("Identifier");return function(C,T,x){(0,e.default)("ExportDefaultDeclaration",C)||w(x,"id",x.id)}}():void 0}),p("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},y(),h(),{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const b=()=>({typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});Fr.patternLikeCommon=b,p("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},b(),{name:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("string"),Object.assign(function(w,C,T){if(!(0,r.default)(T,!1))throw new TypeError(`"${T}" is not a valid identifier name`)},{type:"string"})):(0,a.assertValueType)("string")}}),validate:t.BABEL_TYPES_8_BREAKING?function(w,C,T){const x=/\.(\w+)$/.exec(C.toString());if(!x)return;const[,E]=x,j={computed:!1};if(E==="property"){if((0,e.default)("MemberExpression",w,j)||(0,e.default)("OptionalMemberExpression",w,j))return}else if(E==="key"){if((0,e.default)("Property",w,j)||(0,e.default)("Method",w,j))return}else if(E==="exported"){if((0,e.default)("ExportSpecifier",w))return}else if(E==="imported"){if((0,e.default)("ImportSpecifier",w,{imported:T}))return}else if(E==="meta"&&(0,e.default)("MetaProperty",w,{meta:T}))return;if(((0,n.isKeyword)(T.name)||(0,n.isReservedWord)(T.name,!1))&&T.name!=="this")throw new TypeError(`"${T.name}" is not a valid identifier`)}:void 0}),p("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,a.assertNodeType)("Statement")}}}),p("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("Statement")}}}),p("StringLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,a.chain)((0,a.assertValueType)("number"),Object.assign(function(w,C,T){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),p("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,a.assertValueType)("string")},flags:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("string"),Object.assign(function(w,C,T){const x=/[^dgimsuvy]/.exec(T);if(x)throw new TypeError(`"${x[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,a.assertValueType)("string"),default:""}}}),p("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,a.assertOneOf)(...o.LOGICAL_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}}}),p("MemberExpression",{builder:["object","property","computed",...t.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,a.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,a.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,a.assertNodeType)("Expression","Super")},property:{validate:function(){const w=(0,a.assertNodeType)("Identifier","PrivateName"),C=(0,a.assertNodeType)("Expression"),T=function(x,E,j){(x.computed?C:w)(x,E,j)};return T.oneOfNodeTypes=["Expression","Identifier","PrivateName"],T}()},computed:{default:!1}},t.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0}})}),p("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:(0,a.assertNodeType)("Expression")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),p("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,a.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,a.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),p("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,a.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),p("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},u(),{fields:Object.assign({},y(),h(),{kind:Object.assign({validate:(0,a.assertOneOf)("method","get","set")},t.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const w=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),C=(0,a.assertNodeType)("Expression"),T=function(x,E,j){(x.computed?C:w)(x,E,j)};return T.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],T}()},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),p("ObjectProperty",{builder:["key","value","computed","shorthand",...t.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,a.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){const w=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),C=(0,a.assertNodeType)("Expression");return Object.assign(function(x,E,j){(x.computed?C:w)(x,E,j)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,a.assertNodeType)("Expression","PatternLike")},shorthand:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign(function(w,C,T){if(T){if(w.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,e.default)("Identifier",w.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,a.assertValueType)("boolean"),default:!1},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:t.BABEL_TYPES_8_BREAKING?function(){const w=(0,a.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),C=(0,a.assertNodeType)("Expression");return function(T,x,E){((0,e.default)("ObjectPattern",T)?w:C)(E,"value",E.value)}}():void 0}),p("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},b(),{argument:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:t.BABEL_TYPES_8_BREAKING?function(w,C){const T=/(\w+)\[(\d+)\]/.exec(C.toString());if(!T)throw new Error("Internal Babel error: malformed key.");const[,x,E]=T;if(w[x].length>+E+1)throw new TypeError(`RestElement must be last element of ${x}`)}:void 0}),p("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),p("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,a.validateArrayOfType)("Expression")},aliases:["Expression"]}),p("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}}}),p("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},consequent:(0,a.validateArrayOfType)("Statement")}}),p("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,a.assertNodeType)("Expression")},cases:(0,a.validateArrayOfType)("SwitchCase")}}),p("ThisExpression",{aliases:["Expression"]}),p("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),p("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("BlockStatement"),Object.assign(function(w){if(!w.handler&&!w.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,a.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,a.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,a.assertNodeType)("BlockStatement")}}}),p("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),p("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression"):(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),p("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},kind:{validate:(0,a.assertOneOf)("var","let","const","using","await using")},declarations:(0,a.validateArrayOfType)("VariableDeclarator")},validate:t.BABEL_TYPES_8_BREAKING?(()=>{const w=(0,a.assertNodeType)("Identifier","Placeholder"),C=(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),T=(0,a.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(x,E,j){const{kind:R,declarations:I}=j,D=(0,e.default)("ForXStatement",x,{left:j});if(D&&I.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${x.type}`);for(const Z of I)R==="const"||R==="let"||R==="var"?!D&&!Z.init?w(Z,"id",Z.id):C(Z,"id",Z.id):T(Z,"id",Z.id)}})():void 0}),p("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,a.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,a.assertValueType)("boolean")},init:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),p("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),p("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),p("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},b(),{left:{validate:(0,a.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,a.assertNodeType)("Expression")},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}})}),p("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},b(),{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","PatternLike")))}})}),p("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},y(),h(),{expression:{validate:(0,a.assertValueType)("boolean")},body:{validate:(0,a.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),p("ClassBody",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),p("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0}}}),p("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0}},validate:t.BABEL_TYPES_8_BREAKING?function(){const w=(0,a.assertNodeType)("Identifier");return function(C,T,x){(0,e.default)("ExportDefaultDeclaration",C)||w(x,"id",x.id)}}():void 0});const S=Fr.importAttributes={attributes:{optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")}};S.assertions={deprecated:!0,optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")},p("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,a.assertNodeType)("StringLiteral")},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))},S)}),p("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,a.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,a.validateOptional)((0,a.assertOneOf)("value"))}}),p("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("Declaration"),Object.assign(function(w,C,T){if(T&&w.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(T&&w.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,a.assertNodeType)("Declaration")}},S,{specifiers:{default:[],validate:(0,a.arrayOf)(function(){const w=(0,a.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),C=(0,a.assertNodeType)("ExportSpecifier");return t.BABEL_TYPES_8_BREAKING?Object.assign(function(T,x,E){(T.source?w:C)(T,x,E)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):w}())},source:{validate:(0,a.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))})}),p("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},exported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,a.assertOneOf)("type","value"),optional:!0}}}),p("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!t.BABEL_TYPES_8_BREAKING)return(0,a.assertNodeType)("VariableDeclaration","LVal");const w=(0,a.assertNodeType)("VariableDeclaration"),C=(0,a.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(T,x,E){(0,e.default)("VariableDeclaration",E)?w(T,x,E):C(T,x,E)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")},await:{default:!1}}}),p("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},S,{module:{optional:!0,validate:(0,a.assertValueType)("boolean")},phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},specifiers:(0,a.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,a.assertNodeType)("StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}})}),p("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),p("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),p("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},imported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}}}),p("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},source:{validate:(0,a.assertNodeType)("Expression")},options:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),p("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("Identifier"),Object.assign(function(w,C,T){let x;switch(T.name){case"function":x="sent";break;case"new":x="target";break;case"import":x="meta";break}if(!(0,e.default)("Identifier",w.property,{name:x}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,a.assertNodeType)("Identifier")},property:{validate:(0,a.assertNodeType)("Identifier")}}});const O=()=>({abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,a.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},key:{validate:(0,a.chain)(function(){const w=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),C=(0,a.assertNodeType)("Expression");return function(T,x,E){(T.computed?C:w)(T,x,E)}}(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});Fr.classMethodOrPropertyCommon=O;const _=()=>Object.assign({},y(),O(),{params:(0,a.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,a.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});return Fr.classMethodOrDeclareMethodCommon=_,p("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},u(),{fields:Object.assign({},_(),h(),{body:{validate:(0,a.assertNodeType)("BlockStatement")}})})),p("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},b(),{properties:(0,a.validateArrayOfType)("RestElement","ObjectProperty")})}),p("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),p("Super",{aliases:["Expression"]}),p("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,a.assertNodeType)("Expression")},quasi:{validate:(0,a.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),p("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,a.chain)((0,a.assertShape)({raw:{validate:(0,a.assertValueType)("string")},cooked:{validate:(0,a.assertValueType)("string"),optional:!0}}),function(C){const T=C.value.raw;let x=!1;const E=()=>{throw new Error("Internal @babel/types error.")},{str:j,firstInvalidLoc:R}=(0,s.readStringContents)("template",T,0,0,0,{unterminated(){x=!0},strictNumericEscape:E,invalidEscapeSequence:E,numericSeparatorInEscapeSequence:E,unexpectedNumericSeparator:E,invalidDigit:E,invalidCodePoint:E});if(!x)throw new Error("Invalid raw");C.value.cooked=R?null:j})},tail:{default:!1}}}),p("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,a.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","TSType")),function(w,C,T){if(w.quasis.length!==T.length+1)throw new TypeError(`Number of ${w.type} quasis should be exactly one more than the number of expressions.
21
21
  Expected ${T.length+1} quasis but got ${w.quasis.length}`)})}}}),p("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign(function(w,C,T){if(T&&!w.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,a.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),p("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),p("Import",{aliases:["Expression"]}),p("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,a.assertNodeType)("Identifier")}}}),p("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},property:{validate:function(){const w=(0,a.assertNodeType)("Identifier"),C=(0,a.assertNodeType)("Expression");return Object.assign(function(x,E,j){(x.computed?C:w)(x,E,j)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")}}}),p("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:t.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")},typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),p("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},u(),{fields:Object.assign({},O(),{value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})})),p("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},u(!0),{fields:Object.assign({},O(),{key:{validate:(0,a.chain)(function(){const w=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),C=(0,a.assertNodeType)("Expression");return function(T,x,E){(T.computed?C:w)(T,x,E)}}(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})})),p("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,a.assertNodeType)("PrivateName")},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,a.assertValueType)("boolean"),default:!1},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}}}),p("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},_(),h(),{kind:{validate:(0,a.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,a.assertNodeType)("PrivateName")},body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),p("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,a.assertNodeType)("Identifier")}}}),p("StaticBlock",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),p("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,a.assertNodeType)("StringLiteral")}}}),Fr}var dm={},hm;function xE(){if(hm)return dm;hm=1;var t=Ll(),e=xs();const r=(0,e.defineAliasedType)("Flow"),n=s=>{const o=s==="DeclareClass";r(s,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...o?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends"))},o?{mixins:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),implements:(0,e.validateOptional)((0,e.arrayOfType)("ClassImplements"))}:{},{body:(0,e.validateType)("ObjectTypeAnnotation")})})};return r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,e.validateType)("FlowType")}}),r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),n("DeclareClass"),r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),predicate:(0,e.validateOptionalType)("DeclaredPredicate")}}),n("DeclareInterface"),r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier","StringLiteral"),body:(0,e.validateType)("BlockStatement"),kind:(0,e.validateOptional)((0,e.assertOneOf)("CommonJS","ES"))}}),r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateOptionalType)("FlowType")}}),r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier")}}),r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,e.validateOptionalType)("Flow"),specifiers:(0,e.validateOptional)((0,e.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,e.validateOptionalType)("StringLiteral"),default:(0,e.validateOptional)((0,e.assertValueType)("boolean"))},t.importAttributes)}),r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,e.validateType)("StringLiteral"),exportKind:(0,e.validateOptional)((0,e.assertOneOf)("type","value"))},t.importAttributes)}),r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,e.validateType)("Flow")}}),r("ExistsTypeAnnotation",{aliases:["FlowType"]}),r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),params:(0,e.validateArrayOfType)("FunctionTypeParam"),rest:(0,e.validateOptionalType)("FunctionTypeParam"),this:(0,e.validateOptionalType)("FunctionTypeParam"),returnType:(0,e.validateType)("FlowType")}}),r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,e.validateOptionalType)("Identifier"),typeAnnotation:(0,e.validateType)("FlowType"),optional:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,e.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),r("InferredPredicate",{aliases:["FlowPredicate"]}),r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,e.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterInstantiation")}}),n("InterfaceDeclaration"),r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,e.validateOptional)((0,e.arrayOfType)("InterfaceExtends")),body:(0,e.validateType)("ObjectTypeAnnotation")}}),r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("number"))}}),r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,e.validate)((0,e.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,e.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,e.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,e.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,e.assertValueType)("boolean"),default:!1},inexact:(0,e.validateOptional)((0,e.assertValueType)("boolean"))}}),r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateType)("Identifier"),value:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean")),static:(0,e.validate)((0,e.assertValueType)("boolean")),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,e.validateOptionalType)("Identifier"),key:(0,e.validateType)("FlowType"),value:(0,e.validateType)("FlowType"),static:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance")}}),r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,e.validateType)("Identifier","StringLiteral"),value:(0,e.validateType)("FlowType"),kind:(0,e.validate)((0,e.assertOneOf)("init","get","set")),static:(0,e.validate)((0,e.assertValueType)("boolean")),proto:(0,e.validate)((0,e.assertValueType)("boolean")),optional:(0,e.validate)((0,e.assertValueType)("boolean")),variance:(0,e.validateOptionalType)("Variance"),method:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,e.validateType)("FlowType")}}),r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,e.validateOptionalType)("FlowType"),impltype:(0,e.validateType)("FlowType")}}),r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,e.validateType)("Identifier"),qualification:(0,e.validateType)("Identifier","QualifiedTypeIdentifier")}}),r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,e.validate)((0,e.assertValueType)("string"))}}),r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,e.validateType)("FlowType")}}),r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TypeParameterDeclaration"),right:(0,e.validateType)("FlowType")}}),r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("FlowType")}}),r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TypeAnnotation")}}),r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,e.validate)((0,e.assertValueType)("string")),bound:(0,e.validateOptionalType)("TypeAnnotation"),default:(0,e.validateOptionalType)("FlowType"),variance:(0,e.validateOptionalType)("Variance")}}),r("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("TypeParameter"))}}),r("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,e.validate)((0,e.arrayOfType)("FlowType"))}}),r("Variance",{builder:["kind"],fields:{kind:(0,e.validate)((0,e.assertOneOf)("minus","plus"))}}),r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,e.validateType)("Identifier"),body:(0,e.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,e.validate)((0,e.assertValueType)("boolean")),members:(0,e.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,e.validate)((0,e.assertValueType)("boolean"))}}),r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("BooleanLiteral")}}),r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("NumericLiteral")}}),r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,e.validateType)("Identifier"),init:(0,e.validateType)("StringLiteral")}}),r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType")}}),r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,e.validateType)("FlowType"),indexType:(0,e.validateType)("FlowType"),optional:(0,e.validate)((0,e.assertValueType)("boolean"))}}),dm}var ym={},mm;function PE(){if(mm)return ym;mm=1;var t=xs();const e=(0,t.defineAliasedType)("JSX");return e("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,t.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,t.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),e("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,t.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),e("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,t.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,t.assertNodeType)("JSXClosingElement")},children:(0,t.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,t.assertValueType)("boolean"),optional:!0}})}),e("JSXEmptyExpression",{}),e("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,t.assertNodeType)("Expression","JSXEmptyExpression")}}}),e("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}}}),e("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,t.assertValueType)("string")}}}),e("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,t.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,t.assertNodeType)("JSXIdentifier")}}}),e("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,t.assertNodeType)("JSXIdentifier")},name:{validate:(0,t.assertNodeType)("JSXIdentifier")}}}),e("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,t.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,t.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,t.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,t.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),e("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,t.assertNodeType)("Expression")}}}),e("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,t.assertValueType)("string")}}}),e("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,t.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,t.assertNodeType)("JSXClosingFragment")},children:(0,t.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),e("JSXOpeningFragment",{aliases:["Immutable"]}),e("JSXClosingFragment",{aliases:["Immutable"]}),ym}var gm={},Ps={},bm;function vm(){if(bm)return Ps;bm=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.PLACEHOLDERS_FLIPPED_ALIAS=Ps.PLACEHOLDERS_ALIAS=Ps.PLACEHOLDERS=void 0;var t=xs();const e=Ps.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=Ps.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const s of e){const o=t.ALIAS_KEYS[s];o!=null&&o.length&&(r[s]=o)}const n=Ps.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(r).forEach(s=>{r[s].forEach(o=>{hasOwnProperty.call(n,o)||(n[o]=[]),n[o].push(s)})}),Ps}var Sm;function _E(){if(Sm)return gm;Sm=1;var t=xs(),e=vm(),r=Ll();const n=(0,t.defineAliasedType)("Miscellaneous");return n("Noop",{visitor:[]}),n("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,t.assertNodeType)("Identifier")},expectedNode:{validate:(0,t.assertOneOf)(...e.PLACEHOLDERS)}},(0,r.patternLikeCommon)())}),n("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,t.assertValueType)("string")}}}),gm}var Tm={},Em;function wE(){if(Em)return Tm;Em=1;var t={},e=xs();return(0,e.default)("ArgumentPlaceholder",{}),(0,e.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:t.BABEL_TYPES_8_BREAKING?{object:{validate:(0,e.assertNodeType)("Expression")},callee:{validate:(0,e.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,e.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),(0,e.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,e.assertNodeType)("BlockStatement")},async:{validate:(0,e.assertValueType)("boolean"),default:!1}}}),(0,e.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,e.assertNodeType)("Identifier")}}}),(0,e.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,e.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,e.default)("TupleExpression",{fields:{elements:{validate:(0,e.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,e.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,e.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,e.assertNodeType)("Program")}},aliases:["Expression"]}),(0,e.default)("TopicReference",{aliases:["Expression"]}),(0,e.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,e.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]}),Tm}var xm={},Pm;function AE(){if(Pm)return xm;Pm=1;var t=xs(),e=Ll(),r=_o();const n=(0,t.defineAliasedType)("TypeScript"),s=(0,t.assertValueType)("boolean"),o=()=>({returnType:{validate:(0,t.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,t.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});n("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,t.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,t.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,t.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,t.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,t.arrayOfType)("Decorator"),optional:!0}}}),n("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,e.functionDeclarationCommon)(),o())}),n("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,e.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,e.classMethodOrDeclareMethodCommon)(),o())})),n("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,t.validateType)("TSEntityName"),right:(0,t.validateType)("Identifier")}});const a=()=>({typeParameters:(0,t.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,t.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,t.validateOptionalType)("TSTypeAnnotation")}),u={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:a()};n("TSCallSignatureDeclaration",u),n("TSConstructSignatureDeclaration",u);const p=()=>({key:(0,t.validateType)("Expression"),computed:{default:!1},optional:(0,t.validateOptional)(s)});n("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},p(),{readonly:(0,t.validateOptional)(s),typeAnnotation:(0,t.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,t.assertOneOf)("get","set")}})}),n("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},a(),p(),{kind:{validate:(0,t.assertOneOf)("method","get","set")}})}),n("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,t.validateOptional)(s),static:(0,t.validateOptional)(s),parameters:(0,t.validateArrayOfType)("Identifier"),typeAnnotation:(0,t.validateOptionalType)("TSTypeAnnotation")}});const y=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const S of y)n(S,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});n("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const h={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};n("TSFunctionType",Object.assign({},h,{fields:a()})),n("TSConstructorType",Object.assign({},h,{fields:Object.assign({},a(),{abstract:(0,t.validateOptional)(s)})})),n("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,t.validateType)("TSEntityName"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,t.validateType)("Identifier","TSThisType"),typeAnnotation:(0,t.validateOptionalType)("TSTypeAnnotation"),asserts:(0,t.validateOptional)(s)}}),n("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,t.validateType)("TSEntityName","TSImportType"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,t.validateArrayOfType)("TSTypeElement")}}),n("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,t.validateType)("TSType")}}),n("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,t.validateArrayOfType)("TSType","TSNamedTupleMember")}}),n("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,t.validateType)("TSType")}}),n("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,t.validateType)("TSType")}}),n("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,t.validateType)("Identifier"),optional:{validate:s,default:!1},elementType:(0,t.validateType)("TSType")}});const g={aliases:["TSType"],visitor:["types"],fields:{types:(0,t.validateArrayOfType)("TSType")}};n("TSUnionType",g),n("TSIntersectionType",g),n("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,t.validateType)("TSType"),extendsType:(0,t.validateType)("TSType"),trueType:(0,t.validateType)("TSType"),falseType:(0,t.validateType)("TSType")}}),n("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,t.validateType)("TSTypeParameter")}}),n("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,t.validateType)("TSType")}}),n("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,t.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,t.validateType)("TSType")}}),n("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,t.validateType)("TSType"),indexType:(0,t.validateType)("TSType")}}),n("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,t.validateType)("TSTypeParameter")},{readonly:(0,t.validateOptional)((0,t.assertOneOf)(!0,!1,"+","-")),optional:(0,t.validateOptional)((0,t.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,t.validateOptionalType)("TSType"),nameType:(0,t.validateOptionalType)("TSType")})}),n("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,t.validateArrayOfType)("TemplateElement"),types:{validate:(0,t.chain)((0,t.assertValueType)("array"),(0,t.assertEach)((0,t.assertNodeType)("TSType")),function(S,O,_){if(S.quasis.length!==_.length+1)throw new TypeError(`Number of ${S.type} quasis should be exactly one more than the number of types.
22
- Expected ${_.length+1} quasis but got ${S.quasis.length}`)})}}}),n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const S=(0,t.assertNodeType)("NumericLiteral","BigIntLiteral"),O=(0,t.assertOneOf)("-"),_=(0,t.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),w=function(T,x,E){(0,r.default)("UnaryExpression",E)?(O(E,"operator",E.operator),S(E,"argument",E.argument)):_(T,x,E)};return w.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],w}()}}}),n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,t.validateType)("TSEntityName"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,t.validateOptional)(s),id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,t.validateOptional)((0,t.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,t.validateType)("TSInterfaceBody")}}),n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,t.validateArrayOfType)("TSTypeElement")}}),n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,t.validateOptional)(s),id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,t.validateType)("TSType")}}),n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,t.validateType)("Expression"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")}});const b={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,t.validateType)("Expression"),typeAnnotation:(0,t.validateType)("TSType")}};return n("TSAsExpression",b),n("TSSatisfiesExpression",b),n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,t.validateType)("TSType"),expression:(0,t.validateType)("Expression")}}),n("TSEnumBody",{visitor:["members"],fields:{members:(0,t.validateArrayOfType)("TSEnumMember")}}),n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,t.validateOptional)(s),const:(0,t.validateOptional)(s),id:(0,t.validateType)("Identifier"),members:(0,t.validateArrayOfType)("TSEnumMember"),initializer:(0,t.validateOptionalType)("Expression"),body:(0,t.validateOptionalType)("TSEnumBody")}}),n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,t.validateType)("Identifier","StringLiteral"),initializer:(0,t.validateOptionalType)("Expression")}}),n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,t.assertOneOf)("global","module","namespace")},declare:(0,t.validateOptional)(s)},{global:(0,t.validateOptional)(s)},{id:(0,t.validateType)("Identifier","StringLiteral"),body:(0,t.validateType)("TSModuleBlock","TSModuleDeclaration")})}),n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,t.validateArrayOfType)("Statement")}}),n("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,t.validateType)("StringLiteral")},{qualifier:(0,t.validateOptionalType)("TSEntityName")},{typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,t.assertNodeType)("ObjectExpression"),optional:!0}})}),n("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,t.validate)(s)},{id:(0,t.validateType)("Identifier"),moduleReference:(0,t.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,t.assertOneOf)("type","value"),optional:!0}})}),n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,t.validateType)("StringLiteral")}}),n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,t.validateType)("Expression")}}),n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,t.validateType)("Expression")}}),n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,t.validateType)("Identifier")}}),n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,t.assertNodeType)("TSType")}}}),n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,t.validateArrayOfType)("TSType")}}),n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,t.validateArrayOfType)("TSTypeParameter")}}),n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,t.assertValueType)("string")},in:{validate:(0,t.assertValueType)("boolean"),optional:!0},out:{validate:(0,t.assertValueType)("boolean"),optional:!0},const:{validate:(0,t.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,t.assertNodeType)("TSType"),optional:!0},default:{validate:(0,t.assertNodeType)("TSType"),optional:!0}}}),xm}var Io={},_m;function CE(){return _m||(_m=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.DEPRECATED_ALIASES=void 0,Io.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),Io}var wm;function Oi(){return wm||(wm=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return e.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return e.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return n.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return e.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return e.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return e.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return e.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return e.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return r.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return e.VISITOR_KEYS}}),Ll(),xE(),PE(),_E(),wE(),AE();var e=xs(),r=vm(),n=CE();Object.keys(n.DEPRECATED_ALIASES).forEach(s=>{e.FLIPPED_ALIAS_KEYS[s]=e.FLIPPED_ALIAS_KEYS[n.DEPRECATED_ALIASES[s]]});for(const{types:s,set:o}of e.allExpandedTypes)for(const a of s){const u=e.FLIPPED_ALIAS_KEYS[a];u?u.forEach(o.add,o):o.add(a)}t.TYPES=[].concat(Object.keys(e.VISITOR_KEYS),Object.keys(e.FLIPPED_ALIAS_KEYS),Object.keys(e.DEPRECATED_KEYS))}(Rf)),Rf}var Am;function qf(){if(Am)return na;Am=1,Object.defineProperty(na,"__esModule",{value:!0}),na.default=e,na.validateChild=s,na.validateField=n,na.validateInternal=r;var t=Oi();function e(o,a,u){if(!o)return;const p=t.NODE_FIELDS[o.type];if(!p)return;const y=p[a];n(o,a,u,y),s(o,a,u)}function r(o,a,u,p,y){if(o!=null&&o.validate&&!(o.optional&&p==null)&&(o.validate(a,u,p),y)){var h;const g=p.type;if(g==null)return;(h=t.NODE_PARENT_VALIDATIONS[g])==null||h.call(t.NODE_PARENT_VALIDATIONS,a,u,p)}}function n(o,a,u,p){p!=null&&p.validate&&(p.optional&&u==null||p.validate(o,a,u))}function s(o,a,u){var p;const y=u==null?void 0:u.type;y!=null&&((p=t.NODE_PARENT_VALIDATIONS[y])==null||p.call(t.NODE_PARENT_VALIDATIONS,o,a,u))}return na}var Cm;function Im(){if(Cm)return ve;Cm=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.anyTypeAnnotation=ui,ve.argumentPlaceholder=En,ve.arrayExpression=a,ve.arrayPattern=xe,ve.arrayTypeAnnotation=Vr,ve.arrowFunctionExpression=Se,ve.assignmentExpression=u,ve.assignmentPattern=ht,ve.awaitExpression=Bt,ve.bigIntLiteral=o,ve.binaryExpression=p,ve.bindExpression=ti,ve.blockStatement=b,ve.booleanLiteral=ce,ve.booleanLiteralTypeAnnotation=Rr,ve.booleanTypeAnnotation=tn,ve.breakStatement=S,ve.callExpression=O,ve.catchClause=_,ve.classAccessorProperty=Wt,ve.classBody=se,ve.classDeclaration=oe,ve.classExpression=ee,ve.classImplements=Dn,ve.classMethod=de,ve.classPrivateMethod=pn,ve.classPrivateProperty=tr,ve.classProperty=xr,ve.conditionalExpression=w,ve.continueStatement=C,ve.debuggerStatement=T,ve.decimalLiteral=ri,ve.declareClass=Kr,ve.declareExportAllDeclaration=Wr,ve.declareExportDeclaration=hn,ve.declareFunction=Hn,ve.declareInterface=Nr,ve.declareModule=An,ve.declareModuleExports=fi,ve.declareOpaqueType=rn,ve.declareTypeAlias=dr,ve.declareVariable=nn,ve.declaredPredicate=yn,ve.decorator=Wi,ve.directive=h,ve.directiveLiteral=g,ve.doExpression=Ei,ve.doWhileStatement=x,ve.emptyStatement=E,ve.emptyTypeAnnotation=as,ve.enumBooleanBody=qi,ve.enumBooleanMember=$i,ve.enumDeclaration=Mn,ve.enumDefaultedMember=Qn,ve.enumNumberBody=Yr,ve.enumNumberMember=Ui,ve.enumStringBody=Fs,ve.enumStringMember=It,ve.enumSymbolBody=Mr,ve.existsTypeAnnotation=Ri,ve.exportAllDeclaration=W,ve.exportDefaultDeclaration=fe,ve.exportDefaultSpecifier=Gi,ve.exportNamedDeclaration=Re,ve.exportNamespaceSpecifier=Vt,ve.exportSpecifier=Fe,ve.expressionStatement=j,ve.file=R,ve.forInStatement=I,ve.forOfStatement=Ke,ve.forStatement=D,ve.functionDeclaration=Z,ve.functionExpression=J,ve.functionTypeAnnotation=Cn,ve.functionTypeParam=is,ve.genericTypeAnnotation=pi,ve.identifier=N,ve.ifStatement=$,ve.import=Lt,ve.importAttribute=Rt,ve.importDeclaration=it,ve.importDefaultSpecifier=_t,ve.importExpression=xt,ve.importNamespaceSpecifier=Mt,ve.importSpecifier=pt,ve.indexedAccessType=mi,ve.inferredPredicate=Jn,ve.interfaceDeclaration=ji,ve.interfaceExtends=zt,ve.interfaceTypeAnnotation=ss,ve.interpreterDirective=y,ve.intersectionTypeAnnotation=mn,ve.jSXAttribute=ve.jsxAttribute=qs,ve.jSXClosingElement=ve.jsxClosingElement=Zn,ve.jSXClosingFragment=ve.jsxClosingFragment=Ti,ve.jSXElement=ve.jsxElement=$s,ve.jSXEmptyExpression=ve.jsxEmptyExpression=ps,ve.jSXExpressionContainer=ve.jsxExpressionContainer=gi,ve.jSXFragment=ve.jsxFragment=Ki,ve.jSXIdentifier=ve.jsxIdentifier=bi,ve.jSXMemberExpression=ve.jsxMemberExpression=Us,ve.jSXNamespacedName=ve.jsxNamespacedName=Vs,ve.jSXOpeningElement=ve.jsxOpeningElement=ds,ve.jSXOpeningFragment=ve.jsxOpeningFragment=Si,ve.jSXSpreadAttribute=ve.jsxSpreadAttribute=vi,ve.jSXSpreadChild=ve.jsxSpreadChild=ei,ve.jSXText=ve.jsxText=Vi,ve.labeledStatement=ne,ve.logicalExpression=K,ve.memberExpression=Y,ve.metaProperty=te,ve.mixedTypeAnnotation=Pr,ve.moduleExpression=sn,ve.newExpression=he,ve.noop=Ln,ve.nullLiteral=Ae,ve.nullLiteralTypeAnnotation=jr,ve.nullableTypeAnnotation=di,ve.numberLiteral=qt,ve.numberLiteralTypeAnnotation=os,ve.numberTypeAnnotation=ir,ve.numericLiteral=Ce,ve.objectExpression=U,ve.objectMethod=L,ve.objectPattern=G,ve.objectProperty=H,ve.objectTypeAnnotation=gn,ve.objectTypeCallProperty=Rn,ve.objectTypeIndexer=Mi,ve.objectTypeInternalSlot=Bn,ve.objectTypeProperty=Yn,ve.objectTypeSpreadProperty=Xn,ve.opaqueType=Li,ve.optionalCallExpression=lr,ve.optionalIndexedAccessType=fs,ve.optionalMemberExpression=Ht,ve.parenthesizedExpression=De,ve.pipelineBareFunction=z,ve.pipelinePrimaryTopicReference=l,ve.pipelineTopicExpression=xi,ve.placeholder=hs,ve.privateName=dn,ve.program=ae,ve.qualifiedTypeIdentifier=bn,ve.recordExpression=zi,ve.regExpLiteral=ue,ve.regexLiteral=$t,ve.restElement=ye,ve.restProperty=Kt,ve.returnStatement=Ie,ve.sequenceExpression=Ee,ve.spreadElement=be,ve.spreadProperty=Jt,ve.staticBlock=Sr,ve.stringLiteral=me,ve.stringLiteralTypeAnnotation=ls,ve.stringTypeAnnotation=vn,ve.super=et,ve.switchCase=Me,ve.switchStatement=Ve,ve.symbolTypeAnnotation=Qt,ve.taggedTemplateExpression=ge,ve.templateElement=rt,ve.templateLiteral=yt,ve.thisExpression=Ze,ve.thisTypeAnnotation=cs,ve.throwStatement=ut,ve.topicReference=Hi,ve.tryStatement=st,ve.tSAnyKeyword=ve.tsAnyKeyword=vt,ve.tSArrayType=ve.tsArrayType=ii,ve.tSAsExpression=ve.tsAsExpression=Je,ve.tSBigIntKeyword=ve.tsBigIntKeyword=Ot,ve.tSBooleanKeyword=ve.tsBooleanKeyword=wt,ve.tSCallSignatureDeclaration=ve.tsCallSignatureDeclaration=le,ve.tSConditionalType=ve.tsConditionalType=On,ve.tSConstructSignatureDeclaration=ve.tsConstructSignatureDeclaration=Pe,ve.tSConstructorType=ve.tsConstructorType=gs,ve.tSDeclareFunction=ve.tsDeclareFunction=d,ve.tSDeclareMethod=ve.tsDeclareMethod=A,ve.tSEnumBody=ve.tsEnumBody=nt,ve.tSEnumDeclaration=ve.tsEnumDeclaration=Xe,ve.tSEnumMember=ve.tsEnumMember=Ye,ve.tSExportAssignment=ve.tsExportAssignment=Ct,ve.tSExpressionWithTypeArguments=ve.tsExpressionWithTypeArguments=pe,ve.tSExternalModuleReference=ve.tsExternalModuleReference=bt,ve.tSFunctionType=ve.tsFunctionType=ms,ve.tSImportEqualsDeclaration=ve.tsImportEqualsDeclaration=ft,ve.tSImportType=ve.tsImportType=ot,ve.tSIndexSignature=ve.tsIndexSignature=ct,ve.tSIndexedAccessType=ve.tsIndexedAccessType=P,ve.tSInferType=ve.tsInferType=on,ve.tSInstantiationExpression=ve.tsInstantiationExpression=at,ve.tSInterfaceBody=ve.tsInterfaceBody=Ne,ve.tSInterfaceDeclaration=ve.tsInterfaceDeclaration=Te,ve.tSIntersectionType=ve.tsIntersectionType=wi,ve.tSIntrinsicKeyword=ve.tsIntrinsicKeyword=Gt,ve.tSLiteralType=ve.tsLiteralType=re,ve.tSMappedType=ve.tsMappedType=M,ve.tSMethodSignature=ve.tsMethodSignature=Ue,ve.tSModuleBlock=ve.tsModuleBlock=lt,ve.tSModuleDeclaration=ve.tsModuleDeclaration=Qe,ve.tSNamedTupleMember=ve.tsNamedTupleMember=Qi,ve.tSNamespaceExportDeclaration=ve.tsNamespaceExportDeclaration=Pt,ve.tSNeverKeyword=ve.tsNeverKeyword=or,ve.tSNonNullExpression=ve.tsNonNullExpression=Et,ve.tSNullKeyword=ve.tsNullKeyword=Ft,ve.tSNumberKeyword=ve.tsNumberKeyword=sr,ve.tSObjectKeyword=ve.tsObjectKeyword=xn,ve.tSOptionalType=ve.tsOptionalType=vs,ve.tSParameterProperty=ve.tsParameterProperty=c,ve.tSParenthesizedType=ve.tsParenthesizedType=Zi,ve.tSPropertySignature=ve.tsPropertySignature=Be,ve.tSQualifiedName=ve.tsQualifiedName=Q,ve.tSRestType=ve.tsRestType=_i,ve.tSSatisfiesExpression=ve.tsSatisfiesExpression=Ge,ve.tSStringKeyword=ve.tsStringKeyword=an,ve.tSSymbolKeyword=ve.tsSymbolKeyword=ys,ve.tSTemplateLiteralType=ve.tsTemplateLiteralType=V,ve.tSThisType=ve.tsThisType=Xi,ve.tSTupleType=ve.tsTupleType=In,ve.tSTypeAliasDeclaration=ve.tsTypeAliasDeclaration=We,ve.tSTypeAnnotation=ve.tsTypeAnnotation=Dt,ve.tSTypeAssertion=ve.tsTypeAssertion=He,ve.tSTypeLiteral=ve.tsTypeLiteral=hr,ve.tSTypeOperator=ve.tsTypeOperator=v,ve.tSTypeParameter=ve.tsTypeParameter=St,ve.tSTypeParameterDeclaration=ve.tsTypeParameterDeclaration=jt,ve.tSTypeParameterInstantiation=ve.tsTypeParameterInstantiation=At,ve.tSTypePredicate=ve.tsTypePredicate=ni,ve.tSTypeQuery=ve.tsTypeQuery=Xr,ve.tSTypeReference=ve.tsTypeReference=bs,ve.tSUndefinedKeyword=ve.tsUndefinedKeyword=Ji,ve.tSUnionType=ve.tsUnionType=Pn,ve.tSUnknownKeyword=ve.tsUnknownKeyword=Pi,ve.tSVoidKeyword=ve.tsVoidKeyword=Yi,ve.tupleExpression=Tr,ve.tupleTypeAnnotation=Ls,ve.typeAlias=Ar,ve.typeAnnotation=jn,ve.typeCastExpression=yi,ve.typeParameter=Sn,ve.typeParameterDeclaration=us,ve.typeParameterInstantiation=Fi,ve.typeofTypeAnnotation=hi,ve.unaryExpression=dt,ve.unionTypeAnnotation=br,ve.updateExpression=$e,ve.v8IntrinsicIdentifier=Ks,ve.variableDeclaration=je,ve.variableDeclarator=qe,ve.variance=Cr,ve.voidPattern=i,ve.voidTypeAnnotation=Tn,ve.whileStatement=Le,ve.withStatement=gt,ve.yieldExpression=mt;var t=qf(),e=Po(),r=xs();const{validateInternal:n}=t,{NODE_FIELDS:s}=r;function o(B){typeof B=="bigint"&&(B=B.toString());const k={type:"BigIntLiteral",value:B},F=s.BigIntLiteral;return n(F.value,k,"value",B),k}function a(B=[]){const k={type:"ArrayExpression",elements:B},F=s.ArrayExpression;return n(F.elements,k,"elements",B,1),k}function u(B,k,F){const ie={type:"AssignmentExpression",operator:B,left:k,right:F},ke=s.AssignmentExpression;return n(ke.operator,ie,"operator",B),n(ke.left,ie,"left",k,1),n(ke.right,ie,"right",F,1),ie}function p(B,k,F){const ie={type:"BinaryExpression",operator:B,left:k,right:F},ke=s.BinaryExpression;return n(ke.operator,ie,"operator",B),n(ke.left,ie,"left",k,1),n(ke.right,ie,"right",F,1),ie}function y(B){const k={type:"InterpreterDirective",value:B},F=s.InterpreterDirective;return n(F.value,k,"value",B),k}function h(B){const k={type:"Directive",value:B},F=s.Directive;return n(F.value,k,"value",B,1),k}function g(B){const k={type:"DirectiveLiteral",value:B},F=s.DirectiveLiteral;return n(F.value,k,"value",B),k}function b(B,k=[]){const F={type:"BlockStatement",body:B,directives:k},ie=s.BlockStatement;return n(ie.body,F,"body",B,1),n(ie.directives,F,"directives",k,1),F}function S(B=null){const k={type:"BreakStatement",label:B},F=s.BreakStatement;return n(F.label,k,"label",B,1),k}function O(B,k){const F={type:"CallExpression",callee:B,arguments:k},ie=s.CallExpression;return n(ie.callee,F,"callee",B,1),n(ie.arguments,F,"arguments",k,1),F}function _(B=null,k){const F={type:"CatchClause",param:B,body:k},ie=s.CatchClause;return n(ie.param,F,"param",B,1),n(ie.body,F,"body",k,1),F}function w(B,k,F){const ie={type:"ConditionalExpression",test:B,consequent:k,alternate:F},ke=s.ConditionalExpression;return n(ke.test,ie,"test",B,1),n(ke.consequent,ie,"consequent",k,1),n(ke.alternate,ie,"alternate",F,1),ie}function C(B=null){const k={type:"ContinueStatement",label:B},F=s.ContinueStatement;return n(F.label,k,"label",B,1),k}function T(){return{type:"DebuggerStatement"}}function x(B,k){const F={type:"DoWhileStatement",test:B,body:k},ie=s.DoWhileStatement;return n(ie.test,F,"test",B,1),n(ie.body,F,"body",k,1),F}function E(){return{type:"EmptyStatement"}}function j(B){const k={type:"ExpressionStatement",expression:B},F=s.ExpressionStatement;return n(F.expression,k,"expression",B,1),k}function R(B,k=null,F=null){const ie={type:"File",program:B,comments:k,tokens:F},ke=s.File;return n(ke.program,ie,"program",B,1),n(ke.comments,ie,"comments",k,1),n(ke.tokens,ie,"tokens",F),ie}function I(B,k,F){const ie={type:"ForInStatement",left:B,right:k,body:F},ke=s.ForInStatement;return n(ke.left,ie,"left",B,1),n(ke.right,ie,"right",k,1),n(ke.body,ie,"body",F,1),ie}function D(B=null,k=null,F=null,ie){const ke={type:"ForStatement",init:B,test:k,update:F,body:ie},tt=s.ForStatement;return n(tt.init,ke,"init",B,1),n(tt.test,ke,"test",k,1),n(tt.update,ke,"update",F,1),n(tt.body,ke,"body",ie,1),ke}function Z(B=null,k,F,ie=!1,ke=!1){const tt={type:"FunctionDeclaration",id:B,params:k,body:F,generator:ie,async:ke},Nt=s.FunctionDeclaration;return n(Nt.id,tt,"id",B,1),n(Nt.params,tt,"params",k,1),n(Nt.body,tt,"body",F,1),n(Nt.generator,tt,"generator",ie),n(Nt.async,tt,"async",ke),tt}function J(B=null,k,F,ie=!1,ke=!1){const tt={type:"FunctionExpression",id:B,params:k,body:F,generator:ie,async:ke},Nt=s.FunctionExpression;return n(Nt.id,tt,"id",B,1),n(Nt.params,tt,"params",k,1),n(Nt.body,tt,"body",F,1),n(Nt.generator,tt,"generator",ie),n(Nt.async,tt,"async",ke),tt}function N(B){const k={type:"Identifier",name:B},F=s.Identifier;return n(F.name,k,"name",B),k}function $(B,k,F=null){const ie={type:"IfStatement",test:B,consequent:k,alternate:F},ke=s.IfStatement;return n(ke.test,ie,"test",B,1),n(ke.consequent,ie,"consequent",k,1),n(ke.alternate,ie,"alternate",F,1),ie}function ne(B,k){const F={type:"LabeledStatement",label:B,body:k},ie=s.LabeledStatement;return n(ie.label,F,"label",B,1),n(ie.body,F,"body",k,1),F}function me(B){const k={type:"StringLiteral",value:B},F=s.StringLiteral;return n(F.value,k,"value",B),k}function Ce(B){const k={type:"NumericLiteral",value:B},F=s.NumericLiteral;return n(F.value,k,"value",B),k}function Ae(){return{type:"NullLiteral"}}function ce(B){const k={type:"BooleanLiteral",value:B},F=s.BooleanLiteral;return n(F.value,k,"value",B),k}function ue(B,k=""){const F={type:"RegExpLiteral",pattern:B,flags:k},ie=s.RegExpLiteral;return n(ie.pattern,F,"pattern",B),n(ie.flags,F,"flags",k),F}function K(B,k,F){const ie={type:"LogicalExpression",operator:B,left:k,right:F},ke=s.LogicalExpression;return n(ke.operator,ie,"operator",B),n(ke.left,ie,"left",k,1),n(ke.right,ie,"right",F,1),ie}function Y(B,k,F=!1,ie=null){const ke={type:"MemberExpression",object:B,property:k,computed:F,optional:ie},tt=s.MemberExpression;return n(tt.object,ke,"object",B,1),n(tt.property,ke,"property",k,1),n(tt.computed,ke,"computed",F),n(tt.optional,ke,"optional",ie),ke}function he(B,k){const F={type:"NewExpression",callee:B,arguments:k,typeParameters:null},ie=s.NewExpression;return n(ie.callee,F,"callee",B,1),n(ie.arguments,F,"arguments",k,1),F}function ae(B,k=[],F="script",ie=null){const ke={type:"Program",body:B,directives:k,sourceType:F,interpreter:ie},tt=s.Program;return n(tt.body,ke,"body",B,1),n(tt.directives,ke,"directives",k,1),n(tt.sourceType,ke,"sourceType",F),n(tt.interpreter,ke,"interpreter",ie,1),ke}function U(B){const k={type:"ObjectExpression",properties:B},F=s.ObjectExpression;return n(F.properties,k,"properties",B,1),k}function L(B="method",k,F,ie,ke=!1,tt=!1,Nt=!1){const cr={type:"ObjectMethod",kind:B,key:k,params:F,body:ie,computed:ke,generator:tt,async:Nt},kr=s.ObjectMethod;return n(kr.kind,cr,"kind",B),n(kr.key,cr,"key",k,1),n(kr.params,cr,"params",F,1),n(kr.body,cr,"body",ie,1),n(kr.computed,cr,"computed",ke),n(kr.generator,cr,"generator",tt),n(kr.async,cr,"async",Nt),cr}function H(B,k,F=!1,ie=!1,ke=null){const tt={type:"ObjectProperty",key:B,value:k,computed:F,shorthand:ie,decorators:ke},Nt=s.ObjectProperty;return n(Nt.key,tt,"key",B,1),n(Nt.value,tt,"value",k,1),n(Nt.computed,tt,"computed",F),n(Nt.shorthand,tt,"shorthand",ie),n(Nt.decorators,tt,"decorators",ke,1),tt}function ye(B){const k={type:"RestElement",argument:B},F=s.RestElement;return n(F.argument,k,"argument",B,1),k}function Ie(B=null){const k={type:"ReturnStatement",argument:B},F=s.ReturnStatement;return n(F.argument,k,"argument",B,1),k}function Ee(B){const k={type:"SequenceExpression",expressions:B},F=s.SequenceExpression;return n(F.expressions,k,"expressions",B,1),k}function De(B){const k={type:"ParenthesizedExpression",expression:B},F=s.ParenthesizedExpression;return n(F.expression,k,"expression",B,1),k}function Me(B=null,k){const F={type:"SwitchCase",test:B,consequent:k},ie=s.SwitchCase;return n(ie.test,F,"test",B,1),n(ie.consequent,F,"consequent",k,1),F}function Ve(B,k){const F={type:"SwitchStatement",discriminant:B,cases:k},ie=s.SwitchStatement;return n(ie.discriminant,F,"discriminant",B,1),n(ie.cases,F,"cases",k,1),F}function Ze(){return{type:"ThisExpression"}}function ut(B){const k={type:"ThrowStatement",argument:B},F=s.ThrowStatement;return n(F.argument,k,"argument",B,1),k}function st(B,k=null,F=null){const ie={type:"TryStatement",block:B,handler:k,finalizer:F},ke=s.TryStatement;return n(ke.block,ie,"block",B,1),n(ke.handler,ie,"handler",k,1),n(ke.finalizer,ie,"finalizer",F,1),ie}function dt(B,k,F=!0){const ie={type:"UnaryExpression",operator:B,argument:k,prefix:F},ke=s.UnaryExpression;return n(ke.operator,ie,"operator",B),n(ke.argument,ie,"argument",k,1),n(ke.prefix,ie,"prefix",F),ie}function $e(B,k,F=!1){const ie={type:"UpdateExpression",operator:B,argument:k,prefix:F},ke=s.UpdateExpression;return n(ke.operator,ie,"operator",B),n(ke.argument,ie,"argument",k,1),n(ke.prefix,ie,"prefix",F),ie}function je(B,k){const F={type:"VariableDeclaration",kind:B,declarations:k},ie=s.VariableDeclaration;return n(ie.kind,F,"kind",B),n(ie.declarations,F,"declarations",k,1),F}function qe(B,k=null){const F={type:"VariableDeclarator",id:B,init:k},ie=s.VariableDeclarator;return n(ie.id,F,"id",B,1),n(ie.init,F,"init",k,1),F}function Le(B,k){const F={type:"WhileStatement",test:B,body:k},ie=s.WhileStatement;return n(ie.test,F,"test",B,1),n(ie.body,F,"body",k,1),F}function gt(B,k){const F={type:"WithStatement",object:B,body:k},ie=s.WithStatement;return n(ie.object,F,"object",B,1),n(ie.body,F,"body",k,1),F}function ht(B,k){const F={type:"AssignmentPattern",left:B,right:k},ie=s.AssignmentPattern;return n(ie.left,F,"left",B,1),n(ie.right,F,"right",k,1),F}function xe(B){const k={type:"ArrayPattern",elements:B},F=s.ArrayPattern;return n(F.elements,k,"elements",B,1),k}function Se(B,k,F=!1){const ie={type:"ArrowFunctionExpression",params:B,body:k,async:F,expression:null},ke=s.ArrowFunctionExpression;return n(ke.params,ie,"params",B,1),n(ke.body,ie,"body",k,1),n(ke.async,ie,"async",F),ie}function se(B){const k={type:"ClassBody",body:B},F=s.ClassBody;return n(F.body,k,"body",B,1),k}function ee(B=null,k=null,F,ie=null){const ke={type:"ClassExpression",id:B,superClass:k,body:F,decorators:ie},tt=s.ClassExpression;return n(tt.id,ke,"id",B,1),n(tt.superClass,ke,"superClass",k,1),n(tt.body,ke,"body",F,1),n(tt.decorators,ke,"decorators",ie,1),ke}function oe(B=null,k=null,F,ie=null){const ke={type:"ClassDeclaration",id:B,superClass:k,body:F,decorators:ie},tt=s.ClassDeclaration;return n(tt.id,ke,"id",B,1),n(tt.superClass,ke,"superClass",k,1),n(tt.body,ke,"body",F,1),n(tt.decorators,ke,"decorators",ie,1),ke}function W(B,k=null){const F={type:"ExportAllDeclaration",source:B,attributes:k},ie=s.ExportAllDeclaration;return n(ie.source,F,"source",B,1),n(ie.attributes,F,"attributes",k,1),F}function fe(B){const k={type:"ExportDefaultDeclaration",declaration:B},F=s.ExportDefaultDeclaration;return n(F.declaration,k,"declaration",B,1),k}function Re(B=null,k=[],F=null,ie=null){const ke={type:"ExportNamedDeclaration",declaration:B,specifiers:k,source:F,attributes:ie},tt=s.ExportNamedDeclaration;return n(tt.declaration,ke,"declaration",B,1),n(tt.specifiers,ke,"specifiers",k,1),n(tt.source,ke,"source",F,1),n(tt.attributes,ke,"attributes",ie,1),ke}function Fe(B,k){const F={type:"ExportSpecifier",local:B,exported:k},ie=s.ExportSpecifier;return n(ie.local,F,"local",B,1),n(ie.exported,F,"exported",k,1),F}function Ke(B,k,F,ie=!1){const ke={type:"ForOfStatement",left:B,right:k,body:F,await:ie},tt=s.ForOfStatement;return n(tt.left,ke,"left",B,1),n(tt.right,ke,"right",k,1),n(tt.body,ke,"body",F,1),n(tt.await,ke,"await",ie),ke}function it(B,k,F=null){const ie={type:"ImportDeclaration",specifiers:B,source:k,attributes:F},ke=s.ImportDeclaration;return n(ke.specifiers,ie,"specifiers",B,1),n(ke.source,ie,"source",k,1),n(ke.attributes,ie,"attributes",F,1),ie}function _t(B){const k={type:"ImportDefaultSpecifier",local:B},F=s.ImportDefaultSpecifier;return n(F.local,k,"local",B,1),k}function Mt(B){const k={type:"ImportNamespaceSpecifier",local:B},F=s.ImportNamespaceSpecifier;return n(F.local,k,"local",B,1),k}function pt(B,k){const F={type:"ImportSpecifier",local:B,imported:k},ie=s.ImportSpecifier;return n(ie.local,F,"local",B,1),n(ie.imported,F,"imported",k,1),F}function xt(B,k=null){const F={type:"ImportExpression",source:B,options:k},ie=s.ImportExpression;return n(ie.source,F,"source",B,1),n(ie.options,F,"options",k,1),F}function te(B,k){const F={type:"MetaProperty",meta:B,property:k},ie=s.MetaProperty;return n(ie.meta,F,"meta",B,1),n(ie.property,F,"property",k,1),F}function de(B="method",k,F,ie,ke=!1,tt=!1,Nt=!1,cr=!1){const kr={type:"ClassMethod",kind:B,key:k,params:F,body:ie,computed:ke,static:tt,generator:Nt,async:cr},Ai=s.ClassMethod;return n(Ai.kind,kr,"kind",B),n(Ai.key,kr,"key",k,1),n(Ai.params,kr,"params",F,1),n(Ai.body,kr,"body",ie,1),n(Ai.computed,kr,"computed",ke),n(Ai.static,kr,"static",tt),n(Ai.generator,kr,"generator",Nt),n(Ai.async,kr,"async",cr),kr}function G(B){const k={type:"ObjectPattern",properties:B},F=s.ObjectPattern;return n(F.properties,k,"properties",B,1),k}function be(B){const k={type:"SpreadElement",argument:B},F=s.SpreadElement;return n(F.argument,k,"argument",B,1),k}function et(){return{type:"Super"}}function ge(B,k){const F={type:"TaggedTemplateExpression",tag:B,quasi:k},ie=s.TaggedTemplateExpression;return n(ie.tag,F,"tag",B,1),n(ie.quasi,F,"quasi",k,1),F}function rt(B,k=!1){const F={type:"TemplateElement",value:B,tail:k},ie=s.TemplateElement;return n(ie.value,F,"value",B),n(ie.tail,F,"tail",k),F}function yt(B,k){const F={type:"TemplateLiteral",quasis:B,expressions:k},ie=s.TemplateLiteral;return n(ie.quasis,F,"quasis",B,1),n(ie.expressions,F,"expressions",k,1),F}function mt(B=null,k=!1){const F={type:"YieldExpression",argument:B,delegate:k},ie=s.YieldExpression;return n(ie.argument,F,"argument",B,1),n(ie.delegate,F,"delegate",k),F}function Bt(B){const k={type:"AwaitExpression",argument:B},F=s.AwaitExpression;return n(F.argument,k,"argument",B,1),k}function Lt(){return{type:"Import"}}function Vt(B){const k={type:"ExportNamespaceSpecifier",exported:B},F=s.ExportNamespaceSpecifier;return n(F.exported,k,"exported",B,1),k}function Ht(B,k,F=!1,ie){const ke={type:"OptionalMemberExpression",object:B,property:k,computed:F,optional:ie},tt=s.OptionalMemberExpression;return n(tt.object,ke,"object",B,1),n(tt.property,ke,"property",k,1),n(tt.computed,ke,"computed",F),n(tt.optional,ke,"optional",ie),ke}function lr(B,k,F){const ie={type:"OptionalCallExpression",callee:B,arguments:k,optional:F},ke=s.OptionalCallExpression;return n(ke.callee,ie,"callee",B,1),n(ke.arguments,ie,"arguments",k,1),n(ke.optional,ie,"optional",F),ie}function xr(B,k=null,F=null,ie=null,ke=!1,tt=!1){const Nt={type:"ClassProperty",key:B,value:k,typeAnnotation:F,decorators:ie,computed:ke,static:tt},cr=s.ClassProperty;return n(cr.key,Nt,"key",B,1),n(cr.value,Nt,"value",k,1),n(cr.typeAnnotation,Nt,"typeAnnotation",F,1),n(cr.decorators,Nt,"decorators",ie,1),n(cr.computed,Nt,"computed",ke),n(cr.static,Nt,"static",tt),Nt}function Wt(B,k=null,F=null,ie=null,ke=!1,tt=!1){const Nt={type:"ClassAccessorProperty",key:B,value:k,typeAnnotation:F,decorators:ie,computed:ke,static:tt},cr=s.ClassAccessorProperty;return n(cr.key,Nt,"key",B,1),n(cr.value,Nt,"value",k,1),n(cr.typeAnnotation,Nt,"typeAnnotation",F,1),n(cr.decorators,Nt,"decorators",ie,1),n(cr.computed,Nt,"computed",ke),n(cr.static,Nt,"static",tt),Nt}function tr(B,k=null,F=null,ie=!1){const ke={type:"ClassPrivateProperty",key:B,value:k,decorators:F,static:ie},tt=s.ClassPrivateProperty;return n(tt.key,ke,"key",B,1),n(tt.value,ke,"value",k,1),n(tt.decorators,ke,"decorators",F,1),n(tt.static,ke,"static",ie),ke}function pn(B="method",k,F,ie,ke=!1){const tt={type:"ClassPrivateMethod",kind:B,key:k,params:F,body:ie,static:ke},Nt=s.ClassPrivateMethod;return n(Nt.kind,tt,"kind",B),n(Nt.key,tt,"key",k,1),n(Nt.params,tt,"params",F,1),n(Nt.body,tt,"body",ie,1),n(Nt.static,tt,"static",ke),tt}function dn(B){const k={type:"PrivateName",id:B},F=s.PrivateName;return n(F.id,k,"id",B,1),k}function Sr(B){const k={type:"StaticBlock",body:B},F=s.StaticBlock;return n(F.body,k,"body",B,1),k}function Rt(B,k){const F={type:"ImportAttribute",key:B,value:k},ie=s.ImportAttribute;return n(ie.key,F,"key",B,1),n(ie.value,F,"value",k,1),F}function ui(){return{type:"AnyTypeAnnotation"}}function Vr(B){const k={type:"ArrayTypeAnnotation",elementType:B},F=s.ArrayTypeAnnotation;return n(F.elementType,k,"elementType",B,1),k}function tn(){return{type:"BooleanTypeAnnotation"}}function Rr(B){const k={type:"BooleanLiteralTypeAnnotation",value:B},F=s.BooleanLiteralTypeAnnotation;return n(F.value,k,"value",B),k}function jr(){return{type:"NullLiteralTypeAnnotation"}}function Dn(B,k=null){const F={type:"ClassImplements",id:B,typeParameters:k},ie=s.ClassImplements;return n(ie.id,F,"id",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Kr(B,k=null,F=null,ie){const ke={type:"DeclareClass",id:B,typeParameters:k,extends:F,body:ie},tt=s.DeclareClass;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function Hn(B){const k={type:"DeclareFunction",id:B},F=s.DeclareFunction;return n(F.id,k,"id",B,1),k}function Nr(B,k=null,F=null,ie){const ke={type:"DeclareInterface",id:B,typeParameters:k,extends:F,body:ie},tt=s.DeclareInterface;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function An(B,k,F=null){const ie={type:"DeclareModule",id:B,body:k,kind:F},ke=s.DeclareModule;return n(ke.id,ie,"id",B,1),n(ke.body,ie,"body",k,1),n(ke.kind,ie,"kind",F),ie}function fi(B){const k={type:"DeclareModuleExports",typeAnnotation:B},F=s.DeclareModuleExports;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function dr(B,k=null,F){const ie={type:"DeclareTypeAlias",id:B,typeParameters:k,right:F},ke=s.DeclareTypeAlias;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.right,ie,"right",F,1),ie}function rn(B,k=null,F=null){const ie={type:"DeclareOpaqueType",id:B,typeParameters:k,supertype:F},ke=s.DeclareOpaqueType;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.supertype,ie,"supertype",F,1),ie}function nn(B){const k={type:"DeclareVariable",id:B},F=s.DeclareVariable;return n(F.id,k,"id",B,1),k}function hn(B=null,k=null,F=null,ie=null){const ke={type:"DeclareExportDeclaration",declaration:B,specifiers:k,source:F,attributes:ie},tt=s.DeclareExportDeclaration;return n(tt.declaration,ke,"declaration",B,1),n(tt.specifiers,ke,"specifiers",k,1),n(tt.source,ke,"source",F,1),n(tt.attributes,ke,"attributes",ie,1),ke}function Wr(B,k=null){const F={type:"DeclareExportAllDeclaration",source:B,attributes:k},ie=s.DeclareExportAllDeclaration;return n(ie.source,F,"source",B,1),n(ie.attributes,F,"attributes",k,1),F}function yn(B){const k={type:"DeclaredPredicate",value:B},F=s.DeclaredPredicate;return n(F.value,k,"value",B,1),k}function Ri(){return{type:"ExistsTypeAnnotation"}}function Cn(B=null,k,F=null,ie){const ke={type:"FunctionTypeAnnotation",typeParameters:B,params:k,rest:F,returnType:ie},tt=s.FunctionTypeAnnotation;return n(tt.typeParameters,ke,"typeParameters",B,1),n(tt.params,ke,"params",k,1),n(tt.rest,ke,"rest",F,1),n(tt.returnType,ke,"returnType",ie,1),ke}function is(B=null,k){const F={type:"FunctionTypeParam",name:B,typeAnnotation:k},ie=s.FunctionTypeParam;return n(ie.name,F,"name",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function pi(B,k=null){const F={type:"GenericTypeAnnotation",id:B,typeParameters:k},ie=s.GenericTypeAnnotation;return n(ie.id,F,"id",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Jn(){return{type:"InferredPredicate"}}function zt(B,k=null){const F={type:"InterfaceExtends",id:B,typeParameters:k},ie=s.InterfaceExtends;return n(ie.id,F,"id",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function ji(B,k=null,F=null,ie){const ke={type:"InterfaceDeclaration",id:B,typeParameters:k,extends:F,body:ie},tt=s.InterfaceDeclaration;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function ss(B=null,k){const F={type:"InterfaceTypeAnnotation",extends:B,body:k},ie=s.InterfaceTypeAnnotation;return n(ie.extends,F,"extends",B,1),n(ie.body,F,"body",k,1),F}function mn(B){const k={type:"IntersectionTypeAnnotation",types:B},F=s.IntersectionTypeAnnotation;return n(F.types,k,"types",B,1),k}function Pr(){return{type:"MixedTypeAnnotation"}}function as(){return{type:"EmptyTypeAnnotation"}}function di(B){const k={type:"NullableTypeAnnotation",typeAnnotation:B},F=s.NullableTypeAnnotation;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function os(B){const k={type:"NumberLiteralTypeAnnotation",value:B},F=s.NumberLiteralTypeAnnotation;return n(F.value,k,"value",B),k}function ir(){return{type:"NumberTypeAnnotation"}}function gn(B,k=[],F=[],ie=[],ke=!1){const tt={type:"ObjectTypeAnnotation",properties:B,indexers:k,callProperties:F,internalSlots:ie,exact:ke},Nt=s.ObjectTypeAnnotation;return n(Nt.properties,tt,"properties",B,1),n(Nt.indexers,tt,"indexers",k,1),n(Nt.callProperties,tt,"callProperties",F,1),n(Nt.internalSlots,tt,"internalSlots",ie,1),n(Nt.exact,tt,"exact",ke),tt}function Bn(B,k,F,ie,ke){const tt={type:"ObjectTypeInternalSlot",id:B,value:k,optional:F,static:ie,method:ke},Nt=s.ObjectTypeInternalSlot;return n(Nt.id,tt,"id",B,1),n(Nt.value,tt,"value",k,1),n(Nt.optional,tt,"optional",F),n(Nt.static,tt,"static",ie),n(Nt.method,tt,"method",ke),tt}function Rn(B){const k={type:"ObjectTypeCallProperty",value:B,static:null},F=s.ObjectTypeCallProperty;return n(F.value,k,"value",B,1),k}function Mi(B=null,k,F,ie=null){const ke={type:"ObjectTypeIndexer",id:B,key:k,value:F,variance:ie,static:null},tt=s.ObjectTypeIndexer;return n(tt.id,ke,"id",B,1),n(tt.key,ke,"key",k,1),n(tt.value,ke,"value",F,1),n(tt.variance,ke,"variance",ie,1),ke}function Yn(B,k,F=null){const ie={type:"ObjectTypeProperty",key:B,value:k,variance:F,kind:null,method:null,optional:null,proto:null,static:null},ke=s.ObjectTypeProperty;return n(ke.key,ie,"key",B,1),n(ke.value,ie,"value",k,1),n(ke.variance,ie,"variance",F,1),ie}function Xn(B){const k={type:"ObjectTypeSpreadProperty",argument:B},F=s.ObjectTypeSpreadProperty;return n(F.argument,k,"argument",B,1),k}function Li(B,k=null,F=null,ie){const ke={type:"OpaqueType",id:B,typeParameters:k,supertype:F,impltype:ie},tt=s.OpaqueType;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.supertype,ke,"supertype",F,1),n(tt.impltype,ke,"impltype",ie,1),ke}function bn(B,k){const F={type:"QualifiedTypeIdentifier",id:B,qualification:k},ie=s.QualifiedTypeIdentifier;return n(ie.id,F,"id",B,1),n(ie.qualification,F,"qualification",k,1),F}function ls(B){const k={type:"StringLiteralTypeAnnotation",value:B},F=s.StringLiteralTypeAnnotation;return n(F.value,k,"value",B),k}function vn(){return{type:"StringTypeAnnotation"}}function Qt(){return{type:"SymbolTypeAnnotation"}}function cs(){return{type:"ThisTypeAnnotation"}}function Ls(B){const k={type:"TupleTypeAnnotation",types:B},F=s.TupleTypeAnnotation;return n(F.types,k,"types",B,1),k}function hi(B){const k={type:"TypeofTypeAnnotation",argument:B},F=s.TypeofTypeAnnotation;return n(F.argument,k,"argument",B,1),k}function Ar(B,k=null,F){const ie={type:"TypeAlias",id:B,typeParameters:k,right:F},ke=s.TypeAlias;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.right,ie,"right",F,1),ie}function jn(B){const k={type:"TypeAnnotation",typeAnnotation:B},F=s.TypeAnnotation;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function yi(B,k){const F={type:"TypeCastExpression",expression:B,typeAnnotation:k},ie=s.TypeCastExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function Sn(B=null,k=null,F=null){const ie={type:"TypeParameter",bound:B,default:k,variance:F,name:null},ke=s.TypeParameter;return n(ke.bound,ie,"bound",B,1),n(ke.default,ie,"default",k,1),n(ke.variance,ie,"variance",F,1),ie}function us(B){const k={type:"TypeParameterDeclaration",params:B},F=s.TypeParameterDeclaration;return n(F.params,k,"params",B,1),k}function Fi(B){const k={type:"TypeParameterInstantiation",params:B},F=s.TypeParameterInstantiation;return n(F.params,k,"params",B,1),k}function br(B){const k={type:"UnionTypeAnnotation",types:B},F=s.UnionTypeAnnotation;return n(F.types,k,"types",B,1),k}function Cr(B){const k={type:"Variance",kind:B},F=s.Variance;return n(F.kind,k,"kind",B),k}function Tn(){return{type:"VoidTypeAnnotation"}}function Mn(B,k){const F={type:"EnumDeclaration",id:B,body:k},ie=s.EnumDeclaration;return n(ie.id,F,"id",B,1),n(ie.body,F,"body",k,1),F}function qi(B){const k={type:"EnumBooleanBody",members:B,explicitType:null,hasUnknownMembers:null},F=s.EnumBooleanBody;return n(F.members,k,"members",B,1),k}function Yr(B){const k={type:"EnumNumberBody",members:B,explicitType:null,hasUnknownMembers:null},F=s.EnumNumberBody;return n(F.members,k,"members",B,1),k}function Fs(B){const k={type:"EnumStringBody",members:B,explicitType:null,hasUnknownMembers:null},F=s.EnumStringBody;return n(F.members,k,"members",B,1),k}function Mr(B){const k={type:"EnumSymbolBody",members:B,hasUnknownMembers:null},F=s.EnumSymbolBody;return n(F.members,k,"members",B,1),k}function $i(B){const k={type:"EnumBooleanMember",id:B,init:null},F=s.EnumBooleanMember;return n(F.id,k,"id",B,1),k}function Ui(B,k){const F={type:"EnumNumberMember",id:B,init:k},ie=s.EnumNumberMember;return n(ie.id,F,"id",B,1),n(ie.init,F,"init",k,1),F}function It(B,k){const F={type:"EnumStringMember",id:B,init:k},ie=s.EnumStringMember;return n(ie.id,F,"id",B,1),n(ie.init,F,"init",k,1),F}function Qn(B){const k={type:"EnumDefaultedMember",id:B},F=s.EnumDefaultedMember;return n(F.id,k,"id",B,1),k}function mi(B,k){const F={type:"IndexedAccessType",objectType:B,indexType:k},ie=s.IndexedAccessType;return n(ie.objectType,F,"objectType",B,1),n(ie.indexType,F,"indexType",k,1),F}function fs(B,k){const F={type:"OptionalIndexedAccessType",objectType:B,indexType:k,optional:null},ie=s.OptionalIndexedAccessType;return n(ie.objectType,F,"objectType",B,1),n(ie.indexType,F,"indexType",k,1),F}function qs(B,k=null){const F={type:"JSXAttribute",name:B,value:k},ie=s.JSXAttribute;return n(ie.name,F,"name",B,1),n(ie.value,F,"value",k,1),F}function Zn(B){const k={type:"JSXClosingElement",name:B},F=s.JSXClosingElement;return n(F.name,k,"name",B,1),k}function $s(B,k=null,F,ie=null){const ke={type:"JSXElement",openingElement:B,closingElement:k,children:F,selfClosing:ie},tt=s.JSXElement;return n(tt.openingElement,ke,"openingElement",B,1),n(tt.closingElement,ke,"closingElement",k,1),n(tt.children,ke,"children",F,1),n(tt.selfClosing,ke,"selfClosing",ie),ke}function ps(){return{type:"JSXEmptyExpression"}}function gi(B){const k={type:"JSXExpressionContainer",expression:B},F=s.JSXExpressionContainer;return n(F.expression,k,"expression",B,1),k}function ei(B){const k={type:"JSXSpreadChild",expression:B},F=s.JSXSpreadChild;return n(F.expression,k,"expression",B,1),k}function bi(B){const k={type:"JSXIdentifier",name:B},F=s.JSXIdentifier;return n(F.name,k,"name",B),k}function Us(B,k){const F={type:"JSXMemberExpression",object:B,property:k},ie=s.JSXMemberExpression;return n(ie.object,F,"object",B,1),n(ie.property,F,"property",k,1),F}function Vs(B,k){const F={type:"JSXNamespacedName",namespace:B,name:k},ie=s.JSXNamespacedName;return n(ie.namespace,F,"namespace",B,1),n(ie.name,F,"name",k,1),F}function ds(B,k,F=!1){const ie={type:"JSXOpeningElement",name:B,attributes:k,selfClosing:F},ke=s.JSXOpeningElement;return n(ke.name,ie,"name",B,1),n(ke.attributes,ie,"attributes",k,1),n(ke.selfClosing,ie,"selfClosing",F),ie}function vi(B){const k={type:"JSXSpreadAttribute",argument:B},F=s.JSXSpreadAttribute;return n(F.argument,k,"argument",B,1),k}function Vi(B){const k={type:"JSXText",value:B},F=s.JSXText;return n(F.value,k,"value",B),k}function Ki(B,k,F){const ie={type:"JSXFragment",openingFragment:B,closingFragment:k,children:F},ke=s.JSXFragment;return n(ke.openingFragment,ie,"openingFragment",B,1),n(ke.closingFragment,ie,"closingFragment",k,1),n(ke.children,ie,"children",F,1),ie}function Si(){return{type:"JSXOpeningFragment"}}function Ti(){return{type:"JSXClosingFragment"}}function Ln(){return{type:"Noop"}}function hs(B,k){const F={type:"Placeholder",expectedNode:B,name:k},ie=s.Placeholder;return n(ie.expectedNode,F,"expectedNode",B),n(ie.name,F,"name",k,1),F}function Ks(B){const k={type:"V8IntrinsicIdentifier",name:B},F=s.V8IntrinsicIdentifier;return n(F.name,k,"name",B),k}function En(){return{type:"ArgumentPlaceholder"}}function ti(B,k){const F={type:"BindExpression",object:B,callee:k},ie=s.BindExpression;return n(ie.object,F,"object",B,1),n(ie.callee,F,"callee",k,1),F}function Wi(B){const k={type:"Decorator",expression:B},F=s.Decorator;return n(F.expression,k,"expression",B,1),k}function Ei(B,k=!1){const F={type:"DoExpression",body:B,async:k},ie=s.DoExpression;return n(ie.body,F,"body",B,1),n(ie.async,F,"async",k),F}function Gi(B){const k={type:"ExportDefaultSpecifier",exported:B},F=s.ExportDefaultSpecifier;return n(F.exported,k,"exported",B,1),k}function zi(B){const k={type:"RecordExpression",properties:B},F=s.RecordExpression;return n(F.properties,k,"properties",B,1),k}function Tr(B=[]){const k={type:"TupleExpression",elements:B},F=s.TupleExpression;return n(F.elements,k,"elements",B,1),k}function ri(B){const k={type:"DecimalLiteral",value:B},F=s.DecimalLiteral;return n(F.value,k,"value",B),k}function sn(B){const k={type:"ModuleExpression",body:B},F=s.ModuleExpression;return n(F.body,k,"body",B,1),k}function Hi(){return{type:"TopicReference"}}function xi(B){const k={type:"PipelineTopicExpression",expression:B},F=s.PipelineTopicExpression;return n(F.expression,k,"expression",B,1),k}function z(B){const k={type:"PipelineBareFunction",callee:B},F=s.PipelineBareFunction;return n(F.callee,k,"callee",B,1),k}function l(){return{type:"PipelinePrimaryTopicReference"}}function i(){return{type:"VoidPattern"}}function c(B){const k={type:"TSParameterProperty",parameter:B},F=s.TSParameterProperty;return n(F.parameter,k,"parameter",B,1),k}function d(B=null,k=null,F,ie=null){const ke={type:"TSDeclareFunction",id:B,typeParameters:k,params:F,returnType:ie},tt=s.TSDeclareFunction;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.params,ke,"params",F,1),n(tt.returnType,ke,"returnType",ie,1),ke}function A(B=null,k,F=null,ie,ke=null){const tt={type:"TSDeclareMethod",decorators:B,key:k,typeParameters:F,params:ie,returnType:ke},Nt=s.TSDeclareMethod;return n(Nt.decorators,tt,"decorators",B,1),n(Nt.key,tt,"key",k,1),n(Nt.typeParameters,tt,"typeParameters",F,1),n(Nt.params,tt,"params",ie,1),n(Nt.returnType,tt,"returnType",ke,1),tt}function Q(B,k){const F={type:"TSQualifiedName",left:B,right:k},ie=s.TSQualifiedName;return n(ie.left,F,"left",B,1),n(ie.right,F,"right",k,1),F}function le(B=null,k,F=null){const ie={type:"TSCallSignatureDeclaration",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSCallSignatureDeclaration;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function Pe(B=null,k,F=null){const ie={type:"TSConstructSignatureDeclaration",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSConstructSignatureDeclaration;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function Be(B,k=null){const F={type:"TSPropertySignature",key:B,typeAnnotation:k},ie=s.TSPropertySignature;return n(ie.key,F,"key",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function Ue(B,k=null,F,ie=null){const ke={type:"TSMethodSignature",key:B,typeParameters:k,parameters:F,typeAnnotation:ie,kind:null},tt=s.TSMethodSignature;return n(tt.key,ke,"key",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.parameters,ke,"parameters",F,1),n(tt.typeAnnotation,ke,"typeAnnotation",ie,1),ke}function ct(B,k=null){const F={type:"TSIndexSignature",parameters:B,typeAnnotation:k},ie=s.TSIndexSignature;return n(ie.parameters,F,"parameters",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function vt(){return{type:"TSAnyKeyword"}}function wt(){return{type:"TSBooleanKeyword"}}function Ot(){return{type:"TSBigIntKeyword"}}function Gt(){return{type:"TSIntrinsicKeyword"}}function or(){return{type:"TSNeverKeyword"}}function Ft(){return{type:"TSNullKeyword"}}function sr(){return{type:"TSNumberKeyword"}}function xn(){return{type:"TSObjectKeyword"}}function an(){return{type:"TSStringKeyword"}}function ys(){return{type:"TSSymbolKeyword"}}function Ji(){return{type:"TSUndefinedKeyword"}}function Pi(){return{type:"TSUnknownKeyword"}}function Yi(){return{type:"TSVoidKeyword"}}function Xi(){return{type:"TSThisType"}}function ms(B=null,k,F=null){const ie={type:"TSFunctionType",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSFunctionType;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function gs(B=null,k,F=null){const ie={type:"TSConstructorType",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSConstructorType;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function bs(B,k=null){const F={type:"TSTypeReference",typeName:B,typeParameters:k},ie=s.TSTypeReference;return n(ie.typeName,F,"typeName",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function ni(B,k=null,F=null){const ie={type:"TSTypePredicate",parameterName:B,typeAnnotation:k,asserts:F},ke=s.TSTypePredicate;return n(ke.parameterName,ie,"parameterName",B,1),n(ke.typeAnnotation,ie,"typeAnnotation",k,1),n(ke.asserts,ie,"asserts",F),ie}function Xr(B,k=null){const F={type:"TSTypeQuery",exprName:B,typeParameters:k},ie=s.TSTypeQuery;return n(ie.exprName,F,"exprName",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function hr(B){const k={type:"TSTypeLiteral",members:B},F=s.TSTypeLiteral;return n(F.members,k,"members",B,1),k}function ii(B){const k={type:"TSArrayType",elementType:B},F=s.TSArrayType;return n(F.elementType,k,"elementType",B,1),k}function In(B){const k={type:"TSTupleType",elementTypes:B},F=s.TSTupleType;return n(F.elementTypes,k,"elementTypes",B,1),k}function vs(B){const k={type:"TSOptionalType",typeAnnotation:B},F=s.TSOptionalType;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function _i(B){const k={type:"TSRestType",typeAnnotation:B},F=s.TSRestType;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function Qi(B,k,F=!1){const ie={type:"TSNamedTupleMember",label:B,elementType:k,optional:F},ke=s.TSNamedTupleMember;return n(ke.label,ie,"label",B,1),n(ke.elementType,ie,"elementType",k,1),n(ke.optional,ie,"optional",F),ie}function Pn(B){const k={type:"TSUnionType",types:B},F=s.TSUnionType;return n(F.types,k,"types",B,1),k}function wi(B){const k={type:"TSIntersectionType",types:B},F=s.TSIntersectionType;return n(F.types,k,"types",B,1),k}function On(B,k,F,ie){const ke={type:"TSConditionalType",checkType:B,extendsType:k,trueType:F,falseType:ie},tt=s.TSConditionalType;return n(tt.checkType,ke,"checkType",B,1),n(tt.extendsType,ke,"extendsType",k,1),n(tt.trueType,ke,"trueType",F,1),n(tt.falseType,ke,"falseType",ie,1),ke}function on(B){const k={type:"TSInferType",typeParameter:B},F=s.TSInferType;return n(F.typeParameter,k,"typeParameter",B,1),k}function Zi(B){const k={type:"TSParenthesizedType",typeAnnotation:B},F=s.TSParenthesizedType;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function v(B,k="keyof"){const F={type:"TSTypeOperator",typeAnnotation:B,operator:k},ie=s.TSTypeOperator;return n(ie.typeAnnotation,F,"typeAnnotation",B,1),n(ie.operator,F,"operator",k),F}function P(B,k){const F={type:"TSIndexedAccessType",objectType:B,indexType:k},ie=s.TSIndexedAccessType;return n(ie.objectType,F,"objectType",B,1),n(ie.indexType,F,"indexType",k,1),F}function M(B,k=null,F=null){const ie={type:"TSMappedType",typeParameter:B,typeAnnotation:k,nameType:F},ke=s.TSMappedType;return n(ke.typeParameter,ie,"typeParameter",B,1),n(ke.typeAnnotation,ie,"typeAnnotation",k,1),n(ke.nameType,ie,"nameType",F,1),ie}function V(B,k){const F={type:"TSTemplateLiteralType",quasis:B,types:k},ie=s.TSTemplateLiteralType;return n(ie.quasis,F,"quasis",B,1),n(ie.types,F,"types",k,1),F}function re(B){const k={type:"TSLiteralType",literal:B},F=s.TSLiteralType;return n(F.literal,k,"literal",B,1),k}function pe(B,k=null){const F={type:"TSExpressionWithTypeArguments",expression:B,typeParameters:k},ie=s.TSExpressionWithTypeArguments;return n(ie.expression,F,"expression",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Te(B,k=null,F=null,ie){const ke={type:"TSInterfaceDeclaration",id:B,typeParameters:k,extends:F,body:ie},tt=s.TSInterfaceDeclaration;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function Ne(B){const k={type:"TSInterfaceBody",body:B},F=s.TSInterfaceBody;return n(F.body,k,"body",B,1),k}function We(B,k=null,F){const ie={type:"TSTypeAliasDeclaration",id:B,typeParameters:k,typeAnnotation:F},ke=s.TSTypeAliasDeclaration;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function at(B,k=null){const F={type:"TSInstantiationExpression",expression:B,typeParameters:k},ie=s.TSInstantiationExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Je(B,k){const F={type:"TSAsExpression",expression:B,typeAnnotation:k},ie=s.TSAsExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function Ge(B,k){const F={type:"TSSatisfiesExpression",expression:B,typeAnnotation:k},ie=s.TSSatisfiesExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function He(B,k){const F={type:"TSTypeAssertion",typeAnnotation:B,expression:k},ie=s.TSTypeAssertion;return n(ie.typeAnnotation,F,"typeAnnotation",B,1),n(ie.expression,F,"expression",k,1),F}function nt(B){const k={type:"TSEnumBody",members:B},F=s.TSEnumBody;return n(F.members,k,"members",B,1),k}function Xe(B,k){const F={type:"TSEnumDeclaration",id:B,members:k},ie=s.TSEnumDeclaration;return n(ie.id,F,"id",B,1),n(ie.members,F,"members",k,1),F}function Ye(B,k=null){const F={type:"TSEnumMember",id:B,initializer:k},ie=s.TSEnumMember;return n(ie.id,F,"id",B,1),n(ie.initializer,F,"initializer",k,1),F}function Qe(B,k){const F={type:"TSModuleDeclaration",id:B,body:k,kind:null},ie=s.TSModuleDeclaration;return n(ie.id,F,"id",B,1),n(ie.body,F,"body",k,1),F}function lt(B){const k={type:"TSModuleBlock",body:B},F=s.TSModuleBlock;return n(F.body,k,"body",B,1),k}function ot(B,k=null,F=null){const ie={type:"TSImportType",argument:B,qualifier:k,typeParameters:F},ke=s.TSImportType;return n(ke.argument,ie,"argument",B,1),n(ke.qualifier,ie,"qualifier",k,1),n(ke.typeParameters,ie,"typeParameters",F,1),ie}function ft(B,k){const F={type:"TSImportEqualsDeclaration",id:B,moduleReference:k,isExport:null},ie=s.TSImportEqualsDeclaration;return n(ie.id,F,"id",B,1),n(ie.moduleReference,F,"moduleReference",k,1),F}function bt(B){const k={type:"TSExternalModuleReference",expression:B},F=s.TSExternalModuleReference;return n(F.expression,k,"expression",B,1),k}function Et(B){const k={type:"TSNonNullExpression",expression:B},F=s.TSNonNullExpression;return n(F.expression,k,"expression",B,1),k}function Ct(B){const k={type:"TSExportAssignment",expression:B},F=s.TSExportAssignment;return n(F.expression,k,"expression",B,1),k}function Pt(B){const k={type:"TSNamespaceExportDeclaration",id:B},F=s.TSNamespaceExportDeclaration;return n(F.id,k,"id",B,1),k}function Dt(B){const k={type:"TSTypeAnnotation",typeAnnotation:B},F=s.TSTypeAnnotation;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function At(B){const k={type:"TSTypeParameterInstantiation",params:B},F=s.TSTypeParameterInstantiation;return n(F.params,k,"params",B,1),k}function jt(B){const k={type:"TSTypeParameterDeclaration",params:B},F=s.TSTypeParameterDeclaration;return n(F.params,k,"params",B,1),k}function St(B=null,k=null,F){const ie={type:"TSTypeParameter",constraint:B,default:k,name:F},ke=s.TSTypeParameter;return n(ke.constraint,ie,"constraint",B,1),n(ke.default,ie,"default",k,1),n(ke.name,ie,"name",F),ie}function qt(B){return(0,e.default)("NumberLiteral","NumericLiteral","The node type "),Ce(B)}function $t(B,k=""){return(0,e.default)("RegexLiteral","RegExpLiteral","The node type "),ue(B,k)}function Kt(B){return(0,e.default)("RestProperty","RestElement","The node type "),ye(B)}function Jt(B){return(0,e.default)("SpreadProperty","SpreadElement","The node type "),be(B)}return ve}var X={},Om;function IE(){if(Om)return X;Om=1,Object.defineProperty(X,"__esModule",{value:!0}),X.JSXIdentifier=X.JSXFragment=X.JSXExpressionContainer=X.JSXEmptyExpression=X.JSXElement=X.JSXClosingFragment=X.JSXClosingElement=X.JSXAttribute=X.IntersectionTypeAnnotation=X.InterpreterDirective=X.InterfaceTypeAnnotation=X.InterfaceExtends=X.InterfaceDeclaration=X.InferredPredicate=X.IndexedAccessType=X.ImportSpecifier=X.ImportNamespaceSpecifier=X.ImportExpression=X.ImportDefaultSpecifier=X.ImportDeclaration=X.ImportAttribute=X.Import=X.IfStatement=X.Identifier=X.GenericTypeAnnotation=X.FunctionTypeParam=X.FunctionTypeAnnotation=X.FunctionExpression=X.FunctionDeclaration=X.ForStatement=X.ForOfStatement=X.ForInStatement=X.File=X.ExpressionStatement=X.ExportSpecifier=X.ExportNamespaceSpecifier=X.ExportNamedDeclaration=X.ExportDefaultSpecifier=X.ExportDefaultDeclaration=X.ExportAllDeclaration=X.ExistsTypeAnnotation=X.EnumSymbolBody=X.EnumStringMember=X.EnumStringBody=X.EnumNumberMember=X.EnumNumberBody=X.EnumDefaultedMember=X.EnumDeclaration=X.EnumBooleanMember=X.EnumBooleanBody=X.EmptyTypeAnnotation=X.EmptyStatement=X.DoWhileStatement=X.DoExpression=X.DirectiveLiteral=X.Directive=X.Decorator=X.DeclaredPredicate=X.DeclareVariable=X.DeclareTypeAlias=X.DeclareOpaqueType=X.DeclareModuleExports=X.DeclareModule=X.DeclareInterface=X.DeclareFunction=X.DeclareExportDeclaration=X.DeclareExportAllDeclaration=X.DeclareClass=X.DecimalLiteral=X.DebuggerStatement=X.ContinueStatement=X.ConditionalExpression=X.ClassProperty=X.ClassPrivateProperty=X.ClassPrivateMethod=X.ClassMethod=X.ClassImplements=X.ClassExpression=X.ClassDeclaration=X.ClassBody=X.ClassAccessorProperty=X.CatchClause=X.CallExpression=X.BreakStatement=X.BooleanTypeAnnotation=X.BooleanLiteralTypeAnnotation=X.BooleanLiteral=X.BlockStatement=X.BindExpression=X.BinaryExpression=X.BigIntLiteral=X.AwaitExpression=X.AssignmentPattern=X.AssignmentExpression=X.ArrowFunctionExpression=X.ArrayTypeAnnotation=X.ArrayPattern=X.ArrayExpression=X.ArgumentPlaceholder=X.AnyTypeAnnotation=void 0,X.TSNumberKeyword=X.TSNullKeyword=X.TSNonNullExpression=X.TSNeverKeyword=X.TSNamespaceExportDeclaration=X.TSNamedTupleMember=X.TSModuleDeclaration=X.TSModuleBlock=X.TSMethodSignature=X.TSMappedType=X.TSLiteralType=X.TSIntrinsicKeyword=X.TSIntersectionType=X.TSInterfaceDeclaration=X.TSInterfaceBody=X.TSInstantiationExpression=X.TSInferType=X.TSIndexedAccessType=X.TSIndexSignature=X.TSImportType=X.TSImportEqualsDeclaration=X.TSFunctionType=X.TSExternalModuleReference=X.TSExpressionWithTypeArguments=X.TSExportAssignment=X.TSEnumMember=X.TSEnumDeclaration=X.TSEnumBody=X.TSDeclareMethod=X.TSDeclareFunction=X.TSConstructorType=X.TSConstructSignatureDeclaration=X.TSConditionalType=X.TSCallSignatureDeclaration=X.TSBooleanKeyword=X.TSBigIntKeyword=X.TSAsExpression=X.TSArrayType=X.TSAnyKeyword=X.SymbolTypeAnnotation=X.SwitchStatement=X.SwitchCase=X.Super=X.StringTypeAnnotation=X.StringLiteralTypeAnnotation=X.StringLiteral=X.StaticBlock=X.SpreadProperty=X.SpreadElement=X.SequenceExpression=X.ReturnStatement=X.RestProperty=X.RestElement=X.RegexLiteral=X.RegExpLiteral=X.RecordExpression=X.QualifiedTypeIdentifier=X.Program=X.PrivateName=X.Placeholder=X.PipelineTopicExpression=X.PipelinePrimaryTopicReference=X.PipelineBareFunction=X.ParenthesizedExpression=X.OptionalMemberExpression=X.OptionalIndexedAccessType=X.OptionalCallExpression=X.OpaqueType=X.ObjectTypeSpreadProperty=X.ObjectTypeProperty=X.ObjectTypeInternalSlot=X.ObjectTypeIndexer=X.ObjectTypeCallProperty=X.ObjectTypeAnnotation=X.ObjectProperty=X.ObjectPattern=X.ObjectMethod=X.ObjectExpression=X.NumericLiteral=X.NumberTypeAnnotation=X.NumberLiteralTypeAnnotation=X.NumberLiteral=X.NullableTypeAnnotation=X.NullLiteralTypeAnnotation=X.NullLiteral=X.Noop=X.NewExpression=X.ModuleExpression=X.MixedTypeAnnotation=X.MetaProperty=X.MemberExpression=X.LogicalExpression=X.LabeledStatement=X.JSXText=X.JSXSpreadChild=X.JSXSpreadAttribute=X.JSXOpeningFragment=X.JSXOpeningElement=X.JSXNamespacedName=X.JSXMemberExpression=void 0,X.YieldExpression=X.WithStatement=X.WhileStatement=X.VoidTypeAnnotation=X.VoidPattern=X.Variance=X.VariableDeclarator=X.VariableDeclaration=X.V8IntrinsicIdentifier=X.UpdateExpression=X.UnionTypeAnnotation=X.UnaryExpression=X.TypeofTypeAnnotation=X.TypeParameterInstantiation=X.TypeParameterDeclaration=X.TypeParameter=X.TypeCastExpression=X.TypeAnnotation=X.TypeAlias=X.TupleTypeAnnotation=X.TupleExpression=X.TryStatement=X.TopicReference=X.ThrowStatement=X.ThisTypeAnnotation=X.ThisExpression=X.TemplateLiteral=X.TemplateElement=X.TaggedTemplateExpression=X.TSVoidKeyword=X.TSUnknownKeyword=X.TSUnionType=X.TSUndefinedKeyword=X.TSTypeReference=X.TSTypeQuery=X.TSTypePredicate=X.TSTypeParameterInstantiation=X.TSTypeParameterDeclaration=X.TSTypeParameter=X.TSTypeOperator=X.TSTypeLiteral=X.TSTypeAssertion=X.TSTypeAnnotation=X.TSTypeAliasDeclaration=X.TSTupleType=X.TSThisType=X.TSTemplateLiteralType=X.TSSymbolKeyword=X.TSStringKeyword=X.TSSatisfiesExpression=X.TSRestType=X.TSQualifiedName=X.TSPropertySignature=X.TSParenthesizedType=X.TSParameterProperty=X.TSOptionalType=X.TSObjectKeyword=void 0;var t=Im();Po();function e(r){return t[r]}return X.ArrayExpression=e("arrayExpression"),X.AssignmentExpression=e("assignmentExpression"),X.BinaryExpression=e("binaryExpression"),X.InterpreterDirective=e("interpreterDirective"),X.Directive=e("directive"),X.DirectiveLiteral=e("directiveLiteral"),X.BlockStatement=e("blockStatement"),X.BreakStatement=e("breakStatement"),X.CallExpression=e("callExpression"),X.CatchClause=e("catchClause"),X.ConditionalExpression=e("conditionalExpression"),X.ContinueStatement=e("continueStatement"),X.DebuggerStatement=e("debuggerStatement"),X.DoWhileStatement=e("doWhileStatement"),X.EmptyStatement=e("emptyStatement"),X.ExpressionStatement=e("expressionStatement"),X.File=e("file"),X.ForInStatement=e("forInStatement"),X.ForStatement=e("forStatement"),X.FunctionDeclaration=e("functionDeclaration"),X.FunctionExpression=e("functionExpression"),X.Identifier=e("identifier"),X.IfStatement=e("ifStatement"),X.LabeledStatement=e("labeledStatement"),X.StringLiteral=e("stringLiteral"),X.NumericLiteral=e("numericLiteral"),X.NullLiteral=e("nullLiteral"),X.BooleanLiteral=e("booleanLiteral"),X.RegExpLiteral=e("regExpLiteral"),X.LogicalExpression=e("logicalExpression"),X.MemberExpression=e("memberExpression"),X.NewExpression=e("newExpression"),X.Program=e("program"),X.ObjectExpression=e("objectExpression"),X.ObjectMethod=e("objectMethod"),X.ObjectProperty=e("objectProperty"),X.RestElement=e("restElement"),X.ReturnStatement=e("returnStatement"),X.SequenceExpression=e("sequenceExpression"),X.ParenthesizedExpression=e("parenthesizedExpression"),X.SwitchCase=e("switchCase"),X.SwitchStatement=e("switchStatement"),X.ThisExpression=e("thisExpression"),X.ThrowStatement=e("throwStatement"),X.TryStatement=e("tryStatement"),X.UnaryExpression=e("unaryExpression"),X.UpdateExpression=e("updateExpression"),X.VariableDeclaration=e("variableDeclaration"),X.VariableDeclarator=e("variableDeclarator"),X.WhileStatement=e("whileStatement"),X.WithStatement=e("withStatement"),X.AssignmentPattern=e("assignmentPattern"),X.ArrayPattern=e("arrayPattern"),X.ArrowFunctionExpression=e("arrowFunctionExpression"),X.ClassBody=e("classBody"),X.ClassExpression=e("classExpression"),X.ClassDeclaration=e("classDeclaration"),X.ExportAllDeclaration=e("exportAllDeclaration"),X.ExportDefaultDeclaration=e("exportDefaultDeclaration"),X.ExportNamedDeclaration=e("exportNamedDeclaration"),X.ExportSpecifier=e("exportSpecifier"),X.ForOfStatement=e("forOfStatement"),X.ImportDeclaration=e("importDeclaration"),X.ImportDefaultSpecifier=e("importDefaultSpecifier"),X.ImportNamespaceSpecifier=e("importNamespaceSpecifier"),X.ImportSpecifier=e("importSpecifier"),X.ImportExpression=e("importExpression"),X.MetaProperty=e("metaProperty"),X.ClassMethod=e("classMethod"),X.ObjectPattern=e("objectPattern"),X.SpreadElement=e("spreadElement"),X.Super=e("super"),X.TaggedTemplateExpression=e("taggedTemplateExpression"),X.TemplateElement=e("templateElement"),X.TemplateLiteral=e("templateLiteral"),X.YieldExpression=e("yieldExpression"),X.AwaitExpression=e("awaitExpression"),X.Import=e("import"),X.BigIntLiteral=e("bigIntLiteral"),X.ExportNamespaceSpecifier=e("exportNamespaceSpecifier"),X.OptionalMemberExpression=e("optionalMemberExpression"),X.OptionalCallExpression=e("optionalCallExpression"),X.ClassProperty=e("classProperty"),X.ClassAccessorProperty=e("classAccessorProperty"),X.ClassPrivateProperty=e("classPrivateProperty"),X.ClassPrivateMethod=e("classPrivateMethod"),X.PrivateName=e("privateName"),X.StaticBlock=e("staticBlock"),X.ImportAttribute=e("importAttribute"),X.AnyTypeAnnotation=e("anyTypeAnnotation"),X.ArrayTypeAnnotation=e("arrayTypeAnnotation"),X.BooleanTypeAnnotation=e("booleanTypeAnnotation"),X.BooleanLiteralTypeAnnotation=e("booleanLiteralTypeAnnotation"),X.NullLiteralTypeAnnotation=e("nullLiteralTypeAnnotation"),X.ClassImplements=e("classImplements"),X.DeclareClass=e("declareClass"),X.DeclareFunction=e("declareFunction"),X.DeclareInterface=e("declareInterface"),X.DeclareModule=e("declareModule"),X.DeclareModuleExports=e("declareModuleExports"),X.DeclareTypeAlias=e("declareTypeAlias"),X.DeclareOpaqueType=e("declareOpaqueType"),X.DeclareVariable=e("declareVariable"),X.DeclareExportDeclaration=e("declareExportDeclaration"),X.DeclareExportAllDeclaration=e("declareExportAllDeclaration"),X.DeclaredPredicate=e("declaredPredicate"),X.ExistsTypeAnnotation=e("existsTypeAnnotation"),X.FunctionTypeAnnotation=e("functionTypeAnnotation"),X.FunctionTypeParam=e("functionTypeParam"),X.GenericTypeAnnotation=e("genericTypeAnnotation"),X.InferredPredicate=e("inferredPredicate"),X.InterfaceExtends=e("interfaceExtends"),X.InterfaceDeclaration=e("interfaceDeclaration"),X.InterfaceTypeAnnotation=e("interfaceTypeAnnotation"),X.IntersectionTypeAnnotation=e("intersectionTypeAnnotation"),X.MixedTypeAnnotation=e("mixedTypeAnnotation"),X.EmptyTypeAnnotation=e("emptyTypeAnnotation"),X.NullableTypeAnnotation=e("nullableTypeAnnotation"),X.NumberLiteralTypeAnnotation=e("numberLiteralTypeAnnotation"),X.NumberTypeAnnotation=e("numberTypeAnnotation"),X.ObjectTypeAnnotation=e("objectTypeAnnotation"),X.ObjectTypeInternalSlot=e("objectTypeInternalSlot"),X.ObjectTypeCallProperty=e("objectTypeCallProperty"),X.ObjectTypeIndexer=e("objectTypeIndexer"),X.ObjectTypeProperty=e("objectTypeProperty"),X.ObjectTypeSpreadProperty=e("objectTypeSpreadProperty"),X.OpaqueType=e("opaqueType"),X.QualifiedTypeIdentifier=e("qualifiedTypeIdentifier"),X.StringLiteralTypeAnnotation=e("stringLiteralTypeAnnotation"),X.StringTypeAnnotation=e("stringTypeAnnotation"),X.SymbolTypeAnnotation=e("symbolTypeAnnotation"),X.ThisTypeAnnotation=e("thisTypeAnnotation"),X.TupleTypeAnnotation=e("tupleTypeAnnotation"),X.TypeofTypeAnnotation=e("typeofTypeAnnotation"),X.TypeAlias=e("typeAlias"),X.TypeAnnotation=e("typeAnnotation"),X.TypeCastExpression=e("typeCastExpression"),X.TypeParameter=e("typeParameter"),X.TypeParameterDeclaration=e("typeParameterDeclaration"),X.TypeParameterInstantiation=e("typeParameterInstantiation"),X.UnionTypeAnnotation=e("unionTypeAnnotation"),X.Variance=e("variance"),X.VoidTypeAnnotation=e("voidTypeAnnotation"),X.EnumDeclaration=e("enumDeclaration"),X.EnumBooleanBody=e("enumBooleanBody"),X.EnumNumberBody=e("enumNumberBody"),X.EnumStringBody=e("enumStringBody"),X.EnumSymbolBody=e("enumSymbolBody"),X.EnumBooleanMember=e("enumBooleanMember"),X.EnumNumberMember=e("enumNumberMember"),X.EnumStringMember=e("enumStringMember"),X.EnumDefaultedMember=e("enumDefaultedMember"),X.IndexedAccessType=e("indexedAccessType"),X.OptionalIndexedAccessType=e("optionalIndexedAccessType"),X.JSXAttribute=e("jsxAttribute"),X.JSXClosingElement=e("jsxClosingElement"),X.JSXElement=e("jsxElement"),X.JSXEmptyExpression=e("jsxEmptyExpression"),X.JSXExpressionContainer=e("jsxExpressionContainer"),X.JSXSpreadChild=e("jsxSpreadChild"),X.JSXIdentifier=e("jsxIdentifier"),X.JSXMemberExpression=e("jsxMemberExpression"),X.JSXNamespacedName=e("jsxNamespacedName"),X.JSXOpeningElement=e("jsxOpeningElement"),X.JSXSpreadAttribute=e("jsxSpreadAttribute"),X.JSXText=e("jsxText"),X.JSXFragment=e("jsxFragment"),X.JSXOpeningFragment=e("jsxOpeningFragment"),X.JSXClosingFragment=e("jsxClosingFragment"),X.Noop=e("noop"),X.Placeholder=e("placeholder"),X.V8IntrinsicIdentifier=e("v8IntrinsicIdentifier"),X.ArgumentPlaceholder=e("argumentPlaceholder"),X.BindExpression=e("bindExpression"),X.Decorator=e("decorator"),X.DoExpression=e("doExpression"),X.ExportDefaultSpecifier=e("exportDefaultSpecifier"),X.RecordExpression=e("recordExpression"),X.TupleExpression=e("tupleExpression"),X.DecimalLiteral=e("decimalLiteral"),X.ModuleExpression=e("moduleExpression"),X.TopicReference=e("topicReference"),X.PipelineTopicExpression=e("pipelineTopicExpression"),X.PipelineBareFunction=e("pipelineBareFunction"),X.PipelinePrimaryTopicReference=e("pipelinePrimaryTopicReference"),X.VoidPattern=e("voidPattern"),X.TSParameterProperty=e("tsParameterProperty"),X.TSDeclareFunction=e("tsDeclareFunction"),X.TSDeclareMethod=e("tsDeclareMethod"),X.TSQualifiedName=e("tsQualifiedName"),X.TSCallSignatureDeclaration=e("tsCallSignatureDeclaration"),X.TSConstructSignatureDeclaration=e("tsConstructSignatureDeclaration"),X.TSPropertySignature=e("tsPropertySignature"),X.TSMethodSignature=e("tsMethodSignature"),X.TSIndexSignature=e("tsIndexSignature"),X.TSAnyKeyword=e("tsAnyKeyword"),X.TSBooleanKeyword=e("tsBooleanKeyword"),X.TSBigIntKeyword=e("tsBigIntKeyword"),X.TSIntrinsicKeyword=e("tsIntrinsicKeyword"),X.TSNeverKeyword=e("tsNeverKeyword"),X.TSNullKeyword=e("tsNullKeyword"),X.TSNumberKeyword=e("tsNumberKeyword"),X.TSObjectKeyword=e("tsObjectKeyword"),X.TSStringKeyword=e("tsStringKeyword"),X.TSSymbolKeyword=e("tsSymbolKeyword"),X.TSUndefinedKeyword=e("tsUndefinedKeyword"),X.TSUnknownKeyword=e("tsUnknownKeyword"),X.TSVoidKeyword=e("tsVoidKeyword"),X.TSThisType=e("tsThisType"),X.TSFunctionType=e("tsFunctionType"),X.TSConstructorType=e("tsConstructorType"),X.TSTypeReference=e("tsTypeReference"),X.TSTypePredicate=e("tsTypePredicate"),X.TSTypeQuery=e("tsTypeQuery"),X.TSTypeLiteral=e("tsTypeLiteral"),X.TSArrayType=e("tsArrayType"),X.TSTupleType=e("tsTupleType"),X.TSOptionalType=e("tsOptionalType"),X.TSRestType=e("tsRestType"),X.TSNamedTupleMember=e("tsNamedTupleMember"),X.TSUnionType=e("tsUnionType"),X.TSIntersectionType=e("tsIntersectionType"),X.TSConditionalType=e("tsConditionalType"),X.TSInferType=e("tsInferType"),X.TSParenthesizedType=e("tsParenthesizedType"),X.TSTypeOperator=e("tsTypeOperator"),X.TSIndexedAccessType=e("tsIndexedAccessType"),X.TSMappedType=e("tsMappedType"),X.TSTemplateLiteralType=e("tsTemplateLiteralType"),X.TSLiteralType=e("tsLiteralType"),X.TSExpressionWithTypeArguments=e("tsExpressionWithTypeArguments"),X.TSInterfaceDeclaration=e("tsInterfaceDeclaration"),X.TSInterfaceBody=e("tsInterfaceBody"),X.TSTypeAliasDeclaration=e("tsTypeAliasDeclaration"),X.TSInstantiationExpression=e("tsInstantiationExpression"),X.TSAsExpression=e("tsAsExpression"),X.TSSatisfiesExpression=e("tsSatisfiesExpression"),X.TSTypeAssertion=e("tsTypeAssertion"),X.TSEnumBody=e("tsEnumBody"),X.TSEnumDeclaration=e("tsEnumDeclaration"),X.TSEnumMember=e("tsEnumMember"),X.TSModuleDeclaration=e("tsModuleDeclaration"),X.TSModuleBlock=e("tsModuleBlock"),X.TSImportType=e("tsImportType"),X.TSImportEqualsDeclaration=e("tsImportEqualsDeclaration"),X.TSExternalModuleReference=e("tsExternalModuleReference"),X.TSNonNullExpression=e("tsNonNullExpression"),X.TSExportAssignment=e("tsExportAssignment"),X.TSNamespaceExportDeclaration=e("tsNamespaceExportDeclaration"),X.TSTypeAnnotation=e("tsTypeAnnotation"),X.TSTypeParameterInstantiation=e("tsTypeParameterInstantiation"),X.TSTypeParameterDeclaration=e("tsTypeParameterDeclaration"),X.TSTypeParameter=e("tsTypeParameter"),X.NumberLiteral=t.numberLiteral,X.RegexLiteral=t.regexLiteral,X.RestProperty=t.restProperty,X.SpreadProperty=t.spreadProperty,X}var Nm;function qn(){return Nm||(Nm=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Im();Object.keys(e).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})});var r=IE();Object.keys(r).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===r[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return r[n]}})})}(Bf)),Bf}var km;function OE(){if(km)return Dl;km=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.default=r;var t=qn(),e=Ut();function r(n,s){const o=n.value.split(/\r\n|\n|\r/);let a=0;for(let p=0;p<o.length;p++)/[^ \t]/.exec(o[p])&&(a=p);let u="";for(let p=0;p<o.length;p++){const y=o[p],h=p===0,g=p===o.length-1,b=p===a;let S=y.replace(/\t/g," ");h||(S=S.replace(/^ +/,"")),g||(S=S.replace(/ +$/,"")),S&&(b||(S+=" "),u+=S)}u&&s.push((0,e.inherits)((0,t.stringLiteral)(u),n))}return Dl}var Dm;function NE(){if(Dm)return kl;Dm=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=r;var t=Ir(),e=OE();function r(n){const s=[];for(let o=0;o<n.children.length;o++){let a=n.children[o];if((0,t.isJSXText)(a)){(0,e.default)(a,s);continue}(0,t.isJSXExpressionContainer)(a)&&(a=a.expression),!(0,t.isJSXEmptyExpression)(a)&&s.push(a)}return s}return kl}var Fl={},ql={},Bm;function Rm(){if(Bm)return ql;Bm=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.default=e;var t=Oi();function e(r){return!!(r&&t.VISITOR_KEYS[r.type])}return ql}var jm;function kE(){if(jm)return Fl;jm=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=e;var t=Rm();function e(r){if(!(0,t.default)(r)){var n;const s=(n=r==null?void 0:r.type)!=null?n:JSON.stringify(r);throw new TypeError(`Not a valid node of type "${s}"`)}}return Fl}var we={},Mm;function DE(){if(Mm)return we;Mm=1,Object.defineProperty(we,"__esModule",{value:!0}),we.assertAccessor=sy,we.assertAnyTypeAnnotation=Sr,we.assertArgumentPlaceholder=hs,we.assertArrayExpression=n,we.assertArrayPattern=Le,we.assertArrayTypeAnnotation=Rt,we.assertArrowFunctionExpression=gt,we.assertAssignmentExpression=s,we.assertAssignmentPattern=qe,we.assertAwaitExpression=rt,we.assertBigIntLiteral=mt,we.assertBinary=qt,we.assertBinaryExpression=o,we.assertBindExpression=Ks,we.assertBlock=Jt,we.assertBlockParent=Kt,we.assertBlockStatement=y,we.assertBooleanLiteral=me,we.assertBooleanLiteralTypeAnnotation=Vr,we.assertBooleanTypeAnnotation=ui,we.assertBreakStatement=h,we.assertCallExpression=g,we.assertCatchClause=b,we.assertClass=vf,we.assertClassAccessorProperty=lr,we.assertClassBody=ht,we.assertClassDeclaration=Se,we.assertClassExpression=xe,we.assertClassImplements=Rr,we.assertClassMethod=pt,we.assertClassPrivateMethod=Wt,we.assertClassPrivateProperty=xr,we.assertClassProperty=Ht,we.assertCompletionStatement=F,we.assertConditional=ie,we.assertConditionalExpression=S,we.assertContinueStatement=O,we.assertDebuggerStatement=_,we.assertDecimalLiteral=zi,we.assertDeclaration=Vh,we.assertDeclareClass=jr,we.assertDeclareExportAllDeclaration=nn,we.assertDeclareExportDeclaration=rn,we.assertDeclareFunction=Dn,we.assertDeclareInterface=Kr,we.assertDeclareModule=Hn,we.assertDeclareModuleExports=Nr,we.assertDeclareOpaqueType=fi,we.assertDeclareTypeAlias=An,we.assertDeclareVariable=dr,we.assertDeclaredPredicate=hn,we.assertDecorator=En,we.assertDirective=u,we.assertDirectiveLiteral=p,we.assertDoExpression=ti,we.assertDoWhileStatement=w,we.assertEmptyStatement=C,we.assertEmptyTypeAnnotation=mn,we.assertEnumBody=py,we.assertEnumBooleanBody=Tn,we.assertEnumBooleanMember=Fs,we.assertEnumDeclaration=Cr,we.assertEnumDefaultedMember=Ui,we.assertEnumMember=dy,we.assertEnumNumberBody=Mn,we.assertEnumNumberMember=Mr,we.assertEnumStringBody=qi,we.assertEnumStringMember=$i,we.assertEnumSymbolBody=Yr,we.assertExistsTypeAnnotation=Wr,we.assertExportAllDeclaration=se,we.assertExportDeclaration=ny,we.assertExportDefaultDeclaration=ee,we.assertExportDefaultSpecifier=Wi,we.assertExportNamedDeclaration=oe,we.assertExportNamespaceSpecifier=Bt,we.assertExportSpecifier=W,we.assertExpression=St,we.assertExpressionStatement=T,we.assertExpressionWrapper=Nt,we.assertFile=x,we.assertFlow=oy,we.assertFlowBaseAnnotation=cy,we.assertFlowDeclaration=uy,we.assertFlowPredicate=fy,we.assertFlowType=ly,we.assertFor=cr,we.assertForInStatement=E,we.assertForOfStatement=fe,we.assertForStatement=j,we.assertForXStatement=kr,we.assertFunction=Ai,we.assertFunctionDeclaration=R,we.assertFunctionExpression=I,we.assertFunctionParameter=Kh,we.assertFunctionParent=$h,we.assertFunctionTypeAnnotation=yn,we.assertFunctionTypeParam=Ri,we.assertGenericTypeAnnotation=Cn,we.assertIdentifier=D,we.assertIfStatement=Z,we.assertImmutable=Jh,we.assertImport=yt,we.assertImportAttribute=dn,we.assertImportDeclaration=Re,we.assertImportDefaultSpecifier=Fe,we.assertImportExpression=_t,we.assertImportNamespaceSpecifier=Ke,we.assertImportOrExportDeclaration=ry,we.assertImportSpecifier=it,we.assertIndexedAccessType=It,we.assertInferredPredicate=is,we.assertInterfaceDeclaration=Jn,we.assertInterfaceExtends=pi,we.assertInterfaceTypeAnnotation=zt,we.assertInterpreterDirective=a,we.assertIntersectionTypeAnnotation=ji,we.assertJSX=hy,we.assertJSXAttribute=mi,we.assertJSXClosingElement=fs,we.assertJSXClosingFragment=Ki,we.assertJSXElement=qs,we.assertJSXEmptyExpression=Zn,we.assertJSXExpressionContainer=$s,we.assertJSXFragment=vi,we.assertJSXIdentifier=gi,we.assertJSXMemberExpression=ei,we.assertJSXNamespacedName=bi,we.assertJSXOpeningElement=Us,we.assertJSXOpeningFragment=Vi,we.assertJSXSpreadAttribute=Vs,we.assertJSXSpreadChild=ps,we.assertJSXText=ds,we.assertLVal=Gh,we.assertLabeledStatement=J,we.assertLiteral=Hh,we.assertLogicalExpression=Ae,we.assertLoop=ke,we.assertMemberExpression=ce,we.assertMetaProperty=Mt,we.assertMethod=Xh,we.assertMiscellaneous=yy,we.assertMixedTypeAnnotation=ss,we.assertModuleDeclaration=m,we.assertModuleExpression=Tr,we.assertModuleSpecifier=iy,we.assertNewExpression=ue,we.assertNoop=Si,we.assertNullLiteral=ne,we.assertNullLiteralTypeAnnotation=tn,we.assertNullableTypeAnnotation=Pr,we.assertNumberLiteral=Sy,we.assertNumberLiteralTypeAnnotation=as,we.assertNumberTypeAnnotation=di,we.assertNumericLiteral=$,we.assertObjectExpression=Y,we.assertObjectMember=Qh,we.assertObjectMethod=he,we.assertObjectPattern=xt,we.assertObjectProperty=ae,we.assertObjectTypeAnnotation=os,we.assertObjectTypeCallProperty=gn,we.assertObjectTypeIndexer=Bn,we.assertObjectTypeInternalSlot=ir,we.assertObjectTypeProperty=Rn,we.assertObjectTypeSpreadProperty=Mi,we.assertOpaqueType=Yn,we.assertOptionalCallExpression=Vt,we.assertOptionalIndexedAccessType=Qn,we.assertOptionalMemberExpression=Lt,we.assertParenthesizedExpression=ye,we.assertPattern=ty,we.assertPatternLike=Wh,we.assertPipelineBareFunction=Hi,we.assertPipelinePrimaryTopicReference=xi,we.assertPipelineTopicExpression=sn,we.assertPlaceholder=Ti,we.assertPrivate=ay,we.assertPrivateName=tr,we.assertProgram=K,we.assertProperty=Zh,we.assertPureish=Uh,we.assertQualifiedTypeIdentifier=Xn,we.assertRecordExpression=Ei,we.assertRegExpLiteral=Ce,we.assertRegexLiteral=Ty,we.assertRestElement=U,we.assertRestProperty=Ey,we.assertReturnStatement=L,we.assertScopable=$t,we.assertSequenceExpression=H,we.assertSpreadElement=te,we.assertSpreadProperty=xy,we.assertStandardized=jt,we.assertStatement=B,we.assertStaticBlock=pn,we.assertStringLiteral=N,we.assertStringLiteralTypeAnnotation=Li,we.assertStringTypeAnnotation=bn,we.assertSuper=de,we.assertSwitchCase=Ie,we.assertSwitchStatement=Ee,we.assertSymbolTypeAnnotation=ls,we.assertTSAnyKeyword=Ue,we.assertTSArrayType=Xr,we.assertTSAsExpression=We,we.assertTSBaseType=vy,we.assertTSBigIntKeyword=vt,we.assertTSBooleanKeyword=ct,we.assertTSCallSignatureDeclaration=A,we.assertTSConditionalType=Pn,we.assertTSConstructSignatureDeclaration=Q,we.assertTSConstructorType=Xi,we.assertTSDeclareFunction=i,we.assertTSDeclareMethod=c,we.assertTSEntityName=zh,we.assertTSEnumBody=Ge,we.assertTSEnumDeclaration=He,we.assertTSEnumMember=nt,we.assertTSExportAssignment=bt,we.assertTSExpressionWithTypeArguments=V,we.assertTSExternalModuleReference=ot,we.assertTSFunctionType=Yi,we.assertTSImportEqualsDeclaration=lt,we.assertTSImportType=Qe,we.assertTSIndexSignature=Be,we.assertTSIndexedAccessType=Zi,we.assertTSInferType=wi,we.assertTSInstantiationExpression=Ne,we.assertTSInterfaceBody=pe,we.assertTSInterfaceDeclaration=re,we.assertTSIntersectionType=Qi,we.assertTSIntrinsicKeyword=wt,we.assertTSLiteralType=M,we.assertTSMappedType=v,we.assertTSMethodSignature=Pe,we.assertTSModuleBlock=Ye,we.assertTSModuleDeclaration=Xe,we.assertTSNamedTupleMember=vs,we.assertTSNamespaceExportDeclaration=Et,we.assertTSNeverKeyword=Ot,we.assertTSNonNullExpression=ft,we.assertTSNullKeyword=Gt,we.assertTSNumberKeyword=or,we.assertTSObjectKeyword=Ft,we.assertTSOptionalType=ii,we.assertTSParameterProperty=l,we.assertTSParenthesizedType=On,we.assertTSPropertySignature=le,we.assertTSQualifiedName=d,we.assertTSRestType=In,we.assertTSSatisfiesExpression=at,we.assertTSStringKeyword=sr,we.assertTSSymbolKeyword=xn,we.assertTSTemplateLiteralType=P,we.assertTSThisType=Pi,we.assertTSTupleType=hr,we.assertTSType=by,we.assertTSTypeAliasDeclaration=Te,we.assertTSTypeAnnotation=Ct,we.assertTSTypeAssertion=Je,we.assertTSTypeElement=gy,we.assertTSTypeLiteral=ni,we.assertTSTypeOperator=on,we.assertTSTypeParameter=At,we.assertTSTypeParameterDeclaration=Dt,we.assertTSTypeParameterInstantiation=Pt,we.assertTSTypePredicate=gs,we.assertTSTypeQuery=bs,we.assertTSTypeReference=ms,we.assertTSUndefinedKeyword=an,we.assertTSUnionType=_i,we.assertTSUnknownKeyword=ys,we.assertTSVoidKeyword=Ji,we.assertTaggedTemplateExpression=G,we.assertTemplateElement=be,we.assertTemplateLiteral=et,we.assertTerminatorless=k,we.assertThisExpression=De,we.assertThisTypeAnnotation=vn,we.assertThrowStatement=Me,we.assertTopicReference=ri,we.assertTryStatement=Ve,we.assertTupleExpression=Gi,we.assertTupleTypeAnnotation=Qt,we.assertTypeAlias=Ls,we.assertTypeAnnotation=hi,we.assertTypeCastExpression=Ar,we.assertTypeParameter=jn,we.assertTypeParameterDeclaration=yi,we.assertTypeParameterInstantiation=Sn,we.assertTypeScript=my,we.assertTypeofTypeAnnotation=cs,we.assertUnaryExpression=Ze,we.assertUnaryLike=ey,we.assertUnionTypeAnnotation=us,we.assertUpdateExpression=ut,we.assertUserWhitespacable=Yh,we.assertV8IntrinsicIdentifier=Ln,we.assertVariableDeclaration=st,we.assertVariableDeclarator=dt,we.assertVariance=Fi,we.assertVoidPattern=z,we.assertVoidTypeAnnotation=br,we.assertWhile=tt,we.assertWhileStatement=$e,we.assertWithStatement=je,we.assertYieldExpression=ge;var t=_o(),e=Po();function r(f,q,bT){if(!(0,t.default)(f,q,bT))throw new Error(`Expected type "${f}" with option ${JSON.stringify(bT)}, but instead got "${q.type}".`)}function n(f,q){r("ArrayExpression",f,q)}function s(f,q){r("AssignmentExpression",f,q)}function o(f,q){r("BinaryExpression",f,q)}function a(f,q){r("InterpreterDirective",f,q)}function u(f,q){r("Directive",f,q)}function p(f,q){r("DirectiveLiteral",f,q)}function y(f,q){r("BlockStatement",f,q)}function h(f,q){r("BreakStatement",f,q)}function g(f,q){r("CallExpression",f,q)}function b(f,q){r("CatchClause",f,q)}function S(f,q){r("ConditionalExpression",f,q)}function O(f,q){r("ContinueStatement",f,q)}function _(f,q){r("DebuggerStatement",f,q)}function w(f,q){r("DoWhileStatement",f,q)}function C(f,q){r("EmptyStatement",f,q)}function T(f,q){r("ExpressionStatement",f,q)}function x(f,q){r("File",f,q)}function E(f,q){r("ForInStatement",f,q)}function j(f,q){r("ForStatement",f,q)}function R(f,q){r("FunctionDeclaration",f,q)}function I(f,q){r("FunctionExpression",f,q)}function D(f,q){r("Identifier",f,q)}function Z(f,q){r("IfStatement",f,q)}function J(f,q){r("LabeledStatement",f,q)}function N(f,q){r("StringLiteral",f,q)}function $(f,q){r("NumericLiteral",f,q)}function ne(f,q){r("NullLiteral",f,q)}function me(f,q){r("BooleanLiteral",f,q)}function Ce(f,q){r("RegExpLiteral",f,q)}function Ae(f,q){r("LogicalExpression",f,q)}function ce(f,q){r("MemberExpression",f,q)}function ue(f,q){r("NewExpression",f,q)}function K(f,q){r("Program",f,q)}function Y(f,q){r("ObjectExpression",f,q)}function he(f,q){r("ObjectMethod",f,q)}function ae(f,q){r("ObjectProperty",f,q)}function U(f,q){r("RestElement",f,q)}function L(f,q){r("ReturnStatement",f,q)}function H(f,q){r("SequenceExpression",f,q)}function ye(f,q){r("ParenthesizedExpression",f,q)}function Ie(f,q){r("SwitchCase",f,q)}function Ee(f,q){r("SwitchStatement",f,q)}function De(f,q){r("ThisExpression",f,q)}function Me(f,q){r("ThrowStatement",f,q)}function Ve(f,q){r("TryStatement",f,q)}function Ze(f,q){r("UnaryExpression",f,q)}function ut(f,q){r("UpdateExpression",f,q)}function st(f,q){r("VariableDeclaration",f,q)}function dt(f,q){r("VariableDeclarator",f,q)}function $e(f,q){r("WhileStatement",f,q)}function je(f,q){r("WithStatement",f,q)}function qe(f,q){r("AssignmentPattern",f,q)}function Le(f,q){r("ArrayPattern",f,q)}function gt(f,q){r("ArrowFunctionExpression",f,q)}function ht(f,q){r("ClassBody",f,q)}function xe(f,q){r("ClassExpression",f,q)}function Se(f,q){r("ClassDeclaration",f,q)}function se(f,q){r("ExportAllDeclaration",f,q)}function ee(f,q){r("ExportDefaultDeclaration",f,q)}function oe(f,q){r("ExportNamedDeclaration",f,q)}function W(f,q){r("ExportSpecifier",f,q)}function fe(f,q){r("ForOfStatement",f,q)}function Re(f,q){r("ImportDeclaration",f,q)}function Fe(f,q){r("ImportDefaultSpecifier",f,q)}function Ke(f,q){r("ImportNamespaceSpecifier",f,q)}function it(f,q){r("ImportSpecifier",f,q)}function _t(f,q){r("ImportExpression",f,q)}function Mt(f,q){r("MetaProperty",f,q)}function pt(f,q){r("ClassMethod",f,q)}function xt(f,q){r("ObjectPattern",f,q)}function te(f,q){r("SpreadElement",f,q)}function de(f,q){r("Super",f,q)}function G(f,q){r("TaggedTemplateExpression",f,q)}function be(f,q){r("TemplateElement",f,q)}function et(f,q){r("TemplateLiteral",f,q)}function ge(f,q){r("YieldExpression",f,q)}function rt(f,q){r("AwaitExpression",f,q)}function yt(f,q){r("Import",f,q)}function mt(f,q){r("BigIntLiteral",f,q)}function Bt(f,q){r("ExportNamespaceSpecifier",f,q)}function Lt(f,q){r("OptionalMemberExpression",f,q)}function Vt(f,q){r("OptionalCallExpression",f,q)}function Ht(f,q){r("ClassProperty",f,q)}function lr(f,q){r("ClassAccessorProperty",f,q)}function xr(f,q){r("ClassPrivateProperty",f,q)}function Wt(f,q){r("ClassPrivateMethod",f,q)}function tr(f,q){r("PrivateName",f,q)}function pn(f,q){r("StaticBlock",f,q)}function dn(f,q){r("ImportAttribute",f,q)}function Sr(f,q){r("AnyTypeAnnotation",f,q)}function Rt(f,q){r("ArrayTypeAnnotation",f,q)}function ui(f,q){r("BooleanTypeAnnotation",f,q)}function Vr(f,q){r("BooleanLiteralTypeAnnotation",f,q)}function tn(f,q){r("NullLiteralTypeAnnotation",f,q)}function Rr(f,q){r("ClassImplements",f,q)}function jr(f,q){r("DeclareClass",f,q)}function Dn(f,q){r("DeclareFunction",f,q)}function Kr(f,q){r("DeclareInterface",f,q)}function Hn(f,q){r("DeclareModule",f,q)}function Nr(f,q){r("DeclareModuleExports",f,q)}function An(f,q){r("DeclareTypeAlias",f,q)}function fi(f,q){r("DeclareOpaqueType",f,q)}function dr(f,q){r("DeclareVariable",f,q)}function rn(f,q){r("DeclareExportDeclaration",f,q)}function nn(f,q){r("DeclareExportAllDeclaration",f,q)}function hn(f,q){r("DeclaredPredicate",f,q)}function Wr(f,q){r("ExistsTypeAnnotation",f,q)}function yn(f,q){r("FunctionTypeAnnotation",f,q)}function Ri(f,q){r("FunctionTypeParam",f,q)}function Cn(f,q){r("GenericTypeAnnotation",f,q)}function is(f,q){r("InferredPredicate",f,q)}function pi(f,q){r("InterfaceExtends",f,q)}function Jn(f,q){r("InterfaceDeclaration",f,q)}function zt(f,q){r("InterfaceTypeAnnotation",f,q)}function ji(f,q){r("IntersectionTypeAnnotation",f,q)}function ss(f,q){r("MixedTypeAnnotation",f,q)}function mn(f,q){r("EmptyTypeAnnotation",f,q)}function Pr(f,q){r("NullableTypeAnnotation",f,q)}function as(f,q){r("NumberLiteralTypeAnnotation",f,q)}function di(f,q){r("NumberTypeAnnotation",f,q)}function os(f,q){r("ObjectTypeAnnotation",f,q)}function ir(f,q){r("ObjectTypeInternalSlot",f,q)}function gn(f,q){r("ObjectTypeCallProperty",f,q)}function Bn(f,q){r("ObjectTypeIndexer",f,q)}function Rn(f,q){r("ObjectTypeProperty",f,q)}function Mi(f,q){r("ObjectTypeSpreadProperty",f,q)}function Yn(f,q){r("OpaqueType",f,q)}function Xn(f,q){r("QualifiedTypeIdentifier",f,q)}function Li(f,q){r("StringLiteralTypeAnnotation",f,q)}function bn(f,q){r("StringTypeAnnotation",f,q)}function ls(f,q){r("SymbolTypeAnnotation",f,q)}function vn(f,q){r("ThisTypeAnnotation",f,q)}function Qt(f,q){r("TupleTypeAnnotation",f,q)}function cs(f,q){r("TypeofTypeAnnotation",f,q)}function Ls(f,q){r("TypeAlias",f,q)}function hi(f,q){r("TypeAnnotation",f,q)}function Ar(f,q){r("TypeCastExpression",f,q)}function jn(f,q){r("TypeParameter",f,q)}function yi(f,q){r("TypeParameterDeclaration",f,q)}function Sn(f,q){r("TypeParameterInstantiation",f,q)}function us(f,q){r("UnionTypeAnnotation",f,q)}function Fi(f,q){r("Variance",f,q)}function br(f,q){r("VoidTypeAnnotation",f,q)}function Cr(f,q){r("EnumDeclaration",f,q)}function Tn(f,q){r("EnumBooleanBody",f,q)}function Mn(f,q){r("EnumNumberBody",f,q)}function qi(f,q){r("EnumStringBody",f,q)}function Yr(f,q){r("EnumSymbolBody",f,q)}function Fs(f,q){r("EnumBooleanMember",f,q)}function Mr(f,q){r("EnumNumberMember",f,q)}function $i(f,q){r("EnumStringMember",f,q)}function Ui(f,q){r("EnumDefaultedMember",f,q)}function It(f,q){r("IndexedAccessType",f,q)}function Qn(f,q){r("OptionalIndexedAccessType",f,q)}function mi(f,q){r("JSXAttribute",f,q)}function fs(f,q){r("JSXClosingElement",f,q)}function qs(f,q){r("JSXElement",f,q)}function Zn(f,q){r("JSXEmptyExpression",f,q)}function $s(f,q){r("JSXExpressionContainer",f,q)}function ps(f,q){r("JSXSpreadChild",f,q)}function gi(f,q){r("JSXIdentifier",f,q)}function ei(f,q){r("JSXMemberExpression",f,q)}function bi(f,q){r("JSXNamespacedName",f,q)}function Us(f,q){r("JSXOpeningElement",f,q)}function Vs(f,q){r("JSXSpreadAttribute",f,q)}function ds(f,q){r("JSXText",f,q)}function vi(f,q){r("JSXFragment",f,q)}function Vi(f,q){r("JSXOpeningFragment",f,q)}function Ki(f,q){r("JSXClosingFragment",f,q)}function Si(f,q){r("Noop",f,q)}function Ti(f,q){r("Placeholder",f,q)}function Ln(f,q){r("V8IntrinsicIdentifier",f,q)}function hs(f,q){r("ArgumentPlaceholder",f,q)}function Ks(f,q){r("BindExpression",f,q)}function En(f,q){r("Decorator",f,q)}function ti(f,q){r("DoExpression",f,q)}function Wi(f,q){r("ExportDefaultSpecifier",f,q)}function Ei(f,q){r("RecordExpression",f,q)}function Gi(f,q){r("TupleExpression",f,q)}function zi(f,q){r("DecimalLiteral",f,q)}function Tr(f,q){r("ModuleExpression",f,q)}function ri(f,q){r("TopicReference",f,q)}function sn(f,q){r("PipelineTopicExpression",f,q)}function Hi(f,q){r("PipelineBareFunction",f,q)}function xi(f,q){r("PipelinePrimaryTopicReference",f,q)}function z(f,q){r("VoidPattern",f,q)}function l(f,q){r("TSParameterProperty",f,q)}function i(f,q){r("TSDeclareFunction",f,q)}function c(f,q){r("TSDeclareMethod",f,q)}function d(f,q){r("TSQualifiedName",f,q)}function A(f,q){r("TSCallSignatureDeclaration",f,q)}function Q(f,q){r("TSConstructSignatureDeclaration",f,q)}function le(f,q){r("TSPropertySignature",f,q)}function Pe(f,q){r("TSMethodSignature",f,q)}function Be(f,q){r("TSIndexSignature",f,q)}function Ue(f,q){r("TSAnyKeyword",f,q)}function ct(f,q){r("TSBooleanKeyword",f,q)}function vt(f,q){r("TSBigIntKeyword",f,q)}function wt(f,q){r("TSIntrinsicKeyword",f,q)}function Ot(f,q){r("TSNeverKeyword",f,q)}function Gt(f,q){r("TSNullKeyword",f,q)}function or(f,q){r("TSNumberKeyword",f,q)}function Ft(f,q){r("TSObjectKeyword",f,q)}function sr(f,q){r("TSStringKeyword",f,q)}function xn(f,q){r("TSSymbolKeyword",f,q)}function an(f,q){r("TSUndefinedKeyword",f,q)}function ys(f,q){r("TSUnknownKeyword",f,q)}function Ji(f,q){r("TSVoidKeyword",f,q)}function Pi(f,q){r("TSThisType",f,q)}function Yi(f,q){r("TSFunctionType",f,q)}function Xi(f,q){r("TSConstructorType",f,q)}function ms(f,q){r("TSTypeReference",f,q)}function gs(f,q){r("TSTypePredicate",f,q)}function bs(f,q){r("TSTypeQuery",f,q)}function ni(f,q){r("TSTypeLiteral",f,q)}function Xr(f,q){r("TSArrayType",f,q)}function hr(f,q){r("TSTupleType",f,q)}function ii(f,q){r("TSOptionalType",f,q)}function In(f,q){r("TSRestType",f,q)}function vs(f,q){r("TSNamedTupleMember",f,q)}function _i(f,q){r("TSUnionType",f,q)}function Qi(f,q){r("TSIntersectionType",f,q)}function Pn(f,q){r("TSConditionalType",f,q)}function wi(f,q){r("TSInferType",f,q)}function On(f,q){r("TSParenthesizedType",f,q)}function on(f,q){r("TSTypeOperator",f,q)}function Zi(f,q){r("TSIndexedAccessType",f,q)}function v(f,q){r("TSMappedType",f,q)}function P(f,q){r("TSTemplateLiteralType",f,q)}function M(f,q){r("TSLiteralType",f,q)}function V(f,q){r("TSExpressionWithTypeArguments",f,q)}function re(f,q){r("TSInterfaceDeclaration",f,q)}function pe(f,q){r("TSInterfaceBody",f,q)}function Te(f,q){r("TSTypeAliasDeclaration",f,q)}function Ne(f,q){r("TSInstantiationExpression",f,q)}function We(f,q){r("TSAsExpression",f,q)}function at(f,q){r("TSSatisfiesExpression",f,q)}function Je(f,q){r("TSTypeAssertion",f,q)}function Ge(f,q){r("TSEnumBody",f,q)}function He(f,q){r("TSEnumDeclaration",f,q)}function nt(f,q){r("TSEnumMember",f,q)}function Xe(f,q){r("TSModuleDeclaration",f,q)}function Ye(f,q){r("TSModuleBlock",f,q)}function Qe(f,q){r("TSImportType",f,q)}function lt(f,q){r("TSImportEqualsDeclaration",f,q)}function ot(f,q){r("TSExternalModuleReference",f,q)}function ft(f,q){r("TSNonNullExpression",f,q)}function bt(f,q){r("TSExportAssignment",f,q)}function Et(f,q){r("TSNamespaceExportDeclaration",f,q)}function Ct(f,q){r("TSTypeAnnotation",f,q)}function Pt(f,q){r("TSTypeParameterInstantiation",f,q)}function Dt(f,q){r("TSTypeParameterDeclaration",f,q)}function At(f,q){r("TSTypeParameter",f,q)}function jt(f,q){r("Standardized",f,q)}function St(f,q){r("Expression",f,q)}function qt(f,q){r("Binary",f,q)}function $t(f,q){r("Scopable",f,q)}function Kt(f,q){r("BlockParent",f,q)}function Jt(f,q){r("Block",f,q)}function B(f,q){r("Statement",f,q)}function k(f,q){r("Terminatorless",f,q)}function F(f,q){r("CompletionStatement",f,q)}function ie(f,q){r("Conditional",f,q)}function ke(f,q){r("Loop",f,q)}function tt(f,q){r("While",f,q)}function Nt(f,q){r("ExpressionWrapper",f,q)}function cr(f,q){r("For",f,q)}function kr(f,q){r("ForXStatement",f,q)}function Ai(f,q){r("Function",f,q)}function $h(f,q){r("FunctionParent",f,q)}function Uh(f,q){r("Pureish",f,q)}function Vh(f,q){r("Declaration",f,q)}function Kh(f,q){r("FunctionParameter",f,q)}function Wh(f,q){r("PatternLike",f,q)}function Gh(f,q){r("LVal",f,q)}function zh(f,q){r("TSEntityName",f,q)}function Hh(f,q){r("Literal",f,q)}function Jh(f,q){r("Immutable",f,q)}function Yh(f,q){r("UserWhitespacable",f,q)}function Xh(f,q){r("Method",f,q)}function Qh(f,q){r("ObjectMember",f,q)}function Zh(f,q){r("Property",f,q)}function ey(f,q){r("UnaryLike",f,q)}function ty(f,q){r("Pattern",f,q)}function vf(f,q){r("Class",f,q)}function ry(f,q){r("ImportOrExportDeclaration",f,q)}function ny(f,q){r("ExportDeclaration",f,q)}function iy(f,q){r("ModuleSpecifier",f,q)}function sy(f,q){r("Accessor",f,q)}function ay(f,q){r("Private",f,q)}function oy(f,q){r("Flow",f,q)}function ly(f,q){r("FlowType",f,q)}function cy(f,q){r("FlowBaseAnnotation",f,q)}function uy(f,q){r("FlowDeclaration",f,q)}function fy(f,q){r("FlowPredicate",f,q)}function py(f,q){r("EnumBody",f,q)}function dy(f,q){r("EnumMember",f,q)}function hy(f,q){r("JSX",f,q)}function yy(f,q){r("Miscellaneous",f,q)}function my(f,q){r("TypeScript",f,q)}function gy(f,q){r("TSTypeElement",f,q)}function by(f,q){r("TSType",f,q)}function vy(f,q){r("TSBaseType",f,q)}function Sy(f,q){(0,e.default)("assertNumberLiteral","assertNumericLiteral"),r("NumberLiteral",f,q)}function Ty(f,q){(0,e.default)("assertRegexLiteral","assertRegExpLiteral"),r("RegexLiteral",f,q)}function Ey(f,q){(0,e.default)("assertRestProperty","assertRestElement"),r("RestProperty",f,q)}function xy(f,q){(0,e.default)("assertSpreadProperty","assertSpreadElement"),r("SpreadProperty",f,q)}function m(f,q){(0,e.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),r("ModuleDeclaration",f,q)}return we}var Oo={},Lm;function BE(){if(Lm)return Oo;Lm=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var t=qn();Oo.default=e;function e(r){switch(r){case"string":return(0,t.stringTypeAnnotation)();case"number":return(0,t.numberTypeAnnotation)();case"undefined":return(0,t.voidTypeAnnotation)();case"boolean":return(0,t.booleanTypeAnnotation)();case"function":return(0,t.genericTypeAnnotation)((0,t.identifier)("Function"));case"object":return(0,t.genericTypeAnnotation)((0,t.identifier)("Object"));case"symbol":return(0,t.genericTypeAnnotation)((0,t.identifier)("Symbol"));case"bigint":return(0,t.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+r)}return Oo}var $l={},Ul={},Fm;function qm(){if(Fm)return Ul;Fm=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.default=r;var t=Ir();function e(n){return(0,t.isIdentifier)(n)?n.name:`${n.id.name}.${e(n.qualification)}`}function r(n){const s=Array.from(n),o=new Map,a=new Map,u=new Set,p=[];for(let y=0;y<s.length;y++){const h=s[y];if(h&&!p.includes(h)){if((0,t.isAnyTypeAnnotation)(h))return[h];if((0,t.isFlowBaseAnnotation)(h)){a.set(h.type,h);continue}if((0,t.isUnionTypeAnnotation)(h)){u.has(h.types)||(s.push(...h.types),u.add(h.types));continue}if((0,t.isGenericTypeAnnotation)(h)){const g=e(h.id);if(o.has(g)){let b=o.get(g);b.typeParameters?h.typeParameters&&(b.typeParameters.params.push(...h.typeParameters.params),b.typeParameters.params=r(b.typeParameters.params)):b=h.typeParameters}else o.set(g,h);continue}p.push(h)}}for(const[,y]of a)p.push(y);for(const[,y]of o)p.push(y);return p}return Ul}var $m;function RE(){if($m)return $l;$m=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.default=r;var t=qn(),e=qm();function r(n){const s=(0,e.default)(n);return s.length===1?s[0]:(0,t.unionTypeAnnotation)(s)}return $l}var Vl={},Kl={},Um;function jE(){if(Um)return Kl;Um=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.default=r;var t=Ir();function e(n){return(0,t.isIdentifier)(n)?n.name:(0,t.isThisExpression)(n)?"this":`${n.right.name}.${e(n.left)}`}function r(n){const s=Array.from(n),o=new Map,a=new Map,u=new Set,p=[];for(let y=0;y<s.length;y++){const h=s[y];if(!h||p.includes(h))continue;if((0,t.isTSAnyKeyword)(h))return[h];if((0,t.isTSBaseType)(h)){a.set(h.type,h);continue}if((0,t.isTSUnionType)(h)){u.has(h.types)||(s.push(...h.types),u.add(h.types));continue}const g="typeParameters";if((0,t.isTSTypeReference)(h)&&h[g]){const b=h[g],S=e(h.typeName);if(o.has(S)){let O=o.get(S);const _=O[g];_?(_.params.push(...b.params),_.params=r(_.params)):O=b}else o.set(S,h);continue}p.push(h)}for(const[,y]of a)p.push(y);for(const[,y]of o)p.push(y);return p}return Kl}var Vm;function ME(){if(Vm)return Vl;Vm=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=n;var t=qn(),e=jE(),r=Ir();function n(s){const o=s.map(u=>(0,r.isTSTypeAnnotation)(u)?u.typeAnnotation:u),a=(0,e.default)(o);return a.length===1?a[0]:(0,t.tsUnionType)(a)}return Vl}var Wl={},Km;function Wm(){if(Km)return Wl;Km=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.buildUndefinedNode=e;var t=qn();function e(){return(0,t.unaryExpression)("void",(0,t.numericLiteral)(0),!0)}return Wl}var Gl={},Gm;function sa(){if(Gm)return Gl;Gm=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.default=o;var t=Oi(),e=Ir();const{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function n(p,y,h,g){return p&&typeof p.type=="string"?a(p,y,h,g):p}function s(p,y,h,g){return Array.isArray(p)?p.map(b=>n(b,y,h,g)):n(p,y,h,g)}function o(p,y=!0,h=!1){return a(p,y,h,new Map)}function a(p,y=!0,h=!1,g){if(!p)return p;const{type:b}=p,S={type:p.type};if((0,e.isIdentifier)(p))S.name=p.name,r(p,"optional")&&typeof p.optional=="boolean"&&(S.optional=p.optional),r(p,"typeAnnotation")&&(S.typeAnnotation=y?s(p.typeAnnotation,!0,h,g):p.typeAnnotation),r(p,"decorators")&&(S.decorators=y?s(p.decorators,!0,h,g):p.decorators);else if(r(t.NODE_FIELDS,b))for(const O of Object.keys(t.NODE_FIELDS[b]))r(p,O)&&(y?S[O]=(0,e.isFile)(p)&&O==="comments"?u(p.comments,y,h,g):s(p[O],!0,h,g):S[O]=p[O]);else throw new Error(`Unknown node type: "${b}"`);return r(p,"loc")&&(h?S.loc=null:S.loc=p.loc),r(p,"leadingComments")&&(S.leadingComments=u(p.leadingComments,y,h,g)),r(p,"innerComments")&&(S.innerComments=u(p.innerComments,y,h,g)),r(p,"trailingComments")&&(S.trailingComments=u(p.trailingComments,y,h,g)),r(p,"extra")&&(S.extra=Object.assign({},p.extra)),S}function u(p,y,h,g){return!p||!y?p:p.map(b=>{const S=g.get(b);if(S)return S;const{type:O,value:_,loc:w}=b,C={type:O,value:_,loc:w};return h&&(C.loc=null),g.set(b,C),C})}return Gl}var zl={},zm;function LE(){if(zm)return zl;zm=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=e;var t=sa();function e(r){return(0,t.default)(r,!1)}return zl}var Hl={},Hm;function FE(){if(Hm)return Hl;Hm=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.default=e;var t=sa();function e(r){return(0,t.default)(r)}return Hl}var Jl={},Jm;function qE(){if(Jm)return Jl;Jm=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.default=e;var t=sa();function e(r){return(0,t.default)(r,!0,!0)}return Jl}var Yl={},Ym;function $E(){if(Ym)return Yl;Ym=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=e;var t=sa();function e(r){return(0,t.default)(r,!1,!0)}return Yl}var Xl={},Ql={},Xm;function Qm(){if(Xm)return Ql;Xm=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.default=t;function t(e,r,n){if(!n||!e)return e;const s=`${r}Comments`;return e[s]?r==="leading"?e[s]=n.concat(e[s]):e[s].push(...n):e[s]=n,e}return Ql}var Zm;function UE(){if(Zm)return Xl;Zm=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=e;var t=Qm();function e(r,n,s,o){return(0,t.default)(r,n,[{type:o?"CommentLine":"CommentBlock",value:s}])}return Xl}var Zl={},ec={},e0;function $f(){if(e0)return ec;e0=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.default=t;function t(e,r,n){r&&n&&(r[e]=Array.from(new Set([].concat(r[e],n[e]).filter(Boolean))))}return ec}var t0;function r0(){if(t0)return Zl;t0=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=e;var t=$f();function e(r,n){(0,t.default)("innerComments",r,n)}return Zl}var tc={},n0;function i0(){if(n0)return tc;n0=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.default=e;var t=$f();function e(r,n){(0,t.default)("leadingComments",r,n)}return tc}var rc={},nc={},s0;function a0(){if(s0)return nc;s0=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.default=e;var t=$f();function e(r,n){(0,t.default)("trailingComments",r,n)}return nc}var o0;function l0(){if(o0)return rc;o0=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.default=n;var t=a0(),e=i0(),r=r0();function n(s,o){return(0,t.default)(s,o),(0,e.default)(s,o),(0,r.default)(s,o),s}return rc}var ic={},c0;function VE(){if(c0)return ic;c0=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.default=e;var t=Co();function e(r){return t.COMMENT_KEYS.forEach(n=>{r[n]=null}),r}return ic}var Tt={},u0;function KE(){if(u0)return Tt;u0=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.WHILE_TYPES=Tt.USERWHITESPACABLE_TYPES=Tt.UNARYLIKE_TYPES=Tt.TYPESCRIPT_TYPES=Tt.TSTYPE_TYPES=Tt.TSTYPEELEMENT_TYPES=Tt.TSENTITYNAME_TYPES=Tt.TSBASETYPE_TYPES=Tt.TERMINATORLESS_TYPES=Tt.STATEMENT_TYPES=Tt.STANDARDIZED_TYPES=Tt.SCOPABLE_TYPES=Tt.PUREISH_TYPES=Tt.PROPERTY_TYPES=Tt.PRIVATE_TYPES=Tt.PATTERN_TYPES=Tt.PATTERNLIKE_TYPES=Tt.OBJECTMEMBER_TYPES=Tt.MODULESPECIFIER_TYPES=Tt.MODULEDECLARATION_TYPES=Tt.MISCELLANEOUS_TYPES=Tt.METHOD_TYPES=Tt.LVAL_TYPES=Tt.LOOP_TYPES=Tt.LITERAL_TYPES=Tt.JSX_TYPES=Tt.IMPORTOREXPORTDECLARATION_TYPES=Tt.IMMUTABLE_TYPES=Tt.FUNCTION_TYPES=Tt.FUNCTIONPARENT_TYPES=Tt.FUNCTIONPARAMETER_TYPES=Tt.FOR_TYPES=Tt.FORXSTATEMENT_TYPES=Tt.FLOW_TYPES=Tt.FLOWTYPE_TYPES=Tt.FLOWPREDICATE_TYPES=Tt.FLOWDECLARATION_TYPES=Tt.FLOWBASEANNOTATION_TYPES=Tt.EXPRESSION_TYPES=Tt.EXPRESSIONWRAPPER_TYPES=Tt.EXPORTDECLARATION_TYPES=Tt.ENUMMEMBER_TYPES=Tt.ENUMBODY_TYPES=Tt.DECLARATION_TYPES=Tt.CONDITIONAL_TYPES=Tt.COMPLETIONSTATEMENT_TYPES=Tt.CLASS_TYPES=Tt.BLOCK_TYPES=Tt.BLOCKPARENT_TYPES=Tt.BINARY_TYPES=Tt.ACCESSOR_TYPES=void 0;var t=Oi();Tt.STANDARDIZED_TYPES=t.FLIPPED_ALIAS_KEYS.Standardized,Tt.EXPRESSION_TYPES=t.FLIPPED_ALIAS_KEYS.Expression,Tt.BINARY_TYPES=t.FLIPPED_ALIAS_KEYS.Binary,Tt.SCOPABLE_TYPES=t.FLIPPED_ALIAS_KEYS.Scopable,Tt.BLOCKPARENT_TYPES=t.FLIPPED_ALIAS_KEYS.BlockParent,Tt.BLOCK_TYPES=t.FLIPPED_ALIAS_KEYS.Block,Tt.STATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.Statement,Tt.TERMINATORLESS_TYPES=t.FLIPPED_ALIAS_KEYS.Terminatorless,Tt.COMPLETIONSTATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.CompletionStatement,Tt.CONDITIONAL_TYPES=t.FLIPPED_ALIAS_KEYS.Conditional,Tt.LOOP_TYPES=t.FLIPPED_ALIAS_KEYS.Loop,Tt.WHILE_TYPES=t.FLIPPED_ALIAS_KEYS.While,Tt.EXPRESSIONWRAPPER_TYPES=t.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Tt.FOR_TYPES=t.FLIPPED_ALIAS_KEYS.For,Tt.FORXSTATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.ForXStatement,Tt.FUNCTION_TYPES=t.FLIPPED_ALIAS_KEYS.Function,Tt.FUNCTIONPARENT_TYPES=t.FLIPPED_ALIAS_KEYS.FunctionParent,Tt.PUREISH_TYPES=t.FLIPPED_ALIAS_KEYS.Pureish,Tt.DECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.Declaration,Tt.FUNCTIONPARAMETER_TYPES=t.FLIPPED_ALIAS_KEYS.FunctionParameter,Tt.PATTERNLIKE_TYPES=t.FLIPPED_ALIAS_KEYS.PatternLike,Tt.LVAL_TYPES=t.FLIPPED_ALIAS_KEYS.LVal,Tt.TSENTITYNAME_TYPES=t.FLIPPED_ALIAS_KEYS.TSEntityName,Tt.LITERAL_TYPES=t.FLIPPED_ALIAS_KEYS.Literal,Tt.IMMUTABLE_TYPES=t.FLIPPED_ALIAS_KEYS.Immutable,Tt.USERWHITESPACABLE_TYPES=t.FLIPPED_ALIAS_KEYS.UserWhitespacable,Tt.METHOD_TYPES=t.FLIPPED_ALIAS_KEYS.Method,Tt.OBJECTMEMBER_TYPES=t.FLIPPED_ALIAS_KEYS.ObjectMember,Tt.PROPERTY_TYPES=t.FLIPPED_ALIAS_KEYS.Property,Tt.UNARYLIKE_TYPES=t.FLIPPED_ALIAS_KEYS.UnaryLike,Tt.PATTERN_TYPES=t.FLIPPED_ALIAS_KEYS.Pattern,Tt.CLASS_TYPES=t.FLIPPED_ALIAS_KEYS.Class;const e=Tt.IMPORTOREXPORTDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return Tt.EXPORTDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.ExportDeclaration,Tt.MODULESPECIFIER_TYPES=t.FLIPPED_ALIAS_KEYS.ModuleSpecifier,Tt.ACCESSOR_TYPES=t.FLIPPED_ALIAS_KEYS.Accessor,Tt.PRIVATE_TYPES=t.FLIPPED_ALIAS_KEYS.Private,Tt.FLOW_TYPES=t.FLIPPED_ALIAS_KEYS.Flow,Tt.FLOWTYPE_TYPES=t.FLIPPED_ALIAS_KEYS.FlowType,Tt.FLOWBASEANNOTATION_TYPES=t.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,Tt.FLOWDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.FlowDeclaration,Tt.FLOWPREDICATE_TYPES=t.FLIPPED_ALIAS_KEYS.FlowPredicate,Tt.ENUMBODY_TYPES=t.FLIPPED_ALIAS_KEYS.EnumBody,Tt.ENUMMEMBER_TYPES=t.FLIPPED_ALIAS_KEYS.EnumMember,Tt.JSX_TYPES=t.FLIPPED_ALIAS_KEYS.JSX,Tt.MISCELLANEOUS_TYPES=t.FLIPPED_ALIAS_KEYS.Miscellaneous,Tt.TYPESCRIPT_TYPES=t.FLIPPED_ALIAS_KEYS.TypeScript,Tt.TSTYPEELEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.TSTypeElement,Tt.TSTYPE_TYPES=t.FLIPPED_ALIAS_KEYS.TSType,Tt.TSBASETYPE_TYPES=t.FLIPPED_ALIAS_KEYS.TSBaseType,Tt.MODULEDECLARATION_TYPES=e,Tt}var sc={},ac={},f0;function p0(){if(f0)return ac;f0=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.default=r;var t=Ir(),e=qn();function r(n,s){if((0,t.isBlockStatement)(n))return n;let o=[];return(0,t.isEmptyStatement)(n)?o=[]:((0,t.isStatement)(n)||((0,t.isFunction)(s)?n=(0,e.returnStatement)(n):n=(0,e.expressionStatement)(n)),o=[n]),(0,e.blockStatement)(o)}return ac}var d0;function WE(){if(d0)return sc;d0=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.default=e;var t=p0();function e(r,n="body"){const s=(0,t.default)(r[n],r);return r[n]=s,s}return sc}var oc={},lc={},h0;function y0(){if(h0)return lc;h0=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.default=r;var t=Ao(),e=Da;function r(n){n=n+"";let s="";for(const o of n)s+=(0,e.isIdentifierChar)(o.codePointAt(0))?o:"-";return s=s.replace(/^[-0-9]+/,""),s=s.replace(/[-\s]+(.)?/g,function(o,a){return a?a.toUpperCase():""}),(0,t.default)(s)||(s=`_${s}`),s||"_"}return lc}var m0;function GE(){if(m0)return oc;m0=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=e;var t=y0();function e(r){return r=(0,t.default)(r),(r==="eval"||r==="arguments")&&(r="_"+r),r}return oc}var cc={},g0;function zE(){if(g0)return cc;g0=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.default=r;var t=Ir(),e=qn();function r(n,s=n.key||n.property){return!n.computed&&(0,t.isIdentifier)(s)&&(s=(0,e.stringLiteral)(s.name)),s}return cc}var No={},b0;function HE(){if(b0)return No;b0=1,Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var t=Ir();No.default=e;function e(r){if((0,t.isExpressionStatement)(r)&&(r=r.expression),(0,t.isExpression)(r))return r;if((0,t.isClass)(r)?(r.type="ClassExpression",r.abstract=!1):(0,t.isFunction)(r)&&(r.type="FunctionExpression"),!(0,t.isExpression)(r))throw new Error(`cannot turn ${r.type} to an expression`);return r}return No}var uc={},fc={},pc={},v0;function S0(){if(v0)return pc;v0=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.default=n;var t=Oi();const e=Symbol(),r=Symbol();function n(s,o,a){if(!s)return!1;const u=t.VISITOR_KEYS[s.type];if(!u)return!1;a=a||{};const p=o(s,a);if(p!==void 0)switch(p){case e:return!1;case r:return!0}for(const y of u){const h=s[y];if(h){if(Array.isArray(h)){for(const g of h)if(n(g,o,a))return!0}else if(n(h,o,a))return!0}}return!1}return n.skip=e,n.stop=r,pc}var dc={},T0;function E0(){if(T0)return dc;T0=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.default=n;var t=Co();const e=["tokens","start","end","loc","raw","rawValue"],r=[...t.COMMENT_KEYS,"comments",...e];function n(s,o={}){const a=o.preserveComments?e:r;for(const p of a)s[p]!=null&&(s[p]=void 0);for(const p of Object.keys(s))p.startsWith("_")&&s[p]!=null&&(s[p]=void 0);const u=Object.getOwnPropertySymbols(s);for(const p of u)s[p]=null}return dc}var x0;function P0(){if(x0)return fc;x0=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.default=r;var t=S0(),e=E0();function r(n,s){return(0,t.default)(n,e.default,s),n}return fc}var _0;function JE(){if(_0)return uc;_0=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.default=n;var t=Ir(),e=sa(),r=P0();function n(s,o=s.key){let a;return s.kind==="method"?n.increment()+"":((0,t.isIdentifier)(o)?a=o.name:(0,t.isStringLiteral)(o)?a=JSON.stringify(o.value):a=JSON.stringify((0,r.default)((0,e.default)(o))),s.computed&&(a=`[${a}]`),s.static&&(a=`static:${a}`),a)}return n.uid=0,n.increment=function(){return n.uid>=Number.MAX_SAFE_INTEGER?n.uid=0:n.uid++},uc}var ko={},w0;function YE(){if(w0)return ko;w0=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var t=Ir(),e=qn();ko.default=r;function r(n,s){if((0,t.isStatement)(n))return n;let o=!1,a;if((0,t.isClass)(n))o=!0,a="ClassDeclaration";else if((0,t.isFunction)(n))o=!0,a="FunctionDeclaration";else if((0,t.isAssignmentExpression)(n))return(0,e.expressionStatement)(n);if(o&&!n.id&&(a=!1),!a){if(s)return!1;throw new Error(`cannot turn ${n.type} to a statement`)}return n.type=a,n}return ko}var Do={},A0;function XE(){if(A0)return Do;A0=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var t=Ao(),e=qn();Do.default=o;const r=Function.call.bind(Object.prototype.toString);function n(a){return r(a)==="[object RegExp]"}function s(a){if(typeof a!="object"||a===null||Object.prototype.toString.call(a)!=="[object Object]")return!1;const u=Object.getPrototypeOf(a);return u===null||Object.getPrototypeOf(u)===null}function o(a){if(a===void 0)return(0,e.identifier)("undefined");if(a===!0||a===!1)return(0,e.booleanLiteral)(a);if(a===null)return(0,e.nullLiteral)();if(typeof a=="string")return(0,e.stringLiteral)(a);if(typeof a=="number"){let u;if(Number.isFinite(a))u=(0,e.numericLiteral)(Math.abs(a));else{let p;Number.isNaN(a)?p=(0,e.numericLiteral)(0):p=(0,e.numericLiteral)(1),u=(0,e.binaryExpression)("/",p,(0,e.numericLiteral)(0))}return(a<0||Object.is(a,-0))&&(u=(0,e.unaryExpression)("-",u)),u}if(typeof a=="bigint")return a<0?(0,e.unaryExpression)("-",(0,e.bigIntLiteral)(-a)):(0,e.bigIntLiteral)(a);if(n(a)){const u=a.source,p=/\/([a-z]*)$/.exec(a.toString())[1];return(0,e.regExpLiteral)(u,p)}if(Array.isArray(a))return(0,e.arrayExpression)(a.map(o));if(s(a)){const u=[];for(const p of Object.keys(a)){let y,h=!1;(0,t.default)(p)?p==="__proto__"?(h=!0,y=(0,e.stringLiteral)(p)):y=(0,e.identifier)(p):y=(0,e.stringLiteral)(p),u.push((0,e.objectProperty)(y,o(a[p]),h))}return(0,e.objectExpression)(u)}throw new Error("don't know how to turn this value into a node")}return Do}var hc={},C0;function QE(){if(C0)return hc;C0=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.default=e;var t=qn();function e(r,n,s=!1){return r.object=(0,t.memberExpression)(r.object,r.property,r.computed),r.property=n,r.computed=!!s,r}return hc}var yc={},I0;function ZE(){if(I0)return yc;I0=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.default=r;var t=Co(),e=l0();function r(n,s){if(!n||!s)return n;for(const o of t.INHERIT_KEYS.optional)n[o]==null&&(n[o]=s[o]);for(const o of Object.keys(s))o.startsWith("_")&&o!=="__clone"&&(n[o]=s[o]);for(const o of t.INHERIT_KEYS.force)n[o]=s[o];return(0,e.default)(n,s),n}return yc}var mc={},O0;function ex(){if(O0)return mc;O0=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.default=r;var t=qn(),e=Ut();function r(n,s){if((0,e.isSuper)(n.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return n.object=(0,t.memberExpression)(s,n.object),n}return mc}var gc={},N0;function tx(){if(N0)return gc;N0=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.default=t;function t(e){const r=[].concat(e),n=Object.create(null);for(;r.length;){const s=r.pop();if(s)switch(s.type){case"ArrayPattern":r.push(...s.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":r.push(s.left);break;case"ObjectPattern":r.push(...s.properties);break;case"ObjectProperty":r.push(s.value);break;case"RestElement":case"UpdateExpression":r.push(s.argument);break;case"UnaryExpression":s.operator==="delete"&&r.push(s.argument);break;case"Identifier":n[s.name]=s;break}}return n}return gc}var bc={},k0;function vc(){if(k0)return bc;k0=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.default=e;var t=Ir();function e(n,s,o,a){const u=[].concat(n),p=Object.create(null);for(;u.length;){const y=u.shift();if(!y||a&&((0,t.isAssignmentExpression)(y)||(0,t.isUnaryExpression)(y)||(0,t.isUpdateExpression)(y)))continue;if((0,t.isIdentifier)(y)){s?(p[y.name]=p[y.name]||[]).push(y):p[y.name]=y;continue}if((0,t.isExportDeclaration)(y)&&!(0,t.isExportAllDeclaration)(y)){(0,t.isDeclaration)(y.declaration)&&u.push(y.declaration);continue}if(o){if((0,t.isFunctionDeclaration)(y)){u.push(y.id);continue}if((0,t.isFunctionExpression)(y))continue}const h=e.keys[y.type];if(h)for(let g=0;g<h.length;g++){const b=h[g],S=y[b];S&&(Array.isArray(S)?u.push(...S):u.push(S))}}return p}const r={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};return e.keys=r,bc}var Bo={},D0;function rx(){if(D0)return Bo;D0=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var t=vc();Bo.default=e;function e(r,n){return(0,t.default)(r,n,!0)}return Bo}var Sc={},B0;function nx(){if(B0)return Sc;B0=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.default=n;var t=Ir();function e(s){return(0,t.isNullLiteral)(s)?"null":(0,t.isRegExpLiteral)(s)?`/${s.pattern}/${s.flags}`:(0,t.isTemplateLiteral)(s)?s.quasis.map(o=>o.value.raw).join(""):s.value!==void 0?String(s.value):null}function r(s){if(!s.computed||(0,t.isLiteral)(s.key))return s.key}function n(s,o){if("id"in s&&s.id)return{name:s.id.name,originalNode:s.id};let a="",u;if((0,t.isObjectProperty)(o,{value:s})?u=r(o):(0,t.isObjectMethod)(s)||(0,t.isClassMethod)(s)?(u=r(s),s.kind==="get"?a="get ":s.kind==="set"&&(a="set ")):(0,t.isVariableDeclarator)(o,{init:s})?u=o.id:(0,t.isAssignmentExpression)(o,{operator:"=",right:s})&&(u=o.left),!u)return null;const p=(0,t.isLiteral)(u)?e(u):(0,t.isIdentifier)(u)?u.name:(0,t.isPrivateName)(u)?u.id.name:null;return p==null?null:{name:a+p,originalNode:u}}return Sc}var Tc={},R0;function ix(){if(R0)return Tc;R0=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.default=e;var t=Oi();function e(n,s,o){typeof s=="function"&&(s={enter:s});const{enter:a,exit:u}=s;r(n,a,u,o,[])}function r(n,s,o,a,u){const p=t.VISITOR_KEYS[n.type];if(p){s&&s(n,u,a);for(const y of p){const h=n[y];if(Array.isArray(h))for(let g=0;g<h.length;g++){const b=h[g];b&&(u.push({node:n,key:y,index:g}),r(b,s,o,a,u),u.pop())}else h&&(u.push({node:n,key:y}),r(h,s,o,a,u),u.pop())}o&&o(n,u,a)}}return Tc}var Ec={},j0;function sx(){if(j0)return Ec;j0=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.default=e;var t=vc();function e(r,n,s){if(s&&r.type==="Identifier"&&n.type==="ObjectProperty"&&s.type==="ObjectExpression")return!1;const o=t.default.keys[n.type];if(o)for(let a=0;a<o.length;a++){const u=o[a],p=n[u];if(Array.isArray(p)){if(p.includes(r))return!0}else if(p===r)return!0}return!1}return Ec}var xc={},Pc={},M0;function L0(){if(M0)return Pc;M0=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.default=r;var t=Ir(),e=Symbol.for("var used to be block scoped");function r(n){return(0,t.isVariableDeclaration)(n)&&(n.kind!=="var"||n[e])}return Pc}var F0;function ax(){if(F0)return xc;F0=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.default=r;var t=Ir(),e=L0();function r(n){return(0,t.isFunctionDeclaration)(n)||(0,t.isClassDeclaration)(n)||(0,e.default)(n)}return xc}var _c={},q0;function ox(){if(q0)return _c;q0=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.default=r;var t=jf(),e=Ir();function r(n){return(0,t.default)(n.type,"Immutable")?!0:(0,e.isIdentifier)(n)?n.name==="undefined":!1}return _c}var wc={},$0;function lx(){if($0)return wc;$0=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.default=e;var t=Oi();function e(r,n){if(typeof r!="object"||typeof n!="object"||r==null||n==null)return r===n;if(r.type!==n.type)return!1;const s=Object.keys(t.NODE_FIELDS[r.type]||r.type),o=t.VISITOR_KEYS[r.type];for(const a of s){const u=r[a],p=n[a];if(typeof u!=typeof p)return!1;if(!(u==null&&p==null)){if(u==null||p==null)return!1;if(Array.isArray(u)){if(!Array.isArray(p)||u.length!==p.length)return!1;for(let y=0;y<u.length;y++)if(!e(u[y],p[y]))return!1;continue}if(typeof u=="object"&&!(o!=null&&o.includes(a))){for(const y of Object.keys(u))if(u[y]!==p[y])return!1;continue}if(!e(u,p))return!1}}return!0}return wc}var Ac={},U0;function cx(){if(U0)return Ac;U0=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.default=t;function t(e,r,n){switch(r.type){case"MemberExpression":case"OptionalMemberExpression":return r.property===e?!!r.computed:r.object===e;case"JSXMemberExpression":return r.object===e;case"VariableDeclarator":return r.init===e;case"ArrowFunctionExpression":return r.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return r.key===e?!!r.computed:!1;case"ObjectProperty":return r.key===e?!!r.computed:(n==null?void 0:n.type)!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return r.key===e?!!r.computed:!0;case"ClassPrivateProperty":return r.key!==e;case"ClassDeclaration":case"ClassExpression":return r.superClass===e;case"AssignmentExpression":return r.right===e;case"AssignmentPattern":return r.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return n!=null&&n.source?!1:r.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return r.key!==e;case"TSEnumMember":return r.id!==e;case"TSPropertySignature":return r.key===e?!!r.computed:!0}return!0}return Ac}var Cc={},V0;function ux(){if(V0)return Cc;V0=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.default=e;var t=Ir();function e(r,n){return(0,t.isBlockStatement)(r)&&((0,t.isFunction)(n)||(0,t.isCatchClause)(n))?!1:(0,t.isPattern)(r)&&((0,t.isFunction)(n)||(0,t.isCatchClause)(n))?!0:(0,t.isScopable)(r)}return Cc}var Ic={},K0;function fx(){if(K0)return Ic;K0=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.default=e;var t=Ir();function e(r){return(0,t.isImportDefaultSpecifier)(r)||(0,t.isIdentifier)(r.imported||r.exported,{name:"default"})}return Ic}var Oc={},W0;function px(){if(W0)return Oc;W0=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.default=r;var t=Ao();const e=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function r(n){return(0,t.default)(n)&&!e.has(n)}return Oc}var Nc={},G0;function dx(){if(G0)return Nc;G0=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.default=r;var t=Ir(),e=Symbol.for("var used to be block scoped");function r(n){return(0,t.isVariableDeclaration)(n,{kind:"var"})&&!n[e]}return Nc}var kc={},Dc={},z0;function hx(){if(z0)return Dc;z0=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.default=o;var t=vc(),e=Ir(),r=qn(),n=Wm(),s=sa();function o(a,u){const p=[];let y=!0;for(const h of a)if((0,e.isEmptyStatement)(h)||(y=!1),(0,e.isExpression)(h))p.push(h);else if((0,e.isExpressionStatement)(h))p.push(h.expression);else if((0,e.isVariableDeclaration)(h)){if(h.kind!=="var")return;for(const g of h.declarations){const b=(0,t.default)(g);for(const S of Object.keys(b))u.push({kind:h.kind,id:(0,s.default)(b[S])});g.init&&p.push((0,r.assignmentExpression)("=",g.id,g.init))}y=!0}else if((0,e.isIfStatement)(h)){const g=h.consequent?o([h.consequent],u):(0,n.buildUndefinedNode)(),b=h.alternate?o([h.alternate],u):(0,n.buildUndefinedNode)();if(!g||!b)return;p.push((0,r.conditionalExpression)(h.test,g,b))}else if((0,e.isBlockStatement)(h)){const g=o(h.body,u);if(!g)return;p.push(g)}else if((0,e.isEmptyStatement)(h))a.indexOf(h)===0&&(y=!0);else return;return y&&p.push((0,n.buildUndefinedNode)()),p.length===1?p[0]:(0,r.sequenceExpression)(p)}return Dc}var H0;function yx(){if(H0)return kc;H0=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=e;var t=hx();function e(r,n){if(!(r!=null&&r.length))return;const s=[],o=(0,t.default)(r,s);if(o){for(const a of s)n.push(a);return o}}return kc}var J0;function Ut(){return J0||(J0=1,function(t){var e={};Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return _t.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Ke.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return Me.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return $e.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return Le.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ht.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return Se.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return Ze.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return K.default}});var n=fE(),s=pE(),o=NE(),a=kE(),u=DE();Object.keys(u).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===u[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return u[pt]}})});var p=BE(),y=RE(),h=ME(),g=Wm();Object.keys(g).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===g[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return g[pt]}})});var b=qn();Object.keys(b).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===b[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return b[pt]}})});var S=sa(),O=LE(),_=FE(),w=qE(),C=$E(),T=UE(),x=Qm(),E=r0(),j=i0(),R=l0(),I=a0(),D=VE(),Z=KE();Object.keys(Z).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===Z[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return Z[pt]}})});var J=Co();Object.keys(J).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===J[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return J[pt]}})});var N=WE(),$=GE(),ne=p0(),me=zE(),Ce=HE(),Ae=y0(),ce=JE(),ue=YE(),K=XE(),Y=Oi();Object.keys(Y).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===Y[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return Y[pt]}})});var he=QE(),ae=ZE(),U=ex(),L=E0(),H=P0(),ye=qm(),Ie=tx(),Ee=vc(),De=rx(),Me=nx(),Ve=ix();Object.keys(Ve).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===Ve[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return Ve[pt]}})});var Ze=S0(),ut=Df(),st=_o(),dt=sx(),$e=ax(),je=ox(),qe=L0(),Le=Rm(),gt=lx(),ht=Zy(),xe=cx(),Se=ux(),se=fx(),ee=jf(),oe=px(),W=Ao(),fe=dx(),Re=Gy(),Fe=qf(),Ke=Hy(),it=Ir();Object.keys(it).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===it[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return it[pt]}})});var _t=Po(),Mt=yx();t.react={isReactComponent:n.default,isCompatTag:s.default,buildChildren:o.default},t.toSequenceExpression=Mt.default,e.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")}(kf)),kf}var Ro={},_n={},$n={},Y0;function mx(){if(Y0)return $n;Y0=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.statements=$n.statement=$n.smart=$n.program=$n.expression=void 0;var t=Ut();const{assertExpressionStatement:e}=t;function r(s){return{code:o=>`/* @babel/template */;
22
+ Expected ${_.length+1} quasis but got ${S.quasis.length}`)})}}}),n("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const S=(0,t.assertNodeType)("NumericLiteral","BigIntLiteral"),O=(0,t.assertOneOf)("-"),_=(0,t.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),w=function(T,x,E){(0,r.default)("UnaryExpression",E)?(O(E,"operator",E.operator),S(E,"argument",E.argument)):_(T,x,E)};return w.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],w}()}}}),n("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,t.validateType)("TSEntityName"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")}}),n("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,t.validateOptional)(s),id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,t.validateOptional)((0,t.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,t.validateType)("TSInterfaceBody")}}),n("TSInterfaceBody",{visitor:["body"],fields:{body:(0,t.validateArrayOfType)("TSTypeElement")}}),n("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,t.validateOptional)(s),id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,t.validateType)("TSType")}}),n("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,t.validateType)("Expression"),typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")}});const b={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,t.validateType)("Expression"),typeAnnotation:(0,t.validateType)("TSType")}};return n("TSAsExpression",b),n("TSSatisfiesExpression",b),n("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,t.validateType)("TSType"),expression:(0,t.validateType)("Expression")}}),n("TSEnumBody",{visitor:["members"],fields:{members:(0,t.validateArrayOfType)("TSEnumMember")}}),n("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,t.validateOptional)(s),const:(0,t.validateOptional)(s),id:(0,t.validateType)("Identifier"),members:(0,t.validateArrayOfType)("TSEnumMember"),initializer:(0,t.validateOptionalType)("Expression"),body:(0,t.validateOptionalType)("TSEnumBody")}}),n("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,t.validateType)("Identifier","StringLiteral"),initializer:(0,t.validateOptionalType)("Expression")}}),n("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,t.assertOneOf)("global","module","namespace")},declare:(0,t.validateOptional)(s)},{global:(0,t.validateOptional)(s)},{id:(0,t.validateType)("Identifier","StringLiteral"),body:(0,t.validateType)("TSModuleBlock","TSModuleDeclaration")})}),n("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,t.validateArrayOfType)("Statement")}}),n("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,t.validateType)("StringLiteral")},{qualifier:(0,t.validateOptionalType)("TSEntityName")},{typeParameters:(0,t.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,t.assertNodeType)("ObjectExpression"),optional:!0}})}),n("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,t.validate)(s)},{id:(0,t.validateType)("Identifier"),moduleReference:(0,t.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,t.assertOneOf)("type","value"),optional:!0}})}),n("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,t.validateType)("StringLiteral")}}),n("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,t.validateType)("Expression")}}),n("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,t.validateType)("Expression")}}),n("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,t.validateType)("Identifier")}}),n("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,t.assertNodeType)("TSType")}}}),n("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,t.validateArrayOfType)("TSType")}}),n("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,t.validateArrayOfType)("TSTypeParameter")}}),n("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,t.assertValueType)("string")},in:{validate:(0,t.assertValueType)("boolean"),optional:!0},out:{validate:(0,t.assertValueType)("boolean"),optional:!0},const:{validate:(0,t.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,t.assertNodeType)("TSType"),optional:!0},default:{validate:(0,t.assertNodeType)("TSType"),optional:!0}}}),xm}var Io={},_m;function CE(){return _m||(_m=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.DEPRECATED_ALIASES=void 0,Io.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),Io}var wm;function Oi(){return wm||(wm=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return e.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return e.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return n.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return e.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return e.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return e.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return e.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return e.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return r.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return e.VISITOR_KEYS}}),Ll(),xE(),PE(),_E(),wE(),AE();var e=xs(),r=vm(),n=CE();Object.keys(n.DEPRECATED_ALIASES).forEach(s=>{e.FLIPPED_ALIAS_KEYS[s]=e.FLIPPED_ALIAS_KEYS[n.DEPRECATED_ALIASES[s]]});for(const{types:s,set:o}of e.allExpandedTypes)for(const a of s){const u=e.FLIPPED_ALIAS_KEYS[a];u?u.forEach(o.add,o):o.add(a)}t.TYPES=[].concat(Object.keys(e.VISITOR_KEYS),Object.keys(e.FLIPPED_ALIAS_KEYS),Object.keys(e.DEPRECATED_KEYS))}(Rf)),Rf}var Am;function qf(){if(Am)return na;Am=1,Object.defineProperty(na,"__esModule",{value:!0}),na.default=e,na.validateChild=s,na.validateField=n,na.validateInternal=r;var t=Oi();function e(o,a,u){if(!o)return;const p=t.NODE_FIELDS[o.type];if(!p)return;const y=p[a];n(o,a,u,y),s(o,a,u)}function r(o,a,u,p,y){if(o!=null&&o.validate&&!(o.optional&&p==null)&&(o.validate(a,u,p),y)){var h;const g=p.type;if(g==null)return;(h=t.NODE_PARENT_VALIDATIONS[g])==null||h.call(t.NODE_PARENT_VALIDATIONS,a,u,p)}}function n(o,a,u,p){p!=null&&p.validate&&(p.optional&&u==null||p.validate(o,a,u))}function s(o,a,u){var p;const y=u==null?void 0:u.type;y!=null&&((p=t.NODE_PARENT_VALIDATIONS[y])==null||p.call(t.NODE_PARENT_VALIDATIONS,o,a,u))}return na}var Cm;function Im(){if(Cm)return ve;Cm=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.anyTypeAnnotation=ui,ve.argumentPlaceholder=En,ve.arrayExpression=a,ve.arrayPattern=xe,ve.arrayTypeAnnotation=Vr,ve.arrowFunctionExpression=Se,ve.assignmentExpression=u,ve.assignmentPattern=ht,ve.awaitExpression=Bt,ve.bigIntLiteral=o,ve.binaryExpression=p,ve.bindExpression=ti,ve.blockStatement=b,ve.booleanLiteral=ce,ve.booleanLiteralTypeAnnotation=Rr,ve.booleanTypeAnnotation=tn,ve.breakStatement=S,ve.callExpression=O,ve.catchClause=_,ve.classAccessorProperty=Wt,ve.classBody=se,ve.classDeclaration=oe,ve.classExpression=ee,ve.classImplements=Dn,ve.classMethod=de,ve.classPrivateMethod=pn,ve.classPrivateProperty=tr,ve.classProperty=xr,ve.conditionalExpression=w,ve.continueStatement=C,ve.debuggerStatement=T,ve.decimalLiteral=ri,ve.declareClass=Kr,ve.declareExportAllDeclaration=Wr,ve.declareExportDeclaration=hn,ve.declareFunction=Hn,ve.declareInterface=Nr,ve.declareModule=An,ve.declareModuleExports=fi,ve.declareOpaqueType=rn,ve.declareTypeAlias=dr,ve.declareVariable=nn,ve.declaredPredicate=yn,ve.decorator=Wi,ve.directive=h,ve.directiveLiteral=g,ve.doExpression=Ei,ve.doWhileStatement=x,ve.emptyStatement=E,ve.emptyTypeAnnotation=as,ve.enumBooleanBody=qi,ve.enumBooleanMember=$i,ve.enumDeclaration=Mn,ve.enumDefaultedMember=Qn,ve.enumNumberBody=Yr,ve.enumNumberMember=Ui,ve.enumStringBody=Fs,ve.enumStringMember=It,ve.enumSymbolBody=Mr,ve.existsTypeAnnotation=Ri,ve.exportAllDeclaration=W,ve.exportDefaultDeclaration=fe,ve.exportDefaultSpecifier=Gi,ve.exportNamedDeclaration=Re,ve.exportNamespaceSpecifier=Vt,ve.exportSpecifier=Fe,ve.expressionStatement=j,ve.file=R,ve.forInStatement=I,ve.forOfStatement=Ke,ve.forStatement=D,ve.functionDeclaration=Z,ve.functionExpression=J,ve.functionTypeAnnotation=Cn,ve.functionTypeParam=is,ve.genericTypeAnnotation=pi,ve.identifier=N,ve.ifStatement=$,ve.import=Lt,ve.importAttribute=Rt,ve.importDeclaration=it,ve.importDefaultSpecifier=_t,ve.importExpression=xt,ve.importNamespaceSpecifier=Mt,ve.importSpecifier=pt,ve.indexedAccessType=mi,ve.inferredPredicate=Jn,ve.interfaceDeclaration=ji,ve.interfaceExtends=zt,ve.interfaceTypeAnnotation=ss,ve.interpreterDirective=y,ve.intersectionTypeAnnotation=mn,ve.jSXAttribute=ve.jsxAttribute=qs,ve.jSXClosingElement=ve.jsxClosingElement=Zn,ve.jSXClosingFragment=ve.jsxClosingFragment=Ti,ve.jSXElement=ve.jsxElement=$s,ve.jSXEmptyExpression=ve.jsxEmptyExpression=ps,ve.jSXExpressionContainer=ve.jsxExpressionContainer=gi,ve.jSXFragment=ve.jsxFragment=Ki,ve.jSXIdentifier=ve.jsxIdentifier=bi,ve.jSXMemberExpression=ve.jsxMemberExpression=Us,ve.jSXNamespacedName=ve.jsxNamespacedName=Vs,ve.jSXOpeningElement=ve.jsxOpeningElement=ds,ve.jSXOpeningFragment=ve.jsxOpeningFragment=Si,ve.jSXSpreadAttribute=ve.jsxSpreadAttribute=vi,ve.jSXSpreadChild=ve.jsxSpreadChild=ei,ve.jSXText=ve.jsxText=Vi,ve.labeledStatement=ne,ve.logicalExpression=K,ve.memberExpression=Y,ve.metaProperty=te,ve.mixedTypeAnnotation=Pr,ve.moduleExpression=sn,ve.newExpression=he,ve.noop=Ln,ve.nullLiteral=Ae,ve.nullLiteralTypeAnnotation=jr,ve.nullableTypeAnnotation=di,ve.numberLiteral=qt,ve.numberLiteralTypeAnnotation=os,ve.numberTypeAnnotation=ir,ve.numericLiteral=Ce,ve.objectExpression=U,ve.objectMethod=L,ve.objectPattern=G,ve.objectProperty=H,ve.objectTypeAnnotation=gn,ve.objectTypeCallProperty=Rn,ve.objectTypeIndexer=Mi,ve.objectTypeInternalSlot=Bn,ve.objectTypeProperty=Yn,ve.objectTypeSpreadProperty=Xn,ve.opaqueType=Li,ve.optionalCallExpression=lr,ve.optionalIndexedAccessType=fs,ve.optionalMemberExpression=Jt,ve.parenthesizedExpression=De,ve.pipelineBareFunction=z,ve.pipelinePrimaryTopicReference=l,ve.pipelineTopicExpression=xi,ve.placeholder=hs,ve.privateName=dn,ve.program=ae,ve.qualifiedTypeIdentifier=bn,ve.recordExpression=zi,ve.regExpLiteral=ue,ve.regexLiteral=$t,ve.restElement=ye,ve.restProperty=Kt,ve.returnStatement=Ie,ve.sequenceExpression=Ee,ve.spreadElement=be,ve.spreadProperty=Yt,ve.staticBlock=Sr,ve.stringLiteral=me,ve.stringLiteralTypeAnnotation=ls,ve.stringTypeAnnotation=vn,ve.super=et,ve.switchCase=Me,ve.switchStatement=Ve,ve.symbolTypeAnnotation=Qt,ve.taggedTemplateExpression=ge,ve.templateElement=rt,ve.templateLiteral=yt,ve.thisExpression=Ze,ve.thisTypeAnnotation=cs,ve.throwStatement=ut,ve.topicReference=Hi,ve.tryStatement=st,ve.tSAnyKeyword=ve.tsAnyKeyword=vt,ve.tSArrayType=ve.tsArrayType=ii,ve.tSAsExpression=ve.tsAsExpression=Je,ve.tSBigIntKeyword=ve.tsBigIntKeyword=Ot,ve.tSBooleanKeyword=ve.tsBooleanKeyword=wt,ve.tSCallSignatureDeclaration=ve.tsCallSignatureDeclaration=le,ve.tSConditionalType=ve.tsConditionalType=On,ve.tSConstructSignatureDeclaration=ve.tsConstructSignatureDeclaration=Pe,ve.tSConstructorType=ve.tsConstructorType=gs,ve.tSDeclareFunction=ve.tsDeclareFunction=d,ve.tSDeclareMethod=ve.tsDeclareMethod=A,ve.tSEnumBody=ve.tsEnumBody=nt,ve.tSEnumDeclaration=ve.tsEnumDeclaration=Xe,ve.tSEnumMember=ve.tsEnumMember=Ye,ve.tSExportAssignment=ve.tsExportAssignment=Ct,ve.tSExpressionWithTypeArguments=ve.tsExpressionWithTypeArguments=pe,ve.tSExternalModuleReference=ve.tsExternalModuleReference=bt,ve.tSFunctionType=ve.tsFunctionType=ms,ve.tSImportEqualsDeclaration=ve.tsImportEqualsDeclaration=ft,ve.tSImportType=ve.tsImportType=ot,ve.tSIndexSignature=ve.tsIndexSignature=ct,ve.tSIndexedAccessType=ve.tsIndexedAccessType=P,ve.tSInferType=ve.tsInferType=on,ve.tSInstantiationExpression=ve.tsInstantiationExpression=at,ve.tSInterfaceBody=ve.tsInterfaceBody=Ne,ve.tSInterfaceDeclaration=ve.tsInterfaceDeclaration=Te,ve.tSIntersectionType=ve.tsIntersectionType=wi,ve.tSIntrinsicKeyword=ve.tsIntrinsicKeyword=Gt,ve.tSLiteralType=ve.tsLiteralType=re,ve.tSMappedType=ve.tsMappedType=M,ve.tSMethodSignature=ve.tsMethodSignature=Ue,ve.tSModuleBlock=ve.tsModuleBlock=lt,ve.tSModuleDeclaration=ve.tsModuleDeclaration=Qe,ve.tSNamedTupleMember=ve.tsNamedTupleMember=Qi,ve.tSNamespaceExportDeclaration=ve.tsNamespaceExportDeclaration=Pt,ve.tSNeverKeyword=ve.tsNeverKeyword=or,ve.tSNonNullExpression=ve.tsNonNullExpression=Et,ve.tSNullKeyword=ve.tsNullKeyword=Ft,ve.tSNumberKeyword=ve.tsNumberKeyword=sr,ve.tSObjectKeyword=ve.tsObjectKeyword=xn,ve.tSOptionalType=ve.tsOptionalType=vs,ve.tSParameterProperty=ve.tsParameterProperty=c,ve.tSParenthesizedType=ve.tsParenthesizedType=Zi,ve.tSPropertySignature=ve.tsPropertySignature=Be,ve.tSQualifiedName=ve.tsQualifiedName=Q,ve.tSRestType=ve.tsRestType=_i,ve.tSSatisfiesExpression=ve.tsSatisfiesExpression=Ge,ve.tSStringKeyword=ve.tsStringKeyword=an,ve.tSSymbolKeyword=ve.tsSymbolKeyword=ys,ve.tSTemplateLiteralType=ve.tsTemplateLiteralType=V,ve.tSThisType=ve.tsThisType=Xi,ve.tSTupleType=ve.tsTupleType=In,ve.tSTypeAliasDeclaration=ve.tsTypeAliasDeclaration=We,ve.tSTypeAnnotation=ve.tsTypeAnnotation=Dt,ve.tSTypeAssertion=ve.tsTypeAssertion=He,ve.tSTypeLiteral=ve.tsTypeLiteral=hr,ve.tSTypeOperator=ve.tsTypeOperator=v,ve.tSTypeParameter=ve.tsTypeParameter=St,ve.tSTypeParameterDeclaration=ve.tsTypeParameterDeclaration=jt,ve.tSTypeParameterInstantiation=ve.tsTypeParameterInstantiation=At,ve.tSTypePredicate=ve.tsTypePredicate=ni,ve.tSTypeQuery=ve.tsTypeQuery=Xr,ve.tSTypeReference=ve.tsTypeReference=bs,ve.tSUndefinedKeyword=ve.tsUndefinedKeyword=Ji,ve.tSUnionType=ve.tsUnionType=Pn,ve.tSUnknownKeyword=ve.tsUnknownKeyword=Pi,ve.tSVoidKeyword=ve.tsVoidKeyword=Yi,ve.tupleExpression=Tr,ve.tupleTypeAnnotation=Ls,ve.typeAlias=Ar,ve.typeAnnotation=jn,ve.typeCastExpression=yi,ve.typeParameter=Sn,ve.typeParameterDeclaration=us,ve.typeParameterInstantiation=Fi,ve.typeofTypeAnnotation=hi,ve.unaryExpression=dt,ve.unionTypeAnnotation=br,ve.updateExpression=$e,ve.v8IntrinsicIdentifier=Ks,ve.variableDeclaration=je,ve.variableDeclarator=qe,ve.variance=Cr,ve.voidPattern=i,ve.voidTypeAnnotation=Tn,ve.whileStatement=Le,ve.withStatement=gt,ve.yieldExpression=mt;var t=qf(),e=Po(),r=xs();const{validateInternal:n}=t,{NODE_FIELDS:s}=r;function o(B){typeof B=="bigint"&&(B=B.toString());const k={type:"BigIntLiteral",value:B},F=s.BigIntLiteral;return n(F.value,k,"value",B),k}function a(B=[]){const k={type:"ArrayExpression",elements:B},F=s.ArrayExpression;return n(F.elements,k,"elements",B,1),k}function u(B,k,F){const ie={type:"AssignmentExpression",operator:B,left:k,right:F},ke=s.AssignmentExpression;return n(ke.operator,ie,"operator",B),n(ke.left,ie,"left",k,1),n(ke.right,ie,"right",F,1),ie}function p(B,k,F){const ie={type:"BinaryExpression",operator:B,left:k,right:F},ke=s.BinaryExpression;return n(ke.operator,ie,"operator",B),n(ke.left,ie,"left",k,1),n(ke.right,ie,"right",F,1),ie}function y(B){const k={type:"InterpreterDirective",value:B},F=s.InterpreterDirective;return n(F.value,k,"value",B),k}function h(B){const k={type:"Directive",value:B},F=s.Directive;return n(F.value,k,"value",B,1),k}function g(B){const k={type:"DirectiveLiteral",value:B},F=s.DirectiveLiteral;return n(F.value,k,"value",B),k}function b(B,k=[]){const F={type:"BlockStatement",body:B,directives:k},ie=s.BlockStatement;return n(ie.body,F,"body",B,1),n(ie.directives,F,"directives",k,1),F}function S(B=null){const k={type:"BreakStatement",label:B},F=s.BreakStatement;return n(F.label,k,"label",B,1),k}function O(B,k){const F={type:"CallExpression",callee:B,arguments:k},ie=s.CallExpression;return n(ie.callee,F,"callee",B,1),n(ie.arguments,F,"arguments",k,1),F}function _(B=null,k){const F={type:"CatchClause",param:B,body:k},ie=s.CatchClause;return n(ie.param,F,"param",B,1),n(ie.body,F,"body",k,1),F}function w(B,k,F){const ie={type:"ConditionalExpression",test:B,consequent:k,alternate:F},ke=s.ConditionalExpression;return n(ke.test,ie,"test",B,1),n(ke.consequent,ie,"consequent",k,1),n(ke.alternate,ie,"alternate",F,1),ie}function C(B=null){const k={type:"ContinueStatement",label:B},F=s.ContinueStatement;return n(F.label,k,"label",B,1),k}function T(){return{type:"DebuggerStatement"}}function x(B,k){const F={type:"DoWhileStatement",test:B,body:k},ie=s.DoWhileStatement;return n(ie.test,F,"test",B,1),n(ie.body,F,"body",k,1),F}function E(){return{type:"EmptyStatement"}}function j(B){const k={type:"ExpressionStatement",expression:B},F=s.ExpressionStatement;return n(F.expression,k,"expression",B,1),k}function R(B,k=null,F=null){const ie={type:"File",program:B,comments:k,tokens:F},ke=s.File;return n(ke.program,ie,"program",B,1),n(ke.comments,ie,"comments",k,1),n(ke.tokens,ie,"tokens",F),ie}function I(B,k,F){const ie={type:"ForInStatement",left:B,right:k,body:F},ke=s.ForInStatement;return n(ke.left,ie,"left",B,1),n(ke.right,ie,"right",k,1),n(ke.body,ie,"body",F,1),ie}function D(B=null,k=null,F=null,ie){const ke={type:"ForStatement",init:B,test:k,update:F,body:ie},tt=s.ForStatement;return n(tt.init,ke,"init",B,1),n(tt.test,ke,"test",k,1),n(tt.update,ke,"update",F,1),n(tt.body,ke,"body",ie,1),ke}function Z(B=null,k,F,ie=!1,ke=!1){const tt={type:"FunctionDeclaration",id:B,params:k,body:F,generator:ie,async:ke},Nt=s.FunctionDeclaration;return n(Nt.id,tt,"id",B,1),n(Nt.params,tt,"params",k,1),n(Nt.body,tt,"body",F,1),n(Nt.generator,tt,"generator",ie),n(Nt.async,tt,"async",ke),tt}function J(B=null,k,F,ie=!1,ke=!1){const tt={type:"FunctionExpression",id:B,params:k,body:F,generator:ie,async:ke},Nt=s.FunctionExpression;return n(Nt.id,tt,"id",B,1),n(Nt.params,tt,"params",k,1),n(Nt.body,tt,"body",F,1),n(Nt.generator,tt,"generator",ie),n(Nt.async,tt,"async",ke),tt}function N(B){const k={type:"Identifier",name:B},F=s.Identifier;return n(F.name,k,"name",B),k}function $(B,k,F=null){const ie={type:"IfStatement",test:B,consequent:k,alternate:F},ke=s.IfStatement;return n(ke.test,ie,"test",B,1),n(ke.consequent,ie,"consequent",k,1),n(ke.alternate,ie,"alternate",F,1),ie}function ne(B,k){const F={type:"LabeledStatement",label:B,body:k},ie=s.LabeledStatement;return n(ie.label,F,"label",B,1),n(ie.body,F,"body",k,1),F}function me(B){const k={type:"StringLiteral",value:B},F=s.StringLiteral;return n(F.value,k,"value",B),k}function Ce(B){const k={type:"NumericLiteral",value:B},F=s.NumericLiteral;return n(F.value,k,"value",B),k}function Ae(){return{type:"NullLiteral"}}function ce(B){const k={type:"BooleanLiteral",value:B},F=s.BooleanLiteral;return n(F.value,k,"value",B),k}function ue(B,k=""){const F={type:"RegExpLiteral",pattern:B,flags:k},ie=s.RegExpLiteral;return n(ie.pattern,F,"pattern",B),n(ie.flags,F,"flags",k),F}function K(B,k,F){const ie={type:"LogicalExpression",operator:B,left:k,right:F},ke=s.LogicalExpression;return n(ke.operator,ie,"operator",B),n(ke.left,ie,"left",k,1),n(ke.right,ie,"right",F,1),ie}function Y(B,k,F=!1,ie=null){const ke={type:"MemberExpression",object:B,property:k,computed:F,optional:ie},tt=s.MemberExpression;return n(tt.object,ke,"object",B,1),n(tt.property,ke,"property",k,1),n(tt.computed,ke,"computed",F),n(tt.optional,ke,"optional",ie),ke}function he(B,k){const F={type:"NewExpression",callee:B,arguments:k,typeParameters:null},ie=s.NewExpression;return n(ie.callee,F,"callee",B,1),n(ie.arguments,F,"arguments",k,1),F}function ae(B,k=[],F="script",ie=null){const ke={type:"Program",body:B,directives:k,sourceType:F,interpreter:ie},tt=s.Program;return n(tt.body,ke,"body",B,1),n(tt.directives,ke,"directives",k,1),n(tt.sourceType,ke,"sourceType",F),n(tt.interpreter,ke,"interpreter",ie,1),ke}function U(B){const k={type:"ObjectExpression",properties:B},F=s.ObjectExpression;return n(F.properties,k,"properties",B,1),k}function L(B="method",k,F,ie,ke=!1,tt=!1,Nt=!1){const cr={type:"ObjectMethod",kind:B,key:k,params:F,body:ie,computed:ke,generator:tt,async:Nt},kr=s.ObjectMethod;return n(kr.kind,cr,"kind",B),n(kr.key,cr,"key",k,1),n(kr.params,cr,"params",F,1),n(kr.body,cr,"body",ie,1),n(kr.computed,cr,"computed",ke),n(kr.generator,cr,"generator",tt),n(kr.async,cr,"async",Nt),cr}function H(B,k,F=!1,ie=!1,ke=null){const tt={type:"ObjectProperty",key:B,value:k,computed:F,shorthand:ie,decorators:ke},Nt=s.ObjectProperty;return n(Nt.key,tt,"key",B,1),n(Nt.value,tt,"value",k,1),n(Nt.computed,tt,"computed",F),n(Nt.shorthand,tt,"shorthand",ie),n(Nt.decorators,tt,"decorators",ke,1),tt}function ye(B){const k={type:"RestElement",argument:B},F=s.RestElement;return n(F.argument,k,"argument",B,1),k}function Ie(B=null){const k={type:"ReturnStatement",argument:B},F=s.ReturnStatement;return n(F.argument,k,"argument",B,1),k}function Ee(B){const k={type:"SequenceExpression",expressions:B},F=s.SequenceExpression;return n(F.expressions,k,"expressions",B,1),k}function De(B){const k={type:"ParenthesizedExpression",expression:B},F=s.ParenthesizedExpression;return n(F.expression,k,"expression",B,1),k}function Me(B=null,k){const F={type:"SwitchCase",test:B,consequent:k},ie=s.SwitchCase;return n(ie.test,F,"test",B,1),n(ie.consequent,F,"consequent",k,1),F}function Ve(B,k){const F={type:"SwitchStatement",discriminant:B,cases:k},ie=s.SwitchStatement;return n(ie.discriminant,F,"discriminant",B,1),n(ie.cases,F,"cases",k,1),F}function Ze(){return{type:"ThisExpression"}}function ut(B){const k={type:"ThrowStatement",argument:B},F=s.ThrowStatement;return n(F.argument,k,"argument",B,1),k}function st(B,k=null,F=null){const ie={type:"TryStatement",block:B,handler:k,finalizer:F},ke=s.TryStatement;return n(ke.block,ie,"block",B,1),n(ke.handler,ie,"handler",k,1),n(ke.finalizer,ie,"finalizer",F,1),ie}function dt(B,k,F=!0){const ie={type:"UnaryExpression",operator:B,argument:k,prefix:F},ke=s.UnaryExpression;return n(ke.operator,ie,"operator",B),n(ke.argument,ie,"argument",k,1),n(ke.prefix,ie,"prefix",F),ie}function $e(B,k,F=!1){const ie={type:"UpdateExpression",operator:B,argument:k,prefix:F},ke=s.UpdateExpression;return n(ke.operator,ie,"operator",B),n(ke.argument,ie,"argument",k,1),n(ke.prefix,ie,"prefix",F),ie}function je(B,k){const F={type:"VariableDeclaration",kind:B,declarations:k},ie=s.VariableDeclaration;return n(ie.kind,F,"kind",B),n(ie.declarations,F,"declarations",k,1),F}function qe(B,k=null){const F={type:"VariableDeclarator",id:B,init:k},ie=s.VariableDeclarator;return n(ie.id,F,"id",B,1),n(ie.init,F,"init",k,1),F}function Le(B,k){const F={type:"WhileStatement",test:B,body:k},ie=s.WhileStatement;return n(ie.test,F,"test",B,1),n(ie.body,F,"body",k,1),F}function gt(B,k){const F={type:"WithStatement",object:B,body:k},ie=s.WithStatement;return n(ie.object,F,"object",B,1),n(ie.body,F,"body",k,1),F}function ht(B,k){const F={type:"AssignmentPattern",left:B,right:k},ie=s.AssignmentPattern;return n(ie.left,F,"left",B,1),n(ie.right,F,"right",k,1),F}function xe(B){const k={type:"ArrayPattern",elements:B},F=s.ArrayPattern;return n(F.elements,k,"elements",B,1),k}function Se(B,k,F=!1){const ie={type:"ArrowFunctionExpression",params:B,body:k,async:F,expression:null},ke=s.ArrowFunctionExpression;return n(ke.params,ie,"params",B,1),n(ke.body,ie,"body",k,1),n(ke.async,ie,"async",F),ie}function se(B){const k={type:"ClassBody",body:B},F=s.ClassBody;return n(F.body,k,"body",B,1),k}function ee(B=null,k=null,F,ie=null){const ke={type:"ClassExpression",id:B,superClass:k,body:F,decorators:ie},tt=s.ClassExpression;return n(tt.id,ke,"id",B,1),n(tt.superClass,ke,"superClass",k,1),n(tt.body,ke,"body",F,1),n(tt.decorators,ke,"decorators",ie,1),ke}function oe(B=null,k=null,F,ie=null){const ke={type:"ClassDeclaration",id:B,superClass:k,body:F,decorators:ie},tt=s.ClassDeclaration;return n(tt.id,ke,"id",B,1),n(tt.superClass,ke,"superClass",k,1),n(tt.body,ke,"body",F,1),n(tt.decorators,ke,"decorators",ie,1),ke}function W(B,k=null){const F={type:"ExportAllDeclaration",source:B,attributes:k},ie=s.ExportAllDeclaration;return n(ie.source,F,"source",B,1),n(ie.attributes,F,"attributes",k,1),F}function fe(B){const k={type:"ExportDefaultDeclaration",declaration:B},F=s.ExportDefaultDeclaration;return n(F.declaration,k,"declaration",B,1),k}function Re(B=null,k=[],F=null,ie=null){const ke={type:"ExportNamedDeclaration",declaration:B,specifiers:k,source:F,attributes:ie},tt=s.ExportNamedDeclaration;return n(tt.declaration,ke,"declaration",B,1),n(tt.specifiers,ke,"specifiers",k,1),n(tt.source,ke,"source",F,1),n(tt.attributes,ke,"attributes",ie,1),ke}function Fe(B,k){const F={type:"ExportSpecifier",local:B,exported:k},ie=s.ExportSpecifier;return n(ie.local,F,"local",B,1),n(ie.exported,F,"exported",k,1),F}function Ke(B,k,F,ie=!1){const ke={type:"ForOfStatement",left:B,right:k,body:F,await:ie},tt=s.ForOfStatement;return n(tt.left,ke,"left",B,1),n(tt.right,ke,"right",k,1),n(tt.body,ke,"body",F,1),n(tt.await,ke,"await",ie),ke}function it(B,k,F=null){const ie={type:"ImportDeclaration",specifiers:B,source:k,attributes:F},ke=s.ImportDeclaration;return n(ke.specifiers,ie,"specifiers",B,1),n(ke.source,ie,"source",k,1),n(ke.attributes,ie,"attributes",F,1),ie}function _t(B){const k={type:"ImportDefaultSpecifier",local:B},F=s.ImportDefaultSpecifier;return n(F.local,k,"local",B,1),k}function Mt(B){const k={type:"ImportNamespaceSpecifier",local:B},F=s.ImportNamespaceSpecifier;return n(F.local,k,"local",B,1),k}function pt(B,k){const F={type:"ImportSpecifier",local:B,imported:k},ie=s.ImportSpecifier;return n(ie.local,F,"local",B,1),n(ie.imported,F,"imported",k,1),F}function xt(B,k=null){const F={type:"ImportExpression",source:B,options:k},ie=s.ImportExpression;return n(ie.source,F,"source",B,1),n(ie.options,F,"options",k,1),F}function te(B,k){const F={type:"MetaProperty",meta:B,property:k},ie=s.MetaProperty;return n(ie.meta,F,"meta",B,1),n(ie.property,F,"property",k,1),F}function de(B="method",k,F,ie,ke=!1,tt=!1,Nt=!1,cr=!1){const kr={type:"ClassMethod",kind:B,key:k,params:F,body:ie,computed:ke,static:tt,generator:Nt,async:cr},Ai=s.ClassMethod;return n(Ai.kind,kr,"kind",B),n(Ai.key,kr,"key",k,1),n(Ai.params,kr,"params",F,1),n(Ai.body,kr,"body",ie,1),n(Ai.computed,kr,"computed",ke),n(Ai.static,kr,"static",tt),n(Ai.generator,kr,"generator",Nt),n(Ai.async,kr,"async",cr),kr}function G(B){const k={type:"ObjectPattern",properties:B},F=s.ObjectPattern;return n(F.properties,k,"properties",B,1),k}function be(B){const k={type:"SpreadElement",argument:B},F=s.SpreadElement;return n(F.argument,k,"argument",B,1),k}function et(){return{type:"Super"}}function ge(B,k){const F={type:"TaggedTemplateExpression",tag:B,quasi:k},ie=s.TaggedTemplateExpression;return n(ie.tag,F,"tag",B,1),n(ie.quasi,F,"quasi",k,1),F}function rt(B,k=!1){const F={type:"TemplateElement",value:B,tail:k},ie=s.TemplateElement;return n(ie.value,F,"value",B),n(ie.tail,F,"tail",k),F}function yt(B,k){const F={type:"TemplateLiteral",quasis:B,expressions:k},ie=s.TemplateLiteral;return n(ie.quasis,F,"quasis",B,1),n(ie.expressions,F,"expressions",k,1),F}function mt(B=null,k=!1){const F={type:"YieldExpression",argument:B,delegate:k},ie=s.YieldExpression;return n(ie.argument,F,"argument",B,1),n(ie.delegate,F,"delegate",k),F}function Bt(B){const k={type:"AwaitExpression",argument:B},F=s.AwaitExpression;return n(F.argument,k,"argument",B,1),k}function Lt(){return{type:"Import"}}function Vt(B){const k={type:"ExportNamespaceSpecifier",exported:B},F=s.ExportNamespaceSpecifier;return n(F.exported,k,"exported",B,1),k}function Jt(B,k,F=!1,ie){const ke={type:"OptionalMemberExpression",object:B,property:k,computed:F,optional:ie},tt=s.OptionalMemberExpression;return n(tt.object,ke,"object",B,1),n(tt.property,ke,"property",k,1),n(tt.computed,ke,"computed",F),n(tt.optional,ke,"optional",ie),ke}function lr(B,k,F){const ie={type:"OptionalCallExpression",callee:B,arguments:k,optional:F},ke=s.OptionalCallExpression;return n(ke.callee,ie,"callee",B,1),n(ke.arguments,ie,"arguments",k,1),n(ke.optional,ie,"optional",F),ie}function xr(B,k=null,F=null,ie=null,ke=!1,tt=!1){const Nt={type:"ClassProperty",key:B,value:k,typeAnnotation:F,decorators:ie,computed:ke,static:tt},cr=s.ClassProperty;return n(cr.key,Nt,"key",B,1),n(cr.value,Nt,"value",k,1),n(cr.typeAnnotation,Nt,"typeAnnotation",F,1),n(cr.decorators,Nt,"decorators",ie,1),n(cr.computed,Nt,"computed",ke),n(cr.static,Nt,"static",tt),Nt}function Wt(B,k=null,F=null,ie=null,ke=!1,tt=!1){const Nt={type:"ClassAccessorProperty",key:B,value:k,typeAnnotation:F,decorators:ie,computed:ke,static:tt},cr=s.ClassAccessorProperty;return n(cr.key,Nt,"key",B,1),n(cr.value,Nt,"value",k,1),n(cr.typeAnnotation,Nt,"typeAnnotation",F,1),n(cr.decorators,Nt,"decorators",ie,1),n(cr.computed,Nt,"computed",ke),n(cr.static,Nt,"static",tt),Nt}function tr(B,k=null,F=null,ie=!1){const ke={type:"ClassPrivateProperty",key:B,value:k,decorators:F,static:ie},tt=s.ClassPrivateProperty;return n(tt.key,ke,"key",B,1),n(tt.value,ke,"value",k,1),n(tt.decorators,ke,"decorators",F,1),n(tt.static,ke,"static",ie),ke}function pn(B="method",k,F,ie,ke=!1){const tt={type:"ClassPrivateMethod",kind:B,key:k,params:F,body:ie,static:ke},Nt=s.ClassPrivateMethod;return n(Nt.kind,tt,"kind",B),n(Nt.key,tt,"key",k,1),n(Nt.params,tt,"params",F,1),n(Nt.body,tt,"body",ie,1),n(Nt.static,tt,"static",ke),tt}function dn(B){const k={type:"PrivateName",id:B},F=s.PrivateName;return n(F.id,k,"id",B,1),k}function Sr(B){const k={type:"StaticBlock",body:B},F=s.StaticBlock;return n(F.body,k,"body",B,1),k}function Rt(B,k){const F={type:"ImportAttribute",key:B,value:k},ie=s.ImportAttribute;return n(ie.key,F,"key",B,1),n(ie.value,F,"value",k,1),F}function ui(){return{type:"AnyTypeAnnotation"}}function Vr(B){const k={type:"ArrayTypeAnnotation",elementType:B},F=s.ArrayTypeAnnotation;return n(F.elementType,k,"elementType",B,1),k}function tn(){return{type:"BooleanTypeAnnotation"}}function Rr(B){const k={type:"BooleanLiteralTypeAnnotation",value:B},F=s.BooleanLiteralTypeAnnotation;return n(F.value,k,"value",B),k}function jr(){return{type:"NullLiteralTypeAnnotation"}}function Dn(B,k=null){const F={type:"ClassImplements",id:B,typeParameters:k},ie=s.ClassImplements;return n(ie.id,F,"id",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Kr(B,k=null,F=null,ie){const ke={type:"DeclareClass",id:B,typeParameters:k,extends:F,body:ie},tt=s.DeclareClass;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function Hn(B){const k={type:"DeclareFunction",id:B},F=s.DeclareFunction;return n(F.id,k,"id",B,1),k}function Nr(B,k=null,F=null,ie){const ke={type:"DeclareInterface",id:B,typeParameters:k,extends:F,body:ie},tt=s.DeclareInterface;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function An(B,k,F=null){const ie={type:"DeclareModule",id:B,body:k,kind:F},ke=s.DeclareModule;return n(ke.id,ie,"id",B,1),n(ke.body,ie,"body",k,1),n(ke.kind,ie,"kind",F),ie}function fi(B){const k={type:"DeclareModuleExports",typeAnnotation:B},F=s.DeclareModuleExports;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function dr(B,k=null,F){const ie={type:"DeclareTypeAlias",id:B,typeParameters:k,right:F},ke=s.DeclareTypeAlias;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.right,ie,"right",F,1),ie}function rn(B,k=null,F=null){const ie={type:"DeclareOpaqueType",id:B,typeParameters:k,supertype:F},ke=s.DeclareOpaqueType;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.supertype,ie,"supertype",F,1),ie}function nn(B){const k={type:"DeclareVariable",id:B},F=s.DeclareVariable;return n(F.id,k,"id",B,1),k}function hn(B=null,k=null,F=null,ie=null){const ke={type:"DeclareExportDeclaration",declaration:B,specifiers:k,source:F,attributes:ie},tt=s.DeclareExportDeclaration;return n(tt.declaration,ke,"declaration",B,1),n(tt.specifiers,ke,"specifiers",k,1),n(tt.source,ke,"source",F,1),n(tt.attributes,ke,"attributes",ie,1),ke}function Wr(B,k=null){const F={type:"DeclareExportAllDeclaration",source:B,attributes:k},ie=s.DeclareExportAllDeclaration;return n(ie.source,F,"source",B,1),n(ie.attributes,F,"attributes",k,1),F}function yn(B){const k={type:"DeclaredPredicate",value:B},F=s.DeclaredPredicate;return n(F.value,k,"value",B,1),k}function Ri(){return{type:"ExistsTypeAnnotation"}}function Cn(B=null,k,F=null,ie){const ke={type:"FunctionTypeAnnotation",typeParameters:B,params:k,rest:F,returnType:ie},tt=s.FunctionTypeAnnotation;return n(tt.typeParameters,ke,"typeParameters",B,1),n(tt.params,ke,"params",k,1),n(tt.rest,ke,"rest",F,1),n(tt.returnType,ke,"returnType",ie,1),ke}function is(B=null,k){const F={type:"FunctionTypeParam",name:B,typeAnnotation:k},ie=s.FunctionTypeParam;return n(ie.name,F,"name",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function pi(B,k=null){const F={type:"GenericTypeAnnotation",id:B,typeParameters:k},ie=s.GenericTypeAnnotation;return n(ie.id,F,"id",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Jn(){return{type:"InferredPredicate"}}function zt(B,k=null){const F={type:"InterfaceExtends",id:B,typeParameters:k},ie=s.InterfaceExtends;return n(ie.id,F,"id",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function ji(B,k=null,F=null,ie){const ke={type:"InterfaceDeclaration",id:B,typeParameters:k,extends:F,body:ie},tt=s.InterfaceDeclaration;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function ss(B=null,k){const F={type:"InterfaceTypeAnnotation",extends:B,body:k},ie=s.InterfaceTypeAnnotation;return n(ie.extends,F,"extends",B,1),n(ie.body,F,"body",k,1),F}function mn(B){const k={type:"IntersectionTypeAnnotation",types:B},F=s.IntersectionTypeAnnotation;return n(F.types,k,"types",B,1),k}function Pr(){return{type:"MixedTypeAnnotation"}}function as(){return{type:"EmptyTypeAnnotation"}}function di(B){const k={type:"NullableTypeAnnotation",typeAnnotation:B},F=s.NullableTypeAnnotation;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function os(B){const k={type:"NumberLiteralTypeAnnotation",value:B},F=s.NumberLiteralTypeAnnotation;return n(F.value,k,"value",B),k}function ir(){return{type:"NumberTypeAnnotation"}}function gn(B,k=[],F=[],ie=[],ke=!1){const tt={type:"ObjectTypeAnnotation",properties:B,indexers:k,callProperties:F,internalSlots:ie,exact:ke},Nt=s.ObjectTypeAnnotation;return n(Nt.properties,tt,"properties",B,1),n(Nt.indexers,tt,"indexers",k,1),n(Nt.callProperties,tt,"callProperties",F,1),n(Nt.internalSlots,tt,"internalSlots",ie,1),n(Nt.exact,tt,"exact",ke),tt}function Bn(B,k,F,ie,ke){const tt={type:"ObjectTypeInternalSlot",id:B,value:k,optional:F,static:ie,method:ke},Nt=s.ObjectTypeInternalSlot;return n(Nt.id,tt,"id",B,1),n(Nt.value,tt,"value",k,1),n(Nt.optional,tt,"optional",F),n(Nt.static,tt,"static",ie),n(Nt.method,tt,"method",ke),tt}function Rn(B){const k={type:"ObjectTypeCallProperty",value:B,static:null},F=s.ObjectTypeCallProperty;return n(F.value,k,"value",B,1),k}function Mi(B=null,k,F,ie=null){const ke={type:"ObjectTypeIndexer",id:B,key:k,value:F,variance:ie,static:null},tt=s.ObjectTypeIndexer;return n(tt.id,ke,"id",B,1),n(tt.key,ke,"key",k,1),n(tt.value,ke,"value",F,1),n(tt.variance,ke,"variance",ie,1),ke}function Yn(B,k,F=null){const ie={type:"ObjectTypeProperty",key:B,value:k,variance:F,kind:null,method:null,optional:null,proto:null,static:null},ke=s.ObjectTypeProperty;return n(ke.key,ie,"key",B,1),n(ke.value,ie,"value",k,1),n(ke.variance,ie,"variance",F,1),ie}function Xn(B){const k={type:"ObjectTypeSpreadProperty",argument:B},F=s.ObjectTypeSpreadProperty;return n(F.argument,k,"argument",B,1),k}function Li(B,k=null,F=null,ie){const ke={type:"OpaqueType",id:B,typeParameters:k,supertype:F,impltype:ie},tt=s.OpaqueType;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.supertype,ke,"supertype",F,1),n(tt.impltype,ke,"impltype",ie,1),ke}function bn(B,k){const F={type:"QualifiedTypeIdentifier",id:B,qualification:k},ie=s.QualifiedTypeIdentifier;return n(ie.id,F,"id",B,1),n(ie.qualification,F,"qualification",k,1),F}function ls(B){const k={type:"StringLiteralTypeAnnotation",value:B},F=s.StringLiteralTypeAnnotation;return n(F.value,k,"value",B),k}function vn(){return{type:"StringTypeAnnotation"}}function Qt(){return{type:"SymbolTypeAnnotation"}}function cs(){return{type:"ThisTypeAnnotation"}}function Ls(B){const k={type:"TupleTypeAnnotation",types:B},F=s.TupleTypeAnnotation;return n(F.types,k,"types",B,1),k}function hi(B){const k={type:"TypeofTypeAnnotation",argument:B},F=s.TypeofTypeAnnotation;return n(F.argument,k,"argument",B,1),k}function Ar(B,k=null,F){const ie={type:"TypeAlias",id:B,typeParameters:k,right:F},ke=s.TypeAlias;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.right,ie,"right",F,1),ie}function jn(B){const k={type:"TypeAnnotation",typeAnnotation:B},F=s.TypeAnnotation;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function yi(B,k){const F={type:"TypeCastExpression",expression:B,typeAnnotation:k},ie=s.TypeCastExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function Sn(B=null,k=null,F=null){const ie={type:"TypeParameter",bound:B,default:k,variance:F,name:null},ke=s.TypeParameter;return n(ke.bound,ie,"bound",B,1),n(ke.default,ie,"default",k,1),n(ke.variance,ie,"variance",F,1),ie}function us(B){const k={type:"TypeParameterDeclaration",params:B},F=s.TypeParameterDeclaration;return n(F.params,k,"params",B,1),k}function Fi(B){const k={type:"TypeParameterInstantiation",params:B},F=s.TypeParameterInstantiation;return n(F.params,k,"params",B,1),k}function br(B){const k={type:"UnionTypeAnnotation",types:B},F=s.UnionTypeAnnotation;return n(F.types,k,"types",B,1),k}function Cr(B){const k={type:"Variance",kind:B},F=s.Variance;return n(F.kind,k,"kind",B),k}function Tn(){return{type:"VoidTypeAnnotation"}}function Mn(B,k){const F={type:"EnumDeclaration",id:B,body:k},ie=s.EnumDeclaration;return n(ie.id,F,"id",B,1),n(ie.body,F,"body",k,1),F}function qi(B){const k={type:"EnumBooleanBody",members:B,explicitType:null,hasUnknownMembers:null},F=s.EnumBooleanBody;return n(F.members,k,"members",B,1),k}function Yr(B){const k={type:"EnumNumberBody",members:B,explicitType:null,hasUnknownMembers:null},F=s.EnumNumberBody;return n(F.members,k,"members",B,1),k}function Fs(B){const k={type:"EnumStringBody",members:B,explicitType:null,hasUnknownMembers:null},F=s.EnumStringBody;return n(F.members,k,"members",B,1),k}function Mr(B){const k={type:"EnumSymbolBody",members:B,hasUnknownMembers:null},F=s.EnumSymbolBody;return n(F.members,k,"members",B,1),k}function $i(B){const k={type:"EnumBooleanMember",id:B,init:null},F=s.EnumBooleanMember;return n(F.id,k,"id",B,1),k}function Ui(B,k){const F={type:"EnumNumberMember",id:B,init:k},ie=s.EnumNumberMember;return n(ie.id,F,"id",B,1),n(ie.init,F,"init",k,1),F}function It(B,k){const F={type:"EnumStringMember",id:B,init:k},ie=s.EnumStringMember;return n(ie.id,F,"id",B,1),n(ie.init,F,"init",k,1),F}function Qn(B){const k={type:"EnumDefaultedMember",id:B},F=s.EnumDefaultedMember;return n(F.id,k,"id",B,1),k}function mi(B,k){const F={type:"IndexedAccessType",objectType:B,indexType:k},ie=s.IndexedAccessType;return n(ie.objectType,F,"objectType",B,1),n(ie.indexType,F,"indexType",k,1),F}function fs(B,k){const F={type:"OptionalIndexedAccessType",objectType:B,indexType:k,optional:null},ie=s.OptionalIndexedAccessType;return n(ie.objectType,F,"objectType",B,1),n(ie.indexType,F,"indexType",k,1),F}function qs(B,k=null){const F={type:"JSXAttribute",name:B,value:k},ie=s.JSXAttribute;return n(ie.name,F,"name",B,1),n(ie.value,F,"value",k,1),F}function Zn(B){const k={type:"JSXClosingElement",name:B},F=s.JSXClosingElement;return n(F.name,k,"name",B,1),k}function $s(B,k=null,F,ie=null){const ke={type:"JSXElement",openingElement:B,closingElement:k,children:F,selfClosing:ie},tt=s.JSXElement;return n(tt.openingElement,ke,"openingElement",B,1),n(tt.closingElement,ke,"closingElement",k,1),n(tt.children,ke,"children",F,1),n(tt.selfClosing,ke,"selfClosing",ie),ke}function ps(){return{type:"JSXEmptyExpression"}}function gi(B){const k={type:"JSXExpressionContainer",expression:B},F=s.JSXExpressionContainer;return n(F.expression,k,"expression",B,1),k}function ei(B){const k={type:"JSXSpreadChild",expression:B},F=s.JSXSpreadChild;return n(F.expression,k,"expression",B,1),k}function bi(B){const k={type:"JSXIdentifier",name:B},F=s.JSXIdentifier;return n(F.name,k,"name",B),k}function Us(B,k){const F={type:"JSXMemberExpression",object:B,property:k},ie=s.JSXMemberExpression;return n(ie.object,F,"object",B,1),n(ie.property,F,"property",k,1),F}function Vs(B,k){const F={type:"JSXNamespacedName",namespace:B,name:k},ie=s.JSXNamespacedName;return n(ie.namespace,F,"namespace",B,1),n(ie.name,F,"name",k,1),F}function ds(B,k,F=!1){const ie={type:"JSXOpeningElement",name:B,attributes:k,selfClosing:F},ke=s.JSXOpeningElement;return n(ke.name,ie,"name",B,1),n(ke.attributes,ie,"attributes",k,1),n(ke.selfClosing,ie,"selfClosing",F),ie}function vi(B){const k={type:"JSXSpreadAttribute",argument:B},F=s.JSXSpreadAttribute;return n(F.argument,k,"argument",B,1),k}function Vi(B){const k={type:"JSXText",value:B},F=s.JSXText;return n(F.value,k,"value",B),k}function Ki(B,k,F){const ie={type:"JSXFragment",openingFragment:B,closingFragment:k,children:F},ke=s.JSXFragment;return n(ke.openingFragment,ie,"openingFragment",B,1),n(ke.closingFragment,ie,"closingFragment",k,1),n(ke.children,ie,"children",F,1),ie}function Si(){return{type:"JSXOpeningFragment"}}function Ti(){return{type:"JSXClosingFragment"}}function Ln(){return{type:"Noop"}}function hs(B,k){const F={type:"Placeholder",expectedNode:B,name:k},ie=s.Placeholder;return n(ie.expectedNode,F,"expectedNode",B),n(ie.name,F,"name",k,1),F}function Ks(B){const k={type:"V8IntrinsicIdentifier",name:B},F=s.V8IntrinsicIdentifier;return n(F.name,k,"name",B),k}function En(){return{type:"ArgumentPlaceholder"}}function ti(B,k){const F={type:"BindExpression",object:B,callee:k},ie=s.BindExpression;return n(ie.object,F,"object",B,1),n(ie.callee,F,"callee",k,1),F}function Wi(B){const k={type:"Decorator",expression:B},F=s.Decorator;return n(F.expression,k,"expression",B,1),k}function Ei(B,k=!1){const F={type:"DoExpression",body:B,async:k},ie=s.DoExpression;return n(ie.body,F,"body",B,1),n(ie.async,F,"async",k),F}function Gi(B){const k={type:"ExportDefaultSpecifier",exported:B},F=s.ExportDefaultSpecifier;return n(F.exported,k,"exported",B,1),k}function zi(B){const k={type:"RecordExpression",properties:B},F=s.RecordExpression;return n(F.properties,k,"properties",B,1),k}function Tr(B=[]){const k={type:"TupleExpression",elements:B},F=s.TupleExpression;return n(F.elements,k,"elements",B,1),k}function ri(B){const k={type:"DecimalLiteral",value:B},F=s.DecimalLiteral;return n(F.value,k,"value",B),k}function sn(B){const k={type:"ModuleExpression",body:B},F=s.ModuleExpression;return n(F.body,k,"body",B,1),k}function Hi(){return{type:"TopicReference"}}function xi(B){const k={type:"PipelineTopicExpression",expression:B},F=s.PipelineTopicExpression;return n(F.expression,k,"expression",B,1),k}function z(B){const k={type:"PipelineBareFunction",callee:B},F=s.PipelineBareFunction;return n(F.callee,k,"callee",B,1),k}function l(){return{type:"PipelinePrimaryTopicReference"}}function i(){return{type:"VoidPattern"}}function c(B){const k={type:"TSParameterProperty",parameter:B},F=s.TSParameterProperty;return n(F.parameter,k,"parameter",B,1),k}function d(B=null,k=null,F,ie=null){const ke={type:"TSDeclareFunction",id:B,typeParameters:k,params:F,returnType:ie},tt=s.TSDeclareFunction;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.params,ke,"params",F,1),n(tt.returnType,ke,"returnType",ie,1),ke}function A(B=null,k,F=null,ie,ke=null){const tt={type:"TSDeclareMethod",decorators:B,key:k,typeParameters:F,params:ie,returnType:ke},Nt=s.TSDeclareMethod;return n(Nt.decorators,tt,"decorators",B,1),n(Nt.key,tt,"key",k,1),n(Nt.typeParameters,tt,"typeParameters",F,1),n(Nt.params,tt,"params",ie,1),n(Nt.returnType,tt,"returnType",ke,1),tt}function Q(B,k){const F={type:"TSQualifiedName",left:B,right:k},ie=s.TSQualifiedName;return n(ie.left,F,"left",B,1),n(ie.right,F,"right",k,1),F}function le(B=null,k,F=null){const ie={type:"TSCallSignatureDeclaration",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSCallSignatureDeclaration;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function Pe(B=null,k,F=null){const ie={type:"TSConstructSignatureDeclaration",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSConstructSignatureDeclaration;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function Be(B,k=null){const F={type:"TSPropertySignature",key:B,typeAnnotation:k},ie=s.TSPropertySignature;return n(ie.key,F,"key",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function Ue(B,k=null,F,ie=null){const ke={type:"TSMethodSignature",key:B,typeParameters:k,parameters:F,typeAnnotation:ie,kind:null},tt=s.TSMethodSignature;return n(tt.key,ke,"key",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.parameters,ke,"parameters",F,1),n(tt.typeAnnotation,ke,"typeAnnotation",ie,1),ke}function ct(B,k=null){const F={type:"TSIndexSignature",parameters:B,typeAnnotation:k},ie=s.TSIndexSignature;return n(ie.parameters,F,"parameters",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function vt(){return{type:"TSAnyKeyword"}}function wt(){return{type:"TSBooleanKeyword"}}function Ot(){return{type:"TSBigIntKeyword"}}function Gt(){return{type:"TSIntrinsicKeyword"}}function or(){return{type:"TSNeverKeyword"}}function Ft(){return{type:"TSNullKeyword"}}function sr(){return{type:"TSNumberKeyword"}}function xn(){return{type:"TSObjectKeyword"}}function an(){return{type:"TSStringKeyword"}}function ys(){return{type:"TSSymbolKeyword"}}function Ji(){return{type:"TSUndefinedKeyword"}}function Pi(){return{type:"TSUnknownKeyword"}}function Yi(){return{type:"TSVoidKeyword"}}function Xi(){return{type:"TSThisType"}}function ms(B=null,k,F=null){const ie={type:"TSFunctionType",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSFunctionType;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function gs(B=null,k,F=null){const ie={type:"TSConstructorType",typeParameters:B,parameters:k,typeAnnotation:F},ke=s.TSConstructorType;return n(ke.typeParameters,ie,"typeParameters",B,1),n(ke.parameters,ie,"parameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function bs(B,k=null){const F={type:"TSTypeReference",typeName:B,typeParameters:k},ie=s.TSTypeReference;return n(ie.typeName,F,"typeName",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function ni(B,k=null,F=null){const ie={type:"TSTypePredicate",parameterName:B,typeAnnotation:k,asserts:F},ke=s.TSTypePredicate;return n(ke.parameterName,ie,"parameterName",B,1),n(ke.typeAnnotation,ie,"typeAnnotation",k,1),n(ke.asserts,ie,"asserts",F),ie}function Xr(B,k=null){const F={type:"TSTypeQuery",exprName:B,typeParameters:k},ie=s.TSTypeQuery;return n(ie.exprName,F,"exprName",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function hr(B){const k={type:"TSTypeLiteral",members:B},F=s.TSTypeLiteral;return n(F.members,k,"members",B,1),k}function ii(B){const k={type:"TSArrayType",elementType:B},F=s.TSArrayType;return n(F.elementType,k,"elementType",B,1),k}function In(B){const k={type:"TSTupleType",elementTypes:B},F=s.TSTupleType;return n(F.elementTypes,k,"elementTypes",B,1),k}function vs(B){const k={type:"TSOptionalType",typeAnnotation:B},F=s.TSOptionalType;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function _i(B){const k={type:"TSRestType",typeAnnotation:B},F=s.TSRestType;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function Qi(B,k,F=!1){const ie={type:"TSNamedTupleMember",label:B,elementType:k,optional:F},ke=s.TSNamedTupleMember;return n(ke.label,ie,"label",B,1),n(ke.elementType,ie,"elementType",k,1),n(ke.optional,ie,"optional",F),ie}function Pn(B){const k={type:"TSUnionType",types:B},F=s.TSUnionType;return n(F.types,k,"types",B,1),k}function wi(B){const k={type:"TSIntersectionType",types:B},F=s.TSIntersectionType;return n(F.types,k,"types",B,1),k}function On(B,k,F,ie){const ke={type:"TSConditionalType",checkType:B,extendsType:k,trueType:F,falseType:ie},tt=s.TSConditionalType;return n(tt.checkType,ke,"checkType",B,1),n(tt.extendsType,ke,"extendsType",k,1),n(tt.trueType,ke,"trueType",F,1),n(tt.falseType,ke,"falseType",ie,1),ke}function on(B){const k={type:"TSInferType",typeParameter:B},F=s.TSInferType;return n(F.typeParameter,k,"typeParameter",B,1),k}function Zi(B){const k={type:"TSParenthesizedType",typeAnnotation:B},F=s.TSParenthesizedType;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function v(B,k="keyof"){const F={type:"TSTypeOperator",typeAnnotation:B,operator:k},ie=s.TSTypeOperator;return n(ie.typeAnnotation,F,"typeAnnotation",B,1),n(ie.operator,F,"operator",k),F}function P(B,k){const F={type:"TSIndexedAccessType",objectType:B,indexType:k},ie=s.TSIndexedAccessType;return n(ie.objectType,F,"objectType",B,1),n(ie.indexType,F,"indexType",k,1),F}function M(B,k=null,F=null){const ie={type:"TSMappedType",typeParameter:B,typeAnnotation:k,nameType:F},ke=s.TSMappedType;return n(ke.typeParameter,ie,"typeParameter",B,1),n(ke.typeAnnotation,ie,"typeAnnotation",k,1),n(ke.nameType,ie,"nameType",F,1),ie}function V(B,k){const F={type:"TSTemplateLiteralType",quasis:B,types:k},ie=s.TSTemplateLiteralType;return n(ie.quasis,F,"quasis",B,1),n(ie.types,F,"types",k,1),F}function re(B){const k={type:"TSLiteralType",literal:B},F=s.TSLiteralType;return n(F.literal,k,"literal",B,1),k}function pe(B,k=null){const F={type:"TSExpressionWithTypeArguments",expression:B,typeParameters:k},ie=s.TSExpressionWithTypeArguments;return n(ie.expression,F,"expression",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Te(B,k=null,F=null,ie){const ke={type:"TSInterfaceDeclaration",id:B,typeParameters:k,extends:F,body:ie},tt=s.TSInterfaceDeclaration;return n(tt.id,ke,"id",B,1),n(tt.typeParameters,ke,"typeParameters",k,1),n(tt.extends,ke,"extends",F,1),n(tt.body,ke,"body",ie,1),ke}function Ne(B){const k={type:"TSInterfaceBody",body:B},F=s.TSInterfaceBody;return n(F.body,k,"body",B,1),k}function We(B,k=null,F){const ie={type:"TSTypeAliasDeclaration",id:B,typeParameters:k,typeAnnotation:F},ke=s.TSTypeAliasDeclaration;return n(ke.id,ie,"id",B,1),n(ke.typeParameters,ie,"typeParameters",k,1),n(ke.typeAnnotation,ie,"typeAnnotation",F,1),ie}function at(B,k=null){const F={type:"TSInstantiationExpression",expression:B,typeParameters:k},ie=s.TSInstantiationExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeParameters,F,"typeParameters",k,1),F}function Je(B,k){const F={type:"TSAsExpression",expression:B,typeAnnotation:k},ie=s.TSAsExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function Ge(B,k){const F={type:"TSSatisfiesExpression",expression:B,typeAnnotation:k},ie=s.TSSatisfiesExpression;return n(ie.expression,F,"expression",B,1),n(ie.typeAnnotation,F,"typeAnnotation",k,1),F}function He(B,k){const F={type:"TSTypeAssertion",typeAnnotation:B,expression:k},ie=s.TSTypeAssertion;return n(ie.typeAnnotation,F,"typeAnnotation",B,1),n(ie.expression,F,"expression",k,1),F}function nt(B){const k={type:"TSEnumBody",members:B},F=s.TSEnumBody;return n(F.members,k,"members",B,1),k}function Xe(B,k){const F={type:"TSEnumDeclaration",id:B,members:k},ie=s.TSEnumDeclaration;return n(ie.id,F,"id",B,1),n(ie.members,F,"members",k,1),F}function Ye(B,k=null){const F={type:"TSEnumMember",id:B,initializer:k},ie=s.TSEnumMember;return n(ie.id,F,"id",B,1),n(ie.initializer,F,"initializer",k,1),F}function Qe(B,k){const F={type:"TSModuleDeclaration",id:B,body:k,kind:null},ie=s.TSModuleDeclaration;return n(ie.id,F,"id",B,1),n(ie.body,F,"body",k,1),F}function lt(B){const k={type:"TSModuleBlock",body:B},F=s.TSModuleBlock;return n(F.body,k,"body",B,1),k}function ot(B,k=null,F=null){const ie={type:"TSImportType",argument:B,qualifier:k,typeParameters:F},ke=s.TSImportType;return n(ke.argument,ie,"argument",B,1),n(ke.qualifier,ie,"qualifier",k,1),n(ke.typeParameters,ie,"typeParameters",F,1),ie}function ft(B,k){const F={type:"TSImportEqualsDeclaration",id:B,moduleReference:k,isExport:null},ie=s.TSImportEqualsDeclaration;return n(ie.id,F,"id",B,1),n(ie.moduleReference,F,"moduleReference",k,1),F}function bt(B){const k={type:"TSExternalModuleReference",expression:B},F=s.TSExternalModuleReference;return n(F.expression,k,"expression",B,1),k}function Et(B){const k={type:"TSNonNullExpression",expression:B},F=s.TSNonNullExpression;return n(F.expression,k,"expression",B,1),k}function Ct(B){const k={type:"TSExportAssignment",expression:B},F=s.TSExportAssignment;return n(F.expression,k,"expression",B,1),k}function Pt(B){const k={type:"TSNamespaceExportDeclaration",id:B},F=s.TSNamespaceExportDeclaration;return n(F.id,k,"id",B,1),k}function Dt(B){const k={type:"TSTypeAnnotation",typeAnnotation:B},F=s.TSTypeAnnotation;return n(F.typeAnnotation,k,"typeAnnotation",B,1),k}function At(B){const k={type:"TSTypeParameterInstantiation",params:B},F=s.TSTypeParameterInstantiation;return n(F.params,k,"params",B,1),k}function jt(B){const k={type:"TSTypeParameterDeclaration",params:B},F=s.TSTypeParameterDeclaration;return n(F.params,k,"params",B,1),k}function St(B=null,k=null,F){const ie={type:"TSTypeParameter",constraint:B,default:k,name:F},ke=s.TSTypeParameter;return n(ke.constraint,ie,"constraint",B,1),n(ke.default,ie,"default",k,1),n(ke.name,ie,"name",F),ie}function qt(B){return(0,e.default)("NumberLiteral","NumericLiteral","The node type "),Ce(B)}function $t(B,k=""){return(0,e.default)("RegexLiteral","RegExpLiteral","The node type "),ue(B,k)}function Kt(B){return(0,e.default)("RestProperty","RestElement","The node type "),ye(B)}function Yt(B){return(0,e.default)("SpreadProperty","SpreadElement","The node type "),be(B)}return ve}var X={},Om;function IE(){if(Om)return X;Om=1,Object.defineProperty(X,"__esModule",{value:!0}),X.JSXIdentifier=X.JSXFragment=X.JSXExpressionContainer=X.JSXEmptyExpression=X.JSXElement=X.JSXClosingFragment=X.JSXClosingElement=X.JSXAttribute=X.IntersectionTypeAnnotation=X.InterpreterDirective=X.InterfaceTypeAnnotation=X.InterfaceExtends=X.InterfaceDeclaration=X.InferredPredicate=X.IndexedAccessType=X.ImportSpecifier=X.ImportNamespaceSpecifier=X.ImportExpression=X.ImportDefaultSpecifier=X.ImportDeclaration=X.ImportAttribute=X.Import=X.IfStatement=X.Identifier=X.GenericTypeAnnotation=X.FunctionTypeParam=X.FunctionTypeAnnotation=X.FunctionExpression=X.FunctionDeclaration=X.ForStatement=X.ForOfStatement=X.ForInStatement=X.File=X.ExpressionStatement=X.ExportSpecifier=X.ExportNamespaceSpecifier=X.ExportNamedDeclaration=X.ExportDefaultSpecifier=X.ExportDefaultDeclaration=X.ExportAllDeclaration=X.ExistsTypeAnnotation=X.EnumSymbolBody=X.EnumStringMember=X.EnumStringBody=X.EnumNumberMember=X.EnumNumberBody=X.EnumDefaultedMember=X.EnumDeclaration=X.EnumBooleanMember=X.EnumBooleanBody=X.EmptyTypeAnnotation=X.EmptyStatement=X.DoWhileStatement=X.DoExpression=X.DirectiveLiteral=X.Directive=X.Decorator=X.DeclaredPredicate=X.DeclareVariable=X.DeclareTypeAlias=X.DeclareOpaqueType=X.DeclareModuleExports=X.DeclareModule=X.DeclareInterface=X.DeclareFunction=X.DeclareExportDeclaration=X.DeclareExportAllDeclaration=X.DeclareClass=X.DecimalLiteral=X.DebuggerStatement=X.ContinueStatement=X.ConditionalExpression=X.ClassProperty=X.ClassPrivateProperty=X.ClassPrivateMethod=X.ClassMethod=X.ClassImplements=X.ClassExpression=X.ClassDeclaration=X.ClassBody=X.ClassAccessorProperty=X.CatchClause=X.CallExpression=X.BreakStatement=X.BooleanTypeAnnotation=X.BooleanLiteralTypeAnnotation=X.BooleanLiteral=X.BlockStatement=X.BindExpression=X.BinaryExpression=X.BigIntLiteral=X.AwaitExpression=X.AssignmentPattern=X.AssignmentExpression=X.ArrowFunctionExpression=X.ArrayTypeAnnotation=X.ArrayPattern=X.ArrayExpression=X.ArgumentPlaceholder=X.AnyTypeAnnotation=void 0,X.TSNumberKeyword=X.TSNullKeyword=X.TSNonNullExpression=X.TSNeverKeyword=X.TSNamespaceExportDeclaration=X.TSNamedTupleMember=X.TSModuleDeclaration=X.TSModuleBlock=X.TSMethodSignature=X.TSMappedType=X.TSLiteralType=X.TSIntrinsicKeyword=X.TSIntersectionType=X.TSInterfaceDeclaration=X.TSInterfaceBody=X.TSInstantiationExpression=X.TSInferType=X.TSIndexedAccessType=X.TSIndexSignature=X.TSImportType=X.TSImportEqualsDeclaration=X.TSFunctionType=X.TSExternalModuleReference=X.TSExpressionWithTypeArguments=X.TSExportAssignment=X.TSEnumMember=X.TSEnumDeclaration=X.TSEnumBody=X.TSDeclareMethod=X.TSDeclareFunction=X.TSConstructorType=X.TSConstructSignatureDeclaration=X.TSConditionalType=X.TSCallSignatureDeclaration=X.TSBooleanKeyword=X.TSBigIntKeyword=X.TSAsExpression=X.TSArrayType=X.TSAnyKeyword=X.SymbolTypeAnnotation=X.SwitchStatement=X.SwitchCase=X.Super=X.StringTypeAnnotation=X.StringLiteralTypeAnnotation=X.StringLiteral=X.StaticBlock=X.SpreadProperty=X.SpreadElement=X.SequenceExpression=X.ReturnStatement=X.RestProperty=X.RestElement=X.RegexLiteral=X.RegExpLiteral=X.RecordExpression=X.QualifiedTypeIdentifier=X.Program=X.PrivateName=X.Placeholder=X.PipelineTopicExpression=X.PipelinePrimaryTopicReference=X.PipelineBareFunction=X.ParenthesizedExpression=X.OptionalMemberExpression=X.OptionalIndexedAccessType=X.OptionalCallExpression=X.OpaqueType=X.ObjectTypeSpreadProperty=X.ObjectTypeProperty=X.ObjectTypeInternalSlot=X.ObjectTypeIndexer=X.ObjectTypeCallProperty=X.ObjectTypeAnnotation=X.ObjectProperty=X.ObjectPattern=X.ObjectMethod=X.ObjectExpression=X.NumericLiteral=X.NumberTypeAnnotation=X.NumberLiteralTypeAnnotation=X.NumberLiteral=X.NullableTypeAnnotation=X.NullLiteralTypeAnnotation=X.NullLiteral=X.Noop=X.NewExpression=X.ModuleExpression=X.MixedTypeAnnotation=X.MetaProperty=X.MemberExpression=X.LogicalExpression=X.LabeledStatement=X.JSXText=X.JSXSpreadChild=X.JSXSpreadAttribute=X.JSXOpeningFragment=X.JSXOpeningElement=X.JSXNamespacedName=X.JSXMemberExpression=void 0,X.YieldExpression=X.WithStatement=X.WhileStatement=X.VoidTypeAnnotation=X.VoidPattern=X.Variance=X.VariableDeclarator=X.VariableDeclaration=X.V8IntrinsicIdentifier=X.UpdateExpression=X.UnionTypeAnnotation=X.UnaryExpression=X.TypeofTypeAnnotation=X.TypeParameterInstantiation=X.TypeParameterDeclaration=X.TypeParameter=X.TypeCastExpression=X.TypeAnnotation=X.TypeAlias=X.TupleTypeAnnotation=X.TupleExpression=X.TryStatement=X.TopicReference=X.ThrowStatement=X.ThisTypeAnnotation=X.ThisExpression=X.TemplateLiteral=X.TemplateElement=X.TaggedTemplateExpression=X.TSVoidKeyword=X.TSUnknownKeyword=X.TSUnionType=X.TSUndefinedKeyword=X.TSTypeReference=X.TSTypeQuery=X.TSTypePredicate=X.TSTypeParameterInstantiation=X.TSTypeParameterDeclaration=X.TSTypeParameter=X.TSTypeOperator=X.TSTypeLiteral=X.TSTypeAssertion=X.TSTypeAnnotation=X.TSTypeAliasDeclaration=X.TSTupleType=X.TSThisType=X.TSTemplateLiteralType=X.TSSymbolKeyword=X.TSStringKeyword=X.TSSatisfiesExpression=X.TSRestType=X.TSQualifiedName=X.TSPropertySignature=X.TSParenthesizedType=X.TSParameterProperty=X.TSOptionalType=X.TSObjectKeyword=void 0;var t=Im();Po();function e(r){return t[r]}return X.ArrayExpression=e("arrayExpression"),X.AssignmentExpression=e("assignmentExpression"),X.BinaryExpression=e("binaryExpression"),X.InterpreterDirective=e("interpreterDirective"),X.Directive=e("directive"),X.DirectiveLiteral=e("directiveLiteral"),X.BlockStatement=e("blockStatement"),X.BreakStatement=e("breakStatement"),X.CallExpression=e("callExpression"),X.CatchClause=e("catchClause"),X.ConditionalExpression=e("conditionalExpression"),X.ContinueStatement=e("continueStatement"),X.DebuggerStatement=e("debuggerStatement"),X.DoWhileStatement=e("doWhileStatement"),X.EmptyStatement=e("emptyStatement"),X.ExpressionStatement=e("expressionStatement"),X.File=e("file"),X.ForInStatement=e("forInStatement"),X.ForStatement=e("forStatement"),X.FunctionDeclaration=e("functionDeclaration"),X.FunctionExpression=e("functionExpression"),X.Identifier=e("identifier"),X.IfStatement=e("ifStatement"),X.LabeledStatement=e("labeledStatement"),X.StringLiteral=e("stringLiteral"),X.NumericLiteral=e("numericLiteral"),X.NullLiteral=e("nullLiteral"),X.BooleanLiteral=e("booleanLiteral"),X.RegExpLiteral=e("regExpLiteral"),X.LogicalExpression=e("logicalExpression"),X.MemberExpression=e("memberExpression"),X.NewExpression=e("newExpression"),X.Program=e("program"),X.ObjectExpression=e("objectExpression"),X.ObjectMethod=e("objectMethod"),X.ObjectProperty=e("objectProperty"),X.RestElement=e("restElement"),X.ReturnStatement=e("returnStatement"),X.SequenceExpression=e("sequenceExpression"),X.ParenthesizedExpression=e("parenthesizedExpression"),X.SwitchCase=e("switchCase"),X.SwitchStatement=e("switchStatement"),X.ThisExpression=e("thisExpression"),X.ThrowStatement=e("throwStatement"),X.TryStatement=e("tryStatement"),X.UnaryExpression=e("unaryExpression"),X.UpdateExpression=e("updateExpression"),X.VariableDeclaration=e("variableDeclaration"),X.VariableDeclarator=e("variableDeclarator"),X.WhileStatement=e("whileStatement"),X.WithStatement=e("withStatement"),X.AssignmentPattern=e("assignmentPattern"),X.ArrayPattern=e("arrayPattern"),X.ArrowFunctionExpression=e("arrowFunctionExpression"),X.ClassBody=e("classBody"),X.ClassExpression=e("classExpression"),X.ClassDeclaration=e("classDeclaration"),X.ExportAllDeclaration=e("exportAllDeclaration"),X.ExportDefaultDeclaration=e("exportDefaultDeclaration"),X.ExportNamedDeclaration=e("exportNamedDeclaration"),X.ExportSpecifier=e("exportSpecifier"),X.ForOfStatement=e("forOfStatement"),X.ImportDeclaration=e("importDeclaration"),X.ImportDefaultSpecifier=e("importDefaultSpecifier"),X.ImportNamespaceSpecifier=e("importNamespaceSpecifier"),X.ImportSpecifier=e("importSpecifier"),X.ImportExpression=e("importExpression"),X.MetaProperty=e("metaProperty"),X.ClassMethod=e("classMethod"),X.ObjectPattern=e("objectPattern"),X.SpreadElement=e("spreadElement"),X.Super=e("super"),X.TaggedTemplateExpression=e("taggedTemplateExpression"),X.TemplateElement=e("templateElement"),X.TemplateLiteral=e("templateLiteral"),X.YieldExpression=e("yieldExpression"),X.AwaitExpression=e("awaitExpression"),X.Import=e("import"),X.BigIntLiteral=e("bigIntLiteral"),X.ExportNamespaceSpecifier=e("exportNamespaceSpecifier"),X.OptionalMemberExpression=e("optionalMemberExpression"),X.OptionalCallExpression=e("optionalCallExpression"),X.ClassProperty=e("classProperty"),X.ClassAccessorProperty=e("classAccessorProperty"),X.ClassPrivateProperty=e("classPrivateProperty"),X.ClassPrivateMethod=e("classPrivateMethod"),X.PrivateName=e("privateName"),X.StaticBlock=e("staticBlock"),X.ImportAttribute=e("importAttribute"),X.AnyTypeAnnotation=e("anyTypeAnnotation"),X.ArrayTypeAnnotation=e("arrayTypeAnnotation"),X.BooleanTypeAnnotation=e("booleanTypeAnnotation"),X.BooleanLiteralTypeAnnotation=e("booleanLiteralTypeAnnotation"),X.NullLiteralTypeAnnotation=e("nullLiteralTypeAnnotation"),X.ClassImplements=e("classImplements"),X.DeclareClass=e("declareClass"),X.DeclareFunction=e("declareFunction"),X.DeclareInterface=e("declareInterface"),X.DeclareModule=e("declareModule"),X.DeclareModuleExports=e("declareModuleExports"),X.DeclareTypeAlias=e("declareTypeAlias"),X.DeclareOpaqueType=e("declareOpaqueType"),X.DeclareVariable=e("declareVariable"),X.DeclareExportDeclaration=e("declareExportDeclaration"),X.DeclareExportAllDeclaration=e("declareExportAllDeclaration"),X.DeclaredPredicate=e("declaredPredicate"),X.ExistsTypeAnnotation=e("existsTypeAnnotation"),X.FunctionTypeAnnotation=e("functionTypeAnnotation"),X.FunctionTypeParam=e("functionTypeParam"),X.GenericTypeAnnotation=e("genericTypeAnnotation"),X.InferredPredicate=e("inferredPredicate"),X.InterfaceExtends=e("interfaceExtends"),X.InterfaceDeclaration=e("interfaceDeclaration"),X.InterfaceTypeAnnotation=e("interfaceTypeAnnotation"),X.IntersectionTypeAnnotation=e("intersectionTypeAnnotation"),X.MixedTypeAnnotation=e("mixedTypeAnnotation"),X.EmptyTypeAnnotation=e("emptyTypeAnnotation"),X.NullableTypeAnnotation=e("nullableTypeAnnotation"),X.NumberLiteralTypeAnnotation=e("numberLiteralTypeAnnotation"),X.NumberTypeAnnotation=e("numberTypeAnnotation"),X.ObjectTypeAnnotation=e("objectTypeAnnotation"),X.ObjectTypeInternalSlot=e("objectTypeInternalSlot"),X.ObjectTypeCallProperty=e("objectTypeCallProperty"),X.ObjectTypeIndexer=e("objectTypeIndexer"),X.ObjectTypeProperty=e("objectTypeProperty"),X.ObjectTypeSpreadProperty=e("objectTypeSpreadProperty"),X.OpaqueType=e("opaqueType"),X.QualifiedTypeIdentifier=e("qualifiedTypeIdentifier"),X.StringLiteralTypeAnnotation=e("stringLiteralTypeAnnotation"),X.StringTypeAnnotation=e("stringTypeAnnotation"),X.SymbolTypeAnnotation=e("symbolTypeAnnotation"),X.ThisTypeAnnotation=e("thisTypeAnnotation"),X.TupleTypeAnnotation=e("tupleTypeAnnotation"),X.TypeofTypeAnnotation=e("typeofTypeAnnotation"),X.TypeAlias=e("typeAlias"),X.TypeAnnotation=e("typeAnnotation"),X.TypeCastExpression=e("typeCastExpression"),X.TypeParameter=e("typeParameter"),X.TypeParameterDeclaration=e("typeParameterDeclaration"),X.TypeParameterInstantiation=e("typeParameterInstantiation"),X.UnionTypeAnnotation=e("unionTypeAnnotation"),X.Variance=e("variance"),X.VoidTypeAnnotation=e("voidTypeAnnotation"),X.EnumDeclaration=e("enumDeclaration"),X.EnumBooleanBody=e("enumBooleanBody"),X.EnumNumberBody=e("enumNumberBody"),X.EnumStringBody=e("enumStringBody"),X.EnumSymbolBody=e("enumSymbolBody"),X.EnumBooleanMember=e("enumBooleanMember"),X.EnumNumberMember=e("enumNumberMember"),X.EnumStringMember=e("enumStringMember"),X.EnumDefaultedMember=e("enumDefaultedMember"),X.IndexedAccessType=e("indexedAccessType"),X.OptionalIndexedAccessType=e("optionalIndexedAccessType"),X.JSXAttribute=e("jsxAttribute"),X.JSXClosingElement=e("jsxClosingElement"),X.JSXElement=e("jsxElement"),X.JSXEmptyExpression=e("jsxEmptyExpression"),X.JSXExpressionContainer=e("jsxExpressionContainer"),X.JSXSpreadChild=e("jsxSpreadChild"),X.JSXIdentifier=e("jsxIdentifier"),X.JSXMemberExpression=e("jsxMemberExpression"),X.JSXNamespacedName=e("jsxNamespacedName"),X.JSXOpeningElement=e("jsxOpeningElement"),X.JSXSpreadAttribute=e("jsxSpreadAttribute"),X.JSXText=e("jsxText"),X.JSXFragment=e("jsxFragment"),X.JSXOpeningFragment=e("jsxOpeningFragment"),X.JSXClosingFragment=e("jsxClosingFragment"),X.Noop=e("noop"),X.Placeholder=e("placeholder"),X.V8IntrinsicIdentifier=e("v8IntrinsicIdentifier"),X.ArgumentPlaceholder=e("argumentPlaceholder"),X.BindExpression=e("bindExpression"),X.Decorator=e("decorator"),X.DoExpression=e("doExpression"),X.ExportDefaultSpecifier=e("exportDefaultSpecifier"),X.RecordExpression=e("recordExpression"),X.TupleExpression=e("tupleExpression"),X.DecimalLiteral=e("decimalLiteral"),X.ModuleExpression=e("moduleExpression"),X.TopicReference=e("topicReference"),X.PipelineTopicExpression=e("pipelineTopicExpression"),X.PipelineBareFunction=e("pipelineBareFunction"),X.PipelinePrimaryTopicReference=e("pipelinePrimaryTopicReference"),X.VoidPattern=e("voidPattern"),X.TSParameterProperty=e("tsParameterProperty"),X.TSDeclareFunction=e("tsDeclareFunction"),X.TSDeclareMethod=e("tsDeclareMethod"),X.TSQualifiedName=e("tsQualifiedName"),X.TSCallSignatureDeclaration=e("tsCallSignatureDeclaration"),X.TSConstructSignatureDeclaration=e("tsConstructSignatureDeclaration"),X.TSPropertySignature=e("tsPropertySignature"),X.TSMethodSignature=e("tsMethodSignature"),X.TSIndexSignature=e("tsIndexSignature"),X.TSAnyKeyword=e("tsAnyKeyword"),X.TSBooleanKeyword=e("tsBooleanKeyword"),X.TSBigIntKeyword=e("tsBigIntKeyword"),X.TSIntrinsicKeyword=e("tsIntrinsicKeyword"),X.TSNeverKeyword=e("tsNeverKeyword"),X.TSNullKeyword=e("tsNullKeyword"),X.TSNumberKeyword=e("tsNumberKeyword"),X.TSObjectKeyword=e("tsObjectKeyword"),X.TSStringKeyword=e("tsStringKeyword"),X.TSSymbolKeyword=e("tsSymbolKeyword"),X.TSUndefinedKeyword=e("tsUndefinedKeyword"),X.TSUnknownKeyword=e("tsUnknownKeyword"),X.TSVoidKeyword=e("tsVoidKeyword"),X.TSThisType=e("tsThisType"),X.TSFunctionType=e("tsFunctionType"),X.TSConstructorType=e("tsConstructorType"),X.TSTypeReference=e("tsTypeReference"),X.TSTypePredicate=e("tsTypePredicate"),X.TSTypeQuery=e("tsTypeQuery"),X.TSTypeLiteral=e("tsTypeLiteral"),X.TSArrayType=e("tsArrayType"),X.TSTupleType=e("tsTupleType"),X.TSOptionalType=e("tsOptionalType"),X.TSRestType=e("tsRestType"),X.TSNamedTupleMember=e("tsNamedTupleMember"),X.TSUnionType=e("tsUnionType"),X.TSIntersectionType=e("tsIntersectionType"),X.TSConditionalType=e("tsConditionalType"),X.TSInferType=e("tsInferType"),X.TSParenthesizedType=e("tsParenthesizedType"),X.TSTypeOperator=e("tsTypeOperator"),X.TSIndexedAccessType=e("tsIndexedAccessType"),X.TSMappedType=e("tsMappedType"),X.TSTemplateLiteralType=e("tsTemplateLiteralType"),X.TSLiteralType=e("tsLiteralType"),X.TSExpressionWithTypeArguments=e("tsExpressionWithTypeArguments"),X.TSInterfaceDeclaration=e("tsInterfaceDeclaration"),X.TSInterfaceBody=e("tsInterfaceBody"),X.TSTypeAliasDeclaration=e("tsTypeAliasDeclaration"),X.TSInstantiationExpression=e("tsInstantiationExpression"),X.TSAsExpression=e("tsAsExpression"),X.TSSatisfiesExpression=e("tsSatisfiesExpression"),X.TSTypeAssertion=e("tsTypeAssertion"),X.TSEnumBody=e("tsEnumBody"),X.TSEnumDeclaration=e("tsEnumDeclaration"),X.TSEnumMember=e("tsEnumMember"),X.TSModuleDeclaration=e("tsModuleDeclaration"),X.TSModuleBlock=e("tsModuleBlock"),X.TSImportType=e("tsImportType"),X.TSImportEqualsDeclaration=e("tsImportEqualsDeclaration"),X.TSExternalModuleReference=e("tsExternalModuleReference"),X.TSNonNullExpression=e("tsNonNullExpression"),X.TSExportAssignment=e("tsExportAssignment"),X.TSNamespaceExportDeclaration=e("tsNamespaceExportDeclaration"),X.TSTypeAnnotation=e("tsTypeAnnotation"),X.TSTypeParameterInstantiation=e("tsTypeParameterInstantiation"),X.TSTypeParameterDeclaration=e("tsTypeParameterDeclaration"),X.TSTypeParameter=e("tsTypeParameter"),X.NumberLiteral=t.numberLiteral,X.RegexLiteral=t.regexLiteral,X.RestProperty=t.restProperty,X.SpreadProperty=t.spreadProperty,X}var Nm;function qn(){return Nm||(Nm=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Im();Object.keys(e).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})});var r=IE();Object.keys(r).forEach(function(n){n==="default"||n==="__esModule"||n in t&&t[n]===r[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return r[n]}})})}(Bf)),Bf}var km;function OE(){if(km)return Dl;km=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.default=r;var t=qn(),e=Ut();function r(n,s){const o=n.value.split(/\r\n|\n|\r/);let a=0;for(let p=0;p<o.length;p++)/[^ \t]/.exec(o[p])&&(a=p);let u="";for(let p=0;p<o.length;p++){const y=o[p],h=p===0,g=p===o.length-1,b=p===a;let S=y.replace(/\t/g," ");h||(S=S.replace(/^ +/,"")),g||(S=S.replace(/ +$/,"")),S&&(b||(S+=" "),u+=S)}u&&s.push((0,e.inherits)((0,t.stringLiteral)(u),n))}return Dl}var Dm;function NE(){if(Dm)return kl;Dm=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=r;var t=Ir(),e=OE();function r(n){const s=[];for(let o=0;o<n.children.length;o++){let a=n.children[o];if((0,t.isJSXText)(a)){(0,e.default)(a,s);continue}(0,t.isJSXExpressionContainer)(a)&&(a=a.expression),!(0,t.isJSXEmptyExpression)(a)&&s.push(a)}return s}return kl}var Fl={},ql={},Bm;function Rm(){if(Bm)return ql;Bm=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.default=e;var t=Oi();function e(r){return!!(r&&t.VISITOR_KEYS[r.type])}return ql}var jm;function kE(){if(jm)return Fl;jm=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=e;var t=Rm();function e(r){if(!(0,t.default)(r)){var n;const s=(n=r==null?void 0:r.type)!=null?n:JSON.stringify(r);throw new TypeError(`Not a valid node of type "${s}"`)}}return Fl}var we={},Mm;function DE(){if(Mm)return we;Mm=1,Object.defineProperty(we,"__esModule",{value:!0}),we.assertAccessor=sy,we.assertAnyTypeAnnotation=Sr,we.assertArgumentPlaceholder=hs,we.assertArrayExpression=n,we.assertArrayPattern=Le,we.assertArrayTypeAnnotation=Rt,we.assertArrowFunctionExpression=gt,we.assertAssignmentExpression=s,we.assertAssignmentPattern=qe,we.assertAwaitExpression=rt,we.assertBigIntLiteral=mt,we.assertBinary=qt,we.assertBinaryExpression=o,we.assertBindExpression=Ks,we.assertBlock=Yt,we.assertBlockParent=Kt,we.assertBlockStatement=y,we.assertBooleanLiteral=me,we.assertBooleanLiteralTypeAnnotation=Vr,we.assertBooleanTypeAnnotation=ui,we.assertBreakStatement=h,we.assertCallExpression=g,we.assertCatchClause=b,we.assertClass=vf,we.assertClassAccessorProperty=lr,we.assertClassBody=ht,we.assertClassDeclaration=Se,we.assertClassExpression=xe,we.assertClassImplements=Rr,we.assertClassMethod=pt,we.assertClassPrivateMethod=Wt,we.assertClassPrivateProperty=xr,we.assertClassProperty=Jt,we.assertCompletionStatement=F,we.assertConditional=ie,we.assertConditionalExpression=S,we.assertContinueStatement=O,we.assertDebuggerStatement=_,we.assertDecimalLiteral=zi,we.assertDeclaration=Vh,we.assertDeclareClass=jr,we.assertDeclareExportAllDeclaration=nn,we.assertDeclareExportDeclaration=rn,we.assertDeclareFunction=Dn,we.assertDeclareInterface=Kr,we.assertDeclareModule=Hn,we.assertDeclareModuleExports=Nr,we.assertDeclareOpaqueType=fi,we.assertDeclareTypeAlias=An,we.assertDeclareVariable=dr,we.assertDeclaredPredicate=hn,we.assertDecorator=En,we.assertDirective=u,we.assertDirectiveLiteral=p,we.assertDoExpression=ti,we.assertDoWhileStatement=w,we.assertEmptyStatement=C,we.assertEmptyTypeAnnotation=mn,we.assertEnumBody=py,we.assertEnumBooleanBody=Tn,we.assertEnumBooleanMember=Fs,we.assertEnumDeclaration=Cr,we.assertEnumDefaultedMember=Ui,we.assertEnumMember=dy,we.assertEnumNumberBody=Mn,we.assertEnumNumberMember=Mr,we.assertEnumStringBody=qi,we.assertEnumStringMember=$i,we.assertEnumSymbolBody=Yr,we.assertExistsTypeAnnotation=Wr,we.assertExportAllDeclaration=se,we.assertExportDeclaration=ny,we.assertExportDefaultDeclaration=ee,we.assertExportDefaultSpecifier=Wi,we.assertExportNamedDeclaration=oe,we.assertExportNamespaceSpecifier=Bt,we.assertExportSpecifier=W,we.assertExpression=St,we.assertExpressionStatement=T,we.assertExpressionWrapper=Nt,we.assertFile=x,we.assertFlow=oy,we.assertFlowBaseAnnotation=cy,we.assertFlowDeclaration=uy,we.assertFlowPredicate=fy,we.assertFlowType=ly,we.assertFor=cr,we.assertForInStatement=E,we.assertForOfStatement=fe,we.assertForStatement=j,we.assertForXStatement=kr,we.assertFunction=Ai,we.assertFunctionDeclaration=R,we.assertFunctionExpression=I,we.assertFunctionParameter=Kh,we.assertFunctionParent=$h,we.assertFunctionTypeAnnotation=yn,we.assertFunctionTypeParam=Ri,we.assertGenericTypeAnnotation=Cn,we.assertIdentifier=D,we.assertIfStatement=Z,we.assertImmutable=Jh,we.assertImport=yt,we.assertImportAttribute=dn,we.assertImportDeclaration=Re,we.assertImportDefaultSpecifier=Fe,we.assertImportExpression=_t,we.assertImportNamespaceSpecifier=Ke,we.assertImportOrExportDeclaration=ry,we.assertImportSpecifier=it,we.assertIndexedAccessType=It,we.assertInferredPredicate=is,we.assertInterfaceDeclaration=Jn,we.assertInterfaceExtends=pi,we.assertInterfaceTypeAnnotation=zt,we.assertInterpreterDirective=a,we.assertIntersectionTypeAnnotation=ji,we.assertJSX=hy,we.assertJSXAttribute=mi,we.assertJSXClosingElement=fs,we.assertJSXClosingFragment=Ki,we.assertJSXElement=qs,we.assertJSXEmptyExpression=Zn,we.assertJSXExpressionContainer=$s,we.assertJSXFragment=vi,we.assertJSXIdentifier=gi,we.assertJSXMemberExpression=ei,we.assertJSXNamespacedName=bi,we.assertJSXOpeningElement=Us,we.assertJSXOpeningFragment=Vi,we.assertJSXSpreadAttribute=Vs,we.assertJSXSpreadChild=ps,we.assertJSXText=ds,we.assertLVal=Gh,we.assertLabeledStatement=J,we.assertLiteral=Hh,we.assertLogicalExpression=Ae,we.assertLoop=ke,we.assertMemberExpression=ce,we.assertMetaProperty=Mt,we.assertMethod=Xh,we.assertMiscellaneous=yy,we.assertMixedTypeAnnotation=ss,we.assertModuleDeclaration=m,we.assertModuleExpression=Tr,we.assertModuleSpecifier=iy,we.assertNewExpression=ue,we.assertNoop=Si,we.assertNullLiteral=ne,we.assertNullLiteralTypeAnnotation=tn,we.assertNullableTypeAnnotation=Pr,we.assertNumberLiteral=Sy,we.assertNumberLiteralTypeAnnotation=as,we.assertNumberTypeAnnotation=di,we.assertNumericLiteral=$,we.assertObjectExpression=Y,we.assertObjectMember=Qh,we.assertObjectMethod=he,we.assertObjectPattern=xt,we.assertObjectProperty=ae,we.assertObjectTypeAnnotation=os,we.assertObjectTypeCallProperty=gn,we.assertObjectTypeIndexer=Bn,we.assertObjectTypeInternalSlot=ir,we.assertObjectTypeProperty=Rn,we.assertObjectTypeSpreadProperty=Mi,we.assertOpaqueType=Yn,we.assertOptionalCallExpression=Vt,we.assertOptionalIndexedAccessType=Qn,we.assertOptionalMemberExpression=Lt,we.assertParenthesizedExpression=ye,we.assertPattern=ty,we.assertPatternLike=Wh,we.assertPipelineBareFunction=Hi,we.assertPipelinePrimaryTopicReference=xi,we.assertPipelineTopicExpression=sn,we.assertPlaceholder=Ti,we.assertPrivate=ay,we.assertPrivateName=tr,we.assertProgram=K,we.assertProperty=Zh,we.assertPureish=Uh,we.assertQualifiedTypeIdentifier=Xn,we.assertRecordExpression=Ei,we.assertRegExpLiteral=Ce,we.assertRegexLiteral=Ty,we.assertRestElement=U,we.assertRestProperty=Ey,we.assertReturnStatement=L,we.assertScopable=$t,we.assertSequenceExpression=H,we.assertSpreadElement=te,we.assertSpreadProperty=xy,we.assertStandardized=jt,we.assertStatement=B,we.assertStaticBlock=pn,we.assertStringLiteral=N,we.assertStringLiteralTypeAnnotation=Li,we.assertStringTypeAnnotation=bn,we.assertSuper=de,we.assertSwitchCase=Ie,we.assertSwitchStatement=Ee,we.assertSymbolTypeAnnotation=ls,we.assertTSAnyKeyword=Ue,we.assertTSArrayType=Xr,we.assertTSAsExpression=We,we.assertTSBaseType=vy,we.assertTSBigIntKeyword=vt,we.assertTSBooleanKeyword=ct,we.assertTSCallSignatureDeclaration=A,we.assertTSConditionalType=Pn,we.assertTSConstructSignatureDeclaration=Q,we.assertTSConstructorType=Xi,we.assertTSDeclareFunction=i,we.assertTSDeclareMethod=c,we.assertTSEntityName=zh,we.assertTSEnumBody=Ge,we.assertTSEnumDeclaration=He,we.assertTSEnumMember=nt,we.assertTSExportAssignment=bt,we.assertTSExpressionWithTypeArguments=V,we.assertTSExternalModuleReference=ot,we.assertTSFunctionType=Yi,we.assertTSImportEqualsDeclaration=lt,we.assertTSImportType=Qe,we.assertTSIndexSignature=Be,we.assertTSIndexedAccessType=Zi,we.assertTSInferType=wi,we.assertTSInstantiationExpression=Ne,we.assertTSInterfaceBody=pe,we.assertTSInterfaceDeclaration=re,we.assertTSIntersectionType=Qi,we.assertTSIntrinsicKeyword=wt,we.assertTSLiteralType=M,we.assertTSMappedType=v,we.assertTSMethodSignature=Pe,we.assertTSModuleBlock=Ye,we.assertTSModuleDeclaration=Xe,we.assertTSNamedTupleMember=vs,we.assertTSNamespaceExportDeclaration=Et,we.assertTSNeverKeyword=Ot,we.assertTSNonNullExpression=ft,we.assertTSNullKeyword=Gt,we.assertTSNumberKeyword=or,we.assertTSObjectKeyword=Ft,we.assertTSOptionalType=ii,we.assertTSParameterProperty=l,we.assertTSParenthesizedType=On,we.assertTSPropertySignature=le,we.assertTSQualifiedName=d,we.assertTSRestType=In,we.assertTSSatisfiesExpression=at,we.assertTSStringKeyword=sr,we.assertTSSymbolKeyword=xn,we.assertTSTemplateLiteralType=P,we.assertTSThisType=Pi,we.assertTSTupleType=hr,we.assertTSType=by,we.assertTSTypeAliasDeclaration=Te,we.assertTSTypeAnnotation=Ct,we.assertTSTypeAssertion=Je,we.assertTSTypeElement=gy,we.assertTSTypeLiteral=ni,we.assertTSTypeOperator=on,we.assertTSTypeParameter=At,we.assertTSTypeParameterDeclaration=Dt,we.assertTSTypeParameterInstantiation=Pt,we.assertTSTypePredicate=gs,we.assertTSTypeQuery=bs,we.assertTSTypeReference=ms,we.assertTSUndefinedKeyword=an,we.assertTSUnionType=_i,we.assertTSUnknownKeyword=ys,we.assertTSVoidKeyword=Ji,we.assertTaggedTemplateExpression=G,we.assertTemplateElement=be,we.assertTemplateLiteral=et,we.assertTerminatorless=k,we.assertThisExpression=De,we.assertThisTypeAnnotation=vn,we.assertThrowStatement=Me,we.assertTopicReference=ri,we.assertTryStatement=Ve,we.assertTupleExpression=Gi,we.assertTupleTypeAnnotation=Qt,we.assertTypeAlias=Ls,we.assertTypeAnnotation=hi,we.assertTypeCastExpression=Ar,we.assertTypeParameter=jn,we.assertTypeParameterDeclaration=yi,we.assertTypeParameterInstantiation=Sn,we.assertTypeScript=my,we.assertTypeofTypeAnnotation=cs,we.assertUnaryExpression=Ze,we.assertUnaryLike=ey,we.assertUnionTypeAnnotation=us,we.assertUpdateExpression=ut,we.assertUserWhitespacable=Yh,we.assertV8IntrinsicIdentifier=Ln,we.assertVariableDeclaration=st,we.assertVariableDeclarator=dt,we.assertVariance=Fi,we.assertVoidPattern=z,we.assertVoidTypeAnnotation=br,we.assertWhile=tt,we.assertWhileStatement=$e,we.assertWithStatement=je,we.assertYieldExpression=ge;var t=_o(),e=Po();function r(f,q,bT){if(!(0,t.default)(f,q,bT))throw new Error(`Expected type "${f}" with option ${JSON.stringify(bT)}, but instead got "${q.type}".`)}function n(f,q){r("ArrayExpression",f,q)}function s(f,q){r("AssignmentExpression",f,q)}function o(f,q){r("BinaryExpression",f,q)}function a(f,q){r("InterpreterDirective",f,q)}function u(f,q){r("Directive",f,q)}function p(f,q){r("DirectiveLiteral",f,q)}function y(f,q){r("BlockStatement",f,q)}function h(f,q){r("BreakStatement",f,q)}function g(f,q){r("CallExpression",f,q)}function b(f,q){r("CatchClause",f,q)}function S(f,q){r("ConditionalExpression",f,q)}function O(f,q){r("ContinueStatement",f,q)}function _(f,q){r("DebuggerStatement",f,q)}function w(f,q){r("DoWhileStatement",f,q)}function C(f,q){r("EmptyStatement",f,q)}function T(f,q){r("ExpressionStatement",f,q)}function x(f,q){r("File",f,q)}function E(f,q){r("ForInStatement",f,q)}function j(f,q){r("ForStatement",f,q)}function R(f,q){r("FunctionDeclaration",f,q)}function I(f,q){r("FunctionExpression",f,q)}function D(f,q){r("Identifier",f,q)}function Z(f,q){r("IfStatement",f,q)}function J(f,q){r("LabeledStatement",f,q)}function N(f,q){r("StringLiteral",f,q)}function $(f,q){r("NumericLiteral",f,q)}function ne(f,q){r("NullLiteral",f,q)}function me(f,q){r("BooleanLiteral",f,q)}function Ce(f,q){r("RegExpLiteral",f,q)}function Ae(f,q){r("LogicalExpression",f,q)}function ce(f,q){r("MemberExpression",f,q)}function ue(f,q){r("NewExpression",f,q)}function K(f,q){r("Program",f,q)}function Y(f,q){r("ObjectExpression",f,q)}function he(f,q){r("ObjectMethod",f,q)}function ae(f,q){r("ObjectProperty",f,q)}function U(f,q){r("RestElement",f,q)}function L(f,q){r("ReturnStatement",f,q)}function H(f,q){r("SequenceExpression",f,q)}function ye(f,q){r("ParenthesizedExpression",f,q)}function Ie(f,q){r("SwitchCase",f,q)}function Ee(f,q){r("SwitchStatement",f,q)}function De(f,q){r("ThisExpression",f,q)}function Me(f,q){r("ThrowStatement",f,q)}function Ve(f,q){r("TryStatement",f,q)}function Ze(f,q){r("UnaryExpression",f,q)}function ut(f,q){r("UpdateExpression",f,q)}function st(f,q){r("VariableDeclaration",f,q)}function dt(f,q){r("VariableDeclarator",f,q)}function $e(f,q){r("WhileStatement",f,q)}function je(f,q){r("WithStatement",f,q)}function qe(f,q){r("AssignmentPattern",f,q)}function Le(f,q){r("ArrayPattern",f,q)}function gt(f,q){r("ArrowFunctionExpression",f,q)}function ht(f,q){r("ClassBody",f,q)}function xe(f,q){r("ClassExpression",f,q)}function Se(f,q){r("ClassDeclaration",f,q)}function se(f,q){r("ExportAllDeclaration",f,q)}function ee(f,q){r("ExportDefaultDeclaration",f,q)}function oe(f,q){r("ExportNamedDeclaration",f,q)}function W(f,q){r("ExportSpecifier",f,q)}function fe(f,q){r("ForOfStatement",f,q)}function Re(f,q){r("ImportDeclaration",f,q)}function Fe(f,q){r("ImportDefaultSpecifier",f,q)}function Ke(f,q){r("ImportNamespaceSpecifier",f,q)}function it(f,q){r("ImportSpecifier",f,q)}function _t(f,q){r("ImportExpression",f,q)}function Mt(f,q){r("MetaProperty",f,q)}function pt(f,q){r("ClassMethod",f,q)}function xt(f,q){r("ObjectPattern",f,q)}function te(f,q){r("SpreadElement",f,q)}function de(f,q){r("Super",f,q)}function G(f,q){r("TaggedTemplateExpression",f,q)}function be(f,q){r("TemplateElement",f,q)}function et(f,q){r("TemplateLiteral",f,q)}function ge(f,q){r("YieldExpression",f,q)}function rt(f,q){r("AwaitExpression",f,q)}function yt(f,q){r("Import",f,q)}function mt(f,q){r("BigIntLiteral",f,q)}function Bt(f,q){r("ExportNamespaceSpecifier",f,q)}function Lt(f,q){r("OptionalMemberExpression",f,q)}function Vt(f,q){r("OptionalCallExpression",f,q)}function Jt(f,q){r("ClassProperty",f,q)}function lr(f,q){r("ClassAccessorProperty",f,q)}function xr(f,q){r("ClassPrivateProperty",f,q)}function Wt(f,q){r("ClassPrivateMethod",f,q)}function tr(f,q){r("PrivateName",f,q)}function pn(f,q){r("StaticBlock",f,q)}function dn(f,q){r("ImportAttribute",f,q)}function Sr(f,q){r("AnyTypeAnnotation",f,q)}function Rt(f,q){r("ArrayTypeAnnotation",f,q)}function ui(f,q){r("BooleanTypeAnnotation",f,q)}function Vr(f,q){r("BooleanLiteralTypeAnnotation",f,q)}function tn(f,q){r("NullLiteralTypeAnnotation",f,q)}function Rr(f,q){r("ClassImplements",f,q)}function jr(f,q){r("DeclareClass",f,q)}function Dn(f,q){r("DeclareFunction",f,q)}function Kr(f,q){r("DeclareInterface",f,q)}function Hn(f,q){r("DeclareModule",f,q)}function Nr(f,q){r("DeclareModuleExports",f,q)}function An(f,q){r("DeclareTypeAlias",f,q)}function fi(f,q){r("DeclareOpaqueType",f,q)}function dr(f,q){r("DeclareVariable",f,q)}function rn(f,q){r("DeclareExportDeclaration",f,q)}function nn(f,q){r("DeclareExportAllDeclaration",f,q)}function hn(f,q){r("DeclaredPredicate",f,q)}function Wr(f,q){r("ExistsTypeAnnotation",f,q)}function yn(f,q){r("FunctionTypeAnnotation",f,q)}function Ri(f,q){r("FunctionTypeParam",f,q)}function Cn(f,q){r("GenericTypeAnnotation",f,q)}function is(f,q){r("InferredPredicate",f,q)}function pi(f,q){r("InterfaceExtends",f,q)}function Jn(f,q){r("InterfaceDeclaration",f,q)}function zt(f,q){r("InterfaceTypeAnnotation",f,q)}function ji(f,q){r("IntersectionTypeAnnotation",f,q)}function ss(f,q){r("MixedTypeAnnotation",f,q)}function mn(f,q){r("EmptyTypeAnnotation",f,q)}function Pr(f,q){r("NullableTypeAnnotation",f,q)}function as(f,q){r("NumberLiteralTypeAnnotation",f,q)}function di(f,q){r("NumberTypeAnnotation",f,q)}function os(f,q){r("ObjectTypeAnnotation",f,q)}function ir(f,q){r("ObjectTypeInternalSlot",f,q)}function gn(f,q){r("ObjectTypeCallProperty",f,q)}function Bn(f,q){r("ObjectTypeIndexer",f,q)}function Rn(f,q){r("ObjectTypeProperty",f,q)}function Mi(f,q){r("ObjectTypeSpreadProperty",f,q)}function Yn(f,q){r("OpaqueType",f,q)}function Xn(f,q){r("QualifiedTypeIdentifier",f,q)}function Li(f,q){r("StringLiteralTypeAnnotation",f,q)}function bn(f,q){r("StringTypeAnnotation",f,q)}function ls(f,q){r("SymbolTypeAnnotation",f,q)}function vn(f,q){r("ThisTypeAnnotation",f,q)}function Qt(f,q){r("TupleTypeAnnotation",f,q)}function cs(f,q){r("TypeofTypeAnnotation",f,q)}function Ls(f,q){r("TypeAlias",f,q)}function hi(f,q){r("TypeAnnotation",f,q)}function Ar(f,q){r("TypeCastExpression",f,q)}function jn(f,q){r("TypeParameter",f,q)}function yi(f,q){r("TypeParameterDeclaration",f,q)}function Sn(f,q){r("TypeParameterInstantiation",f,q)}function us(f,q){r("UnionTypeAnnotation",f,q)}function Fi(f,q){r("Variance",f,q)}function br(f,q){r("VoidTypeAnnotation",f,q)}function Cr(f,q){r("EnumDeclaration",f,q)}function Tn(f,q){r("EnumBooleanBody",f,q)}function Mn(f,q){r("EnumNumberBody",f,q)}function qi(f,q){r("EnumStringBody",f,q)}function Yr(f,q){r("EnumSymbolBody",f,q)}function Fs(f,q){r("EnumBooleanMember",f,q)}function Mr(f,q){r("EnumNumberMember",f,q)}function $i(f,q){r("EnumStringMember",f,q)}function Ui(f,q){r("EnumDefaultedMember",f,q)}function It(f,q){r("IndexedAccessType",f,q)}function Qn(f,q){r("OptionalIndexedAccessType",f,q)}function mi(f,q){r("JSXAttribute",f,q)}function fs(f,q){r("JSXClosingElement",f,q)}function qs(f,q){r("JSXElement",f,q)}function Zn(f,q){r("JSXEmptyExpression",f,q)}function $s(f,q){r("JSXExpressionContainer",f,q)}function ps(f,q){r("JSXSpreadChild",f,q)}function gi(f,q){r("JSXIdentifier",f,q)}function ei(f,q){r("JSXMemberExpression",f,q)}function bi(f,q){r("JSXNamespacedName",f,q)}function Us(f,q){r("JSXOpeningElement",f,q)}function Vs(f,q){r("JSXSpreadAttribute",f,q)}function ds(f,q){r("JSXText",f,q)}function vi(f,q){r("JSXFragment",f,q)}function Vi(f,q){r("JSXOpeningFragment",f,q)}function Ki(f,q){r("JSXClosingFragment",f,q)}function Si(f,q){r("Noop",f,q)}function Ti(f,q){r("Placeholder",f,q)}function Ln(f,q){r("V8IntrinsicIdentifier",f,q)}function hs(f,q){r("ArgumentPlaceholder",f,q)}function Ks(f,q){r("BindExpression",f,q)}function En(f,q){r("Decorator",f,q)}function ti(f,q){r("DoExpression",f,q)}function Wi(f,q){r("ExportDefaultSpecifier",f,q)}function Ei(f,q){r("RecordExpression",f,q)}function Gi(f,q){r("TupleExpression",f,q)}function zi(f,q){r("DecimalLiteral",f,q)}function Tr(f,q){r("ModuleExpression",f,q)}function ri(f,q){r("TopicReference",f,q)}function sn(f,q){r("PipelineTopicExpression",f,q)}function Hi(f,q){r("PipelineBareFunction",f,q)}function xi(f,q){r("PipelinePrimaryTopicReference",f,q)}function z(f,q){r("VoidPattern",f,q)}function l(f,q){r("TSParameterProperty",f,q)}function i(f,q){r("TSDeclareFunction",f,q)}function c(f,q){r("TSDeclareMethod",f,q)}function d(f,q){r("TSQualifiedName",f,q)}function A(f,q){r("TSCallSignatureDeclaration",f,q)}function Q(f,q){r("TSConstructSignatureDeclaration",f,q)}function le(f,q){r("TSPropertySignature",f,q)}function Pe(f,q){r("TSMethodSignature",f,q)}function Be(f,q){r("TSIndexSignature",f,q)}function Ue(f,q){r("TSAnyKeyword",f,q)}function ct(f,q){r("TSBooleanKeyword",f,q)}function vt(f,q){r("TSBigIntKeyword",f,q)}function wt(f,q){r("TSIntrinsicKeyword",f,q)}function Ot(f,q){r("TSNeverKeyword",f,q)}function Gt(f,q){r("TSNullKeyword",f,q)}function or(f,q){r("TSNumberKeyword",f,q)}function Ft(f,q){r("TSObjectKeyword",f,q)}function sr(f,q){r("TSStringKeyword",f,q)}function xn(f,q){r("TSSymbolKeyword",f,q)}function an(f,q){r("TSUndefinedKeyword",f,q)}function ys(f,q){r("TSUnknownKeyword",f,q)}function Ji(f,q){r("TSVoidKeyword",f,q)}function Pi(f,q){r("TSThisType",f,q)}function Yi(f,q){r("TSFunctionType",f,q)}function Xi(f,q){r("TSConstructorType",f,q)}function ms(f,q){r("TSTypeReference",f,q)}function gs(f,q){r("TSTypePredicate",f,q)}function bs(f,q){r("TSTypeQuery",f,q)}function ni(f,q){r("TSTypeLiteral",f,q)}function Xr(f,q){r("TSArrayType",f,q)}function hr(f,q){r("TSTupleType",f,q)}function ii(f,q){r("TSOptionalType",f,q)}function In(f,q){r("TSRestType",f,q)}function vs(f,q){r("TSNamedTupleMember",f,q)}function _i(f,q){r("TSUnionType",f,q)}function Qi(f,q){r("TSIntersectionType",f,q)}function Pn(f,q){r("TSConditionalType",f,q)}function wi(f,q){r("TSInferType",f,q)}function On(f,q){r("TSParenthesizedType",f,q)}function on(f,q){r("TSTypeOperator",f,q)}function Zi(f,q){r("TSIndexedAccessType",f,q)}function v(f,q){r("TSMappedType",f,q)}function P(f,q){r("TSTemplateLiteralType",f,q)}function M(f,q){r("TSLiteralType",f,q)}function V(f,q){r("TSExpressionWithTypeArguments",f,q)}function re(f,q){r("TSInterfaceDeclaration",f,q)}function pe(f,q){r("TSInterfaceBody",f,q)}function Te(f,q){r("TSTypeAliasDeclaration",f,q)}function Ne(f,q){r("TSInstantiationExpression",f,q)}function We(f,q){r("TSAsExpression",f,q)}function at(f,q){r("TSSatisfiesExpression",f,q)}function Je(f,q){r("TSTypeAssertion",f,q)}function Ge(f,q){r("TSEnumBody",f,q)}function He(f,q){r("TSEnumDeclaration",f,q)}function nt(f,q){r("TSEnumMember",f,q)}function Xe(f,q){r("TSModuleDeclaration",f,q)}function Ye(f,q){r("TSModuleBlock",f,q)}function Qe(f,q){r("TSImportType",f,q)}function lt(f,q){r("TSImportEqualsDeclaration",f,q)}function ot(f,q){r("TSExternalModuleReference",f,q)}function ft(f,q){r("TSNonNullExpression",f,q)}function bt(f,q){r("TSExportAssignment",f,q)}function Et(f,q){r("TSNamespaceExportDeclaration",f,q)}function Ct(f,q){r("TSTypeAnnotation",f,q)}function Pt(f,q){r("TSTypeParameterInstantiation",f,q)}function Dt(f,q){r("TSTypeParameterDeclaration",f,q)}function At(f,q){r("TSTypeParameter",f,q)}function jt(f,q){r("Standardized",f,q)}function St(f,q){r("Expression",f,q)}function qt(f,q){r("Binary",f,q)}function $t(f,q){r("Scopable",f,q)}function Kt(f,q){r("BlockParent",f,q)}function Yt(f,q){r("Block",f,q)}function B(f,q){r("Statement",f,q)}function k(f,q){r("Terminatorless",f,q)}function F(f,q){r("CompletionStatement",f,q)}function ie(f,q){r("Conditional",f,q)}function ke(f,q){r("Loop",f,q)}function tt(f,q){r("While",f,q)}function Nt(f,q){r("ExpressionWrapper",f,q)}function cr(f,q){r("For",f,q)}function kr(f,q){r("ForXStatement",f,q)}function Ai(f,q){r("Function",f,q)}function $h(f,q){r("FunctionParent",f,q)}function Uh(f,q){r("Pureish",f,q)}function Vh(f,q){r("Declaration",f,q)}function Kh(f,q){r("FunctionParameter",f,q)}function Wh(f,q){r("PatternLike",f,q)}function Gh(f,q){r("LVal",f,q)}function zh(f,q){r("TSEntityName",f,q)}function Hh(f,q){r("Literal",f,q)}function Jh(f,q){r("Immutable",f,q)}function Yh(f,q){r("UserWhitespacable",f,q)}function Xh(f,q){r("Method",f,q)}function Qh(f,q){r("ObjectMember",f,q)}function Zh(f,q){r("Property",f,q)}function ey(f,q){r("UnaryLike",f,q)}function ty(f,q){r("Pattern",f,q)}function vf(f,q){r("Class",f,q)}function ry(f,q){r("ImportOrExportDeclaration",f,q)}function ny(f,q){r("ExportDeclaration",f,q)}function iy(f,q){r("ModuleSpecifier",f,q)}function sy(f,q){r("Accessor",f,q)}function ay(f,q){r("Private",f,q)}function oy(f,q){r("Flow",f,q)}function ly(f,q){r("FlowType",f,q)}function cy(f,q){r("FlowBaseAnnotation",f,q)}function uy(f,q){r("FlowDeclaration",f,q)}function fy(f,q){r("FlowPredicate",f,q)}function py(f,q){r("EnumBody",f,q)}function dy(f,q){r("EnumMember",f,q)}function hy(f,q){r("JSX",f,q)}function yy(f,q){r("Miscellaneous",f,q)}function my(f,q){r("TypeScript",f,q)}function gy(f,q){r("TSTypeElement",f,q)}function by(f,q){r("TSType",f,q)}function vy(f,q){r("TSBaseType",f,q)}function Sy(f,q){(0,e.default)("assertNumberLiteral","assertNumericLiteral"),r("NumberLiteral",f,q)}function Ty(f,q){(0,e.default)("assertRegexLiteral","assertRegExpLiteral"),r("RegexLiteral",f,q)}function Ey(f,q){(0,e.default)("assertRestProperty","assertRestElement"),r("RestProperty",f,q)}function xy(f,q){(0,e.default)("assertSpreadProperty","assertSpreadElement"),r("SpreadProperty",f,q)}function m(f,q){(0,e.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),r("ModuleDeclaration",f,q)}return we}var Oo={},Lm;function BE(){if(Lm)return Oo;Lm=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var t=qn();Oo.default=e;function e(r){switch(r){case"string":return(0,t.stringTypeAnnotation)();case"number":return(0,t.numberTypeAnnotation)();case"undefined":return(0,t.voidTypeAnnotation)();case"boolean":return(0,t.booleanTypeAnnotation)();case"function":return(0,t.genericTypeAnnotation)((0,t.identifier)("Function"));case"object":return(0,t.genericTypeAnnotation)((0,t.identifier)("Object"));case"symbol":return(0,t.genericTypeAnnotation)((0,t.identifier)("Symbol"));case"bigint":return(0,t.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+r)}return Oo}var $l={},Ul={},Fm;function qm(){if(Fm)return Ul;Fm=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.default=r;var t=Ir();function e(n){return(0,t.isIdentifier)(n)?n.name:`${n.id.name}.${e(n.qualification)}`}function r(n){const s=Array.from(n),o=new Map,a=new Map,u=new Set,p=[];for(let y=0;y<s.length;y++){const h=s[y];if(h&&!p.includes(h)){if((0,t.isAnyTypeAnnotation)(h))return[h];if((0,t.isFlowBaseAnnotation)(h)){a.set(h.type,h);continue}if((0,t.isUnionTypeAnnotation)(h)){u.has(h.types)||(s.push(...h.types),u.add(h.types));continue}if((0,t.isGenericTypeAnnotation)(h)){const g=e(h.id);if(o.has(g)){let b=o.get(g);b.typeParameters?h.typeParameters&&(b.typeParameters.params.push(...h.typeParameters.params),b.typeParameters.params=r(b.typeParameters.params)):b=h.typeParameters}else o.set(g,h);continue}p.push(h)}}for(const[,y]of a)p.push(y);for(const[,y]of o)p.push(y);return p}return Ul}var $m;function RE(){if($m)return $l;$m=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.default=r;var t=qn(),e=qm();function r(n){const s=(0,e.default)(n);return s.length===1?s[0]:(0,t.unionTypeAnnotation)(s)}return $l}var Vl={},Kl={},Um;function jE(){if(Um)return Kl;Um=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.default=r;var t=Ir();function e(n){return(0,t.isIdentifier)(n)?n.name:(0,t.isThisExpression)(n)?"this":`${n.right.name}.${e(n.left)}`}function r(n){const s=Array.from(n),o=new Map,a=new Map,u=new Set,p=[];for(let y=0;y<s.length;y++){const h=s[y];if(!h||p.includes(h))continue;if((0,t.isTSAnyKeyword)(h))return[h];if((0,t.isTSBaseType)(h)){a.set(h.type,h);continue}if((0,t.isTSUnionType)(h)){u.has(h.types)||(s.push(...h.types),u.add(h.types));continue}const g="typeParameters";if((0,t.isTSTypeReference)(h)&&h[g]){const b=h[g],S=e(h.typeName);if(o.has(S)){let O=o.get(S);const _=O[g];_?(_.params.push(...b.params),_.params=r(_.params)):O=b}else o.set(S,h);continue}p.push(h)}for(const[,y]of a)p.push(y);for(const[,y]of o)p.push(y);return p}return Kl}var Vm;function ME(){if(Vm)return Vl;Vm=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.default=n;var t=qn(),e=jE(),r=Ir();function n(s){const o=s.map(u=>(0,r.isTSTypeAnnotation)(u)?u.typeAnnotation:u),a=(0,e.default)(o);return a.length===1?a[0]:(0,t.tsUnionType)(a)}return Vl}var Wl={},Km;function Wm(){if(Km)return Wl;Km=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.buildUndefinedNode=e;var t=qn();function e(){return(0,t.unaryExpression)("void",(0,t.numericLiteral)(0),!0)}return Wl}var Gl={},Gm;function sa(){if(Gm)return Gl;Gm=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.default=o;var t=Oi(),e=Ir();const{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function n(p,y,h,g){return p&&typeof p.type=="string"?a(p,y,h,g):p}function s(p,y,h,g){return Array.isArray(p)?p.map(b=>n(b,y,h,g)):n(p,y,h,g)}function o(p,y=!0,h=!1){return a(p,y,h,new Map)}function a(p,y=!0,h=!1,g){if(!p)return p;const{type:b}=p,S={type:p.type};if((0,e.isIdentifier)(p))S.name=p.name,r(p,"optional")&&typeof p.optional=="boolean"&&(S.optional=p.optional),r(p,"typeAnnotation")&&(S.typeAnnotation=y?s(p.typeAnnotation,!0,h,g):p.typeAnnotation),r(p,"decorators")&&(S.decorators=y?s(p.decorators,!0,h,g):p.decorators);else if(r(t.NODE_FIELDS,b))for(const O of Object.keys(t.NODE_FIELDS[b]))r(p,O)&&(y?S[O]=(0,e.isFile)(p)&&O==="comments"?u(p.comments,y,h,g):s(p[O],!0,h,g):S[O]=p[O]);else throw new Error(`Unknown node type: "${b}"`);return r(p,"loc")&&(h?S.loc=null:S.loc=p.loc),r(p,"leadingComments")&&(S.leadingComments=u(p.leadingComments,y,h,g)),r(p,"innerComments")&&(S.innerComments=u(p.innerComments,y,h,g)),r(p,"trailingComments")&&(S.trailingComments=u(p.trailingComments,y,h,g)),r(p,"extra")&&(S.extra=Object.assign({},p.extra)),S}function u(p,y,h,g){return!p||!y?p:p.map(b=>{const S=g.get(b);if(S)return S;const{type:O,value:_,loc:w}=b,C={type:O,value:_,loc:w};return h&&(C.loc=null),g.set(b,C),C})}return Gl}var zl={},zm;function LE(){if(zm)return zl;zm=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=e;var t=sa();function e(r){return(0,t.default)(r,!1)}return zl}var Hl={},Hm;function FE(){if(Hm)return Hl;Hm=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.default=e;var t=sa();function e(r){return(0,t.default)(r)}return Hl}var Jl={},Jm;function qE(){if(Jm)return Jl;Jm=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.default=e;var t=sa();function e(r){return(0,t.default)(r,!0,!0)}return Jl}var Yl={},Ym;function $E(){if(Ym)return Yl;Ym=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=e;var t=sa();function e(r){return(0,t.default)(r,!1,!0)}return Yl}var Xl={},Ql={},Xm;function Qm(){if(Xm)return Ql;Xm=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.default=t;function t(e,r,n){if(!n||!e)return e;const s=`${r}Comments`;return e[s]?r==="leading"?e[s]=n.concat(e[s]):e[s].push(...n):e[s]=n,e}return Ql}var Zm;function UE(){if(Zm)return Xl;Zm=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=e;var t=Qm();function e(r,n,s,o){return(0,t.default)(r,n,[{type:o?"CommentLine":"CommentBlock",value:s}])}return Xl}var Zl={},ec={},e0;function $f(){if(e0)return ec;e0=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.default=t;function t(e,r,n){r&&n&&(r[e]=Array.from(new Set([].concat(r[e],n[e]).filter(Boolean))))}return ec}var t0;function r0(){if(t0)return Zl;t0=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.default=e;var t=$f();function e(r,n){(0,t.default)("innerComments",r,n)}return Zl}var tc={},n0;function i0(){if(n0)return tc;n0=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.default=e;var t=$f();function e(r,n){(0,t.default)("leadingComments",r,n)}return tc}var rc={},nc={},s0;function a0(){if(s0)return nc;s0=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.default=e;var t=$f();function e(r,n){(0,t.default)("trailingComments",r,n)}return nc}var o0;function l0(){if(o0)return rc;o0=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.default=n;var t=a0(),e=i0(),r=r0();function n(s,o){return(0,t.default)(s,o),(0,e.default)(s,o),(0,r.default)(s,o),s}return rc}var ic={},c0;function VE(){if(c0)return ic;c0=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.default=e;var t=Co();function e(r){return t.COMMENT_KEYS.forEach(n=>{r[n]=null}),r}return ic}var Tt={},u0;function KE(){if(u0)return Tt;u0=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.WHILE_TYPES=Tt.USERWHITESPACABLE_TYPES=Tt.UNARYLIKE_TYPES=Tt.TYPESCRIPT_TYPES=Tt.TSTYPE_TYPES=Tt.TSTYPEELEMENT_TYPES=Tt.TSENTITYNAME_TYPES=Tt.TSBASETYPE_TYPES=Tt.TERMINATORLESS_TYPES=Tt.STATEMENT_TYPES=Tt.STANDARDIZED_TYPES=Tt.SCOPABLE_TYPES=Tt.PUREISH_TYPES=Tt.PROPERTY_TYPES=Tt.PRIVATE_TYPES=Tt.PATTERN_TYPES=Tt.PATTERNLIKE_TYPES=Tt.OBJECTMEMBER_TYPES=Tt.MODULESPECIFIER_TYPES=Tt.MODULEDECLARATION_TYPES=Tt.MISCELLANEOUS_TYPES=Tt.METHOD_TYPES=Tt.LVAL_TYPES=Tt.LOOP_TYPES=Tt.LITERAL_TYPES=Tt.JSX_TYPES=Tt.IMPORTOREXPORTDECLARATION_TYPES=Tt.IMMUTABLE_TYPES=Tt.FUNCTION_TYPES=Tt.FUNCTIONPARENT_TYPES=Tt.FUNCTIONPARAMETER_TYPES=Tt.FOR_TYPES=Tt.FORXSTATEMENT_TYPES=Tt.FLOW_TYPES=Tt.FLOWTYPE_TYPES=Tt.FLOWPREDICATE_TYPES=Tt.FLOWDECLARATION_TYPES=Tt.FLOWBASEANNOTATION_TYPES=Tt.EXPRESSION_TYPES=Tt.EXPRESSIONWRAPPER_TYPES=Tt.EXPORTDECLARATION_TYPES=Tt.ENUMMEMBER_TYPES=Tt.ENUMBODY_TYPES=Tt.DECLARATION_TYPES=Tt.CONDITIONAL_TYPES=Tt.COMPLETIONSTATEMENT_TYPES=Tt.CLASS_TYPES=Tt.BLOCK_TYPES=Tt.BLOCKPARENT_TYPES=Tt.BINARY_TYPES=Tt.ACCESSOR_TYPES=void 0;var t=Oi();Tt.STANDARDIZED_TYPES=t.FLIPPED_ALIAS_KEYS.Standardized,Tt.EXPRESSION_TYPES=t.FLIPPED_ALIAS_KEYS.Expression,Tt.BINARY_TYPES=t.FLIPPED_ALIAS_KEYS.Binary,Tt.SCOPABLE_TYPES=t.FLIPPED_ALIAS_KEYS.Scopable,Tt.BLOCKPARENT_TYPES=t.FLIPPED_ALIAS_KEYS.BlockParent,Tt.BLOCK_TYPES=t.FLIPPED_ALIAS_KEYS.Block,Tt.STATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.Statement,Tt.TERMINATORLESS_TYPES=t.FLIPPED_ALIAS_KEYS.Terminatorless,Tt.COMPLETIONSTATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.CompletionStatement,Tt.CONDITIONAL_TYPES=t.FLIPPED_ALIAS_KEYS.Conditional,Tt.LOOP_TYPES=t.FLIPPED_ALIAS_KEYS.Loop,Tt.WHILE_TYPES=t.FLIPPED_ALIAS_KEYS.While,Tt.EXPRESSIONWRAPPER_TYPES=t.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Tt.FOR_TYPES=t.FLIPPED_ALIAS_KEYS.For,Tt.FORXSTATEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.ForXStatement,Tt.FUNCTION_TYPES=t.FLIPPED_ALIAS_KEYS.Function,Tt.FUNCTIONPARENT_TYPES=t.FLIPPED_ALIAS_KEYS.FunctionParent,Tt.PUREISH_TYPES=t.FLIPPED_ALIAS_KEYS.Pureish,Tt.DECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.Declaration,Tt.FUNCTIONPARAMETER_TYPES=t.FLIPPED_ALIAS_KEYS.FunctionParameter,Tt.PATTERNLIKE_TYPES=t.FLIPPED_ALIAS_KEYS.PatternLike,Tt.LVAL_TYPES=t.FLIPPED_ALIAS_KEYS.LVal,Tt.TSENTITYNAME_TYPES=t.FLIPPED_ALIAS_KEYS.TSEntityName,Tt.LITERAL_TYPES=t.FLIPPED_ALIAS_KEYS.Literal,Tt.IMMUTABLE_TYPES=t.FLIPPED_ALIAS_KEYS.Immutable,Tt.USERWHITESPACABLE_TYPES=t.FLIPPED_ALIAS_KEYS.UserWhitespacable,Tt.METHOD_TYPES=t.FLIPPED_ALIAS_KEYS.Method,Tt.OBJECTMEMBER_TYPES=t.FLIPPED_ALIAS_KEYS.ObjectMember,Tt.PROPERTY_TYPES=t.FLIPPED_ALIAS_KEYS.Property,Tt.UNARYLIKE_TYPES=t.FLIPPED_ALIAS_KEYS.UnaryLike,Tt.PATTERN_TYPES=t.FLIPPED_ALIAS_KEYS.Pattern,Tt.CLASS_TYPES=t.FLIPPED_ALIAS_KEYS.Class;const e=Tt.IMPORTOREXPORTDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return Tt.EXPORTDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.ExportDeclaration,Tt.MODULESPECIFIER_TYPES=t.FLIPPED_ALIAS_KEYS.ModuleSpecifier,Tt.ACCESSOR_TYPES=t.FLIPPED_ALIAS_KEYS.Accessor,Tt.PRIVATE_TYPES=t.FLIPPED_ALIAS_KEYS.Private,Tt.FLOW_TYPES=t.FLIPPED_ALIAS_KEYS.Flow,Tt.FLOWTYPE_TYPES=t.FLIPPED_ALIAS_KEYS.FlowType,Tt.FLOWBASEANNOTATION_TYPES=t.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,Tt.FLOWDECLARATION_TYPES=t.FLIPPED_ALIAS_KEYS.FlowDeclaration,Tt.FLOWPREDICATE_TYPES=t.FLIPPED_ALIAS_KEYS.FlowPredicate,Tt.ENUMBODY_TYPES=t.FLIPPED_ALIAS_KEYS.EnumBody,Tt.ENUMMEMBER_TYPES=t.FLIPPED_ALIAS_KEYS.EnumMember,Tt.JSX_TYPES=t.FLIPPED_ALIAS_KEYS.JSX,Tt.MISCELLANEOUS_TYPES=t.FLIPPED_ALIAS_KEYS.Miscellaneous,Tt.TYPESCRIPT_TYPES=t.FLIPPED_ALIAS_KEYS.TypeScript,Tt.TSTYPEELEMENT_TYPES=t.FLIPPED_ALIAS_KEYS.TSTypeElement,Tt.TSTYPE_TYPES=t.FLIPPED_ALIAS_KEYS.TSType,Tt.TSBASETYPE_TYPES=t.FLIPPED_ALIAS_KEYS.TSBaseType,Tt.MODULEDECLARATION_TYPES=e,Tt}var sc={},ac={},f0;function p0(){if(f0)return ac;f0=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.default=r;var t=Ir(),e=qn();function r(n,s){if((0,t.isBlockStatement)(n))return n;let o=[];return(0,t.isEmptyStatement)(n)?o=[]:((0,t.isStatement)(n)||((0,t.isFunction)(s)?n=(0,e.returnStatement)(n):n=(0,e.expressionStatement)(n)),o=[n]),(0,e.blockStatement)(o)}return ac}var d0;function WE(){if(d0)return sc;d0=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.default=e;var t=p0();function e(r,n="body"){const s=(0,t.default)(r[n],r);return r[n]=s,s}return sc}var oc={},lc={},h0;function y0(){if(h0)return lc;h0=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.default=r;var t=Ao(),e=Da;function r(n){n=n+"";let s="";for(const o of n)s+=(0,e.isIdentifierChar)(o.codePointAt(0))?o:"-";return s=s.replace(/^[-0-9]+/,""),s=s.replace(/[-\s]+(.)?/g,function(o,a){return a?a.toUpperCase():""}),(0,t.default)(s)||(s=`_${s}`),s||"_"}return lc}var m0;function GE(){if(m0)return oc;m0=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=e;var t=y0();function e(r){return r=(0,t.default)(r),(r==="eval"||r==="arguments")&&(r="_"+r),r}return oc}var cc={},g0;function zE(){if(g0)return cc;g0=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.default=r;var t=Ir(),e=qn();function r(n,s=n.key||n.property){return!n.computed&&(0,t.isIdentifier)(s)&&(s=(0,e.stringLiteral)(s.name)),s}return cc}var No={},b0;function HE(){if(b0)return No;b0=1,Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var t=Ir();No.default=e;function e(r){if((0,t.isExpressionStatement)(r)&&(r=r.expression),(0,t.isExpression)(r))return r;if((0,t.isClass)(r)?(r.type="ClassExpression",r.abstract=!1):(0,t.isFunction)(r)&&(r.type="FunctionExpression"),!(0,t.isExpression)(r))throw new Error(`cannot turn ${r.type} to an expression`);return r}return No}var uc={},fc={},pc={},v0;function S0(){if(v0)return pc;v0=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.default=n;var t=Oi();const e=Symbol(),r=Symbol();function n(s,o,a){if(!s)return!1;const u=t.VISITOR_KEYS[s.type];if(!u)return!1;a=a||{};const p=o(s,a);if(p!==void 0)switch(p){case e:return!1;case r:return!0}for(const y of u){const h=s[y];if(h){if(Array.isArray(h)){for(const g of h)if(n(g,o,a))return!0}else if(n(h,o,a))return!0}}return!1}return n.skip=e,n.stop=r,pc}var dc={},T0;function E0(){if(T0)return dc;T0=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.default=n;var t=Co();const e=["tokens","start","end","loc","raw","rawValue"],r=[...t.COMMENT_KEYS,"comments",...e];function n(s,o={}){const a=o.preserveComments?e:r;for(const p of a)s[p]!=null&&(s[p]=void 0);for(const p of Object.keys(s))p.startsWith("_")&&s[p]!=null&&(s[p]=void 0);const u=Object.getOwnPropertySymbols(s);for(const p of u)s[p]=null}return dc}var x0;function P0(){if(x0)return fc;x0=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.default=r;var t=S0(),e=E0();function r(n,s){return(0,t.default)(n,e.default,s),n}return fc}var _0;function JE(){if(_0)return uc;_0=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.default=n;var t=Ir(),e=sa(),r=P0();function n(s,o=s.key){let a;return s.kind==="method"?n.increment()+"":((0,t.isIdentifier)(o)?a=o.name:(0,t.isStringLiteral)(o)?a=JSON.stringify(o.value):a=JSON.stringify((0,r.default)((0,e.default)(o))),s.computed&&(a=`[${a}]`),s.static&&(a=`static:${a}`),a)}return n.uid=0,n.increment=function(){return n.uid>=Number.MAX_SAFE_INTEGER?n.uid=0:n.uid++},uc}var ko={},w0;function YE(){if(w0)return ko;w0=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var t=Ir(),e=qn();ko.default=r;function r(n,s){if((0,t.isStatement)(n))return n;let o=!1,a;if((0,t.isClass)(n))o=!0,a="ClassDeclaration";else if((0,t.isFunction)(n))o=!0,a="FunctionDeclaration";else if((0,t.isAssignmentExpression)(n))return(0,e.expressionStatement)(n);if(o&&!n.id&&(a=!1),!a){if(s)return!1;throw new Error(`cannot turn ${n.type} to a statement`)}return n.type=a,n}return ko}var Do={},A0;function XE(){if(A0)return Do;A0=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var t=Ao(),e=qn();Do.default=o;const r=Function.call.bind(Object.prototype.toString);function n(a){return r(a)==="[object RegExp]"}function s(a){if(typeof a!="object"||a===null||Object.prototype.toString.call(a)!=="[object Object]")return!1;const u=Object.getPrototypeOf(a);return u===null||Object.getPrototypeOf(u)===null}function o(a){if(a===void 0)return(0,e.identifier)("undefined");if(a===!0||a===!1)return(0,e.booleanLiteral)(a);if(a===null)return(0,e.nullLiteral)();if(typeof a=="string")return(0,e.stringLiteral)(a);if(typeof a=="number"){let u;if(Number.isFinite(a))u=(0,e.numericLiteral)(Math.abs(a));else{let p;Number.isNaN(a)?p=(0,e.numericLiteral)(0):p=(0,e.numericLiteral)(1),u=(0,e.binaryExpression)("/",p,(0,e.numericLiteral)(0))}return(a<0||Object.is(a,-0))&&(u=(0,e.unaryExpression)("-",u)),u}if(typeof a=="bigint")return a<0?(0,e.unaryExpression)("-",(0,e.bigIntLiteral)(-a)):(0,e.bigIntLiteral)(a);if(n(a)){const u=a.source,p=/\/([a-z]*)$/.exec(a.toString())[1];return(0,e.regExpLiteral)(u,p)}if(Array.isArray(a))return(0,e.arrayExpression)(a.map(o));if(s(a)){const u=[];for(const p of Object.keys(a)){let y,h=!1;(0,t.default)(p)?p==="__proto__"?(h=!0,y=(0,e.stringLiteral)(p)):y=(0,e.identifier)(p):y=(0,e.stringLiteral)(p),u.push((0,e.objectProperty)(y,o(a[p]),h))}return(0,e.objectExpression)(u)}throw new Error("don't know how to turn this value into a node")}return Do}var hc={},C0;function QE(){if(C0)return hc;C0=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.default=e;var t=qn();function e(r,n,s=!1){return r.object=(0,t.memberExpression)(r.object,r.property,r.computed),r.property=n,r.computed=!!s,r}return hc}var yc={},I0;function ZE(){if(I0)return yc;I0=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.default=r;var t=Co(),e=l0();function r(n,s){if(!n||!s)return n;for(const o of t.INHERIT_KEYS.optional)n[o]==null&&(n[o]=s[o]);for(const o of Object.keys(s))o.startsWith("_")&&o!=="__clone"&&(n[o]=s[o]);for(const o of t.INHERIT_KEYS.force)n[o]=s[o];return(0,e.default)(n,s),n}return yc}var mc={},O0;function ex(){if(O0)return mc;O0=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.default=r;var t=qn(),e=Ut();function r(n,s){if((0,e.isSuper)(n.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return n.object=(0,t.memberExpression)(s,n.object),n}return mc}var gc={},N0;function tx(){if(N0)return gc;N0=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.default=t;function t(e){const r=[].concat(e),n=Object.create(null);for(;r.length;){const s=r.pop();if(s)switch(s.type){case"ArrayPattern":r.push(...s.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":r.push(s.left);break;case"ObjectPattern":r.push(...s.properties);break;case"ObjectProperty":r.push(s.value);break;case"RestElement":case"UpdateExpression":r.push(s.argument);break;case"UnaryExpression":s.operator==="delete"&&r.push(s.argument);break;case"Identifier":n[s.name]=s;break}}return n}return gc}var bc={},k0;function vc(){if(k0)return bc;k0=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.default=e;var t=Ir();function e(n,s,o,a){const u=[].concat(n),p=Object.create(null);for(;u.length;){const y=u.shift();if(!y||a&&((0,t.isAssignmentExpression)(y)||(0,t.isUnaryExpression)(y)||(0,t.isUpdateExpression)(y)))continue;if((0,t.isIdentifier)(y)){s?(p[y.name]=p[y.name]||[]).push(y):p[y.name]=y;continue}if((0,t.isExportDeclaration)(y)&&!(0,t.isExportAllDeclaration)(y)){(0,t.isDeclaration)(y.declaration)&&u.push(y.declaration);continue}if(o){if((0,t.isFunctionDeclaration)(y)){u.push(y.id);continue}if((0,t.isFunctionExpression)(y))continue}const h=e.keys[y.type];if(h)for(let g=0;g<h.length;g++){const b=h[g],S=y[b];S&&(Array.isArray(S)?u.push(...S):u.push(S))}}return p}const r={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};return e.keys=r,bc}var Bo={},D0;function rx(){if(D0)return Bo;D0=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.default=void 0;var t=vc();Bo.default=e;function e(r,n){return(0,t.default)(r,n,!0)}return Bo}var Sc={},B0;function nx(){if(B0)return Sc;B0=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.default=n;var t=Ir();function e(s){return(0,t.isNullLiteral)(s)?"null":(0,t.isRegExpLiteral)(s)?`/${s.pattern}/${s.flags}`:(0,t.isTemplateLiteral)(s)?s.quasis.map(o=>o.value.raw).join(""):s.value!==void 0?String(s.value):null}function r(s){if(!s.computed||(0,t.isLiteral)(s.key))return s.key}function n(s,o){if("id"in s&&s.id)return{name:s.id.name,originalNode:s.id};let a="",u;if((0,t.isObjectProperty)(o,{value:s})?u=r(o):(0,t.isObjectMethod)(s)||(0,t.isClassMethod)(s)?(u=r(s),s.kind==="get"?a="get ":s.kind==="set"&&(a="set ")):(0,t.isVariableDeclarator)(o,{init:s})?u=o.id:(0,t.isAssignmentExpression)(o,{operator:"=",right:s})&&(u=o.left),!u)return null;const p=(0,t.isLiteral)(u)?e(u):(0,t.isIdentifier)(u)?u.name:(0,t.isPrivateName)(u)?u.id.name:null;return p==null?null:{name:a+p,originalNode:u}}return Sc}var Tc={},R0;function ix(){if(R0)return Tc;R0=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.default=e;var t=Oi();function e(n,s,o){typeof s=="function"&&(s={enter:s});const{enter:a,exit:u}=s;r(n,a,u,o,[])}function r(n,s,o,a,u){const p=t.VISITOR_KEYS[n.type];if(p){s&&s(n,u,a);for(const y of p){const h=n[y];if(Array.isArray(h))for(let g=0;g<h.length;g++){const b=h[g];b&&(u.push({node:n,key:y,index:g}),r(b,s,o,a,u),u.pop())}else h&&(u.push({node:n,key:y}),r(h,s,o,a,u),u.pop())}o&&o(n,u,a)}}return Tc}var Ec={},j0;function sx(){if(j0)return Ec;j0=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.default=e;var t=vc();function e(r,n,s){if(s&&r.type==="Identifier"&&n.type==="ObjectProperty"&&s.type==="ObjectExpression")return!1;const o=t.default.keys[n.type];if(o)for(let a=0;a<o.length;a++){const u=o[a],p=n[u];if(Array.isArray(p)){if(p.includes(r))return!0}else if(p===r)return!0}return!1}return Ec}var xc={},Pc={},M0;function L0(){if(M0)return Pc;M0=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.default=r;var t=Ir(),e=Symbol.for("var used to be block scoped");function r(n){return(0,t.isVariableDeclaration)(n)&&(n.kind!=="var"||n[e])}return Pc}var F0;function ax(){if(F0)return xc;F0=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.default=r;var t=Ir(),e=L0();function r(n){return(0,t.isFunctionDeclaration)(n)||(0,t.isClassDeclaration)(n)||(0,e.default)(n)}return xc}var _c={},q0;function ox(){if(q0)return _c;q0=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.default=r;var t=jf(),e=Ir();function r(n){return(0,t.default)(n.type,"Immutable")?!0:(0,e.isIdentifier)(n)?n.name==="undefined":!1}return _c}var wc={},$0;function lx(){if($0)return wc;$0=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.default=e;var t=Oi();function e(r,n){if(typeof r!="object"||typeof n!="object"||r==null||n==null)return r===n;if(r.type!==n.type)return!1;const s=Object.keys(t.NODE_FIELDS[r.type]||r.type),o=t.VISITOR_KEYS[r.type];for(const a of s){const u=r[a],p=n[a];if(typeof u!=typeof p)return!1;if(!(u==null&&p==null)){if(u==null||p==null)return!1;if(Array.isArray(u)){if(!Array.isArray(p)||u.length!==p.length)return!1;for(let y=0;y<u.length;y++)if(!e(u[y],p[y]))return!1;continue}if(typeof u=="object"&&!(o!=null&&o.includes(a))){for(const y of Object.keys(u))if(u[y]!==p[y])return!1;continue}if(!e(u,p))return!1}}return!0}return wc}var Ac={},U0;function cx(){if(U0)return Ac;U0=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.default=t;function t(e,r,n){switch(r.type){case"MemberExpression":case"OptionalMemberExpression":return r.property===e?!!r.computed:r.object===e;case"JSXMemberExpression":return r.object===e;case"VariableDeclarator":return r.init===e;case"ArrowFunctionExpression":return r.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return r.key===e?!!r.computed:!1;case"ObjectProperty":return r.key===e?!!r.computed:(n==null?void 0:n.type)!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return r.key===e?!!r.computed:!0;case"ClassPrivateProperty":return r.key!==e;case"ClassDeclaration":case"ClassExpression":return r.superClass===e;case"AssignmentExpression":return r.right===e;case"AssignmentPattern":return r.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return n!=null&&n.source?!1:r.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return r.key!==e;case"TSEnumMember":return r.id!==e;case"TSPropertySignature":return r.key===e?!!r.computed:!0}return!0}return Ac}var Cc={},V0;function ux(){if(V0)return Cc;V0=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.default=e;var t=Ir();function e(r,n){return(0,t.isBlockStatement)(r)&&((0,t.isFunction)(n)||(0,t.isCatchClause)(n))?!1:(0,t.isPattern)(r)&&((0,t.isFunction)(n)||(0,t.isCatchClause)(n))?!0:(0,t.isScopable)(r)}return Cc}var Ic={},K0;function fx(){if(K0)return Ic;K0=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.default=e;var t=Ir();function e(r){return(0,t.isImportDefaultSpecifier)(r)||(0,t.isIdentifier)(r.imported||r.exported,{name:"default"})}return Ic}var Oc={},W0;function px(){if(W0)return Oc;W0=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.default=r;var t=Ao();const e=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function r(n){return(0,t.default)(n)&&!e.has(n)}return Oc}var Nc={},G0;function dx(){if(G0)return Nc;G0=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.default=r;var t=Ir(),e=Symbol.for("var used to be block scoped");function r(n){return(0,t.isVariableDeclaration)(n,{kind:"var"})&&!n[e]}return Nc}var kc={},Dc={},z0;function hx(){if(z0)return Dc;z0=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.default=o;var t=vc(),e=Ir(),r=qn(),n=Wm(),s=sa();function o(a,u){const p=[];let y=!0;for(const h of a)if((0,e.isEmptyStatement)(h)||(y=!1),(0,e.isExpression)(h))p.push(h);else if((0,e.isExpressionStatement)(h))p.push(h.expression);else if((0,e.isVariableDeclaration)(h)){if(h.kind!=="var")return;for(const g of h.declarations){const b=(0,t.default)(g);for(const S of Object.keys(b))u.push({kind:h.kind,id:(0,s.default)(b[S])});g.init&&p.push((0,r.assignmentExpression)("=",g.id,g.init))}y=!0}else if((0,e.isIfStatement)(h)){const g=h.consequent?o([h.consequent],u):(0,n.buildUndefinedNode)(),b=h.alternate?o([h.alternate],u):(0,n.buildUndefinedNode)();if(!g||!b)return;p.push((0,r.conditionalExpression)(h.test,g,b))}else if((0,e.isBlockStatement)(h)){const g=o(h.body,u);if(!g)return;p.push(g)}else if((0,e.isEmptyStatement)(h))a.indexOf(h)===0&&(y=!0);else return;return y&&p.push((0,n.buildUndefinedNode)()),p.length===1?p[0]:(0,r.sequenceExpression)(p)}return Dc}var H0;function yx(){if(H0)return kc;H0=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=e;var t=hx();function e(r,n){if(!(r!=null&&r.length))return;const s=[],o=(0,t.default)(r,s);if(o){for(const a of s)n.push(a);return o}}return kc}var J0;function Ut(){return J0||(J0=1,function(t){var e={};Object.defineProperty(t,"__esModule",{value:!0});var r={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return _t.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Ke.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return Me.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return st.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return $e.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return Le.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return gt.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return ht.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return Se.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return U.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return Ze.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return K.default}});var n=fE(),s=pE(),o=NE(),a=kE(),u=DE();Object.keys(u).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===u[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return u[pt]}})});var p=BE(),y=RE(),h=ME(),g=Wm();Object.keys(g).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===g[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return g[pt]}})});var b=qn();Object.keys(b).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===b[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return b[pt]}})});var S=sa(),O=LE(),_=FE(),w=qE(),C=$E(),T=UE(),x=Qm(),E=r0(),j=i0(),R=l0(),I=a0(),D=VE(),Z=KE();Object.keys(Z).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===Z[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return Z[pt]}})});var J=Co();Object.keys(J).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===J[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return J[pt]}})});var N=WE(),$=GE(),ne=p0(),me=zE(),Ce=HE(),Ae=y0(),ce=JE(),ue=YE(),K=XE(),Y=Oi();Object.keys(Y).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===Y[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return Y[pt]}})});var he=QE(),ae=ZE(),U=ex(),L=E0(),H=P0(),ye=qm(),Ie=tx(),Ee=vc(),De=rx(),Me=nx(),Ve=ix();Object.keys(Ve).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===Ve[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return Ve[pt]}})});var Ze=S0(),ut=Df(),st=_o(),dt=sx(),$e=ax(),je=ox(),qe=L0(),Le=Rm(),gt=lx(),ht=Zy(),xe=cx(),Se=ux(),se=fx(),ee=jf(),oe=px(),W=Ao(),fe=dx(),Re=Gy(),Fe=qf(),Ke=Hy(),it=Ir();Object.keys(it).forEach(function(pt){pt==="default"||pt==="__esModule"||Object.prototype.hasOwnProperty.call(r,pt)||pt in t&&t[pt]===it[pt]||Object.defineProperty(t,pt,{enumerable:!0,get:function(){return it[pt]}})});var _t=Po(),Mt=yx();t.react={isReactComponent:n.default,isCompatTag:s.default,buildChildren:o.default},t.toSequenceExpression=Mt.default,e.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")}(kf)),kf}var Ro={},_n={},$n={},Y0;function mx(){if(Y0)return $n;Y0=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.statements=$n.statement=$n.smart=$n.program=$n.expression=void 0;var t=Ut();const{assertExpressionStatement:e}=t;function r(s){return{code:o=>`/* @babel/template */;
23
23
  ${o}`,validate:()=>{},unwrap:o=>s(o.program.body.slice(1))}}$n.smart=r(s=>s.length>1?s:s[0]),$n.statements=r(s=>s),$n.statement=r(s=>{if(s.length===0)throw new Error("Found nothing to return.");if(s.length>1)throw new Error("Found multiple statements but wanted one");return s[0]});const n=$n.expression={code:s=>`(
24
24
  ${s}
25
25
  )`,validate:s=>{if(s.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(n.unwrap(s).start===0)throw new Error("Parse result included parens.")},unwrap:({program:s})=>{const[o]=s.body;return e(o),o.expression}};return $n.program={code:s=>s,validate:()=>{},unwrap:s=>s.program},$n}var Bc={},Ra={},X0;function Uf(){if(X0)return Ra;X0=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.merge=r,Ra.normalizeReplacements=s,Ra.validate=n;const t=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function e(o,a){if(o==null)return{};var u={};for(var p in o)if({}.hasOwnProperty.call(o,p)){if(a.indexOf(p)!==-1)continue;u[p]=o[p]}return u}function r(o,a){const{placeholderWhitelist:u=o.placeholderWhitelist,placeholderPattern:p=o.placeholderPattern,preserveComments:y=o.preserveComments,syntacticPlaceholders:h=o.syntacticPlaceholders}=a;return{parser:Object.assign({},o.parser,a.parser),placeholderWhitelist:u,placeholderPattern:p,preserveComments:y,syntacticPlaceholders:h}}function n(o){if(o!=null&&typeof o!="object")throw new Error("Unknown template options.");const a=o||{},{placeholderWhitelist:u,placeholderPattern:p,preserveComments:y,syntacticPlaceholders:h}=a,g=e(a,t);if(u!=null&&!(u instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(p!=null&&!(p instanceof RegExp)&&p!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(y!=null&&typeof y!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(h!=null&&typeof h!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(h===!0&&(u!=null||p!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:g,placeholderWhitelist:u||void 0,placeholderPattern:p??void 0,preserveComments:y??void 0,syntacticPlaceholders:h??void 0}}function s(o){if(Array.isArray(o))return o.reduce((a,u,p)=>(a["$"+p]=u,a),{});if(typeof o=="object"||o==null)return o||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}return Ra}var Rc={},jc={},ja={},Q0;function Mc(){if(Q0)return ja;Q0=1,Object.defineProperty(ja,"__esModule",{value:!0});function t(z,l){if(z==null)return{};var i={};for(var c in z)if({}.hasOwnProperty.call(z,c)){if(l.indexOf(c)!==-1)continue;i[c]=z[c]}return i}class e{constructor(l,i,c){this.line=void 0,this.column=void 0,this.index=void 0,this.line=l,this.column=i,this.index=c}}class r{constructor(l,i){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=l,this.end=i}}function n(z,l){const{line:i,column:c,index:d}=z;return new e(i,c+l,d+l)}const s="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:s},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:s}};const a={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},u=z=>z.type==="UpdateExpression"?a.UpdateExpression[`${z.prefix}`]:a[z.type];var p={AccessorIsGenerator:({kind:z})=>`A ${z}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:z})=>`Missing initializer in ${z} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:z})=>`\`${z}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:z,exportName:l})=>`A string literal cannot be used as an exported binding without \`from\`.
26
26
  - Did you mean \`export { '${z}' as '${l}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:z})=>`'${z==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:z})=>`Unsyntactic ${z==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:z})=>`A string literal cannot be used as an imported binding.
27
- - Did you mean \`import { "${z}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:z})=>`Expected number in radix ${z}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:z})=>`Escape sequence in keyword ${z}.`,InvalidIdentifier:({identifierName:z})=>`Invalid identifier ${z}.`,InvalidLhs:({ancestor:z})=>`Invalid left-hand side in ${u(z)}.`,InvalidLhsBinding:({ancestor:z})=>`Binding invalid left-hand side in ${u(z)}.`,InvalidLhsOptionalChaining:({ancestor:z})=>`Invalid optional chaining in the left-hand side of ${u(z)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:z})=>`Unexpected character '${z}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:z})=>`Private name #${z} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:z})=>`Label '${z}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:z})=>`This experimental syntax requires enabling the parser plugin: ${z.map(l=>JSON.stringify(l)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:z})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${z.map(l=>JSON.stringify(l)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:z})=>`Duplicate key "${z}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:z})=>`An export name cannot include a lone surrogate, found '\\u${z.toString(16)}'.`,ModuleExportUndefined:({localName:z})=>`Export '${z}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:z})=>`Private names are only allowed in property accesses (\`obj.#${z}\`) or in \`in\` expressions (\`#${z} in obj\`).`,PrivateNameRedeclaration:({identifierName:z})=>`Duplicate private name #${z}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:z})=>`Unexpected keyword '${z}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:z})=>`Unexpected reserved word '${z}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:z,unexpected:l})=>`Unexpected token${l?` '${l}'.`:""}${z?`, expected "${z}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:z,onlyValidPropertyName:l})=>`The only valid meta property for ${z} is ${z}.${l}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:z})=>`Identifier '${z}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},y={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:z})=>`Assigning to '${z}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:z})=>`Binding '${z}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},h={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:z})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(z)}\`.`};const g=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var b=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:z})=>`Invalid topic token ${z}. In order to use ${z} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${z}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:z})=>`Hack-style pipe body cannot be an unparenthesized ${u({type:z})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),S={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."};const O=["message"];function _(z,l,i){Object.defineProperty(z,l,{enumerable:!1,configurable:!0,value:i})}function w({toMessage:z,code:l,reasonCode:i,syntaxPlugin:c}){const d=i==="MissingPlugin"||i==="MissingOneOfPlugins",A={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return A[i]&&(i=A[i]),function Q(le,Pe){const Be=new SyntaxError;return Be.code=l,Be.reasonCode=i,Be.loc=le,Be.pos=le.index,Be.syntaxPlugin=c,d&&(Be.missingPlugin=Pe.missingPlugin),_(Be,"clone",function(ct={}){var vt;const{line:wt,column:Ot,index:Gt}=(vt=ct.loc)!=null?vt:le;return Q(new e(wt,Ot,Gt),Object.assign({},Pe,ct.details))}),_(Be,"details",Pe),Object.defineProperty(Be,"message",{configurable:!0,get(){const Ue=`${z(Pe)} (${le.line}:${le.column})`;return this.message=Ue,Ue},set(Ue){Object.defineProperty(this,"message",{value:Ue,writable:!0})}}),Be}}function C(z,l){if(Array.isArray(z))return c=>C(c,z[0]);const i={};for(const c of Object.keys(z)){const d=z[c],A=typeof d=="string"?{message:()=>d}:typeof d=="function"?{message:d}:d,{message:Q}=A,le=t(A,O),Pe=typeof Q=="string"?()=>Q:Q;i[c]=w(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:c,toMessage:Pe},l?{syntaxPlugin:l}:{},le))}return i}const T=Object.assign({},C(o),C(p),C(y),C(h),C`pipelineOperator`(b),C`functionBind`(S));function x(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function E(z){const l=x();if(z==null)return l;if(z.annexB!=null&&z.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(const i of Object.keys(l))z[i]!=null&&(l[i]=z[i]);if(l.startLine===1)z.startIndex==null&&l.startColumn>0?l.startIndex=l.startColumn:z.startColumn==null&&l.startIndex>0&&(l.startColumn=l.startIndex);else if((z.startColumn==null||z.startIndex==null)&&z.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(l.sourceType==="commonjs"){if(z.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(z.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(z.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return l}const{defineProperty:j}=Object,R=(z,l)=>{z&&j(z,l,{enumerable:!1,value:z[l]})};function I(z){return R(z.loc.start,"index"),R(z.loc.end,"index"),z}var D=z=>class extends z{parse(){const i=I(super.parse());return this.optionFlags&256&&(i.tokens=i.tokens.map(I)),i}parseRegExpLiteral({pattern:i,flags:c}){let d=null;try{d=new RegExp(i,c)}catch{}const A=this.estreeParseLiteral(d);return A.regex={pattern:i,flags:c},A}parseBigIntLiteral(i){let c;try{c=BigInt(i)}catch{c=null}const d=this.estreeParseLiteral(c);return d.bigint=String(d.value||i),d}parseDecimalLiteral(i){const d=this.estreeParseLiteral(null);return d.decimal=String(d.value||i),d}estreeParseLiteral(i){return this.parseLiteral(i,"Literal")}parseStringLiteral(i){return this.estreeParseLiteral(i)}parseNumericLiteral(i){return this.estreeParseLiteral(i)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(i){return this.estreeParseLiteral(i)}estreeParseChainExpression(i,c){const d=this.startNodeAtNode(i);return d.expression=i,this.finishNodeAt(d,"ChainExpression",c)}directiveToStmt(i){const c=i.value;delete i.value,this.castNodeTo(c,"Literal"),c.raw=c.extra.raw,c.value=c.extra.expressionValue;const d=this.castNodeTo(i,"ExpressionStatement");return d.expression=c,d.directive=c.extra.rawValue,delete c.extra,d}fillOptionalPropertiesForTSESLint(i){}cloneEstreeStringLiteral(i){const{start:c,end:d,loc:A,range:Q,raw:le,value:Pe}=i,Be=Object.create(i.constructor.prototype);return Be.type="Literal",Be.start=c,Be.end=d,Be.loc=A,Be.range=Q,Be.raw=le,Be.value=Pe,Be}initFunction(i,c){super.initFunction(i,c),i.expression=!1}checkDeclaration(i){i!=null&&this.isObjectProperty(i)?this.checkDeclaration(i.value):super.checkDeclaration(i)}getObjectOrClassMethodParams(i){return i.value.params}isValidDirective(i){var c;return i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&!((c=i.expression.extra)!=null&&c.parenthesized)}parseBlockBody(i,c,d,A,Q){super.parseBlockBody(i,c,d,A,Q);const le=i.directives.map(Pe=>this.directiveToStmt(Pe));i.body=le.concat(i.body),delete i.directives}parsePrivateName(){const i=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(i):i}convertPrivateNameToPrivateIdentifier(i){const c=super.getPrivateNameSV(i);return delete i.id,i.name=c,this.castNodeTo(i,"PrivateIdentifier")}isPrivateName(i){return this.getPluginOption("estree","classFeatures")?i.type==="PrivateIdentifier":super.isPrivateName(i)}getPrivateNameSV(i){return this.getPluginOption("estree","classFeatures")?i.name:super.getPrivateNameSV(i)}parseLiteral(i,c){const d=super.parseLiteral(i,c);return d.raw=d.extra.raw,delete d.extra,d}parseFunctionBody(i,c,d=!1){super.parseFunctionBody(i,c,d),i.expression=i.body.type!=="BlockStatement"}parseMethod(i,c,d,A,Q,le,Pe=!1){let Be=this.startNode();Be.kind=i.kind,Be=super.parseMethod(Be,c,d,A,Q,le,Pe),delete Be.kind;const{typeParameters:Ue}=i;Ue&&(delete i.typeParameters,Be.typeParameters=Ue,this.resetStartLocationFromNode(Be,Ue));const ct=this.castNodeTo(Be,"FunctionExpression");return i.value=ct,le==="ClassPrivateMethod"&&(i.computed=!1),le==="ObjectMethod"?(i.kind==="method"&&(i.kind="init"),i.shorthand=!1,this.finishNode(i,"Property")):this.finishNode(i,"MethodDefinition")}nameIsConstructor(i){return i.type==="Literal"?i.value==="constructor":super.nameIsConstructor(i)}parseClassProperty(...i){const c=super.parseClassProperty(...i);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(c,"PropertyDefinition"),c}parseClassPrivateProperty(...i){const c=super.parseClassPrivateProperty(...i);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(c,"PropertyDefinition"),c.computed=!1),c}parseClassAccessorProperty(i){const c=super.parseClassAccessorProperty(i);return this.getPluginOption("estree","classFeatures")&&(c.abstract&&this.hasPlugin("typescript")?(delete c.abstract,this.castNodeTo(c,"TSAbstractAccessorProperty")):this.castNodeTo(c,"AccessorProperty")),c}parseObjectProperty(i,c,d,A){const Q=super.parseObjectProperty(i,c,d,A);return Q&&(Q.kind="init",this.castNodeTo(Q,"Property")),Q}finishObjectProperty(i){return i.kind="init",this.finishNode(i,"Property")}isValidLVal(i,c,d,A){return i==="Property"?"value":super.isValidLVal(i,c,d,A)}isAssignable(i,c){return i!=null&&this.isObjectProperty(i)?this.isAssignable(i.value,c):super.isAssignable(i,c)}toAssignable(i,c=!1){if(i!=null&&this.isObjectProperty(i)){const{key:d,value:A}=i;this.isPrivateName(d)&&this.classScope.usePrivateName(this.getPrivateNameSV(d),d.loc.start),this.toAssignable(A,c)}else super.toAssignable(i,c)}toAssignableObjectExpressionProp(i,c,d){i.type==="Property"&&(i.kind==="get"||i.kind==="set")?this.raise(T.PatternHasAccessor,i.key):i.type==="Property"&&i.method?this.raise(T.PatternHasMethod,i.key):super.toAssignableObjectExpressionProp(i,c,d)}finishCallExpression(i,c){const d=super.finishCallExpression(i,c);if(d.callee.type==="Import"){var A,Q;this.castNodeTo(d,"ImportExpression"),d.source=d.arguments[0],d.options=(A=d.arguments[1])!=null?A:null,d.attributes=(Q=d.arguments[1])!=null?Q:null,delete d.arguments,delete d.callee}else d.type==="OptionalCallExpression"?this.castNodeTo(d,"CallExpression"):d.optional=!1;return d}toReferencedArguments(i){i.type!=="ImportExpression"&&super.toReferencedArguments(i)}parseExport(i,c){const d=this.state.lastTokStartLoc,A=super.parseExport(i,c);switch(A.type){case"ExportAllDeclaration":A.exported=null;break;case"ExportNamedDeclaration":A.specifiers.length===1&&A.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(A,"ExportAllDeclaration"),A.exported=A.specifiers[0].exported,delete A.specifiers);case"ExportDefaultDeclaration":{var Q;const{declaration:le}=A;(le==null?void 0:le.type)==="ClassDeclaration"&&((Q=le.decorators)==null?void 0:Q.length)>0&&le.start===A.start&&this.resetStartLocation(A,d)}break}return A}stopParseSubscript(i,c){const d=super.stopParseSubscript(i,c);return c.optionalChainMember?this.estreeParseChainExpression(d,i.loc.end):d}parseMember(i,c,d,A,Q){const le=super.parseMember(i,c,d,A,Q);return le.type==="OptionalMemberExpression"?this.castNodeTo(le,"MemberExpression"):le.optional=!1,le}isOptionalMemberExpression(i){return i.type==="ChainExpression"?i.expression.type==="MemberExpression":super.isOptionalMemberExpression(i)}hasPropertyAsPrivateName(i){return i.type==="ChainExpression"&&(i=i.expression),super.hasPropertyAsPrivateName(i)}isObjectProperty(i){return i.type==="Property"&&i.kind==="init"&&!i.method}isObjectMethod(i){return i.type==="Property"&&(i.method||i.kind==="get"||i.kind==="set")}castNodeTo(i,c){const d=super.castNodeTo(i,c);return this.fillOptionalPropertiesForTSESLint(d),d}cloneIdentifier(i){const c=super.cloneIdentifier(i);return this.fillOptionalPropertiesForTSESLint(c),c}cloneStringLiteral(i){return i.type==="Literal"?this.cloneEstreeStringLiteral(i):super.cloneStringLiteral(i)}finishNodeAt(i,c,d){return I(super.finishNodeAt(i,c,d))}finishNode(i,c){const d=super.finishNode(i,c);return this.fillOptionalPropertiesForTSESLint(d),d}resetStartLocation(i,c){super.resetStartLocation(i,c),I(i)}resetEndLocation(i,c=this.state.lastTokEndLoc){super.resetEndLocation(i,c),I(i)}};class Z{constructor(l,i){this.token=void 0,this.preserveSpace=void 0,this.token=l,this.preserveSpace=!!i}}const J={brace:new Z("{"),j_oTag:new Z("<tag"),j_cTag:new Z("</tag"),j_expr:new Z("<tag>...</tag>",!0)};J.template=new Z("`",!0);const N=!0,$=!0,ne=!0,me=!0,Ce=!0,Ae=!0;class ce{constructor(l,i={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=l,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}}const ue=new Map;function K(z,l={}){l.keyword=z;const i=Ee(z,l);return ue.set(z,i),i}function Y(z,l){return Ee(z,{beforeExpr:N,binop:l})}let he=-1;const ae=[],U=[],L=[],H=[],ye=[],Ie=[];function Ee(z,l={}){var i,c,d,A;return++he,U.push(z),L.push((i=l.binop)!=null?i:-1),H.push((c=l.beforeExpr)!=null?c:!1),ye.push((d=l.startsExpr)!=null?d:!1),Ie.push((A=l.prefix)!=null?A:!1),ae.push(new ce(z,l)),he}function De(z,l={}){var i,c,d,A;return++he,ue.set(z,he),U.push(z),L.push((i=l.binop)!=null?i:-1),H.push((c=l.beforeExpr)!=null?c:!1),ye.push((d=l.startsExpr)!=null?d:!1),Ie.push((A=l.prefix)!=null?A:!1),ae.push(new ce("name",l)),he}const Me={bracketL:Ee("[",{beforeExpr:N,startsExpr:$}),bracketHashL:Ee("#[",{beforeExpr:N,startsExpr:$}),bracketBarL:Ee("[|",{beforeExpr:N,startsExpr:$}),bracketR:Ee("]"),bracketBarR:Ee("|]"),braceL:Ee("{",{beforeExpr:N,startsExpr:$}),braceBarL:Ee("{|",{beforeExpr:N,startsExpr:$}),braceHashL:Ee("#{",{beforeExpr:N,startsExpr:$}),braceR:Ee("}"),braceBarR:Ee("|}"),parenL:Ee("(",{beforeExpr:N,startsExpr:$}),parenR:Ee(")"),comma:Ee(",",{beforeExpr:N}),semi:Ee(";",{beforeExpr:N}),colon:Ee(":",{beforeExpr:N}),doubleColon:Ee("::",{beforeExpr:N}),dot:Ee("."),question:Ee("?",{beforeExpr:N}),questionDot:Ee("?."),arrow:Ee("=>",{beforeExpr:N}),template:Ee("template"),ellipsis:Ee("...",{beforeExpr:N}),backQuote:Ee("`",{startsExpr:$}),dollarBraceL:Ee("${",{beforeExpr:N,startsExpr:$}),templateTail:Ee("...`",{startsExpr:$}),templateNonTail:Ee("...${",{beforeExpr:N,startsExpr:$}),at:Ee("@"),hash:Ee("#",{startsExpr:$}),interpreterDirective:Ee("#!..."),eq:Ee("=",{beforeExpr:N,isAssign:me}),assign:Ee("_=",{beforeExpr:N,isAssign:me}),slashAssign:Ee("_=",{beforeExpr:N,isAssign:me}),xorAssign:Ee("_=",{beforeExpr:N,isAssign:me}),moduloAssign:Ee("_=",{beforeExpr:N,isAssign:me}),incDec:Ee("++/--",{prefix:Ce,postfix:Ae,startsExpr:$}),bang:Ee("!",{beforeExpr:N,prefix:Ce,startsExpr:$}),tilde:Ee("~",{beforeExpr:N,prefix:Ce,startsExpr:$}),doubleCaret:Ee("^^",{startsExpr:$}),doubleAt:Ee("@@",{startsExpr:$}),pipeline:Y("|>",0),nullishCoalescing:Y("??",1),logicalOR:Y("||",1),logicalAND:Y("&&",2),bitwiseOR:Y("|",3),bitwiseXOR:Y("^",4),bitwiseAND:Y("&",5),equality:Y("==/!=/===/!==",6),lt:Y("</>/<=/>=",7),gt:Y("</>/<=/>=",7),relational:Y("</>/<=/>=",7),bitShift:Y("<</>>/>>>",8),bitShiftL:Y("<</>>/>>>",8),bitShiftR:Y("<</>>/>>>",8),plusMin:Ee("+/-",{beforeExpr:N,binop:9,prefix:Ce,startsExpr:$}),modulo:Ee("%",{binop:10,startsExpr:$}),star:Ee("*",{binop:10}),slash:Y("/",10),exponent:Ee("**",{beforeExpr:N,binop:11,rightAssociative:!0}),_in:K("in",{beforeExpr:N,binop:7}),_instanceof:K("instanceof",{beforeExpr:N,binop:7}),_break:K("break"),_case:K("case",{beforeExpr:N}),_catch:K("catch"),_continue:K("continue"),_debugger:K("debugger"),_default:K("default",{beforeExpr:N}),_else:K("else",{beforeExpr:N}),_finally:K("finally"),_function:K("function",{startsExpr:$}),_if:K("if"),_return:K("return",{beforeExpr:N}),_switch:K("switch"),_throw:K("throw",{beforeExpr:N,prefix:Ce,startsExpr:$}),_try:K("try"),_var:K("var"),_const:K("const"),_with:K("with"),_new:K("new",{beforeExpr:N,startsExpr:$}),_this:K("this",{startsExpr:$}),_super:K("super",{startsExpr:$}),_class:K("class",{startsExpr:$}),_extends:K("extends",{beforeExpr:N}),_export:K("export"),_import:K("import",{startsExpr:$}),_null:K("null",{startsExpr:$}),_true:K("true",{startsExpr:$}),_false:K("false",{startsExpr:$}),_typeof:K("typeof",{beforeExpr:N,prefix:Ce,startsExpr:$}),_void:K("void",{beforeExpr:N,prefix:Ce,startsExpr:$}),_delete:K("delete",{beforeExpr:N,prefix:Ce,startsExpr:$}),_do:K("do",{isLoop:ne,beforeExpr:N}),_for:K("for",{isLoop:ne}),_while:K("while",{isLoop:ne}),_as:De("as",{startsExpr:$}),_assert:De("assert",{startsExpr:$}),_async:De("async",{startsExpr:$}),_await:De("await",{startsExpr:$}),_defer:De("defer",{startsExpr:$}),_from:De("from",{startsExpr:$}),_get:De("get",{startsExpr:$}),_let:De("let",{startsExpr:$}),_meta:De("meta",{startsExpr:$}),_of:De("of",{startsExpr:$}),_sent:De("sent",{startsExpr:$}),_set:De("set",{startsExpr:$}),_source:De("source",{startsExpr:$}),_static:De("static",{startsExpr:$}),_using:De("using",{startsExpr:$}),_yield:De("yield",{startsExpr:$}),_asserts:De("asserts",{startsExpr:$}),_checks:De("checks",{startsExpr:$}),_exports:De("exports",{startsExpr:$}),_global:De("global",{startsExpr:$}),_implements:De("implements",{startsExpr:$}),_intrinsic:De("intrinsic",{startsExpr:$}),_infer:De("infer",{startsExpr:$}),_is:De("is",{startsExpr:$}),_mixins:De("mixins",{startsExpr:$}),_proto:De("proto",{startsExpr:$}),_require:De("require",{startsExpr:$}),_satisfies:De("satisfies",{startsExpr:$}),_keyof:De("keyof",{startsExpr:$}),_readonly:De("readonly",{startsExpr:$}),_unique:De("unique",{startsExpr:$}),_abstract:De("abstract",{startsExpr:$}),_declare:De("declare",{startsExpr:$}),_enum:De("enum",{startsExpr:$}),_module:De("module",{startsExpr:$}),_namespace:De("namespace",{startsExpr:$}),_interface:De("interface",{startsExpr:$}),_type:De("type",{startsExpr:$}),_opaque:De("opaque",{startsExpr:$}),name:Ee("name",{startsExpr:$}),placeholder:Ee("%%",{startsExpr:$}),string:Ee("string",{startsExpr:$}),num:Ee("num",{startsExpr:$}),bigint:Ee("bigint",{startsExpr:$}),decimal:Ee("decimal",{startsExpr:$}),regexp:Ee("regexp",{startsExpr:$}),privateName:Ee("#name",{startsExpr:$}),eof:Ee("eof"),jsxName:Ee("jsxName"),jsxText:Ee("jsxText",{beforeExpr:N}),jsxTagStart:Ee("jsxTagStart",{startsExpr:$}),jsxTagEnd:Ee("jsxTagEnd")};function Ve(z){return z>=93&&z<=133}function Ze(z){return z<=92}function ut(z){return z>=58&&z<=133}function st(z){return z>=58&&z<=137}function dt(z){return H[z]}function $e(z){return ye[z]}function je(z){return z>=29&&z<=33}function qe(z){return z>=129&&z<=131}function Le(z){return z>=90&&z<=92}function gt(z){return z>=58&&z<=92}function ht(z){return z>=39&&z<=59}function xe(z){return z===34}function Se(z){return Ie[z]}function se(z){return z>=121&&z<=123}function ee(z){return z>=124&&z<=130}function oe(z){return U[z]}function W(z){return L[z]}function fe(z){return z===57}function Re(z){return z>=24&&z<=25}function Fe(z){return ae[z]}ae[8].updateContext=z=>{z.pop()},ae[5].updateContext=ae[7].updateContext=ae[23].updateContext=z=>{z.push(J.brace)},ae[22].updateContext=z=>{z[z.length-1]===J.template?z.pop():z.push(J.template)},ae[143].updateContext=z=>{z.push(J.j_expr,J.j_oTag)};let Ke="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",it="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const _t=new RegExp("["+Ke+"]"),Mt=new RegExp("["+Ke+it+"]");Ke=it=null;const pt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],xt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function te(z,l){let i=65536;for(let c=0,d=l.length;c<d;c+=2){if(i+=l[c],i>z)return!1;if(i+=l[c+1],i>=z)return!0}return!1}function de(z){return z<65?z===36:z<=90?!0:z<97?z===95:z<=122?!0:z<=65535?z>=170&&_t.test(String.fromCharCode(z)):te(z,pt)}function G(z){return z<48?z===36:z<58?!0:z<65?!1:z<=90?!0:z<97?z===95:z<=122?!0:z<=65535?z>=170&&Mt.test(String.fromCharCode(z)):te(z,pt)||te(z,xt)}const be={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},et=new Set(be.keyword),ge=new Set(be.strict),rt=new Set(be.strictBind);function yt(z,l){return l&&z==="await"||z==="enum"}function mt(z,l){return yt(z,l)||ge.has(z)}function Bt(z){return rt.has(z)}function Lt(z,l){return mt(z,l)||Bt(z)}function Vt(z){return et.has(z)}function Ht(z,l,i){return z===64&&l===64&&de(i)}const lr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function xr(z){return lr.has(z)}class Wt{constructor(l){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=l}}class tr{constructor(l,i){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=l,this.inModule=i}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const l=this.currentThisScopeFlags();return(l&64)>0&&(l&2)===0}get inStaticBlock(){for(let l=this.scopeStack.length-1;;l--){const{flags:i}=this.scopeStack[l];if(i&128)return!0;if(i&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(l){return new Wt(l)}enter(l){this.scopeStack.push(this.createScope(l))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(l){return!!(l.flags&130||!this.parser.inModule&&l.flags&1)}declareName(l,i,c){let d=this.currentScope();if(i&8||i&16){this.checkRedeclarationInScope(d,l,i,c);let A=d.names.get(l)||0;i&16?A=A|4:(d.firstLexicalName||(d.firstLexicalName=l),A=A|2),d.names.set(l,A),i&8&&this.maybeExportDefined(d,l)}else if(i&4)for(let A=this.scopeStack.length-1;A>=0&&(d=this.scopeStack[A],this.checkRedeclarationInScope(d,l,i,c),d.names.set(l,(d.names.get(l)||0)|1),this.maybeExportDefined(d,l),!(d.flags&1667));--A);this.parser.inModule&&d.flags&1&&this.undefinedExports.delete(l)}maybeExportDefined(l,i){this.parser.inModule&&l.flags&1&&this.undefinedExports.delete(i)}checkRedeclarationInScope(l,i,c,d){this.isRedeclaredInScope(l,i,c)&&this.parser.raise(T.VarRedeclaration,d,{identifierName:i})}isRedeclaredInScope(l,i,c){if(!(c&1))return!1;if(c&8)return l.names.has(i);const d=l.names.get(i)||0;return c&16?(d&2)>0||!this.treatFunctionsAsVarInScope(l)&&(d&1)>0:(d&2)>0&&!(l.flags&8&&l.firstLexicalName===i)||!this.treatFunctionsAsVarInScope(l)&&(d&4)>0}checkLocalExport(l){const{name:i}=l;this.scopeStack[0].names.has(i)||this.undefinedExports.set(i,l.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let l=this.scopeStack.length-1;;l--){const{flags:i}=this.scopeStack[l];if(i&1667)return i}}currentThisScopeFlags(){for(let l=this.scopeStack.length-1;;l--){const{flags:i}=this.scopeStack[l];if(i&1731&&!(i&4))return i}}}class pn extends Wt{constructor(...l){super(...l),this.declareFunctions=new Set}}class dn extends tr{createScope(l){return new pn(l)}declareName(l,i,c){const d=this.currentScope();if(i&2048){this.checkRedeclarationInScope(d,l,i,c),this.maybeExportDefined(d,l),d.declareFunctions.add(l);return}super.declareName(l,i,c)}isRedeclaredInScope(l,i,c){if(super.isRedeclaredInScope(l,i,c))return!0;if(c&2048&&!l.declareFunctions.has(i)){const d=l.names.get(i);return(d&4)>0||(d&2)>0}return!1}checkLocalExport(l){this.scopeStack[0].declareFunctions.has(l.name)||super.checkLocalExport(l)}}const Sr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Rt=C`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:z})=>`Cannot overwrite reserved type ${z}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:z,enumName:l})=>`Boolean enum members need to be initialized. Use either \`${z} = true,\` or \`${z} = false,\` in enum \`${l}\`.`,EnumDuplicateMemberName:({memberName:z,enumName:l})=>`Enum member names need to be unique, but the name \`${z}\` has already been used before in enum \`${l}\`.`,EnumInconsistentMemberValues:({enumName:z})=>`Enum \`${z}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:z,enumName:l})=>`Enum type \`${z}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${l}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:z})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${z}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:z,memberName:l,explicitType:i})=>`Enum \`${z}\` has type \`${i}\`, so the initializer of \`${l}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:z,memberName:l})=>`Symbol enum members cannot be initialized. Use \`${l},\` in enum \`${z}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:z,memberName:l})=>`The enum member initializer for \`${l}\` needs to be a literal (either a boolean, number, or string) in enum \`${z}\`.`,EnumInvalidMemberName:({enumName:z,memberName:l,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${l}\`, consider using \`${i}\`, in enum \`${z}\`.`,EnumNumberMemberNotInitialized:({enumName:z,memberName:l})=>`Number enum members need to be initialized, e.g. \`${l} = 1\` in enum \`${z}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:z})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${z}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:z})=>`Unexpected reserved type ${z}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:z,suggestion:l})=>`\`declare export ${z}\` is not supported. Use \`${l}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ui(z){return z.type==="DeclareExportAllDeclaration"||z.type==="DeclareExportDeclaration"&&(!z.declaration||z.declaration.type!=="TypeAlias"&&z.declaration.type!=="InterfaceDeclaration")}function Vr(z){return z.importKind==="type"||z.importKind==="typeof"}const tn={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Rr(z,l){const i=[],c=[];for(let d=0;d<z.length;d++)(l(z[d],d,z)?i:c).push(z[d]);return[i,c]}const jr=/\*?\s*@((?:no)?flow)\b/;var Dn=z=>class extends z{constructor(...i){super(...i),this.flowPragma=void 0}getScopeHandler(){return dn}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(i,c){i!==134&&i!==13&&i!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(i,c)}addComment(i){if(this.flowPragma===void 0){const c=jr.exec(i.value);if(c)if(c[1]==="flow")this.flowPragma="flow";else if(c[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(i)}flowParseTypeInitialiser(i){const c=this.state.inType;this.state.inType=!0,this.expect(i||14);const d=this.flowParseType();return this.state.inType=c,d}flowParsePredicate(){const i=this.startNode(),c=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>c.index+1&&this.raise(Rt.UnexpectedSpaceBetweenModuloChecks,c),this.eat(10)?(i.value=super.parseExpression(),this.expect(11),this.finishNode(i,"DeclaredPredicate")):this.finishNode(i,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const i=this.state.inType;this.state.inType=!0,this.expect(14);let c=null,d=null;return this.match(54)?(this.state.inType=i,d=this.flowParsePredicate()):(c=this.flowParseType(),this.state.inType=i,this.match(54)&&(d=this.flowParsePredicate())),[c,d]}flowParseDeclareClass(i){return this.next(),this.flowParseInterfaceish(i,!0),this.finishNode(i,"DeclareClass")}flowParseDeclareFunction(i){this.next();const c=i.id=this.parseIdentifier(),d=this.startNode(),A=this.startNode();this.match(47)?d.typeParameters=this.flowParseTypeParameterDeclaration():d.typeParameters=null,this.expect(10);const Q=this.flowParseFunctionTypeParams();return d.params=Q.params,d.rest=Q.rest,d.this=Q._this,this.expect(11),[d.returnType,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),A.typeAnnotation=this.finishNode(d,"FunctionTypeAnnotation"),c.typeAnnotation=this.finishNode(A,"TypeAnnotation"),this.resetEndLocation(c),this.semicolon(),this.scope.declareName(i.id.name,2048,i.id.loc.start),this.finishNode(i,"DeclareFunction")}flowParseDeclare(i,c){if(this.match(80))return this.flowParseDeclareClass(i);if(this.match(68))return this.flowParseDeclareFunction(i);if(this.match(74))return this.flowParseDeclareVariable(i);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(i):(c&&this.raise(Rt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(i));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(i);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(i);if(this.isContextual(129))return this.flowParseDeclareInterface(i);if(this.match(82))return this.flowParseDeclareExportDeclaration(i,c);throw this.unexpected()}flowParseDeclareVariable(i){return this.next(),i.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(i.id.name,5,i.id.loc.start),this.semicolon(),this.finishNode(i,"DeclareVariable")}flowParseDeclareModule(i){this.scope.enter(0),this.match(134)?i.id=super.parseExprAtom():i.id=this.parseIdentifier();const c=i.body=this.startNode(),d=c.body=[];for(this.expect(5);!this.match(8);){const le=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Rt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),d.push(super.parseImport(le))):(this.expectContextual(125,Rt.UnsupportedStatementInDeclareModule),d.push(this.flowParseDeclare(le,!0)))}this.scope.exit(),this.expect(8),this.finishNode(c,"BlockStatement");let A=null,Q=!1;return d.forEach(le=>{ui(le)?(A==="CommonJS"&&this.raise(Rt.AmbiguousDeclareModuleKind,le),A="ES"):le.type==="DeclareModuleExports"&&(Q&&this.raise(Rt.DuplicateDeclareModuleExports,le),A==="ES"&&this.raise(Rt.AmbiguousDeclareModuleKind,le),A="CommonJS",Q=!0)}),i.kind=A||"CommonJS",this.finishNode(i,"DeclareModule")}flowParseDeclareExportDeclaration(i,c){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?i.declaration=this.flowParseDeclare(this.startNode()):(i.declaration=this.flowParseType(),this.semicolon()),i.default=!0,this.finishNode(i,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!c){const d=this.state.value;throw this.raise(Rt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:d,suggestion:tn[d]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return i.declaration=this.flowParseDeclare(this.startNode()),i.default=!1,this.finishNode(i,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return i=this.parseExport(i,null),i.type==="ExportNamedDeclaration"?(i.default=!1,delete i.exportKind,this.castNodeTo(i,"DeclareExportDeclaration")):this.castNodeTo(i,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(i){return this.next(),this.expectContextual(111),i.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(i,"DeclareModuleExports")}flowParseDeclareTypeAlias(i){this.next();const c=this.flowParseTypeAlias(i);return this.castNodeTo(c,"DeclareTypeAlias"),c}flowParseDeclareOpaqueType(i){this.next();const c=this.flowParseOpaqueType(i,!0);return this.castNodeTo(c,"DeclareOpaqueType"),c}flowParseDeclareInterface(i){return this.next(),this.flowParseInterfaceish(i,!1),this.finishNode(i,"DeclareInterface")}flowParseInterfaceish(i,c){if(i.id=this.flowParseRestrictedIdentifier(!c,!0),this.scope.declareName(i.id.name,c?17:8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(!c&&this.eat(12));if(c){if(i.implements=[],i.mixins=[],this.eatContextual(117))do i.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do i.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}i.body=this.flowParseObjectType({allowStatic:c,allowExact:!1,allowSpread:!1,allowProto:c,allowInexact:!1})}flowParseInterfaceExtends(){const i=this.startNode();return i.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,this.finishNode(i,"InterfaceExtends")}flowParseInterface(i){return this.flowParseInterfaceish(i,!1),this.finishNode(i,"InterfaceDeclaration")}checkNotUnderscore(i){i==="_"&&this.raise(Rt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(i,c,d){Sr.has(i)&&this.raise(d?Rt.AssignReservedType:Rt.UnexpectedReservedType,c,{reservedType:i})}flowParseRestrictedIdentifierName(i,c){return this.checkReservedType(this.state.value,this.state.startLoc,c),this.parseIdentifierName(i)}flowParseRestrictedIdentifier(i,c){const d=this.startNode(),A=this.flowParseRestrictedIdentifierName(i,c);return this.createIdentifier(d,A)}flowParseTypeAlias(i){return i.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(i,"TypeAlias")}flowParseOpaqueType(i,c){return this.expectContextual(130),i.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.supertype=null,this.match(14)&&(i.supertype=this.flowParseTypeInitialiser(14)),i.impltype=null,c||(i.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(i,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){const i=this.startNode();return this.next(),i.typeAnnotation=this.flowParseType(),this.finishNode(i,"TypeAnnotation")}}flowParseTypeParameter(i=!1){const c=this.state.startLoc,d=this.startNode(),A=this.flowParseVariance();return d.name=this.flowParseRestrictedIdentifierName(),d.variance=A,d.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),d.default=this.flowParseType()):i&&this.raise(Rt.MissingTypeParamDefault,c),this.finishNode(d,"TypeParameter")}flowParseTypeParameterDeclaration(){const i=this.state.inType,c=this.startNode();c.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let d=!1;do{const A=this.flowParseTypeParameter(d);c.params.push(A),A.default&&(d=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=i,this.finishNode(c,"TypeParameterDeclaration")}flowInTopLevelContext(i){if(this.curContext()!==J.brace){const c=this.state.context;this.state.context=[c[0]];try{return i()}finally{this.state.context=c}}else return i()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const i=this.startNode(),c=this.state.inType;return this.state.inType=!0,i.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const d=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)i.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=d}),this.state.inType=c,!this.state.inType&&this.curContext()===J.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(i,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;const i=this.startNode(),c=this.state.inType;for(i.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)i.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=c,this.finishNode(i,"TypeParameterInstantiation")}flowParseInterfaceType(){const i=this.startNode();if(this.expectContextual(129),i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return i.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(i,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(i,c,d){return i.static=c,this.lookahead().type===14?(i.id=this.flowParseObjectPropertyKey(),i.key=this.flowParseTypeInitialiser()):(i.id=null,i.key=this.flowParseType()),this.expect(3),i.value=this.flowParseTypeInitialiser(),i.variance=d,this.finishNode(i,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(i,c){return i.static=c,i.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(i.method=!0,i.optional=!1,i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start))):(i.method=!1,this.eat(17)&&(i.optional=!0),i.value=this.flowParseTypeInitialiser()),this.finishNode(i,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(i){for(i.params=[],i.rest=null,i.typeParameters=null,i.this=null,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(i.this=this.flowParseFunctionTypeParam(!0),i.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),i.returnType=this.flowParseTypeInitialiser(),this.finishNode(i,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(i,c){const d=this.startNode();return i.static=c,i.value=this.flowParseObjectTypeMethodish(d),this.finishNode(i,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:i,allowExact:c,allowSpread:d,allowProto:A,allowInexact:Q}){const le=this.state.inType;this.state.inType=!0;const Pe=this.startNode();Pe.callProperties=[],Pe.properties=[],Pe.indexers=[],Pe.internalSlots=[];let Be,Ue,ct=!1;for(c&&this.match(6)?(this.expect(6),Be=9,Ue=!0):(this.expect(5),Be=8,Ue=!1),Pe.exact=Ue;!this.match(Be);){let wt=!1,Ot=null,Gt=null;const or=this.startNode();if(A&&this.isContextual(118)){const sr=this.lookahead();sr.type!==14&&sr.type!==17&&(this.next(),Ot=this.state.startLoc,i=!1)}if(i&&this.isContextual(106)){const sr=this.lookahead();sr.type!==14&&sr.type!==17&&(this.next(),wt=!0)}const Ft=this.flowParseVariance();if(this.eat(0))Ot!=null&&this.unexpected(Ot),this.eat(0)?(Ft&&this.unexpected(Ft.loc.start),Pe.internalSlots.push(this.flowParseObjectTypeInternalSlot(or,wt))):Pe.indexers.push(this.flowParseObjectTypeIndexer(or,wt,Ft));else if(this.match(10)||this.match(47))Ot!=null&&this.unexpected(Ot),Ft&&this.unexpected(Ft.loc.start),Pe.callProperties.push(this.flowParseObjectTypeCallProperty(or,wt));else{let sr="init";if(this.isContextual(99)||this.isContextual(104)){const an=this.lookahead();st(an.type)&&(sr=this.state.value,this.next())}const xn=this.flowParseObjectTypeProperty(or,wt,Ot,Ft,sr,d,Q??!Ue);xn===null?(ct=!0,Gt=this.state.lastTokStartLoc):Pe.properties.push(xn)}this.flowObjectTypeSemicolon(),Gt&&!this.match(8)&&!this.match(9)&&this.raise(Rt.UnexpectedExplicitInexactInObject,Gt)}this.expect(Be),d&&(Pe.inexact=ct);const vt=this.finishNode(Pe,"ObjectTypeAnnotation");return this.state.inType=le,vt}flowParseObjectTypeProperty(i,c,d,A,Q,le,Pe){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(le?Pe||this.raise(Rt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Rt.InexactInsideNonObject,this.state.lastTokStartLoc),A&&this.raise(Rt.InexactVariance,A),null):(le||this.raise(Rt.UnexpectedSpreadType,this.state.lastTokStartLoc),d!=null&&this.unexpected(d),A&&this.raise(Rt.SpreadVariance,A),i.argument=this.flowParseType(),this.finishNode(i,"ObjectTypeSpreadProperty"));{i.key=this.flowParseObjectPropertyKey(),i.static=c,i.proto=d!=null,i.kind=Q;let Be=!1;return this.match(47)||this.match(10)?(i.method=!0,d!=null&&this.unexpected(d),A&&this.unexpected(A.loc.start),i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start)),(Q==="get"||Q==="set")&&this.flowCheckGetterSetterParams(i),!le&&i.key.name==="constructor"&&i.value.this&&this.raise(Rt.ThisParamBannedInConstructor,i.value.this)):(Q!=="init"&&this.unexpected(),i.method=!1,this.eat(17)&&(Be=!0),i.value=this.flowParseTypeInitialiser(),i.variance=A),i.optional=Be,this.finishNode(i,"ObjectTypeProperty")}}flowCheckGetterSetterParams(i){const c=i.kind==="get"?0:1,d=i.value.params.length+(i.value.rest?1:0);i.value.this&&this.raise(i.kind==="get"?Rt.GetterMayNotHaveThisParam:Rt.SetterMayNotHaveThisParam,i.value.this),d!==c&&this.raise(i.kind==="get"?T.BadGetterArity:T.BadSetterArity,i),i.kind==="set"&&i.value.rest&&this.raise(T.BadSetterRestParameter,i)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(i,c){i??(i=this.state.startLoc);let d=c||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const A=this.startNodeAt(i);A.qualification=d,A.id=this.flowParseRestrictedIdentifier(!0),d=this.finishNode(A,"QualifiedTypeIdentifier")}return d}flowParseGenericType(i,c){const d=this.startNodeAt(i);return d.typeParameters=null,d.id=this.flowParseQualifiedTypeIdentifier(i,c),this.match(47)&&(d.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(d,"GenericTypeAnnotation")}flowParseTypeofType(){const i=this.startNode();return this.expect(87),i.argument=this.flowParsePrimaryType(),this.finishNode(i,"TypeofTypeAnnotation")}flowParseTupleType(){const i=this.startNode();for(i.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(i.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(i,"TupleTypeAnnotation")}flowParseFunctionTypeParam(i){let c=null,d=!1,A=null;const Q=this.startNode(),le=this.lookahead(),Pe=this.state.type===78;return le.type===14||le.type===17?(Pe&&!i&&this.raise(Rt.ThisParamMustBeFirst,Q),c=this.parseIdentifier(Pe),this.eat(17)&&(d=!0,Pe&&this.raise(Rt.ThisParamMayNotBeOptional,Q)),A=this.flowParseTypeInitialiser()):A=this.flowParseType(),Q.name=c,Q.optional=d,Q.typeAnnotation=A,this.finishNode(Q,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(i){const c=this.startNodeAt(i.loc.start);return c.name=null,c.optional=!1,c.typeAnnotation=i,this.finishNode(c,"FunctionTypeParam")}flowParseFunctionTypeParams(i=[]){let c=null,d=null;for(this.match(78)&&(d=this.flowParseFunctionTypeParam(!0),d.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(c=this.flowParseFunctionTypeParam(!1)),{params:i,rest:c,_this:d}}flowIdentToTypeAnnotation(i,c,d){switch(d.name){case"any":return this.finishNode(c,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(c,"BooleanTypeAnnotation");case"mixed":return this.finishNode(c,"MixedTypeAnnotation");case"empty":return this.finishNode(c,"EmptyTypeAnnotation");case"number":return this.finishNode(c,"NumberTypeAnnotation");case"string":return this.finishNode(c,"StringTypeAnnotation");case"symbol":return this.finishNode(c,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(d.name),this.flowParseGenericType(i,d)}}flowParsePrimaryType(){const i=this.state.startLoc,c=this.startNode();let d,A,Q=!1;const le=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,A=this.flowParseTupleType(),this.state.noAnonFunctionType=le,A;case 47:{const Pe=this.startNode();return Pe.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),d=this.flowParseFunctionTypeParams(),Pe.params=d.params,Pe.rest=d.rest,Pe.this=d._this,this.expect(11),this.expect(19),Pe.returnType=this.flowParseType(),this.finishNode(Pe,"FunctionTypeAnnotation")}case 10:{const Pe=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ve(this.state.type)||this.match(78)){const Be=this.lookahead().type;Q=Be!==17&&Be!==14}else Q=!0;if(Q){if(this.state.noAnonFunctionType=!1,A=this.flowParseType(),this.state.noAnonFunctionType=le,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),A;this.eat(12)}return A?d=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(A)]):d=this.flowParseFunctionTypeParams(),Pe.params=d.params,Pe.rest=d.rest,Pe.this=d._this,this.expect(11),this.expect(19),Pe.returnType=this.flowParseType(),Pe.typeParameters=null,this.finishNode(Pe,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return c.value=this.match(85),this.next(),this.finishNode(c,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",c);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",c);throw this.raise(Rt.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(c,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(c,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(c,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(c,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(gt(this.state.type)){const Pe=oe(this.state.type);return this.next(),super.createIdentifier(c,Pe)}else if(Ve(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(i,c,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const i=this.state.startLoc;let c=this.flowParsePrimaryType(),d=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const A=this.startNodeAt(i),Q=this.eat(18);d=d||Q,this.expect(0),!Q&&this.match(3)?(A.elementType=c,this.next(),c=this.finishNode(A,"ArrayTypeAnnotation")):(A.objectType=c,A.indexType=this.flowParseType(),this.expect(3),d?(A.optional=Q,c=this.finishNode(A,"OptionalIndexedAccessType")):c=this.finishNode(A,"IndexedAccessType"))}return c}flowParsePrefixType(){const i=this.startNode();return this.eat(17)?(i.typeAnnotation=this.flowParsePrefixType(),this.finishNode(i,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const i=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const c=this.startNodeAt(i.loc.start);return c.params=[this.reinterpretTypeAsFunctionTypeParam(i)],c.rest=null,c.this=null,c.returnType=this.flowParseType(),c.typeParameters=null,this.finishNode(c,"FunctionTypeAnnotation")}return i}flowParseIntersectionType(){const i=this.startNode();this.eat(45);const c=this.flowParseAnonFunctionWithoutParens();for(i.types=[c];this.eat(45);)i.types.push(this.flowParseAnonFunctionWithoutParens());return i.types.length===1?c:this.finishNode(i,"IntersectionTypeAnnotation")}flowParseUnionType(){const i=this.startNode();this.eat(43);const c=this.flowParseIntersectionType();for(i.types=[c];this.eat(43);)i.types.push(this.flowParseIntersectionType());return i.types.length===1?c:this.finishNode(i,"UnionTypeAnnotation")}flowParseType(){const i=this.state.inType;this.state.inType=!0;const c=this.flowParseUnionType();return this.state.inType=i,c}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const i=this.state.startLoc,c=this.parseIdentifier();return this.flowParseGenericType(i,c)}else return this.flowParseType()}flowParseTypeAnnotation(){const i=this.startNode();return i.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(i,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){const i=this.startNode(),c=this.parseIdentifierName();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(i,c)}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.loc.end),i.expression}flowParseVariance(){let i=null;return this.match(53)?(i=this.startNode(),this.state.value==="+"?i.kind="plus":i.kind="minus",this.next(),this.finishNode(i,"Variance")):i}parseFunctionBody(i,c,d=!1){if(c){this.forwardNoArrowParamsConversionAt(i,()=>super.parseFunctionBody(i,!0,d));return}super.parseFunctionBody(i,!1,d)}parseFunctionBodyAndFinish(i,c,d=!1){if(this.match(14)){const A=this.startNode();[A.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.returnType=A.typeAnnotation?this.finishNode(A,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(i,c,d)}parseStatementLike(i){if(this.state.strict&&this.isContextual(129)){const d=this.lookahead();if(ut(d.type)){const A=this.startNode();return this.next(),this.flowParseInterface(A)}}else if(this.isContextual(126)){const d=this.startNode();return this.next(),this.flowParseEnumDeclaration(d)}const c=super.parseStatementLike(i);return this.flowPragma===void 0&&!this.isValidDirective(c)&&(this.flowPragma=null),c}parseExpressionStatement(i,c,d){if(c.type==="Identifier"){if(c.name==="declare"){if(this.match(80)||Ve(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(i)}else if(Ve(this.state.type)){if(c.name==="interface")return this.flowParseInterface(i);if(c.name==="type")return this.flowParseTypeAlias(i);if(c.name==="opaque")return this.flowParseOpaqueType(i,!1)}}return super.parseExpressionStatement(i,c,d)}shouldParseExportDeclaration(){const{type:i}=this.state;return i===126||qe(i)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:i}=this.state;return i===126||qe(i)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}return super.parseExportDefaultExpression()}parseConditional(i,c,d){if(!this.match(17))return i;if(this.state.maybeInArrowParameters){const vt=this.lookaheadCharCode();if(vt===44||vt===61||vt===58||vt===41)return this.setOptionalParametersError(d),i}this.expect(17);const A=this.state.clone(),Q=this.state.noArrowAt,le=this.startNodeAt(c);let{consequent:Pe,failed:Be}=this.tryParseConditionalConsequent(),[Ue,ct]=this.getArrowLikeExpressions(Pe);if(Be||ct.length>0){const vt=[...Q];if(ct.length>0){this.state=A,this.state.noArrowAt=vt;for(let wt=0;wt<ct.length;wt++)vt.push(ct[wt].start);({consequent:Pe,failed:Be}=this.tryParseConditionalConsequent()),[Ue,ct]=this.getArrowLikeExpressions(Pe)}Be&&Ue.length>1&&this.raise(Rt.AmbiguousConditionalArrow,A.startLoc),Be&&Ue.length===1&&(this.state=A,vt.push(Ue[0].start),this.state.noArrowAt=vt,{consequent:Pe,failed:Be}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(Pe,!0),this.state.noArrowAt=Q,this.expect(14),le.test=i,le.consequent=Pe,le.alternate=this.forwardNoArrowParamsConversionAt(le,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(le,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const i=this.parseMaybeAssignAllowIn(),c=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:i,failed:c}}getArrowLikeExpressions(i,c){const d=[i],A=[];for(;d.length!==0;){const Q=d.pop();Q.type==="ArrowFunctionExpression"&&Q.body.type!=="BlockStatement"?(Q.typeParameters||!Q.returnType?this.finishArrowValidation(Q):A.push(Q),d.push(Q.body)):Q.type==="ConditionalExpression"&&(d.push(Q.consequent),d.push(Q.alternate))}return c?(A.forEach(Q=>this.finishArrowValidation(Q)),[A,[]]):Rr(A,Q=>Q.params.every(le=>this.isAssignable(le,!0)))}finishArrowValidation(i){var c;this.toAssignableList(i.params,(c=i.extra)==null?void 0:c.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(i,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(i,c){let d;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),d=c(),this.state.noArrowParamsConversionAt.pop()):d=c(),d}parseParenItem(i,c){const d=super.parseParenItem(i,c);if(this.eat(17)&&(d.optional=!0,this.resetEndLocation(i)),this.match(14)){const A=this.startNodeAt(c);return A.expression=d,A.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(A,"TypeCastExpression")}return d}assertModuleNodeAllowed(i){i.type==="ImportDeclaration"&&(i.importKind==="type"||i.importKind==="typeof")||i.type==="ExportNamedDeclaration"&&i.exportKind==="type"||i.type==="ExportAllDeclaration"&&i.exportKind==="type"||super.assertModuleNodeAllowed(i)}parseExportDeclaration(i){if(this.isContextual(130)){i.exportKind="type";const c=this.startNode();return this.next(),this.match(5)?(i.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(i),null):this.flowParseTypeAlias(c)}else if(this.isContextual(131)){i.exportKind="type";const c=this.startNode();return this.next(),this.flowParseOpaqueType(c,!1)}else if(this.isContextual(129)){i.exportKind="type";const c=this.startNode();return this.next(),this.flowParseInterface(c)}else if(this.isContextual(126)){i.exportKind="value";const c=this.startNode();return this.next(),this.flowParseEnumDeclaration(c)}else return super.parseExportDeclaration(i)}eatExportStar(i){return super.eatExportStar(i)?!0:this.isContextual(130)&&this.lookahead().type===55?(i.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(i){const{startLoc:c}=this.state,d=super.maybeParseExportNamespaceSpecifier(i);return d&&i.exportKind==="type"&&this.unexpected(c),d}parseClassId(i,c,d){super.parseClassId(i,c,d),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(i,c,d){const{startLoc:A}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(i,c))return;c.declare=!0}super.parseClassMember(i,c,d),c.declare&&(c.type!=="ClassProperty"&&c.type!=="ClassPrivateProperty"&&c.type!=="PropertyDefinition"?this.raise(Rt.DeclareClassElement,A):c.value&&this.raise(Rt.DeclareClassFieldInitializer,c.value))}isIterator(i){return i==="iterator"||i==="asyncIterator"}readIterator(){const i=super.readWord1(),c="@@"+i;(!this.isIterator(i)||!this.state.inType)&&this.raise(T.InvalidIdentifier,this.state.curPosition(),{identifierName:c}),this.finishToken(132,c)}getTokenFromCode(i){const c=this.input.charCodeAt(this.state.pos+1);i===123&&c===124?this.finishOp(6,2):this.state.inType&&(i===62||i===60)?this.finishOp(i===62?48:47,1):this.state.inType&&i===63?c===46?this.finishOp(18,2):this.finishOp(17,1):Ht(i,c,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(i)}isAssignable(i,c){return i.type==="TypeCastExpression"?this.isAssignable(i.expression,c):super.isAssignable(i,c)}toAssignable(i,c=!1){!c&&i.type==="AssignmentExpression"&&i.left.type==="TypeCastExpression"&&(i.left=this.typeCastToParameter(i.left)),super.toAssignable(i,c)}toAssignableList(i,c,d){for(let A=0;A<i.length;A++){const Q=i[A];(Q==null?void 0:Q.type)==="TypeCastExpression"&&(i[A]=this.typeCastToParameter(Q))}super.toAssignableList(i,c,d)}toReferencedList(i,c){for(let A=0;A<i.length;A++){var d;const Q=i[A];Q&&Q.type==="TypeCastExpression"&&!((d=Q.extra)!=null&&d.parenthesized)&&(i.length>1||!c)&&this.raise(Rt.TypeCastInPattern,Q.typeAnnotation)}return i}parseArrayLike(i,c,d){const A=super.parseArrayLike(i,c,d);return d!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(A.elements),A}isValidLVal(i,c,d,A){return i==="TypeCastExpression"||super.isValidLVal(i,c,d,A)}parseClassProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(i)}parseClassPrivateProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(i){return!this.match(14)&&super.isNonstaticConstructor(i)}pushClassMethod(i,c,d,A,Q,le){if(c.variance&&this.unexpected(c.variance.loc.start),delete c.variance,this.match(47)&&(c.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(i,c,d,A,Q,le),c.params&&Q){const Pe=c.params;Pe.length>0&&this.isThisParam(Pe[0])&&this.raise(Rt.ThisParamBannedInConstructor,c)}else if(c.type==="MethodDefinition"&&Q&&c.value.params){const Pe=c.value.params;Pe.length>0&&this.isThisParam(Pe[0])&&this.raise(Rt.ThisParamBannedInConstructor,c)}}pushClassPrivateMethod(i,c,d,A){c.variance&&this.unexpected(c.variance.loc.start),delete c.variance,this.match(47)&&(c.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(i,c,d,A)}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&(this.match(47)||this.match(51))&&(i.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const c=i.implements=[];do{const d=this.startNode();d.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?d.typeParameters=this.flowParseTypeParameterInstantiation():d.typeParameters=null,c.push(this.finishNode(d,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(i){super.checkGetterSetterParams(i);const c=this.getObjectOrClassMethodParams(i);if(c.length>0){const d=c[0];this.isThisParam(d)&&i.kind==="get"?this.raise(Rt.GetterMayNotHaveThisParam,d):this.isThisParam(d)&&this.raise(Rt.SetterMayNotHaveThisParam,d)}}parsePropertyNamePrefixOperator(i){i.variance=this.flowParseVariance()}parseObjPropValue(i,c,d,A,Q,le,Pe){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance;let Be;this.match(47)&&!le&&(Be=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const Ue=super.parseObjPropValue(i,c,d,A,Q,le,Pe);return Be&&((Ue.value||Ue).typeParameters=Be),Ue}parseFunctionParamType(i){return this.eat(17)&&(i.type!=="Identifier"&&this.raise(Rt.PatternIsOptional,i),this.isThisParam(i)&&this.raise(Rt.ThisParamMayNotBeOptional,i),i.optional=!0),this.match(14)?i.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(i)&&this.raise(Rt.ThisParamAnnotationRequired,i),this.match(29)&&this.isThisParam(i)&&this.raise(Rt.ThisParamNoDefault,i),this.resetEndLocation(i),i}parseMaybeDefault(i,c){const d=super.parseMaybeDefault(i,c);return d.type==="AssignmentPattern"&&d.typeAnnotation&&d.right.start<d.typeAnnotation.start&&this.raise(Rt.TypeBeforeInitializer,d.typeAnnotation),d}checkImportReflection(i){super.checkImportReflection(i),i.module&&i.importKind!=="value"&&this.raise(Rt.ImportReflectionHasImportType,i.specifiers[0].loc.start)}parseImportSpecifierLocal(i,c,d){c.local=Vr(i)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),i.specifiers.push(this.finishImportSpecifier(c,d))}isPotentialImportPhase(i){if(super.isPotentialImportPhase(i))return!0;if(this.isContextual(130)){if(!i)return!0;const c=this.lookaheadCharCode();return c===123||c===42}return!i&&this.isContextual(87)}applyImportPhase(i,c,d,A){if(super.applyImportPhase(i,c,d,A),c){if(!d&&this.match(65))return;i.exportKind=d==="type"?d:"value"}else d==="type"&&this.match(55)&&this.unexpected(),i.importKind=d==="type"||d==="typeof"?d:"value"}parseImportSpecifier(i,c,d,A,Q){const le=i.imported;let Pe=null;le.type==="Identifier"&&(le.name==="type"?Pe="type":le.name==="typeof"&&(Pe="typeof"));let Be=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const ct=this.parseIdentifier(!0);Pe!==null&&!ut(this.state.type)?(i.imported=ct,i.importKind=Pe,i.local=this.cloneIdentifier(ct)):(i.imported=le,i.importKind=null,i.local=this.parseIdentifier())}else{if(Pe!==null&&ut(this.state.type))i.imported=this.parseIdentifier(!0),i.importKind=Pe;else{if(c)throw this.raise(T.ImportBindingIsString,i,{importName:le.value});i.imported=le,i.importKind=null}this.eatContextual(93)?i.local=this.parseIdentifier():(Be=!0,i.local=this.cloneIdentifier(i.imported))}const Ue=Vr(i);return d&&Ue&&this.raise(Rt.ImportTypeShorthandOnlyInPureImport,i),(d||Ue)&&this.checkReservedType(i.local.name,i.local.loc.start,!0),Be&&!d&&!Ue&&this.checkReservedWord(i.local.name,i.loc.start,!0,!0),this.finishImportSpecifier(i,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(i,c){const d=i.kind;d!=="get"&&d!=="set"&&this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(i,c)}parseVarId(i,c){super.parseVarId(i,c),this.match(14)&&(i.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,c){if(this.match(14)){const d=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,i.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=d}return super.parseAsyncArrowFromCallExpression(i,c)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(i,c){var d;let A=null,Q;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(A=this.state.clone(),Q=this.tryParse(()=>super.parseMaybeAssign(i,c),A),!Q.error)return Q.node;const{context:Be}=this.state,Ue=Be[Be.length-1];(Ue===J.j_oTag||Ue===J.j_expr)&&Be.pop()}if((d=Q)!=null&&d.error||this.match(47)){var le,Pe;A=A||this.state.clone();let Be;const Ue=this.tryParse(vt=>{var wt;Be=this.flowParseTypeParameterDeclaration();const Ot=this.forwardNoArrowParamsConversionAt(Be,()=>{const or=super.parseMaybeAssign(i,c);return this.resetStartLocationFromNode(or,Be),or});(wt=Ot.extra)!=null&&wt.parenthesized&&vt();const Gt=this.maybeUnwrapTypeCastExpression(Ot);return Gt.type!=="ArrowFunctionExpression"&&vt(),Gt.typeParameters=Be,this.resetStartLocationFromNode(Gt,Be),Ot},A);let ct=null;if(Ue.node&&this.maybeUnwrapTypeCastExpression(Ue.node).type==="ArrowFunctionExpression"){if(!Ue.error&&!Ue.aborted)return Ue.node.async&&this.raise(Rt.UnexpectedTypeParameterBeforeAsyncArrowFunction,Be),Ue.node;ct=Ue.node}if((le=Q)!=null&&le.node)return this.state=Q.failState,Q.node;if(ct)return this.state=Ue.failState,ct;throw(Pe=Q)!=null&&Pe.thrown?Q.error:Ue.thrown?Ue.error:this.raise(Rt.UnexpectedTokenAfterTypeParameter,Be)}return super.parseMaybeAssign(i,c)}parseArrow(i){if(this.match(14)){const c=this.tryParse(()=>{const d=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const A=this.startNode();return[A.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=d,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),A});if(c.thrown)return null;c.error&&(this.state=c.failState),i.returnType=c.node.typeAnnotation?this.finishNode(c.node,"TypeAnnotation"):null}return super.parseArrow(i)}shouldParseArrow(i){return this.match(14)||super.shouldParseArrow(i)}setArrowFunctionParameters(i,c){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?i.params=c:super.setArrowFunctionParameters(i,c)}checkParams(i,c,d,A=!0){if(!(d&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start)))){for(let Q=0;Q<i.params.length;Q++)this.isThisParam(i.params[Q])&&Q>0&&this.raise(Rt.ThisParamMustBeFirst,i.params[Q]);super.checkParams(i,c,d,A)}}parseParenAndDistinguishExpression(i){return super.parseParenAndDistinguishExpression(i&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(i,c,d){if(i.type==="Identifier"&&i.name==="async"&&this.state.noArrowAt.includes(c.index)){this.next();const A=this.startNodeAt(c);A.callee=i,A.arguments=super.parseCallExpressionArguments(),i=this.finishNode(A,"CallExpression")}else if(i.type==="Identifier"&&i.name==="async"&&this.match(47)){const A=this.state.clone(),Q=this.tryParse(Pe=>this.parseAsyncArrowWithTypeParameters(c)||Pe(),A);if(!Q.error&&!Q.aborted)return Q.node;const le=this.tryParse(()=>super.parseSubscripts(i,c,d),A);if(le.node&&!le.error)return le.node;if(Q.node)return this.state=Q.failState,Q.node;if(le.node)return this.state=le.failState,le.node;throw Q.error||le.error}return super.parseSubscripts(i,c,d)}parseSubscript(i,c,d,A){if(this.match(18)&&this.isLookaheadToken_lt()){if(A.optionalChainMember=!0,d)return A.stop=!0,i;this.next();const Q=this.startNodeAt(c);return Q.callee=i,Q.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),Q.arguments=this.parseCallExpressionArguments(),Q.optional=!0,this.finishCallExpression(Q,!0)}else if(!d&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const Q=this.startNodeAt(c);Q.callee=i;const le=this.tryParse(()=>(Q.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Q.arguments=super.parseCallExpressionArguments(),A.optionalChainMember&&(Q.optional=!1),this.finishCallExpression(Q,A.optionalChainMember)));if(le.node)return le.error&&(this.state=le.failState),le.node}return super.parseSubscript(i,c,d,A)}parseNewCallee(i){super.parseNewCallee(i);let c=null;this.shouldParseTypes()&&this.match(47)&&(c=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),i.typeArguments=c}parseAsyncArrowWithTypeParameters(i){const c=this.startNodeAt(i);if(this.parseFunctionParams(c,!1),!!this.parseArrow(c))return super.parseArrowExpression(c,void 0,!0)}readToken_mult_modulo(i){const c=this.input.charCodeAt(this.state.pos+1);if(i===42&&c===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(i)}readToken_pipe_amp(i){const c=this.input.charCodeAt(this.state.pos+1);if(i===124&&c===125){this.finishOp(9,2);return}super.readToken_pipe_amp(i)}parseTopLevel(i,c){const d=super.parseTopLevel(i,c);return this.state.hasFlowComment&&this.raise(Rt.UnterminatedFlowComment,this.state.curPosition()),d}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Rt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const i=this.skipFlowComment();i&&(this.state.pos+=i,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:i}=this.state;let c=2;for(;[32,9].includes(this.input.charCodeAt(i+c));)c++;const d=this.input.charCodeAt(c+i),A=this.input.charCodeAt(c+i+1);return d===58&&A===58?c+2:this.input.slice(c+i,c+i+12)==="flow-include"?c+12:d===58&&A!==58?c:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(T.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(i,{enumName:c,memberName:d}){this.raise(Rt.EnumBooleanMemberNotInitialized,i,{memberName:d,enumName:c})}flowEnumErrorInvalidMemberInitializer(i,c){return this.raise(c.explicitType?c.explicitType==="symbol"?Rt.EnumInvalidMemberInitializerSymbolType:Rt.EnumInvalidMemberInitializerPrimaryType:Rt.EnumInvalidMemberInitializerUnknownType,i,c)}flowEnumErrorNumberMemberNotInitialized(i,c){this.raise(Rt.EnumNumberMemberNotInitialized,i,c)}flowEnumErrorStringMemberInconsistentlyInitialized(i,c){this.raise(Rt.EnumStringMemberInconsistentlyInitialized,i,c)}flowEnumMemberInit(){const i=this.state.startLoc,c=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const d=this.parseNumericLiteral(this.state.value);return c()?{type:"number",loc:d.loc.start,value:d}:{type:"invalid",loc:i}}case 134:{const d=this.parseStringLiteral(this.state.value);return c()?{type:"string",loc:d.loc.start,value:d}:{type:"invalid",loc:i}}case 85:case 86:{const d=this.parseBooleanLiteral(this.match(85));return c()?{type:"boolean",loc:d.loc.start,value:d}:{type:"invalid",loc:i}}default:return{type:"invalid",loc:i}}}flowEnumMemberRaw(){const i=this.state.startLoc,c=this.parseIdentifier(!0),d=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:i};return{id:c,init:d}}flowEnumCheckExplicitTypeMismatch(i,c,d){const{explicitType:A}=c;A!==null&&A!==d&&this.flowEnumErrorInvalidMemberInitializer(i,c)}flowEnumMembers({enumName:i,explicitType:c}){const d=new Set,A={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let Q=!1;for(;!this.match(8);){if(this.eat(21)){Q=!0;break}const le=this.startNode(),{id:Pe,init:Be}=this.flowEnumMemberRaw(),Ue=Pe.name;if(Ue==="")continue;/^[a-z]/.test(Ue)&&this.raise(Rt.EnumInvalidMemberName,Pe,{memberName:Ue,suggestion:Ue[0].toUpperCase()+Ue.slice(1),enumName:i}),d.has(Ue)&&this.raise(Rt.EnumDuplicateMemberName,Pe,{memberName:Ue,enumName:i}),d.add(Ue);const ct={enumName:i,explicitType:c,memberName:Ue};switch(le.id=Pe,Be.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(Be.loc,ct,"boolean"),le.init=Be.value,A.booleanMembers.push(this.finishNode(le,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(Be.loc,ct,"number"),le.init=Be.value,A.numberMembers.push(this.finishNode(le,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(Be.loc,ct,"string"),le.init=Be.value,A.stringMembers.push(this.finishNode(le,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Be.loc,ct);case"none":switch(c){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Be.loc,ct);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Be.loc,ct);break;default:A.defaultedMembers.push(this.finishNode(le,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:A,hasUnknownMembers:Q}}flowEnumStringMembers(i,c,{enumName:d}){if(i.length===0)return c;if(c.length===0)return i;if(c.length>i.length){for(const A of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(A,{enumName:d});return c}else{for(const A of c)this.flowEnumErrorStringMemberInconsistentlyInitialized(A,{enumName:d});return i}}flowEnumParseExplicitType({enumName:i}){if(!this.eatContextual(102))return null;if(!Ve(this.state.type))throw this.raise(Rt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:i});const{value:c}=this.state;return this.next(),c!=="boolean"&&c!=="number"&&c!=="string"&&c!=="symbol"&&this.raise(Rt.EnumInvalidExplicitType,this.state.startLoc,{enumName:i,invalidEnumType:c}),c}flowEnumBody(i,c){const d=c.name,A=c.loc.start,Q=this.flowEnumParseExplicitType({enumName:d});this.expect(5);const{members:le,hasUnknownMembers:Pe}=this.flowEnumMembers({enumName:d,explicitType:Q});switch(i.hasUnknownMembers=Pe,Q){case"boolean":return i.explicitType=!0,i.members=le.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody");case"number":return i.explicitType=!0,i.members=le.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody");case"string":return i.explicitType=!0,i.members=this.flowEnumStringMembers(le.stringMembers,le.defaultedMembers,{enumName:d}),this.expect(8),this.finishNode(i,"EnumStringBody");case"symbol":return i.members=le.defaultedMembers,this.expect(8),this.finishNode(i,"EnumSymbolBody");default:{const Be=()=>(i.members=[],this.expect(8),this.finishNode(i,"EnumStringBody"));i.explicitType=!1;const Ue=le.booleanMembers.length,ct=le.numberMembers.length,vt=le.stringMembers.length,wt=le.defaultedMembers.length;if(!Ue&&!ct&&!vt&&!wt)return Be();if(!Ue&&!ct)return i.members=this.flowEnumStringMembers(le.stringMembers,le.defaultedMembers,{enumName:d}),this.expect(8),this.finishNode(i,"EnumStringBody");if(!ct&&!vt&&Ue>=wt){for(const Ot of le.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Ot.loc.start,{enumName:d,memberName:Ot.id.name});return i.members=le.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody")}else if(!Ue&&!vt&&ct>=wt){for(const Ot of le.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Ot.loc.start,{enumName:d,memberName:Ot.id.name});return i.members=le.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody")}else return this.raise(Rt.EnumInconsistentMemberValues,A,{enumName:d}),Be()}}}flowParseEnumDeclaration(i){const c=this.parseIdentifier();return i.id=c,i.body=this.flowEnumBody(this.startNode(),c),this.finishNode(i,"EnumDeclaration")}jsxParseOpeningElementAfterName(i){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(i.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(i)}isLookaheadToken_lt(){const i=this.nextTokenStart();if(this.input.charCodeAt(i)===60){const c=this.input.charCodeAt(i+1);return c!==60&&c!==61}return!1}reScan_lt_gt(){const{type:i}=this.state;i===47?(this.state.pos-=1,this.readToken_lt()):i===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:i}=this.state;return i===51?(this.state.pos-=2,this.finishOp(47,1),47):i}maybeUnwrapTypeCastExpression(i){return i.type==="TypeCastExpression"?i.expression:i}};const Kr={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Hn=/\r\n|[\r\n\u2028\u2029]/,Nr=new RegExp(Hn.source,"g");function An(z){switch(z){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function fi(z,l,i){for(let c=l;c<i;c++)if(An(z.charCodeAt(c)))return!0;return!1}const dr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,rn=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function nn(z){switch(z){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const hn=C`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:z})=>`Expected corresponding JSX closing tag for <${z}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:z,HTMLEntity:l})=>`Unexpected token \`${z}\`. Did you mean \`${l}\` or \`{'${z}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Wr(z){return z?z.type==="JSXOpeningFragment"||z.type==="JSXClosingFragment":!1}function yn(z){if(z.type==="JSXIdentifier")return z.name;if(z.type==="JSXNamespacedName")return z.namespace.name+":"+z.name.name;if(z.type==="JSXMemberExpression")return yn(z.object)+"."+yn(z.property);throw new Error("Node had unexpected type: "+z.type)}var Ri=z=>class extends z{jsxReadToken(){let i="",c=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(hn.UnterminatedJsxContent,this.state.startLoc);const d=this.input.charCodeAt(this.state.pos);switch(d){case 60:case 123:if(this.state.pos===this.state.start){d===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(d);return}i+=this.input.slice(c,this.state.pos),this.finishToken(142,i);return;case 38:i+=this.input.slice(c,this.state.pos),i+=this.jsxReadEntity(),c=this.state.pos;break;case 62:case 125:default:An(d)?(i+=this.input.slice(c,this.state.pos),i+=this.jsxReadNewLine(!0),c=this.state.pos):++this.state.pos}}}jsxReadNewLine(i){const c=this.input.charCodeAt(this.state.pos);let d;return++this.state.pos,c===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,d=i?`
27
+ - Did you mean \`import { "${z}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:z})=>`Expected number in radix ${z}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:z})=>`Escape sequence in keyword ${z}.`,InvalidIdentifier:({identifierName:z})=>`Invalid identifier ${z}.`,InvalidLhs:({ancestor:z})=>`Invalid left-hand side in ${u(z)}.`,InvalidLhsBinding:({ancestor:z})=>`Binding invalid left-hand side in ${u(z)}.`,InvalidLhsOptionalChaining:({ancestor:z})=>`Invalid optional chaining in the left-hand side of ${u(z)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:z})=>`Unexpected character '${z}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:z})=>`Private name #${z} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:z})=>`Label '${z}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:z})=>`This experimental syntax requires enabling the parser plugin: ${z.map(l=>JSON.stringify(l)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:z})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${z.map(l=>JSON.stringify(l)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:z})=>`Duplicate key "${z}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:z})=>`An export name cannot include a lone surrogate, found '\\u${z.toString(16)}'.`,ModuleExportUndefined:({localName:z})=>`Export '${z}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:z})=>`Private names are only allowed in property accesses (\`obj.#${z}\`) or in \`in\` expressions (\`#${z} in obj\`).`,PrivateNameRedeclaration:({identifierName:z})=>`Duplicate private name #${z}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:z})=>`Unexpected keyword '${z}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:z})=>`Unexpected reserved word '${z}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:z,unexpected:l})=>`Unexpected token${l?` '${l}'.`:""}${z?`, expected "${z}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:z,onlyValidPropertyName:l})=>`The only valid meta property for ${z} is ${z}.${l}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:z})=>`Identifier '${z}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},y={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:z})=>`Assigning to '${z}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:z})=>`Binding '${z}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},h={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:z})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(z)}\`.`};const g=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var b=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:z})=>`Invalid topic token ${z}. In order to use ${z} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${z}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:z})=>`Hack-style pipe body cannot be an unparenthesized ${u({type:z})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),S={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."};const O=["message"];function _(z,l,i){Object.defineProperty(z,l,{enumerable:!1,configurable:!0,value:i})}function w({toMessage:z,code:l,reasonCode:i,syntaxPlugin:c}){const d=i==="MissingPlugin"||i==="MissingOneOfPlugins",A={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return A[i]&&(i=A[i]),function Q(le,Pe){const Be=new SyntaxError;return Be.code=l,Be.reasonCode=i,Be.loc=le,Be.pos=le.index,Be.syntaxPlugin=c,d&&(Be.missingPlugin=Pe.missingPlugin),_(Be,"clone",function(ct={}){var vt;const{line:wt,column:Ot,index:Gt}=(vt=ct.loc)!=null?vt:le;return Q(new e(wt,Ot,Gt),Object.assign({},Pe,ct.details))}),_(Be,"details",Pe),Object.defineProperty(Be,"message",{configurable:!0,get(){const Ue=`${z(Pe)} (${le.line}:${le.column})`;return this.message=Ue,Ue},set(Ue){Object.defineProperty(this,"message",{value:Ue,writable:!0})}}),Be}}function C(z,l){if(Array.isArray(z))return c=>C(c,z[0]);const i={};for(const c of Object.keys(z)){const d=z[c],A=typeof d=="string"?{message:()=>d}:typeof d=="function"?{message:d}:d,{message:Q}=A,le=t(A,O),Pe=typeof Q=="string"?()=>Q:Q;i[c]=w(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:c,toMessage:Pe},l?{syntaxPlugin:l}:{},le))}return i}const T=Object.assign({},C(o),C(p),C(y),C(h),C`pipelineOperator`(b),C`functionBind`(S));function x(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function E(z){const l=x();if(z==null)return l;if(z.annexB!=null&&z.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(const i of Object.keys(l))z[i]!=null&&(l[i]=z[i]);if(l.startLine===1)z.startIndex==null&&l.startColumn>0?l.startIndex=l.startColumn:z.startColumn==null&&l.startIndex>0&&(l.startColumn=l.startIndex);else if((z.startColumn==null||z.startIndex==null)&&z.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(l.sourceType==="commonjs"){if(z.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(z.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(z.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return l}const{defineProperty:j}=Object,R=(z,l)=>{z&&j(z,l,{enumerable:!1,value:z[l]})};function I(z){return R(z.loc.start,"index"),R(z.loc.end,"index"),z}var D=z=>class extends z{parse(){const i=I(super.parse());return this.optionFlags&256&&(i.tokens=i.tokens.map(I)),i}parseRegExpLiteral({pattern:i,flags:c}){let d=null;try{d=new RegExp(i,c)}catch{}const A=this.estreeParseLiteral(d);return A.regex={pattern:i,flags:c},A}parseBigIntLiteral(i){let c;try{c=BigInt(i)}catch{c=null}const d=this.estreeParseLiteral(c);return d.bigint=String(d.value||i),d}parseDecimalLiteral(i){const d=this.estreeParseLiteral(null);return d.decimal=String(d.value||i),d}estreeParseLiteral(i){return this.parseLiteral(i,"Literal")}parseStringLiteral(i){return this.estreeParseLiteral(i)}parseNumericLiteral(i){return this.estreeParseLiteral(i)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(i){return this.estreeParseLiteral(i)}estreeParseChainExpression(i,c){const d=this.startNodeAtNode(i);return d.expression=i,this.finishNodeAt(d,"ChainExpression",c)}directiveToStmt(i){const c=i.value;delete i.value,this.castNodeTo(c,"Literal"),c.raw=c.extra.raw,c.value=c.extra.expressionValue;const d=this.castNodeTo(i,"ExpressionStatement");return d.expression=c,d.directive=c.extra.rawValue,delete c.extra,d}fillOptionalPropertiesForTSESLint(i){}cloneEstreeStringLiteral(i){const{start:c,end:d,loc:A,range:Q,raw:le,value:Pe}=i,Be=Object.create(i.constructor.prototype);return Be.type="Literal",Be.start=c,Be.end=d,Be.loc=A,Be.range=Q,Be.raw=le,Be.value=Pe,Be}initFunction(i,c){super.initFunction(i,c),i.expression=!1}checkDeclaration(i){i!=null&&this.isObjectProperty(i)?this.checkDeclaration(i.value):super.checkDeclaration(i)}getObjectOrClassMethodParams(i){return i.value.params}isValidDirective(i){var c;return i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&!((c=i.expression.extra)!=null&&c.parenthesized)}parseBlockBody(i,c,d,A,Q){super.parseBlockBody(i,c,d,A,Q);const le=i.directives.map(Pe=>this.directiveToStmt(Pe));i.body=le.concat(i.body),delete i.directives}parsePrivateName(){const i=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(i):i}convertPrivateNameToPrivateIdentifier(i){const c=super.getPrivateNameSV(i);return delete i.id,i.name=c,this.castNodeTo(i,"PrivateIdentifier")}isPrivateName(i){return this.getPluginOption("estree","classFeatures")?i.type==="PrivateIdentifier":super.isPrivateName(i)}getPrivateNameSV(i){return this.getPluginOption("estree","classFeatures")?i.name:super.getPrivateNameSV(i)}parseLiteral(i,c){const d=super.parseLiteral(i,c);return d.raw=d.extra.raw,delete d.extra,d}parseFunctionBody(i,c,d=!1){super.parseFunctionBody(i,c,d),i.expression=i.body.type!=="BlockStatement"}parseMethod(i,c,d,A,Q,le,Pe=!1){let Be=this.startNode();Be.kind=i.kind,Be=super.parseMethod(Be,c,d,A,Q,le,Pe),delete Be.kind;const{typeParameters:Ue}=i;Ue&&(delete i.typeParameters,Be.typeParameters=Ue,this.resetStartLocationFromNode(Be,Ue));const ct=this.castNodeTo(Be,"FunctionExpression");return i.value=ct,le==="ClassPrivateMethod"&&(i.computed=!1),le==="ObjectMethod"?(i.kind==="method"&&(i.kind="init"),i.shorthand=!1,this.finishNode(i,"Property")):this.finishNode(i,"MethodDefinition")}nameIsConstructor(i){return i.type==="Literal"?i.value==="constructor":super.nameIsConstructor(i)}parseClassProperty(...i){const c=super.parseClassProperty(...i);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(c,"PropertyDefinition"),c}parseClassPrivateProperty(...i){const c=super.parseClassPrivateProperty(...i);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(c,"PropertyDefinition"),c.computed=!1),c}parseClassAccessorProperty(i){const c=super.parseClassAccessorProperty(i);return this.getPluginOption("estree","classFeatures")&&(c.abstract&&this.hasPlugin("typescript")?(delete c.abstract,this.castNodeTo(c,"TSAbstractAccessorProperty")):this.castNodeTo(c,"AccessorProperty")),c}parseObjectProperty(i,c,d,A){const Q=super.parseObjectProperty(i,c,d,A);return Q&&(Q.kind="init",this.castNodeTo(Q,"Property")),Q}finishObjectProperty(i){return i.kind="init",this.finishNode(i,"Property")}isValidLVal(i,c,d,A){return i==="Property"?"value":super.isValidLVal(i,c,d,A)}isAssignable(i,c){return i!=null&&this.isObjectProperty(i)?this.isAssignable(i.value,c):super.isAssignable(i,c)}toAssignable(i,c=!1){if(i!=null&&this.isObjectProperty(i)){const{key:d,value:A}=i;this.isPrivateName(d)&&this.classScope.usePrivateName(this.getPrivateNameSV(d),d.loc.start),this.toAssignable(A,c)}else super.toAssignable(i,c)}toAssignableObjectExpressionProp(i,c,d){i.type==="Property"&&(i.kind==="get"||i.kind==="set")?this.raise(T.PatternHasAccessor,i.key):i.type==="Property"&&i.method?this.raise(T.PatternHasMethod,i.key):super.toAssignableObjectExpressionProp(i,c,d)}finishCallExpression(i,c){const d=super.finishCallExpression(i,c);if(d.callee.type==="Import"){var A,Q;this.castNodeTo(d,"ImportExpression"),d.source=d.arguments[0],d.options=(A=d.arguments[1])!=null?A:null,d.attributes=(Q=d.arguments[1])!=null?Q:null,delete d.arguments,delete d.callee}else d.type==="OptionalCallExpression"?this.castNodeTo(d,"CallExpression"):d.optional=!1;return d}toReferencedArguments(i){i.type!=="ImportExpression"&&super.toReferencedArguments(i)}parseExport(i,c){const d=this.state.lastTokStartLoc,A=super.parseExport(i,c);switch(A.type){case"ExportAllDeclaration":A.exported=null;break;case"ExportNamedDeclaration":A.specifiers.length===1&&A.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(A,"ExportAllDeclaration"),A.exported=A.specifiers[0].exported,delete A.specifiers);case"ExportDefaultDeclaration":{var Q;const{declaration:le}=A;(le==null?void 0:le.type)==="ClassDeclaration"&&((Q=le.decorators)==null?void 0:Q.length)>0&&le.start===A.start&&this.resetStartLocation(A,d)}break}return A}stopParseSubscript(i,c){const d=super.stopParseSubscript(i,c);return c.optionalChainMember?this.estreeParseChainExpression(d,i.loc.end):d}parseMember(i,c,d,A,Q){const le=super.parseMember(i,c,d,A,Q);return le.type==="OptionalMemberExpression"?this.castNodeTo(le,"MemberExpression"):le.optional=!1,le}isOptionalMemberExpression(i){return i.type==="ChainExpression"?i.expression.type==="MemberExpression":super.isOptionalMemberExpression(i)}hasPropertyAsPrivateName(i){return i.type==="ChainExpression"&&(i=i.expression),super.hasPropertyAsPrivateName(i)}isObjectProperty(i){return i.type==="Property"&&i.kind==="init"&&!i.method}isObjectMethod(i){return i.type==="Property"&&(i.method||i.kind==="get"||i.kind==="set")}castNodeTo(i,c){const d=super.castNodeTo(i,c);return this.fillOptionalPropertiesForTSESLint(d),d}cloneIdentifier(i){const c=super.cloneIdentifier(i);return this.fillOptionalPropertiesForTSESLint(c),c}cloneStringLiteral(i){return i.type==="Literal"?this.cloneEstreeStringLiteral(i):super.cloneStringLiteral(i)}finishNodeAt(i,c,d){return I(super.finishNodeAt(i,c,d))}finishNode(i,c){const d=super.finishNode(i,c);return this.fillOptionalPropertiesForTSESLint(d),d}resetStartLocation(i,c){super.resetStartLocation(i,c),I(i)}resetEndLocation(i,c=this.state.lastTokEndLoc){super.resetEndLocation(i,c),I(i)}};class Z{constructor(l,i){this.token=void 0,this.preserveSpace=void 0,this.token=l,this.preserveSpace=!!i}}const J={brace:new Z("{"),j_oTag:new Z("<tag"),j_cTag:new Z("</tag"),j_expr:new Z("<tag>...</tag>",!0)};J.template=new Z("`",!0);const N=!0,$=!0,ne=!0,me=!0,Ce=!0,Ae=!0;class ce{constructor(l,i={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=l,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}}const ue=new Map;function K(z,l={}){l.keyword=z;const i=Ee(z,l);return ue.set(z,i),i}function Y(z,l){return Ee(z,{beforeExpr:N,binop:l})}let he=-1;const ae=[],U=[],L=[],H=[],ye=[],Ie=[];function Ee(z,l={}){var i,c,d,A;return++he,U.push(z),L.push((i=l.binop)!=null?i:-1),H.push((c=l.beforeExpr)!=null?c:!1),ye.push((d=l.startsExpr)!=null?d:!1),Ie.push((A=l.prefix)!=null?A:!1),ae.push(new ce(z,l)),he}function De(z,l={}){var i,c,d,A;return++he,ue.set(z,he),U.push(z),L.push((i=l.binop)!=null?i:-1),H.push((c=l.beforeExpr)!=null?c:!1),ye.push((d=l.startsExpr)!=null?d:!1),Ie.push((A=l.prefix)!=null?A:!1),ae.push(new ce("name",l)),he}const Me={bracketL:Ee("[",{beforeExpr:N,startsExpr:$}),bracketHashL:Ee("#[",{beforeExpr:N,startsExpr:$}),bracketBarL:Ee("[|",{beforeExpr:N,startsExpr:$}),bracketR:Ee("]"),bracketBarR:Ee("|]"),braceL:Ee("{",{beforeExpr:N,startsExpr:$}),braceBarL:Ee("{|",{beforeExpr:N,startsExpr:$}),braceHashL:Ee("#{",{beforeExpr:N,startsExpr:$}),braceR:Ee("}"),braceBarR:Ee("|}"),parenL:Ee("(",{beforeExpr:N,startsExpr:$}),parenR:Ee(")"),comma:Ee(",",{beforeExpr:N}),semi:Ee(";",{beforeExpr:N}),colon:Ee(":",{beforeExpr:N}),doubleColon:Ee("::",{beforeExpr:N}),dot:Ee("."),question:Ee("?",{beforeExpr:N}),questionDot:Ee("?."),arrow:Ee("=>",{beforeExpr:N}),template:Ee("template"),ellipsis:Ee("...",{beforeExpr:N}),backQuote:Ee("`",{startsExpr:$}),dollarBraceL:Ee("${",{beforeExpr:N,startsExpr:$}),templateTail:Ee("...`",{startsExpr:$}),templateNonTail:Ee("...${",{beforeExpr:N,startsExpr:$}),at:Ee("@"),hash:Ee("#",{startsExpr:$}),interpreterDirective:Ee("#!..."),eq:Ee("=",{beforeExpr:N,isAssign:me}),assign:Ee("_=",{beforeExpr:N,isAssign:me}),slashAssign:Ee("_=",{beforeExpr:N,isAssign:me}),xorAssign:Ee("_=",{beforeExpr:N,isAssign:me}),moduloAssign:Ee("_=",{beforeExpr:N,isAssign:me}),incDec:Ee("++/--",{prefix:Ce,postfix:Ae,startsExpr:$}),bang:Ee("!",{beforeExpr:N,prefix:Ce,startsExpr:$}),tilde:Ee("~",{beforeExpr:N,prefix:Ce,startsExpr:$}),doubleCaret:Ee("^^",{startsExpr:$}),doubleAt:Ee("@@",{startsExpr:$}),pipeline:Y("|>",0),nullishCoalescing:Y("??",1),logicalOR:Y("||",1),logicalAND:Y("&&",2),bitwiseOR:Y("|",3),bitwiseXOR:Y("^",4),bitwiseAND:Y("&",5),equality:Y("==/!=/===/!==",6),lt:Y("</>/<=/>=",7),gt:Y("</>/<=/>=",7),relational:Y("</>/<=/>=",7),bitShift:Y("<</>>/>>>",8),bitShiftL:Y("<</>>/>>>",8),bitShiftR:Y("<</>>/>>>",8),plusMin:Ee("+/-",{beforeExpr:N,binop:9,prefix:Ce,startsExpr:$}),modulo:Ee("%",{binop:10,startsExpr:$}),star:Ee("*",{binop:10}),slash:Y("/",10),exponent:Ee("**",{beforeExpr:N,binop:11,rightAssociative:!0}),_in:K("in",{beforeExpr:N,binop:7}),_instanceof:K("instanceof",{beforeExpr:N,binop:7}),_break:K("break"),_case:K("case",{beforeExpr:N}),_catch:K("catch"),_continue:K("continue"),_debugger:K("debugger"),_default:K("default",{beforeExpr:N}),_else:K("else",{beforeExpr:N}),_finally:K("finally"),_function:K("function",{startsExpr:$}),_if:K("if"),_return:K("return",{beforeExpr:N}),_switch:K("switch"),_throw:K("throw",{beforeExpr:N,prefix:Ce,startsExpr:$}),_try:K("try"),_var:K("var"),_const:K("const"),_with:K("with"),_new:K("new",{beforeExpr:N,startsExpr:$}),_this:K("this",{startsExpr:$}),_super:K("super",{startsExpr:$}),_class:K("class",{startsExpr:$}),_extends:K("extends",{beforeExpr:N}),_export:K("export"),_import:K("import",{startsExpr:$}),_null:K("null",{startsExpr:$}),_true:K("true",{startsExpr:$}),_false:K("false",{startsExpr:$}),_typeof:K("typeof",{beforeExpr:N,prefix:Ce,startsExpr:$}),_void:K("void",{beforeExpr:N,prefix:Ce,startsExpr:$}),_delete:K("delete",{beforeExpr:N,prefix:Ce,startsExpr:$}),_do:K("do",{isLoop:ne,beforeExpr:N}),_for:K("for",{isLoop:ne}),_while:K("while",{isLoop:ne}),_as:De("as",{startsExpr:$}),_assert:De("assert",{startsExpr:$}),_async:De("async",{startsExpr:$}),_await:De("await",{startsExpr:$}),_defer:De("defer",{startsExpr:$}),_from:De("from",{startsExpr:$}),_get:De("get",{startsExpr:$}),_let:De("let",{startsExpr:$}),_meta:De("meta",{startsExpr:$}),_of:De("of",{startsExpr:$}),_sent:De("sent",{startsExpr:$}),_set:De("set",{startsExpr:$}),_source:De("source",{startsExpr:$}),_static:De("static",{startsExpr:$}),_using:De("using",{startsExpr:$}),_yield:De("yield",{startsExpr:$}),_asserts:De("asserts",{startsExpr:$}),_checks:De("checks",{startsExpr:$}),_exports:De("exports",{startsExpr:$}),_global:De("global",{startsExpr:$}),_implements:De("implements",{startsExpr:$}),_intrinsic:De("intrinsic",{startsExpr:$}),_infer:De("infer",{startsExpr:$}),_is:De("is",{startsExpr:$}),_mixins:De("mixins",{startsExpr:$}),_proto:De("proto",{startsExpr:$}),_require:De("require",{startsExpr:$}),_satisfies:De("satisfies",{startsExpr:$}),_keyof:De("keyof",{startsExpr:$}),_readonly:De("readonly",{startsExpr:$}),_unique:De("unique",{startsExpr:$}),_abstract:De("abstract",{startsExpr:$}),_declare:De("declare",{startsExpr:$}),_enum:De("enum",{startsExpr:$}),_module:De("module",{startsExpr:$}),_namespace:De("namespace",{startsExpr:$}),_interface:De("interface",{startsExpr:$}),_type:De("type",{startsExpr:$}),_opaque:De("opaque",{startsExpr:$}),name:Ee("name",{startsExpr:$}),placeholder:Ee("%%",{startsExpr:$}),string:Ee("string",{startsExpr:$}),num:Ee("num",{startsExpr:$}),bigint:Ee("bigint",{startsExpr:$}),decimal:Ee("decimal",{startsExpr:$}),regexp:Ee("regexp",{startsExpr:$}),privateName:Ee("#name",{startsExpr:$}),eof:Ee("eof"),jsxName:Ee("jsxName"),jsxText:Ee("jsxText",{beforeExpr:N}),jsxTagStart:Ee("jsxTagStart",{startsExpr:$}),jsxTagEnd:Ee("jsxTagEnd")};function Ve(z){return z>=93&&z<=133}function Ze(z){return z<=92}function ut(z){return z>=58&&z<=133}function st(z){return z>=58&&z<=137}function dt(z){return H[z]}function $e(z){return ye[z]}function je(z){return z>=29&&z<=33}function qe(z){return z>=129&&z<=131}function Le(z){return z>=90&&z<=92}function gt(z){return z>=58&&z<=92}function ht(z){return z>=39&&z<=59}function xe(z){return z===34}function Se(z){return Ie[z]}function se(z){return z>=121&&z<=123}function ee(z){return z>=124&&z<=130}function oe(z){return U[z]}function W(z){return L[z]}function fe(z){return z===57}function Re(z){return z>=24&&z<=25}function Fe(z){return ae[z]}ae[8].updateContext=z=>{z.pop()},ae[5].updateContext=ae[7].updateContext=ae[23].updateContext=z=>{z.push(J.brace)},ae[22].updateContext=z=>{z[z.length-1]===J.template?z.pop():z.push(J.template)},ae[143].updateContext=z=>{z.push(J.j_expr,J.j_oTag)};let Ke="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",it="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const _t=new RegExp("["+Ke+"]"),Mt=new RegExp("["+Ke+it+"]");Ke=it=null;const pt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],xt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function te(z,l){let i=65536;for(let c=0,d=l.length;c<d;c+=2){if(i+=l[c],i>z)return!1;if(i+=l[c+1],i>=z)return!0}return!1}function de(z){return z<65?z===36:z<=90?!0:z<97?z===95:z<=122?!0:z<=65535?z>=170&&_t.test(String.fromCharCode(z)):te(z,pt)}function G(z){return z<48?z===36:z<58?!0:z<65?!1:z<=90?!0:z<97?z===95:z<=122?!0:z<=65535?z>=170&&Mt.test(String.fromCharCode(z)):te(z,pt)||te(z,xt)}const be={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},et=new Set(be.keyword),ge=new Set(be.strict),rt=new Set(be.strictBind);function yt(z,l){return l&&z==="await"||z==="enum"}function mt(z,l){return yt(z,l)||ge.has(z)}function Bt(z){return rt.has(z)}function Lt(z,l){return mt(z,l)||Bt(z)}function Vt(z){return et.has(z)}function Jt(z,l,i){return z===64&&l===64&&de(i)}const lr=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function xr(z){return lr.has(z)}class Wt{constructor(l){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=l}}class tr{constructor(l,i){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=l,this.inModule=i}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const l=this.currentThisScopeFlags();return(l&64)>0&&(l&2)===0}get inStaticBlock(){for(let l=this.scopeStack.length-1;;l--){const{flags:i}=this.scopeStack[l];if(i&128)return!0;if(i&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(l){return new Wt(l)}enter(l){this.scopeStack.push(this.createScope(l))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(l){return!!(l.flags&130||!this.parser.inModule&&l.flags&1)}declareName(l,i,c){let d=this.currentScope();if(i&8||i&16){this.checkRedeclarationInScope(d,l,i,c);let A=d.names.get(l)||0;i&16?A=A|4:(d.firstLexicalName||(d.firstLexicalName=l),A=A|2),d.names.set(l,A),i&8&&this.maybeExportDefined(d,l)}else if(i&4)for(let A=this.scopeStack.length-1;A>=0&&(d=this.scopeStack[A],this.checkRedeclarationInScope(d,l,i,c),d.names.set(l,(d.names.get(l)||0)|1),this.maybeExportDefined(d,l),!(d.flags&1667));--A);this.parser.inModule&&d.flags&1&&this.undefinedExports.delete(l)}maybeExportDefined(l,i){this.parser.inModule&&l.flags&1&&this.undefinedExports.delete(i)}checkRedeclarationInScope(l,i,c,d){this.isRedeclaredInScope(l,i,c)&&this.parser.raise(T.VarRedeclaration,d,{identifierName:i})}isRedeclaredInScope(l,i,c){if(!(c&1))return!1;if(c&8)return l.names.has(i);const d=l.names.get(i)||0;return c&16?(d&2)>0||!this.treatFunctionsAsVarInScope(l)&&(d&1)>0:(d&2)>0&&!(l.flags&8&&l.firstLexicalName===i)||!this.treatFunctionsAsVarInScope(l)&&(d&4)>0}checkLocalExport(l){const{name:i}=l;this.scopeStack[0].names.has(i)||this.undefinedExports.set(i,l.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let l=this.scopeStack.length-1;;l--){const{flags:i}=this.scopeStack[l];if(i&1667)return i}}currentThisScopeFlags(){for(let l=this.scopeStack.length-1;;l--){const{flags:i}=this.scopeStack[l];if(i&1731&&!(i&4))return i}}}class pn extends Wt{constructor(...l){super(...l),this.declareFunctions=new Set}}class dn extends tr{createScope(l){return new pn(l)}declareName(l,i,c){const d=this.currentScope();if(i&2048){this.checkRedeclarationInScope(d,l,i,c),this.maybeExportDefined(d,l),d.declareFunctions.add(l);return}super.declareName(l,i,c)}isRedeclaredInScope(l,i,c){if(super.isRedeclaredInScope(l,i,c))return!0;if(c&2048&&!l.declareFunctions.has(i)){const d=l.names.get(i);return(d&4)>0||(d&2)>0}return!1}checkLocalExport(l){this.scopeStack[0].declareFunctions.has(l.name)||super.checkLocalExport(l)}}const Sr=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Rt=C`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:z})=>`Cannot overwrite reserved type ${z}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:z,enumName:l})=>`Boolean enum members need to be initialized. Use either \`${z} = true,\` or \`${z} = false,\` in enum \`${l}\`.`,EnumDuplicateMemberName:({memberName:z,enumName:l})=>`Enum member names need to be unique, but the name \`${z}\` has already been used before in enum \`${l}\`.`,EnumInconsistentMemberValues:({enumName:z})=>`Enum \`${z}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:z,enumName:l})=>`Enum type \`${z}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${l}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:z})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${z}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:z,memberName:l,explicitType:i})=>`Enum \`${z}\` has type \`${i}\`, so the initializer of \`${l}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:z,memberName:l})=>`Symbol enum members cannot be initialized. Use \`${l},\` in enum \`${z}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:z,memberName:l})=>`The enum member initializer for \`${l}\` needs to be a literal (either a boolean, number, or string) in enum \`${z}\`.`,EnumInvalidMemberName:({enumName:z,memberName:l,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${l}\`, consider using \`${i}\`, in enum \`${z}\`.`,EnumNumberMemberNotInitialized:({enumName:z,memberName:l})=>`Number enum members need to be initialized, e.g. \`${l} = 1\` in enum \`${z}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:z})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${z}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:z})=>`Unexpected reserved type ${z}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:z,suggestion:l})=>`\`declare export ${z}\` is not supported. Use \`${l}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ui(z){return z.type==="DeclareExportAllDeclaration"||z.type==="DeclareExportDeclaration"&&(!z.declaration||z.declaration.type!=="TypeAlias"&&z.declaration.type!=="InterfaceDeclaration")}function Vr(z){return z.importKind==="type"||z.importKind==="typeof"}const tn={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Rr(z,l){const i=[],c=[];for(let d=0;d<z.length;d++)(l(z[d],d,z)?i:c).push(z[d]);return[i,c]}const jr=/\*?\s*@((?:no)?flow)\b/;var Dn=z=>class extends z{constructor(...i){super(...i),this.flowPragma=void 0}getScopeHandler(){return dn}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(i,c){i!==134&&i!==13&&i!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(i,c)}addComment(i){if(this.flowPragma===void 0){const c=jr.exec(i.value);if(c)if(c[1]==="flow")this.flowPragma="flow";else if(c[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(i)}flowParseTypeInitialiser(i){const c=this.state.inType;this.state.inType=!0,this.expect(i||14);const d=this.flowParseType();return this.state.inType=c,d}flowParsePredicate(){const i=this.startNode(),c=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>c.index+1&&this.raise(Rt.UnexpectedSpaceBetweenModuloChecks,c),this.eat(10)?(i.value=super.parseExpression(),this.expect(11),this.finishNode(i,"DeclaredPredicate")):this.finishNode(i,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const i=this.state.inType;this.state.inType=!0,this.expect(14);let c=null,d=null;return this.match(54)?(this.state.inType=i,d=this.flowParsePredicate()):(c=this.flowParseType(),this.state.inType=i,this.match(54)&&(d=this.flowParsePredicate())),[c,d]}flowParseDeclareClass(i){return this.next(),this.flowParseInterfaceish(i,!0),this.finishNode(i,"DeclareClass")}flowParseDeclareFunction(i){this.next();const c=i.id=this.parseIdentifier(),d=this.startNode(),A=this.startNode();this.match(47)?d.typeParameters=this.flowParseTypeParameterDeclaration():d.typeParameters=null,this.expect(10);const Q=this.flowParseFunctionTypeParams();return d.params=Q.params,d.rest=Q.rest,d.this=Q._this,this.expect(11),[d.returnType,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),A.typeAnnotation=this.finishNode(d,"FunctionTypeAnnotation"),c.typeAnnotation=this.finishNode(A,"TypeAnnotation"),this.resetEndLocation(c),this.semicolon(),this.scope.declareName(i.id.name,2048,i.id.loc.start),this.finishNode(i,"DeclareFunction")}flowParseDeclare(i,c){if(this.match(80))return this.flowParseDeclareClass(i);if(this.match(68))return this.flowParseDeclareFunction(i);if(this.match(74))return this.flowParseDeclareVariable(i);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(i):(c&&this.raise(Rt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(i));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(i);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(i);if(this.isContextual(129))return this.flowParseDeclareInterface(i);if(this.match(82))return this.flowParseDeclareExportDeclaration(i,c);throw this.unexpected()}flowParseDeclareVariable(i){return this.next(),i.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(i.id.name,5,i.id.loc.start),this.semicolon(),this.finishNode(i,"DeclareVariable")}flowParseDeclareModule(i){this.scope.enter(0),this.match(134)?i.id=super.parseExprAtom():i.id=this.parseIdentifier();const c=i.body=this.startNode(),d=c.body=[];for(this.expect(5);!this.match(8);){const le=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Rt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),d.push(super.parseImport(le))):(this.expectContextual(125,Rt.UnsupportedStatementInDeclareModule),d.push(this.flowParseDeclare(le,!0)))}this.scope.exit(),this.expect(8),this.finishNode(c,"BlockStatement");let A=null,Q=!1;return d.forEach(le=>{ui(le)?(A==="CommonJS"&&this.raise(Rt.AmbiguousDeclareModuleKind,le),A="ES"):le.type==="DeclareModuleExports"&&(Q&&this.raise(Rt.DuplicateDeclareModuleExports,le),A==="ES"&&this.raise(Rt.AmbiguousDeclareModuleKind,le),A="CommonJS",Q=!0)}),i.kind=A||"CommonJS",this.finishNode(i,"DeclareModule")}flowParseDeclareExportDeclaration(i,c){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?i.declaration=this.flowParseDeclare(this.startNode()):(i.declaration=this.flowParseType(),this.semicolon()),i.default=!0,this.finishNode(i,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!c){const d=this.state.value;throw this.raise(Rt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:d,suggestion:tn[d]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return i.declaration=this.flowParseDeclare(this.startNode()),i.default=!1,this.finishNode(i,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return i=this.parseExport(i,null),i.type==="ExportNamedDeclaration"?(i.default=!1,delete i.exportKind,this.castNodeTo(i,"DeclareExportDeclaration")):this.castNodeTo(i,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(i){return this.next(),this.expectContextual(111),i.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(i,"DeclareModuleExports")}flowParseDeclareTypeAlias(i){this.next();const c=this.flowParseTypeAlias(i);return this.castNodeTo(c,"DeclareTypeAlias"),c}flowParseDeclareOpaqueType(i){this.next();const c=this.flowParseOpaqueType(i,!0);return this.castNodeTo(c,"DeclareOpaqueType"),c}flowParseDeclareInterface(i){return this.next(),this.flowParseInterfaceish(i,!1),this.finishNode(i,"DeclareInterface")}flowParseInterfaceish(i,c){if(i.id=this.flowParseRestrictedIdentifier(!c,!0),this.scope.declareName(i.id.name,c?17:8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(!c&&this.eat(12));if(c){if(i.implements=[],i.mixins=[],this.eatContextual(117))do i.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do i.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}i.body=this.flowParseObjectType({allowStatic:c,allowExact:!1,allowSpread:!1,allowProto:c,allowInexact:!1})}flowParseInterfaceExtends(){const i=this.startNode();return i.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?i.typeParameters=this.flowParseTypeParameterInstantiation():i.typeParameters=null,this.finishNode(i,"InterfaceExtends")}flowParseInterface(i){return this.flowParseInterfaceish(i,!1),this.finishNode(i,"InterfaceDeclaration")}checkNotUnderscore(i){i==="_"&&this.raise(Rt.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(i,c,d){Sr.has(i)&&this.raise(d?Rt.AssignReservedType:Rt.UnexpectedReservedType,c,{reservedType:i})}flowParseRestrictedIdentifierName(i,c){return this.checkReservedType(this.state.value,this.state.startLoc,c),this.parseIdentifierName(i)}flowParseRestrictedIdentifier(i,c){const d=this.startNode(),A=this.flowParseRestrictedIdentifierName(i,c);return this.createIdentifier(d,A)}flowParseTypeAlias(i){return i.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(i,"TypeAlias")}flowParseOpaqueType(i,c){return this.expectContextual(130),i.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(i.id.name,8201,i.id.loc.start),this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,i.supertype=null,this.match(14)&&(i.supertype=this.flowParseTypeInitialiser(14)),i.impltype=null,c||(i.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(i,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){const i=this.startNode();return this.next(),i.typeAnnotation=this.flowParseType(),this.finishNode(i,"TypeAnnotation")}}flowParseTypeParameter(i=!1){const c=this.state.startLoc,d=this.startNode(),A=this.flowParseVariance();return d.name=this.flowParseRestrictedIdentifierName(),d.variance=A,d.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),d.default=this.flowParseType()):i&&this.raise(Rt.MissingTypeParamDefault,c),this.finishNode(d,"TypeParameter")}flowParseTypeParameterDeclaration(){const i=this.state.inType,c=this.startNode();c.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let d=!1;do{const A=this.flowParseTypeParameter(d);c.params.push(A),A.default&&(d=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=i,this.finishNode(c,"TypeParameterDeclaration")}flowInTopLevelContext(i){if(this.curContext()!==J.brace){const c=this.state.context;this.state.context=[c[0]];try{return i()}finally{this.state.context=c}}else return i()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const i=this.startNode(),c=this.state.inType;return this.state.inType=!0,i.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const d=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)i.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=d}),this.state.inType=c,!this.state.inType&&this.curContext()===J.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(i,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;const i=this.startNode(),c=this.state.inType;for(i.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)i.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=c,this.finishNode(i,"TypeParameterInstantiation")}flowParseInterfaceType(){const i=this.startNode();if(this.expectContextual(129),i.extends=[],this.eat(81))do i.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return i.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(i,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(i,c,d){return i.static=c,this.lookahead().type===14?(i.id=this.flowParseObjectPropertyKey(),i.key=this.flowParseTypeInitialiser()):(i.id=null,i.key=this.flowParseType()),this.expect(3),i.value=this.flowParseTypeInitialiser(),i.variance=d,this.finishNode(i,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(i,c){return i.static=c,i.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(i.method=!0,i.optional=!1,i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start))):(i.method=!1,this.eat(17)&&(i.optional=!0),i.value=this.flowParseTypeInitialiser()),this.finishNode(i,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(i){for(i.params=[],i.rest=null,i.typeParameters=null,i.this=null,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(i.this=this.flowParseFunctionTypeParam(!0),i.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),i.returnType=this.flowParseTypeInitialiser(),this.finishNode(i,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(i,c){const d=this.startNode();return i.static=c,i.value=this.flowParseObjectTypeMethodish(d),this.finishNode(i,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:i,allowExact:c,allowSpread:d,allowProto:A,allowInexact:Q}){const le=this.state.inType;this.state.inType=!0;const Pe=this.startNode();Pe.callProperties=[],Pe.properties=[],Pe.indexers=[],Pe.internalSlots=[];let Be,Ue,ct=!1;for(c&&this.match(6)?(this.expect(6),Be=9,Ue=!0):(this.expect(5),Be=8,Ue=!1),Pe.exact=Ue;!this.match(Be);){let wt=!1,Ot=null,Gt=null;const or=this.startNode();if(A&&this.isContextual(118)){const sr=this.lookahead();sr.type!==14&&sr.type!==17&&(this.next(),Ot=this.state.startLoc,i=!1)}if(i&&this.isContextual(106)){const sr=this.lookahead();sr.type!==14&&sr.type!==17&&(this.next(),wt=!0)}const Ft=this.flowParseVariance();if(this.eat(0))Ot!=null&&this.unexpected(Ot),this.eat(0)?(Ft&&this.unexpected(Ft.loc.start),Pe.internalSlots.push(this.flowParseObjectTypeInternalSlot(or,wt))):Pe.indexers.push(this.flowParseObjectTypeIndexer(or,wt,Ft));else if(this.match(10)||this.match(47))Ot!=null&&this.unexpected(Ot),Ft&&this.unexpected(Ft.loc.start),Pe.callProperties.push(this.flowParseObjectTypeCallProperty(or,wt));else{let sr="init";if(this.isContextual(99)||this.isContextual(104)){const an=this.lookahead();st(an.type)&&(sr=this.state.value,this.next())}const xn=this.flowParseObjectTypeProperty(or,wt,Ot,Ft,sr,d,Q??!Ue);xn===null?(ct=!0,Gt=this.state.lastTokStartLoc):Pe.properties.push(xn)}this.flowObjectTypeSemicolon(),Gt&&!this.match(8)&&!this.match(9)&&this.raise(Rt.UnexpectedExplicitInexactInObject,Gt)}this.expect(Be),d&&(Pe.inexact=ct);const vt=this.finishNode(Pe,"ObjectTypeAnnotation");return this.state.inType=le,vt}flowParseObjectTypeProperty(i,c,d,A,Q,le,Pe){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(le?Pe||this.raise(Rt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Rt.InexactInsideNonObject,this.state.lastTokStartLoc),A&&this.raise(Rt.InexactVariance,A),null):(le||this.raise(Rt.UnexpectedSpreadType,this.state.lastTokStartLoc),d!=null&&this.unexpected(d),A&&this.raise(Rt.SpreadVariance,A),i.argument=this.flowParseType(),this.finishNode(i,"ObjectTypeSpreadProperty"));{i.key=this.flowParseObjectPropertyKey(),i.static=c,i.proto=d!=null,i.kind=Q;let Be=!1;return this.match(47)||this.match(10)?(i.method=!0,d!=null&&this.unexpected(d),A&&this.unexpected(A.loc.start),i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(i.loc.start)),(Q==="get"||Q==="set")&&this.flowCheckGetterSetterParams(i),!le&&i.key.name==="constructor"&&i.value.this&&this.raise(Rt.ThisParamBannedInConstructor,i.value.this)):(Q!=="init"&&this.unexpected(),i.method=!1,this.eat(17)&&(Be=!0),i.value=this.flowParseTypeInitialiser(),i.variance=A),i.optional=Be,this.finishNode(i,"ObjectTypeProperty")}}flowCheckGetterSetterParams(i){const c=i.kind==="get"?0:1,d=i.value.params.length+(i.value.rest?1:0);i.value.this&&this.raise(i.kind==="get"?Rt.GetterMayNotHaveThisParam:Rt.SetterMayNotHaveThisParam,i.value.this),d!==c&&this.raise(i.kind==="get"?T.BadGetterArity:T.BadSetterArity,i),i.kind==="set"&&i.value.rest&&this.raise(T.BadSetterRestParameter,i)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(i,c){i??(i=this.state.startLoc);let d=c||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const A=this.startNodeAt(i);A.qualification=d,A.id=this.flowParseRestrictedIdentifier(!0),d=this.finishNode(A,"QualifiedTypeIdentifier")}return d}flowParseGenericType(i,c){const d=this.startNodeAt(i);return d.typeParameters=null,d.id=this.flowParseQualifiedTypeIdentifier(i,c),this.match(47)&&(d.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(d,"GenericTypeAnnotation")}flowParseTypeofType(){const i=this.startNode();return this.expect(87),i.argument=this.flowParsePrimaryType(),this.finishNode(i,"TypeofTypeAnnotation")}flowParseTupleType(){const i=this.startNode();for(i.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(i.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(i,"TupleTypeAnnotation")}flowParseFunctionTypeParam(i){let c=null,d=!1,A=null;const Q=this.startNode(),le=this.lookahead(),Pe=this.state.type===78;return le.type===14||le.type===17?(Pe&&!i&&this.raise(Rt.ThisParamMustBeFirst,Q),c=this.parseIdentifier(Pe),this.eat(17)&&(d=!0,Pe&&this.raise(Rt.ThisParamMayNotBeOptional,Q)),A=this.flowParseTypeInitialiser()):A=this.flowParseType(),Q.name=c,Q.optional=d,Q.typeAnnotation=A,this.finishNode(Q,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(i){const c=this.startNodeAt(i.loc.start);return c.name=null,c.optional=!1,c.typeAnnotation=i,this.finishNode(c,"FunctionTypeParam")}flowParseFunctionTypeParams(i=[]){let c=null,d=null;for(this.match(78)&&(d=this.flowParseFunctionTypeParam(!0),d.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)i.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(c=this.flowParseFunctionTypeParam(!1)),{params:i,rest:c,_this:d}}flowIdentToTypeAnnotation(i,c,d){switch(d.name){case"any":return this.finishNode(c,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(c,"BooleanTypeAnnotation");case"mixed":return this.finishNode(c,"MixedTypeAnnotation");case"empty":return this.finishNode(c,"EmptyTypeAnnotation");case"number":return this.finishNode(c,"NumberTypeAnnotation");case"string":return this.finishNode(c,"StringTypeAnnotation");case"symbol":return this.finishNode(c,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(d.name),this.flowParseGenericType(i,d)}}flowParsePrimaryType(){const i=this.state.startLoc,c=this.startNode();let d,A,Q=!1;const le=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,A=this.flowParseTupleType(),this.state.noAnonFunctionType=le,A;case 47:{const Pe=this.startNode();return Pe.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),d=this.flowParseFunctionTypeParams(),Pe.params=d.params,Pe.rest=d.rest,Pe.this=d._this,this.expect(11),this.expect(19),Pe.returnType=this.flowParseType(),this.finishNode(Pe,"FunctionTypeAnnotation")}case 10:{const Pe=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ve(this.state.type)||this.match(78)){const Be=this.lookahead().type;Q=Be!==17&&Be!==14}else Q=!0;if(Q){if(this.state.noAnonFunctionType=!1,A=this.flowParseType(),this.state.noAnonFunctionType=le,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),A;this.eat(12)}return A?d=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(A)]):d=this.flowParseFunctionTypeParams(),Pe.params=d.params,Pe.rest=d.rest,Pe.this=d._this,this.expect(11),this.expect(19),Pe.returnType=this.flowParseType(),Pe.typeParameters=null,this.finishNode(Pe,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return c.value=this.match(85),this.next(),this.finishNode(c,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",c);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",c);throw this.raise(Rt.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(c,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(c,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(c,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(c,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(gt(this.state.type)){const Pe=oe(this.state.type);return this.next(),super.createIdentifier(c,Pe)}else if(Ve(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(i,c,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){const i=this.state.startLoc;let c=this.flowParsePrimaryType(),d=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const A=this.startNodeAt(i),Q=this.eat(18);d=d||Q,this.expect(0),!Q&&this.match(3)?(A.elementType=c,this.next(),c=this.finishNode(A,"ArrayTypeAnnotation")):(A.objectType=c,A.indexType=this.flowParseType(),this.expect(3),d?(A.optional=Q,c=this.finishNode(A,"OptionalIndexedAccessType")):c=this.finishNode(A,"IndexedAccessType"))}return c}flowParsePrefixType(){const i=this.startNode();return this.eat(17)?(i.typeAnnotation=this.flowParsePrefixType(),this.finishNode(i,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const i=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const c=this.startNodeAt(i.loc.start);return c.params=[this.reinterpretTypeAsFunctionTypeParam(i)],c.rest=null,c.this=null,c.returnType=this.flowParseType(),c.typeParameters=null,this.finishNode(c,"FunctionTypeAnnotation")}return i}flowParseIntersectionType(){const i=this.startNode();this.eat(45);const c=this.flowParseAnonFunctionWithoutParens();for(i.types=[c];this.eat(45);)i.types.push(this.flowParseAnonFunctionWithoutParens());return i.types.length===1?c:this.finishNode(i,"IntersectionTypeAnnotation")}flowParseUnionType(){const i=this.startNode();this.eat(43);const c=this.flowParseIntersectionType();for(i.types=[c];this.eat(43);)i.types.push(this.flowParseIntersectionType());return i.types.length===1?c:this.finishNode(i,"UnionTypeAnnotation")}flowParseType(){const i=this.state.inType;this.state.inType=!0;const c=this.flowParseUnionType();return this.state.inType=i,c}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const i=this.state.startLoc,c=this.parseIdentifier();return this.flowParseGenericType(i,c)}else return this.flowParseType()}flowParseTypeAnnotation(){const i=this.startNode();return i.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(i,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){const i=this.startNode(),c=this.parseIdentifierName();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(i,c)}typeCastToParameter(i){return i.expression.typeAnnotation=i.typeAnnotation,this.resetEndLocation(i.expression,i.typeAnnotation.loc.end),i.expression}flowParseVariance(){let i=null;return this.match(53)?(i=this.startNode(),this.state.value==="+"?i.kind="plus":i.kind="minus",this.next(),this.finishNode(i,"Variance")):i}parseFunctionBody(i,c,d=!1){if(c){this.forwardNoArrowParamsConversionAt(i,()=>super.parseFunctionBody(i,!0,d));return}super.parseFunctionBody(i,!1,d)}parseFunctionBodyAndFinish(i,c,d=!1){if(this.match(14)){const A=this.startNode();[A.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.returnType=A.typeAnnotation?this.finishNode(A,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(i,c,d)}parseStatementLike(i){if(this.state.strict&&this.isContextual(129)){const d=this.lookahead();if(ut(d.type)){const A=this.startNode();return this.next(),this.flowParseInterface(A)}}else if(this.isContextual(126)){const d=this.startNode();return this.next(),this.flowParseEnumDeclaration(d)}const c=super.parseStatementLike(i);return this.flowPragma===void 0&&!this.isValidDirective(c)&&(this.flowPragma=null),c}parseExpressionStatement(i,c,d){if(c.type==="Identifier"){if(c.name==="declare"){if(this.match(80)||Ve(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(i)}else if(Ve(this.state.type)){if(c.name==="interface")return this.flowParseInterface(i);if(c.name==="type")return this.flowParseTypeAlias(i);if(c.name==="opaque")return this.flowParseOpaqueType(i,!1)}}return super.parseExpressionStatement(i,c,d)}shouldParseExportDeclaration(){const{type:i}=this.state;return i===126||qe(i)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:i}=this.state;return i===126||qe(i)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}return super.parseExportDefaultExpression()}parseConditional(i,c,d){if(!this.match(17))return i;if(this.state.maybeInArrowParameters){const vt=this.lookaheadCharCode();if(vt===44||vt===61||vt===58||vt===41)return this.setOptionalParametersError(d),i}this.expect(17);const A=this.state.clone(),Q=this.state.noArrowAt,le=this.startNodeAt(c);let{consequent:Pe,failed:Be}=this.tryParseConditionalConsequent(),[Ue,ct]=this.getArrowLikeExpressions(Pe);if(Be||ct.length>0){const vt=[...Q];if(ct.length>0){this.state=A,this.state.noArrowAt=vt;for(let wt=0;wt<ct.length;wt++)vt.push(ct[wt].start);({consequent:Pe,failed:Be}=this.tryParseConditionalConsequent()),[Ue,ct]=this.getArrowLikeExpressions(Pe)}Be&&Ue.length>1&&this.raise(Rt.AmbiguousConditionalArrow,A.startLoc),Be&&Ue.length===1&&(this.state=A,vt.push(Ue[0].start),this.state.noArrowAt=vt,{consequent:Pe,failed:Be}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(Pe,!0),this.state.noArrowAt=Q,this.expect(14),le.test=i,le.consequent=Pe,le.alternate=this.forwardNoArrowParamsConversionAt(le,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(le,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const i=this.parseMaybeAssignAllowIn(),c=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:i,failed:c}}getArrowLikeExpressions(i,c){const d=[i],A=[];for(;d.length!==0;){const Q=d.pop();Q.type==="ArrowFunctionExpression"&&Q.body.type!=="BlockStatement"?(Q.typeParameters||!Q.returnType?this.finishArrowValidation(Q):A.push(Q),d.push(Q.body)):Q.type==="ConditionalExpression"&&(d.push(Q.consequent),d.push(Q.alternate))}return c?(A.forEach(Q=>this.finishArrowValidation(Q)),[A,[]]):Rr(A,Q=>Q.params.every(le=>this.isAssignable(le,!0)))}finishArrowValidation(i){var c;this.toAssignableList(i.params,(c=i.extra)==null?void 0:c.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(i,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(i,c){let d;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),d=c(),this.state.noArrowParamsConversionAt.pop()):d=c(),d}parseParenItem(i,c){const d=super.parseParenItem(i,c);if(this.eat(17)&&(d.optional=!0,this.resetEndLocation(i)),this.match(14)){const A=this.startNodeAt(c);return A.expression=d,A.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(A,"TypeCastExpression")}return d}assertModuleNodeAllowed(i){i.type==="ImportDeclaration"&&(i.importKind==="type"||i.importKind==="typeof")||i.type==="ExportNamedDeclaration"&&i.exportKind==="type"||i.type==="ExportAllDeclaration"&&i.exportKind==="type"||super.assertModuleNodeAllowed(i)}parseExportDeclaration(i){if(this.isContextual(130)){i.exportKind="type";const c=this.startNode();return this.next(),this.match(5)?(i.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(i),null):this.flowParseTypeAlias(c)}else if(this.isContextual(131)){i.exportKind="type";const c=this.startNode();return this.next(),this.flowParseOpaqueType(c,!1)}else if(this.isContextual(129)){i.exportKind="type";const c=this.startNode();return this.next(),this.flowParseInterface(c)}else if(this.isContextual(126)){i.exportKind="value";const c=this.startNode();return this.next(),this.flowParseEnumDeclaration(c)}else return super.parseExportDeclaration(i)}eatExportStar(i){return super.eatExportStar(i)?!0:this.isContextual(130)&&this.lookahead().type===55?(i.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(i){const{startLoc:c}=this.state,d=super.maybeParseExportNamespaceSpecifier(i);return d&&i.exportKind==="type"&&this.unexpected(c),d}parseClassId(i,c,d){super.parseClassId(i,c,d),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(i,c,d){const{startLoc:A}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(i,c))return;c.declare=!0}super.parseClassMember(i,c,d),c.declare&&(c.type!=="ClassProperty"&&c.type!=="ClassPrivateProperty"&&c.type!=="PropertyDefinition"?this.raise(Rt.DeclareClassElement,A):c.value&&this.raise(Rt.DeclareClassFieldInitializer,c.value))}isIterator(i){return i==="iterator"||i==="asyncIterator"}readIterator(){const i=super.readWord1(),c="@@"+i;(!this.isIterator(i)||!this.state.inType)&&this.raise(T.InvalidIdentifier,this.state.curPosition(),{identifierName:c}),this.finishToken(132,c)}getTokenFromCode(i){const c=this.input.charCodeAt(this.state.pos+1);i===123&&c===124?this.finishOp(6,2):this.state.inType&&(i===62||i===60)?this.finishOp(i===62?48:47,1):this.state.inType&&i===63?c===46?this.finishOp(18,2):this.finishOp(17,1):Jt(i,c,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(i)}isAssignable(i,c){return i.type==="TypeCastExpression"?this.isAssignable(i.expression,c):super.isAssignable(i,c)}toAssignable(i,c=!1){!c&&i.type==="AssignmentExpression"&&i.left.type==="TypeCastExpression"&&(i.left=this.typeCastToParameter(i.left)),super.toAssignable(i,c)}toAssignableList(i,c,d){for(let A=0;A<i.length;A++){const Q=i[A];(Q==null?void 0:Q.type)==="TypeCastExpression"&&(i[A]=this.typeCastToParameter(Q))}super.toAssignableList(i,c,d)}toReferencedList(i,c){for(let A=0;A<i.length;A++){var d;const Q=i[A];Q&&Q.type==="TypeCastExpression"&&!((d=Q.extra)!=null&&d.parenthesized)&&(i.length>1||!c)&&this.raise(Rt.TypeCastInPattern,Q.typeAnnotation)}return i}parseArrayLike(i,c,d){const A=super.parseArrayLike(i,c,d);return d!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(A.elements),A}isValidLVal(i,c,d,A){return i==="TypeCastExpression"||super.isValidLVal(i,c,d,A)}parseClassProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(i)}parseClassPrivateProperty(i){return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(i)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(i){return!this.match(14)&&super.isNonstaticConstructor(i)}pushClassMethod(i,c,d,A,Q,le){if(c.variance&&this.unexpected(c.variance.loc.start),delete c.variance,this.match(47)&&(c.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(i,c,d,A,Q,le),c.params&&Q){const Pe=c.params;Pe.length>0&&this.isThisParam(Pe[0])&&this.raise(Rt.ThisParamBannedInConstructor,c)}else if(c.type==="MethodDefinition"&&Q&&c.value.params){const Pe=c.value.params;Pe.length>0&&this.isThisParam(Pe[0])&&this.raise(Rt.ThisParamBannedInConstructor,c)}}pushClassPrivateMethod(i,c,d,A){c.variance&&this.unexpected(c.variance.loc.start),delete c.variance,this.match(47)&&(c.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(i,c,d,A)}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&(this.match(47)||this.match(51))&&(i.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const c=i.implements=[];do{const d=this.startNode();d.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?d.typeParameters=this.flowParseTypeParameterInstantiation():d.typeParameters=null,c.push(this.finishNode(d,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(i){super.checkGetterSetterParams(i);const c=this.getObjectOrClassMethodParams(i);if(c.length>0){const d=c[0];this.isThisParam(d)&&i.kind==="get"?this.raise(Rt.GetterMayNotHaveThisParam,d):this.isThisParam(d)&&this.raise(Rt.SetterMayNotHaveThisParam,d)}}parsePropertyNamePrefixOperator(i){i.variance=this.flowParseVariance()}parseObjPropValue(i,c,d,A,Q,le,Pe){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance;let Be;this.match(47)&&!le&&(Be=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const Ue=super.parseObjPropValue(i,c,d,A,Q,le,Pe);return Be&&((Ue.value||Ue).typeParameters=Be),Ue}parseFunctionParamType(i){return this.eat(17)&&(i.type!=="Identifier"&&this.raise(Rt.PatternIsOptional,i),this.isThisParam(i)&&this.raise(Rt.ThisParamMayNotBeOptional,i),i.optional=!0),this.match(14)?i.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(i)&&this.raise(Rt.ThisParamAnnotationRequired,i),this.match(29)&&this.isThisParam(i)&&this.raise(Rt.ThisParamNoDefault,i),this.resetEndLocation(i),i}parseMaybeDefault(i,c){const d=super.parseMaybeDefault(i,c);return d.type==="AssignmentPattern"&&d.typeAnnotation&&d.right.start<d.typeAnnotation.start&&this.raise(Rt.TypeBeforeInitializer,d.typeAnnotation),d}checkImportReflection(i){super.checkImportReflection(i),i.module&&i.importKind!=="value"&&this.raise(Rt.ImportReflectionHasImportType,i.specifiers[0].loc.start)}parseImportSpecifierLocal(i,c,d){c.local=Vr(i)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),i.specifiers.push(this.finishImportSpecifier(c,d))}isPotentialImportPhase(i){if(super.isPotentialImportPhase(i))return!0;if(this.isContextual(130)){if(!i)return!0;const c=this.lookaheadCharCode();return c===123||c===42}return!i&&this.isContextual(87)}applyImportPhase(i,c,d,A){if(super.applyImportPhase(i,c,d,A),c){if(!d&&this.match(65))return;i.exportKind=d==="type"?d:"value"}else d==="type"&&this.match(55)&&this.unexpected(),i.importKind=d==="type"||d==="typeof"?d:"value"}parseImportSpecifier(i,c,d,A,Q){const le=i.imported;let Pe=null;le.type==="Identifier"&&(le.name==="type"?Pe="type":le.name==="typeof"&&(Pe="typeof"));let Be=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const ct=this.parseIdentifier(!0);Pe!==null&&!ut(this.state.type)?(i.imported=ct,i.importKind=Pe,i.local=this.cloneIdentifier(ct)):(i.imported=le,i.importKind=null,i.local=this.parseIdentifier())}else{if(Pe!==null&&ut(this.state.type))i.imported=this.parseIdentifier(!0),i.importKind=Pe;else{if(c)throw this.raise(T.ImportBindingIsString,i,{importName:le.value});i.imported=le,i.importKind=null}this.eatContextual(93)?i.local=this.parseIdentifier():(Be=!0,i.local=this.cloneIdentifier(i.imported))}const Ue=Vr(i);return d&&Ue&&this.raise(Rt.ImportTypeShorthandOnlyInPureImport,i),(d||Ue)&&this.checkReservedType(i.local.name,i.local.loc.start,!0),Be&&!d&&!Ue&&this.checkReservedWord(i.local.name,i.loc.start,!0,!0),this.finishImportSpecifier(i,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(i,c){const d=i.kind;d!=="get"&&d!=="set"&&this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(i,c)}parseVarId(i,c){super.parseVarId(i,c),this.match(14)&&(i.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i.id))}parseAsyncArrowFromCallExpression(i,c){if(this.match(14)){const d=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,i.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=d}return super.parseAsyncArrowFromCallExpression(i,c)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(i,c){var d;let A=null,Q;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(A=this.state.clone(),Q=this.tryParse(()=>super.parseMaybeAssign(i,c),A),!Q.error)return Q.node;const{context:Be}=this.state,Ue=Be[Be.length-1];(Ue===J.j_oTag||Ue===J.j_expr)&&Be.pop()}if((d=Q)!=null&&d.error||this.match(47)){var le,Pe;A=A||this.state.clone();let Be;const Ue=this.tryParse(vt=>{var wt;Be=this.flowParseTypeParameterDeclaration();const Ot=this.forwardNoArrowParamsConversionAt(Be,()=>{const or=super.parseMaybeAssign(i,c);return this.resetStartLocationFromNode(or,Be),or});(wt=Ot.extra)!=null&&wt.parenthesized&&vt();const Gt=this.maybeUnwrapTypeCastExpression(Ot);return Gt.type!=="ArrowFunctionExpression"&&vt(),Gt.typeParameters=Be,this.resetStartLocationFromNode(Gt,Be),Ot},A);let ct=null;if(Ue.node&&this.maybeUnwrapTypeCastExpression(Ue.node).type==="ArrowFunctionExpression"){if(!Ue.error&&!Ue.aborted)return Ue.node.async&&this.raise(Rt.UnexpectedTypeParameterBeforeAsyncArrowFunction,Be),Ue.node;ct=Ue.node}if((le=Q)!=null&&le.node)return this.state=Q.failState,Q.node;if(ct)return this.state=Ue.failState,ct;throw(Pe=Q)!=null&&Pe.thrown?Q.error:Ue.thrown?Ue.error:this.raise(Rt.UnexpectedTokenAfterTypeParameter,Be)}return super.parseMaybeAssign(i,c)}parseArrow(i){if(this.match(14)){const c=this.tryParse(()=>{const d=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const A=this.startNode();return[A.typeAnnotation,i.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=d,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),A});if(c.thrown)return null;c.error&&(this.state=c.failState),i.returnType=c.node.typeAnnotation?this.finishNode(c.node,"TypeAnnotation"):null}return super.parseArrow(i)}shouldParseArrow(i){return this.match(14)||super.shouldParseArrow(i)}setArrowFunctionParameters(i,c){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start))?i.params=c:super.setArrowFunctionParameters(i,c)}checkParams(i,c,d,A=!0){if(!(d&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(i.start)))){for(let Q=0;Q<i.params.length;Q++)this.isThisParam(i.params[Q])&&Q>0&&this.raise(Rt.ThisParamMustBeFirst,i.params[Q]);super.checkParams(i,c,d,A)}}parseParenAndDistinguishExpression(i){return super.parseParenAndDistinguishExpression(i&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(i,c,d){if(i.type==="Identifier"&&i.name==="async"&&this.state.noArrowAt.includes(c.index)){this.next();const A=this.startNodeAt(c);A.callee=i,A.arguments=super.parseCallExpressionArguments(),i=this.finishNode(A,"CallExpression")}else if(i.type==="Identifier"&&i.name==="async"&&this.match(47)){const A=this.state.clone(),Q=this.tryParse(Pe=>this.parseAsyncArrowWithTypeParameters(c)||Pe(),A);if(!Q.error&&!Q.aborted)return Q.node;const le=this.tryParse(()=>super.parseSubscripts(i,c,d),A);if(le.node&&!le.error)return le.node;if(Q.node)return this.state=Q.failState,Q.node;if(le.node)return this.state=le.failState,le.node;throw Q.error||le.error}return super.parseSubscripts(i,c,d)}parseSubscript(i,c,d,A){if(this.match(18)&&this.isLookaheadToken_lt()){if(A.optionalChainMember=!0,d)return A.stop=!0,i;this.next();const Q=this.startNodeAt(c);return Q.callee=i,Q.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),Q.arguments=this.parseCallExpressionArguments(),Q.optional=!0,this.finishCallExpression(Q,!0)}else if(!d&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const Q=this.startNodeAt(c);Q.callee=i;const le=this.tryParse(()=>(Q.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Q.arguments=super.parseCallExpressionArguments(),A.optionalChainMember&&(Q.optional=!1),this.finishCallExpression(Q,A.optionalChainMember)));if(le.node)return le.error&&(this.state=le.failState),le.node}return super.parseSubscript(i,c,d,A)}parseNewCallee(i){super.parseNewCallee(i);let c=null;this.shouldParseTypes()&&this.match(47)&&(c=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),i.typeArguments=c}parseAsyncArrowWithTypeParameters(i){const c=this.startNodeAt(i);if(this.parseFunctionParams(c,!1),!!this.parseArrow(c))return super.parseArrowExpression(c,void 0,!0)}readToken_mult_modulo(i){const c=this.input.charCodeAt(this.state.pos+1);if(i===42&&c===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(i)}readToken_pipe_amp(i){const c=this.input.charCodeAt(this.state.pos+1);if(i===124&&c===125){this.finishOp(9,2);return}super.readToken_pipe_amp(i)}parseTopLevel(i,c){const d=super.parseTopLevel(i,c);return this.state.hasFlowComment&&this.raise(Rt.UnterminatedFlowComment,this.state.curPosition()),d}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Rt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const i=this.skipFlowComment();i&&(this.state.pos+=i,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:i}=this.state;let c=2;for(;[32,9].includes(this.input.charCodeAt(i+c));)c++;const d=this.input.charCodeAt(c+i),A=this.input.charCodeAt(c+i+1);return d===58&&A===58?c+2:this.input.slice(c+i,c+i+12)==="flow-include"?c+12:d===58&&A!==58?c:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(T.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(i,{enumName:c,memberName:d}){this.raise(Rt.EnumBooleanMemberNotInitialized,i,{memberName:d,enumName:c})}flowEnumErrorInvalidMemberInitializer(i,c){return this.raise(c.explicitType?c.explicitType==="symbol"?Rt.EnumInvalidMemberInitializerSymbolType:Rt.EnumInvalidMemberInitializerPrimaryType:Rt.EnumInvalidMemberInitializerUnknownType,i,c)}flowEnumErrorNumberMemberNotInitialized(i,c){this.raise(Rt.EnumNumberMemberNotInitialized,i,c)}flowEnumErrorStringMemberInconsistentlyInitialized(i,c){this.raise(Rt.EnumStringMemberInconsistentlyInitialized,i,c)}flowEnumMemberInit(){const i=this.state.startLoc,c=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const d=this.parseNumericLiteral(this.state.value);return c()?{type:"number",loc:d.loc.start,value:d}:{type:"invalid",loc:i}}case 134:{const d=this.parseStringLiteral(this.state.value);return c()?{type:"string",loc:d.loc.start,value:d}:{type:"invalid",loc:i}}case 85:case 86:{const d=this.parseBooleanLiteral(this.match(85));return c()?{type:"boolean",loc:d.loc.start,value:d}:{type:"invalid",loc:i}}default:return{type:"invalid",loc:i}}}flowEnumMemberRaw(){const i=this.state.startLoc,c=this.parseIdentifier(!0),d=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:i};return{id:c,init:d}}flowEnumCheckExplicitTypeMismatch(i,c,d){const{explicitType:A}=c;A!==null&&A!==d&&this.flowEnumErrorInvalidMemberInitializer(i,c)}flowEnumMembers({enumName:i,explicitType:c}){const d=new Set,A={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let Q=!1;for(;!this.match(8);){if(this.eat(21)){Q=!0;break}const le=this.startNode(),{id:Pe,init:Be}=this.flowEnumMemberRaw(),Ue=Pe.name;if(Ue==="")continue;/^[a-z]/.test(Ue)&&this.raise(Rt.EnumInvalidMemberName,Pe,{memberName:Ue,suggestion:Ue[0].toUpperCase()+Ue.slice(1),enumName:i}),d.has(Ue)&&this.raise(Rt.EnumDuplicateMemberName,Pe,{memberName:Ue,enumName:i}),d.add(Ue);const ct={enumName:i,explicitType:c,memberName:Ue};switch(le.id=Pe,Be.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(Be.loc,ct,"boolean"),le.init=Be.value,A.booleanMembers.push(this.finishNode(le,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(Be.loc,ct,"number"),le.init=Be.value,A.numberMembers.push(this.finishNode(le,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(Be.loc,ct,"string"),le.init=Be.value,A.stringMembers.push(this.finishNode(le,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Be.loc,ct);case"none":switch(c){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Be.loc,ct);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Be.loc,ct);break;default:A.defaultedMembers.push(this.finishNode(le,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:A,hasUnknownMembers:Q}}flowEnumStringMembers(i,c,{enumName:d}){if(i.length===0)return c;if(c.length===0)return i;if(c.length>i.length){for(const A of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(A,{enumName:d});return c}else{for(const A of c)this.flowEnumErrorStringMemberInconsistentlyInitialized(A,{enumName:d});return i}}flowEnumParseExplicitType({enumName:i}){if(!this.eatContextual(102))return null;if(!Ve(this.state.type))throw this.raise(Rt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:i});const{value:c}=this.state;return this.next(),c!=="boolean"&&c!=="number"&&c!=="string"&&c!=="symbol"&&this.raise(Rt.EnumInvalidExplicitType,this.state.startLoc,{enumName:i,invalidEnumType:c}),c}flowEnumBody(i,c){const d=c.name,A=c.loc.start,Q=this.flowEnumParseExplicitType({enumName:d});this.expect(5);const{members:le,hasUnknownMembers:Pe}=this.flowEnumMembers({enumName:d,explicitType:Q});switch(i.hasUnknownMembers=Pe,Q){case"boolean":return i.explicitType=!0,i.members=le.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody");case"number":return i.explicitType=!0,i.members=le.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody");case"string":return i.explicitType=!0,i.members=this.flowEnumStringMembers(le.stringMembers,le.defaultedMembers,{enumName:d}),this.expect(8),this.finishNode(i,"EnumStringBody");case"symbol":return i.members=le.defaultedMembers,this.expect(8),this.finishNode(i,"EnumSymbolBody");default:{const Be=()=>(i.members=[],this.expect(8),this.finishNode(i,"EnumStringBody"));i.explicitType=!1;const Ue=le.booleanMembers.length,ct=le.numberMembers.length,vt=le.stringMembers.length,wt=le.defaultedMembers.length;if(!Ue&&!ct&&!vt&&!wt)return Be();if(!Ue&&!ct)return i.members=this.flowEnumStringMembers(le.stringMembers,le.defaultedMembers,{enumName:d}),this.expect(8),this.finishNode(i,"EnumStringBody");if(!ct&&!vt&&Ue>=wt){for(const Ot of le.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Ot.loc.start,{enumName:d,memberName:Ot.id.name});return i.members=le.booleanMembers,this.expect(8),this.finishNode(i,"EnumBooleanBody")}else if(!Ue&&!vt&&ct>=wt){for(const Ot of le.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Ot.loc.start,{enumName:d,memberName:Ot.id.name});return i.members=le.numberMembers,this.expect(8),this.finishNode(i,"EnumNumberBody")}else return this.raise(Rt.EnumInconsistentMemberValues,A,{enumName:d}),Be()}}}flowParseEnumDeclaration(i){const c=this.parseIdentifier();return i.id=c,i.body=this.flowEnumBody(this.startNode(),c),this.finishNode(i,"EnumDeclaration")}jsxParseOpeningElementAfterName(i){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(i.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(i)}isLookaheadToken_lt(){const i=this.nextTokenStart();if(this.input.charCodeAt(i)===60){const c=this.input.charCodeAt(i+1);return c!==60&&c!==61}return!1}reScan_lt_gt(){const{type:i}=this.state;i===47?(this.state.pos-=1,this.readToken_lt()):i===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:i}=this.state;return i===51?(this.state.pos-=2,this.finishOp(47,1),47):i}maybeUnwrapTypeCastExpression(i){return i.type==="TypeCastExpression"?i.expression:i}};const Kr={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Hn=/\r\n|[\r\n\u2028\u2029]/,Nr=new RegExp(Hn.source,"g");function An(z){switch(z){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function fi(z,l,i){for(let c=l;c<i;c++)if(An(z.charCodeAt(c)))return!0;return!1}const dr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,rn=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function nn(z){switch(z){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}const hn=C`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:z})=>`Expected corresponding JSX closing tag for <${z}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:z,HTMLEntity:l})=>`Unexpected token \`${z}\`. Did you mean \`${l}\` or \`{'${z}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Wr(z){return z?z.type==="JSXOpeningFragment"||z.type==="JSXClosingFragment":!1}function yn(z){if(z.type==="JSXIdentifier")return z.name;if(z.type==="JSXNamespacedName")return z.namespace.name+":"+z.name.name;if(z.type==="JSXMemberExpression")return yn(z.object)+"."+yn(z.property);throw new Error("Node had unexpected type: "+z.type)}var Ri=z=>class extends z{jsxReadToken(){let i="",c=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(hn.UnterminatedJsxContent,this.state.startLoc);const d=this.input.charCodeAt(this.state.pos);switch(d){case 60:case 123:if(this.state.pos===this.state.start){d===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(d);return}i+=this.input.slice(c,this.state.pos),this.finishToken(142,i);return;case 38:i+=this.input.slice(c,this.state.pos),i+=this.jsxReadEntity(),c=this.state.pos;break;case 62:case 125:default:An(d)?(i+=this.input.slice(c,this.state.pos),i+=this.jsxReadNewLine(!0),c=this.state.pos):++this.state.pos}}}jsxReadNewLine(i){const c=this.input.charCodeAt(this.state.pos);let d;return++this.state.pos,c===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,d=i?`
28
28
  `:`\r
29
29
  `):d=String.fromCharCode(c),++this.state.curLine,this.state.lineStart=this.state.pos,d}jsxReadString(i){let c="",d=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(T.UnterminatedString,this.state.startLoc);const A=this.input.charCodeAt(this.state.pos);if(A===i)break;A===38?(c+=this.input.slice(d,this.state.pos),c+=this.jsxReadEntity(),d=this.state.pos):An(A)?(c+=this.input.slice(d,this.state.pos),c+=this.jsxReadNewLine(!1),d=this.state.pos):++this.state.pos}c+=this.input.slice(d,this.state.pos++),this.finishToken(134,c)}jsxReadEntity(){const i=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let c=10;this.codePointAtPos(this.state.pos)===120&&(c=16,++this.state.pos);const d=this.readInt(c,void 0,!1,"bail");if(d!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(d)}else{let c=0,d=!1;for(;c++<10&&this.state.pos<this.length&&!(d=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(d){const A=this.input.slice(i,this.state.pos),Q=Kr[A];if(++this.state.pos,Q)return Q}}return this.state.pos=i,"&"}jsxReadWord(){let i;const c=this.state.pos;do i=this.input.charCodeAt(++this.state.pos);while(G(i)||i===45);this.finishToken(141,this.input.slice(c,this.state.pos))}jsxParseIdentifier(){const i=this.startNode();return this.match(141)?i.name=this.state.value:gt(this.state.type)?i.name=oe(this.state.type):this.unexpected(),this.next(),this.finishNode(i,"JSXIdentifier")}jsxParseNamespacedName(){const i=this.state.startLoc,c=this.jsxParseIdentifier();if(!this.eat(14))return c;const d=this.startNodeAt(i);return d.namespace=c,d.name=this.jsxParseIdentifier(),this.finishNode(d,"JSXNamespacedName")}jsxParseElementName(){const i=this.state.startLoc;let c=this.jsxParseNamespacedName();if(c.type==="JSXNamespacedName")return c;for(;this.eat(16);){const d=this.startNodeAt(i);d.object=c,d.property=this.jsxParseIdentifier(),c=this.finishNode(d,"JSXMemberExpression")}return c}jsxParseAttributeValue(){let i;switch(this.state.type){case 5:return i=this.startNode(),this.setContext(J.brace),this.next(),i=this.jsxParseExpressionContainer(i,J.j_oTag),i.expression.type==="JSXEmptyExpression"&&this.raise(hn.AttributeIsEmpty,i),i;case 143:case 134:return this.parseExprAtom();default:throw this.raise(hn.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const i=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(i,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(i){return this.next(),i.expression=this.parseExpression(),this.setContext(J.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(i,"JSXSpreadChild")}jsxParseExpressionContainer(i,c){if(this.match(8))i.expression=this.jsxParseEmptyExpression();else{const d=this.parseExpression();i.expression=d}return this.setContext(c),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(i,"JSXExpressionContainer")}jsxParseAttribute(){const i=this.startNode();return this.match(5)?(this.setContext(J.brace),this.next(),this.expect(21),i.argument=this.parseMaybeAssignAllowIn(),this.setContext(J.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(i,"JSXSpreadAttribute")):(i.name=this.jsxParseNamespacedName(),i.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(i,"JSXAttribute"))}jsxParseOpeningElementAt(i){const c=this.startNodeAt(i);return this.eat(144)?this.finishNode(c,"JSXOpeningFragment"):(c.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(c))}jsxParseOpeningElementAfterName(i){const c=[];for(;!this.match(56)&&!this.match(144);)c.push(this.jsxParseAttribute());return i.attributes=c,i.selfClosing=this.eat(56),this.expect(144),this.finishNode(i,"JSXOpeningElement")}jsxParseClosingElementAt(i){const c=this.startNodeAt(i);return this.eat(144)?this.finishNode(c,"JSXClosingFragment"):(c.name=this.jsxParseElementName(),this.expect(144),this.finishNode(c,"JSXClosingElement"))}jsxParseElementAt(i){const c=this.startNodeAt(i),d=[],A=this.jsxParseOpeningElementAt(i);let Q=null;if(!A.selfClosing){e:for(;;)switch(this.state.type){case 143:if(i=this.state.startLoc,this.next(),this.eat(56)){Q=this.jsxParseClosingElementAt(i);break e}d.push(this.jsxParseElementAt(i));break;case 142:d.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const le=this.startNode();this.setContext(J.brace),this.next(),this.match(21)?d.push(this.jsxParseSpreadChild(le)):d.push(this.jsxParseExpressionContainer(le,J.j_expr));break}default:this.unexpected()}Wr(A)&&!Wr(Q)&&Q!==null?this.raise(hn.MissingClosingTagFragment,Q):!Wr(A)&&Wr(Q)?this.raise(hn.MissingClosingTagElement,Q,{openingTagName:yn(A.name)}):!Wr(A)&&!Wr(Q)&&yn(Q.name)!==yn(A.name)&&this.raise(hn.MissingClosingTagElement,Q,{openingTagName:yn(A.name)})}if(Wr(A)?(c.openingFragment=A,c.closingFragment=Q):(c.openingElement=A,c.closingElement=Q),c.children=d,this.match(47))throw this.raise(hn.UnwrappedAdjacentJSXElements,this.state.startLoc);return Wr(A)?this.finishNode(c,"JSXFragment"):this.finishNode(c,"JSXElement")}jsxParseElement(){const i=this.state.startLoc;return this.next(),this.jsxParseElementAt(i)}setContext(i){const{context:c}=this.state;c[c.length-1]=i}parseExprAtom(i){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(i)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(i){const c=this.curContext();if(c===J.j_expr){this.jsxReadToken();return}if(c===J.j_oTag||c===J.j_cTag){if(de(i)){this.jsxReadWord();return}if(i===62){++this.state.pos,this.finishToken(144);return}if((i===34||i===39)&&c===J.j_oTag){this.jsxReadString(i);return}}if(i===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(i)}updateContext(i){const{context:c,type:d}=this.state;if(d===56&&i===143)c.splice(-2,2,J.j_cTag),this.state.canStartJSXElement=!1;else if(d===143)c.push(J.j_oTag);else if(d===144){const A=c[c.length-1];A===J.j_oTag&&i===56||A===J.j_cTag?(c.pop(),this.state.canStartJSXElement=c[c.length-1]===J.j_expr):(this.setContext(J.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=dt(d)}};class Cn extends Wt{constructor(...l){super(...l),this.tsNames=new Map}}class is extends tr{constructor(...l){super(...l),this.importsStack=[]}createScope(l){return this.importsStack.push(new Set),new Cn(l)}enter(l){l===1024&&this.importsStack.push(new Set),super.enter(l)}exit(){const l=super.exit();return l===1024&&this.importsStack.pop(),l}hasImport(l,i){const c=this.importsStack.length;if(this.importsStack[c-1].has(l))return!0;if(!i&&c>1){for(let d=0;d<c-1;d++)if(this.importsStack[d].has(l))return!0}return!1}declareName(l,i,c){if(i&4096){this.hasImport(l,!0)&&this.parser.raise(T.VarRedeclaration,c,{identifierName:l}),this.importsStack[this.importsStack.length-1].add(l);return}const d=this.currentScope();let A=d.tsNames.get(l)||0;if(i&1024){this.maybeExportDefined(d,l),d.tsNames.set(l,A|16);return}super.declareName(l,i,c),i&2&&(i&1||(this.checkRedeclarationInScope(d,l,i,c),this.maybeExportDefined(d,l)),A=A|1),i&256&&(A=A|2),i&512&&(A=A|4),i&128&&(A=A|8),A&&d.tsNames.set(l,A)}isRedeclaredInScope(l,i,c){const d=l.tsNames.get(i);if((d&2)>0){if(c&256){const A=!!(c&512),Q=(d&4)>0;return A!==Q}return!0}return c&128&&(d&8)>0?l.names.get(i)&2?!!(c&1):!1:c&2&&(d&1)>0?!0:super.isRedeclaredInScope(l,i,c)}checkLocalExport(l){const{name:i}=l;if(this.hasImport(i))return;const c=this.scopeStack.length;for(let d=c-1;d>=0;d--){const Q=this.scopeStack[d].tsNames.get(i);if((Q&1)>0||(Q&16)>0)return}super.checkLocalExport(l)}}class pi{constructor(){this.stacks=[]}enter(l){this.stacks.push(l)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function Jn(z,l){return(z?2:0)|(l?1:0)}class zt{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(l){return l+this.startIndex}offsetToSourcePos(l){return l-this.startIndex}hasPlugin(l){if(typeof l=="string")return this.plugins.has(l);{const[i,c]=l;if(!this.hasPlugin(i))return!1;const d=this.plugins.get(i);for(const A of Object.keys(c))if((d==null?void 0:d[A])!==c[A])return!1;return!0}}getPluginOption(l,i){var c;return(c=this.plugins.get(l))==null?void 0:c[i]}}function ji(z,l){z.trailingComments===void 0?z.trailingComments=l:z.trailingComments.unshift(...l)}function ss(z,l){z.leadingComments===void 0?z.leadingComments=l:z.leadingComments.unshift(...l)}function mn(z,l){z.innerComments===void 0?z.innerComments=l:z.innerComments.unshift(...l)}function Pr(z,l,i){let c=null,d=l.length;for(;c===null&&d>0;)c=l[--d];c===null||c.start>i.start?mn(z,i.comments):ji(c,i.comments)}class as extends zt{addComment(l){this.filename&&(l.loc.filename=this.filename);const{commentsLen:i}=this.state;this.comments.length!==i&&(this.comments.length=i),this.comments.push(l),this.state.commentsLen++}processComment(l){const{commentStack:i}=this.state,c=i.length;if(c===0)return;let d=c-1;const A=i[d];A.start===l.end&&(A.leadingNode=l,d--);const{start:Q}=l;for(;d>=0;d--){const le=i[d],Pe=le.end;if(Pe>Q)le.containingNode=l,this.finalizeComment(le),i.splice(d,1);else{Pe===Q&&(le.trailingNode=l);break}}}finalizeComment(l){var i;const{comments:c}=l;if(l.leadingNode!==null||l.trailingNode!==null)l.leadingNode!==null&&ji(l.leadingNode,c),l.trailingNode!==null&&ss(l.trailingNode,c);else{const d=l.containingNode,A=l.start;if(this.input.charCodeAt(this.offsetToSourcePos(A)-1)===44)switch(d.type){case"ObjectExpression":case"ObjectPattern":Pr(d,d.properties,l);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Pr(d,d.arguments,l);break;case"ImportExpression":Pr(d,[d.source,(i=d.options)!=null?i:null],l);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Pr(d,d.params,l);break;case"ArrayExpression":case"ArrayPattern":Pr(d,d.elements,l);break;case"ExportNamedDeclaration":case"ImportDeclaration":Pr(d,d.specifiers,l);break;case"TSEnumDeclaration":Pr(d,d.members,l);break;case"TSEnumBody":Pr(d,d.members,l);break;case"TSInterfaceBody":Pr(d,d.body,l);break;default:{if(d.type==="RecordExpression"){Pr(d,d.properties,l);break}if(d.type==="TupleExpression"){Pr(d,d.elements,l);break}mn(d,c)}}else mn(d,c)}}finalizeRemainingComments(){const{commentStack:l}=this.state;for(let i=l.length-1;i>=0;i--)this.finalizeComment(l[i]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(l){const{commentStack:i}=this.state,{length:c}=i;if(c===0)return;const d=i[c-1];d.leadingNode===l&&(d.leadingNode=null)}takeSurroundingComments(l,i,c){const{commentStack:d}=this.state,A=d.length;if(A===0)return;let Q=A-1;for(;Q>=0;Q--){const le=d[Q],Pe=le.end;if(le.start===c)le.leadingNode=l;else if(Pe===i)le.trailingNode=l;else if(Pe<i)break}}}class di{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[J.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(l){l?this.flags|=1:this.flags&=-2}init({strictMode:l,sourceType:i,startIndex:c,startLine:d,startColumn:A}){this.strict=l===!1?!1:l===!0?!0:i==="module",this.startIndex=c,this.curLine=d,this.lineStart=-A,this.startLoc=this.endLoc=new e(d,A,c)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(l){l?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(l){l?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(l){l?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(l){l?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(l){l?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(l){l?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(l){l?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(l){l?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(l){l?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(l){l?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(l){l?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(l){l?this.flags|=4096:this.flags&=-4097}curPosition(){return new e(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const l=new di;return l.flags=this.flags,l.startIndex=this.startIndex,l.curLine=this.curLine,l.lineStart=this.lineStart,l.startLoc=this.startLoc,l.endLoc=this.endLoc,l.errors=this.errors.slice(),l.potentialArrowAt=this.potentialArrowAt,l.noArrowAt=this.noArrowAt.slice(),l.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),l.topicContext=this.topicContext,l.labels=this.labels.slice(),l.commentsLen=this.commentsLen,l.commentStack=this.commentStack.slice(),l.pos=this.pos,l.type=this.type,l.value=this.value,l.start=this.start,l.end=this.end,l.lastTokEndLoc=this.lastTokEndLoc,l.lastTokStartLoc=this.lastTokStartLoc,l.context=this.context.slice(),l.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,l.strictErrors=this.strictErrors,l.tokensLength=this.tokensLength,l}}var os=function(l){return l>=48&&l<=57};const ir={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},gn={bin:z=>z===48||z===49,oct:z=>z>=48&&z<=55,dec:z=>z>=48&&z<=57,hex:z=>z>=48&&z<=57||z>=65&&z<=70||z>=97&&z<=102};function Bn(z,l,i,c,d,A){const Q=i,le=c,Pe=d;let Be="",Ue=null,ct=i;const{length:vt}=l;for(;;){if(i>=vt){A.unterminated(Q,le,Pe),Be+=l.slice(ct,i);break}const wt=l.charCodeAt(i);if(Rn(z,wt,l,i)){Be+=l.slice(ct,i);break}if(wt===92){Be+=l.slice(ct,i);const Ot=Mi(l,i,c,d,z==="template",A);Ot.ch===null&&!Ue?Ue={pos:i,lineStart:c,curLine:d}:Be+=Ot.ch,{pos:i,lineStart:c,curLine:d}=Ot,ct=i}else wt===8232||wt===8233?(++i,++d,c=i):wt===10||wt===13?z==="template"?(Be+=l.slice(ct,i)+`
30
30
  `,++i,wt===13&&l.charCodeAt(i)===10&&++i,++d,ct=c=i):A.unterminated(Q,le,Pe):++i}return{pos:i,str:Be,firstInvalidLoc:Ue,lineStart:c,curLine:d,containsInvalid:!!Ue}}function Rn(z,l,i,c){return z==="template"?l===96||l===36&&i.charCodeAt(c+1)===123:l===(z==="double"?34:39)}function Mi(z,l,i,c,d,A){const Q=!d;l++;const le=Be=>({pos:l,ch:Be,lineStart:i,curLine:c}),Pe=z.charCodeAt(l++);switch(Pe){case 110:return le(`
@@ -43,7 +43,7 @@ ${K}`),Z?N.reset(K):K}function j(R,I,D,Z={}){if(!C){C=!0;const N="Passing lineNu
43
43
  =============
44
44
  ${u}`,y}}}return Bc}var c1;function Uc(){if(c1)return _n;c1=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.statements=_n.statement=_n.smart=_n.program=_n.expression=_n.default=void 0;var t=mx(),e=Tx();const r=_n.smart=(0,e.default)(t.smart),n=_n.statement=(0,e.default)(t.statement),s=_n.statements=(0,e.default)(t.statements),o=_n.expression=(0,e.default)(t.expression),a=_n.program=(0,e.default)(t.program);return _n.default=Object.assign(r.bind(void 0),{smart:r,statement:n,statements:s,expression:o,program:a,ast:r.ast}),_n}var u1;function Ex(){if(u1)return Ro;u1=1,Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.default=void 0;var t=Uc();function e(n,s,o){return Object.freeze({minVersion:n,ast:()=>t.default.program.ast(s,{preserveComments:!0}),metadata:o})}const r=Ro.default={__proto__:null,OverloadYield:e("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{},internal:!1}),applyDecoratedDescriptor:e("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach(function(i){a[i]=n[i]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce(function(r,n){return n(i,e,r)||r},a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{},internal:!1}),applyDecs2311:e("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function b(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function applyDec(e,t,n,r,o,i,u,s,f,l,p){function d(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),v=t[3],w=!u,D=1===o,S=3===o,j=4===o,E=2===o;function I(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),P[t].call(o,i)}}if(!w){var P={},k=[],F=S?"get":j||D?"set":"value";if(f?(l||D?P={get:setFunctionName(function(){return v(this)},r,"get"),set:function(e){t[4](this,e)}}:P[F]=v,l||setFunctionName(P[F],r,E?"":F)):l||(P=Object.getOwnPropertyDescriptor(e,r)),!l&&!f){if((c=y[+s][r])&&7!==(c^o))throw Error("Decorating two elements with the same name ("+P[F].name+") is not supported yet");y[+s][r]=o<3?1:o}}for(var N=e,O=h.length-1;O>=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;i<n.length;i++){var a=n[i],c=a[1],l=7&c;if((8&c)==t&&!l==r){var p=a[2],d=!!a[3],m=16&c;applyDec(t?e:e.prototype,a,m,d?"#"+p:toPropertyKey(p),l,l<2?[]:t?s=s||[]:u=u||[],f,!!t,d,r,t&&d?function(t){return checkInRHS(t)===e}:o)}}},p(8,0),p(0,0),p(8,1),p(0,1),l(u),l(s),c=f,v||w(e),{e:c,get c(){var n=[];return v&&[w(e=applyDec(e,[t],r,e.name,5,n)),g(n,1)]}}}',{globals:["Symbol","Object","TypeError","Error"],locals:{applyDecs2311:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2311",dependencies:{checkInRHS:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.10.consequent.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.3.alternate.callee"]},internal:!1}),arrayLikeToArray:e("7.9.0","function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}",{globals:["Array"],locals:{_arrayLikeToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayLikeToArray",dependencies:{},internal:!1}),arrayWithHoles:e("7.0.0-beta.0","function _arrayWithHoles(r){if(Array.isArray(r))return r}",{globals:["Array"],locals:{_arrayWithHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithHoles",dependencies:{},internal:!1}),arrayWithoutHoles:e("7.0.0-beta.0","function _arrayWithoutHoles(r){if(Array.isArray(r))return arrayLikeToArray(r)}",{globals:["Array"],locals:{_arrayWithoutHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithoutHoles",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.argument.callee"]},internal:!1}),assertClassBrand:e("7.24.0",'function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}',{globals:["TypeError"],locals:{_assertClassBrand:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertClassBrand",dependencies:{},internal:!1}),assertThisInitialized:e("7.0.0-beta.0",`function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}`,{globals:["ReferenceError"],locals:{_assertThisInitialized:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertThisInitialized",dependencies:{},internal:!1}),asyncGeneratorDelegate:e("7.0.0-beta.0",'function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r))}),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}',{globals:["Promise","Symbol"],locals:{_asyncGeneratorDelegate:["body.0.id"]},exportBindingAssignments:[],exportName:"_asyncGeneratorDelegate",dependencies:{OverloadYield:["body.0.body.body.1.body.body.0.argument.expressions.2.properties.1.value.callee"]},internal:!1}),asyncIterator:e("7.15.9",'function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n}})}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}',{globals:["Symbol","TypeError","Object","Promise"],locals:{_asyncIterator:["body.0.id"],AsyncFromSyncIterator:["body.1.id","body.0.body.body.1.body.body.1.consequent.argument.callee","body.1.body.body.1.argument.expressions.1.left.object","body.1.body.body.1.argument.expressions.2.callee","body.1.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:[],exportName:"_asyncIterator",dependencies:{},internal:!1}),asyncToGenerator:e("7.0.0-beta.0",'function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}}',{globals:["Promise"],locals:{asyncGeneratorStep:["body.0.id","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.1.body.body.0.expression.callee","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.2.body.body.0.expression.callee"],_asyncToGenerator:["body.1.id"]},exportBindingAssignments:[],exportName:"_asyncToGenerator",dependencies:{},internal:!1}),awaitAsyncGenerator:e("7.0.0-beta.0","function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}",{globals:[],locals:{_awaitAsyncGenerator:["body.0.id"]},exportBindingAssignments:[],exportName:"_awaitAsyncGenerator",dependencies:{OverloadYield:["body.0.body.body.0.argument.callee"]},internal:!1}),callSuper:e("7.23.8","function _callSuper(t,o,e){return o=getPrototypeOf(o),possibleConstructorReturn(t,isNativeReflectConstruct()?Reflect.construct(o,e||[],getPrototypeOf(t).constructor):o.apply(t,e))}",{globals:["Reflect"],locals:{_callSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_callSuper",dependencies:{getPrototypeOf:["body.0.body.body.0.argument.expressions.0.right.callee","body.0.body.body.0.argument.expressions.1.arguments.1.consequent.arguments.2.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.argument.expressions.1.arguments.1.test.callee"],possibleConstructorReturn:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),checkInRHS:e("7.20.5",`function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?typeof e:"null"));return e}`,{globals:["Object","TypeError"],locals:{_checkInRHS:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkInRHS",dependencies:{},internal:!1}),checkPrivateRedeclaration:e("7.14.1",'function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}',{globals:["TypeError"],locals:{_checkPrivateRedeclaration:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkPrivateRedeclaration",dependencies:{},internal:!1}),classCallCheck:e("7.0.0-beta.0",'function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}',{globals:["TypeError"],locals:{_classCallCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCallCheck",dependencies:{},internal:!1}),classNameTDZError:e("7.0.0-beta.0",`function _classNameTDZError(e){throw new ReferenceError('Class "'+e+'" cannot be referenced in computed property keys.')}`,{globals:["ReferenceError"],locals:{_classNameTDZError:["body.0.id"]},exportBindingAssignments:[],exportName:"_classNameTDZError",dependencies:{},internal:!1}),classPrivateFieldGet2:e("7.24.0","function _classPrivateFieldGet2(s,a){return s.get(assertClassBrand(s,a))}",{globals:[],locals:{_classPrivateFieldGet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),classPrivateFieldInitSpec:e("7.14.1","function _classPrivateFieldInitSpec(e,t,a){checkPrivateRedeclaration(e,t),t.set(e,a)}",{globals:[],locals:{_classPrivateFieldInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:!1}),classPrivateFieldLooseBase:e("7.0.0-beta.0",'function _classPrivateFieldBase(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}',{globals:["TypeError"],locals:{_classPrivateFieldBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldBase",dependencies:{},internal:!1}),classPrivateFieldLooseKey:e("7.0.0-beta.0",'var id=0;function _classPrivateFieldKey(e){return"__private_"+id+++"_"+e}',{globals:[],locals:{id:["body.0.declarations.0.id","body.1.body.body.0.argument.left.left.right.argument","body.1.body.body.0.argument.left.left.right.argument"],_classPrivateFieldKey:["body.1.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldKey",dependencies:{},internal:!1}),classPrivateFieldSet2:e("7.24.0","function _classPrivateFieldSet2(s,a,r){return s.set(assertClassBrand(s,a),r),r}",{globals:[],locals:{_classPrivateFieldSet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:!1}),classPrivateGetter:e("7.24.0","function _classPrivateGetter(s,r,a){return a(assertClassBrand(s,r))}",{globals:[],locals:{_classPrivateGetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateGetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),classPrivateMethodInitSpec:e("7.14.1","function _classPrivateMethodInitSpec(e,a){checkPrivateRedeclaration(e,a),a.add(e)}",{globals:[],locals:{_classPrivateMethodInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:!1}),classPrivateSetter:e("7.24.0","function _classPrivateSetter(s,r,a,t){return r(assertClassBrand(s,a),t),t}",{globals:[],locals:{_classPrivateSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateSetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:!1}),classStaticPrivateMethodGet:e("7.3.2","function _classStaticPrivateMethodGet(s,a,t){return assertClassBrand(a,s),t}",{globals:[],locals:{_classStaticPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:!1}),construct:e("7.0.0-beta.0","function _construct(t,e,r){if(isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&setPrototypeOf(p,r.prototype),p}",{globals:["Reflect"],locals:{_construct:["body.0.id"]},exportBindingAssignments:[],exportName:"_construct",dependencies:{isNativeReflectConstruct:["body.0.body.body.0.test.callee"],setPrototypeOf:["body.0.body.body.4.argument.expressions.0.right.callee"]},internal:!1}),createClass:e("7.0.0-beta.0",'function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}',{globals:["Object"],locals:{_defineProperties:["body.0.id","body.1.body.body.0.argument.expressions.0.right.callee","body.1.body.body.0.argument.expressions.1.right.callee"],_createClass:["body.1.id"]},exportBindingAssignments:[],exportName:"_createClass",dependencies:{toPropertyKey:["body.0.body.body.0.body.body.1.expression.expressions.3.arguments.1.callee"]},internal:!1}),createForOfIteratorHelper:e("7.9.0",'function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function(){};return{s:F,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]},internal:!1}),createForOfIteratorHelperLoose:e("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]},internal:!1}),createSuper:e("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]},internal:!1}),decorate:e("7.1.5",`function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n<i.length;n++)o=i[n](o);var s=r(function(e){o.initializeInstanceElements(e,a.elements)},t),a=o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)),e);return o.initializeClassElements(s.F,a.elements),o.runClassFinishers(s.F,a.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach(function(t){r.forEach(function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)},this)},this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach(function(i){r.forEach(function(r){var o=r.placement;if(r.kind===i&&("static"===o||"prototype"===o)){var n="static"===o?e:t;this.defineClassElement(n,r)}},this)},this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],o={static:[],prototype:[],own:[]};if(e.forEach(function(e){this.addElementPlacement(e,o)},this),e.forEach(function(e){if(!_hasDecorators(e))return t.push(e);var r=this.decorateElement(e,o);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)},this),!r)return{elements:t,finishers:i};var n=this.decorateConstructor(t,r);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],o=e.decorators,n=o.length-1;n>=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return toArray(e).map(function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r},this)},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError('An element descriptor\\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=toPropertyKey(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var n={kind:r,key:t,placement:i,descriptor:Object.assign({},o)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:_optionalCallableProperty(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError('A class descriptor\\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=_optionalCallableProperty(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can't have a ."+r+" property.")}};return e}function _createElementDescriptor(e){var r,t=toPropertyKey(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function _coalesceGetterSetter(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function _coalesceClassElements(e){for(var r=[],isSameElement=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},t=0;t<e.length;t++){var i,o=e[t];if("method"===o.kind&&(i=r.find(isSameElement)))if(_isDataDescriptor(o.descriptor)||_isDataDescriptor(i.descriptor)){if(_hasDecorators(o)||_hasDecorators(i))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(_hasDecorators(o)){if(_hasDecorators(i))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}_coalesceGetterSetter(o,i)}else r.push(o)}return r}function _hasDecorators(e){return e.decorators&&e.decorators.length}function _isDataDescriptor(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function _optionalCallableProperty(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected '"+r+"' to be a function");return t}`,{globals:["Object","TypeError","Symbol","ReferenceError"],locals:{_decorate:["body.0.id"],_getDecoratorsApi:["body.1.id","body.0.body.body.0.declarations.0.init.callee","body.1.body.body.0.expression.left"],_createElementDescriptor:["body.2.id","body.0.body.body.2.declarations.1.init.arguments.0.arguments.0.arguments.0"],_coalesceGetterSetter:["body.3.id","body.4.body.body.0.body.body.1.consequent.alternate.body.1.expression.callee"],_coalesceClassElements:["body.4.id","body.0.body.body.2.declarations.1.init.arguments.0.callee"],_hasDecorators:["body.5.id","body.1.body.body.1.declarations.0.init.properties.4.value.body.body.1.test.expressions.1.arguments.0.body.body.0.test.argument.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.left.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.right.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.test.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.consequent.body.0.test.callee"],_isDataDescriptor:["body.6.id","body.4.body.body.0.body.body.1.consequent.test.left.callee","body.4.body.body.0.body.body.1.consequent.test.right.callee"],_optionalCallableProperty:["body.7.id","body.1.body.body.1.declarations.0.init.properties.11.value.body.body.0.argument.properties.1.value.callee","body.1.body.body.1.declarations.0.init.properties.13.value.body.body.3.declarations.0.init.callee"]},exportBindingAssignments:[],exportName:"_decorate",dependencies:{toArray:["body.1.body.body.1.declarations.0.init.properties.9.value.body.body.0.consequent.argument.callee.object.callee"],toPropertyKey:["body.1.body.body.1.declarations.0.init.properties.10.value.body.body.2.declarations.0.init.callee","body.2.body.body.0.declarations.1.init.callee"]},internal:!1}),defaults:e("7.0.0-beta.0","function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}",{globals:["Object"],locals:{_defaults:["body.0.id"]},exportBindingAssignments:[],exportName:"_defaults",dependencies:{},internal:!1}),defineAccessor:e("7.20.7","function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty(r,n,c)}",{globals:["Object"],locals:{_defineAccessor:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineAccessor",dependencies:{},internal:!1}),defineProperty:e("7.0.0-beta.0","function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}",{globals:["Object"],locals:{_defineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineProperty",dependencies:{toPropertyKey:["body.0.body.body.0.argument.expressions.0.test.left.right.callee"]},internal:!1}),extends:e("7.0.0-beta.0","function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}",{globals:["Object"],locals:{_extends:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_extends",dependencies:{},internal:!1}),get:e("7.0.0-beta.0",'function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},_get.apply(null,arguments)}',{globals:["Reflect","Object"],locals:{_get:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_get",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.0.init.callee"]},internal:!1}),getPrototypeOf:e("7.0.0-beta.0","function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}",{globals:["Object"],locals:{_getPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_getPrototypeOf",dependencies:{},internal:!1}),identity:e("7.17.0","function _identity(t){return t}",{globals:[],locals:{_identity:["body.0.id"]},exportBindingAssignments:[],exportName:"_identity",dependencies:{},internal:!1}),importDeferProxy:e("7.23.0","function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=function(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValue(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:constValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:constValue(!1)})}",{globals:["Proxy","Reflect"],locals:{_importDeferProxy:["body.0.id"]},exportBindingAssignments:[],exportName:"_importDeferProxy",dependencies:{},internal:!1}),inherits:e("7.0.0-beta.0",'function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&setPrototypeOf(t,e)}',{globals:["TypeError","Object"],locals:{_inherits:["body.0.id"]},exportBindingAssignments:[],exportName:"_inherits",dependencies:{setPrototypeOf:["body.0.body.body.1.expression.expressions.2.right.callee"]},internal:!1}),inheritsLoose:e("7.0.0-beta.0","function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,setPrototypeOf(t,o)}",{globals:["Object"],locals:{_inheritsLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_inheritsLoose",dependencies:{setPrototypeOf:["body.0.body.body.0.expression.expressions.2.callee"]},internal:!1}),initializerDefineProperty:e("7.0.0-beta.0","function _initializerDefineProperty(e,i,r,l){r&&Object.defineProperty(e,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(l):void 0})}",{globals:["Object"],locals:{_initializerDefineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerDefineProperty",dependencies:{},internal:!1}),initializerWarningHelper:e("7.0.0-beta.0",'function _initializerWarningHelper(r,e){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}',{globals:["Error"],locals:{_initializerWarningHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerWarningHelper",dependencies:{},internal:!1}),instanceof:e("7.0.0-beta.0",'function _instanceof(n,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](n):n instanceof e}',{globals:["Symbol"],locals:{_instanceof:["body.0.id"]},exportBindingAssignments:[],exportName:"_instanceof",dependencies:{},internal:!1}),interopRequireDefault:e("7.0.0-beta.0","function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}",{globals:[],locals:{_interopRequireDefault:["body.0.id"]},exportBindingAssignments:[],exportName:"_interopRequireDefault",dependencies:{},internal:!1}),interopRequireWildcard:e("7.14.0",'function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(f,t,i):f[t]=e[t]);return f})(e,t)}',{globals:["WeakMap","Object"],locals:{_interopRequireWildcard:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_interopRequireWildcard",dependencies:{},internal:!1}),isNativeFunction:e("7.0.0-beta.0",'function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}',{globals:["Function"],locals:{_isNativeFunction:["body.0.id"]},exportBindingAssignments:[],exportName:"_isNativeFunction",dependencies:{},internal:!1}),isNativeReflectConstruct:e("7.9.0","function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}",{globals:["Boolean","Reflect"],locals:{_isNativeReflectConstruct:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_isNativeReflectConstruct",dependencies:{},internal:!1}),iterableToArray:e("7.0.0-beta.0",'function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}',{globals:["Symbol","Array"],locals:{_iterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArray",dependencies:{},internal:!1}),iterableToArrayLimit:e("7.0.0-beta.0",'function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}',{globals:["Symbol","Object"],locals:{_iterableToArrayLimit:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArrayLimit",dependencies:{},internal:!1}),jsx:e("7.0.0-beta.0",'var REACT_ELEMENT_TYPE;function _createRawReactElement(e,r,E,l){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,n=arguments.length-3;if(r||0===n||(r={children:void 0}),1===n)r.children=l;else if(n>1){for(var t=Array(n),f=0;f<n;f++)t[f]=arguments[f+3];r.children=t}if(r&&o)for(var i in o)void 0===r[i]&&(r[i]=o[i]);else r||(r=o||{});return{$$typeof:REACT_ELEMENT_TYPE,type:e,key:void 0===E?null:""+E,ref:null,props:r,_owner:null}}',{globals:["Symbol","Array"],locals:{REACT_ELEMENT_TYPE:["body.0.declarations.0.id","body.1.body.body.0.expression.left","body.1.body.body.4.argument.properties.0.value","body.1.body.body.0.expression.right.left"],_createRawReactElement:["body.1.id"]},exportBindingAssignments:[],exportName:"_createRawReactElement",dependencies:{},internal:!1}),maybeArrayLike:e("7.9.0",'function _maybeArrayLike(r,a,e){if(a&&!Array.isArray(a)&&"number"==typeof a.length){var y=a.length;return arrayLikeToArray(a,void 0!==e&&e<y?e:y)}return r(a,e)}',{globals:["Array"],locals:{_maybeArrayLike:["body.0.id"]},exportBindingAssignments:[],exportName:"_maybeArrayLike",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.1.argument.callee"]},internal:!1}),newArrowCheck:e("7.0.0-beta.0",'function _newArrowCheck(n,r){if(n!==r)throw new TypeError("Cannot instantiate an arrow function")}',{globals:["TypeError"],locals:{_newArrowCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_newArrowCheck",dependencies:{},internal:!1}),nonIterableRest:e("7.0.0-beta.0",'function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableRest:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableRest",dependencies:{},internal:!1}),nonIterableSpread:e("7.0.0-beta.0",'function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableSpread",dependencies:{},internal:!1}),nullishReceiverError:e("7.22.6",'function _nullishReceiverError(r){throw new TypeError("Cannot set property of null or undefined.")}',{globals:["TypeError"],locals:{_nullishReceiverError:["body.0.id"]},exportBindingAssignments:[],exportName:"_nullishReceiverError",dependencies:{},internal:!1}),objectDestructuringEmpty:e("7.0.0-beta.0",'function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure "+t)}',{globals:["TypeError"],locals:{_objectDestructuringEmpty:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectDestructuringEmpty",dependencies:{},internal:!1}),objectSpread2:e("7.5.0","function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}",{globals:["Object"],locals:{ownKeys:["body.0.id","body.1.body.body.0.body.body.1.expression.consequent.callee.object.callee","body.1.body.body.0.body.body.1.expression.alternate.alternate.callee.object.callee"],_objectSpread2:["body.1.id"]},exportBindingAssignments:[],exportName:"_objectSpread2",dependencies:{defineProperty:["body.1.body.body.0.body.body.1.expression.consequent.arguments.0.body.body.0.expression.callee"]},internal:!1}),objectWithoutProperties:e("7.0.0-beta.0","function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}",{globals:["Object"],locals:{_objectWithoutProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutProperties",dependencies:{objectWithoutPropertiesLoose:["body.0.body.body.1.declarations.2.init.callee"]},internal:!1}),objectWithoutPropertiesLoose:e("7.0.0-beta.0","function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n]}return t}",{globals:[],locals:{_objectWithoutPropertiesLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutPropertiesLoose",dependencies:{},internal:!1}),possibleConstructorReturn:e("7.0.0-beta.0",'function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(t)}',{globals:["TypeError"],locals:{_possibleConstructorReturn:["body.0.id"]},exportBindingAssignments:[],exportName:"_possibleConstructorReturn",dependencies:{assertThisInitialized:["body.0.body.body.2.argument.callee"]},internal:!1}),readOnlyError:e("7.0.0-beta.0",`function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only')}`,{globals:["TypeError"],locals:{_readOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_readOnlyError",dependencies:{},internal:!1}),regenerator:e("7.27.0",`function _regenerator(){
45
45
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
46
- var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return define(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Generator"),define(u,n,function(){return this}),define(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}`,{globals:["Symbol","Object","TypeError"],locals:{_regenerator:["body.0.id","body.0.body.body.9.argument.expressions.9.callee.left"]},exportBindingAssignments:["body.0.body.body.9.argument.expressions.9.callee"],exportName:"_regenerator",dependencies:{regeneratorDefine:["body.0.body.body.1.body.body.1.argument.expressions.0.callee","body.0.body.body.7.declarations.0.init.alternate.expressions.0.callee","body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee","body.0.body.body.9.argument.expressions.1.callee","body.0.body.body.9.argument.expressions.2.callee","body.0.body.body.9.argument.expressions.4.callee","body.0.body.body.9.argument.expressions.5.callee","body.0.body.body.9.argument.expressions.6.callee","body.0.body.body.9.argument.expressions.7.callee","body.0.body.body.9.argument.expressions.8.callee"]},internal:!1}),regeneratorAsync:e("7.27.0","function _regeneratorAsync(n,e,r,t,o){var a=asyncGen(n,e,r,t,o);return a.next().then(function(n){return n.done?n.value:a.next()})}",{globals:[],locals:{_regeneratorAsync:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsync",dependencies:{regeneratorAsyncGen:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),regeneratorAsyncGen:e("7.27.0","function _regeneratorAsyncGen(r,e,t,o,n){return new regeneratorAsyncIterator(regenerator().w(r,e,t,o),n||Promise)}",{globals:["Promise"],locals:{_regeneratorAsyncGen:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsyncGen",dependencies:{regenerator:["body.0.body.body.0.argument.arguments.0.callee.object.callee"],regeneratorAsyncIterator:["body.0.body.body.0.argument.callee"]},internal:!1}),regeneratorAsyncIterator:e("7.27.0",'function AsyncIterator(t,e){function n(r,o,i,f){try{var c=t[r](o),u=c.value;return u instanceof OverloadYield?e.resolve(u.v).then(function(t){n("next",t,i,f)},function(t){n("throw",t,i,f)}):e.resolve(u).then(function(t){c.value=t,i(c)},function(t){return n("throw",t,i,f)})}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),define(this,"_invoke",function(t,o,i){function f(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(f,f):f()},!0)}',{globals:["Symbol"],locals:{AsyncIterator:["body.0.id","body.0.body.body.2.expression.expressions.0.right.expressions.0.arguments.0.object","body.0.body.body.2.expression.expressions.0.right.expressions.1.arguments.0.object"]},exportBindingAssignments:[],exportName:"AsyncIterator",dependencies:{OverloadYield:["body.0.body.body.0.body.body.0.block.body.1.argument.test.right"],regeneratorDefine:["body.0.body.body.2.expression.expressions.0.right.expressions.0.callee","body.0.body.body.2.expression.expressions.0.right.expressions.1.callee","body.0.body.body.2.expression.expressions.1.callee"]},internal:!0}),regeneratorDefine:e("7.27.0",'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regeneratorDefine=function(e,r,n,t){function o(r,n){regeneratorDefine(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},regeneratorDefine(e,r,n,t)}',{globals:["Object"],locals:{regeneratorDefine:["body.0.id","body.0.body.body.2.expression.expressions.0.right.body.body.0.body.body.0.expression.callee","body.0.body.body.2.expression.expressions.1.callee","body.0.body.body.2.expression.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.2.expression.expressions.0"],exportName:"regeneratorDefine",dependencies:{},internal:!0}),regeneratorKeys:e("7.27.0","function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.length;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}",{globals:["Object"],locals:{_regeneratorKeys:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorKeys",dependencies:{},internal:!1}),regeneratorValues:e("7.18.0",'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}',{globals:["Symbol","isNaN","TypeError"],locals:{_regeneratorValues:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorValues",dependencies:{},internal:!1}),set:e("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]},internal:!1}),setFunctionName:e("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{},internal:!1}),setPrototypeOf:e("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{},internal:!1}),skipFirstGeneratorNext:e("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{},internal:!1}),slicedToArray:e("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),superPropBase:e("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]},internal:!1}),superPropGet:e("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]},internal:!1}),superPropSet:e("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),taggedTemplateLiteral:e("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{},internal:!1}),taggedTemplateLiteralLoose:e("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{},internal:!1}),tdz:e("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{},internal:!1}),temporalRef:e("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]},internal:!1}),temporalUndefined:e("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{},internal:!1}),toArray:e("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toConsumableArray:e("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toPrimitive:e("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{},internal:!1}),toPropertyKey:e("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),toSetter:e("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{},internal:!1}),tsRewriteRelativeImportExtensions:e("7.27.0",'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.test(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase()+"js":t}):t}',{globals:[],locals:{tsRewriteRelativeImportExtensions:["body.0.id"]},exportBindingAssignments:[],exportName:"tsRewriteRelativeImportExtensions",dependencies:{},internal:!1}),typeof:e("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{},internal:!1}),unsupportedIterableToArray:e("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]},internal:!1}),usingCtx:e("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{},internal:!1}),wrapAsyncGenerator:e("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var t,n;function resume(t,n){try{var r=e[t](n),o=r.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then(function(n){if(u){var i="return"===t&&o.k?t:"next";if(!o.k||n.done)return resume(i,n);n=e[i](n).value}settle(!!r.done,n)},function(e){resume("throw",e)})}catch(e){settle(2,e)}}function settle(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?resume(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(o,u){var i={key:e,arg:r,resolve:o,reject:u,next:null};n?n=n.next=i:(t=n=i,resume(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]},internal:!1}),wrapNativeSuper:e("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]},internal:!1}),wrapRegExp:e("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]]}return r},Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\\$<([^>]+)(>|$)/g,function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""}))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)})}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]},internal:!1}),writeOnlyError:e("7.12.13",`function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`,{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{},internal:!1})};return Object.assign(r,{AwaitValue:e("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{},internal:!1}),applyDecs:e("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o<r.length;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.from(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadata||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:toPropertyKey(t),isStatic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v=!0}}function old_assertNotFinished(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")}function old_assertMetadataKey(e){if("symbol"!=typeof e)throw new TypeError("Metadata keys must be symbols, received: "+e)}function old_assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function old_assertValidReturnValue(e,t){var a=typeof t;if(1===e){if("object"!==a||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&old_assertCallable(t.get,"accessor.get"),void 0!==t.set&&old_assertCallable(t.set,"accessor.set"),void 0!==t.init&&old_assertCallable(t.init,"accessor.init"),void 0!==t.initializer&&old_assertCallable(t.initializer,"accessor.initializer")}else if("function"!==a)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function old_getInit(e){var t;return null==(t=e.init)&&(t=e.initializer)&&void 0!==console&&console.warn(".initializer has been renamed to .init as of March 2022"),t}function old_applyMemberDec(e,t,a,r,o,i,n,l,s){var c,d,u,f,p,v,y,h=a[0];if(n?(0===o||1===o?(c={get:a[3],set:a[4]},u="get"):3===o?(c={get:a[3]},u="get"):4===o?(c={set:a[3]},u="set"):c={value:a[3]},0!==o&&(1===o&&setFunctionName(a[4],"#"+r,"set"),setFunctionName(a[3],"#"+r,u))):0!==o&&(c=Object.getOwnPropertyDescriptor(t,r)),1===o?f={get:c.get,set:c.set}:2===o?f=c.value:3===o?f=c.get:4===o&&(f=c.set),"function"==typeof h)void 0!==(p=old_memberDec(h,r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?d=p:1===o?(d=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p);else for(var m=h.length-1;m>=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r<g.length;r++)a=g[r].call(e,a);return a}}else{var _=d;d=function(e,t){return _.call(e,t)}}e.push(d)}0!==o&&(1===o?(c.get=f.get,c.set=f.set):2===o?c.value=f:3===o?c.get=f:4===o&&(c.set=f),n?1===o?(e.push(function(e,t){return f.get.call(e,t)}),e.push(function(e,t){return f.set.call(e,t)})):2===o?e.push(f):e.push(function(e,t){return f.call(e,t)}):Object.defineProperty(t,r,c))}function old_applyMemberDecs(e,t,a,r,o){for(var i,n,l=new Map,s=new Map,c=0;c<o.length;c++){var d=o[c];if(Array.isArray(d)){var u,f,p,v=d[1],y=d[2],h=d.length>3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push(function(e){for(var a=0;a<t.length;a++)t[a].call(e);return e})}function old_applyClassDecs(e,t,a,r){if(r.length>0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,function(){for(var e=0;e<o.length;e++)o[e].call(i)})}}function applyDecs(e,t,a){var r=[],o={},i={};return old_applyMemberDecs(r,e,i,o,t),old_convertMetadataMapToFinal(e.prototype,i),old_applyClassDecs(r,e,o,a),old_convertMetadataMapToFinal(e,o),r}',{globals:["Object","Map","Symbol","Array","Error","TypeError","console"],locals:{old_createMetadataMethodsForProperty:["body.0.id","body.3.body.body.4.block.body.0.argument.arguments.1.arguments.1.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.1.callee"],old_convertMetadataMapToFinal:["body.1.id","body.13.body.body.1.argument.expressions.1.callee","body.13.body.body.1.argument.expressions.3.callee"],old_createAddInitializerMethod:["body.2.id","body.3.body.body.3.test.expressions.0.right.right.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.0.properties.2.value.callee"],old_memberDec:["body.3.id","body.9.body.body.1.consequent.expression.left.right.right.callee","body.9.body.body.1.alternate.body.body.1.expression.left.right.right.callee"],old_assertNotFinished:["body.4.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.0.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.0.callee","body.2.body.body.0.argument.body.body.0.expression.expressions.0.callee"],old_assertMetadataKey:["body.5.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.1.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.1.callee"],old_assertCallable:["body.6.id","body.2.body.body.0.argument.body.body.0.expression.expressions.1.callee","body.7.body.body.1.consequent.body.1.expression.expressions.0.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.1.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.2.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.3.right.callee"],old_assertValidReturnValue:["body.7.id","body.9.body.body.1.consequent.expression.right.expressions.0.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.0.callee","body.12.body.body.0.consequent.body.0.body.body.2.expression.right.expressions.0.callee"],old_getInit:["body.8.id","body.9.body.body.1.consequent.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee"],old_applyMemberDec:["body.9.id","body.10.body.body.0.body.body.1.consequent.body.2.expression.callee"],old_applyMemberDecs:["body.10.id","body.13.body.body.1.argument.expressions.0.callee"],old_pushInitializers:["body.11.id","body.10.body.body.1.expression.expressions.0.callee","body.10.body.body.1.expression.expressions.1.callee"],old_applyClassDecs:["body.12.id","body.13.body.body.1.argument.expressions.2.callee"],applyDecs:["body.13.id"]},exportBindingAssignments:[],exportName:"applyDecs",dependencies:{setFunctionName:["body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.3.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2203:e("7.19.0",'function applyDecs2203Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,a,n,i,s,o){var c;switch(n){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:s?"#"+t:t,static:i,private:s},p={v:!1};0!==n&&(f.addInitializer=createAddInitializerMethod(a,p)),0===n?s?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===n?l=function(){return r.value}:(1!==n&&3!==n||(l=function(){return r.get.call(this)}),1!==n&&4!==n||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(o,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,a,n,i,s,o){var c,l,u,f,p,d,h=r[0];if(s?c=0===n||1===n?{get:r[3],set:r[4]}:3===n?{get:r[3]}:4===n?{set:r[3]}:{value:r[3]}:0!==n&&(c=Object.getOwnPropertyDescriptor(t,a)),1===n?u={get:c.get,set:c.set}:2===n?u=c.value:3===n?u=c.get:4===n&&(u=c.set),"function"==typeof h)void 0!==(f=memberDec(h,a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?l=f:1===n?(l=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f);else for(var v=h.length-1;v>=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a<y.length;a++)r=y[a].call(e,r);return r}}else{var m=l;l=function(e,t){return m.call(e,t)}}e.push(l)}0!==n&&(1===n?(c.get=u.get,c.set=u.set):2===n?c.value=u:3===n?c.get=u:4===n&&(c.set=u),s?1===n?(e.push(function(e,t){return u.get.call(e,t)}),e.push(function(e,t){return u.set.call(e,t)})):2===n?e.push(u):e.push(function(e,t){return u.call(e,t)}):Object.defineProperty(t,a,c))}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r){var a=[];return function(e,t,r){for(var a,n,i=new Map,s=new Map,o=0;o<r.length;o++){var c=r[o];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,function(){for(var e=0;e<a.length;e++)a[e].call(n)})}}(a,e,r),a}}var applyDecs2203Impl;function applyDecs2203(e,t,r){return(applyDecs2203Impl=applyDecs2203Impl||applyDecs2203Factory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203Factory:["body.0.id","body.2.body.body.0.argument.callee.right.right.callee"],applyDecs2203Impl:["body.1.declarations.0.id","body.2.body.body.0.argument.callee.right.left","body.2.body.body.0.argument.callee.left"],applyDecs2203:["body.2.id"]},exportBindingAssignments:[],exportName:"applyDecs2203",dependencies:{},internal:!1}),applyDecs2203R:e("7.20.0",'function applyDecs2203RFactory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,n,a,i,o,s){var c;switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:o?"#"+t:toPropertyKey(t),static:i,private:o},p={v:!1};0!==a&&(f.addInitializer=createAddInitializerMethod(n,p)),0===a?o?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===a?l=function(){return r.value}:(1!==a&&3!==a||(l=function(){return r.get.call(this)}),1!==a&&4!==a||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(s,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,n,a,i,o,s){var c,l,u,f,p,d,h,v=r[0];if(o?(0===a||1===a?(c={get:r[3],set:r[4]},u="get"):3===a?(c={get:r[3]},u="get"):4===a?(c={set:r[3]},u="set"):c={value:r[3]},0!==a&&(1===a&&setFunctionName(r[4],"#"+n,"set"),setFunctionName(r[3],"#"+n,u))):0!==a&&(c=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:c.get,set:c.set}:2===a?f=c.value:3===a?f=c.get:4===a&&(f=c.set),"function"==typeof v)void 0!==(p=memberDec(v,n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?l=p:1===a?(l=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p);else for(var g=v.length-1;g>=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n<m.length;n++)r=m[n].call(e,r);return r}}else{var b=l;l=function(e,t){return b.call(e,t)}}e.push(l)}0!==a&&(1===a?(c.get=f.get,c.set=f.set):2===a?c.value=f:3===a?c.get=f:4===a&&(c.set=f),o?1===a?(e.push(function(e,t){return f.get.call(e,t)}),e.push(function(e,t){return f.set.call(e,t)})):2===a?e.push(f):e.push(function(e,t){return f.call(e,t)}):Object.defineProperty(t,n,c))}function applyMemberDecs(e,t){for(var r,n,a=[],i=new Map,o=new Map,s=0;s<t.length;s++){var c=t[s];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r){return{e:applyMemberDecs(e,t),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2203R(e,t,r){return(applyDecs2203R=applyDecs2203RFactory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203RFactory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2203R:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2203R",dependencies:{setFunctionName:["body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.1.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2301:e("7.21.0",'function applyDecs2301Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r,n,a,i,s,o,c){var u;switch(a){case 1:u="accessor";break;case 2:u="method";break;case 3:u="getter";break;case 4:u="setter";break;default:u="field"}var l,f,p={kind:u,name:s?"#"+t:toPropertyKey(t),static:i,private:s},d={v:!1};if(0!==a&&(p.addInitializer=createAddInitializerMethod(n,d)),s||0!==a&&2!==a)if(2===a)l=function(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(l=s?function(e){return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivate(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else l=function(e){return e[t]},0===a&&(f=function(e,r){e[t]=r});var v=s?c.bind():function(e){return t in e};p.access=l&&f?{get:l,set:f,has:v}:l?{get:l,has:v}:{set:f,has:v};try{return e(o,p)}finally{d.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var u,l,f,p,d,h,v,y,g=r[0];if(s?(0===a||1===a?(u={get:(d=r[3],function(){return d(this)}),set:curryThis2(r[4])},f="get"):3===a?(u={get:r[3]},f="get"):4===a?(u={set:r[3]},f="set"):u={value:r[3]},0!==a&&(1===a&&setFunctionName(u.set,"#"+n,"set"),setFunctionName(u[f||"value"],"#"+n,f))):0!==a&&(u=Object.getOwnPropertyDescriptor(t,n)),1===a?p={get:u.get,set:u.set}:2===a?p=u.value:3===a?p=u.get:4===a&&(p=u.set),"function"==typeof g)void 0!==(h=memberDec(g,n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?l=h:1===a?(l=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h);else for(var m=g.length-1;m>=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n<I.length;n++)r=I[n].call(e,r);return r}}else{var w=l;l=function(e,t){return w.call(e,t)}}e.push(l)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.set=p),s?1===a?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===a?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,u))}function applyMemberDecs(e,t,r){for(var n,a,i,s=[],o=new Map,c=new Map,u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){var f,p,d=l[1],h=l[2],v=l.length>3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2301(e,t,r,n){return(applyDecs2301=applyDecs2301Factory())(e,t,r,n)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2301Factory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2301:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2301",dependencies:{checkInRHS:["body.0.body.body.7.body.body.0.body.body.1.consequent.body.1.test.expressions.0.consequent.expressions.2.right.right.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.2.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2305:e("7.21.0",'function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}function c(e,t){for(var r=0;r<e.length;r++)e[r].call(t);return t}function s(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function applyDec(e,t,r,n,o,a,c,u,l,f,p,d,h){function m(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var y,v=t[0],g=t[3],b=!u;if(!b){r||Array.isArray(v)||(v=[v]);var w={},S=[],A=3===o?"get":4===o||d?"set":"value";f?(p||d?w={get:setFunctionName(function(){return g(this)},n,"get"),set:function(e){t[4](this,e)}}:w[A]=g,p||setFunctionName(w[A],n,2===o?"":A)):p||(w=Object.getOwnPropertyDescriptor(e,n))}for(var P=e,j=v.length-1;j>=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push(function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t}),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var d=p[1],h=p[2],m=p.length>3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]},internal:!1}),classApplyDescriptorDestructureSet:e("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{},internal:!1}),classApplyDescriptorGet:e("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{},internal:!1}),classApplyDescriptorSet:e("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{},internal:!1}),classCheckPrivateStaticAccess:e("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]},internal:!1}),classCheckPrivateStaticFieldDescriptor:e("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{},internal:!1}),classExtractFieldDescriptor:e("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]},internal:!1}),classPrivateFieldDestructureSet:e("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldGet:e("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldSet:e("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateMethodGet:e("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:!1}),classPrivateMethodSet:e("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{},internal:!1}),classStaticPrivateFieldDestructureSet:e("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecGet:e("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecSet:e("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateMethodSet:e("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{},internal:!1}),defineEnumerableProperties:e("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b<a.length;b++){var i=a[b];(n=r[i]).configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i,n)}return e}',{globals:["Object"],locals:{_defineEnumerableProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineEnumerableProperties",dependencies:{},internal:!1}),dispose:e("7.22.0",'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=e,this.error=r,this.stack=Error().stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{},internal:!1}),objectSpread:e("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?Object(arguments[r]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.forEach(function(r){defineProperty(e,r,t[r])})}return e}',{globals:["Object"],locals:{_objectSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectSpread",dependencies:{defineProperty:["body.0.body.body.0.body.body.1.expression.expressions.1.arguments.0.body.body.0.expression.callee"]},internal:!1}),regeneratorRuntime:e("7.18.0",'function _regeneratorRuntime(){"use strict";var r=regenerator(),e=r.m(_regeneratorRuntime),t=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(r){var e="function"==typeof r&&r.constructor;return!!e&&(e===t||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function a(r){var e,t;return function(n){e||(e={stop:function(){return t(n.a,2)},catch:function(){return n.v},abrupt:function(r,e){return t(n.a,o[r],e)},delegateYield:function(r,o,a){return e.resultName=o,t(n.d,values(r),a)},finish:function(r){return t(n.f,r)}},t=function(r,t,o){n.p=e.prev,n.n=e.next;try{return r(t,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return r.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(_regeneratorRuntime=function(){return{wrap:function(e,t,n,o){return r.w(a(e),t,n,o&&o.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(r,e){return new OverloadYield(r,e)},AsyncIterator:AsyncIterator,async:function(r,e,t,o,u){return(n(e)?asyncGen:async)(a(r),e,t,o,u)},keys:keys,values:values}})()}',{globals:["Object"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.declarations.1.init.arguments.0","body.0.body.body.4.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.4.argument.callee"],exportName:"_regeneratorRuntime",dependencies:{OverloadYield:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.3.value.body.body.0.argument.callee"],regenerator:["body.0.body.body.0.declarations.0.init.callee"],regeneratorAsync:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.alternate"],regeneratorAsyncGen:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.consequent"],regeneratorAsyncIterator:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.4.value"],regeneratorKeys:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.6.value"],regeneratorValues:["body.0.body.body.3.body.body.1.argument.body.body.0.expression.expressions.0.right.expressions.0.right.properties.3.value.body.body.0.argument.expressions.1.arguments.1.callee","body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.7.value"]},internal:!1}),using:e("7.22.0",'function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}',{globals:["Object","TypeError","Symbol"],locals:{_using:["body.0.id"]},exportBindingAssignments:[],exportName:"_using",dependencies:{},internal:!1})}),Ro}var f1;function p1(){if(f1)return ai;f1=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=void 0,ai.get=p,ai.getDependencies=h,ai.isInternal=g,ai.list=void 0,ai.minVersion=y;var t=Ut(),e=Ex();const{cloneNode:r,identifier:n}=t;function s(b,S,O){try{const _=S.split(".");let w=_.shift();for(;_.length>0;)b=b[w],w=_.shift();if(arguments.length>2)b[w]=O;else return b[w]}catch(_){throw _.message+=` (when accessing ${S})`,_}}function o(b,S,O,_,w,C){const{locals:T,dependencies:x,exportBindingAssignments:E,exportName:j}=S,R=new Set(_||[]);O&&R.add(O);for(const[I,D]of(Object.entries||(Z=>Object.keys(Z).map(J=>[J,Z[J]])))(T)){let Z=I;if(O&&I===j)Z=O;else for(;R.has(Z);)Z="_"+Z;if(Z!==I)for(const J of D)s(b,J,n(Z))}for(const[I,D]of(Object.entries||(Z=>Object.keys(Z).map(J=>[J,Z[J]])))(x)){const Z=typeof w=="function"&&w(I)||n(I);for(const J of D)s(b,J,r(Z))}C==null||C(b,j,I=>{E.forEach(D=>s(b,D,I(s(b,D))))})}const a=Object.create(null);function u(b){if(!a[b]){const S=e.default[b];if(!S)throw Object.assign(new ReferenceError(`Unknown helper ${b}`),{code:"BABEL_HELPER_UNKNOWN",helper:b});a[b]={minVersion:S.minVersion,build(O,_,w,C){const T=S.ast();return o(T,S.metadata,_,w,O,C),{nodes:T.body,globals:S.metadata.globals}},getDependencies(){return Object.keys(S.metadata.dependencies)}}}return a[b]}function p(b,S,O,_,w){if(typeof O=="object"){const C=O;(C==null?void 0:C.type)==="Identifier"?O=C.name:O=void 0}return u(b).build(S,O,_,w)}function y(b){return u(b).minVersion}function h(b){return u(b).getDependencies()}function g(b){var S;return(S=e.default[b])==null?void 0:S.metadata.internal}return ai.ensure=b=>{u(b)},ai.list=Object.keys(e.default).map(b=>b.replace(/^_/,"")),ai.default=p,ai}var Vf={},gr={},Vc={},Mo={},Ni={},Zt={},d1;function h1(){return d1||(d1=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.Var=Zt.User=Zt.Statement=Zt.SpreadProperty=Zt.Scope=Zt.RestProperty=Zt.ReferencedMemberExpression=Zt.ReferencedIdentifier=Zt.Referenced=Zt.Pure=Zt.NumericLiteralTypeAnnotation=Zt.Generated=Zt.ForAwaitStatement=Zt.Flow=Zt.Expression=Zt.ExistentialTypeParam=Zt.BlockScoped=Zt.BindingIdentifier=void 0,Zt.ReferencedIdentifier=["Identifier","JSXIdentifier"],Zt.ReferencedMemberExpression=["MemberExpression"],Zt.BindingIdentifier=["Identifier"],Zt.Statement=["Statement"],Zt.Expression=["Expression"],Zt.Scope=["Scopable","Pattern"],Zt.Referenced=null,Zt.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],Zt.Var=["VariableDeclaration"],Zt.User=null,Zt.Generated=null,Zt.Pure=null,Zt.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],Zt.RestProperty=["RestElement"],Zt.SpreadProperty=["RestElement"],Zt.ExistentialTypeParam=["ExistsTypeAnnotation"],Zt.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Zt.ForAwaitStatement=["ForOfStatement"]),Zt}var Kc={exports:{}},Kf,y1;function xx(){if(y1)return Kf;y1=1;var t=1e3,e=t*60,r=e*60,n=r*24,s=n*7,o=n*365.25;Kf=function(h,g){g=g||{};var b=typeof h;if(b==="string"&&h.length>0)return a(h);if(b==="number"&&isFinite(h))return g.long?p(h):u(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function a(h){if(h=String(h),!(h.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(g){var b=parseFloat(g[1]),S=(g[2]||"ms").toLowerCase();switch(S){case"years":case"year":case"yrs":case"yr":case"y":return b*o;case"weeks":case"week":case"w":return b*s;case"days":case"day":case"d":return b*n;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*e;case"seconds":case"second":case"secs":case"sec":case"s":return b*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function u(h){var g=Math.abs(h);return g>=n?Math.round(h/n)+"d":g>=r?Math.round(h/r)+"h":g>=e?Math.round(h/e)+"m":g>=t?Math.round(h/t)+"s":h+"ms"}function p(h){var g=Math.abs(h);return g>=n?y(h,g,n,"day"):g>=r?y(h,g,r,"hour"):g>=e?y(h,g,e,"minute"):g>=t?y(h,g,t,"second"):h+" ms"}function y(h,g,b,S){var O=g>=b*1.5;return Math.round(h/b)+" "+S+(O?"s":"")}return Kf}var Wf,m1;function Px(){if(m1)return Wf;m1=1;function t(e){n.debug=n,n.default=n,n.coerce=y,n.disable=u,n.enable=o,n.enabled=p,n.humanize=xx(),n.destroy=h,Object.keys(e).forEach(g=>{n[g]=e[g]}),n.names=[],n.skips=[],n.formatters={};function r(g){let b=0;for(let S=0;S<g.length;S++)b=(b<<5)-b+g.charCodeAt(S),b|=0;return n.colors[Math.abs(b)%n.colors.length]}n.selectColor=r;function n(g){let b,S=null,O,_;function w(...C){if(!w.enabled)return;const T=w,x=Number(new Date),E=x-(b||x);T.diff=E,T.prev=b,T.curr=x,b=x,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let j=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(I,D)=>{if(I==="%%")return"%";j++;const Z=n.formatters[D];if(typeof Z=="function"){const J=C[j];I=Z.call(T,J),C.splice(j,1),j--}return I}),n.formatArgs.call(T,C),(T.log||n.log).apply(T,C)}return w.namespace=g,w.useColors=n.useColors(),w.color=n.selectColor(g),w.extend=s,w.destroy=n.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>S!==null?S:(O!==n.namespaces&&(O=n.namespaces,_=n.enabled(g)),_),set:C=>{S=C}}),typeof n.init=="function"&&n.init(w),w}function s(g,b){const S=n(this.namespace+(typeof b>"u"?":":b)+g);return S.log=this.log,S}function o(g){n.save(g),n.namespaces=g,n.names=[],n.skips=[];const b=(typeof g=="string"?g:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const S of b)S[0]==="-"?n.skips.push(S.slice(1)):n.names.push(S)}function a(g,b){let S=0,O=0,_=-1,w=0;for(;S<g.length;)if(O<b.length&&(b[O]===g[S]||b[O]==="*"))b[O]==="*"?(_=O,w=S,O++):(S++,O++);else if(_!==-1)O=_+1,w++,S=w;else return!1;for(;O<b.length&&b[O]==="*";)O++;return O===b.length}function u(){const g=[...n.names,...n.skips.map(b=>"-"+b)].join(",");return n.enable(""),g}function p(g){for(const b of n.skips)if(a(g,b))return!1;for(const b of n.names)if(a(g,b))return!0;return!1}function y(g){return g instanceof Error?g.stack||g.message:g}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Wf=t,Wf}var g1;function Gf(){return g1||(g1=1,function(t,e){var r={};e.formatArgs=s,e.save=o,e.load=a,e.useColors=n,e.storage=u(),e.destroy=(()=>{let y=!1;return()=>{y||(y=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let y;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(y=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(y[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(y){if(y[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+y[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;y.splice(1,0,h,"color: inherit");let g=0,b=0;y[0].replace(/%[a-zA-Z%]/g,S=>{S!=="%%"&&(g++,S==="%c"&&(b=g))}),y.splice(b,0,h)}e.log=console.debug||console.log||(()=>{});function o(y){try{y?e.storage.setItem("debug",y):e.storage.removeItem("debug")}catch{}}function a(){let y;try{y=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=r.DEBUG),y}function u(){try{return localStorage}catch{}}t.exports=Px()(e);const{formatters:p}=t.exports;p.j=function(y){try{return JSON.stringify(y)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}}(Kc,Kc.exports)),Kc.exports}var Lo={},Fo={},zs={},Or={},b1;function v1(){if(b1)return Or;b1=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.isBindingIdentifier=Z,Or.isBlockScoped=me,Or.isExpression=N,Or.isFlow=K,Or.isForAwaitStatement=ae,Or.isGenerated=ce,Or.isPure=ue,Or.isReferenced=ne,Or.isReferencedIdentifier=I,Or.isReferencedMemberExpression=D,Or.isRestProperty=Y,Or.isScope=$,Or.isSpreadProperty=he,Or.isStatement=J,Or.isUser=Ae,Or.isVar=Ce;var t=Ut();const{isBinding:e,isBlockScoped:r,isExportDeclaration:n,isExpression:s,isFlow:o,isForStatement:a,isForXStatement:u,isIdentifier:p,isImportDeclaration:y,isImportSpecifier:h,isJSXIdentifier:g,isJSXMemberExpression:b,isMemberExpression:S,isRestElement:O,isReferenced:_,isScope:w,isStatement:C,isVar:T,isVariableDeclaration:x,react:E,isForOfStatement:j}=t,{isCompatTag:R}=E;function I(U){const{node:L,parent:H}=this;return p(L,U)?_(L,H,this.parentPath.parent):g(L,U)?!b(H)&&R(L.name)?!1:_(L,H,this.parentPath.parent):!1}function D(){const{node:U,parent:L}=this;return S(U)&&_(U,L)}function Z(){const{node:U,parent:L}=this,H=this.parentPath.parent;return p(U)&&e(U,L,H)}function J(){const{node:U,parent:L}=this;return C(U)?!(x(U)&&(u(L,{left:U})||a(L,{init:U}))):!1}function N(){return this.isIdentifier()?this.isReferencedIdentifier():s(this.node)}function $(){return w(this.node,this.parent)}function ne(){return _(this.node,this.parent)}function me(){return r(this.node)}function Ce(){return T(this.node)}function Ae(){var U;return!!((U=this.node)!=null&&U.loc)}function ce(){return!this.isUser()}function ue(U){return this.scope.isPure(this.node,U)}function K(){const{node:U}=this;return o(U)?!0:y(U)?U.importKind==="type"||U.importKind==="typeof":n(U)?U.exportKind==="type":h(U)?U.importKind==="type"||U.importKind==="typeof":!1}function Y(){var U;return O(this.node)&&((U=this.parentPath)==null?void 0:U.isObjectPattern())}function he(){var U;return O(this.node)&&((U=this.parentPath)==null?void 0:U.isObjectExpression())}function ae(){return j(this.node,{await:!0})}return Or.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},Or.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},Or}var S1;function Wc(){if(S1)return zs;S1=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.environmentVisitor=R,zs.explode=g,zs.isExplodedVisitor=h,zs.merge=O,zs.verify=b;var t=h1(),e=v1(),r=Ut(),n=ki();const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:o,FLIPPED_ALIAS_KEYS:a,TYPES:u,__internal__deprecationWarning:p}=r;function y(I){return I in t}function h(I){return I==null?void 0:I._exploded}function g(I){if(h(I))return I;I._exploded=!0;for(const Z of Object.keys(I)){if(x(Z))continue;const J=Z.split("|");if(J.length===1)continue;const N=I[Z];delete I[Z];for(const $ of J)I[$]=N}b(I),delete I.__esModule,w(I),C(I);for(const Z of Object.keys(I)){if(x(Z)||!y(Z))continue;const J=I[Z];for(const $ of Object.keys(J))J[$]=T(Z,J[$]);delete I[Z];const N=t[Z];if(N!==null)for(const $ of N){var D;(D=I[$])!=null||(I[$]={}),E(I[$],J)}else E(I,J)}for(const Z of Object.keys(I)){if(x(Z))continue;let J=a[Z];if(Z in s){const $=s[Z];p(Z,$,"Visitor "),J=[$]}else if(Z in o){const $=o[Z];p(Z,$,"Visitor "),J=a[$]}if(!J)continue;const N=I[Z];delete I[Z];for(const $ of J){const ne=I[$];ne?E(ne,N):I[$]=Object.assign({},N)}}for(const Z of Object.keys(I))x(Z)||C(I[Z]);return I}function b(I){if(!I._verified){if(typeof I=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const D of Object.keys(I)){if((D==="enter"||D==="exit")&&S(D,I[D]),x(D))continue;if(!u.includes(D))throw new Error(`You gave us a visitor for the node type ${D} but it's not a valid type in @babel/traverse 7.29.8`);const Z=I[D];if(typeof Z=="object")for(const J of Object.keys(Z))if(J==="enter"||J==="exit")S(`${D}.${J}`,Z[J]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${D} that has the invalid property ${J}`)}I._verified=!0}}function S(I,D){const Z=[].concat(D);for(const J of Z)if(typeof J!="function")throw new TypeError(`Non-function found defined in ${I} with type ${typeof J}`)}function O(I,D=[],Z){const J={_verified:!0,_exploded:!0};Object.defineProperty(J,"_exploded",{enumerable:!1}),Object.defineProperty(J,"_verified",{enumerable:!1});for(let N=0;N<I.length;N++){const $=g(I[N]),ne=D[N];let me=$;(ne||Z)&&(me=_(me,ne,Z)),E(J,me);for(const Ce of Object.keys($)){if(x(Ce))continue;let Ae=$[Ce];(ne||Z)&&(Ae=_(Ae,ne,Z));const ce=J[Ce]||(J[Ce]={});E(ce,Ae)}}return J}function _(I,D,Z){const J={};for(const N of["enter","exit"]){let $=I[N];Array.isArray($)&&($=$.map(function(ne){let me=ne;return D&&(me=function(Ce){ne.call(D,Ce,D)}),Z&&(me=Z(D==null?void 0:D.key,N,me)),me!==ne&&(me.toString=()=>ne.toString()),me}),J[N]=$)}return J}function w(I){for(const D of Object.keys(I)){if(x(D))continue;const Z=I[D];typeof Z=="function"&&(I[D]={enter:Z})}}function C(I){I.enter&&!Array.isArray(I.enter)&&(I.enter=[I.enter]),I.exit&&!Array.isArray(I.exit)&&(I.exit=[I.exit])}function T(I,D){const Z=`is${I}`,J=e[Z],N=function($){if(J.call($))return D.apply(this,arguments)};return N.toString=()=>D.toString(),N}function x(I){return!!(I.startsWith("_")||I==="enter"||I==="exit"||I==="shouldSkip"||I==="denylist"||I==="noScope"||I==="skipKeys"||I==="blacklist")}function E(I,D){for(const Z of["enter","exit"])D[Z]&&(I[Z]=[].concat(I[Z]||[],D[Z]))}const j={FunctionParent(I){I.isArrowFunctionExpression()||(I.skip(),I.isMethod()&&(I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(I)))},Property(I){I.isObjectProperty()||(I.skip(),I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(I))}};function R(I){return O([j,I])}return zs}var T1;function _x(){if(T1)return Fo;T1=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;var t=Ut(),e=t,r=lp(),n=Wc(),s=ki();const{getAssignmentIdentifiers:o}=e,a={ReferencedIdentifier({node:p},y){p.name===y.oldName&&(p.name=y.newName)},Scope(p,y){p.scope.bindingIdentifierEquals(y.oldName,y.binding.identifier)||(p.skip(),p.isMethod()&&(p.requeueComputedKeyAndDecorators?p.requeueComputedKeyAndDecorators():s.requeueComputedKeyAndDecorators.call(p)),p.isSwitchStatement()&&p.context.maybeQueue(p.get("discriminant")))},ObjectProperty({node:p,scope:y},h){const{name:g}=p.key;if(p.shorthand&&(g===h.oldName||g===h.newName)&&y.getBindingIdentifier(g)===h.binding.identifier){var b;p.shorthand=!1,(b=p.extra)!=null&&b.shorthand&&(p.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(p,y){if(p.isVariableDeclaration())return;const h=p.isAssignmentExpression()?o(p.node):p.getOuterBindingIdentifiers();for(const g in h)g===y.oldName&&(h[g].name=y.newName)}};class u{constructor(y,h,g){this.newName=g,this.oldName=h,this.binding=y}maybeConvertFromExportDeclaration(y){const h=y.parentPath;if(h.isExportDeclaration()){if(h.isExportDefaultDeclaration()){const{declaration:g}=h.node;if(t.isDeclaration(g)&&!g.id)return}h.isExportAllDeclaration()||h.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(y){return y}maybeConvertFromClassFunctionExpression(y){return y}rename(){const{binding:y,oldName:h,newName:g}=this,{scope:b,path:S}=y,O=S.find(C=>C.isDeclaration()||C.isFunctionExpression()||C.isClassExpression());O&&O.getOuterBindingIdentifiers()[h]===y.identifier&&this.maybeConvertFromExportDeclaration(O);const _=arguments[0]||b.block,w={discriminant:!0};t.isMethod(_)&&(_.computed&&(w.key=!0),t.isObjectMethod(_)||(w.decorators=!0)),(0,r.traverseNode)(_,(0,n.explode)(a),b,this,b.path,w),arguments[0]||(b.removeOwnBinding(h),b.bindings[g]=y,this.binding.identifier.name=g),O&&(this.maybeConvertFromClassFunctionDeclaration(S),this.maybeConvertFromClassFunctionExpression(S))}}return Fo.default=u,Fo}var Gc={},E1;function wx(){if(E1)return Gc;E1=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.default=o;var t=Ut(),e=qr(),r=Wc(),n=ki();const{VISITOR_KEYS:s}=t;function o(a,u,p){const y=(0,r.explode)(u);if(y.enter||y.exit)throw new Error("Should not be used with enter/exit visitors.");h(a.parentPath,a.parent,a.node,a.container,a.key,a.listKey,a.hub,a);function h(g,b,S,O,_,w,C,T){if(!S)return;const x=T||e.NodePath.get({hub:C,parentPath:g,parent:b,container:O,listKey:w,key:_});n._forceSetScope.call(x);const E=y[S.type];if(E!=null&&E.enter)for(const R of E.enter)R.call(p,x,p);if(x.shouldSkip)return;const j=s[S.type];if(j!=null&&j.length){for(const R of j){const I=S[R];if(I)if(Array.isArray(I))for(let D=0;D<I.length;D++){const Z=I[D];h(x,S,Z,I,D,R)}else h(x,S,I,S,R,null)}if(E!=null&&E.exit)for(const R of E.exit)R.call(p,x,p)}}}return Gc}var qo={},x1;function Ax(){if(x1)return qo;x1=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;class t{constructor({identifier:n,scope:s,path:o,kind:a}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=n,this.scope=s,this.path=o,this.kind=a,(a==="var"||a==="hoisted")&&e(o)&&this.reassign(o),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(n){this.hasDeoptedValue||(this.hasValue=!0,this.value=n)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(n){this.constant=!1,!this.constantViolations.includes(n)&&this.constantViolations.push(n)}reference(n){this.referencePaths.includes(n)||(this.referenced=!0,this.references++,this.referencePaths.push(n))}dereference(){this.references--,this.referenced=!!this.references}}qo.default=t;function e(r){const n=!r.isVariableDeclarator()||r.node.init;for(let{parentPath:s,key:o}=r;s;{parentPath:s,key:o}=s){if(s.isFunctionParent())return!1;if(o==="left"&&s.isForXStatement()||n&&o==="body"&&s.isLoop())return!0}return!1}return qo}var Nn={},P1;function La(){if(P1)return Nn;P1=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.clear=e,Nn.clearPath=r,Nn.clearScope=n,Nn.getCachedPaths=s,Nn.getOrCreateCachedPaths=o,Nn.scope=Nn.path=void 0;let t=Nn.path=new WeakMap;Nn.scope=new WeakMap;function e(){r(),n()}function r(){Nn.path=t=new WeakMap}function n(){Nn.scope=new WeakMap}function s(a){const{parent:u,parentPath:p}=a;return t.get(u)}function o(a,u){let p=t.get(a);return p||t.set(a,p=new Map),p}return Nn}var Cx=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],Ix=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"],_1;function w1(){if(_1)return Lo;_1=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var t=_x(),e=qr();wx();var r=Ax(),n=Ut(),s=n,o=La();const a=Cx,u=Ix,{assignmentExpression:p,callExpression:y,cloneNode:h,getBindingIdentifiers:g,identifier:b,isArrayExpression:S,isBinary:O,isCallExpression:_,isClass:w,isClassBody:C,isClassDeclaration:T,isExportAllDeclaration:x,isExportDefaultDeclaration:E,isExportNamedDeclaration:j,isFunctionDeclaration:R,isIdentifier:I,isImportDeclaration:D,isLiteral:Z,isMemberExpression:J,isMethod:N,isModuleSpecifier:$,isNullLiteral:ne,isObjectExpression:me,isProperty:Ce,isPureish:Ae,isRegExpLiteral:ce,isSuper:ue,isTaggedTemplateExpression:K,isTemplateLiteral:Y,isThisExpression:he,isUnaryExpression:ae,isVariableDeclaration:U,expressionStatement:L,matchesPattern:H,memberExpression:ye,numericLiteral:Ie,toIdentifier:Ee,variableDeclaration:De,variableDeclarator:Me,isObjectProperty:Ve,isTopicReference:Ze,isMetaProperty:ut,isPrivateName:st,isExportDeclaration:dt,buildUndefinedNode:$e,sequenceExpression:je}=n;function qe(oe,W){switch(oe==null?void 0:oe.type){default:if(D(oe)||dt(oe)){var fe;if((x(oe)||j(oe)||D(oe))&&oe.source)qe(oe.source,W);else if((j(oe)||D(oe))&&(fe=oe.specifiers)!=null&&fe.length)for(const Re of oe.specifiers)qe(Re,W);else(E(oe)||j(oe))&&oe.declaration&&qe(oe.declaration,W)}else $(oe)?qe(oe.local,W):Z(oe)&&!ne(oe)&&!ce(oe)&&!Y(oe)&&W.push(oe.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":qe(oe.object,W),qe(oe.property,W);break;case"Identifier":case"JSXIdentifier":W.push(oe.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":qe(oe.callee,W);break;case"ObjectExpression":case"ObjectPattern":for(const Re of oe.properties)qe(Re,W);break;case"SpreadElement":case"RestElement":qe(oe.argument,W);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":qe(oe.key,W);break;case"ThisExpression":W.push("this");break;case"Super":W.push("super");break;case"Import":case"ImportExpression":W.push("import");break;case"DoExpression":W.push("do");break;case"YieldExpression":W.push("yield"),qe(oe.argument,W);break;case"AwaitExpression":W.push("await"),qe(oe.argument,W);break;case"AssignmentExpression":qe(oe.left,W);break;case"VariableDeclarator":qe(oe.id,W);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":qe(oe.id,W);break;case"PrivateName":qe(oe.id,W);break;case"ParenthesizedExpression":qe(oe.expression,W);break;case"UnaryExpression":case"UpdateExpression":qe(oe.argument,W);break;case"MetaProperty":qe(oe.meta,W),qe(oe.property,W);break;case"JSXElement":qe(oe.openingElement,W);break;case"JSXOpeningElement":qe(oe.name,W);break;case"JSXFragment":qe(oe.openingFragment,W);break;case"JSXOpeningFragment":W.push("Fragment");break;case"JSXNamespacedName":qe(oe.namespace,W),qe(oe.name,W);break}}function Le(oe){oe.references=Object.create(null),oe.uids=Object.create(null),oe.bindings=Object.create(null),oe.globals=Object.create(null)}function gt(oe){return oe.isFunctionExpression()&&!oe.node.id||oe.isArrowFunctionExpression()}var ht=Symbol.for("should not be considered a local binding");const xe={ForStatement(oe){const W=oe.get("init");if(W.isVar()){const{scope:fe}=oe;(fe.getFunctionParent()||fe.getProgramParent()).registerBinding("var",W)}},Declaration(oe){if(oe.isBlockScoped()||oe.isImportDeclaration()||oe.isExportDeclaration())return;(oe.scope.getFunctionParent()||oe.scope.getProgramParent()).registerDeclaration(oe)},ImportDeclaration(oe){oe.scope.getBlockParent().registerDeclaration(oe)},TSImportEqualsDeclaration(oe){oe.scope.getBlockParent().registerDeclaration(oe)},ReferencedIdentifier(oe,W){s.isTSQualifiedName(oe.parent)&&oe.parent.right===oe.node||oe.parentPath.isTSImportEqualsDeclaration()||W.references.push(oe)},ForXStatement(oe,W){const fe=oe.get("left");if(fe.isPattern()||fe.isIdentifier())W.constantViolations.push(oe);else if(fe.isVar()){const{scope:Re}=oe;(Re.getFunctionParent()||Re.getProgramParent()).registerBinding("var",fe)}},ExportDeclaration:{exit(oe){const{node:W,scope:fe}=oe;if(x(W))return;const Re=W.declaration;if(T(Re)||R(Re)){const Fe=Re.id;if(!Fe)return;const Ke=fe.getBinding(Fe.name);Ke==null||Ke.reference(oe)}else if(U(Re))for(const Fe of Re.declarations)for(const Ke of Object.keys(g(Fe))){const it=fe.getBinding(Ke);it==null||it.reference(oe)}}},LabeledStatement(oe){oe.scope.getBlockParent().registerDeclaration(oe)},AssignmentExpression(oe,W){W.assignments.push(oe)},UpdateExpression(oe,W){W.constantViolations.push(oe)},UnaryExpression(oe,W){oe.node.operator==="delete"&&W.constantViolations.push(oe)},BlockScoped(oe){let W=oe.scope;if(W.path===oe&&(W=W.parent),W.getBlockParent().registerDeclaration(oe),oe.isClassDeclaration()&&oe.node.id){const Fe=oe.node.id.name;oe.scope.bindings[Fe]=oe.scope.parent.getBinding(Fe)}},CatchClause(oe){oe.scope.registerBinding("let",oe)},Function(oe){const W=oe.get("params");for(const fe of W)oe.scope.registerBinding("param",fe);oe.isFunctionExpression()&&oe.node.id&&!oe.node.id[ht]&&oe.scope.registerBinding("local",oe.get("id"),oe)},ClassExpression(oe){oe.node.id&&!oe.node.id[ht]&&oe.scope.registerBinding("local",oe.get("id"),oe)},TSTypeAnnotation(oe){oe.skip()}};let Se,se=0;class ee{constructor(W){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:fe}=W,Re=o.scope.get(fe);if((Re==null?void 0:Re.path)===W)return Re;o.scope.set(fe,this),this.uid=se++,this.block=fe,this.path=W,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var W;let fe,Re=this.path;do{var Fe;const Ke=Re.key==="key"||Re.listKey==="decorators";Re=Re.parentPath,Ke&&Re.isMethod()&&(Re=Re.parentPath),(Fe=Re)!=null&&Fe.isScope()&&(fe=Re)}while(Re&&!fe);return(W=fe)==null?void 0:W.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(W){const fe=this.generateUidIdentifier(W);return this.push({id:fe}),h(fe)}generateUidIdentifier(W){return b(this.generateUid(W))}generateUid(W="temp"){W=Ee(W).replace(/^_+/,"").replace(/\d+$/g,"");let fe,Re=0;do fe=`_${W}`,Re>=11?fe+=Re-1:Re>=9?fe+=Re-9:Re>=1&&(fe+=Re+1),Re++;while(this.hasLabel(fe)||this.hasBinding(fe)||this.hasGlobal(fe)||this.hasReference(fe));const Fe=this.getProgramParent();return Fe.references[fe]=!0,Fe.uids[fe]=!0,fe}generateUidBasedOnNode(W,fe){const Re=[];qe(W,Re);let Fe=Re.join("$");return Fe=Fe.replace(/^_/,"")||fe||"ref",this.generateUid(Fe.slice(0,20))}generateUidIdentifierBasedOnNode(W,fe){return b(this.generateUidBasedOnNode(W,fe))}isStatic(W){if(he(W)||ue(W)||Ze(W))return!0;if(I(W)){const fe=this.getBinding(W.name);return fe?fe.constant:this.hasBinding(W.name)}return!1}maybeGenerateMemoised(W,fe){if(this.isStatic(W))return null;{const Re=this.generateUidIdentifierBasedOnNode(W);return fe?Re:(this.push({id:Re}),h(Re))}}checkBlockScopedCollisions(W,fe,Re,Fe){if(fe==="param"||W.kind==="local")return;if(fe==="let"||W.kind==="let"||W.kind==="const"||W.kind==="module"||W.kind==="param"&&fe==="const")throw this.path.hub.buildError(Fe,`Duplicate declaration "${Re}"`,TypeError)}rename(W,fe){const Re=this.getBinding(W);Re&&(fe||(fe=this.generateUidIdentifier(W).name),new t.default(Re,W,fe).rename(arguments[2]))}dump(){const W="-".repeat(60);console.log(W);let fe=this;do{console.log("#",fe.block.type);for(const Re of Object.keys(fe.bindings)){const Fe=fe.bindings[Re];console.log(" -",Re,{constant:Fe.constant,references:Fe.references,violations:Fe.constantViolations.length,kind:Fe.kind})}}while(fe=fe.parent);console.log(W)}hasLabel(W){return!!this.getLabel(W)}getLabel(W){return this.labels.get(W)}registerLabel(W){this.labels.set(W.node.label.name,W)}registerDeclaration(W){if(W.isLabeledStatement())this.registerLabel(W);else if(W.isFunctionDeclaration())this.registerBinding("hoisted",W.get("id"),W);else if(W.isVariableDeclaration()){const fe=W.get("declarations"),{kind:Re}=W.node;for(const Fe of fe)this.registerBinding(Re==="using"||Re==="await using"?"const":Re,Fe)}else if(W.isClassDeclaration()){if(W.node.declare)return;this.registerBinding("let",W)}else if(W.isImportDeclaration()){const fe=W.node.importKind==="type"||W.node.importKind==="typeof",Re=W.get("specifiers");for(const Fe of Re){const Ke=fe||Fe.isImportSpecifier()&&(Fe.node.importKind==="type"||Fe.node.importKind==="typeof");this.registerBinding(Ke?"unknown":"module",Fe)}}else if(W.isExportDeclaration()){const fe=W.get("declaration");(fe.isClassDeclaration()||fe.isFunctionDeclaration()||fe.isVariableDeclaration())&&this.registerDeclaration(fe)}else this.registerBinding("unknown",W)}buildUndefinedNode(){return $e()}registerConstantViolation(W){const fe=W.getAssignmentIdentifiers();for(const Fe of Object.keys(fe)){var Re;(Re=this.getBinding(Fe))==null||Re.reassign(W)}}registerBinding(W,fe,Re=fe){if(!W)throw new ReferenceError("no `kind`");if(fe.isVariableDeclaration()){const it=fe.get("declarations");for(const _t of it)this.registerBinding(W,_t);return}const Fe=this.getProgramParent(),Ke=fe.getOuterBindingIdentifiers(!0);for(const it of Object.keys(Ke)){Fe.references[it]=!0;for(const _t of Ke[it]){const Mt=this.getOwnBinding(it);if(Mt){if(Mt.identifier===_t)continue;this.checkBlockScopedCollisions(Mt,W,it,_t)}Mt?Mt.reassign(Re):this.bindings[it]=new r.default({identifier:_t,scope:this,path:Re,kind:W})}}}addGlobal(W){this.globals[W.name]=W}hasUid(W){let fe=this;do if(fe.uids[W])return!0;while(fe=fe.parent);return!1}hasGlobal(W){let fe=this;do if(fe.globals[W])return!0;while(fe=fe.parent);return!1}hasReference(W){return!!this.getProgramParent().references[W]}isPure(W,fe){if(I(W)){const it=this.getBinding(W.name);return it?fe?it.constant:!0:!1}else{if(he(W)||ut(W)||Ze(W)||st(W))return!0;if(w(W)){var Re;return W.superClass&&!this.isPure(W.superClass,fe)||((Re=W.decorators)==null?void 0:Re.length)>0?!1:this.isPure(W.body,fe)}else if(C(W)){for(const it of W.body)if(!this.isPure(it,fe))return!1;return!0}else{if(O(W))return this.isPure(W.left,fe)&&this.isPure(W.right,fe);if(S(W)||(W==null?void 0:W.type)==="TupleExpression"){for(const it of W.elements)if(it!==null&&!this.isPure(it,fe))return!1;return!0}else if(me(W)||(W==null?void 0:W.type)==="RecordExpression"){for(const it of W.properties)if(!this.isPure(it,fe))return!1;return!0}else if(N(W)){var Fe;return!(W.computed&&!this.isPure(W.key,fe)||((Fe=W.decorators)==null?void 0:Fe.length)>0)}else if(Ce(W)){var Ke;return!(W.computed&&!this.isPure(W.key,fe)||((Ke=W.decorators)==null?void 0:Ke.length)>0||(Ve(W)||W.static)&&W.value!==null&&!this.isPure(W.value,fe))}else{if(ae(W))return this.isPure(W.argument,fe);if(Y(W)){for(const it of W.expressions)if(!this.isPure(it,fe))return!1;return!0}else return K(W)?H(W.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(W.quasi,fe):J(W)?!W.computed&&I(W.object)&&W.object.name==="Symbol"&&I(W.property)&&W.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):_(W)?H(W.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&W.arguments.length===1&&s.isStringLiteral(W.arguments[0]):Ae(W)}}}}setData(W,fe){return this.data[W]=fe}getData(W){let fe=this;do{const Re=fe.data[W];if(Re!=null)return Re}while(fe=fe.parent)}removeData(W){let fe=this;do fe.data[W]!=null&&(fe.data[W]=null);while(fe=fe.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const W=this.path;Le(this),this.data=Object.create(null);let fe=this;do{if(fe.crawling)return;if(fe.path.isProgram())break}while(fe=fe.parent);const Re=fe,Fe={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Se||(Se=e.default.visitors.merge([{Scope(Ke){Le(Ke.scope)}},xe])),W.type!=="Program"){const Ke=Se[W.type];if(Ke)for(const it of Ke.enter)it.call(Fe,W,Fe)}W.traverse(Se,Fe),this.crawling=!1;for(const Ke of Fe.assignments){const it=Ke.getAssignmentIdentifiers();for(const _t of Object.keys(it))Ke.scope.getBinding(_t)||Re.addGlobal(it[_t]);Ke.scope.registerConstantViolation(Ke)}for(const Ke of Fe.references){const it=Ke.scope.getBinding(Ke.node.name);it?it.reference(Ke):Re.addGlobal(Ke.node)}for(const Ke of Fe.constantViolations)Ke.scope.registerConstantViolation(Ke)}push(W){let fe=this.path;fe.isPattern()?fe=this.getPatternParent().path:!fe.isBlockStatement()&&!fe.isProgram()&&(fe=this.getBlockParent().path),fe.isSwitchStatement()&&(fe=(this.getFunctionParent()||this.getProgramParent()).path);const{init:Re,unique:Fe,kind:Ke="var",id:it}=W;if(!Re&&!Fe&&(Ke==="var"||Ke==="let")&&gt(fe)&&_(fe.parent,{callee:fe.node})&&fe.parent.arguments.length<=fe.node.params.length&&I(it)){fe.pushContainer("params",it),fe.scope.registerBinding("param",fe.get("params")[fe.node.params.length-1]);return}(fe.isLoop()||fe.isCatchClause()||fe.isFunction())&&(fe.ensureBlock(),fe=fe.get("body"));const _t=W._blockHoist==null?2:W._blockHoist,Mt=`declaration:${Ke}:${_t}`;let pt=!Fe&&fe.getData(Mt);if(!pt){const de=De(Ke,[]);de._blockHoist=_t,[pt]=fe.unshiftContainer("body",[de]),Fe||fe.setData(Mt,pt)}const xt=Me(it,Re),te=pt.node.declarations.push(xt);fe.scope.registerBinding(Ke,pt.get("declarations")[te-1])}getProgramParent(){let W=this;do if(W.path.isProgram())return W;while(W=W.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let W=this;do if(W.path.isFunctionParent())return W;while(W=W.parent);return null}getBlockParent(){let W=this;do if(W.path.isBlockParent())return W;while(W=W.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let W=this;do if(!W.path.isPattern())return W.getBlockParent();while(W=W.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const W=Object.create(null);let fe=this;do{for(const Re of Object.keys(fe.bindings))Re in W||(W[Re]=fe.bindings[Re]);fe=fe.parent}while(fe);return W}bindingIdentifierEquals(W,fe){return this.getBindingIdentifier(W)===fe}getBinding(W){let fe=this,Re;do{const Ke=fe.getOwnBinding(W);if(Ke){var Fe;if(!((Fe=Re)!=null&&Fe.isPattern()&&Ke.kind!=="param"&&Ke.kind!=="local"))return Ke}else if(!Ke&&W==="arguments"&&fe.path.isFunction()&&!fe.path.isArrowFunctionExpression())break;Re=fe.path}while(fe=fe.parent)}getOwnBinding(W){return this.bindings[W]}getBindingIdentifier(W){var fe;return(fe=this.getBinding(W))==null?void 0:fe.identifier}getOwnBindingIdentifier(W){const fe=this.bindings[W];return fe==null?void 0:fe.identifier}hasOwnBinding(W){return!!this.getOwnBinding(W)}hasBinding(W,fe){if(!W)return!1;let Re,Fe,Ke;typeof fe=="object"?(Re=fe.noGlobals,Fe=fe.noUids,Ke=fe.upToScope):typeof fe=="boolean"&&(Re=fe);let it=this;do{if(Ke===it)break;if(it.hasOwnBinding(W))return!0}while(it=it.parent);return!!(!Fe&&this.hasUid(W)||!Re&&ee.globals.includes(W)||!Re&&ee.contextVariables.includes(W))}parentHasBinding(W,fe){var Re;return(Re=this.parent)==null?void 0:Re.hasBinding(W,fe)}moveBindingTo(W,fe){const Re=this.getBinding(W);Re&&(Re.scope.removeOwnBinding(W),Re.scope=fe,fe.bindings[W]=Re)}removeOwnBinding(W){delete this.bindings[W]}removeBinding(W){var fe;(fe=this.getBinding(W))==null||fe.scope.removeOwnBinding(W);let Re=this;do Re.uids[W]&&(Re.uids[W]=!1);while(Re=Re.parent)}hoistVariables(W=fe=>this.push({id:fe})){this.crawl();const fe=new Set;for(const Re of Object.keys(this.bindings)){const Fe=this.bindings[Re];if(!Fe)continue;const{path:Ke}=Fe;if(!Ke.isVariableDeclarator())continue;const{parent:it,parentPath:_t}=Ke;if(it.kind!=="var"||fe.has(it))continue;fe.add(Ke.parent);let Mt;const pt=[];for(const xt of it.declarations){Mt??(Mt=xt.id),xt.init&&pt.push(p("=",xt.id,xt.init));const te=Object.keys(g(xt,!1,!0,!0));for(const de of te)W(b(de),xt.init!=null)}if(_t.parentPath.isForXStatement({left:it}))_t.replaceWith(Mt);else if(pt.length===0)_t.remove();else{const xt=pt.length===1?pt[0]:je(pt);_t.parentPath.isForStatement({init:it})?_t.replaceWith(xt):_t.replaceWith(L(xt))}}}}return Lo.default=ee,ee.globals=[...a,...u],ee.contextVariables=["arguments","undefined","Infinity","NaN"],ee.prototype._renameFromMap=function(W,fe,Re,Fe){W[fe]&&(W[Re]=Fe,W[fe]=null)},ee.prototype.traverse=function(oe,W,fe){(0,e.default)(oe,W,this,fe,this.path)},ee.prototype._generateUid=function(W,fe){let Re=W;return fe>1&&(Re+=fe),`_${Re}`},ee.prototype.toArray=function(W,fe,Re){if(I(W)){const it=this.getBinding(W.name);if(it!=null&&it.constant&&it.path.isGenericType("Array"))return W}if(S(W))return W;if(I(W,{name:"arguments"}))return y(ye(ye(ye(b("Array"),b("prototype")),b("slice")),b("call")),[W]);let Fe;const Ke=[W];return fe===!0?Fe="toConsumableArray":typeof fe=="number"?(Ke.push(Ie(fe)),Fe="slicedToArray"):Fe="toArray",Re&&(Ke.unshift(this.path.hub.addHelper(Fe)),Fe="maybeArrayLike"),y(this.path.hub.addHelper(Fe),Ke)},ee.prototype.getAllBindingsOfKind=function(...W){const fe=Object.create(null);for(const Re of W){let Fe=this;do{for(const Ke of Object.keys(Fe.bindings)){const it=Fe.bindings[Ke];it.kind===Re&&(fe[Ke]=it)}Fe=Fe.parent}while(Fe)}return fe},Object.defineProperties(ee.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}}),Lo}var aa={},$o={},zf={exports:{}},Hf={exports:{}},A1;function C1(){return A1||(A1=1,function(t,e){(function(r,n){n(t),t.exports=s(t);function s(o){return"default"in o.exports?o.exports.default:o.exports}})(Ii,function(r){var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,u=(U,L)=>{for(var H in L)n(U,H,{get:L[H],enumerable:!0})},p=(U,L,H,ye)=>{if(L&&typeof L=="object"||typeof L=="function")for(let Ie of o(L))!a.call(U,Ie)&&Ie!==H&&n(U,Ie,{get:()=>L[Ie],enumerable:!(ye=s(L,Ie))||ye.enumerable});return U},y=U=>p(n({},"__esModule",{value:!0}),U),h={};u(h,{decode:()=>K,decodeGeneratedRanges:()=>ne,decodeOriginalScopes:()=>J,decodeRangeMappings:()=>ce,encode:()=>ae,encodeGeneratedRanges:()=>me,encodeOriginalScopes:()=>N,encodeRangeMappings:()=>ue}),r.exports=y(h);var g=44,b=59,S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=new Uint8Array(64),_=new Uint8Array(128);for(let U=0;U<S.length;U++){const L=S.charCodeAt(U);O[U]=L,_[L]=U}function w(U){let L=0,H=0,ye=0;do{const Ie=U.next();ye=_[Ie],L|=(ye&31)<<H,H+=5}while(ye&32);return L}function C(U){return U&1?-2147483648|-(U>>>1):U>>>1}function T(U,L){do{let H=L&31;L>>>=5,L>0&&(H|=32),U.write(O[H])}while(L>0)}function x(U){return U<0?-U<<1|1:U<<1}function E(U,L){return U.pos>=L?!1:U.peek()!==g}var j=1024*16,R=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(U){return Buffer.from(U.buffer,U.byteOffset,U.byteLength).toString()}}:{decode(U){let L="";for(let H=0;H<U.length;H++)L+=String.fromCharCode(U[H]);return L}},I=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(j)}write(U){const{buffer:L}=this;L[this.pos++]=U,this.pos===j&&(this.out+=R.decode(L),this.pos=0)}flush(){const{buffer:U,out:L,pos:H}=this;return H>0?L+R.decode(U.subarray(0,H)):L}},D=class{constructor(U){this.pos=0,this.buffer=U}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(U){const{buffer:L,pos:H}=this,ye=L.indexOf(U,H);return ye===-1?L.length:ye}},Z=[];function J(U){const{length:L}=U,H=new D(U),ye=[],Ie=[];let Ee=0;for(;H.pos<L;H.pos++){Ee+=C(w(H));const De=C(w(H));if(!E(H,L)){const dt=Ie.pop();dt[2]=Ee,dt[3]=De;continue}const Me=C(w(H)),ut=C(w(H))&1?[Ee,De,0,0,Me,C(w(H))]:[Ee,De,0,0,Me];let st=Z;if(E(H,L)){st=[];do{const dt=C(w(H));st.push(dt)}while(E(H,L))}ut.vars=st,ye.push(ut),Ie.push(ut)}return ye}function N(U){const L=new I;for(let H=0;H<U.length;)H=$(U,H,L,[0]);return L.flush()}function $(U,L,H,ye){const Ie=U[L],{0:Ee,1:De,2:Me,3:Ve,4:Ze,vars:ut}=Ie;L>0&&H.write(g),T(H,x(Ee-ye[0])),ye[0]=Ee,T(H,x(De)),T(H,x(Ze));const st=Ie.length===6?1:0;T(H,x(st)),Ie.length===6&&T(H,x(Ie[5]));for(const dt of ut)T(H,x(dt));for(L++;L<U.length;){const dt=U[L],{0:$e,1:je}=dt;if($e>Me||$e===Me&&je>=Ve)break;L=$(U,L,H,ye)}return H.write(g),T(H,x(Me-ye[0])),ye[0]=Me,T(H,x(Ve)),L}function ne(U){const{length:L}=U,H=new D(U),ye=[],Ie=[];let Ee=0,De=0,Me=0,Ve=0,Ze=0,ut=0,st=0,dt=0;do{const $e=H.indexOf(";");let je=0;for(;H.pos<$e;H.pos++){if(je+=C(w(H)),!E(H,$e)){const ee=Ie.pop();ee[2]=Ee,ee[3]=je;continue}const qe=C(w(H)),Le=qe&1,gt=qe&2,ht=qe&4;let xe=null,Se=Z,se;if(Le){const ee=De+C(w(H));Me=C(w(H))+(De===ee?Me:0),De=ee,se=[Ee,je,0,0,ee,Me]}else se=[Ee,je,0,0];if(se.isScope=!!ht,gt){const ee=Ve,oe=Ze;Ve+=C(w(H));const W=ee===Ve;Ze=(W?Ze:0)+C(w(H)),ut=(W&&oe===Ze?ut:0)+C(w(H)),xe=[Ve,Ze,ut]}if(se.callsite=xe,E(H,$e)){Se=[];do{st=Ee,dt=je;const ee=C(w(H));let oe;if(ee<-1){oe=[[C(w(H))]];for(let W=-1;W>ee;W--){const fe=st;st+=C(w(H)),dt=(st===fe?dt:0)+C(w(H));const Re=C(w(H));oe.push([Re,st,dt])}}else oe=[[ee]];Se.push(oe)}while(E(H,$e))}se.bindings=Se,ye.push(se),Ie.push(se)}Ee++,H.pos=$e+1}while(H.pos<L);return ye}function me(U){if(U.length===0)return"";const L=new I;for(let H=0;H<U.length;)H=Ce(U,H,L,[0,0,0,0,0,0,0]);return L.flush()}function Ce(U,L,H,ye){const Ie=U[L],{0:Ee,1:De,2:Me,3:Ve,isScope:Ze,callsite:ut,bindings:st}=Ie;ye[0]<Ee?(Ae(H,ye[0],Ee),ye[0]=Ee,ye[1]=0):L>0&&H.write(g),T(H,x(Ie[1]-ye[1])),ye[1]=Ie[1];const dt=(Ie.length===6?1:0)|(ut?2:0)|(Ze?4:0);if(T(H,x(dt)),Ie.length===6){const{4:$e,5:je}=Ie;$e!==ye[2]&&(ye[3]=0),T(H,x($e-ye[2])),ye[2]=$e,T(H,x(je-ye[3])),ye[3]=je}if(ut){const{0:$e,1:je,2:qe}=Ie.callsite;$e!==ye[4]?(ye[5]=0,ye[6]=0):je!==ye[5]&&(ye[6]=0),T(H,x($e-ye[4])),ye[4]=$e,T(H,x(je-ye[5])),ye[5]=je,T(H,x(qe-ye[6])),ye[6]=qe}if(st)for(const $e of st){$e.length>1&&T(H,x(-$e.length));const je=$e[0][0];T(H,x(je));let qe=Ee,Le=De;for(let gt=1;gt<$e.length;gt++){const ht=$e[gt];T(H,x(ht[1]-qe)),qe=ht[1],T(H,x(ht[2]-Le)),Le=ht[2],T(H,x(ht[0]))}}for(L++;L<U.length;){const $e=U[L],{0:je,1:qe}=$e;if(je>Me||je===Me&&qe>=Ve)break;L=Ce(U,L,H,ye)}return ye[0]<Me?(Ae(H,ye[0],Me),ye[0]=Me,ye[1]=0):H.write(g),T(H,x(Ve-ye[1])),ye[1]=Ve,L}function Ae(U,L,H){do U.write(b);while(++L<H)}function ce(U){const{length:L}=U,H=new D(U),ye=[];do{const Ie=H.indexOf(";"),Ee=[];let De=0;for(;H.pos<Ie;)De+=w(H),Ee.push(De);ye.push(Ee),H.pos=Ie+1}while(H.pos<=L);return ye}function ue(U){if(U.length===0)return"";const L=new I;for(let H=0;H<U.length;H++){const ye=U[H];H>0&&L.write(b);let Ie=0;for(let Ee=0;Ee<ye.length;Ee++){const De=ye[Ee];T(L,De-Ie),Ie=De}}return L.flush()}function K(U){const{length:L}=U,H=new D(U),ye=[];let Ie=0,Ee=0,De=0,Me=0,Ve=0;do{const Ze=H.indexOf(";"),ut=[];let st=!0,dt=0;for(Ie=0;H.pos<Ze;){let $e;Ie+=C(w(H)),Ie<dt&&(st=!1),dt=Ie,E(H,Ze)?(Ee+=C(w(H)),De+=C(w(H)),Me+=C(w(H)),E(H,Ze)?(Ve+=C(w(H)),$e=[Ie,Ee,De,Me,Ve]):$e=[Ie,Ee,De,Me]):$e=[Ie],ut.push($e),H.pos++}st||Y(ut),ye.push(ut),H.pos=Ze+1}while(H.pos<=L);return ye}function Y(U){U.sort(he)}function he(U,L){return U[0]-L[0]}function ae(U){const L=new I;let H=0,ye=0,Ie=0,Ee=0;for(let De=0;De<U.length;De++){const Me=U[De];if(De>0&&L.write(b),Me.length===0)continue;let Ve=0;for(let Ze=0;Ze<Me.length;Ze++){const ut=Me[Ze];Ze>0&&L.write(g),T(L,x(ut[0]-Ve)),Ve=ut[0],ut.length!==1&&(T(L,x(ut[1]-H)),T(L,x(ut[2]-ye)),T(L,x(ut[3]-Ie)),H=ut[1],ye=ut[2],Ie=ut[3],ut.length!==4&&(T(L,x(ut[4]-Ee)),Ee=ut[4]))}}return L.flush()}})}(Hf)),Hf.exports}var Jf={exports:{}},Yf={exports:{}},I1;function Ox(){return I1||(I1=1,function(t,e){(function(r,n){t.exports=n()})(Ii,function(){const r=/^[\w+.-]+:\/\//,n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,s=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(T){return r.test(T)}function a(T){return T.startsWith("//")}function u(T){return T.startsWith("/")}function p(T){return T.startsWith("file:")}function y(T){return/^[.?#]/.test(T)}function h(T){const x=n.exec(T);return b(x[1],x[2]||"",x[3],x[4]||"",x[5]||"/",x[6]||"",x[7]||"")}function g(T){const x=s.exec(T),E=x[2];return b("file:","",x[1]||"","",u(E)?E:"/"+E,x[3]||"",x[4]||"")}function b(T,x,E,j,R,I,D){return{scheme:T,user:x,host:E,port:j,path:R,query:I,hash:D,type:7}}function S(T){if(a(T)){const E=h("http:"+T);return E.scheme="",E.type=6,E}if(u(T)){const E=h("http://foo.com"+T);return E.scheme="",E.host="",E.type=5,E}if(p(T))return g(T);if(o(T))return h(T);const x=h("http://foo.com/"+T);return x.scheme="",x.host="",x.type=T?T.startsWith("?")?3:T.startsWith("#")?2:4:1,x}function O(T){if(T.endsWith("/.."))return T;const x=T.lastIndexOf("/");return T.slice(0,x+1)}function _(T,x){w(x,x.type),T.path==="/"?T.path=x.path:T.path=O(x.path)+T.path}function w(T,x){const E=x<=4,j=T.path.split("/");let R=1,I=0,D=!1;for(let J=1;J<j.length;J++){const N=j[J];if(!N){D=!0;continue}if(D=!1,N!=="."){if(N===".."){I?(D=!0,I--,R--):E&&(j[R++]=N);continue}j[R++]=N,I++}}let Z="";for(let J=1;J<R;J++)Z+="/"+j[J];(!Z||D&&!Z.endsWith("/.."))&&(Z+="/"),T.path=Z}function C(T,x){if(!T&&!x)return"";const E=S(T);let j=E.type;if(x&&j!==7){const I=S(x),D=I.type;switch(j){case 1:E.hash=I.hash;case 2:E.query=I.query;case 3:case 4:_(E,I);case 5:E.user=I.user,E.host=I.host,E.port=I.port;case 6:E.scheme=I.scheme}D>j&&(j=D)}w(E,j);const R=E.query+E.hash;switch(j){case 2:case 3:return R;case 4:{const I=E.path.slice(1);return I?y(x||T)&&!y(I)?"./"+I+R:I+R:R||"."}case 5:return E.path+R;default:return E.scheme+"//"+E.user+E.host+E.port+E.path+R}}return C})}(Yf)),Yf.exports}var O1;function Xf(){return O1||(O1=1,function(t,e){(function(r,n){n(t,Ox(),C1()),t.exports=s(t);function s(o){return"default"in o.exports?o.exports.default:o.exports}})(Ii,function(r,n,s){var o=Object.create,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(te,de)=>function(){return de||(0,te[p(te)[0]])((de={exports:{}}).exports,de),de.exports},b=(te,de)=>{for(var G in de)a(te,G,{get:de[G],enumerable:!0})},S=(te,de,G,be)=>{if(de&&typeof de=="object"||typeof de=="function")for(let et of p(de))!h.call(te,et)&&et!==G&&a(te,et,{get:()=>de[et],enumerable:!(be=u(de,et))||be.enumerable});return te},O=(te,de,G)=>(G=te!=null?o(y(te)):{},S(!te||!te.__esModule?a(G,"default",{value:te,enumerable:!0}):G,te)),_=te=>S(a({},"__esModule",{value:!0}),te),w=g({"umd:@jridgewell/sourcemap-codec"(te,de){de.exports=s}}),C=g({"umd:@jridgewell/resolve-uri"(te,de){de.exports=n}}),T={};b(T,{AnyMap:()=>Ie,FlattenMap:()=>Ie,GREATEST_LOWER_BOUND:()=>dt,LEAST_UPPER_BOUND:()=>st,TraceMap:()=>$e,allGeneratedPositionsFor:()=>Se,decodedMap:()=>Re,decodedMappings:()=>Le,eachMapping:()=>se,encodedMap:()=>Fe,encodedMappings:()=>qe,generatedPositionFor:()=>xe,isIgnored:()=>W,originalPositionFor:()=>ht,presortedDecodedMap:()=>fe,sourceContentFor:()=>oe,traceSegment:()=>gt}),r.exports=_(T);var x=O(w()),E=O(C());function j(te){if(!te)return"";const de=te.lastIndexOf("/");return te.slice(0,de+1)}function R(te,de){const G=j(te),be=de?de+"/":"";return et=>(0,E.default)(be+(et||""),G)}var I=0,D=1,Z=2,J=3,N=4,$=1,ne=2;function me(te,de){const G=Ce(te,0);if(G===te.length)return te;de||(te=te.slice());for(let be=G;be<te.length;be=Ce(te,be+1))te[be]=ce(te[be],de);return te}function Ce(te,de){for(let G=de;G<te.length;G++)if(!Ae(te[G]))return G;return te.length}function Ae(te){for(let de=1;de<te.length;de++)if(te[de][I]<te[de-1][I])return!1;return!0}function ce(te,de){return de||(te=te.slice()),te.sort(ue)}function ue(te,de){return te[I]-de[I]}function K(te,de){const G=de.map(()=>[]);for(let be=0;be<te.length;be++){const et=te[be];for(let ge=0;ge<et.length;ge++){const rt=et[ge];if(rt.length===1)continue;const yt=rt[D],mt=rt[Z],Bt=rt[J],Lt=G[yt];(Lt[mt]||(Lt[mt]=[])).push([Bt,be,rt[I]])}}for(let be=0;be<G.length;be++){const et=G[be];for(let ge=0;ge<et.length;ge++){const rt=et[ge];rt&&rt.sort(ue)}}return G}var Y=!1;function he(te,de,G,be){for(;G<=be;){const et=G+(be-G>>1),ge=te[et][I]-de;if(ge===0)return Y=!0,et;ge<0?G=et+1:be=et-1}return Y=!1,G-1}function ae(te,de,G){for(let be=G+1;be<te.length&&te[be][I]===de;G=be++);return G}function U(te,de,G){for(let be=G-1;be>=0&&te[be][I]===de;G=be--);return G}function L(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function H(te,de,G,be){const{lastKey:et,lastNeedle:ge,lastIndex:rt}=G;let yt=0,mt=te.length-1;if(be===et){if(de===ge)return Y=rt!==-1&&te[rt][I]===de,rt;de>=ge?yt=rt===-1?0:rt:mt=rt}return G.lastKey=be,G.lastNeedle=de,G.lastIndex=he(te,de,yt,mt)}function ye(te){return typeof te=="string"?JSON.parse(te):te}var Ie=function(te,de){const G=ye(te);if(!("sections"in G))return new $e(G,de);const be=[],et=[],ge=[],rt=[],yt=[];Ee(G,de,be,et,ge,rt,yt,0,0,1/0,1/0);const mt={version:3,file:G.file,names:rt,sources:et,sourcesContent:ge,mappings:be,ignoreList:yt};return fe(mt)};function Ee(te,de,G,be,et,ge,rt,yt,mt,Bt,Lt){const{sections:Vt}=te;for(let Ht=0;Ht<Vt.length;Ht++){const{map:lr,offset:xr}=Vt[Ht];let Wt=Bt,tr=Lt;if(Ht+1<Vt.length){const pn=Vt[Ht+1].offset;Wt=Math.min(Bt,yt+pn.line),Wt===Bt?tr=Math.min(Lt,mt+pn.column):Wt<Bt&&(tr=mt+pn.column)}De(lr,de,G,be,et,ge,rt,yt+xr.line,mt+xr.column,Wt,tr)}}function De(te,de,G,be,et,ge,rt,yt,mt,Bt,Lt){const Vt=ye(te);if("sections"in Vt)return Ee(...arguments);const Ht=new $e(Vt,de),lr=be.length,xr=ge.length,Wt=Le(Ht),{resolvedSources:tr,sourcesContent:pn,ignoreList:dn}=Ht;if(Me(be,tr),Me(ge,Ht.names),pn)Me(et,pn);else for(let Sr=0;Sr<tr.length;Sr++)et.push(null);if(dn)for(let Sr=0;Sr<dn.length;Sr++)rt.push(dn[Sr]+lr);for(let Sr=0;Sr<Wt.length;Sr++){const Rt=yt+Sr;if(Rt>Bt)return;const ui=Ve(G,Rt),Vr=Sr===0?mt:0,tn=Wt[Sr];for(let Rr=0;Rr<tn.length;Rr++){const jr=tn[Rr],Dn=Vr+jr[I];if(Rt===Bt&&Dn>=Lt)return;if(jr.length===1){ui.push([Dn]);continue}const Kr=lr+jr[D],Hn=jr[Z],Nr=jr[J];ui.push(jr.length===4?[Dn,Kr,Hn,Nr]:[Dn,Kr,Hn,Nr,xr+jr[N]])}}}function Me(te,de){for(let G=0;G<de.length;G++)te.push(de[G])}function Ve(te,de){for(let G=te.length;G<=de;G++)te[G]=[];return te[de]}var Ze="`line` must be greater than 0 (lines start at line 1)",ut="`column` must be greater than or equal to 0 (columns start at column 0)",st=-1,dt=1,$e=class{constructor(te,de){const G=typeof te=="string";if(!G&&te._decodedMemo)return te;const be=ye(te),{version:et,file:ge,names:rt,sourceRoot:yt,sources:mt,sourcesContent:Bt}=be;this.version=et,this.file=ge,this.names=rt||[],this.sourceRoot=yt,this.sources=mt,this.sourcesContent=Bt,this.ignoreList=be.ignoreList||be.x_google_ignoreList||void 0;const Lt=R(de,yt);this.resolvedSources=mt.map(Lt);const{mappings:Vt}=be;if(typeof Vt=="string")this._encoded=Vt,this._decoded=void 0;else if(Array.isArray(Vt))this._encoded=void 0,this._decoded=me(Vt,G);else throw be.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(be)}`);this._decodedMemo=L(),this._bySources=void 0,this._bySourceMemos=void 0}};function je(te){return te}function qe(te){var de,G;return(G=(de=te)._encoded)!=null?G:de._encoded=(0,x.encode)(te._decoded)}function Le(te){var de;return(de=te)._decoded||(de._decoded=(0,x.decode)(te._encoded))}function gt(te,de,G){const be=Le(te);if(de>=be.length)return null;const et=be[de],ge=Mt(et,te._decodedMemo,de,G,dt);return ge===-1?null:et[ge]}function ht(te,de){let{line:G,column:be,bias:et}=de;if(G--,G<0)throw new Error(Ze);if(be<0)throw new Error(ut);const ge=Le(te);if(G>=ge.length)return it(null,null,null,null);const rt=ge[G],yt=Mt(rt,te._decodedMemo,G,be,et||dt);if(yt===-1)return it(null,null,null,null);const mt=rt[yt];if(mt.length===1)return it(null,null,null,null);const{names:Bt,resolvedSources:Lt}=te;return it(Lt[mt[D]],mt[Z]+1,mt[J],mt.length===5?Bt[mt[N]]:null)}function xe(te,de){const{source:G,line:be,column:et,bias:ge}=de;return xt(te,G,be,et,ge||dt,!1)}function Se(te,de){const{source:G,line:be,column:et,bias:ge}=de;return xt(te,G,be,et,ge||st,!0)}function se(te,de){const G=Le(te),{names:be,resolvedSources:et}=te;for(let ge=0;ge<G.length;ge++){const rt=G[ge];for(let yt=0;yt<rt.length;yt++){const mt=rt[yt],Bt=ge+1,Lt=mt[0];let Vt=null,Ht=null,lr=null,xr=null;mt.length!==1&&(Vt=et[mt[1]],Ht=mt[2]+1,lr=mt[3]),mt.length===5&&(xr=be[mt[4]]),de({generatedLine:Bt,generatedColumn:Lt,source:Vt,originalLine:Ht,originalColumn:lr,name:xr})}}}function ee(te,de){const{sources:G,resolvedSources:be}=te;let et=G.indexOf(de);return et===-1&&(et=be.indexOf(de)),et}function oe(te,de){const{sourcesContent:G}=te;if(G==null)return null;const be=ee(te,de);return be===-1?null:G[be]}function W(te,de){const{ignoreList:G}=te;if(G==null)return!1;const be=ee(te,de);return be===-1?!1:G.includes(be)}function fe(te,de){const G=new $e(Ke(te,[]),de);return G._decoded=te.mappings,G}function Re(te){return Ke(te,Le(te))}function Fe(te){return Ke(te,qe(te))}function Ke(te,de){return{version:te.version,file:te.file,names:te.names,sourceRoot:te.sourceRoot,sources:te.sources,sourcesContent:te.sourcesContent,mappings:de,ignoreList:te.ignoreList||te.x_google_ignoreList}}function it(te,de,G,be){return{source:te,line:de,column:G,name:be}}function _t(te,de){return{line:te,column:de}}function Mt(te,de,G,be,et){let ge=H(te,be,de,G);return Y?ge=(et===st?ae:U)(te,be,ge):et===st&&ge++,ge===-1||ge===te.length?-1:ge}function pt(te,de,G,be,et){let ge=Mt(te,de,G,be,dt);if(!Y&&et===st&&ge++,ge===-1||ge===te.length)return[];const rt=Y?be:te[ge][I];Y||(ge=U(te,rt,ge));const yt=ae(te,rt,ge),mt=[];for(;ge<=yt;ge++){const Bt=te[ge];mt.push(_t(Bt[$]+1,Bt[ne]))}return mt}function xt(te,de,G,be,et,ge){var rt,yt;if(G--,G<0)throw new Error(Ze);if(be<0)throw new Error(ut);const{sources:mt,resolvedSources:Bt}=te;let Lt=mt.indexOf(de);if(Lt===-1&&(Lt=Bt.indexOf(de)),Lt===-1)return ge?[]:_t(null,null);const Vt=(rt=te)._bySourceMemos||(rt._bySourceMemos=mt.map(L)),lr=((yt=te)._bySources||(yt._bySources=K(Le(te),Vt)))[Lt][G];if(lr==null)return ge?[]:_t(null,null);const xr=Vt[Lt];if(ge)return pt(lr,xr,G,be,et);const Wt=Mt(lr,xr,G,be,et);if(Wt===-1)return _t(null,null);const tr=lr[Wt];return _t(tr[$]+1,tr[ne])}})}(Jf)),Jf.exports}var N1;function k1(){return N1||(N1=1,function(t,e){(function(r,n){n(t,C1(),Xf()),t.exports=s(t);function s(o){return"default"in o.exports?o.exports.default:o.exports}})(Ii,function(r,n,s){var o=Object.create,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(je,qe)=>function(){return qe||(0,je[p(je)[0]])((qe={exports:{}}).exports,qe),qe.exports},b=(je,qe)=>{for(var Le in qe)a(je,Le,{get:qe[Le],enumerable:!0})},S=(je,qe,Le,gt)=>{if(qe&&typeof qe=="object"||typeof qe=="function")for(let ht of p(qe))!h.call(je,ht)&&ht!==Le&&a(je,ht,{get:()=>qe[ht],enumerable:!(gt=u(qe,ht))||gt.enumerable});return je},O=(je,qe,Le)=>(Le=je!=null?o(y(je)):{},S(!je||!je.__esModule?a(Le,"default",{value:je,enumerable:!0}):Le,je)),_=je=>S(a({},"__esModule",{value:!0}),je),w=g({"umd:@jridgewell/sourcemap-codec"(je,qe){qe.exports=n}}),C=g({"umd:@jridgewell/trace-mapping"(je,qe){qe.exports=s}}),T={};b(T,{GenMapping:()=>Ae,addMapping:()=>K,addSegment:()=>ue,allMappings:()=>Ie,fromMap:()=>ye,maybeAddMapping:()=>he,maybeAddSegment:()=>Y,setIgnore:()=>U,setSourceContent:()=>ae,toDecodedMap:()=>L,toEncodedMap:()=>H}),r.exports=_(T);var x=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function E(je){return je}function j(je,qe){return je._indexes[qe]}function R(je,qe){const Le=j(je,qe);if(Le!==void 0)return Le;const{array:gt,_indexes:ht}=je,xe=gt.push(qe);return ht[qe]=xe-1}function I(je,qe){const Le=j(je,qe);if(Le===void 0)return;const{array:gt,_indexes:ht}=je;for(let xe=Le+1;xe<gt.length;xe++){const Se=gt[xe];gt[xe-1]=Se,ht[Se]--}ht[qe]=void 0,gt.pop()}var D=O(w()),Z=O(C()),J=0,N=1,$=2,ne=3,me=4,Ce=-1,Ae=class{constructor({file:je,sourceRoot:qe}={}){this._names=new x,this._sources=new x,this._sourcesContent=[],this._mappings=[],this.file=je,this.sourceRoot=qe,this._ignoreList=new x}};function ce(je){return je}function ue(je,qe,Le,gt,ht,xe,Se,se){return Ee(!1,je,qe,Le,gt,ht,xe,Se,se)}function K(je,qe){return $e(!1,je,qe)}var Y=(je,qe,Le,gt,ht,xe,Se,se)=>Ee(!0,je,qe,Le,gt,ht,xe,Se,se),he=(je,qe)=>$e(!0,je,qe);function ae(je,qe,Le){const{_sources:gt,_sourcesContent:ht}=je,xe=R(gt,qe);ht[xe]=Le}function U(je,qe,Le=!0){const{_sources:gt,_sourcesContent:ht,_ignoreList:xe}=je,Se=R(gt,qe);Se===ht.length&&(ht[Se]=null),Le?R(xe,Se):I(xe,Se)}function L(je){const{_mappings:qe,_sources:Le,_sourcesContent:gt,_names:ht,_ignoreList:xe}=je;return Ze(qe),{version:3,file:je.file||void 0,names:ht.array,sourceRoot:je.sourceRoot||void 0,sources:Le.array,sourcesContent:gt,mappings:qe,ignoreList:xe.array}}function H(je){const qe=L(je);return Object.assign({},qe,{mappings:(0,D.encode)(qe.mappings)})}function ye(je){const qe=new Z.TraceMap(je),Le=new Ae({file:qe.file,sourceRoot:qe.sourceRoot});return ut(Le._names,qe.names),ut(Le._sources,qe.sources),Le._sourcesContent=qe.sourcesContent||qe.sources.map(()=>null),Le._mappings=(0,Z.decodedMappings)(qe),qe.ignoreList&&ut(Le._ignoreList,qe.ignoreList),Le}function Ie(je){const qe=[],{_mappings:Le,_sources:gt,_names:ht}=je;for(let xe=0;xe<Le.length;xe++){const Se=Le[xe];for(let se=0;se<Se.length;se++){const ee=Se[se],oe={line:xe+1,column:ee[J]};let W,fe,Re;ee.length!==1&&(W=gt.array[ee[N]],fe={line:ee[$]+1,column:ee[ne]},ee.length===5&&(Re=ht.array[ee[me]])),qe.push({generated:oe,source:W,original:fe,name:Re})}}return qe}function Ee(je,qe,Le,gt,ht,xe,Se,se,ee){const{_mappings:oe,_sources:W,_sourcesContent:fe,_names:Re}=qe,Fe=De(oe,Le),Ke=Me(Fe,gt);if(!ht)return je&&st(Fe,Ke)?void 0:Ve(Fe,Ke,[gt]);const it=R(W,ht),_t=se?R(Re,se):Ce;if(it===fe.length&&(fe[it]=ee??null),!(je&&dt(Fe,Ke,it,xe,Se,_t)))return Ve(Fe,Ke,se?[gt,it,xe,Se,_t]:[gt,it,xe,Se])}function De(je,qe){for(let Le=je.length;Le<=qe;Le++)je[Le]=[];return je[qe]}function Me(je,qe){let Le=je.length;for(let gt=Le-1;gt>=0;Le=gt--){const ht=je[gt];if(qe>=ht[J])break}return Le}function Ve(je,qe,Le){for(let gt=je.length;gt>qe;gt--)je[gt]=je[gt-1];je[qe]=Le}function Ze(je){const{length:qe}=je;let Le=qe;for(let gt=Le-1;gt>=0&&!(je[gt].length>0);Le=gt,gt--);Le<qe&&(je.length=Le)}function ut(je,qe){for(let Le=0;Le<qe.length;Le++)R(je,qe[Le])}function st(je,qe){return qe===0?!0:je[qe-1].length===1}function dt(je,qe,Le,gt,ht,xe){if(qe===0)return!1;const Se=je[qe-1];return Se.length===1?!1:Le===Se[N]&&gt===Se[$]&&ht===Se[ne]&&xe===(Se.length===5?Se[me]:Ce)}function $e(je,qe,Le){const{generated:gt,source:ht,original:xe,name:Se,content:se}=Le;return ht?Ee(je,qe,gt.line-1,gt.column,ht,xe.line-1,xe.column,Se,se):Ee(je,qe,gt.line-1,gt.column,null,null,null,null,null)}})}(zf)),zf.exports}var D1;function Nx(){if(D1)return $o;D1=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var t=k1(),e=Xf();class r{constructor(s,o){var a;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;const u=this._map=new t.GenMapping({sourceRoot:s.sourceRoot});if(this._sourceFileName=(a=s.sourceFileName)==null?void 0:a.replace(/\\/g,"/"),this._rawMappings=void 0,s.inputSourceMap){this._inputMap=new e.TraceMap(s.inputSourceMap);const y=this._inputMap.resolvedSources;if(y.length)for(let h=0;h<y.length;h++){var p;(0,t.setSourceContent)(u,y[h],(p=this._inputMap.sourcesContent)==null?void 0:p[h])}}if(typeof o=="string"&&!s.inputSourceMap)(0,t.setSourceContent)(u,this._sourceFileName,o);else if(typeof o=="object")for(const y of Object.keys(o))(0,t.setSourceContent)(u,y.replace(/\\/g,"/"),o[y])}get(){return(0,t.toEncodedMap)(this._map)}getDecoded(){return(0,t.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,t.allMappings)(this._map))}mark(s,o,a,u,p,y){var h;this._rawMappings=void 0;let g;if(o!=null)if(this._inputMap){if(g=(0,e.originalPositionFor)(this._inputMap,{line:o,column:a}),g.name&&(p||u!=null&&g.column===a))u=g.name;else if(p){const b=(0,e.originalPositionFor)(this._inputMap,p);b.name&&(u=b.name)}}else g={name:null,source:(y==null?void 0:y.replace(/\\/g,"/"))||this._sourceFileName,line:o,column:a};(0,t.maybeAddMapping)(this._map,{name:u,generated:s,source:(h=g)==null?void 0:h.source,original:g})}}return $o.default=r,$o}var Uo={},Vo={},B1;function kx(){if(B1)return Vo;B1=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;const t=[];for(let r=0;r<32;r++)t.push(" ".repeat(r*2));class e{constructor(n,s){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=n,this._indentChar=s}get(){const{_map:n,_last:s}=this;this._queuedChar!==32&&this._flush();const o=s===10?(this._buf+this._str).trimRight():this._buf+this._str;if(n===null)return{code:o,decodedMap:void 0,map:null,rawMappings:void 0};const a={code:o,decodedMap:n.getDecoded(),get __mergedMap(){return this.map},get map(){const u=n.get();return a.map=u,u},set map(u){Object.defineProperty(a,"map",{value:u,writable:!0})},get rawMappings(){const u=n.getRawMappings();return a.rawMappings=u,u},set rawMappings(u){Object.defineProperty(a,"rawMappings",{value:u,writable:!0})}};return a}append(n,s,o=!1){this._flush(),this._append(n,s,o)}appendChar(n){this._flush(),this._appendChar(n,1,!0)}queue(n){this._flush(),this._queuedChar=n}_flush(){const n=this._queuedChar;n!==0&&(this._appendChar(n,1,!0),this._queuedChar=0)}_appendChar(n,s,o){if(this._last=n,n===-1){const p=s>=64?this._indentChar.repeat(s):t[s/2];this._str+=p}else this._str+=s>1?String.fromCharCode(n).repeat(s):String.fromCharCode(n);const a=n===32,u=this._position;if(n!==10){if(this._map){const p=this._sourcePosition;o&&p?(this._map.mark(u,p.line,p.column,a?void 0:p.identifierName,a?void 0:p.identifierNamePos,p.filename),!a&&this._canMarkIdName&&(p.identifierName=void 0,p.identifierNamePos=void 0)):this._map.mark(u)}u.column+=s}else u.line++,u.column=0}_append(n,s,o){const a=n.length,u=this._position,p=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=n,this._appendCount=0):this._str+=n;const y=!o&&this._map!==null;if(!s&&!y){u.column+=a;return}const{column:h,identifierName:g,identifierNamePos:b,filename:S}=p;let O=p.line;(g!=null||b!=null)&&this._canMarkIdName&&(p.identifierName=void 0,p.identifierNamePos=void 0);let _=n.indexOf(`
46
+ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return define(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Generator"),define(u,n,function(){return this}),define(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}`,{globals:["Symbol","Object","TypeError"],locals:{_regenerator:["body.0.id","body.0.body.body.9.argument.expressions.9.callee.left"]},exportBindingAssignments:["body.0.body.body.9.argument.expressions.9.callee"],exportName:"_regenerator",dependencies:{regeneratorDefine:["body.0.body.body.1.body.body.1.argument.expressions.0.callee","body.0.body.body.7.declarations.0.init.alternate.expressions.0.callee","body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee","body.0.body.body.9.argument.expressions.1.callee","body.0.body.body.9.argument.expressions.2.callee","body.0.body.body.9.argument.expressions.4.callee","body.0.body.body.9.argument.expressions.5.callee","body.0.body.body.9.argument.expressions.6.callee","body.0.body.body.9.argument.expressions.7.callee","body.0.body.body.9.argument.expressions.8.callee"]},internal:!1}),regeneratorAsync:e("7.27.0","function _regeneratorAsync(n,e,r,t,o){var a=asyncGen(n,e,r,t,o);return a.next().then(function(n){return n.done?n.value:a.next()})}",{globals:[],locals:{_regeneratorAsync:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsync",dependencies:{regeneratorAsyncGen:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),regeneratorAsyncGen:e("7.27.0","function _regeneratorAsyncGen(r,e,t,o,n){return new regeneratorAsyncIterator(regenerator().w(r,e,t,o),n||Promise)}",{globals:["Promise"],locals:{_regeneratorAsyncGen:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsyncGen",dependencies:{regenerator:["body.0.body.body.0.argument.arguments.0.callee.object.callee"],regeneratorAsyncIterator:["body.0.body.body.0.argument.callee"]},internal:!1}),regeneratorAsyncIterator:e("7.27.0",'function AsyncIterator(t,e){function n(r,o,i,f){try{var c=t[r](o),u=c.value;return u instanceof OverloadYield?e.resolve(u.v).then(function(t){n("next",t,i,f)},function(t){n("throw",t,i,f)}):e.resolve(u).then(function(t){c.value=t,i(c)},function(t){return n("throw",t,i,f)})}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),define(this,"_invoke",function(t,o,i){function f(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(f,f):f()},!0)}',{globals:["Symbol"],locals:{AsyncIterator:["body.0.id","body.0.body.body.2.expression.expressions.0.right.expressions.0.arguments.0.object","body.0.body.body.2.expression.expressions.0.right.expressions.1.arguments.0.object"]},exportBindingAssignments:[],exportName:"AsyncIterator",dependencies:{OverloadYield:["body.0.body.body.0.body.body.0.block.body.1.argument.test.right"],regeneratorDefine:["body.0.body.body.2.expression.expressions.0.right.expressions.0.callee","body.0.body.body.2.expression.expressions.0.right.expressions.1.callee","body.0.body.body.2.expression.expressions.1.callee"]},internal:!0}),regeneratorDefine:e("7.27.0",'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regeneratorDefine=function(e,r,n,t){function o(r,n){regeneratorDefine(e,r,function(e){return this._invoke(r,n,e)})}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},regeneratorDefine(e,r,n,t)}',{globals:["Object"],locals:{regeneratorDefine:["body.0.id","body.0.body.body.2.expression.expressions.0.right.body.body.0.body.body.0.expression.callee","body.0.body.body.2.expression.expressions.1.callee","body.0.body.body.2.expression.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.2.expression.expressions.0"],exportName:"regeneratorDefine",dependencies:{},internal:!0}),regeneratorKeys:e("7.27.0","function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.length;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}",{globals:["Object"],locals:{_regeneratorKeys:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorKeys",dependencies:{},internal:!1}),regeneratorValues:e("7.18.0",'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}',{globals:["Symbol","isNaN","TypeError"],locals:{_regeneratorValues:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorValues",dependencies:{},internal:!1}),set:e("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]},internal:!1}),setFunctionName:e("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{},internal:!1}),setPrototypeOf:e("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{},internal:!1}),skipFirstGeneratorNext:e("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{},internal:!1}),slicedToArray:e("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),superPropBase:e("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]},internal:!1}),superPropGet:e("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]},internal:!1}),superPropSet:e("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),taggedTemplateLiteral:e("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{},internal:!1}),taggedTemplateLiteralLoose:e("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{},internal:!1}),tdz:e("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{},internal:!1}),temporalRef:e("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]},internal:!1}),temporalUndefined:e("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{},internal:!1}),toArray:e("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toConsumableArray:e("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toPrimitive:e("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{},internal:!1}),toPropertyKey:e("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),toSetter:e("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{},internal:!1}),tsRewriteRelativeImportExtensions:e("7.27.0",'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.test(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase()+"js":t}):t}',{globals:[],locals:{tsRewriteRelativeImportExtensions:["body.0.id"]},exportBindingAssignments:[],exportName:"tsRewriteRelativeImportExtensions",dependencies:{},internal:!1}),typeof:e("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{},internal:!1}),unsupportedIterableToArray:e("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]},internal:!1}),usingCtx:e("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{},internal:!1}),wrapAsyncGenerator:e("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var t,n;function resume(t,n){try{var r=e[t](n),o=r.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then(function(n){if(u){var i="return"===t&&o.k?t:"next";if(!o.k||n.done)return resume(i,n);n=e[i](n).value}settle(!!r.done,n)},function(e){resume("throw",e)})}catch(e){settle(2,e)}}function settle(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?resume(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(o,u){var i={key:e,arg:r,resolve:o,reject:u,next:null};n?n=n.next=i:(t=n=i,resume(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]},internal:!1}),wrapNativeSuper:e("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]},internal:!1}),wrapRegExp:e("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]]}return r},Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\\$<([^>]+)(>|$)/g,function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""}))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)})}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]},internal:!1}),writeOnlyError:e("7.12.13",`function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`,{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{},internal:!1})};return Object.assign(r,{AwaitValue:e("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{},internal:!1}),applyDecs:e("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o<r.length;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.from(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadata||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:toPropertyKey(t),isStatic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v=!0}}function old_assertNotFinished(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")}function old_assertMetadataKey(e){if("symbol"!=typeof e)throw new TypeError("Metadata keys must be symbols, received: "+e)}function old_assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function old_assertValidReturnValue(e,t){var a=typeof t;if(1===e){if("object"!==a||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&old_assertCallable(t.get,"accessor.get"),void 0!==t.set&&old_assertCallable(t.set,"accessor.set"),void 0!==t.init&&old_assertCallable(t.init,"accessor.init"),void 0!==t.initializer&&old_assertCallable(t.initializer,"accessor.initializer")}else if("function"!==a)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function old_getInit(e){var t;return null==(t=e.init)&&(t=e.initializer)&&void 0!==console&&console.warn(".initializer has been renamed to .init as of March 2022"),t}function old_applyMemberDec(e,t,a,r,o,i,n,l,s){var c,d,u,f,p,v,y,h=a[0];if(n?(0===o||1===o?(c={get:a[3],set:a[4]},u="get"):3===o?(c={get:a[3]},u="get"):4===o?(c={set:a[3]},u="set"):c={value:a[3]},0!==o&&(1===o&&setFunctionName(a[4],"#"+r,"set"),setFunctionName(a[3],"#"+r,u))):0!==o&&(c=Object.getOwnPropertyDescriptor(t,r)),1===o?f={get:c.get,set:c.set}:2===o?f=c.value:3===o?f=c.get:4===o&&(f=c.set),"function"==typeof h)void 0!==(p=old_memberDec(h,r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?d=p:1===o?(d=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p);else for(var m=h.length-1;m>=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r<g.length;r++)a=g[r].call(e,a);return a}}else{var _=d;d=function(e,t){return _.call(e,t)}}e.push(d)}0!==o&&(1===o?(c.get=f.get,c.set=f.set):2===o?c.value=f:3===o?c.get=f:4===o&&(c.set=f),n?1===o?(e.push(function(e,t){return f.get.call(e,t)}),e.push(function(e,t){return f.set.call(e,t)})):2===o?e.push(f):e.push(function(e,t){return f.call(e,t)}):Object.defineProperty(t,r,c))}function old_applyMemberDecs(e,t,a,r,o){for(var i,n,l=new Map,s=new Map,c=0;c<o.length;c++){var d=o[c];if(Array.isArray(d)){var u,f,p,v=d[1],y=d[2],h=d.length>3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push(function(e){for(var a=0;a<t.length;a++)t[a].call(e);return e})}function old_applyClassDecs(e,t,a,r){if(r.length>0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,function(){for(var e=0;e<o.length;e++)o[e].call(i)})}}function applyDecs(e,t,a){var r=[],o={},i={};return old_applyMemberDecs(r,e,i,o,t),old_convertMetadataMapToFinal(e.prototype,i),old_applyClassDecs(r,e,o,a),old_convertMetadataMapToFinal(e,o),r}',{globals:["Object","Map","Symbol","Array","Error","TypeError","console"],locals:{old_createMetadataMethodsForProperty:["body.0.id","body.3.body.body.4.block.body.0.argument.arguments.1.arguments.1.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.1.callee"],old_convertMetadataMapToFinal:["body.1.id","body.13.body.body.1.argument.expressions.1.callee","body.13.body.body.1.argument.expressions.3.callee"],old_createAddInitializerMethod:["body.2.id","body.3.body.body.3.test.expressions.0.right.right.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.0.properties.2.value.callee"],old_memberDec:["body.3.id","body.9.body.body.1.consequent.expression.left.right.right.callee","body.9.body.body.1.alternate.body.body.1.expression.left.right.right.callee"],old_assertNotFinished:["body.4.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.0.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.0.callee","body.2.body.body.0.argument.body.body.0.expression.expressions.0.callee"],old_assertMetadataKey:["body.5.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.1.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.1.callee"],old_assertCallable:["body.6.id","body.2.body.body.0.argument.body.body.0.expression.expressions.1.callee","body.7.body.body.1.consequent.body.1.expression.expressions.0.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.1.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.2.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.3.right.callee"],old_assertValidReturnValue:["body.7.id","body.9.body.body.1.consequent.expression.right.expressions.0.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.0.callee","body.12.body.body.0.consequent.body.0.body.body.2.expression.right.expressions.0.callee"],old_getInit:["body.8.id","body.9.body.body.1.consequent.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee"],old_applyMemberDec:["body.9.id","body.10.body.body.0.body.body.1.consequent.body.2.expression.callee"],old_applyMemberDecs:["body.10.id","body.13.body.body.1.argument.expressions.0.callee"],old_pushInitializers:["body.11.id","body.10.body.body.1.expression.expressions.0.callee","body.10.body.body.1.expression.expressions.1.callee"],old_applyClassDecs:["body.12.id","body.13.body.body.1.argument.expressions.2.callee"],applyDecs:["body.13.id"]},exportBindingAssignments:[],exportName:"applyDecs",dependencies:{setFunctionName:["body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.3.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2203:e("7.19.0",'function applyDecs2203Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,a,n,i,s,o){var c;switch(n){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:s?"#"+t:t,static:i,private:s},p={v:!1};0!==n&&(f.addInitializer=createAddInitializerMethod(a,p)),0===n?s?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===n?l=function(){return r.value}:(1!==n&&3!==n||(l=function(){return r.get.call(this)}),1!==n&&4!==n||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(o,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,a,n,i,s,o){var c,l,u,f,p,d,h=r[0];if(s?c=0===n||1===n?{get:r[3],set:r[4]}:3===n?{get:r[3]}:4===n?{set:r[3]}:{value:r[3]}:0!==n&&(c=Object.getOwnPropertyDescriptor(t,a)),1===n?u={get:c.get,set:c.set}:2===n?u=c.value:3===n?u=c.get:4===n&&(u=c.set),"function"==typeof h)void 0!==(f=memberDec(h,a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?l=f:1===n?(l=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f);else for(var v=h.length-1;v>=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a<y.length;a++)r=y[a].call(e,r);return r}}else{var m=l;l=function(e,t){return m.call(e,t)}}e.push(l)}0!==n&&(1===n?(c.get=u.get,c.set=u.set):2===n?c.value=u:3===n?c.get=u:4===n&&(c.set=u),s?1===n?(e.push(function(e,t){return u.get.call(e,t)}),e.push(function(e,t){return u.set.call(e,t)})):2===n?e.push(u):e.push(function(e,t){return u.call(e,t)}):Object.defineProperty(t,a,c))}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r){var a=[];return function(e,t,r){for(var a,n,i=new Map,s=new Map,o=0;o<r.length;o++){var c=r[o];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,function(){for(var e=0;e<a.length;e++)a[e].call(n)})}}(a,e,r),a}}var applyDecs2203Impl;function applyDecs2203(e,t,r){return(applyDecs2203Impl=applyDecs2203Impl||applyDecs2203Factory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203Factory:["body.0.id","body.2.body.body.0.argument.callee.right.right.callee"],applyDecs2203Impl:["body.1.declarations.0.id","body.2.body.body.0.argument.callee.right.left","body.2.body.body.0.argument.callee.left"],applyDecs2203:["body.2.id"]},exportBindingAssignments:[],exportName:"applyDecs2203",dependencies:{},internal:!1}),applyDecs2203R:e("7.20.0",'function applyDecs2203RFactory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,n,a,i,o,s){var c;switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:o?"#"+t:toPropertyKey(t),static:i,private:o},p={v:!1};0!==a&&(f.addInitializer=createAddInitializerMethod(n,p)),0===a?o?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===a?l=function(){return r.value}:(1!==a&&3!==a||(l=function(){return r.get.call(this)}),1!==a&&4!==a||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(s,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,n,a,i,o,s){var c,l,u,f,p,d,h,v=r[0];if(o?(0===a||1===a?(c={get:r[3],set:r[4]},u="get"):3===a?(c={get:r[3]},u="get"):4===a?(c={set:r[3]},u="set"):c={value:r[3]},0!==a&&(1===a&&setFunctionName(r[4],"#"+n,"set"),setFunctionName(r[3],"#"+n,u))):0!==a&&(c=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:c.get,set:c.set}:2===a?f=c.value:3===a?f=c.get:4===a&&(f=c.set),"function"==typeof v)void 0!==(p=memberDec(v,n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?l=p:1===a?(l=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p);else for(var g=v.length-1;g>=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n<m.length;n++)r=m[n].call(e,r);return r}}else{var b=l;l=function(e,t){return b.call(e,t)}}e.push(l)}0!==a&&(1===a?(c.get=f.get,c.set=f.set):2===a?c.value=f:3===a?c.get=f:4===a&&(c.set=f),o?1===a?(e.push(function(e,t){return f.get.call(e,t)}),e.push(function(e,t){return f.set.call(e,t)})):2===a?e.push(f):e.push(function(e,t){return f.call(e,t)}):Object.defineProperty(t,n,c))}function applyMemberDecs(e,t){for(var r,n,a=[],i=new Map,o=new Map,s=0;s<t.length;s++){var c=t[s];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r){return{e:applyMemberDecs(e,t),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2203R(e,t,r){return(applyDecs2203R=applyDecs2203RFactory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203RFactory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2203R:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2203R",dependencies:{setFunctionName:["body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.1.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2301:e("7.21.0",'function applyDecs2301Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r,n,a,i,s,o,c){var u;switch(a){case 1:u="accessor";break;case 2:u="method";break;case 3:u="getter";break;case 4:u="setter";break;default:u="field"}var l,f,p={kind:u,name:s?"#"+t:toPropertyKey(t),static:i,private:s},d={v:!1};if(0!==a&&(p.addInitializer=createAddInitializerMethod(n,d)),s||0!==a&&2!==a)if(2===a)l=function(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(l=s?function(e){return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivate(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else l=function(e){return e[t]},0===a&&(f=function(e,r){e[t]=r});var v=s?c.bind():function(e){return t in e};p.access=l&&f?{get:l,set:f,has:v}:l?{get:l,has:v}:{set:f,has:v};try{return e(o,p)}finally{d.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var u,l,f,p,d,h,v,y,g=r[0];if(s?(0===a||1===a?(u={get:(d=r[3],function(){return d(this)}),set:curryThis2(r[4])},f="get"):3===a?(u={get:r[3]},f="get"):4===a?(u={set:r[3]},f="set"):u={value:r[3]},0!==a&&(1===a&&setFunctionName(u.set,"#"+n,"set"),setFunctionName(u[f||"value"],"#"+n,f))):0!==a&&(u=Object.getOwnPropertyDescriptor(t,n)),1===a?p={get:u.get,set:u.set}:2===a?p=u.value:3===a?p=u.get:4===a&&(p=u.set),"function"==typeof g)void 0!==(h=memberDec(g,n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?l=h:1===a?(l=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h);else for(var m=g.length-1;m>=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n<I.length;n++)r=I[n].call(e,r);return r}}else{var w=l;l=function(e,t){return w.call(e,t)}}e.push(l)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.set=p),s?1===a?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===a?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,u))}function applyMemberDecs(e,t,r){for(var n,a,i,s=[],o=new Map,c=new Map,u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){var f,p,d=l[1],h=l[2],v=l.length>3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}return function(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2301(e,t,r,n){return(applyDecs2301=applyDecs2301Factory())(e,t,r,n)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2301Factory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2301:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2301",dependencies:{checkInRHS:["body.0.body.body.7.body.body.0.body.body.1.consequent.body.1.test.expressions.0.consequent.expressions.2.right.right.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.2.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:!1}),applyDecs2305:e("7.21.0",'function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}function c(e,t){for(var r=0;r<e.length;r++)e[r].call(t);return t}function s(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function applyDec(e,t,r,n,o,a,c,u,l,f,p,d,h){function m(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var y,v=t[0],g=t[3],b=!u;if(!b){r||Array.isArray(v)||(v=[v]);var w={},S=[],A=3===o?"get":4===o||d?"set":"value";f?(p||d?w={get:setFunctionName(function(){return g(this)},n,"get"),set:function(e){t[4](this,e)}}:w[A]=g,p||setFunctionName(w[A],n,2===o?"":A)):p||(w=Object.getOwnPropertyDescriptor(e,n))}for(var P=e,j=v.length-1;j>=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push(function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t}),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var d=p[1],h=p[2],m=p.length>3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]},internal:!1}),classApplyDescriptorDestructureSet:e("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{},internal:!1}),classApplyDescriptorGet:e("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{},internal:!1}),classApplyDescriptorSet:e("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{},internal:!1}),classCheckPrivateStaticAccess:e("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]},internal:!1}),classCheckPrivateStaticFieldDescriptor:e("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{},internal:!1}),classExtractFieldDescriptor:e("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]},internal:!1}),classPrivateFieldDestructureSet:e("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldGet:e("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldSet:e("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateMethodGet:e("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:!1}),classPrivateMethodSet:e("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{},internal:!1}),classStaticPrivateFieldDestructureSet:e("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecGet:e("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecSet:e("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateMethodSet:e("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{},internal:!1}),defineEnumerableProperties:e("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b<a.length;b++){var i=a[b];(n=r[i]).configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i,n)}return e}',{globals:["Object"],locals:{_defineEnumerableProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineEnumerableProperties",dependencies:{},internal:!1}),dispose:e("7.22.0",'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=e,this.error=r,this.stack=Error().stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{},internal:!1}),objectSpread:e("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?Object(arguments[r]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.forEach(function(r){defineProperty(e,r,t[r])})}return e}',{globals:["Object"],locals:{_objectSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectSpread",dependencies:{defineProperty:["body.0.body.body.0.body.body.1.expression.expressions.1.arguments.0.body.body.0.expression.callee"]},internal:!1}),regeneratorRuntime:e("7.18.0",'function _regeneratorRuntime(){"use strict";var r=regenerator(),e=r.m(_regeneratorRuntime),t=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(r){var e="function"==typeof r&&r.constructor;return!!e&&(e===t||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function a(r){var e,t;return function(n){e||(e={stop:function(){return t(n.a,2)},catch:function(){return n.v},abrupt:function(r,e){return t(n.a,o[r],e)},delegateYield:function(r,o,a){return e.resultName=o,t(n.d,values(r),a)},finish:function(r){return t(n.f,r)}},t=function(r,t,o){n.p=e.prev,n.n=e.next;try{return r(t,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return r.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(_regeneratorRuntime=function(){return{wrap:function(e,t,n,o){return r.w(a(e),t,n,o&&o.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(r,e){return new OverloadYield(r,e)},AsyncIterator:AsyncIterator,async:function(r,e,t,o,u){return(n(e)?asyncGen:async)(a(r),e,t,o,u)},keys:keys,values:values}})()}',{globals:["Object"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.declarations.1.init.arguments.0","body.0.body.body.4.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.4.argument.callee"],exportName:"_regeneratorRuntime",dependencies:{OverloadYield:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.3.value.body.body.0.argument.callee"],regenerator:["body.0.body.body.0.declarations.0.init.callee"],regeneratorAsync:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.alternate"],regeneratorAsyncGen:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.consequent"],regeneratorAsyncIterator:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.4.value"],regeneratorKeys:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.6.value"],regeneratorValues:["body.0.body.body.3.body.body.1.argument.body.body.0.expression.expressions.0.right.expressions.0.right.properties.3.value.body.body.0.argument.expressions.1.arguments.1.callee","body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.7.value"]},internal:!1}),using:e("7.22.0",'function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}',{globals:["Object","TypeError","Symbol"],locals:{_using:["body.0.id"]},exportBindingAssignments:[],exportName:"_using",dependencies:{},internal:!1})}),Ro}var f1;function p1(){if(f1)return ai;f1=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=void 0,ai.get=p,ai.getDependencies=h,ai.isInternal=g,ai.list=void 0,ai.minVersion=y;var t=Ut(),e=Ex();const{cloneNode:r,identifier:n}=t;function s(b,S,O){try{const _=S.split(".");let w=_.shift();for(;_.length>0;)b=b[w],w=_.shift();if(arguments.length>2)b[w]=O;else return b[w]}catch(_){throw _.message+=` (when accessing ${S})`,_}}function o(b,S,O,_,w,C){const{locals:T,dependencies:x,exportBindingAssignments:E,exportName:j}=S,R=new Set(_||[]);O&&R.add(O);for(const[I,D]of(Object.entries||(Z=>Object.keys(Z).map(J=>[J,Z[J]])))(T)){let Z=I;if(O&&I===j)Z=O;else for(;R.has(Z);)Z="_"+Z;if(Z!==I)for(const J of D)s(b,J,n(Z))}for(const[I,D]of(Object.entries||(Z=>Object.keys(Z).map(J=>[J,Z[J]])))(x)){const Z=typeof w=="function"&&w(I)||n(I);for(const J of D)s(b,J,r(Z))}C==null||C(b,j,I=>{E.forEach(D=>s(b,D,I(s(b,D))))})}const a=Object.create(null);function u(b){if(!a[b]){const S=e.default[b];if(!S)throw Object.assign(new ReferenceError(`Unknown helper ${b}`),{code:"BABEL_HELPER_UNKNOWN",helper:b});a[b]={minVersion:S.minVersion,build(O,_,w,C){const T=S.ast();return o(T,S.metadata,_,w,O,C),{nodes:T.body,globals:S.metadata.globals}},getDependencies(){return Object.keys(S.metadata.dependencies)}}}return a[b]}function p(b,S,O,_,w){if(typeof O=="object"){const C=O;(C==null?void 0:C.type)==="Identifier"?O=C.name:O=void 0}return u(b).build(S,O,_,w)}function y(b){return u(b).minVersion}function h(b){return u(b).getDependencies()}function g(b){var S;return(S=e.default[b])==null?void 0:S.metadata.internal}return ai.ensure=b=>{u(b)},ai.list=Object.keys(e.default).map(b=>b.replace(/^_/,"")),ai.default=p,ai}var Vf={},gr={},Vc={},Mo={},Ni={},Zt={},d1;function h1(){return d1||(d1=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.Var=Zt.User=Zt.Statement=Zt.SpreadProperty=Zt.Scope=Zt.RestProperty=Zt.ReferencedMemberExpression=Zt.ReferencedIdentifier=Zt.Referenced=Zt.Pure=Zt.NumericLiteralTypeAnnotation=Zt.Generated=Zt.ForAwaitStatement=Zt.Flow=Zt.Expression=Zt.ExistentialTypeParam=Zt.BlockScoped=Zt.BindingIdentifier=void 0,Zt.ReferencedIdentifier=["Identifier","JSXIdentifier"],Zt.ReferencedMemberExpression=["MemberExpression"],Zt.BindingIdentifier=["Identifier"],Zt.Statement=["Statement"],Zt.Expression=["Expression"],Zt.Scope=["Scopable","Pattern"],Zt.Referenced=null,Zt.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],Zt.Var=["VariableDeclaration"],Zt.User=null,Zt.Generated=null,Zt.Pure=null,Zt.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],Zt.RestProperty=["RestElement"],Zt.SpreadProperty=["RestElement"],Zt.ExistentialTypeParam=["ExistsTypeAnnotation"],Zt.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],Zt.ForAwaitStatement=["ForOfStatement"]),Zt}var Kc={exports:{}},Kf,y1;function xx(){if(y1)return Kf;y1=1;var t=1e3,e=t*60,r=e*60,n=r*24,s=n*7,o=n*365.25;Kf=function(h,g){g=g||{};var b=typeof h;if(b==="string"&&h.length>0)return a(h);if(b==="number"&&isFinite(h))return g.long?p(h):u(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function a(h){if(h=String(h),!(h.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(g){var b=parseFloat(g[1]),S=(g[2]||"ms").toLowerCase();switch(S){case"years":case"year":case"yrs":case"yr":case"y":return b*o;case"weeks":case"week":case"w":return b*s;case"days":case"day":case"d":return b*n;case"hours":case"hour":case"hrs":case"hr":case"h":return b*r;case"minutes":case"minute":case"mins":case"min":case"m":return b*e;case"seconds":case"second":case"secs":case"sec":case"s":return b*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function u(h){var g=Math.abs(h);return g>=n?Math.round(h/n)+"d":g>=r?Math.round(h/r)+"h":g>=e?Math.round(h/e)+"m":g>=t?Math.round(h/t)+"s":h+"ms"}function p(h){var g=Math.abs(h);return g>=n?y(h,g,n,"day"):g>=r?y(h,g,r,"hour"):g>=e?y(h,g,e,"minute"):g>=t?y(h,g,t,"second"):h+" ms"}function y(h,g,b,S){var O=g>=b*1.5;return Math.round(h/b)+" "+S+(O?"s":"")}return Kf}var Wf,m1;function Px(){if(m1)return Wf;m1=1;function t(e){n.debug=n,n.default=n,n.coerce=y,n.disable=u,n.enable=o,n.enabled=p,n.humanize=xx(),n.destroy=h,Object.keys(e).forEach(g=>{n[g]=e[g]}),n.names=[],n.skips=[],n.formatters={};function r(g){let b=0;for(let S=0;S<g.length;S++)b=(b<<5)-b+g.charCodeAt(S),b|=0;return n.colors[Math.abs(b)%n.colors.length]}n.selectColor=r;function n(g){let b,S=null,O,_;function w(...C){if(!w.enabled)return;const T=w,x=Number(new Date),E=x-(b||x);T.diff=E,T.prev=b,T.curr=x,b=x,C[0]=n.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let j=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(I,D)=>{if(I==="%%")return"%";j++;const Z=n.formatters[D];if(typeof Z=="function"){const J=C[j];I=Z.call(T,J),C.splice(j,1),j--}return I}),n.formatArgs.call(T,C),(T.log||n.log).apply(T,C)}return w.namespace=g,w.useColors=n.useColors(),w.color=n.selectColor(g),w.extend=s,w.destroy=n.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>S!==null?S:(O!==n.namespaces&&(O=n.namespaces,_=n.enabled(g)),_),set:C=>{S=C}}),typeof n.init=="function"&&n.init(w),w}function s(g,b){const S=n(this.namespace+(typeof b>"u"?":":b)+g);return S.log=this.log,S}function o(g){n.save(g),n.namespaces=g,n.names=[],n.skips=[];const b=(typeof g=="string"?g:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const S of b)S[0]==="-"?n.skips.push(S.slice(1)):n.names.push(S)}function a(g,b){let S=0,O=0,_=-1,w=0;for(;S<g.length;)if(O<b.length&&(b[O]===g[S]||b[O]==="*"))b[O]==="*"?(_=O,w=S,O++):(S++,O++);else if(_!==-1)O=_+1,w++,S=w;else return!1;for(;O<b.length&&b[O]==="*";)O++;return O===b.length}function u(){const g=[...n.names,...n.skips.map(b=>"-"+b)].join(",");return n.enable(""),g}function p(g){for(const b of n.skips)if(a(g,b))return!1;for(const b of n.names)if(a(g,b))return!0;return!1}function y(g){return g instanceof Error?g.stack||g.message:g}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return Wf=t,Wf}var g1;function Gf(){return g1||(g1=1,function(t,e){var r={};e.formatArgs=s,e.save=o,e.load=a,e.useColors=n,e.storage=u(),e.destroy=(()=>{let y=!1;return()=>{y||(y=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let y;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(y=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(y[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(y){if(y[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+y[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;y.splice(1,0,h,"color: inherit");let g=0,b=0;y[0].replace(/%[a-zA-Z%]/g,S=>{S!=="%%"&&(g++,S==="%c"&&(b=g))}),y.splice(b,0,h)}e.log=console.debug||console.log||(()=>{});function o(y){try{y?e.storage.setItem("debug",y):e.storage.removeItem("debug")}catch{}}function a(){let y;try{y=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=r.DEBUG),y}function u(){try{return localStorage}catch{}}t.exports=Px()(e);const{formatters:p}=t.exports;p.j=function(y){try{return JSON.stringify(y)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}}(Kc,Kc.exports)),Kc.exports}var Lo={},Fo={},zs={},Or={},b1;function v1(){if(b1)return Or;b1=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.isBindingIdentifier=Z,Or.isBlockScoped=me,Or.isExpression=N,Or.isFlow=K,Or.isForAwaitStatement=ae,Or.isGenerated=ce,Or.isPure=ue,Or.isReferenced=ne,Or.isReferencedIdentifier=I,Or.isReferencedMemberExpression=D,Or.isRestProperty=Y,Or.isScope=$,Or.isSpreadProperty=he,Or.isStatement=J,Or.isUser=Ae,Or.isVar=Ce;var t=Ut();const{isBinding:e,isBlockScoped:r,isExportDeclaration:n,isExpression:s,isFlow:o,isForStatement:a,isForXStatement:u,isIdentifier:p,isImportDeclaration:y,isImportSpecifier:h,isJSXIdentifier:g,isJSXMemberExpression:b,isMemberExpression:S,isRestElement:O,isReferenced:_,isScope:w,isStatement:C,isVar:T,isVariableDeclaration:x,react:E,isForOfStatement:j}=t,{isCompatTag:R}=E;function I(U){const{node:L,parent:H}=this;return p(L,U)?_(L,H,this.parentPath.parent):g(L,U)?!b(H)&&R(L.name)?!1:_(L,H,this.parentPath.parent):!1}function D(){const{node:U,parent:L}=this;return S(U)&&_(U,L)}function Z(){const{node:U,parent:L}=this,H=this.parentPath.parent;return p(U)&&e(U,L,H)}function J(){const{node:U,parent:L}=this;return C(U)?!(x(U)&&(u(L,{left:U})||a(L,{init:U}))):!1}function N(){return this.isIdentifier()?this.isReferencedIdentifier():s(this.node)}function $(){return w(this.node,this.parent)}function ne(){return _(this.node,this.parent)}function me(){return r(this.node)}function Ce(){return T(this.node)}function Ae(){var U;return!!((U=this.node)!=null&&U.loc)}function ce(){return!this.isUser()}function ue(U){return this.scope.isPure(this.node,U)}function K(){const{node:U}=this;return o(U)?!0:y(U)?U.importKind==="type"||U.importKind==="typeof":n(U)?U.exportKind==="type":h(U)?U.importKind==="type"||U.importKind==="typeof":!1}function Y(){var U;return O(this.node)&&((U=this.parentPath)==null?void 0:U.isObjectPattern())}function he(){var U;return O(this.node)&&((U=this.parentPath)==null?void 0:U.isObjectExpression())}function ae(){return j(this.node,{await:!0})}return Or.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},Or.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},Or}var S1;function Wc(){if(S1)return zs;S1=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.environmentVisitor=R,zs.explode=g,zs.isExplodedVisitor=h,zs.merge=O,zs.verify=b;var t=h1(),e=v1(),r=Ut(),n=ki();const{DEPRECATED_KEYS:s,DEPRECATED_ALIASES:o,FLIPPED_ALIAS_KEYS:a,TYPES:u,__internal__deprecationWarning:p}=r;function y(I){return I in t}function h(I){return I==null?void 0:I._exploded}function g(I){if(h(I))return I;I._exploded=!0;for(const Z of Object.keys(I)){if(x(Z))continue;const J=Z.split("|");if(J.length===1)continue;const N=I[Z];delete I[Z];for(const $ of J)I[$]=N}b(I),delete I.__esModule,w(I),C(I);for(const Z of Object.keys(I)){if(x(Z)||!y(Z))continue;const J=I[Z];for(const $ of Object.keys(J))J[$]=T(Z,J[$]);delete I[Z];const N=t[Z];if(N!==null)for(const $ of N){var D;(D=I[$])!=null||(I[$]={}),E(I[$],J)}else E(I,J)}for(const Z of Object.keys(I)){if(x(Z))continue;let J=a[Z];if(Z in s){const $=s[Z];p(Z,$,"Visitor "),J=[$]}else if(Z in o){const $=o[Z];p(Z,$,"Visitor "),J=a[$]}if(!J)continue;const N=I[Z];delete I[Z];for(const $ of J){const ne=I[$];ne?E(ne,N):I[$]=Object.assign({},N)}}for(const Z of Object.keys(I))x(Z)||C(I[Z]);return I}function b(I){if(!I._verified){if(typeof I=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(const D of Object.keys(I)){if((D==="enter"||D==="exit")&&S(D,I[D]),x(D))continue;if(!u.includes(D))throw new Error(`You gave us a visitor for the node type ${D} but it's not a valid type in @babel/traverse 7.29.8`);const Z=I[D];if(typeof Z=="object")for(const J of Object.keys(Z))if(J==="enter"||J==="exit")S(`${D}.${J}`,Z[J]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${D} that has the invalid property ${J}`)}I._verified=!0}}function S(I,D){const Z=[].concat(D);for(const J of Z)if(typeof J!="function")throw new TypeError(`Non-function found defined in ${I} with type ${typeof J}`)}function O(I,D=[],Z){const J={_verified:!0,_exploded:!0};Object.defineProperty(J,"_exploded",{enumerable:!1}),Object.defineProperty(J,"_verified",{enumerable:!1});for(let N=0;N<I.length;N++){const $=g(I[N]),ne=D[N];let me=$;(ne||Z)&&(me=_(me,ne,Z)),E(J,me);for(const Ce of Object.keys($)){if(x(Ce))continue;let Ae=$[Ce];(ne||Z)&&(Ae=_(Ae,ne,Z));const ce=J[Ce]||(J[Ce]={});E(ce,Ae)}}return J}function _(I,D,Z){const J={};for(const N of["enter","exit"]){let $=I[N];Array.isArray($)&&($=$.map(function(ne){let me=ne;return D&&(me=function(Ce){ne.call(D,Ce,D)}),Z&&(me=Z(D==null?void 0:D.key,N,me)),me!==ne&&(me.toString=()=>ne.toString()),me}),J[N]=$)}return J}function w(I){for(const D of Object.keys(I)){if(x(D))continue;const Z=I[D];typeof Z=="function"&&(I[D]={enter:Z})}}function C(I){I.enter&&!Array.isArray(I.enter)&&(I.enter=[I.enter]),I.exit&&!Array.isArray(I.exit)&&(I.exit=[I.exit])}function T(I,D){const Z=`is${I}`,J=e[Z],N=function($){if(J.call($))return D.apply(this,arguments)};return N.toString=()=>D.toString(),N}function x(I){return!!(I.startsWith("_")||I==="enter"||I==="exit"||I==="shouldSkip"||I==="denylist"||I==="noScope"||I==="skipKeys"||I==="blacklist")}function E(I,D){for(const Z of["enter","exit"])D[Z]&&(I[Z]=[].concat(I[Z]||[],D[Z]))}const j={FunctionParent(I){I.isArrowFunctionExpression()||(I.skip(),I.isMethod()&&(I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(I)))},Property(I){I.isObjectProperty()||(I.skip(),I.requeueComputedKeyAndDecorators?I.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(I))}};function R(I){return O([j,I])}return zs}var T1;function _x(){if(T1)return Fo;T1=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.default=void 0;var t=Ut(),e=t,r=lp(),n=Wc(),s=ki();const{getAssignmentIdentifiers:o}=e,a={ReferencedIdentifier({node:p},y){p.name===y.oldName&&(p.name=y.newName)},Scope(p,y){p.scope.bindingIdentifierEquals(y.oldName,y.binding.identifier)||(p.skip(),p.isMethod()&&(p.requeueComputedKeyAndDecorators?p.requeueComputedKeyAndDecorators():s.requeueComputedKeyAndDecorators.call(p)),p.isSwitchStatement()&&p.context.maybeQueue(p.get("discriminant")))},ObjectProperty({node:p,scope:y},h){const{name:g}=p.key;if(p.shorthand&&(g===h.oldName||g===h.newName)&&y.getBindingIdentifier(g)===h.binding.identifier){var b;p.shorthand=!1,(b=p.extra)!=null&&b.shorthand&&(p.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(p,y){if(p.isVariableDeclaration())return;const h=p.isAssignmentExpression()?o(p.node):p.getOuterBindingIdentifiers();for(const g in h)g===y.oldName&&(h[g].name=y.newName)}};class u{constructor(y,h,g){this.newName=g,this.oldName=h,this.binding=y}maybeConvertFromExportDeclaration(y){const h=y.parentPath;if(h.isExportDeclaration()){if(h.isExportDefaultDeclaration()){const{declaration:g}=h.node;if(t.isDeclaration(g)&&!g.id)return}h.isExportAllDeclaration()||h.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(y){return y}maybeConvertFromClassFunctionExpression(y){return y}rename(){const{binding:y,oldName:h,newName:g}=this,{scope:b,path:S}=y,O=S.find(C=>C.isDeclaration()||C.isFunctionExpression()||C.isClassExpression());O&&O.getOuterBindingIdentifiers()[h]===y.identifier&&this.maybeConvertFromExportDeclaration(O);const _=arguments[0]||b.block,w={discriminant:!0};t.isMethod(_)&&(_.computed&&(w.key=!0),t.isObjectMethod(_)||(w.decorators=!0)),(0,r.traverseNode)(_,(0,n.explode)(a),b,this,b.path,w),arguments[0]||(b.removeOwnBinding(h),b.bindings[g]=y,this.binding.identifier.name=g),O&&(this.maybeConvertFromClassFunctionDeclaration(S),this.maybeConvertFromClassFunctionExpression(S))}}return Fo.default=u,Fo}var Gc={},E1;function wx(){if(E1)return Gc;E1=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.default=o;var t=Ut(),e=qr(),r=Wc(),n=ki();const{VISITOR_KEYS:s}=t;function o(a,u,p){const y=(0,r.explode)(u);if(y.enter||y.exit)throw new Error("Should not be used with enter/exit visitors.");h(a.parentPath,a.parent,a.node,a.container,a.key,a.listKey,a.hub,a);function h(g,b,S,O,_,w,C,T){if(!S)return;const x=T||e.NodePath.get({hub:C,parentPath:g,parent:b,container:O,listKey:w,key:_});n._forceSetScope.call(x);const E=y[S.type];if(E!=null&&E.enter)for(const R of E.enter)R.call(p,x,p);if(x.shouldSkip)return;const j=s[S.type];if(j!=null&&j.length){for(const R of j){const I=S[R];if(I)if(Array.isArray(I))for(let D=0;D<I.length;D++){const Z=I[D];h(x,S,Z,I,D,R)}else h(x,S,I,S,R,null)}if(E!=null&&E.exit)for(const R of E.exit)R.call(p,x,p)}}}return Gc}var qo={},x1;function Ax(){if(x1)return qo;x1=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=void 0;class t{constructor({identifier:n,scope:s,path:o,kind:a}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=n,this.scope=s,this.path=o,this.kind=a,(a==="var"||a==="hoisted")&&e(o)&&this.reassign(o),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(n){this.hasDeoptedValue||(this.hasValue=!0,this.value=n)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(n){this.constant=!1,!this.constantViolations.includes(n)&&this.constantViolations.push(n)}reference(n){this.referencePaths.includes(n)||(this.referenced=!0,this.references++,this.referencePaths.push(n))}dereference(){this.references--,this.referenced=!!this.references}}qo.default=t;function e(r){const n=!r.isVariableDeclarator()||r.node.init;for(let{parentPath:s,key:o}=r;s;{parentPath:s,key:o}=s){if(s.isFunctionParent())return!1;if(o==="left"&&s.isForXStatement()||n&&o==="body"&&s.isLoop())return!0}return!1}return qo}var Nn={},P1;function La(){if(P1)return Nn;P1=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.clear=e,Nn.clearPath=r,Nn.clearScope=n,Nn.getCachedPaths=s,Nn.getOrCreateCachedPaths=o,Nn.scope=Nn.path=void 0;let t=Nn.path=new WeakMap;Nn.scope=new WeakMap;function e(){r(),n()}function r(){Nn.path=t=new WeakMap}function n(){Nn.scope=new WeakMap}function s(a){const{parent:u,parentPath:p}=a;return t.get(u)}function o(a,u){let p=t.get(a);return p||t.set(a,p=new Map),p}return Nn}var Cx=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],Ix=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"],_1;function w1(){if(_1)return Lo;_1=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var t=_x(),e=qr();wx();var r=Ax(),n=Ut(),s=n,o=La();const a=Cx,u=Ix,{assignmentExpression:p,callExpression:y,cloneNode:h,getBindingIdentifiers:g,identifier:b,isArrayExpression:S,isBinary:O,isCallExpression:_,isClass:w,isClassBody:C,isClassDeclaration:T,isExportAllDeclaration:x,isExportDefaultDeclaration:E,isExportNamedDeclaration:j,isFunctionDeclaration:R,isIdentifier:I,isImportDeclaration:D,isLiteral:Z,isMemberExpression:J,isMethod:N,isModuleSpecifier:$,isNullLiteral:ne,isObjectExpression:me,isProperty:Ce,isPureish:Ae,isRegExpLiteral:ce,isSuper:ue,isTaggedTemplateExpression:K,isTemplateLiteral:Y,isThisExpression:he,isUnaryExpression:ae,isVariableDeclaration:U,expressionStatement:L,matchesPattern:H,memberExpression:ye,numericLiteral:Ie,toIdentifier:Ee,variableDeclaration:De,variableDeclarator:Me,isObjectProperty:Ve,isTopicReference:Ze,isMetaProperty:ut,isPrivateName:st,isExportDeclaration:dt,buildUndefinedNode:$e,sequenceExpression:je}=n;function qe(oe,W){switch(oe==null?void 0:oe.type){default:if(D(oe)||dt(oe)){var fe;if((x(oe)||j(oe)||D(oe))&&oe.source)qe(oe.source,W);else if((j(oe)||D(oe))&&(fe=oe.specifiers)!=null&&fe.length)for(const Re of oe.specifiers)qe(Re,W);else(E(oe)||j(oe))&&oe.declaration&&qe(oe.declaration,W)}else $(oe)?qe(oe.local,W):Z(oe)&&!ne(oe)&&!ce(oe)&&!Y(oe)&&W.push(oe.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":qe(oe.object,W),qe(oe.property,W);break;case"Identifier":case"JSXIdentifier":W.push(oe.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":qe(oe.callee,W);break;case"ObjectExpression":case"ObjectPattern":for(const Re of oe.properties)qe(Re,W);break;case"SpreadElement":case"RestElement":qe(oe.argument,W);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":qe(oe.key,W);break;case"ThisExpression":W.push("this");break;case"Super":W.push("super");break;case"Import":case"ImportExpression":W.push("import");break;case"DoExpression":W.push("do");break;case"YieldExpression":W.push("yield"),qe(oe.argument,W);break;case"AwaitExpression":W.push("await"),qe(oe.argument,W);break;case"AssignmentExpression":qe(oe.left,W);break;case"VariableDeclarator":qe(oe.id,W);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":qe(oe.id,W);break;case"PrivateName":qe(oe.id,W);break;case"ParenthesizedExpression":qe(oe.expression,W);break;case"UnaryExpression":case"UpdateExpression":qe(oe.argument,W);break;case"MetaProperty":qe(oe.meta,W),qe(oe.property,W);break;case"JSXElement":qe(oe.openingElement,W);break;case"JSXOpeningElement":qe(oe.name,W);break;case"JSXFragment":qe(oe.openingFragment,W);break;case"JSXOpeningFragment":W.push("Fragment");break;case"JSXNamespacedName":qe(oe.namespace,W),qe(oe.name,W);break}}function Le(oe){oe.references=Object.create(null),oe.uids=Object.create(null),oe.bindings=Object.create(null),oe.globals=Object.create(null)}function gt(oe){return oe.isFunctionExpression()&&!oe.node.id||oe.isArrowFunctionExpression()}var ht=Symbol.for("should not be considered a local binding");const xe={ForStatement(oe){const W=oe.get("init");if(W.isVar()){const{scope:fe}=oe;(fe.getFunctionParent()||fe.getProgramParent()).registerBinding("var",W)}},Declaration(oe){if(oe.isBlockScoped()||oe.isImportDeclaration()||oe.isExportDeclaration())return;(oe.scope.getFunctionParent()||oe.scope.getProgramParent()).registerDeclaration(oe)},ImportDeclaration(oe){oe.scope.getBlockParent().registerDeclaration(oe)},TSImportEqualsDeclaration(oe){oe.scope.getBlockParent().registerDeclaration(oe)},ReferencedIdentifier(oe,W){s.isTSQualifiedName(oe.parent)&&oe.parent.right===oe.node||oe.parentPath.isTSImportEqualsDeclaration()||W.references.push(oe)},ForXStatement(oe,W){const fe=oe.get("left");if(fe.isPattern()||fe.isIdentifier())W.constantViolations.push(oe);else if(fe.isVar()){const{scope:Re}=oe;(Re.getFunctionParent()||Re.getProgramParent()).registerBinding("var",fe)}},ExportDeclaration:{exit(oe){const{node:W,scope:fe}=oe;if(x(W))return;const Re=W.declaration;if(T(Re)||R(Re)){const Fe=Re.id;if(!Fe)return;const Ke=fe.getBinding(Fe.name);Ke==null||Ke.reference(oe)}else if(U(Re))for(const Fe of Re.declarations)for(const Ke of Object.keys(g(Fe))){const it=fe.getBinding(Ke);it==null||it.reference(oe)}}},LabeledStatement(oe){oe.scope.getBlockParent().registerDeclaration(oe)},AssignmentExpression(oe,W){W.assignments.push(oe)},UpdateExpression(oe,W){W.constantViolations.push(oe)},UnaryExpression(oe,W){oe.node.operator==="delete"&&W.constantViolations.push(oe)},BlockScoped(oe){let W=oe.scope;if(W.path===oe&&(W=W.parent),W.getBlockParent().registerDeclaration(oe),oe.isClassDeclaration()&&oe.node.id){const Fe=oe.node.id.name;oe.scope.bindings[Fe]=oe.scope.parent.getBinding(Fe)}},CatchClause(oe){oe.scope.registerBinding("let",oe)},Function(oe){const W=oe.get("params");for(const fe of W)oe.scope.registerBinding("param",fe);oe.isFunctionExpression()&&oe.node.id&&!oe.node.id[ht]&&oe.scope.registerBinding("local",oe.get("id"),oe)},ClassExpression(oe){oe.node.id&&!oe.node.id[ht]&&oe.scope.registerBinding("local",oe.get("id"),oe)},TSTypeAnnotation(oe){oe.skip()}};let Se,se=0;class ee{constructor(W){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;const{node:fe}=W,Re=o.scope.get(fe);if((Re==null?void 0:Re.path)===W)return Re;o.scope.set(fe,this),this.uid=se++,this.block=fe,this.path=W,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var W;let fe,Re=this.path;do{var Fe;const Ke=Re.key==="key"||Re.listKey==="decorators";Re=Re.parentPath,Ke&&Re.isMethod()&&(Re=Re.parentPath),(Fe=Re)!=null&&Fe.isScope()&&(fe=Re)}while(Re&&!fe);return(W=fe)==null?void 0:W.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(W){const fe=this.generateUidIdentifier(W);return this.push({id:fe}),h(fe)}generateUidIdentifier(W){return b(this.generateUid(W))}generateUid(W="temp"){W=Ee(W).replace(/^_+/,"").replace(/\d+$/g,"");let fe,Re=0;do fe=`_${W}`,Re>=11?fe+=Re-1:Re>=9?fe+=Re-9:Re>=1&&(fe+=Re+1),Re++;while(this.hasLabel(fe)||this.hasBinding(fe)||this.hasGlobal(fe)||this.hasReference(fe));const Fe=this.getProgramParent();return Fe.references[fe]=!0,Fe.uids[fe]=!0,fe}generateUidBasedOnNode(W,fe){const Re=[];qe(W,Re);let Fe=Re.join("$");return Fe=Fe.replace(/^_/,"")||fe||"ref",this.generateUid(Fe.slice(0,20))}generateUidIdentifierBasedOnNode(W,fe){return b(this.generateUidBasedOnNode(W,fe))}isStatic(W){if(he(W)||ue(W)||Ze(W))return!0;if(I(W)){const fe=this.getBinding(W.name);return fe?fe.constant:this.hasBinding(W.name)}return!1}maybeGenerateMemoised(W,fe){if(this.isStatic(W))return null;{const Re=this.generateUidIdentifierBasedOnNode(W);return fe?Re:(this.push({id:Re}),h(Re))}}checkBlockScopedCollisions(W,fe,Re,Fe){if(fe==="param"||W.kind==="local")return;if(fe==="let"||W.kind==="let"||W.kind==="const"||W.kind==="module"||W.kind==="param"&&fe==="const")throw this.path.hub.buildError(Fe,`Duplicate declaration "${Re}"`,TypeError)}rename(W,fe){const Re=this.getBinding(W);Re&&(fe||(fe=this.generateUidIdentifier(W).name),new t.default(Re,W,fe).rename(arguments[2]))}dump(){const W="-".repeat(60);console.log(W);let fe=this;do{console.log("#",fe.block.type);for(const Re of Object.keys(fe.bindings)){const Fe=fe.bindings[Re];console.log(" -",Re,{constant:Fe.constant,references:Fe.references,violations:Fe.constantViolations.length,kind:Fe.kind})}}while(fe=fe.parent);console.log(W)}hasLabel(W){return!!this.getLabel(W)}getLabel(W){return this.labels.get(W)}registerLabel(W){this.labels.set(W.node.label.name,W)}registerDeclaration(W){if(W.isLabeledStatement())this.registerLabel(W);else if(W.isFunctionDeclaration())this.registerBinding("hoisted",W.get("id"),W);else if(W.isVariableDeclaration()){const fe=W.get("declarations"),{kind:Re}=W.node;for(const Fe of fe)this.registerBinding(Re==="using"||Re==="await using"?"const":Re,Fe)}else if(W.isClassDeclaration()){if(W.node.declare)return;this.registerBinding("let",W)}else if(W.isImportDeclaration()){const fe=W.node.importKind==="type"||W.node.importKind==="typeof",Re=W.get("specifiers");for(const Fe of Re){const Ke=fe||Fe.isImportSpecifier()&&(Fe.node.importKind==="type"||Fe.node.importKind==="typeof");this.registerBinding(Ke?"unknown":"module",Fe)}}else if(W.isExportDeclaration()){const fe=W.get("declaration");(fe.isClassDeclaration()||fe.isFunctionDeclaration()||fe.isVariableDeclaration())&&this.registerDeclaration(fe)}else this.registerBinding("unknown",W)}buildUndefinedNode(){return $e()}registerConstantViolation(W){const fe=W.getAssignmentIdentifiers();for(const Fe of Object.keys(fe)){var Re;(Re=this.getBinding(Fe))==null||Re.reassign(W)}}registerBinding(W,fe,Re=fe){if(!W)throw new ReferenceError("no `kind`");if(fe.isVariableDeclaration()){const it=fe.get("declarations");for(const _t of it)this.registerBinding(W,_t);return}const Fe=this.getProgramParent(),Ke=fe.getOuterBindingIdentifiers(!0);for(const it of Object.keys(Ke)){Fe.references[it]=!0;for(const _t of Ke[it]){const Mt=this.getOwnBinding(it);if(Mt){if(Mt.identifier===_t)continue;this.checkBlockScopedCollisions(Mt,W,it,_t)}Mt?Mt.reassign(Re):this.bindings[it]=new r.default({identifier:_t,scope:this,path:Re,kind:W})}}}addGlobal(W){this.globals[W.name]=W}hasUid(W){let fe=this;do if(fe.uids[W])return!0;while(fe=fe.parent);return!1}hasGlobal(W){let fe=this;do if(fe.globals[W])return!0;while(fe=fe.parent);return!1}hasReference(W){return!!this.getProgramParent().references[W]}isPure(W,fe){if(I(W)){const it=this.getBinding(W.name);return it?fe?it.constant:!0:!1}else{if(he(W)||ut(W)||Ze(W)||st(W))return!0;if(w(W)){var Re;return W.superClass&&!this.isPure(W.superClass,fe)||((Re=W.decorators)==null?void 0:Re.length)>0?!1:this.isPure(W.body,fe)}else if(C(W)){for(const it of W.body)if(!this.isPure(it,fe))return!1;return!0}else{if(O(W))return this.isPure(W.left,fe)&&this.isPure(W.right,fe);if(S(W)||(W==null?void 0:W.type)==="TupleExpression"){for(const it of W.elements)if(it!==null&&!this.isPure(it,fe))return!1;return!0}else if(me(W)||(W==null?void 0:W.type)==="RecordExpression"){for(const it of W.properties)if(!this.isPure(it,fe))return!1;return!0}else if(N(W)){var Fe;return!(W.computed&&!this.isPure(W.key,fe)||((Fe=W.decorators)==null?void 0:Fe.length)>0)}else if(Ce(W)){var Ke;return!(W.computed&&!this.isPure(W.key,fe)||((Ke=W.decorators)==null?void 0:Ke.length)>0||(Ve(W)||W.static)&&W.value!==null&&!this.isPure(W.value,fe))}else{if(ae(W))return this.isPure(W.argument,fe);if(Y(W)){for(const it of W.expressions)if(!this.isPure(it,fe))return!1;return!0}else return K(W)?H(W.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(W.quasi,fe):J(W)?!W.computed&&I(W.object)&&W.object.name==="Symbol"&&I(W.property)&&W.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):_(W)?H(W.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&W.arguments.length===1&&s.isStringLiteral(W.arguments[0]):Ae(W)}}}}setData(W,fe){return this.data[W]=fe}getData(W){let fe=this;do{const Re=fe.data[W];if(Re!=null)return Re}while(fe=fe.parent)}removeData(W){let fe=this;do fe.data[W]!=null&&(fe.data[W]=null);while(fe=fe.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){const W=this.path;Le(this),this.data=Object.create(null);let fe=this;do{if(fe.crawling)return;if(fe.path.isProgram())break}while(fe=fe.parent);const Re=fe,Fe={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Se||(Se=e.default.visitors.merge([{Scope(Ke){Le(Ke.scope)}},xe])),W.type!=="Program"){const Ke=Se[W.type];if(Ke)for(const it of Ke.enter)it.call(Fe,W,Fe)}W.traverse(Se,Fe),this.crawling=!1;for(const Ke of Fe.assignments){const it=Ke.getAssignmentIdentifiers();for(const _t of Object.keys(it))Ke.scope.getBinding(_t)||Re.addGlobal(it[_t]);Ke.scope.registerConstantViolation(Ke)}for(const Ke of Fe.references){const it=Ke.scope.getBinding(Ke.node.name);it?it.reference(Ke):Re.addGlobal(Ke.node)}for(const Ke of Fe.constantViolations)Ke.scope.registerConstantViolation(Ke)}push(W){let fe=this.path;fe.isPattern()?fe=this.getPatternParent().path:!fe.isBlockStatement()&&!fe.isProgram()&&(fe=this.getBlockParent().path),fe.isSwitchStatement()&&(fe=(this.getFunctionParent()||this.getProgramParent()).path);const{init:Re,unique:Fe,kind:Ke="var",id:it}=W;if(!Re&&!Fe&&(Ke==="var"||Ke==="let")&&gt(fe)&&_(fe.parent,{callee:fe.node})&&fe.parent.arguments.length<=fe.node.params.length&&I(it)){fe.pushContainer("params",it),fe.scope.registerBinding("param",fe.get("params")[fe.node.params.length-1]);return}(fe.isLoop()||fe.isCatchClause()||fe.isFunction())&&(fe.ensureBlock(),fe=fe.get("body"));const _t=W._blockHoist==null?2:W._blockHoist,Mt=`declaration:${Ke}:${_t}`;let pt=!Fe&&fe.getData(Mt);if(!pt){const de=De(Ke,[]);de._blockHoist=_t,[pt]=fe.unshiftContainer("body",[de]),Fe||fe.setData(Mt,pt)}const xt=Me(it,Re),te=pt.node.declarations.push(xt);fe.scope.registerBinding(Ke,pt.get("declarations")[te-1])}getProgramParent(){let W=this;do if(W.path.isProgram())return W;while(W=W.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let W=this;do if(W.path.isFunctionParent())return W;while(W=W.parent);return null}getBlockParent(){let W=this;do if(W.path.isBlockParent())return W;while(W=W.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let W=this;do if(!W.path.isPattern())return W.getBlockParent();while(W=W.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const W=Object.create(null);let fe=this;do{for(const Re of Object.keys(fe.bindings))Re in W||(W[Re]=fe.bindings[Re]);fe=fe.parent}while(fe);return W}bindingIdentifierEquals(W,fe){return this.getBindingIdentifier(W)===fe}getBinding(W){let fe=this,Re;do{const Ke=fe.getOwnBinding(W);if(Ke){var Fe;if(!((Fe=Re)!=null&&Fe.isPattern()&&Ke.kind!=="param"&&Ke.kind!=="local"))return Ke}else if(!Ke&&W==="arguments"&&fe.path.isFunction()&&!fe.path.isArrowFunctionExpression())break;Re=fe.path}while(fe=fe.parent)}getOwnBinding(W){return this.bindings[W]}getBindingIdentifier(W){var fe;return(fe=this.getBinding(W))==null?void 0:fe.identifier}getOwnBindingIdentifier(W){const fe=this.bindings[W];return fe==null?void 0:fe.identifier}hasOwnBinding(W){return!!this.getOwnBinding(W)}hasBinding(W,fe){if(!W)return!1;let Re,Fe,Ke;typeof fe=="object"?(Re=fe.noGlobals,Fe=fe.noUids,Ke=fe.upToScope):typeof fe=="boolean"&&(Re=fe);let it=this;do{if(Ke===it)break;if(it.hasOwnBinding(W))return!0}while(it=it.parent);return!!(!Fe&&this.hasUid(W)||!Re&&ee.globals.includes(W)||!Re&&ee.contextVariables.includes(W))}parentHasBinding(W,fe){var Re;return(Re=this.parent)==null?void 0:Re.hasBinding(W,fe)}moveBindingTo(W,fe){const Re=this.getBinding(W);Re&&(Re.scope.removeOwnBinding(W),Re.scope=fe,fe.bindings[W]=Re)}removeOwnBinding(W){delete this.bindings[W]}removeBinding(W){var fe;(fe=this.getBinding(W))==null||fe.scope.removeOwnBinding(W);let Re=this;do Re.uids[W]&&(Re.uids[W]=!1);while(Re=Re.parent)}hoistVariables(W=fe=>this.push({id:fe})){this.crawl();const fe=new Set;for(const Re of Object.keys(this.bindings)){const Fe=this.bindings[Re];if(!Fe)continue;const{path:Ke}=Fe;if(!Ke.isVariableDeclarator())continue;const{parent:it,parentPath:_t}=Ke;if(it.kind!=="var"||fe.has(it))continue;fe.add(Ke.parent);let Mt;const pt=[];for(const xt of it.declarations){Mt??(Mt=xt.id),xt.init&&pt.push(p("=",xt.id,xt.init));const te=Object.keys(g(xt,!1,!0,!0));for(const de of te)W(b(de),xt.init!=null)}if(_t.parentPath.isForXStatement({left:it}))_t.replaceWith(Mt);else if(pt.length===0)_t.remove();else{const xt=pt.length===1?pt[0]:je(pt);_t.parentPath.isForStatement({init:it})?_t.replaceWith(xt):_t.replaceWith(L(xt))}}}}return Lo.default=ee,ee.globals=[...a,...u],ee.contextVariables=["arguments","undefined","Infinity","NaN"],ee.prototype._renameFromMap=function(W,fe,Re,Fe){W[fe]&&(W[Re]=Fe,W[fe]=null)},ee.prototype.traverse=function(oe,W,fe){(0,e.default)(oe,W,this,fe,this.path)},ee.prototype._generateUid=function(W,fe){let Re=W;return fe>1&&(Re+=fe),`_${Re}`},ee.prototype.toArray=function(W,fe,Re){if(I(W)){const it=this.getBinding(W.name);if(it!=null&&it.constant&&it.path.isGenericType("Array"))return W}if(S(W))return W;if(I(W,{name:"arguments"}))return y(ye(ye(ye(b("Array"),b("prototype")),b("slice")),b("call")),[W]);let Fe;const Ke=[W];return fe===!0?Fe="toConsumableArray":typeof fe=="number"?(Ke.push(Ie(fe)),Fe="slicedToArray"):Fe="toArray",Re&&(Ke.unshift(this.path.hub.addHelper(Fe)),Fe="maybeArrayLike"),y(this.path.hub.addHelper(Fe),Ke)},ee.prototype.getAllBindingsOfKind=function(...W){const fe=Object.create(null);for(const Re of W){let Fe=this;do{for(const Ke of Object.keys(Fe.bindings)){const it=Fe.bindings[Ke];it.kind===Re&&(fe[Ke]=it)}Fe=Fe.parent}while(Fe)}return fe},Object.defineProperties(ee.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}}),Lo}var aa={},$o={},zf={exports:{}},Hf={exports:{}},A1;function C1(){return A1||(A1=1,function(t,e){(function(r,n){n(t),t.exports=s(t);function s(o){return"default"in o.exports?o.exports.default:o.exports}})(Ii,function(r){var n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,u=(U,L)=>{for(var H in L)n(U,H,{get:L[H],enumerable:!0})},p=(U,L,H,ye)=>{if(L&&typeof L=="object"||typeof L=="function")for(let Ie of o(L))!a.call(U,Ie)&&Ie!==H&&n(U,Ie,{get:()=>L[Ie],enumerable:!(ye=s(L,Ie))||ye.enumerable});return U},y=U=>p(n({},"__esModule",{value:!0}),U),h={};u(h,{decode:()=>K,decodeGeneratedRanges:()=>ne,decodeOriginalScopes:()=>J,decodeRangeMappings:()=>ce,encode:()=>ae,encodeGeneratedRanges:()=>me,encodeOriginalScopes:()=>N,encodeRangeMappings:()=>ue}),r.exports=y(h);var g=44,b=59,S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=new Uint8Array(64),_=new Uint8Array(128);for(let U=0;U<S.length;U++){const L=S.charCodeAt(U);O[U]=L,_[L]=U}function w(U){let L=0,H=0,ye=0;do{const Ie=U.next();ye=_[Ie],L|=(ye&31)<<H,H+=5}while(ye&32);return L}function C(U){return U&1?-2147483648|-(U>>>1):U>>>1}function T(U,L){do{let H=L&31;L>>>=5,L>0&&(H|=32),U.write(O[H])}while(L>0)}function x(U){return U<0?-U<<1|1:U<<1}function E(U,L){return U.pos>=L?!1:U.peek()!==g}var j=1024*16,R=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(U){return Buffer.from(U.buffer,U.byteOffset,U.byteLength).toString()}}:{decode(U){let L="";for(let H=0;H<U.length;H++)L+=String.fromCharCode(U[H]);return L}},I=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(j)}write(U){const{buffer:L}=this;L[this.pos++]=U,this.pos===j&&(this.out+=R.decode(L),this.pos=0)}flush(){const{buffer:U,out:L,pos:H}=this;return H>0?L+R.decode(U.subarray(0,H)):L}},D=class{constructor(U){this.pos=0,this.buffer=U}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(U){const{buffer:L,pos:H}=this,ye=L.indexOf(U,H);return ye===-1?L.length:ye}},Z=[];function J(U){const{length:L}=U,H=new D(U),ye=[],Ie=[];let Ee=0;for(;H.pos<L;H.pos++){Ee+=C(w(H));const De=C(w(H));if(!E(H,L)){const dt=Ie.pop();dt[2]=Ee,dt[3]=De;continue}const Me=C(w(H)),ut=C(w(H))&1?[Ee,De,0,0,Me,C(w(H))]:[Ee,De,0,0,Me];let st=Z;if(E(H,L)){st=[];do{const dt=C(w(H));st.push(dt)}while(E(H,L))}ut.vars=st,ye.push(ut),Ie.push(ut)}return ye}function N(U){const L=new I;for(let H=0;H<U.length;)H=$(U,H,L,[0]);return L.flush()}function $(U,L,H,ye){const Ie=U[L],{0:Ee,1:De,2:Me,3:Ve,4:Ze,vars:ut}=Ie;L>0&&H.write(g),T(H,x(Ee-ye[0])),ye[0]=Ee,T(H,x(De)),T(H,x(Ze));const st=Ie.length===6?1:0;T(H,x(st)),Ie.length===6&&T(H,x(Ie[5]));for(const dt of ut)T(H,x(dt));for(L++;L<U.length;){const dt=U[L],{0:$e,1:je}=dt;if($e>Me||$e===Me&&je>=Ve)break;L=$(U,L,H,ye)}return H.write(g),T(H,x(Me-ye[0])),ye[0]=Me,T(H,x(Ve)),L}function ne(U){const{length:L}=U,H=new D(U),ye=[],Ie=[];let Ee=0,De=0,Me=0,Ve=0,Ze=0,ut=0,st=0,dt=0;do{const $e=H.indexOf(";");let je=0;for(;H.pos<$e;H.pos++){if(je+=C(w(H)),!E(H,$e)){const ee=Ie.pop();ee[2]=Ee,ee[3]=je;continue}const qe=C(w(H)),Le=qe&1,gt=qe&2,ht=qe&4;let xe=null,Se=Z,se;if(Le){const ee=De+C(w(H));Me=C(w(H))+(De===ee?Me:0),De=ee,se=[Ee,je,0,0,ee,Me]}else se=[Ee,je,0,0];if(se.isScope=!!ht,gt){const ee=Ve,oe=Ze;Ve+=C(w(H));const W=ee===Ve;Ze=(W?Ze:0)+C(w(H)),ut=(W&&oe===Ze?ut:0)+C(w(H)),xe=[Ve,Ze,ut]}if(se.callsite=xe,E(H,$e)){Se=[];do{st=Ee,dt=je;const ee=C(w(H));let oe;if(ee<-1){oe=[[C(w(H))]];for(let W=-1;W>ee;W--){const fe=st;st+=C(w(H)),dt=(st===fe?dt:0)+C(w(H));const Re=C(w(H));oe.push([Re,st,dt])}}else oe=[[ee]];Se.push(oe)}while(E(H,$e))}se.bindings=Se,ye.push(se),Ie.push(se)}Ee++,H.pos=$e+1}while(H.pos<L);return ye}function me(U){if(U.length===0)return"";const L=new I;for(let H=0;H<U.length;)H=Ce(U,H,L,[0,0,0,0,0,0,0]);return L.flush()}function Ce(U,L,H,ye){const Ie=U[L],{0:Ee,1:De,2:Me,3:Ve,isScope:Ze,callsite:ut,bindings:st}=Ie;ye[0]<Ee?(Ae(H,ye[0],Ee),ye[0]=Ee,ye[1]=0):L>0&&H.write(g),T(H,x(Ie[1]-ye[1])),ye[1]=Ie[1];const dt=(Ie.length===6?1:0)|(ut?2:0)|(Ze?4:0);if(T(H,x(dt)),Ie.length===6){const{4:$e,5:je}=Ie;$e!==ye[2]&&(ye[3]=0),T(H,x($e-ye[2])),ye[2]=$e,T(H,x(je-ye[3])),ye[3]=je}if(ut){const{0:$e,1:je,2:qe}=Ie.callsite;$e!==ye[4]?(ye[5]=0,ye[6]=0):je!==ye[5]&&(ye[6]=0),T(H,x($e-ye[4])),ye[4]=$e,T(H,x(je-ye[5])),ye[5]=je,T(H,x(qe-ye[6])),ye[6]=qe}if(st)for(const $e of st){$e.length>1&&T(H,x(-$e.length));const je=$e[0][0];T(H,x(je));let qe=Ee,Le=De;for(let gt=1;gt<$e.length;gt++){const ht=$e[gt];T(H,x(ht[1]-qe)),qe=ht[1],T(H,x(ht[2]-Le)),Le=ht[2],T(H,x(ht[0]))}}for(L++;L<U.length;){const $e=U[L],{0:je,1:qe}=$e;if(je>Me||je===Me&&qe>=Ve)break;L=Ce(U,L,H,ye)}return ye[0]<Me?(Ae(H,ye[0],Me),ye[0]=Me,ye[1]=0):H.write(g),T(H,x(Ve-ye[1])),ye[1]=Ve,L}function Ae(U,L,H){do U.write(b);while(++L<H)}function ce(U){const{length:L}=U,H=new D(U),ye=[];do{const Ie=H.indexOf(";"),Ee=[];let De=0;for(;H.pos<Ie;)De+=w(H),Ee.push(De);ye.push(Ee),H.pos=Ie+1}while(H.pos<=L);return ye}function ue(U){if(U.length===0)return"";const L=new I;for(let H=0;H<U.length;H++){const ye=U[H];H>0&&L.write(b);let Ie=0;for(let Ee=0;Ee<ye.length;Ee++){const De=ye[Ee];T(L,De-Ie),Ie=De}}return L.flush()}function K(U){const{length:L}=U,H=new D(U),ye=[];let Ie=0,Ee=0,De=0,Me=0,Ve=0;do{const Ze=H.indexOf(";"),ut=[];let st=!0,dt=0;for(Ie=0;H.pos<Ze;){let $e;Ie+=C(w(H)),Ie<dt&&(st=!1),dt=Ie,E(H,Ze)?(Ee+=C(w(H)),De+=C(w(H)),Me+=C(w(H)),E(H,Ze)?(Ve+=C(w(H)),$e=[Ie,Ee,De,Me,Ve]):$e=[Ie,Ee,De,Me]):$e=[Ie],ut.push($e),H.pos++}st||Y(ut),ye.push(ut),H.pos=Ze+1}while(H.pos<=L);return ye}function Y(U){U.sort(he)}function he(U,L){return U[0]-L[0]}function ae(U){const L=new I;let H=0,ye=0,Ie=0,Ee=0;for(let De=0;De<U.length;De++){const Me=U[De];if(De>0&&L.write(b),Me.length===0)continue;let Ve=0;for(let Ze=0;Ze<Me.length;Ze++){const ut=Me[Ze];Ze>0&&L.write(g),T(L,x(ut[0]-Ve)),Ve=ut[0],ut.length!==1&&(T(L,x(ut[1]-H)),T(L,x(ut[2]-ye)),T(L,x(ut[3]-Ie)),H=ut[1],ye=ut[2],Ie=ut[3],ut.length!==4&&(T(L,x(ut[4]-Ee)),Ee=ut[4]))}}return L.flush()}})}(Hf)),Hf.exports}var Jf={exports:{}},Yf={exports:{}},I1;function Ox(){return I1||(I1=1,function(t,e){(function(r,n){t.exports=n()})(Ii,function(){const r=/^[\w+.-]+:\/\//,n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,s=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o(T){return r.test(T)}function a(T){return T.startsWith("//")}function u(T){return T.startsWith("/")}function p(T){return T.startsWith("file:")}function y(T){return/^[.?#]/.test(T)}function h(T){const x=n.exec(T);return b(x[1],x[2]||"",x[3],x[4]||"",x[5]||"/",x[6]||"",x[7]||"")}function g(T){const x=s.exec(T),E=x[2];return b("file:","",x[1]||"","",u(E)?E:"/"+E,x[3]||"",x[4]||"")}function b(T,x,E,j,R,I,D){return{scheme:T,user:x,host:E,port:j,path:R,query:I,hash:D,type:7}}function S(T){if(a(T)){const E=h("http:"+T);return E.scheme="",E.type=6,E}if(u(T)){const E=h("http://foo.com"+T);return E.scheme="",E.host="",E.type=5,E}if(p(T))return g(T);if(o(T))return h(T);const x=h("http://foo.com/"+T);return x.scheme="",x.host="",x.type=T?T.startsWith("?")?3:T.startsWith("#")?2:4:1,x}function O(T){if(T.endsWith("/.."))return T;const x=T.lastIndexOf("/");return T.slice(0,x+1)}function _(T,x){w(x,x.type),T.path==="/"?T.path=x.path:T.path=O(x.path)+T.path}function w(T,x){const E=x<=4,j=T.path.split("/");let R=1,I=0,D=!1;for(let J=1;J<j.length;J++){const N=j[J];if(!N){D=!0;continue}if(D=!1,N!=="."){if(N===".."){I?(D=!0,I--,R--):E&&(j[R++]=N);continue}j[R++]=N,I++}}let Z="";for(let J=1;J<R;J++)Z+="/"+j[J];(!Z||D&&!Z.endsWith("/.."))&&(Z+="/"),T.path=Z}function C(T,x){if(!T&&!x)return"";const E=S(T);let j=E.type;if(x&&j!==7){const I=S(x),D=I.type;switch(j){case 1:E.hash=I.hash;case 2:E.query=I.query;case 3:case 4:_(E,I);case 5:E.user=I.user,E.host=I.host,E.port=I.port;case 6:E.scheme=I.scheme}D>j&&(j=D)}w(E,j);const R=E.query+E.hash;switch(j){case 2:case 3:return R;case 4:{const I=E.path.slice(1);return I?y(x||T)&&!y(I)?"./"+I+R:I+R:R||"."}case 5:return E.path+R;default:return E.scheme+"//"+E.user+E.host+E.port+E.path+R}}return C})}(Yf)),Yf.exports}var O1;function Xf(){return O1||(O1=1,function(t,e){(function(r,n){n(t,Ox(),C1()),t.exports=s(t);function s(o){return"default"in o.exports?o.exports.default:o.exports}})(Ii,function(r,n,s){var o=Object.create,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(te,de)=>function(){return de||(0,te[p(te)[0]])((de={exports:{}}).exports,de),de.exports},b=(te,de)=>{for(var G in de)a(te,G,{get:de[G],enumerable:!0})},S=(te,de,G,be)=>{if(de&&typeof de=="object"||typeof de=="function")for(let et of p(de))!h.call(te,et)&&et!==G&&a(te,et,{get:()=>de[et],enumerable:!(be=u(de,et))||be.enumerable});return te},O=(te,de,G)=>(G=te!=null?o(y(te)):{},S(!te||!te.__esModule?a(G,"default",{value:te,enumerable:!0}):G,te)),_=te=>S(a({},"__esModule",{value:!0}),te),w=g({"umd:@jridgewell/sourcemap-codec"(te,de){de.exports=s}}),C=g({"umd:@jridgewell/resolve-uri"(te,de){de.exports=n}}),T={};b(T,{AnyMap:()=>Ie,FlattenMap:()=>Ie,GREATEST_LOWER_BOUND:()=>dt,LEAST_UPPER_BOUND:()=>st,TraceMap:()=>$e,allGeneratedPositionsFor:()=>Se,decodedMap:()=>Re,decodedMappings:()=>Le,eachMapping:()=>se,encodedMap:()=>Fe,encodedMappings:()=>qe,generatedPositionFor:()=>xe,isIgnored:()=>W,originalPositionFor:()=>ht,presortedDecodedMap:()=>fe,sourceContentFor:()=>oe,traceSegment:()=>gt}),r.exports=_(T);var x=O(w()),E=O(C());function j(te){if(!te)return"";const de=te.lastIndexOf("/");return te.slice(0,de+1)}function R(te,de){const G=j(te),be=de?de+"/":"";return et=>(0,E.default)(be+(et||""),G)}var I=0,D=1,Z=2,J=3,N=4,$=1,ne=2;function me(te,de){const G=Ce(te,0);if(G===te.length)return te;de||(te=te.slice());for(let be=G;be<te.length;be=Ce(te,be+1))te[be]=ce(te[be],de);return te}function Ce(te,de){for(let G=de;G<te.length;G++)if(!Ae(te[G]))return G;return te.length}function Ae(te){for(let de=1;de<te.length;de++)if(te[de][I]<te[de-1][I])return!1;return!0}function ce(te,de){return de||(te=te.slice()),te.sort(ue)}function ue(te,de){return te[I]-de[I]}function K(te,de){const G=de.map(()=>[]);for(let be=0;be<te.length;be++){const et=te[be];for(let ge=0;ge<et.length;ge++){const rt=et[ge];if(rt.length===1)continue;const yt=rt[D],mt=rt[Z],Bt=rt[J],Lt=G[yt];(Lt[mt]||(Lt[mt]=[])).push([Bt,be,rt[I]])}}for(let be=0;be<G.length;be++){const et=G[be];for(let ge=0;ge<et.length;ge++){const rt=et[ge];rt&&rt.sort(ue)}}return G}var Y=!1;function he(te,de,G,be){for(;G<=be;){const et=G+(be-G>>1),ge=te[et][I]-de;if(ge===0)return Y=!0,et;ge<0?G=et+1:be=et-1}return Y=!1,G-1}function ae(te,de,G){for(let be=G+1;be<te.length&&te[be][I]===de;G=be++);return G}function U(te,de,G){for(let be=G-1;be>=0&&te[be][I]===de;G=be--);return G}function L(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function H(te,de,G,be){const{lastKey:et,lastNeedle:ge,lastIndex:rt}=G;let yt=0,mt=te.length-1;if(be===et){if(de===ge)return Y=rt!==-1&&te[rt][I]===de,rt;de>=ge?yt=rt===-1?0:rt:mt=rt}return G.lastKey=be,G.lastNeedle=de,G.lastIndex=he(te,de,yt,mt)}function ye(te){return typeof te=="string"?JSON.parse(te):te}var Ie=function(te,de){const G=ye(te);if(!("sections"in G))return new $e(G,de);const be=[],et=[],ge=[],rt=[],yt=[];Ee(G,de,be,et,ge,rt,yt,0,0,1/0,1/0);const mt={version:3,file:G.file,names:rt,sources:et,sourcesContent:ge,mappings:be,ignoreList:yt};return fe(mt)};function Ee(te,de,G,be,et,ge,rt,yt,mt,Bt,Lt){const{sections:Vt}=te;for(let Jt=0;Jt<Vt.length;Jt++){const{map:lr,offset:xr}=Vt[Jt];let Wt=Bt,tr=Lt;if(Jt+1<Vt.length){const pn=Vt[Jt+1].offset;Wt=Math.min(Bt,yt+pn.line),Wt===Bt?tr=Math.min(Lt,mt+pn.column):Wt<Bt&&(tr=mt+pn.column)}De(lr,de,G,be,et,ge,rt,yt+xr.line,mt+xr.column,Wt,tr)}}function De(te,de,G,be,et,ge,rt,yt,mt,Bt,Lt){const Vt=ye(te);if("sections"in Vt)return Ee(...arguments);const Jt=new $e(Vt,de),lr=be.length,xr=ge.length,Wt=Le(Jt),{resolvedSources:tr,sourcesContent:pn,ignoreList:dn}=Jt;if(Me(be,tr),Me(ge,Jt.names),pn)Me(et,pn);else for(let Sr=0;Sr<tr.length;Sr++)et.push(null);if(dn)for(let Sr=0;Sr<dn.length;Sr++)rt.push(dn[Sr]+lr);for(let Sr=0;Sr<Wt.length;Sr++){const Rt=yt+Sr;if(Rt>Bt)return;const ui=Ve(G,Rt),Vr=Sr===0?mt:0,tn=Wt[Sr];for(let Rr=0;Rr<tn.length;Rr++){const jr=tn[Rr],Dn=Vr+jr[I];if(Rt===Bt&&Dn>=Lt)return;if(jr.length===1){ui.push([Dn]);continue}const Kr=lr+jr[D],Hn=jr[Z],Nr=jr[J];ui.push(jr.length===4?[Dn,Kr,Hn,Nr]:[Dn,Kr,Hn,Nr,xr+jr[N]])}}}function Me(te,de){for(let G=0;G<de.length;G++)te.push(de[G])}function Ve(te,de){for(let G=te.length;G<=de;G++)te[G]=[];return te[de]}var Ze="`line` must be greater than 0 (lines start at line 1)",ut="`column` must be greater than or equal to 0 (columns start at column 0)",st=-1,dt=1,$e=class{constructor(te,de){const G=typeof te=="string";if(!G&&te._decodedMemo)return te;const be=ye(te),{version:et,file:ge,names:rt,sourceRoot:yt,sources:mt,sourcesContent:Bt}=be;this.version=et,this.file=ge,this.names=rt||[],this.sourceRoot=yt,this.sources=mt,this.sourcesContent=Bt,this.ignoreList=be.ignoreList||be.x_google_ignoreList||void 0;const Lt=R(de,yt);this.resolvedSources=mt.map(Lt);const{mappings:Vt}=be;if(typeof Vt=="string")this._encoded=Vt,this._decoded=void 0;else if(Array.isArray(Vt))this._encoded=void 0,this._decoded=me(Vt,G);else throw be.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(be)}`);this._decodedMemo=L(),this._bySources=void 0,this._bySourceMemos=void 0}};function je(te){return te}function qe(te){var de,G;return(G=(de=te)._encoded)!=null?G:de._encoded=(0,x.encode)(te._decoded)}function Le(te){var de;return(de=te)._decoded||(de._decoded=(0,x.decode)(te._encoded))}function gt(te,de,G){const be=Le(te);if(de>=be.length)return null;const et=be[de],ge=Mt(et,te._decodedMemo,de,G,dt);return ge===-1?null:et[ge]}function ht(te,de){let{line:G,column:be,bias:et}=de;if(G--,G<0)throw new Error(Ze);if(be<0)throw new Error(ut);const ge=Le(te);if(G>=ge.length)return it(null,null,null,null);const rt=ge[G],yt=Mt(rt,te._decodedMemo,G,be,et||dt);if(yt===-1)return it(null,null,null,null);const mt=rt[yt];if(mt.length===1)return it(null,null,null,null);const{names:Bt,resolvedSources:Lt}=te;return it(Lt[mt[D]],mt[Z]+1,mt[J],mt.length===5?Bt[mt[N]]:null)}function xe(te,de){const{source:G,line:be,column:et,bias:ge}=de;return xt(te,G,be,et,ge||dt,!1)}function Se(te,de){const{source:G,line:be,column:et,bias:ge}=de;return xt(te,G,be,et,ge||st,!0)}function se(te,de){const G=Le(te),{names:be,resolvedSources:et}=te;for(let ge=0;ge<G.length;ge++){const rt=G[ge];for(let yt=0;yt<rt.length;yt++){const mt=rt[yt],Bt=ge+1,Lt=mt[0];let Vt=null,Jt=null,lr=null,xr=null;mt.length!==1&&(Vt=et[mt[1]],Jt=mt[2]+1,lr=mt[3]),mt.length===5&&(xr=be[mt[4]]),de({generatedLine:Bt,generatedColumn:Lt,source:Vt,originalLine:Jt,originalColumn:lr,name:xr})}}}function ee(te,de){const{sources:G,resolvedSources:be}=te;let et=G.indexOf(de);return et===-1&&(et=be.indexOf(de)),et}function oe(te,de){const{sourcesContent:G}=te;if(G==null)return null;const be=ee(te,de);return be===-1?null:G[be]}function W(te,de){const{ignoreList:G}=te;if(G==null)return!1;const be=ee(te,de);return be===-1?!1:G.includes(be)}function fe(te,de){const G=new $e(Ke(te,[]),de);return G._decoded=te.mappings,G}function Re(te){return Ke(te,Le(te))}function Fe(te){return Ke(te,qe(te))}function Ke(te,de){return{version:te.version,file:te.file,names:te.names,sourceRoot:te.sourceRoot,sources:te.sources,sourcesContent:te.sourcesContent,mappings:de,ignoreList:te.ignoreList||te.x_google_ignoreList}}function it(te,de,G,be){return{source:te,line:de,column:G,name:be}}function _t(te,de){return{line:te,column:de}}function Mt(te,de,G,be,et){let ge=H(te,be,de,G);return Y?ge=(et===st?ae:U)(te,be,ge):et===st&&ge++,ge===-1||ge===te.length?-1:ge}function pt(te,de,G,be,et){let ge=Mt(te,de,G,be,dt);if(!Y&&et===st&&ge++,ge===-1||ge===te.length)return[];const rt=Y?be:te[ge][I];Y||(ge=U(te,rt,ge));const yt=ae(te,rt,ge),mt=[];for(;ge<=yt;ge++){const Bt=te[ge];mt.push(_t(Bt[$]+1,Bt[ne]))}return mt}function xt(te,de,G,be,et,ge){var rt,yt;if(G--,G<0)throw new Error(Ze);if(be<0)throw new Error(ut);const{sources:mt,resolvedSources:Bt}=te;let Lt=mt.indexOf(de);if(Lt===-1&&(Lt=Bt.indexOf(de)),Lt===-1)return ge?[]:_t(null,null);const Vt=(rt=te)._bySourceMemos||(rt._bySourceMemos=mt.map(L)),lr=((yt=te)._bySources||(yt._bySources=K(Le(te),Vt)))[Lt][G];if(lr==null)return ge?[]:_t(null,null);const xr=Vt[Lt];if(ge)return pt(lr,xr,G,be,et);const Wt=Mt(lr,xr,G,be,et);if(Wt===-1)return _t(null,null);const tr=lr[Wt];return _t(tr[$]+1,tr[ne])}})}(Jf)),Jf.exports}var N1;function k1(){return N1||(N1=1,function(t,e){(function(r,n){n(t,C1(),Xf()),t.exports=s(t);function s(o){return"default"in o.exports?o.exports.default:o.exports}})(Ii,function(r,n,s){var o=Object.create,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(je,qe)=>function(){return qe||(0,je[p(je)[0]])((qe={exports:{}}).exports,qe),qe.exports},b=(je,qe)=>{for(var Le in qe)a(je,Le,{get:qe[Le],enumerable:!0})},S=(je,qe,Le,gt)=>{if(qe&&typeof qe=="object"||typeof qe=="function")for(let ht of p(qe))!h.call(je,ht)&&ht!==Le&&a(je,ht,{get:()=>qe[ht],enumerable:!(gt=u(qe,ht))||gt.enumerable});return je},O=(je,qe,Le)=>(Le=je!=null?o(y(je)):{},S(!je||!je.__esModule?a(Le,"default",{value:je,enumerable:!0}):Le,je)),_=je=>S(a({},"__esModule",{value:!0}),je),w=g({"umd:@jridgewell/sourcemap-codec"(je,qe){qe.exports=n}}),C=g({"umd:@jridgewell/trace-mapping"(je,qe){qe.exports=s}}),T={};b(T,{GenMapping:()=>Ae,addMapping:()=>K,addSegment:()=>ue,allMappings:()=>Ie,fromMap:()=>ye,maybeAddMapping:()=>he,maybeAddSegment:()=>Y,setIgnore:()=>U,setSourceContent:()=>ae,toDecodedMap:()=>L,toEncodedMap:()=>H}),r.exports=_(T);var x=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function E(je){return je}function j(je,qe){return je._indexes[qe]}function R(je,qe){const Le=j(je,qe);if(Le!==void 0)return Le;const{array:gt,_indexes:ht}=je,xe=gt.push(qe);return ht[qe]=xe-1}function I(je,qe){const Le=j(je,qe);if(Le===void 0)return;const{array:gt,_indexes:ht}=je;for(let xe=Le+1;xe<gt.length;xe++){const Se=gt[xe];gt[xe-1]=Se,ht[Se]--}ht[qe]=void 0,gt.pop()}var D=O(w()),Z=O(C()),J=0,N=1,$=2,ne=3,me=4,Ce=-1,Ae=class{constructor({file:je,sourceRoot:qe}={}){this._names=new x,this._sources=new x,this._sourcesContent=[],this._mappings=[],this.file=je,this.sourceRoot=qe,this._ignoreList=new x}};function ce(je){return je}function ue(je,qe,Le,gt,ht,xe,Se,se){return Ee(!1,je,qe,Le,gt,ht,xe,Se,se)}function K(je,qe){return $e(!1,je,qe)}var Y=(je,qe,Le,gt,ht,xe,Se,se)=>Ee(!0,je,qe,Le,gt,ht,xe,Se,se),he=(je,qe)=>$e(!0,je,qe);function ae(je,qe,Le){const{_sources:gt,_sourcesContent:ht}=je,xe=R(gt,qe);ht[xe]=Le}function U(je,qe,Le=!0){const{_sources:gt,_sourcesContent:ht,_ignoreList:xe}=je,Se=R(gt,qe);Se===ht.length&&(ht[Se]=null),Le?R(xe,Se):I(xe,Se)}function L(je){const{_mappings:qe,_sources:Le,_sourcesContent:gt,_names:ht,_ignoreList:xe}=je;return Ze(qe),{version:3,file:je.file||void 0,names:ht.array,sourceRoot:je.sourceRoot||void 0,sources:Le.array,sourcesContent:gt,mappings:qe,ignoreList:xe.array}}function H(je){const qe=L(je);return Object.assign({},qe,{mappings:(0,D.encode)(qe.mappings)})}function ye(je){const qe=new Z.TraceMap(je),Le=new Ae({file:qe.file,sourceRoot:qe.sourceRoot});return ut(Le._names,qe.names),ut(Le._sources,qe.sources),Le._sourcesContent=qe.sourcesContent||qe.sources.map(()=>null),Le._mappings=(0,Z.decodedMappings)(qe),qe.ignoreList&&ut(Le._ignoreList,qe.ignoreList),Le}function Ie(je){const qe=[],{_mappings:Le,_sources:gt,_names:ht}=je;for(let xe=0;xe<Le.length;xe++){const Se=Le[xe];for(let se=0;se<Se.length;se++){const ee=Se[se],oe={line:xe+1,column:ee[J]};let W,fe,Re;ee.length!==1&&(W=gt.array[ee[N]],fe={line:ee[$]+1,column:ee[ne]},ee.length===5&&(Re=ht.array[ee[me]])),qe.push({generated:oe,source:W,original:fe,name:Re})}}return qe}function Ee(je,qe,Le,gt,ht,xe,Se,se,ee){const{_mappings:oe,_sources:W,_sourcesContent:fe,_names:Re}=qe,Fe=De(oe,Le),Ke=Me(Fe,gt);if(!ht)return je&&st(Fe,Ke)?void 0:Ve(Fe,Ke,[gt]);const it=R(W,ht),_t=se?R(Re,se):Ce;if(it===fe.length&&(fe[it]=ee??null),!(je&&dt(Fe,Ke,it,xe,Se,_t)))return Ve(Fe,Ke,se?[gt,it,xe,Se,_t]:[gt,it,xe,Se])}function De(je,qe){for(let Le=je.length;Le<=qe;Le++)je[Le]=[];return je[qe]}function Me(je,qe){let Le=je.length;for(let gt=Le-1;gt>=0;Le=gt--){const ht=je[gt];if(qe>=ht[J])break}return Le}function Ve(je,qe,Le){for(let gt=je.length;gt>qe;gt--)je[gt]=je[gt-1];je[qe]=Le}function Ze(je){const{length:qe}=je;let Le=qe;for(let gt=Le-1;gt>=0&&!(je[gt].length>0);Le=gt,gt--);Le<qe&&(je.length=Le)}function ut(je,qe){for(let Le=0;Le<qe.length;Le++)R(je,qe[Le])}function st(je,qe){return qe===0?!0:je[qe-1].length===1}function dt(je,qe,Le,gt,ht,xe){if(qe===0)return!1;const Se=je[qe-1];return Se.length===1?!1:Le===Se[N]&&gt===Se[$]&&ht===Se[ne]&&xe===(Se.length===5?Se[me]:Ce)}function $e(je,qe,Le){const{generated:gt,source:ht,original:xe,name:Se,content:se}=Le;return ht?Ee(je,qe,gt.line-1,gt.column,ht,xe.line-1,xe.column,Se,se):Ee(je,qe,gt.line-1,gt.column,null,null,null,null,null)}})}(zf)),zf.exports}var D1;function Nx(){if(D1)return $o;D1=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.default=void 0;var t=k1(),e=Xf();class r{constructor(s,o){var a;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;const u=this._map=new t.GenMapping({sourceRoot:s.sourceRoot});if(this._sourceFileName=(a=s.sourceFileName)==null?void 0:a.replace(/\\/g,"/"),this._rawMappings=void 0,s.inputSourceMap){this._inputMap=new e.TraceMap(s.inputSourceMap);const y=this._inputMap.resolvedSources;if(y.length)for(let h=0;h<y.length;h++){var p;(0,t.setSourceContent)(u,y[h],(p=this._inputMap.sourcesContent)==null?void 0:p[h])}}if(typeof o=="string"&&!s.inputSourceMap)(0,t.setSourceContent)(u,this._sourceFileName,o);else if(typeof o=="object")for(const y of Object.keys(o))(0,t.setSourceContent)(u,y.replace(/\\/g,"/"),o[y])}get(){return(0,t.toEncodedMap)(this._map)}getDecoded(){return(0,t.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,t.allMappings)(this._map))}mark(s,o,a,u,p,y){var h;this._rawMappings=void 0;let g;if(o!=null)if(this._inputMap){if(g=(0,e.originalPositionFor)(this._inputMap,{line:o,column:a}),g.name&&(p||u!=null&&g.column===a))u=g.name;else if(p){const b=(0,e.originalPositionFor)(this._inputMap,p);b.name&&(u=b.name)}}else g={name:null,source:(y==null?void 0:y.replace(/\\/g,"/"))||this._sourceFileName,line:o,column:a};(0,t.maybeAddMapping)(this._map,{name:u,generated:s,source:(h=g)==null?void 0:h.source,original:g})}}return $o.default=r,$o}var Uo={},Vo={},B1;function kx(){if(B1)return Vo;B1=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.default=void 0;const t=[];for(let r=0;r<32;r++)t.push(" ".repeat(r*2));class e{constructor(n,s){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=n,this._indentChar=s}get(){const{_map:n,_last:s}=this;this._queuedChar!==32&&this._flush();const o=s===10?(this._buf+this._str).trimRight():this._buf+this._str;if(n===null)return{code:o,decodedMap:void 0,map:null,rawMappings:void 0};const a={code:o,decodedMap:n.getDecoded(),get __mergedMap(){return this.map},get map(){const u=n.get();return a.map=u,u},set map(u){Object.defineProperty(a,"map",{value:u,writable:!0})},get rawMappings(){const u=n.getRawMappings();return a.rawMappings=u,u},set rawMappings(u){Object.defineProperty(a,"rawMappings",{value:u,writable:!0})}};return a}append(n,s,o=!1){this._flush(),this._append(n,s,o)}appendChar(n){this._flush(),this._appendChar(n,1,!0)}queue(n){this._flush(),this._queuedChar=n}_flush(){const n=this._queuedChar;n!==0&&(this._appendChar(n,1,!0),this._queuedChar=0)}_appendChar(n,s,o){if(this._last=n,n===-1){const p=s>=64?this._indentChar.repeat(s):t[s/2];this._str+=p}else this._str+=s>1?String.fromCharCode(n).repeat(s):String.fromCharCode(n);const a=n===32,u=this._position;if(n!==10){if(this._map){const p=this._sourcePosition;o&&p?(this._map.mark(u,p.line,p.column,a?void 0:p.identifierName,a?void 0:p.identifierNamePos,p.filename),!a&&this._canMarkIdName&&(p.identifierName=void 0,p.identifierNamePos=void 0)):this._map.mark(u)}u.column+=s}else u.line++,u.column=0}_append(n,s,o){const a=n.length,u=this._position,p=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=n,this._appendCount=0):this._str+=n;const y=!o&&this._map!==null;if(!s&&!y){u.column+=a;return}const{column:h,identifierName:g,identifierNamePos:b,filename:S}=p;let O=p.line;(g!=null||b!=null)&&this._canMarkIdName&&(p.identifierName=void 0,p.identifierNamePos=void 0);let _=n.indexOf(`
47
47
  `),w=0;for(y&&_!==0&&this._map.mark(u,O,h,g,b,S);_!==-1;)u.line++,u.column=0,w=_+1,w<a&&O!==void 0&&(O++,y&&this._map.mark(u,O,0,void 0,void 0,S)),_=n.indexOf(`
48
48
  `,w);u.column+=a-w}removeLastSemicolon(){this._queuedChar===59&&(this._queuedChar=0)}getLastChar(n){if(!n)return this._last;const s=this._queuedChar;return s!==0?s:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(n,s){if(!this._map){s();return}this.source("start",n);const o=n.identifierName,a=this._sourcePosition;o!=null&&(this._canMarkIdName=!1,a.identifierName=o),s(),o!=null&&(this._canMarkIdName=!0,a.identifierName=void 0,a.identifierNamePos=void 0),this.source("end",n)}source(n,s){this._map&&this._normalizePosition(n,s,0)}sourceWithOffset(n,s,o){this._map&&this._normalizePosition(n,s,o)}_normalizePosition(n,s,o){this._flush();const a=s[n];a&&(this.setSourcePosition(a.line,Math.max(a.column+o,0)),this._sourcePosition.filename=s.filename)}setSourcePosition(n,s){const o=this._sourcePosition;o.line=n,o.column=s}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}}return Vo.default=e,Vo}var oa={},rr={},R1;function Dx(){if(R1)return rr;R1=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.AssignmentExpression=Y,rr.BinaryExpression=N,rr.ClassExpression=Ce,rr.ArrowFunctionExpression=rr.ConditionalExpression=ue,rr.DoExpression=_,rr.FunctionExpression=ce,rr.FunctionTypeAnnotation=g,rr.Identifier=he,rr.LogicalExpression=$,rr.NullableTypeAnnotation=h,rr.ObjectExpression=O,rr.OptionalIndexedAccessType=T,rr.OptionalCallExpression=rr.OptionalMemberExpression=K,rr.SequenceExpression=ne,rr.TSSatisfiesExpression=rr.TSAsExpression=x,rr.TSConditionalType=E,rr.TSConstructorType=rr.TSFunctionType=J,rr.TSInferType=I,rr.TSInstantiationExpression=Z,rr.TSIntersectionType=R,rr.SpreadElement=rr.UnaryExpression=rr.TSTypeAssertion=Ae,rr.TSTypeOperator=D,rr.TSUnionType=j,rr.IntersectionTypeAnnotation=rr.UnionTypeAnnotation=C,rr.UpdateExpression=b,rr.AwaitExpression=rr.YieldExpression=me;var t=Ut(),e=ca();const{isMemberExpression:r,isOptionalMemberExpression:n,isYieldExpression:s,isStatement:o}=t,a=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function u(ae){return ae===156||ae===201||ae===209}const p=(ae,U,L)=>(L===21||L===22)&&U.superClass===ae,y=(ae,U,L)=>{switch(L){case 108:case 132:return U.object===ae;case 17:case 130:case 112:return U.callee===ae;case 222:return U.tag===ae;case 191:return!0}return!1};function h(ae,U,L){return L===4}function g(ae,U,L,H){return L===239||L===90||L===4||(H&e.TokenContext.arrowFlowReturnType)>0}function b(ae,U,L){return y(ae,U,L)||p(ae,U,L)}function S(ae){return(ae&(e.TokenContext.expressionStatement|e.TokenContext.arrowBody))>0}function O(ae,U,L,H){return S(H)}function _(ae,U,L,H){return(H&e.TokenContext.expressionStatement)>0&&!ae.async}function w(ae,U,L,H){if(p(ae,U,L)||y(ae,U,L)||L===238||L===145||L===8)return!0;let ye;switch(L){case 10:case 107:ye=a.get(U.operator);break;case 156:case 201:ye=7}if(ye!==void 0){const Ie=H===2?7:a.get(ae.operator);if(ye>Ie||ye===Ie&&L===10&&(Ie===11?U.left===ae:U.right===ae)||H===1&&L===107&&(Ie===1&&ye!==1||ye===1&&Ie!==1))return!0}return!1}function C(ae,U,L){switch(L){case 4:case 115:case 90:case 239:return!0}return!1}function T(ae,U,L){return L===84&&U.objectType===ae}function x(ae,U,L){return(L===6||L===7)&&U.left===ae||L===10&&(U.operator==="|"||U.operator==="&")&&ae===U.left?!0:w(ae,U,L,2)}function E(ae,U,L){switch(L){case 155:case 195:case 211:case 212:return!0;case 175:return U.objectType===ae;case 181:case 219:return U.types[0]===ae;case 161:return U.checkType===ae||U.extendsType===ae}return!1}function j(ae,U,L){switch(L){case 181:case 211:case 155:case 195:return!0;case 175:return U.objectType===ae}return!1}function R(ae,U,L){return L===211||D(ae,U,L)}function I(ae,U,L){return!!(D(ae,U,L)||(L===181||L===219)&&ae.typeParameter.constraint&&U.types[0]===ae)}function D(ae,U,L){switch(L){case 155:case 195:return!0;case 175:if(U.objectType===ae)return!0}return!1}function Z(ae,U,L){switch(L){case 17:case 130:case 112:case 177:return U.typeParameters!=null}return!1}function J(ae,U,L){return j(ae,U,L)?!0:L===219||L===161&&(U.checkType===ae||U.extendsType===ae)}function N(ae,U,L,H){return w(ae,U,L,0)?!0:(H&e.TokenContext.forInOrInitHeadAccumulate)>0&&ae.operator==="in"}function $(ae,U,L){return w(ae,U,L,1)}function ne(ae,U,L){return L===144||L===133||L===108&&U.property===ae||L===132&&U.property===ae||L===224?!1:L===21?!0:L===68?U.right===ae:L===60?!0:!o(U)}function me(ae,U,L){return L===10||L===107||L===238||L===145||y(ae,U,L)||L===8&&s(ae)||L===28&&ae===U.test||p(ae,U,L)||u(L)}function Ce(ae,U,L,H){return(H&(e.TokenContext.expressionStatement|e.TokenContext.exportDefault))>0}function Ae(ae,U,L){return y(ae,U,L)||L===10&&U.operator==="**"&&U.left===ae||p(ae,U,L)}function ce(ae,U,L,H){return(H&(e.TokenContext.expressionStatement|e.TokenContext.exportDefault))>0}function ue(ae,U,L){switch(L){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(U.test===ae)return!0}return u(L)?!0:Ae(ae,U,L)}function K(ae,U,L){switch(L){case 17:return U.callee===ae;case 108:return U.object===ae}return!1}function Y(ae,U,L,H){return S(H)&&ae.left.type==="ObjectPattern"?!0:ue(ae,U,L)}function he(ae,U,L,H,ye){var Ie;if(ye&&ye(ae)!==ae.name)return!1;if(L===6&&(Ie=ae.extra)!=null&&Ie.parenthesized&&U.left===ae){const Ee=U.right.type;if((Ee==="FunctionExpression"||Ee==="ClassExpression")&&U.right.id==null)return!0}return(H&e.TokenContext.forOfHead||(L===108||L===132)&&H&(e.TokenContext.expressionStatement|e.TokenContext.forInitHead|e.TokenContext.forInHead))&&ae.name==="let"?(r(U,{object:ae,computed:!0})||n(U,{object:ae,computed:!0,optional:!1}))&&H&(e.TokenContext.expressionStatement|e.TokenContext.forInitHead|e.TokenContext.forInHead)?!0:(H&e.TokenContext.forOfHead)>0:L===68&&U.left===ae&&ae.name==="async"&&!U.await}return rr}var Ko={},Qf={},la={},j1;function M1(){if(j1)return la;j1=1,Object.defineProperty(la,"__esModule",{value:!0}),la.TaggedTemplateExpression=t,la.TemplateElement=e,la.TemplateLiteral=n,la._printTemplate=r;function t(s){this.print(s.tag),this.print(s.typeParameters),this.print(s.quasi)}function e(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function r(s,o){const a=s.quasis;let u="`";for(let p=0;p<a.length-1;p++)if(u+=a[p].value.raw,this.token(u+"${",!0),this.print(o[p]),u="}",this.tokenMap){const y=this.tokenMap.findMatching(s,"}",p);y&&this._catchUpTo(y.loc.start)}u+=a[a.length-1].value.raw,this.token(u+"`",!0)}function n(s){r.call(this,s,s.expressions)}return la}var fr={},L1;function Zf(){if(L1)return fr;L1=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.LogicalExpression=fr.AssignmentExpression=N,fr.AssignmentPattern=J,fr.AwaitExpression=R,fr.BinaryExpression=$,fr.BindExpression=ne,fr.CallExpression=E,fr.ConditionalExpression=g,fr.Decorator=C,fr.DoExpression=p,fr.EmptyStatement=D,fr.ExpressionStatement=Z,fr.Import=j,fr.MemberExpression=me,fr.MetaProperty=Ce,fr.ModuleExpression=ue,fr.NewExpression=b,fr.OptionalCallExpression=x,fr.OptionalMemberExpression=T,fr.ParenthesizedExpression=y,fr.PrivateName=Ae,fr.SequenceExpression=S,fr.Super=_,fr.ThisExpression=O,fr.UnaryExpression=u,fr.UpdateExpression=h,fr.V8IntrinsicIdentifier=ce,fr.YieldExpression=I,fr._shouldPrintDecoratorsBeforeExport=w;var t=Ut(),e=ca();const{isCallExpression:r,isLiteral:n,isMemberExpression:s,isNewExpression:o,isPattern:a}=t;function u(K){const{operator:Y}=K,he=Y.charCodeAt(0);he>=97&&he<=122?(this.word(Y),this.space()):this.tokenChar(he),this.print(K.argument)}function p(K){K.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(K.body)}function y(K){this.tokenChar(40);const Y=this.enterDelimited();this.print(K.expression,void 0,!0),this._noLineTerminatorAfterNode=Y,this.rightParens(K)}function h(K){K.prefix?(this.token(K.operator,!1,0,!0),this.print(K.argument)):(this.print(K.argument,!0),this.token(K.operator,!1,0,!0))}function g(K){this.print(K.test),this.space(),this.tokenChar(63),this.space(),this.print(K.consequent),this.space(),this.tokenChar(58),this.space(),this.print(K.alternate)}function b(K,Y){if(this.word("new"),this.space(),this.print(K.callee),this.format.minified&&K.arguments.length===0&&!K.optional&&!r(Y,{callee:K})&&!s(Y)&&!o(Y)||(this.print(K.typeArguments),this.print(K.typeParameters),K.optional&&this.token("?."),K.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(K,")")))return;this.tokenChar(40);const he=this.enterDelimited();this.printList(K.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=he,this.rightParens(K)}function S(K){this.printList(K.expressions)}function O(){this.word("this")}function _(){this.word("super")}function w(K){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof K.start=="number"&&K.start===K.declaration.start}function C(K){this.tokenChar(64);const{expression:Y}=K;this.print(Y),this.newline()}function T(K){let{computed:Y}=K;const{optional:he,property:ae}=K;if(this.print(K.object),!Y&&s(ae))throw new TypeError("Got a MemberExpression for MemberExpression property");n(ae)&&typeof ae.value=="number"&&(Y=!0),he&&this.token("?."),Y?(this.tokenChar(91),this.print(ae),this.tokenChar(93)):(he||this.tokenChar(46),this.print(ae))}function x(K){this.print(K.callee),this.print(K.typeParameters),K.optional&&this.token("?."),this.print(K.typeArguments),this.tokenChar(40);const Y=this.enterDelimited();this.printList(K.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=Y,this.rightParens(K)}function E(K){this.print(K.callee),this.print(K.typeArguments),this.print(K.typeParameters),this.tokenChar(40);const Y=this.enterDelimited();this.printList(K.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=Y,this.rightParens(K)}function j(){this.word("import")}function R(K){this.word("await"),this.space(),this.print(K.argument)}function I(K){K.delegate?(this.word("yield",!0),this.tokenChar(42),K.argument&&(this.space(),this.print(K.argument))):K.argument?(this.word("yield",!0),this.space(),this.print(K.argument)):this.word("yield")}function D(){this.semicolon(!0)}function Z(K){this.tokenContext|=e.TokenContext.expressionStatement,this.print(K.expression),this.semicolon()}function J(K){this.print(K.left),(K.left.type==="Identifier"||a(K.left))&&(K.left.optional&&this.tokenChar(63),this.print(K.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(K.right)}function N(K){this.print(K.left),this.space(),this.token(K.operator,!1,0,!0),this.space(),this.print(K.right)}function $(K){this.print(K.left),this.space();const{operator:Y}=K;Y.charCodeAt(0)===105?this.word(Y):(this.token(Y,!1,0,!0),this.setLastChar(Y.charCodeAt(Y.length-1))),this.space(),this.print(K.right)}function ne(K){this.print(K.object),this.token("::"),this.print(K.callee)}function me(K){if(this.print(K.object),!K.computed&&s(K.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let Y=K.computed;if(n(K.property)&&typeof K.property.value=="number"&&(Y=!0),Y){const he=this.enterDelimited();this.tokenChar(91),this.print(K.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=he}else this.tokenChar(46),this.print(K.property)}function Ce(K){this.print(K.meta),this.tokenChar(46),this.print(K.property)}function Ae(K){this.tokenChar(35),this.print(K.id)}function ce(K){this.tokenChar(37),this.word(K.name)}function ue(K){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:Y}=K;(Y.body.length||Y.directives.length)&&this.newline(),this.print(Y),this.dedent(),this.rightBrace(K)}return fr}var _r={},F1;function Bx(){if(F1)return _r;F1=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.BreakStatement=O,_r.CatchClause=E,_r.ContinueStatement=_,_r.DebuggerStatement=I,_r.DoWhileStatement=b,_r.ForInStatement=h,_r.ForOfStatement=g,_r.ForStatement=p,_r.IfStatement=a,_r.LabeledStatement=T,_r.ReturnStatement=w,_r.SwitchCase=R,_r.SwitchStatement=j,_r.ThrowStatement=C,_r.TryStatement=x,_r.VariableDeclaration=Z,_r.VariableDeclarator=J,_r.WhileStatement=y,_r.WithStatement=o;var t=Ut(),e=ca();const{isFor:r,isIfStatement:n,isStatement:s}=t;function o(N){this.word("with"),this.space(),this.tokenChar(40),this.print(N.object),this.tokenChar(41),this.printBlock(N.body)}function a(N){this.word("if"),this.space(),this.tokenChar(40),this.print(N.test),this.tokenChar(41),this.space();const $=N.alternate&&n(u(N.consequent));$&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(N.consequent),$&&(this.dedent(),this.newline(),this.tokenChar(125)),N.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(N.alternate))}function u(N){const{body:$}=N;return s($)===!1?N:u($)}function p(N){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=e.TokenContext.forInitHead|e.TokenContext.forInOrInitHeadAccumulate,this.print(N.init),this.tokenContext=e.TokenContext.normal,this.tokenChar(59),N.test&&(this.space(),this.print(N.test)),this.tokenChar(59,1),N.update&&(this.space(),this.print(N.update)),this.tokenChar(41),this.printBlock(N.body)}function y(N){this.word("while"),this.space(),this.tokenChar(40),this.print(N.test),this.tokenChar(41),this.printBlock(N.body)}function h(N){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=e.TokenContext.forInHead|e.TokenContext.forInOrInitHeadAccumulate,this.print(N.left),this.tokenContext=e.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(N.right),this.tokenChar(41),this.printBlock(N.body)}function g(N){this.word("for"),this.space(),N.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=e.TokenContext.forOfHead,this.print(N.left),this.space(),this.word("of"),this.space(),this.print(N.right),this.tokenChar(41),this.printBlock(N.body)}function b(N){this.word("do"),this.space(),this.print(N.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(N.test),this.tokenChar(41),this.semicolon()}function S(N,$){$&&(N.space(),N.printTerminatorless($)),N.semicolon()}function O(N){this.word("break"),S(this,N.label)}function _(N){this.word("continue"),S(this,N.label)}function w(N){this.word("return"),S(this,N.argument)}function C(N){this.word("throw"),S(this,N.argument)}function T(N){this.print(N.label),this.tokenChar(58),this.space(),this.print(N.body)}function x(N){this.word("try"),this.space(),this.print(N.block),this.space(),N.handlers?this.print(N.handlers[0]):this.print(N.handler),N.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(N.finalizer))}function E(N){this.word("catch"),this.space(),N.param&&(this.tokenChar(40),this.print(N.param),this.print(N.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(N.body)}function j(N){this.word("switch"),this.space(),this.tokenChar(40),this.print(N.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(N.cases,!0),this.rightBrace(N)}function R(N){N.test?(this.word("case"),this.space(),this.print(N.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),N.consequent.length&&(this.newline(),this.printSequence(N.consequent,!0))}function I(){this.word("debugger"),this.semicolon()}function D(N){this.tokenChar(44,N),this.newline()}function Z(N,$){N.declare&&(this.word("declare"),this.space());const{kind:ne}=N;switch(ne){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(ne)}this.space();let me=!1;if(!r($)){for(const Ce of N.declarations)if(Ce.init){me=!0;break}}if(this.printList(N.declarations,void 0,void 0,N.declarations.length>1,me?D:void 0),$!=null)switch($.type){case"ForStatement":if($.init===N)return;break;case"ForInStatement":case"ForOfStatement":if($.left===N)return}this.semicolon()}function J(N){this.print(N.id),N.definite&&this.tokenChar(33),this.print(N.id.typeAnnotation),N.init&&(this.space(),this.tokenChar(61),this.space(),this.print(N.init))}return _r}var Un={},kt={},Vn={},q1;function zc(){if(q1)return Vn;q1=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.ArrowFunctionExpression=h,Vn.FunctionDeclaration=Vn.FunctionExpression=y,Vn._functionHead=p,Vn._methodHead=a,Vn._param=o,Vn._parameters=s,Vn._params=n,Vn._predicate=u,Vn._shouldPrintArrowParamsParens=g;var t=Ut(),e=ca();const{isIdentifier:r}=t;function n(S,O,_,w){if(this.print(S.typeParameters),_!==void 0||w!==void 0){const C=b.call(this,_,w);C&&this.sourceIdentifierName(C.name,C.pos)}this.tokenChar(40),s.call(this,S.params,41),this.print(S.returnType,O),this._noLineTerminator=O}function s(S,O){const _=this.enterDelimited(),w=this.shouldPrintTrailingComma(O),C=S.length;for(let T=0;T<C;T++)o.call(this,S[T]),(w||T<C-1)&&(this.tokenChar(44,T),this.space());this.tokenChar(O),this._noLineTerminatorAfterNode=_}function o(S){this.printJoin(S.decorators,void 0,void 0,void 0,void 0,!0),this.print(S,void 0,!0),S.optional&&this.tokenChar(63),this.print(S.typeAnnotation,void 0,!0)}function a(S){const O=S.kind,_=S.key;(O==="get"||O==="set")&&(this.word(O),this.space()),S.async&&(this.word("async",!0),this.space()),(O==="method"||O==="init")&&S.generator&&this.tokenChar(42),S.computed?(this.tokenChar(91),this.print(_),this.tokenChar(93)):this.print(_),S.optional&&this.tokenChar(63),this._buf._map?n.call(this,S,!1,S.computed&&S.key.type!=="StringLiteral"?void 0:S.key):n.call(this,S,!1)}function u(S,O){S.predicate&&(S.returnType||this.tokenChar(58),this.space(),this.print(S.predicate,O))}function p(S,O,_){S.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),S.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),S.id&&this.print(S.id),this._buf._map?n.call(this,S,!1,S.id,O):n.call(this,S,!1),_&&u.call(this,S)}function y(S,O){p.call(this,S,O,!0),this.space(),this.print(S.body)}function h(S,O){S.async&&(this.word("async",!0),this.space()),g.call(this,S)?n.call(this,S,!0,void 0,this._buf._map?O:void 0):this.print(S.params[0],!0),u.call(this,S,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=e.TokenContext.arrowBody,this.print(S.body)}function g(S){var O,_;if(S.params.length!==1||S.typeParameters||S.returnType||S.predicate)return!0;const w=S.params[0];if(!r(w)||w.typeAnnotation||w.optional||(O=w.leadingComments)!=null&&O.length||(_=w.trailingComments)!=null&&_.length)return!0;if(this.tokenMap){if(S.loc==null||this.tokenMap.findMatching(S,"(")!==null)return!0;const C=this.tokenMap.findMatching(S,"=>");return(C==null?void 0:C.loc)==null?!0:C.loc.start.line!==S.loc.start.line}return!!this.format.retainLines}function b(S,O){let _=S;if(!_&&O){const j=O.type;j==="VariableDeclarator"?_=O.id:j==="AssignmentExpression"||j==="AssignmentPattern"?_=O.left:j==="ObjectProperty"||j==="ClassProperty"?(!O.computed||O.key.type==="StringLiteral")&&(_=O.key):(j==="ClassPrivateProperty"||j==="ClassAccessorProperty")&&(_=O.key)}if(!_)return;let w;if(_.type==="Identifier"){var C,T;w={pos:(C=_.loc)==null?void 0:C.start,name:((T=_.loc)==null?void 0:T.identifierName)||_.name}}else if(_.type==="PrivateName"){var x;w={pos:(x=_.loc)==null?void 0:x.start,name:"#"+_.id.name}}else if(_.type==="StringLiteral"){var E;w={pos:(E=_.loc)==null?void 0:E.start,name:_.value}}return w}return Vn}var $1;function U1(){if($1)return kt;$1=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.TSAnyKeyword=C,kt.TSArrayType=ae,kt.TSAsExpression=Se,kt.TSBigIntKeyword=T,kt.TSBooleanKeyword=R,kt.TSCallSignatureDeclaration=h,kt.TSInterfaceHeritage=kt.TSClassImplements=Le,kt.TSConditionalType=Me,kt.TSConstructSignatureDeclaration=b,kt.TSConstructorType=Ae,kt.TSDeclareFunction=u,kt.TSDeclareMethod=p,kt.TSEnumBody=fe,kt.TSEnumDeclaration=W,kt.TSEnumMember=Re,kt.TSExportAssignment=xt,kt.TSExternalModuleReference=Mt,kt.TSFunctionType=Ce,kt.TSImportEqualsDeclaration=_t,kt.TSImportType=it,kt.TSIndexSignature=w,kt.TSIndexedAccessType=st,kt.TSInferType=Ve,kt.TSInstantiationExpression=oe,kt.TSInterfaceBody=ht,kt.TSInterfaceDeclaration=gt,kt.TSIntersectionType=Ee,kt.TSIntrinsicKeyword=ne,kt.TSLiteralType=qe,kt.TSMappedType=dt,kt.TSMethodSignature=_,kt.TSModuleBlock=Ke,kt.TSModuleDeclaration=Fe,kt.TSNamedTupleMember=ye,kt.TSNamespaceExportDeclaration=te,kt.TSNeverKeyword=$,kt.TSNonNullExpression=pt,kt.TSNullKeyword=N,kt.TSNumberKeyword=E,kt.TSObjectKeyword=j,kt.TSOptionalType=L,kt.TSParameterProperty=a,kt.TSParenthesizedType=Ze,kt.TSPropertySignature=S,kt.TSQualifiedName=y,kt.TSRestType=H,kt.TSSatisfiesExpression=se,kt.TSStringKeyword=I,kt.TSSymbolKeyword=D,kt.TSTemplateLiteralType=je,kt.TSThisType=me,kt.TSTupleType=U,kt.TSTypeAliasDeclaration=xe,kt.TSTypeAnnotation=n,kt.TSTypeAssertion=ee,kt.TSTypeLiteral=he,kt.TSTypeOperator=ut,kt.TSTypeParameter=o,kt.TSTypeParameterDeclaration=kt.TSTypeParameterInstantiation=s,kt.TSTypePredicate=K,kt.TSTypeQuery=Y,kt.TSTypeReference=ue,kt.TSUndefinedKeyword=J,kt.TSUnionType=Ie,kt.TSUnknownKeyword=x,kt.TSVoidKeyword=Z,kt._tsPrintClassMemberModifiers=G;var t=zc(),e=Y1(),r=M1();function n(ge,rt){this.token((rt.type==="TSFunctionType"||rt.type==="TSConstructorType")&&rt.typeAnnotation===ge?"=>":":"),this.space(),ge.optional&&this.tokenChar(63),this.print(ge.typeAnnotation)}function s(ge,rt){this.tokenChar(60);let yt=rt.type==="ArrowFunctionExpression"&&ge.params.length===1;this.tokenMap&&ge.start!=null&&ge.end!=null&&(yt&&(yt=!!this.tokenMap.find(ge,mt=>this.tokenMap.matchesOriginal(mt,","))),yt||(yt=this.shouldPrintTrailingComma(">"))),this.printList(ge.params,yt),this.tokenChar(62)}function o(ge){ge.const&&(this.word("const"),this.space()),ge.in&&(this.word("in"),this.space()),ge.out&&(this.word("out"),this.space()),this.word(ge.name),ge.constraint&&(this.space(),this.word("extends"),this.space(),this.print(ge.constraint)),ge.default&&(this.space(),this.tokenChar(61),this.space(),this.print(ge.default))}function a(ge){ge.accessibility&&(this.word(ge.accessibility),this.space()),ge.readonly&&(this.word("readonly"),this.space()),t._param.call(this,ge.parameter)}function u(ge,rt){ge.declare&&(this.word("declare"),this.space()),t._functionHead.call(this,ge,rt,!1),this.semicolon()}function p(ge){e._classMethodHead.call(this,ge),this.semicolon()}function y(ge){this.print(ge.left),this.tokenChar(46),this.print(ge.right)}function h(ge){de.call(this,ge),g(this,ge)}function g(ge,rt){if(!ge.tokenMap||!rt.start||!rt.end){ge.semicolon();return}ge.tokenMap.endMatches(rt,",")?ge.token(","):ge.tokenMap.endMatches(rt,";")&&ge.semicolon()}function b(ge){this.word("new"),this.space(),de.call(this,ge),g(this,ge)}function S(ge){const{readonly:rt}=ge;rt&&(this.word("readonly"),this.space()),O.call(this,ge),this.print(ge.typeAnnotation),g(this,ge)}function O(ge){ge.computed&&this.tokenChar(91),this.print(ge.key),ge.computed&&this.tokenChar(93),ge.optional&&this.tokenChar(63)}function _(ge){const{kind:rt}=ge;(rt==="set"||rt==="get")&&(this.word(rt),this.space()),O.call(this,ge),de.call(this,ge),g(this,ge)}function w(ge){const{readonly:rt,static:yt}=ge;yt&&(this.word("static"),this.space()),rt&&(this.word("readonly"),this.space()),this.tokenChar(91),t._parameters.call(this,ge.parameters,93),this.print(ge.typeAnnotation),g(this,ge)}function C(){this.word("any")}function T(){this.word("bigint")}function x(){this.word("unknown")}function E(){this.word("number")}function j(){this.word("object")}function R(){this.word("boolean")}function I(){this.word("string")}function D(){this.word("symbol")}function Z(){this.word("void")}function J(){this.word("undefined")}function N(){this.word("null")}function $(){this.word("never")}function ne(){this.word("intrinsic")}function me(){this.word("this")}function Ce(ge){ce.call(this,ge)}function Ae(ge){ge.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),ce.call(this,ge)}function ce(ge){const{typeParameters:rt}=ge,yt=ge.parameters;this.print(rt),this.tokenChar(40),t._parameters.call(this,yt,41),this.space();const mt=ge.typeAnnotation;this.print(mt)}function ue(ge){const rt=ge.typeParameters;this.print(ge.typeName,!!rt),this.print(rt)}function K(ge){ge.asserts&&(this.word("asserts"),this.space()),this.print(ge.parameterName),ge.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(ge.typeAnnotation.typeAnnotation))}function Y(ge){this.word("typeof"),this.space(),this.print(ge.exprName);const rt=ge.typeParameters;rt&&this.print(rt)}function he(ge){be(this,ge,()=>this.printJoin(ge.members,!0,!0,void 0,void 0,!0))}function ae(ge){this.print(ge.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function U(ge){this.tokenChar(91),this.printList(ge.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function L(ge){this.print(ge.typeAnnotation),this.tokenChar(63)}function H(ge){this.token("..."),this.print(ge.typeAnnotation)}function ye(ge){this.print(ge.label),ge.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(ge.elementType)}function Ie(ge){De(this,ge,"|")}function Ee(ge){De(this,ge,"&")}function De(ge,rt,yt){var mt;let Bt=0;(mt=ge.tokenMap)!=null&&mt.startMatches(rt,yt)&&(Bt=1,ge.token(yt)),ge.printJoin(rt.types,void 0,void 0,function(Lt){this.space(),this.token(yt,void 0,Lt+Bt),this.space()})}function Me(ge){this.print(ge.checkType),this.space(),this.word("extends"),this.space(),this.print(ge.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(ge.trueType),this.space(),this.tokenChar(58),this.space(),this.print(ge.falseType)}function Ve(ge){this.word("infer"),this.print(ge.typeParameter)}function Ze(ge){this.tokenChar(40),this.print(ge.typeAnnotation),this.tokenChar(41)}function ut(ge){this.word(ge.operator),this.space(),this.print(ge.typeAnnotation)}function st(ge){this.print(ge.objectType,!0),this.tokenChar(91),this.print(ge.indexType),this.tokenChar(93)}function dt(ge){const{nameType:rt,optional:yt,readonly:mt,typeAnnotation:Bt}=ge;this.tokenChar(123);const Lt=this.enterDelimited();this.space(),mt&&($e(this,mt),this.word("readonly"),this.space()),this.tokenChar(91),this.word(ge.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(ge.typeParameter.constraint,void 0,!0),rt&&(this.space(),this.word("as"),this.space(),this.print(rt,void 0,!0)),this.tokenChar(93),yt&&($e(this,yt),this.tokenChar(63)),Bt&&(this.tokenChar(58),this.space(),this.print(Bt,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=Lt,this.tokenChar(125)}function $e(ge,rt){rt!==!0&&ge.token(rt)}function je(ge){r._printTemplate.call(this,ge,ge.types)}function qe(ge){this.print(ge.literal)}function Le(ge){this.print(ge.expression),this.print(ge.typeArguments)}function gt(ge){const{declare:rt,id:yt,typeParameters:mt,extends:Bt,body:Lt}=ge;rt&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(yt),this.print(mt),Bt!=null&&Bt.length&&(this.space(),this.word("extends"),this.space(),this.printList(Bt)),this.space(),this.print(Lt)}function ht(ge){be(this,ge,()=>this.printJoin(ge.body,!0,!0,void 0,void 0,!0))}function xe(ge){const{declare:rt,id:yt,typeParameters:mt,typeAnnotation:Bt}=ge;rt&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(yt),this.print(mt),this.space(),this.tokenChar(61),this.space(),this.print(Bt),this.semicolon()}function Se(ge){const{expression:rt,typeAnnotation:yt}=ge;this.print(rt,!0),this.space(),this.word("as"),this.space(),this.print(yt)}function se(ge){const{expression:rt,typeAnnotation:yt}=ge;this.print(rt,!0),this.space(),this.word("satisfies"),this.space(),this.print(yt)}function ee(ge){const{typeAnnotation:rt,expression:yt}=ge;this.tokenChar(60),this.print(rt),this.tokenChar(62),this.space(),this.print(yt)}function oe(ge){this.print(ge.expression),this.print(ge.typeParameters)}function W(ge){const{declare:rt,const:yt,id:mt}=ge;rt&&(this.word("declare"),this.space()),yt&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(mt),this.space(),fe.call(this,ge)}function fe(ge){be(this,ge,()=>{var rt;return this.printList(ge.members,(rt=this.shouldPrintTrailingComma("}"))!=null?rt:!0,!0,!0,void 0,!0)})}function Re(ge){const{id:rt,initializer:yt}=ge;this.print(rt),yt&&(this.space(),this.tokenChar(61),this.space(),this.print(yt))}function Fe(ge){const{declare:rt,id:yt,kind:mt}=ge;if(rt&&(this.word("declare"),this.space()),ge.global||(this.word(mt??(yt.type==="Identifier"?"namespace":"module")),this.space()),this.print(yt),!ge.body){this.semicolon();return}let Bt=ge.body;for(;Bt.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(Bt.id),Bt=Bt.body;this.space(),this.print(Bt)}function Ke(ge){be(this,ge,()=>this.printSequence(ge.body,!0,!0))}function it(ge){const{qualifier:rt,options:yt}=ge;this.word("import"),this.tokenChar(40),this.print(ge.argument),yt&&(this.tokenChar(44),this.print(yt)),this.tokenChar(41),rt&&(this.tokenChar(46),this.print(rt));const mt=ge.typeParameters;mt&&this.print(mt)}function _t(ge){const{id:rt,moduleReference:yt}=ge;ge.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(rt),this.space(),this.tokenChar(61),this.space(),this.print(yt),this.semicolon()}function Mt(ge){this.token("require("),this.print(ge.expression),this.tokenChar(41)}function pt(ge){this.print(ge.expression),this.tokenChar(33),this.setLastChar(33)}function xt(ge){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(ge.expression),this.semicolon()}function te(ge){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(ge.id),this.semicolon()}function de(ge){const{typeParameters:rt}=ge,yt=ge.parameters;this.print(rt),this.tokenChar(40),t._parameters.call(this,yt,41);const mt=ge.typeAnnotation;this.print(mt)}function G(ge){const rt=ge.type==="ClassPrivateProperty",yt=ge.type==="ClassAccessorProperty"||ge.type==="ClassProperty";et(this,ge,[yt&&ge.declare&&"declare",!rt&&ge.accessibility]),ge.static&&(this.word("static"),this.space()),et(this,ge,[!rt&&ge.abstract&&"abstract",!rt&&ge.override&&"override",(yt||rt)&&ge.readonly&&"readonly"])}function be(ge,rt,yt){ge.token("{");const mt=ge.enterDelimited();yt(),ge._noLineTerminatorAfterNode=mt,ge.rightBrace(rt)}function et(ge,rt,yt){var mt;const Bt=new Set;for(const Lt of yt)Lt&&Bt.add(Lt);(mt=ge.tokenMap)==null||mt.find(rt,Lt=>Bt.has(Lt.value)?(ge.token(Lt.value),ge.space(),Bt.delete(Lt.value),Bt.size===0):!1);for(const Lt of Bt)ge.word(Lt),ge.space()}return kt}var ep={},cn={},V1;function K1(){if(V1)return cn;V1=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.ExportAllDeclaration=w,cn.ExportDefaultDeclaration=x,cn.ExportDefaultSpecifier=g,cn.ExportNamedDeclaration=T,cn.ExportNamespaceSpecifier=S,cn.ExportSpecifier=b,cn.ImportAttribute=j,cn.ImportDeclaration=E,cn.ImportDefaultSpecifier=h,cn.ImportExpression=I,cn.ImportNamespaceSpecifier=R,cn.ImportSpecifier=y,cn._printAttributes=_;var t=Ut(),e=ca(),r=Zf();const{isClassDeclaration:n,isExportDefaultSpecifier:s,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:a,isImportNamespaceSpecifier:u,isStatement:p}=t;function y(D){(D.importKind==="type"||D.importKind==="typeof")&&(this.word(D.importKind),this.space()),this.print(D.imported),D.local&&D.local.name!==D.imported.name&&(this.space(),this.word("as"),this.space(),this.print(D.local))}function h(D){this.print(D.local)}function g(D){this.print(D.exported)}function b(D){D.exportKind==="type"&&(this.word("type"),this.space()),this.print(D.local),D.exported&&D.local.name!==D.exported.name&&(this.space(),this.word("as"),this.space(),this.print(D.exported))}function S(D){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(D.exported)}let O=!1;function _(D,Z){var J;const{attributes:N}=D;var{assertions:$}=D;const{importAttributesKeyword:ne}=this.format;N&&!ne&&D.extra&&(D.extra.deprecatedAssertSyntax||D.extra.deprecatedWithLegacySyntax)&&!O&&(O=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const me=ne==="assert"||!ne&&$;if(this.word(me?"assert":"with"),this.space(),!me&&(ne==="with-legacy"||!ne&&(J=D.extra)!=null&&J.deprecatedWithLegacySyntax)){this.printList(N||$);return}const Ce=Z?1:0;this.token("{",void 0,Ce),this.space(),this.printList(N||$,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,Ce)}function w(D){var Z,J;this.word("export"),this.space(),D.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(Z=D.attributes)!=null&&Z.length||(J=D.assertions)!=null&&J.length?(this.print(D.source,!0),this.space(),_.call(this,D,!1)):this.print(D.source),this.semicolon()}function C(D,Z){n(Z.declaration)&&r._shouldPrintDecoratorsBeforeExport.call(D,Z)&&D.printJoin(Z.declaration.decorators)}function T(D){if(C(this,D),this.word("export"),this.space(),D.declaration){const N=D.declaration;this.print(N),p(N)||this.semicolon()}else{D.exportKind==="type"&&(this.word("type"),this.space());const N=D.specifiers.slice(0);let $=!1;for(;;){const me=N[0];if(s(me)||o(me))$=!0,this.print(N.shift()),N.length&&(this.tokenChar(44),this.space());else break}let ne=!1;if((N.length||!N.length&&!$)&&(ne=!0,this.tokenChar(123),N.length&&(this.space(),this.printList(N,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),D.source){var Z,J;this.space(),this.word("from"),this.space(),(Z=D.attributes)!=null&&Z.length||(J=D.assertions)!=null&&J.length?(this.print(D.source,!0),this.space(),_.call(this,D,ne)):this.print(D.source)}this.semicolon()}}function x(D){C(this,D),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=e.TokenContext.exportDefault;const Z=D.declaration;this.print(Z),p(Z)||this.semicolon()}function E(D){var Z,J;this.word("import"),this.space();const N=D.importKind==="type"||D.importKind==="typeof";N?(this.noIndentInnerCommentsHere(),this.word(D.importKind),this.space()):D.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):D.phase&&(this.noIndentInnerCommentsHere(),this.word(D.phase),this.space());const $=D.specifiers.slice(0),ne=!!$.length;for(;ne;){const Ce=$[0];if(a(Ce)||u(Ce))this.print($.shift()),$.length&&(this.tokenChar(44),this.space());else break}let me=!1;$.length?(me=!0,this.tokenChar(123),this.space(),this.printList($,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):N&&!ne&&(me=!0,this.tokenChar(123),this.tokenChar(125)),(ne||N)&&(this.space(),this.word("from"),this.space()),(Z=D.attributes)!=null&&Z.length||(J=D.assertions)!=null&&J.length?(this.print(D.source,!0),this.space(),_.call(this,D,me)):this.print(D.source),this.semicolon()}function j(D){this.print(D.key),this.tokenChar(58),this.space(),this.print(D.value)}function R(D){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(D.local)}function I(D){this.word("import"),D.phase&&(this.tokenChar(46),this.word(D.phase)),this.tokenChar(40);const Z=this.shouldPrintTrailingComma(")");this.print(D.source),D.options!=null&&(this.tokenChar(44),this.space(),this.print(D.options)),Z&&this.tokenChar(44),this.rightParens(D)}return cn}var vr={},tp,W1;function Rx(){if(W1)return tp;W1=1;const t={},e=t.hasOwnProperty,r=(D,Z)=>{for(const J in D)e.call(D,J)&&Z(J,D[J])},n=(D,Z)=>(Z&&r(Z,(J,N)=>{D[J]=N}),D),s=(D,Z)=>{const J=D.length;let N=-1;for(;++N<J;)Z(D[N])},o=D=>"\\u"+("0000"+D).slice(-4),a=(D,Z)=>{let J=D.toString(16);return Z?J:J.toUpperCase()},u=t.toString,p=Array.isArray,y=D=>typeof Buffer=="function"&&Buffer.isBuffer(D),h=D=>u.call(D)=="[object Object]",g=D=>typeof D=="string"||u.call(D)=="[object String]",b=D=>typeof D=="number"||u.call(D)=="[object Number]",S=D=>typeof D=="bigint",O=D=>typeof D=="function",_=D=>u.call(D)=="[object Map]",w=D=>u.call(D)=="[object Set]",C={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},T=/[\\\b\f\n\r\t]/,x=/[0-9]/,E=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,j=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,R=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,I=(D,Z)=>{const J=()=>{ce=Ae,++Z.indentLevel,Ae=Z.indent.repeat(Z.indentLevel)},N={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},$=Z&&Z.json;$&&(N.quotes="double",N.wrap=!0),Z=n(N,Z),Z.quotes!="single"&&Z.quotes!="double"&&Z.quotes!="backtick"&&(Z.quotes="single");const ne=Z.quotes=="double"?'"':Z.quotes=="backtick"?"`":"'",me=Z.compact,Ce=Z.lowercaseHex;let Ae=Z.indent.repeat(Z.indentLevel),ce="";const ue=Z.__inline1__,K=Z.__inline2__,Y=me?"":`
49
49
  `;let he,ae=!0;const U=Z.numbers=="binary",L=Z.numbers=="octal",H=Z.numbers=="decimal",ye=Z.numbers=="hexadecimal";if($&&D&&O(D.toJSON)&&(D=D.toJSON()),!g(D)){if(_(D))return D.size==0?"new Map()":(me||(Z.__inline1__=!0,Z.__inline2__=!1),"new Map("+I(Array.from(D),Z)+")");if(w(D))return D.size==0?"new Set()":"new Set("+I(Array.from(D),Z)+")";if(y(D))return D.length==0?"Buffer.from([])":"Buffer.from("+I(Array.from(D),Z)+")";if(p(D))return he=[],Z.wrap=!0,ue&&(Z.__inline1__=!1,Z.__inline2__=!0),K||J(),s(D,Ee=>{ae=!1,K&&(Z.__inline2__=!1),he.push((me||K?"":Ae)+I(Ee,Z))}),ae?"[]":K?"["+he.join(", ")+"]":"["+Y+he.join(","+Y)+Y+(me?"":ce)+"]";if(b(D)||S(D)){if($)return JSON.stringify(Number(D));let Ee;if(H)Ee=String(D);else if(ye){let De=D.toString(16);Ce||(De=De.toUpperCase()),Ee="0x"+De}else U?Ee="0b"+D.toString(2):L&&(Ee="0o"+D.toString(8));return S(D)?Ee+"n":Ee}else return S(D)?$?JSON.stringify(Number(D)):D+"n":h(D)?(he=[],Z.wrap=!0,J(),r(D,(Ee,De)=>{ae=!1,he.push((me?"":Ae)+I(Ee,Z)+":"+(me?"":" ")+I(De,Z))}),ae?"{}":"{"+Y+he.join(","+Y)+Y+(me?"":ce)+"}"):$?JSON.stringify(D)||"null":String(D)}const Ie=Z.escapeEverything?j:R;return he=D.replace(Ie,(Ee,De,Me,Ve,Ze,ut)=>{if(De){if(Z.minimal)return De;const dt=De.charCodeAt(0),$e=De.charCodeAt(1);if(Z.es6){const je=(dt-55296)*1024+$e-56320+65536;return"\\u{"+a(je,Ce)+"}"}return o(a(dt,Ce))+o(a($e,Ce))}if(Me)return o(a(Me.charCodeAt(0),Ce));if(Ee=="\0"&&!$&&!x.test(ut.charAt(Ze+1)))return"\\0";if(Ve)return Ve==ne||Z.escapeEverything?"\\"+Ve:Ve;if(T.test(Ee))return C[Ee];if(Z.minimal&&!E.test(Ee))return Ee;const st=a(Ee.charCodeAt(0),Ce);return $||st.length>2?o(st):"\\x"+("00"+st).slice(-2)}),ne=="`"&&(he=he.replace(/\$\{/g,"\\${")),Z.isScriptContext&&(he=he.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,$?"\\u003C!--":"\\x3C!--")),Z.wrap&&(he=ne+he+ne),he};return I.version="3.0.2",tp=I,tp}var G1;function rp(){if(G1)return vr;G1=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.ArgumentPlaceholder=p,vr.ArrayPattern=vr.ArrayExpression=S,vr.BigIntLiteral=x,vr.BooleanLiteral=_,vr.Identifier=u,vr.NullLiteral=w,vr.NumericLiteral=C,vr.ObjectPattern=vr.ObjectExpression=h,vr.ObjectMethod=g,vr.ObjectProperty=b,vr.PipelineBareFunction=I,vr.PipelinePrimaryTopicReference=D,vr.PipelineTopicExpression=R,vr.RegExpLiteral=O,vr.SpreadElement=vr.RestElement=y,vr.StringLiteral=T,vr.TopicReference=j,vr.VoidPattern=Z,vr._getRawIdentifier=a;var t=Ut(),e=Rx(),r=zc();const{isAssignmentPattern:n,isIdentifier:s}=t;let o="";function a(J){const{name:N}=J,$=this.tokenMap.find(J,ne=>ne.value===N);return $?(o=this._originalCode.slice($.start,$.end),o):o=J.name}function u(J){if(this._buf._map){var N;this.sourceIdentifierName(((N=J.loc)==null?void 0:N.identifierName)||J.name)}this.word(this.tokenMap?o:J.name)}function p(){this.tokenChar(63)}function y(J){this.token("..."),this.print(J.argument)}function h(J){const N=J.properties;if(this.tokenChar(123),N.length){const $=this.enterDelimited();this.space(),this.printList(N,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=$}this.rightBrace(J)}function g(J){this.printJoin(J.decorators),r._methodHead.call(this,J),this.space(),this.print(J.body)}function b(J){if(this.printJoin(J.decorators),J.computed)this.tokenChar(91),this.print(J.key),this.tokenChar(93);else{if(n(J.value)&&s(J.key)&&J.key.name===J.value.left.name){this.print(J.value);return}if(this.print(J.key),J.shorthand&&s(J.key)&&s(J.value)&&J.key.name===J.value.name)return}this.tokenChar(58),this.space(),this.print(J.value)}function S(J){const N=J.elements,$=N.length;this.tokenChar(91);const ne=this.enterDelimited();for(let me=0;me<N.length;me++){const Ce=N[me];Ce?(me>0&&this.space(),this.print(Ce,void 0,!0),(me<$-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,me)):this.tokenChar(44,me)}this._noLineTerminatorAfterNode=ne,this.tokenChar(93)}function O(J){this.word(`/${J.pattern}/${J.flags}`,!1)}function _(J){this.word(J.value?"true":"false")}function w(){this.word("null")}function C(J){const N=this.getPossibleRaw(J),$=this.format.jsescOption,ne=J.value,me=ne+"";$.numbers?this.number(e(ne,$),ne):N==null?this.number(me,ne):this.format.minified?this.number(N.length<me.length?N:me,ne):this.number(N,ne)}function T(J){const N=this.getPossibleRaw(J);if(!this.format.minified&&N!==void 0){this.token(N);return}const $=e(J.value,this.format.jsescOption);this.token($)}function x(J){const N=this.getPossibleRaw(J);if(!this.format.minified&&N!==void 0){this.word(N);return}this.word(J.value+"n")}const E=new Set(["^^","@@","^","%","#"]);function j(){const{topicToken:J}=this.format;if(E.has(J))this.token(J);else{const N=JSON.stringify(J),$=Array.from(E,ne=>JSON.stringify(ne));throw new Error(`The "topicToken" generator option must be one of ${$.join(", ")} (${N} received instead).`)}}function R(J){this.print(J.expression)}function I(J){this.print(J.callee)}function D(){this.tokenChar(35)}function Z(){this.word("void")}return vr}var z1;function H1(){return z1||(z1=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=u,t.ArrayTypeAnnotation=p,t.BooleanLiteralTypeAnnotation=h,t.BooleanTypeAnnotation=y,t.DeclareClass=b,t.DeclareExportAllDeclaration=I,t.DeclareExportDeclaration=R,t.DeclareFunction=S,t.DeclareInterface=w,t.DeclareModule=C,t.DeclareModuleExports=T,t.DeclareOpaqueType=E,t.DeclareTypeAlias=x,t.DeclareVariable=j,t.DeclaredPredicate=_,t.EmptyTypeAnnotation=Ze,t.EnumBooleanBody=N,t.EnumBooleanMember=ce,t.EnumDeclaration=D,t.EnumDefaultedMember=Ce,t.EnumNumberBody=$,t.EnumNumberMember=ue,t.EnumStringBody=ne,t.EnumStringMember=K,t.EnumSymbolBody=me,t.ExistsTypeAnnotation=he,t.FunctionTypeAnnotation=ae,t.FunctionTypeParam=U,t.IndexedAccessType=te,t.InferredPredicate=O,t.InterfaceDeclaration=Ie,t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=L,t.InterfaceTypeAnnotation=De,t.IntersectionTypeAnnotation=Me,t.MixedTypeAnnotation=Ve,t.NullLiteralTypeAnnotation=g,t.NullableTypeAnnotation=ut,Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.NumericLiteral}}),t.NumberTypeAnnotation=st,t.ObjectTypeAnnotation=se,t.ObjectTypeCallProperty=oe,t.ObjectTypeIndexer=W,t.ObjectTypeInternalSlot=ee,t.ObjectTypeProperty=fe,t.ObjectTypeSpreadProperty=Re,t.OpaqueType=Se,t.OptionalIndexedAccessType=de,t.QualifiedTypeIdentifier=Fe,Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.StringLiteral}}),t.StringTypeAnnotation=dt,t.SymbolTypeAnnotation=Ke,t.ThisTypeAnnotation=$e,t.TupleTypeAnnotation=je,t.TypeAlias=Le,t.TypeAnnotation=gt,t.TypeCastExpression=Mt,t.TypeParameter=xe,t.TypeParameterDeclaration=t.TypeParameterInstantiation=ht,t.TypeofTypeAnnotation=qe,t.UnionTypeAnnotation=_t,t.Variance=pt,t.VoidTypeAnnotation=xt,t._interfaceish=H,t._variance=ye;var e=Ut(),r=K1(),n=ca(),s=rp();const{isDeclareExportDeclaration:o,isStatement:a}=e;function u(){this.word("any")}function p(G){this.print(G.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function y(){this.word("boolean")}function h(G){this.word(G.value?"true":"false")}function g(){this.word("null")}function b(G,be){o(be)||(this.word("declare"),this.space()),this.word("class"),this.space(),H.call(this,G)}function S(G,be){o(be)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(G.id),this.print(G.id.typeAnnotation.typeAnnotation),G.predicate&&(this.space(),this.print(G.predicate)),this.semicolon()}function O(){this.tokenChar(37),this.word("checks")}function _(G){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(G.value),this.tokenChar(41)}function w(G){this.word("declare"),this.space(),Ie.call(this,G)}function C(G){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(G.id),this.space(),this.print(G.body)}function T(G){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(G.typeAnnotation)}function x(G){this.word("declare"),this.space(),Le.call(this,G)}function E(G,be){o(be)||(this.word("declare"),this.space()),Se.call(this,G)}function j(G,be){o(be)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(G.id),this.print(G.id.typeAnnotation),this.semicolon()}function R(G){this.word("declare"),this.space(),this.word("export"),this.space(),G.default&&(this.word("default"),this.space()),Y.call(this,G)}function I(G){this.word("declare"),this.space(),r.ExportAllDeclaration.call(this,G)}function D(G){const{id:be,body:et}=G;this.word("enum"),this.space(),this.print(be),this.print(et)}function Z(G,be,et){et&&(G.space(),G.word("of"),G.space(),G.word(be)),G.space()}function J(G,be){const{members:et}=be;G.token("{"),G.indent(),G.newline();for(const ge of et)G.print(ge),G.newline();be.hasUnknownMembers&&(G.token("..."),G.newline()),G.dedent(),G.token("}")}function N(G){const{explicitType:be}=G;Z(this,"boolean",be),J(this,G)}function $(G){const{explicitType:be}=G;Z(this,"number",be),J(this,G)}function ne(G){const{explicitType:be}=G;Z(this,"string",be),J(this,G)}function me(G){Z(this,"symbol",!0),J(this,G)}function Ce(G){const{id:be}=G;this.print(be),this.tokenChar(44)}function Ae(G,be){G.print(be.id),G.space(),G.token("="),G.space(),G.print(be.init),G.token(",")}function ce(G){Ae(this,G)}function ue(G){Ae(this,G)}function K(G){Ae(this,G)}function Y(G){if(G.declaration){const be=G.declaration;this.print(be),a(be)||this.semicolon()}else this.tokenChar(123),G.specifiers.length&&(this.space(),this.printList(G.specifiers),this.space()),this.tokenChar(125),G.source&&(this.space(),this.word("from"),this.space(),this.print(G.source)),this.semicolon()}function he(){this.tokenChar(42)}function ae(G,be){this.print(G.typeParameters),this.tokenChar(40),G.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(G.this.typeAnnotation),(G.params.length||G.rest)&&(this.tokenChar(44),this.space())),this.printList(G.params),G.rest&&(G.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(G.rest)),this.tokenChar(41);const et=be==null?void 0:be.type;et!=null&&(et==="ObjectTypeCallProperty"||et==="ObjectTypeInternalSlot"||et==="DeclareFunction"||et==="ObjectTypeProperty"&&be.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(G.returnType)}function U(G){this.print(G.name),G.optional&&this.tokenChar(63),G.name&&(this.tokenChar(58),this.space()),this.print(G.typeAnnotation)}function L(G){this.print(G.id),this.print(G.typeParameters,!0)}function H(G){var be;if(this.print(G.id),this.print(G.typeParameters),(be=G.extends)!=null&&be.length&&(this.space(),this.word("extends"),this.space(),this.printList(G.extends)),G.type==="DeclareClass"){var et,ge;(et=G.mixins)!=null&&et.length&&(this.space(),this.word("mixins"),this.space(),this.printList(G.mixins)),(ge=G.implements)!=null&&ge.length&&(this.space(),this.word("implements"),this.space(),this.printList(G.implements))}this.space(),this.print(G.body)}function ye(G){var be;const et=(be=G.variance)==null?void 0:be.kind;et!=null&&(et==="plus"?this.tokenChar(43):et==="minus"&&this.tokenChar(45))}function Ie(G){this.word("interface"),this.space(),H.call(this,G)}function Ee(G){this.space(),this.token("&",!1,G),this.space()}function De(G){var be;this.word("interface"),(be=G.extends)!=null&&be.length&&(this.space(),this.word("extends"),this.space(),this.printList(G.extends)),this.space(),this.print(G.body)}function Me(G){this.printJoin(G.types,void 0,void 0,Ee)}function Ve(){this.word("mixed")}function Ze(){this.word("empty")}function ut(G){this.tokenChar(63),this.print(G.typeAnnotation)}function st(){this.word("number")}function dt(){this.word("string")}function $e(){this.word("this")}function je(G){this.tokenChar(91),this.printList(G.types),this.tokenChar(93)}function qe(G){this.word("typeof"),this.space(),this.print(G.argument)}function Le(G){this.word("type"),this.space(),this.print(G.id),this.print(G.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(G.right),this.semicolon()}function gt(G,be){this.tokenChar(58),this.space(),be.type==="ArrowFunctionExpression"?this.tokenContext|=n.TokenContext.arrowFlowReturnType:G.optional&&this.tokenChar(63),this.print(G.typeAnnotation)}function ht(G){this.tokenChar(60),this.printList(G.params),this.tokenChar(62)}function xe(G){ye.call(this,G),this.word(G.name),G.bound&&this.print(G.bound),G.default&&(this.space(),this.tokenChar(61),this.space(),this.print(G.default))}function Se(G){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(G.id),this.print(G.typeParameters),G.supertype&&(this.tokenChar(58),this.space(),this.print(G.supertype)),G.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(G.impltype)),this.semicolon()}function se(G){G.exact?this.token("{|"):this.tokenChar(123);const be=[...G.properties,...G.callProperties||[],...G.indexers||[],...G.internalSlots||[]];be.length&&(this.newline(),this.space(),this.printJoin(be,!0,!0,()=>{(be.length!==1||G.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),G.inexact&&(this.indent(),this.token("..."),be.length&&this.newline(),this.dedent()),G.exact?this.token("|}"):this.tokenChar(125)}function ee(G){G.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(G.id),this.tokenChar(93),this.tokenChar(93),G.optional&&this.tokenChar(63),G.method||(this.tokenChar(58),this.space()),this.print(G.value)}function oe(G){G.static&&(this.word("static"),this.space()),this.print(G.value)}function W(G){G.static&&(this.word("static"),this.space()),ye.call(this,G),this.tokenChar(91),G.id&&(this.print(G.id),this.tokenChar(58),this.space()),this.print(G.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(G.value)}function fe(G){G.proto&&(this.word("proto"),this.space()),G.static&&(this.word("static"),this.space()),(G.kind==="get"||G.kind==="set")&&(this.word(G.kind),this.space()),ye.call(this,G),this.print(G.key),G.optional&&this.tokenChar(63),G.method||(this.tokenChar(58),this.space()),this.print(G.value)}function Re(G){this.token("..."),this.print(G.argument)}function Fe(G){this.print(G.qualification),this.tokenChar(46),this.print(G.id)}function Ke(){this.word("symbol")}function it(G){this.space(),this.token("|",!1,G),this.space()}function _t(G){this.printJoin(G.types,void 0,void 0,it)}function Mt(G){this.tokenChar(40),this.print(G.expression),this.print(G.typeAnnotation),this.tokenChar(41)}function pt(G){G.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function xt(){this.word("void")}function te(G){this.print(G.objectType,!0),this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}function de(G){this.print(G.objectType),G.optional&&this.token("?."),this.tokenChar(91),this.print(G.indexType),this.tokenChar(93)}}(ep)),ep}var J1;function Y1(){if(J1)return Un;J1=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ClassAccessorProperty=g,Un.ClassBody=p,Un.ClassExpression=Un.ClassDeclaration=u,Un.ClassMethod=S,Un.ClassPrivateMethod=O,Un.ClassPrivateProperty=b,Un.ClassProperty=h,Un.StaticBlock=w,Un._classMethodHead=_;var t=Ut(),e=Zf(),r=U1(),n=H1(),s=zc();const{isExportDefaultDeclaration:o,isExportNamedDeclaration:a}=t;function u(C,T){(!(o(T)||a(T))||!e._shouldPrintDecoratorsBeforeExport.call(this,T))&&this.printJoin(C.decorators),C.declare&&(this.word("declare"),this.space()),C.abstract&&(this.word("abstract"),this.space()),this.word("class"),C.id&&(this.space(),this.print(C.id)),this.print(C.typeParameters),C.superClass&&(this.space(),this.word("extends"),this.space(),this.print(C.superClass),this.print(C.superTypeParameters)),C.implements&&(this.space(),this.word("implements"),this.space(),this.printList(C.implements)),this.space(),this.print(C.body)}function p(C){if(this.tokenChar(123),C.body.length===0)this.tokenChar(125);else{const T=y(this,C);T==null||T(-1);const x=this.enterDelimited();this.printJoin(C.body,!0,!0,T,!0,!0),this._noLineTerminatorAfterNode=x,this.endsWith(10)||this.newline(),this.rightBrace(C)}}function y(C,T){if(!C.tokenMap||T.start==null||T.end==null)return null;const x=C.tokenMap.getIndexes(T);if(!x)return null;let E=1,j=0,R=0;const I=()=>{for(;R<T.body.length&&T.body[R].start==null;)R++};return I(),D=>{R<=D&&(R=D+1,I());const Z=R===T.body.length?T.end:T.body[R].start;let J;for(;E<x.length&&C.tokenMap.matchesOriginal(J=C._tokens[x[E]],";")&&J.start<Z;)C.tokenChar(59,j++),E++}}function h(C){if(this.printJoin(C.decorators),!C.static&&!this.format.preserveFormat){var T;const x=(T=C.key.loc)==null||(T=T.end)==null?void 0:T.line;x&&this.catchUp(x)}r._tsPrintClassMemberModifiers.call(this,C),C.computed?(this.tokenChar(91),this.print(C.key),this.tokenChar(93)):(n._variance.call(this,C),this.print(C.key)),C.optional&&this.tokenChar(63),C.definite&&this.tokenChar(33),this.print(C.typeAnnotation),C.value&&(this.space(),this.tokenChar(61),this.space(),this.print(C.value)),this.semicolon()}function g(C){var T;this.printJoin(C.decorators);const x=(T=C.key.loc)==null||(T=T.end)==null?void 0:T.line;x&&this.catchUp(x),r._tsPrintClassMemberModifiers.call(this,C),this.word("accessor",!0),this.space(),C.computed?(this.tokenChar(91),this.print(C.key),this.tokenChar(93)):(n._variance.call(this,C),this.print(C.key)),C.optional&&this.tokenChar(63),C.definite&&this.tokenChar(33),this.print(C.typeAnnotation),C.value&&(this.space(),this.tokenChar(61),this.space(),this.print(C.value)),this.semicolon()}function b(C){this.printJoin(C.decorators),r._tsPrintClassMemberModifiers.call(this,C),this.print(C.key),C.optional&&this.tokenChar(63),C.definite&&this.tokenChar(33),this.print(C.typeAnnotation),C.value&&(this.space(),this.tokenChar(61),this.space(),this.print(C.value)),this.semicolon()}function S(C){_.call(this,C),this.space(),this.print(C.body)}function O(C){_.call(this,C),this.space(),this.print(C.body)}function _(C){if(this.printJoin(C.decorators),!this.format.preserveFormat){var T;const x=(T=C.key.loc)==null||(T=T.end)==null?void 0:T.line;x&&this.catchUp(x)}r._tsPrintClassMemberModifiers.call(this,C),s._methodHead.call(this,C)}function w(C){this.word("static"),this.space(),this.tokenChar(123),C.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(C.body,!0),this.rightBrace(C))}return Un}var ts={},X1;function jx(){if(X1)return ts;X1=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.BlockStatement=r,ts.Directive=n,ts.DirectiveLiteral=a,ts.File=t,ts.InterpreterDirective=u,ts.Placeholder=p,ts.Program=e;function t(y){y.program&&this.print(y.program.interpreter),this.print(y.program)}function e(y){var h;this.printInnerComments(!1);const g=(h=y.directives)==null?void 0:h.length;if(g){var b;const S=y.body.length?2:1;this.printSequence(y.directives,void 0,void 0,S),(b=y.directives[g-1].trailingComments)!=null&&b.length||this.newline(S)}this.printSequence(y.body)}function r(y){var h;this.tokenChar(123);const g=this.enterDelimited(),b=(h=y.directives)==null?void 0:h.length;if(b){var S;const O=y.body.length?2:1;this.printSequence(y.directives,!0,!0,O),(S=y.directives[b-1].trailingComments)!=null&&S.length||this.newline(O)}this.printSequence(y.body,!0,!0),this._noLineTerminatorAfterNode=g,this.rightBrace(y)}function n(y){this.print(y.value),this.semicolon()}const s=/(?:^|[^\\])(?:\\\\)*'/,o=/(?:^|[^\\])(?:\\\\)*"/;function a(y){const h=this.getPossibleRaw(y);if(!this.format.minified&&h!==void 0){this.token(h);return}const{value:g}=y;if(!o.test(g))this.token(`"${g}"`);else if(!s.test(g))this.token(`'${g}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function u(y){this.token(`#!${y.value}`),this._newline()}function p(y){this.token("%%"),this.print(y.name),this.token("%%"),y.expectedNode==="Statement"&&this.semicolon()}return ts}var Gr={},Q1;function Mx(){if(Q1)return Gr;Q1=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.JSXAttribute=t,Gr.JSXClosingElement=g,Gr.JSXClosingFragment=_,Gr.JSXElement=p,Gr.JSXEmptyExpression=b,Gr.JSXExpressionContainer=o,Gr.JSXFragment=S,Gr.JSXIdentifier=e,Gr.JSXMemberExpression=n,Gr.JSXNamespacedName=r,Gr.JSXOpeningElement=h,Gr.JSXOpeningFragment=O,Gr.JSXSpreadAttribute=s,Gr.JSXSpreadChild=a,Gr.JSXText=u;function t(w){this.print(w.name),w.value&&(this.tokenChar(61),this.print(w.value))}function e(w){this.word(w.name)}function r(w){this.print(w.namespace),this.tokenChar(58),this.print(w.name)}function n(w){this.print(w.object),this.tokenChar(46),this.print(w.property)}function s(w){this.tokenChar(123),this.token("..."),this.print(w.argument),this.rightBrace(w)}function o(w){this.tokenChar(123),this.print(w.expression),this.rightBrace(w)}function a(w){this.tokenChar(123),this.token("..."),this.print(w.expression),this.rightBrace(w)}function u(w){const C=this.getPossibleRaw(w);C!==void 0?this.token(C,!0):this.token(w.value,!0)}function p(w){const C=w.openingElement;if(this.print(C),!C.selfClosing){this.indent();for(const T of w.children)this.print(T);this.dedent(),this.print(w.closingElement)}}function y(){this.space()}function h(w){this.tokenChar(60),this.print(w.name),w.typeArguments&&this.print(w.typeArguments),this.print(w.typeParameters),w.attributes.length>0&&(this.space(),this.printJoin(w.attributes,void 0,void 0,y)),w.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function g(w){this.tokenChar(60),this.tokenChar(47),this.print(w.name),this.tokenChar(62)}function b(){this.printInnerComments()}function S(w){this.print(w.openingFragment),this.indent();for(const C of w.children)this.print(C);this.dedent(),this.print(w.closingFragment)}function O(){this.tokenChar(60),this.tokenChar(62)}function _(){this.token("</"),this.tokenChar(62)}return Gr}var Z1;function Lx(){return Z1||(Z1=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=M1();Object.keys(e).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===e[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return e[b]}})});var r=Zf();Object.keys(r).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===r[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return r[b]}})});var n=Bx();Object.keys(n).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===n[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return n[b]}})});var s=Y1();Object.keys(s).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===s[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return s[b]}})});var o=zc();Object.keys(o).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===o[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return o[b]}})});var a=K1();Object.keys(a).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===a[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return a[b]}})});var u=rp();Object.keys(u).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===u[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return u[b]}})});var p=H1();Object.keys(p).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===p[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return p[b]}})});var y=jx();Object.keys(y).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===y[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return y[b]}})});var h=Mx();Object.keys(h).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===h[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return h[b]}})});var g=U1();Object.keys(g).forEach(function(b){b==="default"||b==="__esModule"||b in t&&t[b]===g[b]||Object.defineProperty(t,b,{enumerable:!0,get:function(){return g[b]}})})}(Qf)),Qf}var Hs={},eg;function Fx(){if(eg)return Hs;eg=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.DecimalLiteral=r,Hs.Noop=t,Hs.RecordExpression=n,Hs.TSExpressionWithTypeArguments=e,Hs.TupleExpression=s;function t(){}function e(o){this.print(o.expression),this.print(o.typeParameters)}function r(o){const a=this.getPossibleRaw(o);if(!this.format.minified&&a!==void 0){this.word(a);return}this.word(o.value+"m")}function n(o){const a=o.properties;let u,p;if(this.format.recordAndTupleSyntaxType==="bar")u="{|",p="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);u="#{",p="}"}this.token(u),a.length&&(this.space(),this.printList(a,this.shouldPrintTrailingComma(p),!0,!0),this.space()),this.token(p)}function s(o){const a=o.elements,u=a.length;let p,y;if(this.format.recordAndTupleSyntaxType==="bar")p="[|",y="|]";else if(this.format.recordAndTupleSyntaxType==="hash")p="#[",y="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(p);for(let h=0;h<a.length;h++){const g=a[h];g&&(h>0&&this.space(),this.print(g),(h<u-1||this.shouldPrintTrailingComma(y))&&this.token(",",!1,h))}this.token(y)}return Hs}var tg;function rg(){if(tg)return Ko;tg=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.generatorInfosMap=void 0;var t=Lx(),e=Fx();const r=Ko.generatorInfosMap=new Map;let n=0;for(const s of Object.keys(t).sort())s.startsWith("_")||r.set(s,[t[s],n++,void 0]);for(const s of Object.keys(e))r.set(s,[e[s],n++,void 0]);return Ko}var ng;function ca(){if(ng)return oa;ng=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.TokenContext=void 0,oa.isLastChild=u,oa.parentNeedsParens=o;var t=Dx(),e=Ut(),r=rg();const{VISITOR_KEYS:n}=e;oa.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(const p of Object.keys(t)){const y=t[p];r.generatorInfosMap.has(p)&&(r.generatorInfosMap.get(p)[2]=y)}function s(p){let y=p;for(;;)switch(y.type){case"CallExpression":case"ImportExpression":case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":y=y.object;break;case"TaggedTemplateExpression":y=y.tag;break;case"TSNonNullExpression":y=y.expression;break;default:return!1}}function o(p,y,h){switch(h){case 112:if(y.callee===p)return s(p);break;case 42:return!a(p)&&!(p.type==="CallExpression"&&a(p.callee))&&p.type!=="ParenthesizedExpression"}return!1}function a(p){switch(p.type){case"Identifier":return!0;case"MemberExpression":return!p.computed&&p.property.type==="Identifier"&&a(p.object);default:return!1}}function u(p,y){const h=n[p.type];for(let g=h.length-1;g>=0;g--){const b=p[h[g]];if(b===y)return!0;if(Array.isArray(b)){let S=b.length-1;for(;S>=0&&b[S]===null;)S--;return S>=0&&b[S]===y}else if(b)return!1}return!1}return oa}var Wo={},ig;function qx(){if(ig)return Wo;ig=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.TokenMap=void 0;var t=Ut();const{traverseFast:e,VISITOR_KEYS:r}=t;class n{constructor(a,u,p){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=u,this._source=p,e(a,y=>{const h=this._getTokensIndexesOfNode(y);h.length>0&&this._nodesToTokenIndexes.set(y,h)}),this._tokensCache.clear()}has(a){return this._nodesToTokenIndexes.has(a)}getIndexes(a){return this._nodesToTokenIndexes.get(a)}find(a,u){const p=this._nodesToTokenIndexes.get(a);if(p)for(let y=0;y<p.length;y++){const h=p[y],g=this._tokens[h];if(u(g,h))return g}return null}findLastIndex(a,u){const p=this._nodesToTokenIndexes.get(a);if(p)for(let y=p.length-1;y>=0;y--){const h=p[y],g=this._tokens[h];if(u(g,h))return h}return-1}findMatching(a,u,p=0){const y=this._nodesToTokenIndexes.get(a);if(y){typeof u=="number"&&(u=String.fromCharCode(u));let h=0;const g=p;if(g>1){const b=this._nodesOccurrencesCountCache.get(a);(b==null?void 0:b.test)===u&&b.count<g&&(h=b.i+1,p-=b.count+1)}for(;h<y.length;h++){const b=this._tokens[y[h]];if(this.matchesOriginal(b,u)){if(p===0)return g>0&&this._nodesOccurrencesCountCache.set(a,{test:u,count:g,i:h}),b;p--}}}return null}matchesOriginal(a,u){return a.end-a.start!==u.length?!1:a.value!=null?a.value===u:this._source.startsWith(u,a.start)}startMatches(a,u){const p=this._nodesToTokenIndexes.get(a);if(!p)return!1;const y=this._tokens[p[0]];return y.start!==a.start?!1:this.matchesOriginal(y,u)}endMatches(a,u){const p=this._nodesToTokenIndexes.get(a);if(!p)return!1;const y=this._tokens[p[p.length-1]];return y.end!==a.end?!1:this.matchesOriginal(y,u)}_getTokensIndexesOfNode(a){var u;if(a.start==null||a.end==null)return[];const{first:p,last:y}=this._findTokensOfNode(a,0,this._tokens.length-1);let h=p;const g=s(a);(a.type==="ExportNamedDeclaration"||a.type==="ExportDefaultDeclaration")&&((u=a.declaration)==null?void 0:u.type)==="ClassDeclaration"&&g.next();const b=[];for(const S of g){if(S==null||S.start==null||S.end==null)continue;const O=this._findTokensOfNode(S,h,y),_=O.first;for(let w=h;w<_;w++)b.push(w);h=O.last+1}for(let S=h;S<=y;S++)b.push(S);return b}_findTokensOfNode(a,u,p){const y=this._tokensCache.get(a);if(y)return y;const h=this._findFirstTokenOfNode(a.start,u,p),g=this._findLastTokenOfNode(a.end,h,p);return this._tokensCache.set(a,{first:h,last:g}),{first:h,last:g}}_findFirstTokenOfNode(a,u,p){for(;u<=p;){const y=p+u>>1;if(a<this._tokens[y].start)p=y-1;else if(a>this._tokens[y].start)u=y+1;else return y}return u}_findLastTokenOfNode(a,u,p){for(;u<=p;){const y=p+u>>1;if(a<this._tokens[y].end)p=y-1;else if(a>this._tokens[y].end)u=y+1;else return y}return p}}Wo.TokenMap=n;function*s(o){if(o.type==="TemplateLiteral"){yield o.quasis[0];for(let u=1;u<o.quasis.length;u++)yield o.expressions[u-1],yield o.quasis[u];return}const a=r[o.type];for(const u of a){const p=o[u];p&&(Array.isArray(p)?yield*p:yield p)}}return Wo}var sg;function $x(){if(sg)return Uo;sg=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.default=void 0;var t=kx(),e=ca(),r=rg(),n=Ut(),s=qx(),o=rp();const{isExpression:a,isFunction:u,isStatement:p,isClassBody:y,isTSInterfaceBody:h,isTSEnumMember:g}=n,b=/e/i,S=/\.0+$/,O=/[\n\r\u2028\u2029]/,_=/[\n\r\u2028\u2029]|\*\//;function w(x){return x.type==="CommentLine"||O.test(x.value)}class C{constructor(E,j,R=null,I=null){this.tokenContext=e.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=E,this._tokens=R,this._originalCode=I,this._indentRepeat=E.indent.style.length,this._inputMap=(j==null?void 0:j._inputMap)||null,this._buf=new t.default(j,E.indent.style[0]);const{preserveFormat:D,compact:Z,concise:J,retainLines:N,retainFunctionParens:$}=E;D&&(this._flags|=1),Z&&(this._flags|=2),J&&(this._flags|=4),N&&(this._flags|=8),$&&(this._flags|=16),(E.auxiliaryCommentBefore||E.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){const E=this._noLineTerminatorAfterNode;return E!==null&&(this._noLineTerminatorAfterNode=null),E}generate(E){return this.format.preserveFormat&&(this.tokenMap=new s.TokenMap(E,this._tokens,this._originalCode),this._boundGetRawIdentifier=o._getRawIdentifier.bind(this)),this.print(E),this._maybeAddAuxComment(),this._buf.get()}indent(E=this._flags){E&7||(this._indent+=this._indentRepeat)}dedent(E=this._flags){E&7||(this._indent-=this._indentRepeat)}semicolon(E=!1){const j=this._flags;if(j&32&&this._maybeAddAuxComment(),j&1){const R=this._currentNode;if(R.start!=null&&R.end!=null){if(!this.tokenMap.endMatches(R,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const I=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[I[I.length-1]].loc.start)}}E?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(E){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",E.loc,-1),this.tokenChar(125)}rightParens(E){this.sourceWithOffset("end",E.loc,-1),this.tokenChar(41)}space(E=!1){if(!(this._flags&3))if(E)this._space();else{const j=this.getLastChar(!0);j!==0&&j!==32&&j!==10&&this._space()}}word(E,j=!1){this.tokenContext&=e.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(E);const R=this._flags;R&32&&this._maybeAddAuxComment(),R&1&&this._catchUpToCurrentToken(E);const I=this.getLastChar();(I===-2||I===-3||I===47&&E.charCodeAt(0)===47)&&this._space(),this._append(E,!1),this.setLastChar(-3),this._noLineTerminator=j}number(E,j){function R(I){if(I.length>2&&I.charCodeAt(0)===48){const D=I.charCodeAt(1);return D===98||D===111||D===120}return!1}this.word(E),Number.isInteger(j)&&!R(E)&&!b.test(E)&&!S.test(E)&&E.charCodeAt(E.length-1)!==46&&this.setLastChar(-2)}token(E,j=!1,R=0,I=!1){this.tokenContext&=e.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(E,R);const D=this._flags;if(D&32&&this._maybeAddAuxComment(),D&1&&this._catchUpToCurrentToken(E,R),I){const Z=E.charCodeAt(0);((Z===45&&E==="--"||Z===61)&&this.getLastChar()===33||Z===43&&this.getLastChar()===43||Z===45&&this.getLastChar()===45||Z===46&&this.getLastChar()===-2)&&this._space()}this._append(E,j),this._noLineTerminator=!1}tokenChar(E,j=0){this.tokenContext&=e.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(E,j);const R=this._flags;R&32&&this._maybeAddAuxComment(),R&1&&this._catchUpToCurrentToken(E,j),(E===43&&this.getLastChar()===43||E===45&&this.getLastChar()===45||E===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(E),this._noLineTerminator=!1}newline(E=1,j=this._flags){if(!(E<=0)&&!(j&10)){if(j&4){this.space();return}E>2&&(E=2),E-=this._buf.getNewlineCount();for(let R=0;R<E;R++)this._newline()}}endsWith(E){return this.getLastChar(!0)===E}getLastChar(E){return this._buf.getLastChar(E)}setLastChar(E){this._buf._last=E}exactSource(E,j){if(!E){j();return}this._catchUp("start",E),this._buf.exactSource(E,j)}source(E,j){j&&(this._catchUp(E,j),this._buf.source(E,j))}sourceWithOffset(E,j,R){!j||this.format.preserveFormat||(this._catchUp(E,j),this._buf.sourceWithOffset(E,j,R))}sourceIdentifierName(E,j){if(!this._buf._canMarkIdName)return;const R=this._buf._sourcePosition;R.identifierNamePos=j,R.identifierName=E}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(E,j=0){const R=this.tokenMap.findMatching(this._currentNode,E,j);R&&this._catchUpTo(R.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(E,j){this._maybeIndent(),this._buf.append(E,j)}_appendChar(E,j){j||this._maybeIndent(),this._buf.appendChar(E)}_queue(E){this._buf.queue(E),this.setLastChar(-1)}_maybeIndent(){const E=this._shouldIndent();E>0&&this._buf._appendChar(-1,E,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(E){if(!this.format.retainLines)return;const j=E-this._buf.getCurrentLine();for(let R=0;R<j;R++)this._newline()}_catchUp(E,j){const R=this._flags;if(!(R&1)){R&8&&j!=null&&j[E]&&this.catchUp(j[E].line);return}const I=j==null?void 0:j[E];I!=null&&this._catchUpTo(I)}_catchUpTo({line:E,column:j,index:R}){const I=E-this._buf.getCurrentLine();if(I>0&&this._noLineTerminator)return;for(let Z=0;Z<I;Z++)this._newline();const D=I>0?j:j-this._buf.getCurrentColumn();if(D>0){const Z=this._originalCode?this._originalCode.slice(R-D,R).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(D);this._buf.append(Z,!1,!0),this._buf.setSourcePosition(E,j),this.setLastChar(32)}}printTerminatorless(E){this._noLineTerminator=!0,this.print(E)}print(E,j=!1,R=!1,I){var D,Z;if(!E)return;this._innerCommentsState=0;const{type:J,loc:N,extra:$}=E,ne=this._flags;let me=!1;E._compact&&(this._flags|=4,me=!0);const Ce=r.generatorInfosMap.get(J);if(Ce===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(J)} with constructor ${JSON.stringify(E.constructor.name)}`);const[Ae,ce,ue]=Ce,K=this._currentNode,Y=this._currentTypeId;this._currentNode=E,this._currentTypeId=ce,ne&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let he;ne&32&&(he=this._insideAux,this._insideAux=N==null,this._maybeAddAuxComment(this._insideAux&&!he));let ae=0;R&&(ae=this.tokenContext,ae&e.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:ae=0);const U=$!=null&&$.parenthesized;let L=U&&ne&1||U&&ne&16&&ce===71||K&&((0,e.parentNeedsParens)(E,K,Y)||ue!=null&&ue(E,K,Y,this.tokenContext,ne&1?this._boundGetRawIdentifier:void 0));if(!L&&U&&(D=E.leadingComments)!=null&&D.length&&E.leadingComments[0].type==="CommentBlock")switch(Y){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(K.callee!==E)break;default:L=!0}let H=!1;!L&&this._noLineTerminator&&((Z=E.leadingComments)!=null&&Z.some(w)||ne&8&&N&&N.start.line>this._buf.getCurrentLine())&&(L=!0,H=!0);let ye;if(!L&&(j||(j=!!K&&this._noLineTerminatorAfterNode===K&&(0,e.isLastChild)(K,E)),j)){var Ie;(Ie=E.trailingComments)!=null&&Ie.some(w)?a(E)&&(L=!0):(ye=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=E)}L&&(this.tokenChar(40),H&&this.indent(),this._innerCommentsState=0,R||(ae=this.tokenContext),ae&e.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),ye=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(E,K),this.exactSource(ce===139||ce===66?null:N,Ae.bind(this,E,K)),L?(this._printTrailingComments(E,K),H&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=j):j&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(E,K)):this._printTrailingComments(E,K,I),ae&&(this.tokenContext=ae),this._currentNode=K,this._currentTypeId=Y,me&&(this._flags=ne),ne&32&&(this._insideAux=he),ye!=null&&(this._noLineTerminatorAfterNode=ye),this._innerCommentsState=0}_maybeAddAuxComment(E){E&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const E=this.format.auxiliaryCommentBefore;E&&this._printComment({type:"CommentBlock",value:E},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const E=this.format.auxiliaryCommentAfter;E&&this._printComment({type:"CommentBlock",value:E},0)}getPossibleRaw(E){const j=E.extra;if((j==null?void 0:j.raw)!=null&&j.rawValue!=null&&E.value===j.rawValue)return j.raw}printJoin(E,j,R,I,D,Z,J){if(!(E!=null&&E.length))return;const N=this._flags;if(R==null&&N&8){var $;const Ce=($=E[0].loc)==null?void 0:$.start.line;Ce!=null&&Ce!==this._buf.getCurrentLine()&&(R=!0)}R&&this.indent(N);const ne=E.length;for(let Ce=0;Ce<ne;Ce++){const Ae=E[Ce];if(Ae&&(j&&Ce===0&&this._buf.hasContent()&&this.newline(1,N),this.print(Ae,!1,Z,J||0),I!=null&&(Ce<ne-1?I.call(this,Ce,!1):D&&I.call(this,Ce,!0)),j))if(Ce+1===ne)this.newline(1,N);else{const ce=this._lastCommentLine;if(ce>0){var me;const ue=(((me=E[Ce+1].loc)==null?void 0:me.start.line)||0)-ce;if(ue>=0){this.newline(ue||1,N);continue}}this.newline(1,N)}}R&&this.dedent(N)}printAndIndentOnComments(E){const j=E.leadingComments&&E.leadingComments.length>0;j&&this.indent(),this.print(E),j&&this.dedent()}printBlock(E){E.type!=="EmptyStatement"&&this.space(),this.print(E)}_printTrailingComments(E,j,R){const{innerComments:I,trailingComments:D}=E;I!=null&&I.length&&this._printComments(2,I,E,j,R),D!=null&&D.length?this._printComments(2,D,E,j,R):this._lastCommentLine=0}_printLeadingComments(E,j){const R=E.leadingComments;R!=null&&R.length&&this._printComments(0,R,E,j)}_maybePrintInnerComments(E,j){var R;const I=this._innerCommentsState;switch(I&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((I&4)>0,(R=this.tokenMap)==null?void 0:R.findMatching(this._currentNode,E,j))}}printInnerComments(E=!0,j){const R=this._currentNode,I=R.innerComments;if(!(I!=null&&I.length)){this._innerCommentsState=2;return}const D=this.endsWith(32);switch(E&&this.indent(),this._printComments(1,I,R,void 0,void 0,j)){case 2:this._innerCommentsState=2;case 1:D&&this.space()}E&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(E,j,R,I){this.printJoin(E,!0,j??!1,void 0,void 0,R,I)}printList(E,j,R,I,D,Z){this.printJoin(E,R,I,D??T,j,Z)}shouldPrintTrailingComma(E){if(!this.tokenMap)return null;const j=this.tokenMap.findLastIndex(this._currentNode,R=>this.tokenMap.matchesOriginal(R,typeof E=="number"?String.fromCharCode(E):E));return j<=0?null:this.tokenMap.matchesOriginal(this._tokens[j-1],",")}_shouldPrintComment(E,j){if(E.ignore||this._printedComments.has(E))return 0;if(this._noLineTerminator&&_.test(E.value))return 2;if(j&&this.tokenMap){const R=this.tokenMap.find(this._currentNode,I=>I.value===E.value);if(R&&R.start>j.start)return 2}return this._printedComments.add(E),this.format.shouldPrintComment(E.value)?1:0}_printComment(E,j){const R=this._noLineTerminator,I=E.type==="CommentBlock",D=I&&j!==1&&!R;switch(D&&this._buf.hasContent()&&j!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let Z;if(I){if(Z=`/*${E.value}*/`,this.format.indent.adjustMultilineComment){var J;const N=(J=E.loc)==null?void 0:J.start.column;if(N){const $=new RegExp("\\n\\s{1,"+N+"}","g");Z=Z.replace($,`
@@ -62,7 +62,7 @@ ${" ".repeat($)}`)}}}else R?Z=`/*${E.value}*/`:Z=`//${E.value}`;this.source("sta
62
62
 
63
63
  return ${ue(fe)};
64
64
  })(${N(this.node)})
65
- `;return this.replaceWith(Mt)[0].get("arguments.0")}function se(ee){const oe=ee.params.findIndex(W=>Ce(W)||Ae(W));return oe===-1?ee.params.length:oe}return rs}var op={},Tg;function Yx(){return Tg||(Tg=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=Z,t._resolve=me,t.canHaveVariableDeclarationOrExpression=O,t.canSwapBetweenExpressionAndStatement=_,t.getSource=x,t.isCompletionRecord=w,t.isConstantExpression=Ce,t.isInStrictMode=Ae,t.isNodeType=S,t.isStatementOrBlock=C,t.isStatic=b,t.matchesPattern=g,t.referencesImport=T,t.resolve=ne,t.willIMaybeExecuteBefore=E;var e=Ut();const{STATEMENT_OR_BLOCK_KEYS:r,VISITOR_KEYS:n,isBlockStatement:s,isExpression:o,isIdentifier:a,isLiteral:u,isStringLiteral:p,isType:y,matchesPattern:h}=e;function g(ce,ue){return h(this.node,ce,ue)}t.has=function(ue){var K;const Y=(K=this.node)==null?void 0:K[ue];return Y&&Array.isArray(Y)?!!Y.length:!!Y};function b(){return this.scope.isStatic(this.node)}t.is=t.has,t.isnt=function(ue){return!this.has(ue)},t.equals=function(ue,K){return this.node[ue]===K};function S(ce){return y(this.type,ce)}function O(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function _(ce){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?s(ce):this.isBlockStatement()?o(ce):!1}function w(ce){let ue=this,K=!0;do{const{type:Y,container:he}=ue;if(!K&&(ue.isFunction()||Y==="StaticBlock"))return!!ce;if(K=!1,Array.isArray(he)&&ue.key!==he.length-1)return!1}while((ue=ue.parentPath)&&!ue.isProgram()&&!ue.isDoExpression());return!0}function C(){return this.parentPath.isLabeledStatement()||s(this.container)?!1:r.includes(this.key)}function T(ce,ue){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===ue||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?p(this.node.property,{value:ue}):this.node.property.name===ue)){const ae=this.get("object");return ae.isReferencedIdentifier()&&ae.referencesImport(ce,"*")}return!1}const K=this.scope.getBinding(this.node.name);if((K==null?void 0:K.kind)!=="module")return!1;const Y=K.path,he=Y.parentPath;if(!he.isImportDeclaration())return!1;if(he.node.source.value===ce){if(!ue)return!0}else return!1;return!!(Y.isImportDefaultSpecifier()&&ue==="default"||Y.isImportNamespaceSpecifier()&&ue==="*"||Y.isImportSpecifier()&&a(Y.node.imported,{name:ue}))}function x(){const ce=this.node;if(ce.end){const ue=this.hub.getCode();if(ue)return ue.slice(ce.start,ce.end)}return""}function E(ce){return this._guessExecutionStatusRelativeTo(ce)!=="after"}function j(ce){return ce.isProgram()?ce:(ce.parentPath.scope.getFunctionParent()||ce.parentPath.scope.getProgramParent()).path}function R(ce,ue){switch(ce){case"LogicalExpression":return ue==="right";case"ConditionalExpression":case"IfStatement":return ue==="consequent"||ue==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return ue==="body";case"ForStatement":return ue==="body"||ue==="update";case"SwitchStatement":return ue==="cases";case"TryStatement":return ue==="handler";case"AssignmentPattern":return ue==="right";case"OptionalMemberExpression":return ue==="property";case"OptionalCallExpression":return ue==="arguments";default:return!1}}function I(ce,ue){for(let K=0;K<ue;K++){const Y=ce[K];if(R(Y.parent.type,Y.parentKey))return!0}return!1}const D=Symbol();function Z(ce){return J(this,ce,new Map)}function J(ce,ue,K){const Y={this:j(ce),target:j(ue)};if(Y.target.node!==Y.this.node)return $(ce,Y.target,K);const he={target:ue.getAncestry(),this:ce.getAncestry()};if(he.target.includes(ce))return"after";if(he.this.includes(ue))return"before";let ae;const U={target:0,this:0};for(;!ae&&U.this<he.this.length;){const Ie=he.this[U.this];U.target=he.target.indexOf(Ie),U.target>=0?ae=Ie:U.this++}if(!ae)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(I(he.this,U.this-1)||I(he.target,U.target-1))return"unknown";const L={this:he.this[U.this-1],target:he.target[U.target-1]};if(L.target.listKey&&L.this.listKey&&L.target.container===L.this.container)return L.target.key>L.this.key?"before":"after";const H=n[ae.type],ye={this:H.indexOf(L.this.parentKey),target:H.indexOf(L.target.parentKey)};return ye.target>ye.this?"before":"after"}function N(ce,ue,K){if(ue.isFunctionDeclaration()){if(ue.parentPath.isExportDeclaration())return"unknown"}else return J(ce,ue,K)==="before"?"before":"unknown";const Y=ue.scope.getBinding(ue.node.id.name);if(!Y.references)return"before";const he=Y.referencePaths;let ae;for(const U of he){if(!!U.find(ye=>ye.node===ue.node))continue;if(U.key!=="callee"||!U.parentPath.isCallExpression())return"unknown";const H=J(ce,U,K);if(ae&&ae!==H)return"unknown";ae=H}return ae}function $(ce,ue,K){let Y=K.get(ce.node),he;if(!Y)K.set(ce.node,Y=new Map);else if(he=Y.get(ue.node))return he===D?"unknown":he;Y.set(ue.node,D);const ae=N(ce,ue,K);return Y.set(ue.node,ae),ae}function ne(ce,ue){return me.call(this,ce,ue)||this}function me(ce,ue){var K;if(!((K=ue)!=null&&K.includes(this)))if(ue=ue||[],ue.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(ce,ue)}else if(this.isReferencedIdentifier()){const Y=this.scope.getBinding(this.node.name);if(!Y||!Y.constant||Y.kind==="module")return;if(Y.path!==this){const he=Y.path.resolve(ce,ue);return this.find(ae=>ae.node===he.node)?void 0:he}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(ce,ue);if(ce&&this.isMemberExpression()){const Y=this.toComputedKey();if(!u(Y))return;const he=Y.value,ae=this.get("object").resolve(ce,ue);if(ae.isObjectExpression()){const U=ae.get("properties");for(const L of U){if(!L.isProperty())continue;const H=L.get("key");let ye=L.isnt("computed")&&H.isIdentifier({name:he});if(ye=ye||H.isLiteral({value:he}),ye)return L.get("value").resolve(ce,ue)}}else if(ae.isArrayExpression()&&!isNaN(+he)){const L=ae.get("elements")[he];if(L)return L.resolve(ce,ue)}}}}function Ce(){if(this.isIdentifier()){const ce=this.scope.getBinding(this.node.name);return ce?ce.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(ce=>ce.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:ce}=this.node;return ce!=="in"&&ce!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function Ae(){return!!(this.isProgram()?this:this.parentPath).find(K=>{if(K.isProgram({sourceType:"module"})||K.isClass())return!0;if(K.isArrowFunctionExpression()&&!K.get("body").isBlockStatement())return!1;let Y;if(K.isFunction())Y=K.node.body;else if(K.isProgram())Y=K.node;else return!1;for(const he of Y.directives)if(he.value.value==="use strict")return!0;return!1})}}(op)),op}var zr={},Eg;function Xx(){if(Eg)return zr;Eg=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr._getKey=Z,zr._getPattern=J,zr.get=D,zr.getAllNextSiblings=R,zr.getAllPrevSiblings=I,zr.getAssignmentIdentifiers=N,zr.getBindingIdentifierPaths=me,zr.getBindingIdentifiers=$,zr.getCompletionRecords=T,zr.getNextSibling=j,zr.getOpposite=g,zr.getOuterBindingIdentifierPaths=Ce,zr.getOuterBindingIdentifiers=ne,zr.getPrevSibling=E,zr.getSibling=x;var t=Js(),e=Ut();const{getAssignmentIdentifiers:r,getBindingIdentifiers:n,getOuterBindingIdentifiers:s,numericLiteral:o,unaryExpression:a}=e,u=0,p=1;function y(Ae){return{type:u,path:Ae}}function h(Ae){return{type:p,path:Ae}}function g(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function b(Ae,ce,ue){return Ae&&ce.push(...C(Ae,ue)),ce}function S(Ae,ce,ue){let K=[];for(let Y=0;Y<Ae.length;Y++){const he=Ae[Y],ae=C(he,ue),U=[],L=[];for(const H of ae)H.type===u&&U.push(H),H.type===p&&L.push(H);U.length&&(K=U),ce.push(...L)}return ce.push(...K),ce}function O(Ae){Ae.forEach(ce=>{ce.type=p})}function _(Ae,ce){Ae.forEach(ue=>{ue.path.isBreakStatement({label:null})&&(ce?ue.path.replaceWith(a("void",o(0))):ue.path.remove())})}function w(Ae,ce){const ue=[];if(ce.canHaveBreak){let K=[];for(let Y=0;Y<Ae.length;Y++){const he=Ae[Y],ae=Object.assign({},ce,{inCaseClause:!1});he.isBlockStatement()&&(ce.inCaseClause||ce.shouldPopulateBreak)?ae.shouldPopulateBreak=!0:ae.shouldPopulateBreak=!1;const U=C(he,ae);if(U.length>0&&U.every(L=>L.type===p)){K.length>0&&U.every(L=>L.path.isBreakStatement({label:null}))?(O(K),ue.push(...K),K.some(L=>L.path.isDeclaration())&&(ue.push(...U),ce.shouldPreserveBreak||_(U,!0)),ce.shouldPreserveBreak||_(U,!1)):(ue.push(...U),!ce.shouldPopulateBreak&&!ce.shouldPreserveBreak&&_(U,!0));break}if(Y===Ae.length-1)ue.push(...U);else{K=[];for(let L=0;L<U.length;L++){const H=U[L];H.type===p&&ue.push(H),H.type===u&&K.push(H)}}}}else if(Ae.length)for(let K=Ae.length-1;K>=0;K--){const Y=C(Ae[K],ce);if(Y.length>1||Y.length===1&&!Y[0].path.isVariableDeclaration()&&!Y[0].path.isEmptyStatement()){ue.push(...Y);break}}return ue}function C(Ae,ce){let ue=[];if(Ae.isIfStatement())ue=b(Ae.get("consequent"),ue,ce),ue=b(Ae.get("alternate"),ue,ce);else{if(Ae.isDoExpression()||Ae.isFor()||Ae.isWhile()||Ae.isLabeledStatement())return b(Ae.get("body"),ue,ce);if(Ae.isProgram()||Ae.isBlockStatement())return w(Ae.get("body"),ce);if(Ae.isFunction())return C(Ae.get("body"),ce);if(Ae.isTryStatement())ue=b(Ae.get("block"),ue,ce),ue=b(Ae.get("handler"),ue,ce);else{if(Ae.isCatchClause())return b(Ae.get("body"),ue,ce);if(Ae.isSwitchStatement())return S(Ae.get("cases"),ue,ce);if(Ae.isSwitchCase())return w(Ae.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:ce.shouldPreserveBreak});Ae.isBreakStatement()?ue.push(h(Ae)):ue.push(y(Ae))}}return ue}function T(Ae=!1){return C(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:Ae}).map(ue=>ue.path)}function x(Ae){return t.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:Ae}).setContext(this.context)}function E(){return this.getSibling(this.key-1)}function j(){return this.getSibling(this.key+1)}function R(){let Ae=this.key,ce=this.getSibling(++Ae);const ue=[];for(;ce.node;)ue.push(ce),ce=this.getSibling(++Ae);return ue}function I(){let Ae=this.key,ce=this.getSibling(--Ae);const ue=[];for(;ce.node;)ue.push(ce),ce=this.getSibling(--Ae);return ue}function D(Ae,ce=!0){ce===!0&&(ce=this.context);const ue=Ae.split(".");return ue.length===1?Z.call(this,Ae,ce):J.call(this,ue,ce)}function Z(Ae,ce){const ue=this.node,K=ue[Ae];return Array.isArray(K)?K.map((Y,he)=>t.default.get({listKey:Ae,parentPath:this,parent:ue,container:K,key:he}).setContext(ce)):t.default.get({parentPath:this,parent:ue,container:ue,key:Ae}).setContext(ce)}function J(Ae,ce){let ue=this;for(const K of Ae)K==="."?ue=ue.parentPath:Array.isArray(ue)?ue=ue[K]:ue=ue.get(K,ce);return ue}function N(){return r(this.node)}function $(Ae){return n(this.node,Ae)}function ne(Ae){return s(this.node,Ae)}function me(Ae=!1,ce=!1){const K=[this],Y=Object.create(null);for(;K.length;){const he=K.shift();if(!he||!he.node)continue;const ae=n.keys[he.node.type];if(he.isIdentifier()){Ae?(Y[he.node.name]=Y[he.node.name]||[]).push(he):Y[he.node.name]=he;continue}if(he.isExportDeclaration()){const U=he.get("declaration");U.isDeclaration()&&K.push(U);continue}if(ce){if(he.isFunctionDeclaration()){K.push(he.get("id"));continue}if(he.isFunctionExpression())continue}if(ae)for(let U=0;U<ae.length;U++){const L=ae[U],H=he.get(L);Array.isArray(H)?K.push(...H):H.node&&K.push(H)}}return Y}function Ce(Ae=!1){return this.getBindingIdentifierPaths(Ae,!0)}return zr}var Fa={},xg;function Qx(){if(xg)return Fa;xg=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.addComment=o,Fa.addComments=a,Fa.shareCommentsWithSiblings=n;var t=Ut();const{addComment:e,addComments:r}=t;function n(){if(typeof this.key=="string")return;const u=this.node;if(!u)return;const p=u.trailingComments,y=u.leadingComments;if(!p&&!y)return;const h=this.getSibling(this.key-1),g=this.getSibling(this.key+1),b=!!h.node,S=!!g.node;b&&(y&&h.addComments("trailing",s(y,h.node.trailingComments)),p&&!S&&h.addComments("trailing",p)),S&&(p&&g.addComments("leading",s(p,g.node.leadingComments)),y&&!b&&g.addComments("leading",y))}function s(u,p){if(!(p!=null&&p.length))return u;const y=new Set(p);return u.filter(h=>!y.has(h))}function o(u,p,y){e(this.node,u,p,y)}function a(u,p){r(this.node,u,p)}return Fa}var Pg;function Js(){if(Pg)return Ni;Pg=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=Ni.SHOULD_STOP=Ni.SHOULD_SKIP=Ni.REMOVED=void 0;var t=h1(),e=Gf(),r=qr(),n=w1(),s=Ut(),o=s,a=La(),u=np(),p=Ux(),y=Wx(),h=bg(),g=Hx(),b=Jx(),S=Yx(),O=ki(),_=O,w=sp(),C=ap(),T=Xx(),x=Qx(),E=v1();const{validate:j}=s,R=e("babel");Ni.REMOVED=1,Ni.SHOULD_STOP=2,Ni.SHOULD_SKIP=4;const I=Ni.default=class vT{constructor(J,N){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=N,this.hub=J,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(J){J?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(J){J?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(J){J?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:J,parentPath:N,parent:$,container:ne,listKey:me,key:Ce}){if(!J&&N&&(J=N.hub),!$)throw new Error("To get a node path the parent needs to exist");const Ae=ne[Ce],ce=a.getOrCreateCachedPaths($,N);let ue=ce.get(Ae);return ue||(ue=new vT(J,$),Ae&&ce.set(Ae,ue)),O.setup.call(ue,N,ne,me,Ce),ue}getScope(J){return this.isScope()?new n.default(this):J}setData(J,N){return this.data==null&&(this.data=Object.create(null)),this.data[J]=N}getData(J,N){this.data==null&&(this.data=Object.create(null));let $=this.data[J];return $===void 0&&N!==void 0&&($=this.data[J]=N),$}hasNode(){return this.node!=null}buildCodeFrameError(J,N=SyntaxError){return this.hub.buildError(this.node,J,N)}traverse(J,N){(0,r.default)(this.node,J,this.scope,N,this)}set(J,N){j(this.node,J,N),this.node[J]=N}getPathLocation(){const J=[];let N=this;do{let $=N.key;N.inList&&($=`${N.listKey}[${$}]`),J.unshift($)}while(N=N.parentPath);return J.join(".")}debug(J){R.enabled&&R(`${this.getPathLocation()} ${this.type}: ${J}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(J){J||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},D={findParent:p.findParent,find:p.find,getFunctionParent:p.getFunctionParent,getStatementParent:p.getStatementParent,getEarliestCommonAncestorFrom:p.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:p.getDeepestCommonAncestorFrom,getAncestry:p.getAncestry,isAncestor:p.isAncestor,isDescendant:p.isDescendant,inType:p.inType,getTypeAnnotation:y.getTypeAnnotation,isBaseType:y.isBaseType,couldBeBaseType:y.couldBeBaseType,baseTypeStrictlyMatches:y.baseTypeStrictlyMatches,isGenericType:y.isGenericType,replaceWithMultiple:h.replaceWithMultiple,replaceWithSourceString:h.replaceWithSourceString,replaceWith:h.replaceWith,replaceExpressionWithStatements:h.replaceExpressionWithStatements,replaceInline:h.replaceInline,evaluateTruthy:g.evaluateTruthy,evaluate:g.evaluate,toComputedKey:b.toComputedKey,ensureBlock:b.ensureBlock,unwrapFunctionEnvironment:b.unwrapFunctionEnvironment,arrowFunctionToExpression:b.arrowFunctionToExpression,splitExportDeclaration:b.splitExportDeclaration,ensureFunctionName:b.ensureFunctionName,matchesPattern:S.matchesPattern,isStatic:S.isStatic,isNodeType:S.isNodeType,canHaveVariableDeclarationOrExpression:S.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:S.canSwapBetweenExpressionAndStatement,isCompletionRecord:S.isCompletionRecord,isStatementOrBlock:S.isStatementOrBlock,referencesImport:S.referencesImport,getSource:S.getSource,willIMaybeExecuteBefore:S.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:S._guessExecutionStatusRelativeTo,resolve:S.resolve,isConstantExpression:S.isConstantExpression,isInStrictMode:S.isInStrictMode,isDenylisted:_.isDenylisted,visit:_.visit,skip:_.skip,skipKey:_.skipKey,stop:_.stop,setContext:_.setContext,requeue:_.requeue,requeueComputedKeyAndDecorators:_.requeueComputedKeyAndDecorators,remove:w.remove,insertBefore:C.insertBefore,insertAfter:C.insertAfter,unshiftContainer:C.unshiftContainer,pushContainer:C.pushContainer,getOpposite:T.getOpposite,getCompletionRecords:T.getCompletionRecords,getSibling:T.getSibling,getPrevSibling:T.getPrevSibling,getNextSibling:T.getNextSibling,getAllNextSiblings:T.getAllNextSiblings,getAllPrevSiblings:T.getAllPrevSiblings,get:T.get,getAssignmentIdentifiers:T.getAssignmentIdentifiers,getBindingIdentifiers:T.getBindingIdentifiers,getOuterBindingIdentifiers:T.getOuterBindingIdentifiers,getBindingIdentifierPaths:T.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:T.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:x.shareCommentsWithSiblings,addComment:x.addComment,addComments:x.addComments};Object.assign(I.prototype,D),I.prototype.arrowFunctionToShadowed=b.arrowFunctionToShadowed,Object.assign(I.prototype,{has:S.has,is:S.is,isnt:S.isnt,equals:S.equals,hoist:C.hoist,updateSiblingKeys:C.updateSiblingKeys,call:_.call,isBlacklisted:_.isBlacklisted,setScope:_.setScope,resync:_.resync,popContext:_.popContext,pushContext:_.pushContext,setup:_.setup,setKey:_.setKey}),I.prototype._guessExecutionStatusRelativeToDifferentFunctions=S._guessExecutionStatusRelativeTo,I.prototype._guessExecutionStatusRelativeToDifferentFunctions=S._guessExecutionStatusRelativeTo,Object.assign(I.prototype,{_getTypeAnnotation:y._getTypeAnnotation,_replaceWith:h._replaceWith,_resolve:S._resolve,_call:_._call,_resyncParent:_._resyncParent,_resyncKey:_._resyncKey,_resyncList:_._resyncList,_resyncRemoved:_._resyncRemoved,_getQueueContexts:_._getQueueContexts,_removeFromScope:w._removeFromScope,_callRemovalHooks:w._callRemovalHooks,_remove:w._remove,_markRemoved:w._markRemoved,_assertUnremoved:w._assertUnremoved,_containerInsert:C._containerInsert,_containerInsertBefore:C._containerInsertBefore,_containerInsertAfter:C._containerInsertAfter,_verifyNodeList:C._verifyNodeList,_getKey:T._getKey,_getPattern:T._getPattern});for(const Z of o.TYPES){const J=`is${Z}`,N=o[J];I.prototype[J]=function($){return N(this.node,$)},I.prototype[`assert${Z}`]=function($){if(!N(this.node,$))throw new TypeError(`Expected node path of type ${Z}`)}}Object.assign(I.prototype,E);for(const Z of Object.keys(t))Z.startsWith("_")||o.TYPES.includes(Z)||o.TYPES.push(Z);return Ni}var Jo={},_g;function wg(){if(_g)return Jo;_g=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=void 0;class t{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(r,n,s=TypeError){return new s(n)}}return Jo.default=t,Jo}var Ag;function Zx(){if(Ag)return Mo;Ag=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;var t=Js(),e=Ut(),r=ki(),n=wg();const{VISITOR_KEYS:s}=e;class o{constructor(u,p,y,h){this.queue=null,this.priorityQueue=null,this.parentPath=h,this.scope=u,this.state=y,this.opts=p}shouldVisit(u){const p=this.opts;if(p.enter||p.exit||p[u.type])return!0;const y=s[u.type];if(!(y!=null&&y.length))return!1;for(const h of y)if(u[h])return!0;return!1}create(u,p,y,h){const{parentPath:g}=this,b=g==null?u.type==="Program"||u.type==="File"?new n.default:void 0:g.hub;return t.default.get({parentPath:g,parent:u,container:p,key:y,listKey:h,hub:b})}maybeQueue(u,p){this.queue&&(p?this.queue.push(u):this.priorityQueue.push(u))}visitMultiple(u,p,y){if(u.length===0)return!1;const h=[];for(let g=0;g<u.length;g++){const b=u[g];b&&this.shouldVisit(b)&&h.push(this.create(p,u,g,y))}return this.visitQueue(h)}visitSingle(u,p){return this.shouldVisit(u[p])?this.visitQueue([this.create(u,u,p)]):!1}visitQueue(u){this.queue=u,this.priorityQueue=[];const p=new WeakSet;let y=!1,h=0;for(;h<u.length;){const g=u[h];if(h++,r.resync.call(g),(g.contexts.length===0||g.contexts[g.contexts.length-1]!==this)&&r.pushContext.call(g,this),g.key===null)continue;const{node:b}=g;if(!p.has(b)){if(b&&p.add(b),g.visit()){y=!0;break}if(this.priorityQueue.length&&(y=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=u,y))break}}for(let g=0;g<h;g++)r.popContext.call(u[g]);return this.queue=null,y}visit(u,p){const y=u[p];return y?Array.isArray(y)?this.visitMultiple(y,u,p):this.visitSingle(u,p):!1}}return Mo.default=o,Mo}var Cg;function lp(){if(Cg)return Vc;Cg=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.traverseNode=n;var t=Zx();Js();var e=Ut();ki();const{VISITOR_KEYS:r}=e;function n(s,o,a,u,p,y,h){const g=r[s.type];if(!g)return!1;const b=new t.default(a,o,u,p);if(h)return y!=null&&y[p.parentKey]?!1:b.visitQueue([p]);for(const S of g)if(!(y!=null&&y[S])&&b.visit(s,S))return!0;return!1}return Vc}var Ig;function ki(){if(Ig)return gr;Ig=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr._call=o,gr._forceSetScope=b,gr._getQueueContexts=J,gr._resyncKey=C,gr._resyncList=T,gr._resyncParent=w,gr._resyncRemoved=x,gr.call=s,gr.isDenylisted=a,gr.popContext=E,gr.pushContext=j,gr.requeue=D,gr.requeueComputedKeyAndDecorators=Z,gr.resync=_,gr.setContext=O,gr.setKey=I,gr.setScope=S,gr.setup=R,gr.skip=y,gr.skipKey=h,gr.stop=g,gr.visit=p;var t=lp(),e=Js(),r=sp(),n=Ut();function s(N){const $=this.opts;if(this.debug(N),this.node&&o.call(this,$[N]))return!0;if(this.node){var ne;return o.call(this,(ne=$[this.node.type])==null?void 0:ne[N])}return!1}function o(N){if(!N)return!1;for(const $ of N){if(!$)continue;const ne=this.node;if(!ne)return!0;const me=$.call(this.state,this,this.state);if(me&&typeof me=="object"&&typeof me.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(me)throw new Error(`Unexpected return value from visitor method ${$}`);if(this.node!==ne||this._traverseFlags>0)return!0}return!1}function a(){var N;const $=(N=this.opts.denylist)!=null?N:this.opts.blacklist;return $==null?void 0:$.includes(this.node.type)}gr.isBlacklisted=a;function u(N,$){N.context!==$&&(N.context=$,N.state=$.state,N.opts=$.opts)}function p(){var N,$;if(!this.node||this.isDenylisted()||(N=($=this.opts).shouldSkip)!=null&&N.call($,this))return!1;const ne=this.context;return this.shouldSkip||s.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(u(this,ne),this.debug("Recursing into..."),this.shouldStop=(0,t.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),u(this,ne),s.call(this,"exit"),this.shouldStop)}function y(){this.shouldSkip=!0}function h(N){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[N]=!0}function g(){this._traverseFlags|=e.SHOULD_SKIP|e.SHOULD_STOP}function b(){var N;let $=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&$.isMethod()||this.key==="discriminant"&&$.isSwitchStatement())&&($=$.parentPath);let ne;for(;$&&!ne;)ne=$.scope,$=$.parentPath;this.scope=this.getScope(ne),(N=this.scope)==null||N.init()}function S(){var N,$;if((N=this.opts)!=null&&N.noScope)return;let ne=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&ne.isMethod()||this.key==="discriminant"&&ne.isSwitchStatement())&&(ne=ne.parentPath);let me;for(;ne&&!me;){var Ce;if((Ce=ne.opts)!=null&&Ce.noScope)return;me=ne.scope,ne=ne.parentPath}this.scope=this.getScope(me),($=this.scope)==null||$.init()}function O(N){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,N&&(this.context=N,this.state=N.state,this.opts=N.opts),S.call(this),this}function _(){this.removed||(w.call(this),T.call(this),C.call(this))}function w(){this.parentPath&&(this.parent=this.parentPath.node)}function C(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let N=0;N<this.container.length;N++)if(this.container[N]===this.node){I.call(this,N);return}}else for(const N of Object.keys(this.container))if(this.container[N]===this.node){I.call(this,N);return}this.key=null}}function T(){if(!this.parent||!this.inList)return;const N=this.parent[this.listKey];this.container!==N&&(this.container=N||null)}function x(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&r._markRemoved.call(this)}function E(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function j(N){this.contexts.push(N),this.setContext(N)}function R(N,$,ne,me){this.listKey=ne,this.container=$,this.parentPath=N||this.parentPath,I.call(this,me)}function I(N){var $;this.key=N,this.node=this.container[this.key],this.type=($=this.node)==null?void 0:$.type}function D(N=this){if(N.removed)return;const $=this.contexts;for(const ne of $)ne.maybeQueue(N)}function Z(){const{context:N,node:$}=this;if(!n.isPrivate($)&&$.computed&&N.maybeQueue(this.get("key")),$.decorators)for(const ne of this.get("decorators"))N.maybeQueue(ne)}function J(){let N=this,$=this.contexts;for(;!$.length&&(N=N.parentPath,!!N);)$=N.contexts;return $}return gr}var Og;function qr(){return Og||(Og=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.default}}),t.visitors=t.default=void 0,ki();var e=Wc();t.visitors=e;var r=Ut(),n=La(),s=lp(),o=Js(),a=w1(),u=wg();const{VISITOR_KEYS:p,removeProperties:y,traverseFast:h}=r;function g(b,S={},O,_,w,C){if(b){if(!S.noScope&&!O&&b.type!=="Program"&&b.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${b.type} node without passing scope and parentPath.`);if(!w&&C)throw new Error("visitSelf can only be used when providing a NodePath.");p[b.type]&&(e.explode(S),(0,s.traverseNode)(b,S,O,_,w,void 0,C))}}t.default=g,g.visitors=e,g.verify=e.verify,g.explode=e.explode,g.cheap=function(b,S){h(b,S)},g.node=function(b,S,O,_,w,C){(0,s.traverseNode)(b,S,O,_,w,C)},g.clearNode=function(b,S){y(b,S)},g.removeProperties=function(b,S){return h(b,g.clearNode,S),b},g.hasType=function(b,S,O){return O!=null&&O.includes(b.type)?!1:b.type===S?!0:h(b,function(_){if(O!=null&&O.includes(_.type))return h.skip;if(_.type===S)return h.stop})},g.cache=n}(Vf)),Vf}var cp={exports:{}};(function(t,e){var r={};e=t.exports=D;var n;typeof process=="object"&&r&&r.NODE_DEBUG&&/\bsemver\b/i.test(r.NODE_DEBUG)?n=function(){var te=Array.prototype.slice.call(arguments,0);te.unshift("SEMVER"),console.log.apply(console,te)}:n=function(){},e.SEMVER_SPEC_VERSION="2.0.0";var s=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=16,u=s-6,p=e.re=[],y=e.safeRe=[],h=e.src=[],g=e.tokens={},b=0;function S(te){g[te]=b++}var O="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",s],[O,u]];function w(te){for(var de=0;de<_.length;de++){var G=_[de][0],be=_[de][1];te=te.split(G+"*").join(G+"{0,"+be+"}").split(G+"+").join(G+"{1,"+be+"}")}return te}S("NUMERICIDENTIFIER"),h[g.NUMERICIDENTIFIER]="0|[1-9]\\d*",S("NUMERICIDENTIFIERLOOSE"),h[g.NUMERICIDENTIFIERLOOSE]="\\d+",S("NONNUMERICIDENTIFIER"),h[g.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+O+"*",S("MAINVERSION"),h[g.MAINVERSION]="("+h[g.NUMERICIDENTIFIER]+")\\.("+h[g.NUMERICIDENTIFIER]+")\\.("+h[g.NUMERICIDENTIFIER]+")",S("MAINVERSIONLOOSE"),h[g.MAINVERSIONLOOSE]="("+h[g.NUMERICIDENTIFIERLOOSE]+")\\.("+h[g.NUMERICIDENTIFIERLOOSE]+")\\.("+h[g.NUMERICIDENTIFIERLOOSE]+")",S("PRERELEASEIDENTIFIER"),h[g.PRERELEASEIDENTIFIER]="(?:"+h[g.NUMERICIDENTIFIER]+"|"+h[g.NONNUMERICIDENTIFIER]+")",S("PRERELEASEIDENTIFIERLOOSE"),h[g.PRERELEASEIDENTIFIERLOOSE]="(?:"+h[g.NUMERICIDENTIFIERLOOSE]+"|"+h[g.NONNUMERICIDENTIFIER]+")",S("PRERELEASE"),h[g.PRERELEASE]="(?:-("+h[g.PRERELEASEIDENTIFIER]+"(?:\\."+h[g.PRERELEASEIDENTIFIER]+")*))",S("PRERELEASELOOSE"),h[g.PRERELEASELOOSE]="(?:-?("+h[g.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+h[g.PRERELEASEIDENTIFIERLOOSE]+")*))",S("BUILDIDENTIFIER"),h[g.BUILDIDENTIFIER]=O+"+",S("BUILD"),h[g.BUILD]="(?:\\+("+h[g.BUILDIDENTIFIER]+"(?:\\."+h[g.BUILDIDENTIFIER]+")*))",S("FULL"),S("FULLPLAIN"),h[g.FULLPLAIN]="v?"+h[g.MAINVERSION]+h[g.PRERELEASE]+"?"+h[g.BUILD]+"?",h[g.FULL]="^"+h[g.FULLPLAIN]+"$",S("LOOSEPLAIN"),h[g.LOOSEPLAIN]="[v=\\s]*"+h[g.MAINVERSIONLOOSE]+h[g.PRERELEASELOOSE]+"?"+h[g.BUILD]+"?",S("LOOSE"),h[g.LOOSE]="^"+h[g.LOOSEPLAIN]+"$",S("GTLT"),h[g.GTLT]="((?:<|>)?=?)",S("XRANGEIDENTIFIERLOOSE"),h[g.XRANGEIDENTIFIERLOOSE]=h[g.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",S("XRANGEIDENTIFIER"),h[g.XRANGEIDENTIFIER]=h[g.NUMERICIDENTIFIER]+"|x|X|\\*",S("XRANGEPLAIN"),h[g.XRANGEPLAIN]="[v=\\s]*("+h[g.XRANGEIDENTIFIER]+")(?:\\.("+h[g.XRANGEIDENTIFIER]+")(?:\\.("+h[g.XRANGEIDENTIFIER]+")(?:"+h[g.PRERELEASE]+")?"+h[g.BUILD]+"?)?)?",S("XRANGEPLAINLOOSE"),h[g.XRANGEPLAINLOOSE]="[v=\\s]*("+h[g.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+h[g.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+h[g.XRANGEIDENTIFIERLOOSE]+")(?:"+h[g.PRERELEASELOOSE]+")?"+h[g.BUILD]+"?)?)?",S("XRANGE"),h[g.XRANGE]="^"+h[g.GTLT]+"\\s*"+h[g.XRANGEPLAIN]+"$",S("XRANGELOOSE"),h[g.XRANGELOOSE]="^"+h[g.GTLT]+"\\s*"+h[g.XRANGEPLAINLOOSE]+"$",S("COERCE"),h[g.COERCE]="(^|[^\\d])(\\d{1,"+a+"})(?:\\.(\\d{1,"+a+"}))?(?:\\.(\\d{1,"+a+"}))?(?:$|[^\\d])",S("COERCERTL"),p[g.COERCERTL]=new RegExp(h[g.COERCE],"g"),y[g.COERCERTL]=new RegExp(w(h[g.COERCE]),"g"),S("LONETILDE"),h[g.LONETILDE]="(?:~>?)",S("TILDETRIM"),h[g.TILDETRIM]="(\\s*)"+h[g.LONETILDE]+"\\s+",p[g.TILDETRIM]=new RegExp(h[g.TILDETRIM],"g"),y[g.TILDETRIM]=new RegExp(w(h[g.TILDETRIM]),"g");var C="$1~";S("TILDE"),h[g.TILDE]="^"+h[g.LONETILDE]+h[g.XRANGEPLAIN]+"$",S("TILDELOOSE"),h[g.TILDELOOSE]="^"+h[g.LONETILDE]+h[g.XRANGEPLAINLOOSE]+"$",S("LONECARET"),h[g.LONECARET]="(?:\\^)",S("CARETTRIM"),h[g.CARETTRIM]="(\\s*)"+h[g.LONECARET]+"\\s+",p[g.CARETTRIM]=new RegExp(h[g.CARETTRIM],"g"),y[g.CARETTRIM]=new RegExp(w(h[g.CARETTRIM]),"g");var T="$1^";S("CARET"),h[g.CARET]="^"+h[g.LONECARET]+h[g.XRANGEPLAIN]+"$",S("CARETLOOSE"),h[g.CARETLOOSE]="^"+h[g.LONECARET]+h[g.XRANGEPLAINLOOSE]+"$",S("COMPARATORLOOSE"),h[g.COMPARATORLOOSE]="^"+h[g.GTLT]+"\\s*("+h[g.LOOSEPLAIN]+")$|^$",S("COMPARATOR"),h[g.COMPARATOR]="^"+h[g.GTLT]+"\\s*("+h[g.FULLPLAIN]+")$|^$",S("COMPARATORTRIM"),h[g.COMPARATORTRIM]="(\\s*)"+h[g.GTLT]+"\\s*("+h[g.LOOSEPLAIN]+"|"+h[g.XRANGEPLAIN]+")",p[g.COMPARATORTRIM]=new RegExp(h[g.COMPARATORTRIM],"g"),y[g.COMPARATORTRIM]=new RegExp(w(h[g.COMPARATORTRIM]),"g");var x="$1$2$3";S("HYPHENRANGE"),h[g.HYPHENRANGE]="^\\s*("+h[g.XRANGEPLAIN]+")\\s+-\\s+("+h[g.XRANGEPLAIN]+")\\s*$",S("HYPHENRANGELOOSE"),h[g.HYPHENRANGELOOSE]="^\\s*("+h[g.XRANGEPLAINLOOSE]+")\\s+-\\s+("+h[g.XRANGEPLAINLOOSE]+")\\s*$",S("STAR"),h[g.STAR]="(<|>)?=?\\s*\\*";for(var E=0;E<b;E++)n(E,h[E]),p[E]||(p[E]=new RegExp(h[E]),y[E]=new RegExp(w(h[E])));e.parse=j;function j(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof D)return te;if(typeof te!="string"||te.length>s)return null;var G=de.loose?y[g.LOOSE]:y[g.FULL];if(!G.test(te))return null;try{return new D(te,de)}catch{return null}}e.valid=R;function R(te,de){var G=j(te,de);return G?G.version:null}e.clean=I;function I(te,de){var G=j(te.trim().replace(/^[=v]+/,""),de);return G?G.version:null}e.SemVer=D;function D(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof D){if(te.loose===de.loose)return te;te=te.version}else if(typeof te!="string")throw new TypeError("Invalid Version: "+te);if(te.length>s)throw new TypeError("version is longer than "+s+" characters");if(!(this instanceof D))return new D(te,de);n("SemVer",te,de),this.options=de,this.loose=!!de.loose;var G=te.trim().match(de.loose?y[g.LOOSE]:y[g.FULL]);if(!G)throw new TypeError("Invalid Version: "+te);if(this.raw=te,this.major=+G[1],this.minor=+G[2],this.patch=+G[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");G[4]?this.prerelease=G[4].split(".").map(function(be){if(/^[0-9]+$/.test(be)){var et=+be;if(et>=0&&et<o)return et}return be}):this.prerelease=[],this.build=G[5]?G[5].split("."):[],this.format()}D.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},D.prototype.toString=function(){return this.version},D.prototype.compare=function(te){return n("SemVer.compare",this.version,this.options,te),te instanceof D||(te=new D(te,this.options)),this.compareMain(te)||this.comparePre(te)},D.prototype.compareMain=function(te){return te instanceof D||(te=new D(te,this.options)),$(this.major,te.major)||$(this.minor,te.minor)||$(this.patch,te.patch)},D.prototype.comparePre=function(te){if(te instanceof D||(te=new D(te,this.options)),this.prerelease.length&&!te.prerelease.length)return-1;if(!this.prerelease.length&&te.prerelease.length)return 1;if(!this.prerelease.length&&!te.prerelease.length)return 0;var de=0;do{var G=this.prerelease[de],be=te.prerelease[de];if(n("prerelease compare",de,G,be),G===void 0&&be===void 0)return 0;if(be===void 0)return 1;if(G===void 0)return-1;if(G===be)continue;return $(G,be)}while(++de)},D.prototype.compareBuild=function(te){te instanceof D||(te=new D(te,this.options));var de=0;do{var G=this.build[de],be=te.build[de];if(n("prerelease compare",de,G,be),G===void 0&&be===void 0)return 0;if(be===void 0)return 1;if(G===void 0)return-1;if(G===be)continue;return $(G,be)}while(++de)},D.prototype.inc=function(te,de){switch(te){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",de);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",de);break;case"prepatch":this.prerelease.length=0,this.inc("patch",de),this.inc("pre",de);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",de),this.inc("pre",de);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var G=this.prerelease.length;--G>=0;)typeof this.prerelease[G]=="number"&&(this.prerelease[G]++,G=-2);G===-1&&this.prerelease.push(0)}de&&(this.prerelease[0]===de?isNaN(this.prerelease[1])&&(this.prerelease=[de,0]):this.prerelease=[de,0]);break;default:throw new Error("invalid increment argument: "+te)}return this.format(),this.raw=this.version,this},e.inc=Z;function Z(te,de,G,be){typeof G=="string"&&(be=G,G=void 0);try{return new D(te,G).inc(de,be).version}catch{return null}}e.diff=J;function J(te,de){if(H(te,de))return null;var G=j(te),be=j(de),et="";if(G.prerelease.length||be.prerelease.length){et="pre";var ge="prerelease"}for(var rt in G)if((rt==="major"||rt==="minor"||rt==="patch")&&G[rt]!==be[rt])return et+rt;return ge}e.compareIdentifiers=$;var N=/^[0-9]+$/;function $(te,de){var G=N.test(te),be=N.test(de);return G&&be&&(te=+te,de=+de),te===de?0:G&&!be?-1:be&&!G?1:te<de?-1:1}e.rcompareIdentifiers=ne;function ne(te,de){return $(de,te)}e.major=me;function me(te,de){return new D(te,de).major}e.minor=Ce;function Ce(te,de){return new D(te,de).minor}e.patch=Ae;function Ae(te,de){return new D(te,de).patch}e.compare=ce;function ce(te,de,G){return new D(te,G).compare(new D(de,G))}e.compareLoose=ue;function ue(te,de){return ce(te,de,!0)}e.compareBuild=K;function K(te,de,G){var be=new D(te,G),et=new D(de,G);return be.compare(et)||be.compareBuild(et)}e.rcompare=Y;function Y(te,de,G){return ce(de,te,G)}e.sort=he;function he(te,de){return te.sort(function(G,be){return e.compareBuild(G,be,de)})}e.rsort=ae;function ae(te,de){return te.sort(function(G,be){return e.compareBuild(be,G,de)})}e.gt=U;function U(te,de,G){return ce(te,de,G)>0}e.lt=L;function L(te,de,G){return ce(te,de,G)<0}e.eq=H;function H(te,de,G){return ce(te,de,G)===0}e.neq=ye;function ye(te,de,G){return ce(te,de,G)!==0}e.gte=Ie;function Ie(te,de,G){return ce(te,de,G)>=0}e.lte=Ee;function Ee(te,de,G){return ce(te,de,G)<=0}e.cmp=De;function De(te,de,G,be){switch(de){case"===":return typeof te=="object"&&(te=te.version),typeof G=="object"&&(G=G.version),te===G;case"!==":return typeof te=="object"&&(te=te.version),typeof G=="object"&&(G=G.version),te!==G;case"":case"=":case"==":return H(te,G,be);case"!=":return ye(te,G,be);case">":return U(te,G,be);case">=":return Ie(te,G,be);case"<":return L(te,G,be);case"<=":return Ee(te,G,be);default:throw new TypeError("Invalid operator: "+de)}}e.Comparator=Me;function Me(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof Me){if(te.loose===!!de.loose)return te;te=te.value}if(!(this instanceof Me))return new Me(te,de);te=te.trim().split(/\s+/).join(" "),n("comparator",te,de),this.options=de,this.loose=!!de.loose,this.parse(te),this.semver===Ve?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}var Ve={};Me.prototype.parse=function(te){var de=this.options.loose?y[g.COMPARATORLOOSE]:y[g.COMPARATOR],G=te.match(de);if(!G)throw new TypeError("Invalid comparator: "+te);this.operator=G[1]!==void 0?G[1]:"",this.operator==="="&&(this.operator=""),G[2]?this.semver=new D(G[2],this.options.loose):this.semver=Ve},Me.prototype.toString=function(){return this.value},Me.prototype.test=function(te){if(n("Comparator.test",te,this.options.loose),this.semver===Ve||te===Ve)return!0;if(typeof te=="string")try{te=new D(te,this.options)}catch{return!1}return De(te,this.operator,this.semver,this.options)},Me.prototype.intersects=function(te,de){if(!(te instanceof Me))throw new TypeError("a Comparator is required");(!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1});var G;if(this.operator==="")return this.value===""?!0:(G=new Ze(te.value,de),oe(this.value,G,de));if(te.operator==="")return te.value===""?!0:(G=new Ze(this.value,de),oe(te.semver,G,de));var be=(this.operator===">="||this.operator===">")&&(te.operator===">="||te.operator===">"),et=(this.operator==="<="||this.operator==="<")&&(te.operator==="<="||te.operator==="<"),ge=this.semver.version===te.semver.version,rt=(this.operator===">="||this.operator==="<=")&&(te.operator===">="||te.operator==="<="),yt=De(this.semver,"<",te.semver,de)&&(this.operator===">="||this.operator===">")&&(te.operator==="<="||te.operator==="<"),mt=De(this.semver,">",te.semver,de)&&(this.operator==="<="||this.operator==="<")&&(te.operator===">="||te.operator===">");return be||et||ge&&rt||yt||mt},e.Range=Ze;function Ze(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof Ze)return te.loose===!!de.loose&&te.includePrerelease===!!de.includePrerelease?te:new Ze(te.raw,de);if(te instanceof Me)return new Ze(te.value,de);if(!(this instanceof Ze))return new Ze(te,de);if(this.options=de,this.loose=!!de.loose,this.includePrerelease=!!de.includePrerelease,this.raw=te.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(G){return this.parseRange(G.trim())},this).filter(function(G){return G.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}Ze.prototype.format=function(){return this.range=this.set.map(function(te){return te.join(" ").trim()}).join("||").trim(),this.range},Ze.prototype.toString=function(){return this.range},Ze.prototype.parseRange=function(te){var de=this.options.loose,G=de?y[g.HYPHENRANGELOOSE]:y[g.HYPHENRANGE];te=te.replace(G,se),n("hyphen replace",te),te=te.replace(y[g.COMPARATORTRIM],x),n("comparator trim",te,y[g.COMPARATORTRIM]),te=te.replace(y[g.TILDETRIM],C),te=te.replace(y[g.CARETTRIM],T),te=te.split(/\s+/).join(" ");var be=de?y[g.COMPARATORLOOSE]:y[g.COMPARATOR],et=te.split(" ").map(function(ge){return dt(ge,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(et=et.filter(function(ge){return!!ge.match(be)})),et=et.map(function(ge){return new Me(ge,this.options)},this),et},Ze.prototype.intersects=function(te,de){if(!(te instanceof Ze))throw new TypeError("a Range is required");return this.set.some(function(G){return ut(G,de)&&te.set.some(function(be){return ut(be,de)&&G.every(function(et){return be.every(function(ge){return et.intersects(ge,de)})})})})};function ut(te,de){for(var G=!0,be=te.slice(),et=be.pop();G&&be.length;)G=be.every(function(ge){return et.intersects(ge,de)}),et=be.pop();return G}e.toComparators=st;function st(te,de){return new Ze(te,de).set.map(function(G){return G.map(function(be){return be.value}).join(" ").trim().split(" ")})}function dt(te,de){return n("comp",te,de),te=Le(te,de),n("caret",te),te=je(te,de),n("tildes",te),te=ht(te,de),n("xrange",te),te=Se(te,de),n("stars",te),te}function $e(te){return!te||te.toLowerCase()==="x"||te==="*"}function je(te,de){return te.trim().split(/\s+/).map(function(G){return qe(G,de)}).join(" ")}function qe(te,de){var G=de.loose?y[g.TILDELOOSE]:y[g.TILDE];return te.replace(G,function(be,et,ge,rt,yt){n("tilde",te,be,et,ge,rt,yt);var mt;return $e(et)?mt="":$e(ge)?mt=">="+et+".0.0 <"+(+et+1)+".0.0":$e(rt)?mt=">="+et+"."+ge+".0 <"+et+"."+(+ge+1)+".0":yt?(n("replaceTilde pr",yt),mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+et+"."+(+ge+1)+".0"):mt=">="+et+"."+ge+"."+rt+" <"+et+"."+(+ge+1)+".0",n("tilde return",mt),mt})}function Le(te,de){return te.trim().split(/\s+/).map(function(G){return gt(G,de)}).join(" ")}function gt(te,de){n("caret",te,de);var G=de.loose?y[g.CARETLOOSE]:y[g.CARET];return te.replace(G,function(be,et,ge,rt,yt){n("caret",te,be,et,ge,rt,yt);var mt;return $e(et)?mt="":$e(ge)?mt=">="+et+".0.0 <"+(+et+1)+".0.0":$e(rt)?et==="0"?mt=">="+et+"."+ge+".0 <"+et+"."+(+ge+1)+".0":mt=">="+et+"."+ge+".0 <"+(+et+1)+".0.0":yt?(n("replaceCaret pr",yt),et==="0"?ge==="0"?mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+et+"."+ge+"."+(+rt+1):mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+et+"."+(+ge+1)+".0":mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+(+et+1)+".0.0"):(n("no pr"),et==="0"?ge==="0"?mt=">="+et+"."+ge+"."+rt+" <"+et+"."+ge+"."+(+rt+1):mt=">="+et+"."+ge+"."+rt+" <"+et+"."+(+ge+1)+".0":mt=">="+et+"."+ge+"."+rt+" <"+(+et+1)+".0.0"),n("caret return",mt),mt})}function ht(te,de){return n("replaceXRanges",te,de),te.split(/\s+/).map(function(G){return xe(G,de)}).join(" ")}function xe(te,de){te=te.trim();var G=de.loose?y[g.XRANGELOOSE]:y[g.XRANGE];return te.replace(G,function(be,et,ge,rt,yt,mt){n("xRange",te,be,et,ge,rt,yt,mt);var Bt=$e(ge),Lt=Bt||$e(rt),Vt=Lt||$e(yt),Ht=Vt;return et==="="&&Ht&&(et=""),mt=de.includePrerelease?"-0":"",Bt?et===">"||et==="<"?be="<0.0.0-0":be="*":et&&Ht?(Lt&&(rt=0),yt=0,et===">"?(et=">=",Lt?(ge=+ge+1,rt=0,yt=0):(rt=+rt+1,yt=0)):et==="<="&&(et="<",Lt?ge=+ge+1:rt=+rt+1),be=et+ge+"."+rt+"."+yt+mt):Lt?be=">="+ge+".0.0"+mt+" <"+(+ge+1)+".0.0"+mt:Vt&&(be=">="+ge+"."+rt+".0"+mt+" <"+ge+"."+(+rt+1)+".0"+mt),n("xRange return",be),be})}function Se(te,de){return n("replaceStars",te,de),te.trim().replace(y[g.STAR],"")}function se(te,de,G,be,et,ge,rt,yt,mt,Bt,Lt,Vt,Ht){return $e(G)?de="":$e(be)?de=">="+G+".0.0":$e(et)?de=">="+G+"."+be+".0":de=">="+de,$e(mt)?yt="":$e(Bt)?yt="<"+(+mt+1)+".0.0":$e(Lt)?yt="<"+mt+"."+(+Bt+1)+".0":Vt?yt="<="+mt+"."+Bt+"."+Lt+"-"+Vt:yt="<="+yt,(de+" "+yt).trim()}Ze.prototype.test=function(te){if(!te)return!1;if(typeof te=="string")try{te=new D(te,this.options)}catch{return!1}for(var de=0;de<this.set.length;de++)if(ee(this.set[de],te,this.options))return!0;return!1};function ee(te,de,G){for(var be=0;be<te.length;be++)if(!te[be].test(de))return!1;if(de.prerelease.length&&!G.includePrerelease){for(be=0;be<te.length;be++)if(n(te[be].semver),te[be].semver!==Ve&&te[be].semver.prerelease.length>0){var et=te[be].semver;if(et.major===de.major&&et.minor===de.minor&&et.patch===de.patch)return!0}return!1}return!0}e.satisfies=oe;function oe(te,de,G){try{de=new Ze(de,G)}catch{return!1}return de.test(te)}e.maxSatisfying=W;function W(te,de,G){var be=null,et=null;try{var ge=new Ze(de,G)}catch{return null}return te.forEach(function(rt){ge.test(rt)&&(!be||et.compare(rt)===-1)&&(be=rt,et=new D(be,G))}),be}e.minSatisfying=fe;function fe(te,de,G){var be=null,et=null;try{var ge=new Ze(de,G)}catch{return null}return te.forEach(function(rt){ge.test(rt)&&(!be||et.compare(rt)===1)&&(be=rt,et=new D(be,G))}),be}e.minVersion=Re;function Re(te,de){te=new Ze(te,de);var G=new D("0.0.0");if(te.test(G)||(G=new D("0.0.0-0"),te.test(G)))return G;G=null;for(var be=0;be<te.set.length;++be){var et=te.set[be];et.forEach(function(ge){var rt=new D(ge.semver.version);switch(ge.operator){case">":rt.prerelease.length===0?rt.patch++:rt.prerelease.push(0),rt.raw=rt.format();case"":case">=":(!G||U(G,rt))&&(G=rt);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+ge.operator)}})}return G&&te.test(G)?G:null}e.validRange=Fe;function Fe(te,de){try{return new Ze(te,de).range||"*"}catch{return null}}e.ltr=Ke;function Ke(te,de,G){return _t(te,de,"<",G)}e.gtr=it;function it(te,de,G){return _t(te,de,">",G)}e.outside=_t;function _t(te,de,G,be){te=new D(te,be),de=new Ze(de,be);var et,ge,rt,yt,mt;switch(G){case">":et=U,ge=Ee,rt=L,yt=">",mt=">=";break;case"<":et=L,ge=Ie,rt=U,yt="<",mt="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oe(te,de,be))return!1;for(var Bt=0;Bt<de.set.length;++Bt){var Lt=de.set[Bt],Vt=null,Ht=null;if(Lt.forEach(function(lr){lr.semver===Ve&&(lr=new Me(">=0.0.0")),Vt=Vt||lr,Ht=Ht||lr,et(lr.semver,Vt.semver,be)?Vt=lr:rt(lr.semver,Ht.semver,be)&&(Ht=lr)}),Vt.operator===yt||Vt.operator===mt||(!Ht.operator||Ht.operator===yt)&&ge(te,Ht.semver))return!1;if(Ht.operator===mt&&rt(te,Ht.semver))return!1}return!0}e.prerelease=Mt;function Mt(te,de){var G=j(te,de);return G&&G.prerelease.length?G.prerelease:null}e.intersects=pt;function pt(te,de,G){return te=new Ze(te,G),de=new Ze(de,G),te.intersects(de)}e.coerce=xt;function xt(te,de){if(te instanceof D)return te;if(typeof te=="number"&&(te=String(te)),typeof te!="string")return null;de=de||{};var G=null;if(!de.rtl)G=te.match(y[g.COERCE]);else{for(var be;(be=y[g.COERCERTL].exec(te))&&(!G||G.index+G[0].length!==te.length);)(!G||be.index+be[0].length!==G.index+G[0].length)&&(G=be),y[g.COERCERTL].lastIndex=be.index+be[1].length+be[2].length;y[g.COERCERTL].lastIndex=-1}return G===null?null:j(G[2]+"."+(G[3]||"0")+"."+(G[4]||"0"),de)}})(cp,cp.exports);var ua=cp.exports,up={},fp={},pp={exports:{}},dp={},qa={},Ng={},hp=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==s||u.enumerable!==!0)return!1}return!0},eP=hp,Yc=function(){return eP()&&!!Symbol.toStringTag},yp=Object,tP=Error,rP=EvalError,nP=RangeError,iP=ReferenceError,kg=SyntaxError,Yo=TypeError,sP=URIError,aP=Math.abs,oP=Math.floor,lP=Math.max,cP=Math.min,uP=Math.pow,fP=Math.round,pP=Number.isNaN||function(e){return e!==e},dP=pP,hP=function(e){return dP(e)||e===0?e:e<0?-1:1},yP=Object.getOwnPropertyDescriptor,Xc=yP;if(Xc)try{Xc([],"length")}catch{Xc=null}var $a=Xc,Qc=Object.defineProperty||!1;if(Qc)try{Qc({},"a",{value:1})}catch{Qc=!1}var Zc=Qc,mp,Dg;function mP(){if(Dg)return mp;Dg=1;var t=typeof Symbol<"u"&&Symbol,e=hp;return mp=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},mp}var gp,Bg;function Rg(){return Bg||(Bg=1,gp=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gp}var bp,jg;function Mg(){if(jg)return bp;jg=1;var t=yp;return bp=t.getPrototypeOf||null,bp}var vp,Lg;function gP(){if(Lg)return vp;Lg=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",s=function(p,y){for(var h=[],g=0;g<p.length;g+=1)h[g]=p[g];for(var b=0;b<y.length;b+=1)h[b+p.length]=y[b];return h},o=function(p,y){for(var h=[],g=y,b=0;g<p.length;g+=1,b+=1)h[b]=p[g];return h},a=function(u,p){for(var y="",h=0;h<u.length;h+=1)y+=u[h],h+1<u.length&&(y+=p);return y};return vp=function(p){var y=this;if(typeof y!="function"||e.apply(y)!==n)throw new TypeError(t+y);for(var h=o(arguments,1),g,b=function(){if(this instanceof g){var C=y.apply(this,s(h,arguments));return Object(C)===C?C:this}return y.apply(p,s(h,arguments))},S=r(0,y.length-h.length),O=[],_=0;_<S;_++)O[_]="$"+_;if(g=Function("binder","return function ("+a(O,",")+"){ return binder.apply(this,arguments); }")(b),y.prototype){var w=function(){};w.prototype=y.prototype,g.prototype=new w,w.prototype=null}return g},vp}var Sp,Fg;function Xo(){if(Fg)return Sp;Fg=1;var t=gP();return Sp=Function.prototype.bind||t,Sp}var Tp,qg;function Ep(){return qg||(qg=1,Tp=Function.prototype.call),Tp}var xp,$g;function Pp(){return $g||($g=1,xp=Function.prototype.apply),xp}var bP=typeof Reflect<"u"&&Reflect&&Reflect.apply,vP=Xo(),SP=Pp(),TP=Ep(),EP=bP,Ug=EP||vP.call(TP,SP),xP=Xo(),PP=Yo,_P=Ep(),wP=Ug,_p=function(e){if(e.length<1||typeof e[0]!="function")throw new PP("a function is required");return wP(xP,_P,e)},wp,Vg;function AP(){if(Vg)return wp;Vg=1;var t=_p,e=$a,r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&e&&e(Object.prototype,"__proto__"),s=Object,o=s.getPrototypeOf;return wp=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(u){return o(u==null?u:s(u))}:!1,wp}var Ap,Kg;function Cp(){if(Kg)return Ap;Kg=1;var t=Rg(),e=Mg(),r=AP();return Ap=t?function(s){return t(s)}:e?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return e(s)}:r?function(s){return r(s)}:null,Ap}var Ip,Wg;function Gg(){if(Wg)return Ip;Wg=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Xo();return Ip=r.call(t,e),Ip}var nr,CP=yp,IP=tP,OP=rP,NP=nP,kP=iP,Ua=kg,Va=Yo,DP=sP,BP=aP,RP=oP,jP=lP,MP=cP,LP=uP,FP=fP,qP=hP,zg=Function,Op=function(t){try{return zg('"use strict"; return ('+t+").constructor;")()}catch{}},Qo=$a,$P=Zc,Np=function(){throw new Va},UP=Qo?function(){try{return arguments.callee,Np}catch{try{return Qo(arguments,"callee").get}catch{return Np}}}():Np,Ka=mP()(),Hr=Cp(),VP=Mg(),KP=Rg(),Hg=Pp(),Zo=Ep(),Wa={},WP=typeof Uint8Array>"u"||!Hr?nr:Hr(Uint8Array),fa={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?nr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?nr:ArrayBuffer,"%ArrayIteratorPrototype%":Ka&&Hr?Hr([][Symbol.iterator]()):nr,"%AsyncFromSyncIteratorPrototype%":nr,"%AsyncFunction%":Wa,"%AsyncGenerator%":Wa,"%AsyncGeneratorFunction%":Wa,"%AsyncIteratorPrototype%":Wa,"%Atomics%":typeof Atomics>"u"?nr:Atomics,"%BigInt%":typeof BigInt>"u"?nr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?nr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?nr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?nr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":IP,"%eval%":eval,"%EvalError%":OP,"%Float16Array%":typeof Float16Array>"u"?nr:Float16Array,"%Float32Array%":typeof Float32Array>"u"?nr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?nr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?nr:FinalizationRegistry,"%Function%":zg,"%GeneratorFunction%":Wa,"%Int8Array%":typeof Int8Array>"u"?nr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?nr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?nr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ka&&Hr?Hr(Hr([][Symbol.iterator]())):nr,"%JSON%":typeof JSON=="object"?JSON:nr,"%Map%":typeof Map>"u"?nr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ka||!Hr?nr:Hr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":CP,"%Object.getOwnPropertyDescriptor%":Qo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?nr:Promise,"%Proxy%":typeof Proxy>"u"?nr:Proxy,"%RangeError%":NP,"%ReferenceError%":kP,"%Reflect%":typeof Reflect>"u"?nr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?nr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ka||!Hr?nr:Hr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?nr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ka&&Hr?Hr(""[Symbol.iterator]()):nr,"%Symbol%":Ka?Symbol:nr,"%SyntaxError%":Ua,"%ThrowTypeError%":UP,"%TypedArray%":WP,"%TypeError%":Va,"%Uint8Array%":typeof Uint8Array>"u"?nr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?nr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?nr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?nr:Uint32Array,"%URIError%":DP,"%WeakMap%":typeof WeakMap>"u"?nr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?nr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?nr:WeakSet,"%Function.prototype.call%":Zo,"%Function.prototype.apply%":Hg,"%Object.defineProperty%":$P,"%Object.getPrototypeOf%":VP,"%Math.abs%":BP,"%Math.floor%":RP,"%Math.max%":jP,"%Math.min%":MP,"%Math.pow%":LP,"%Math.round%":FP,"%Math.sign%":qP,"%Reflect.getPrototypeOf%":KP};if(Hr)try{null.error}catch(t){var GP=Hr(Hr(t));fa["%Error.prototype%"]=GP}var zP=function t(e){var r;if(e==="%AsyncFunction%")r=Op("async function () {}");else if(e==="%GeneratorFunction%")r=Op("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Op("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Hr&&(r=Hr(s.prototype))}return fa[e]=r,r},Jg={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},el=Xo(),eu=Gg(),HP=el.call(Zo,Array.prototype.concat),JP=el.call(Hg,Array.prototype.splice),Yg=el.call(Zo,String.prototype.replace),tu=el.call(Zo,String.prototype.slice),YP=el.call(Zo,RegExp.prototype.exec),XP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QP=/\\(\\)?/g,ZP=function(e){var r=tu(e,0,1),n=tu(e,-1);if(r==="%"&&n!=="%")throw new Ua("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ua("invalid intrinsic syntax, expected opening `%`");var s=[];return Yg(e,XP,function(o,a,u,p){s[s.length]=u?Yg(p,QP,"$1"):a||o}),s},e_=function(e,r){var n=e,s;if(eu(Jg,n)&&(s=Jg[n],n="%"+s[0]+"%"),eu(fa,n)){var o=fa[n];if(o===Wa&&(o=zP(n)),typeof o>"u"&&!r)throw new Va("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:o}}throw new Ua("intrinsic "+e+" does not exist!")},kp=function(e,r){if(typeof e!="string"||e.length===0)throw new Va("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Va('"allowMissing" argument must be a boolean');if(YP(/^%?[^%]*%?$/,e)===null)throw new Ua("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ZP(e),s=n.length>0?n[0]:"",o=e_("%"+s+"%",r),a=o.name,u=o.value,p=!1,y=o.alias;y&&(s=y[0],JP(n,HP([0,1],y)));for(var h=1,g=!0;h<n.length;h+=1){var b=n[h],S=tu(b,0,1),O=tu(b,-1);if((S==='"'||S==="'"||S==="`"||O==='"'||O==="'"||O==="`")&&S!==O)throw new Ua("property names with quotes must have matching quotes");if((b==="constructor"||!g)&&(p=!0),s+="."+b,a="%"+s+"%",eu(fa,a))u=fa[a];else if(u!=null){if(!(b in u)){if(!r)throw new Va("base intrinsic for "+e+" exists, but the property is not available.");return}if(Qo&&h+1>=n.length){var _=Qo(u,b);g=!!_,g&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[b]}else g=eu(u,b),u=u[b];g&&!p&&(fa[a]=u)}}return u},Xg=kp,Qg=_p,t_=Qg([Xg("%String.prototype.indexOf%")]),Ga=function(e,r){var n=Xg(e,!!r);return typeof n=="function"&&t_(e,".prototype.")>-1?Qg([n]):n},r_=Yc(),n_=Ga,Dp=n_("Object.prototype.toString"),ru=function(e){return r_&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Dp(e)==="[object Arguments]"},Zg=function(e){return ru(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Dp(e)!=="[object Array]"&&"callee"in e&&Dp(e.callee)==="[object Function]"},i_=function(){return ru(arguments)}();ru.isLegacyArguments=Zg;var s_=i_?ru:Zg,eb=Ga,a_=Yc(),o_=Gg(),l_=$a,Bp;if(a_){var c_=eb("RegExp.prototype.exec"),tb={},Rp=function(){throw tb},rb={toString:Rp,valueOf:Rp};typeof Symbol.toPrimitive=="symbol"&&(rb[Symbol.toPrimitive]=Rp),Bp=function(e){if(!e||typeof e!="object")return!1;var r=l_(e,"lastIndex"),n=r&&o_(r,"value");if(!n)return!1;try{c_(e,rb)}catch(s){return s===tb}}}else{var u_=eb("Object.prototype.toString"),f_="[object RegExp]";Bp=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:u_(e)===f_}}var p_=Bp,d_=Ga,h_=p_,y_=d_("RegExp.prototype.exec"),m_=Yo,g_=function(e){if(!h_(e))throw new m_("`regex` must be a RegExp");return function(n){return y_(e,n)!==null}},jp,nb;function b_(){if(nb)return jp;nb=1;const t=(function*(){}).constructor;return jp=()=>t,jp}var ib=Ga,v_=g_,S_=v_(/^\s*(?:function)?\*/),T_=Yc(),sb=Cp(),E_=ib("Object.prototype.toString"),x_=ib("Function.prototype.toString"),P_=b_(),__=function(e){if(typeof e!="function")return!1;if(S_(x_(e)))return!0;if(!T_){var r=E_(e);return r==="[object GeneratorFunction]"}if(!sb)return!1;var n=P_();return n&&sb(e)===n.prototype},ab=Function.prototype.toString,za=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Mp,nu;if(typeof za=="function"&&typeof Object.defineProperty=="function")try{Mp=Object.defineProperty({},"length",{get:function(){throw nu}}),nu={},za(function(){throw 42},null,Mp)}catch(t){t!==nu&&(za=null)}else za=null;var w_=/^\s*class\b/,Lp=function(e){try{var r=ab.call(e);return w_.test(r)}catch{return!1}},Fp=function(e){try{return Lp(e)?!1:(ab.call(e),!0)}catch{return!1}},iu=Object.prototype.toString,A_="[object Object]",C_="[object Function]",I_="[object GeneratorFunction]",O_="[object HTMLAllCollection]",N_="[object HTML document.all class]",k_="[object HTMLCollection]",D_=typeof Symbol=="function"&&!!Symbol.toStringTag,B_=!(0 in[,]),qp=function(){return!1};if(typeof document=="object"){var R_=document.all;iu.call(R_)===iu.call(document.all)&&(qp=function(e){if((B_||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=iu.call(e);return(r===O_||r===N_||r===k_||r===A_)&&e("")==null}catch{}return!1})}var j_=za?function(e){if(qp(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{za(e,null,Mp)}catch(r){if(r!==nu)return!1}return!Lp(e)&&Fp(e)}:function(e){if(qp(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(D_)return Fp(e);if(Lp(e))return!1;var r=iu.call(e);return r!==C_&&r!==I_&&!/^\[object HTML/.test(r)?!1:Fp(e)},M_=j_,L_=Object.prototype.toString,ob=Object.prototype.hasOwnProperty,F_=function(e,r,n){for(var s=0,o=e.length;s<o;s++)ob.call(e,s)&&(n==null?r(e[s],s,e):r.call(n,e[s],s,e))},q_=function(e,r,n){for(var s=0,o=e.length;s<o;s++)n==null?r(e.charAt(s),s,e):r.call(n,e.charAt(s),s,e)},$_=function(e,r,n){for(var s in e)ob.call(e,s)&&(n==null?r(e[s],s,e):r.call(n,e[s],s,e))};function U_(t){return L_.call(t)==="[object Array]"}var V_=function(e,r,n){if(!M_(r))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),U_(e)?F_(e,r,s):typeof e=="string"?q_(e,r,s):$_(e,r,s)},K_=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],$p=K_,W_=typeof globalThis>"u"?Ii:globalThis,G_=function(){for(var e=[],r=0;r<$p.length;r++)typeof W_[$p[r]]=="function"&&(e[e.length]=$p[r]);return e},lb={exports:{}},cb=Zc,z_=kg,Ha=Yo,ub=$a,fb=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Ha("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ha("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ha("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ha("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ha("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ha("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,p=!!ub&&ub(e,r);if(cb)cb(e,r,{configurable:a===null&&p?p.configurable:!a,enumerable:s===null&&p?p.enumerable:!s,value:n,writable:o===null&&p?p.writable:!o});else if(u||!s&&!o&&!a)e[r]=n;else throw new z_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Up=Zc,pb=function(){return!!Up};pb.hasArrayLengthDefineBug=function(){if(!Up)return null;try{return Up([],"length",{value:1}).length!==1}catch{return!0}};var db=pb,H_=kp,hb=fb,J_=db(),yb=$a,mb=Yo,Y_=H_("%Math.floor%"),X_=function(e,r){if(typeof e!="function")throw new mb("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Y_(r)!==r)throw new mb("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],s=!0,o=!0;if("length"in e&&yb){var a=yb(e,"length");a&&!a.configurable&&(s=!1),a&&!a.writable&&(o=!1)}return(s||o||!n)&&(J_?hb(e,"length",r,!0,!0):hb(e,"length",r)),e},Q_=Xo(),Z_=Pp(),ew=Ug,tw=function(){return ew(Q_,Z_,arguments)};(function(t){var e=X_,r=Zc,n=_p,s=tw;t.exports=function(a){var u=n(arguments),p=1+a.length-(arguments.length-1);return e(u,p>0?p:0,!0)},r?r(t.exports,"apply",{value:s}):t.exports.apply=s})(lb);var su=lb.exports,au=V_,rw=G_,gb=su,Vp=Ga,ou=$a,lu=Cp(),nw=Vp("Object.prototype.toString"),bb=Yc(),vb=typeof globalThis>"u"?Ii:globalThis,Kp=rw(),Wp=Vp("String.prototype.slice"),iw=Vp("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n<e.length;n+=1)if(e[n]===r)return n;return-1},cu={__proto__:null};bb&&ou&&lu?au(Kp,function(t){var e=new vb[t];if(Symbol.toStringTag in e&&lu){var r=lu(e),n=ou(r,Symbol.toStringTag);if(!n&&r){var s=lu(r);n=ou(s,Symbol.toStringTag)}if(n&&n.get){var o=gb(n.get);cu["$"+t]=o}}}):au(Kp,function(t){var e=new vb[t],r=e.slice||e.set;if(r){var n=gb(r);cu["$"+t]=n}});function sw(t){var e=!1;return au(cu,function(r,n){if(!e)try{"$"+r(t)===n&&(e=Wp(n,1))}catch{}}),e}function aw(t){var e=!1;return au(cu,function(r,n){if(!e)try{r(t),e=Wp(n,1)}catch{}}),e}function ow(t){return iw(Kp,t)>-1}var Sb=function(e){if(!e||typeof e!="object")return!1;if(!bb){var r=Wp(nw(e),8,-1);return ow(r)?r:r!=="Object"?!1:aw(e)}return ou?sw(e):null},lw=Sb,cw=function(e){return!!lw(e)};(function(t){var e=s_,r=__,n=Sb,s=cw;function o(Le){return Le.call.bind(Le)}var a=typeof BigInt<"u",u=typeof Symbol<"u",p=o(Object.prototype.toString),y=o(Number.prototype.valueOf),h=o(String.prototype.valueOf),g=o(Boolean.prototype.valueOf);if(a)var b=o(BigInt.prototype.valueOf);if(u)var S=o(Symbol.prototype.valueOf);function O(Le,gt){if(typeof Le!="object")return!1;try{return gt(Le),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=s;function _(Le){return typeof Promise<"u"&&Le instanceof Promise||Le!==null&&typeof Le=="object"&&typeof Le.then=="function"&&typeof Le.catch=="function"}t.isPromise=_;function w(Le){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Le):s(Le)||U(Le)}t.isArrayBufferView=w;function C(Le){return n(Le)==="Uint8Array"}t.isUint8Array=C;function T(Le){return n(Le)==="Uint8ClampedArray"}t.isUint8ClampedArray=T;function x(Le){return n(Le)==="Uint16Array"}t.isUint16Array=x;function E(Le){return n(Le)==="Uint32Array"}t.isUint32Array=E;function j(Le){return n(Le)==="Int8Array"}t.isInt8Array=j;function R(Le){return n(Le)==="Int16Array"}t.isInt16Array=R;function I(Le){return n(Le)==="Int32Array"}t.isInt32Array=I;function D(Le){return n(Le)==="Float32Array"}t.isFloat32Array=D;function Z(Le){return n(Le)==="Float64Array"}t.isFloat64Array=Z;function J(Le){return n(Le)==="BigInt64Array"}t.isBigInt64Array=J;function N(Le){return n(Le)==="BigUint64Array"}t.isBigUint64Array=N;function $(Le){return p(Le)==="[object Map]"}$.working=typeof Map<"u"&&$(new Map);function ne(Le){return typeof Map>"u"?!1:$.working?$(Le):Le instanceof Map}t.isMap=ne;function me(Le){return p(Le)==="[object Set]"}me.working=typeof Set<"u"&&me(new Set);function Ce(Le){return typeof Set>"u"?!1:me.working?me(Le):Le instanceof Set}t.isSet=Ce;function Ae(Le){return p(Le)==="[object WeakMap]"}Ae.working=typeof WeakMap<"u"&&Ae(new WeakMap);function ce(Le){return typeof WeakMap>"u"?!1:Ae.working?Ae(Le):Le instanceof WeakMap}t.isWeakMap=ce;function ue(Le){return p(Le)==="[object WeakSet]"}ue.working=typeof WeakSet<"u"&&ue(new WeakSet);function K(Le){return ue(Le)}t.isWeakSet=K;function Y(Le){return p(Le)==="[object ArrayBuffer]"}Y.working=typeof ArrayBuffer<"u"&&Y(new ArrayBuffer);function he(Le){return typeof ArrayBuffer>"u"?!1:Y.working?Y(Le):Le instanceof ArrayBuffer}t.isArrayBuffer=he;function ae(Le){return p(Le)==="[object DataView]"}ae.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ae(new DataView(new ArrayBuffer(1),0,1));function U(Le){return typeof DataView>"u"?!1:ae.working?ae(Le):Le instanceof DataView}t.isDataView=U;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function H(Le){return p(Le)==="[object SharedArrayBuffer]"}function ye(Le){return typeof L>"u"?!1:(typeof H.working>"u"&&(H.working=H(new L)),H.working?H(Le):Le instanceof L)}t.isSharedArrayBuffer=ye;function Ie(Le){return p(Le)==="[object AsyncFunction]"}t.isAsyncFunction=Ie;function Ee(Le){return p(Le)==="[object Map Iterator]"}t.isMapIterator=Ee;function De(Le){return p(Le)==="[object Set Iterator]"}t.isSetIterator=De;function Me(Le){return p(Le)==="[object Generator]"}t.isGeneratorObject=Me;function Ve(Le){return p(Le)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=Ve;function Ze(Le){return O(Le,y)}t.isNumberObject=Ze;function ut(Le){return O(Le,h)}t.isStringObject=ut;function st(Le){return O(Le,g)}t.isBooleanObject=st;function dt(Le){return a&&O(Le,b)}t.isBigIntObject=dt;function $e(Le){return u&&O(Le,S)}t.isSymbolObject=$e;function je(Le){return Ze(Le)||ut(Le)||st(Le)||dt(Le)||$e(Le)}t.isBoxedPrimitive=je;function qe(Le){return typeof Uint8Array<"u"&&(he(Le)||ye(Le))}t.isAnyArrayBuffer=qe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Le){Object.defineProperty(t,Le,{enumerable:!1,value:function(){throw new Error(Le+" is not supported in userland")}})})})(Ng);var uw=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Gp={exports:{}};typeof Object.create=="function"?Gp.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Gp.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var fw=Gp.exports;(function(t){var e={},r=Object.getOwnPropertyDescriptors||function(L){for(var H=Object.keys(L),ye={},Ie=0;Ie<H.length;Ie++)ye[H[Ie]]=Object.getOwnPropertyDescriptor(L,H[Ie]);return ye},n=/%[sdj%]/g;t.format=function(U){if(!R(U)){for(var L=[],H=0;H<arguments.length;H++)L.push(u(arguments[H]));return L.join(" ")}for(var H=1,ye=arguments,Ie=ye.length,Ee=String(U).replace(n,function(Me){if(Me==="%%")return"%";if(H>=Ie)return Me;switch(Me){case"%s":return String(ye[H++]);case"%d":return Number(ye[H++]);case"%j":try{return JSON.stringify(ye[H++])}catch{return"[Circular]"}default:return Me}}),De=ye[H];H<Ie;De=ye[++H])x(De)||!J(De)?Ee+=" "+De:Ee+=" "+u(De);return Ee},t.deprecate=function(U,L){if(typeof process<"u"&&process.noDeprecation===!0)return U;if(typeof process>"u")return function(){return t.deprecate(U,L).apply(this,arguments)};var H=!1;function ye(){if(!H){if(process.throwDeprecation)throw new Error(L);process.traceDeprecation?console.trace(L):console.error(L),H=!0}return U.apply(this,arguments)}return ye};var s={},o=/^$/;if(e.NODE_DEBUG){var a=e.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+a+"$","i")}t.debuglog=function(U){if(U=U.toUpperCase(),!s[U])if(o.test(U)){var L=process.pid;s[U]=function(){var H=t.format.apply(t,arguments);console.error("%s %d: %s",U,L,H)}}else s[U]=function(){};return s[U]};function u(U,L){var H={seen:[],stylize:y};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),T(L)?H.showHidden=L:L&&t._extend(H,L),D(H.showHidden)&&(H.showHidden=!1),D(H.depth)&&(H.depth=2),D(H.colors)&&(H.colors=!1),D(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=p),g(H,U,H.depth)}t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(U,L){var H=u.styles[L];return H?"\x1B["+u.colors[H][0]+"m"+U+"\x1B["+u.colors[H][1]+"m":U}function y(U,L){return U}function h(U){var L={};return U.forEach(function(H,ye){L[H]=!0}),L}function g(U,L,H){if(U.customInspect&&L&&ne(L.inspect)&&L.inspect!==t.inspect&&!(L.constructor&&L.constructor.prototype===L)){var ye=L.inspect(H,U);return R(ye)||(ye=g(U,ye,H)),ye}var Ie=b(U,L);if(Ie)return Ie;var Ee=Object.keys(L),De=h(Ee);if(U.showHidden&&(Ee=Object.getOwnPropertyNames(L)),$(L)&&(Ee.indexOf("message")>=0||Ee.indexOf("description")>=0))return S(L);if(Ee.length===0){if(ne(L)){var Me=L.name?": "+L.name:"";return U.stylize("[Function"+Me+"]","special")}if(Z(L))return U.stylize(RegExp.prototype.toString.call(L),"regexp");if(N(L))return U.stylize(Date.prototype.toString.call(L),"date");if($(L))return S(L)}var Ve="",Ze=!1,ut=["{","}"];if(C(L)&&(Ze=!0,ut=["[","]"]),ne(L)){var st=L.name?": "+L.name:"";Ve=" [Function"+st+"]"}if(Z(L)&&(Ve=" "+RegExp.prototype.toString.call(L)),N(L)&&(Ve=" "+Date.prototype.toUTCString.call(L)),$(L)&&(Ve=" "+S(L)),Ee.length===0&&(!Ze||L.length==0))return ut[0]+Ve+ut[1];if(H<0)return Z(L)?U.stylize(RegExp.prototype.toString.call(L),"regexp"):U.stylize("[Object]","special");U.seen.push(L);var dt;return Ze?dt=O(U,L,H,De,Ee):dt=Ee.map(function($e){return _(U,L,H,De,$e,Ze)}),U.seen.pop(),w(dt,Ve,ut)}function b(U,L){if(D(L))return U.stylize("undefined","undefined");if(R(L)){var H="'"+JSON.stringify(L).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(H,"string")}if(j(L))return U.stylize(""+L,"number");if(T(L))return U.stylize(""+L,"boolean");if(x(L))return U.stylize("null","null")}function S(U){return"["+Error.prototype.toString.call(U)+"]"}function O(U,L,H,ye,Ie){for(var Ee=[],De=0,Me=L.length;De<Me;++De)K(L,String(De))?Ee.push(_(U,L,H,ye,String(De),!0)):Ee.push("");return Ie.forEach(function(Ve){Ve.match(/^\d+$/)||Ee.push(_(U,L,H,ye,Ve,!0))}),Ee}function _(U,L,H,ye,Ie,Ee){var De,Me,Ve;if(Ve=Object.getOwnPropertyDescriptor(L,Ie)||{value:L[Ie]},Ve.get?Ve.set?Me=U.stylize("[Getter/Setter]","special"):Me=U.stylize("[Getter]","special"):Ve.set&&(Me=U.stylize("[Setter]","special")),K(ye,Ie)||(De="["+Ie+"]"),Me||(U.seen.indexOf(Ve.value)<0?(x(H)?Me=g(U,Ve.value,null):Me=g(U,Ve.value,H-1),Me.indexOf(`
65
+ `;return this.replaceWith(Mt)[0].get("arguments.0")}function se(ee){const oe=ee.params.findIndex(W=>Ce(W)||Ae(W));return oe===-1?ee.params.length:oe}return rs}var op={},Tg;function Yx(){return Tg||(Tg=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t._guessExecutionStatusRelativeTo=Z,t._resolve=me,t.canHaveVariableDeclarationOrExpression=O,t.canSwapBetweenExpressionAndStatement=_,t.getSource=x,t.isCompletionRecord=w,t.isConstantExpression=Ce,t.isInStrictMode=Ae,t.isNodeType=S,t.isStatementOrBlock=C,t.isStatic=b,t.matchesPattern=g,t.referencesImport=T,t.resolve=ne,t.willIMaybeExecuteBefore=E;var e=Ut();const{STATEMENT_OR_BLOCK_KEYS:r,VISITOR_KEYS:n,isBlockStatement:s,isExpression:o,isIdentifier:a,isLiteral:u,isStringLiteral:p,isType:y,matchesPattern:h}=e;function g(ce,ue){return h(this.node,ce,ue)}t.has=function(ue){var K;const Y=(K=this.node)==null?void 0:K[ue];return Y&&Array.isArray(Y)?!!Y.length:!!Y};function b(){return this.scope.isStatic(this.node)}t.is=t.has,t.isnt=function(ue){return!this.has(ue)},t.equals=function(ue,K){return this.node[ue]===K};function S(ce){return y(this.type,ce)}function O(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function _(ce){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?s(ce):this.isBlockStatement()?o(ce):!1}function w(ce){let ue=this,K=!0;do{const{type:Y,container:he}=ue;if(!K&&(ue.isFunction()||Y==="StaticBlock"))return!!ce;if(K=!1,Array.isArray(he)&&ue.key!==he.length-1)return!1}while((ue=ue.parentPath)&&!ue.isProgram()&&!ue.isDoExpression());return!0}function C(){return this.parentPath.isLabeledStatement()||s(this.container)?!1:r.includes(this.key)}function T(ce,ue){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===ue||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?p(this.node.property,{value:ue}):this.node.property.name===ue)){const ae=this.get("object");return ae.isReferencedIdentifier()&&ae.referencesImport(ce,"*")}return!1}const K=this.scope.getBinding(this.node.name);if((K==null?void 0:K.kind)!=="module")return!1;const Y=K.path,he=Y.parentPath;if(!he.isImportDeclaration())return!1;if(he.node.source.value===ce){if(!ue)return!0}else return!1;return!!(Y.isImportDefaultSpecifier()&&ue==="default"||Y.isImportNamespaceSpecifier()&&ue==="*"||Y.isImportSpecifier()&&a(Y.node.imported,{name:ue}))}function x(){const ce=this.node;if(ce.end){const ue=this.hub.getCode();if(ue)return ue.slice(ce.start,ce.end)}return""}function E(ce){return this._guessExecutionStatusRelativeTo(ce)!=="after"}function j(ce){return ce.isProgram()?ce:(ce.parentPath.scope.getFunctionParent()||ce.parentPath.scope.getProgramParent()).path}function R(ce,ue){switch(ce){case"LogicalExpression":return ue==="right";case"ConditionalExpression":case"IfStatement":return ue==="consequent"||ue==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return ue==="body";case"ForStatement":return ue==="body"||ue==="update";case"SwitchStatement":return ue==="cases";case"TryStatement":return ue==="handler";case"AssignmentPattern":return ue==="right";case"OptionalMemberExpression":return ue==="property";case"OptionalCallExpression":return ue==="arguments";default:return!1}}function I(ce,ue){for(let K=0;K<ue;K++){const Y=ce[K];if(R(Y.parent.type,Y.parentKey))return!0}return!1}const D=Symbol();function Z(ce){return J(this,ce,new Map)}function J(ce,ue,K){const Y={this:j(ce),target:j(ue)};if(Y.target.node!==Y.this.node)return $(ce,Y.target,K);const he={target:ue.getAncestry(),this:ce.getAncestry()};if(he.target.includes(ce))return"after";if(he.this.includes(ue))return"before";let ae;const U={target:0,this:0};for(;!ae&&U.this<he.this.length;){const Ie=he.this[U.this];U.target=he.target.indexOf(Ie),U.target>=0?ae=Ie:U.this++}if(!ae)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(I(he.this,U.this-1)||I(he.target,U.target-1))return"unknown";const L={this:he.this[U.this-1],target:he.target[U.target-1]};if(L.target.listKey&&L.this.listKey&&L.target.container===L.this.container)return L.target.key>L.this.key?"before":"after";const H=n[ae.type],ye={this:H.indexOf(L.this.parentKey),target:H.indexOf(L.target.parentKey)};return ye.target>ye.this?"before":"after"}function N(ce,ue,K){if(ue.isFunctionDeclaration()){if(ue.parentPath.isExportDeclaration())return"unknown"}else return J(ce,ue,K)==="before"?"before":"unknown";const Y=ue.scope.getBinding(ue.node.id.name);if(!Y.references)return"before";const he=Y.referencePaths;let ae;for(const U of he){if(!!U.find(ye=>ye.node===ue.node))continue;if(U.key!=="callee"||!U.parentPath.isCallExpression())return"unknown";const H=J(ce,U,K);if(ae&&ae!==H)return"unknown";ae=H}return ae}function $(ce,ue,K){let Y=K.get(ce.node),he;if(!Y)K.set(ce.node,Y=new Map);else if(he=Y.get(ue.node))return he===D?"unknown":he;Y.set(ue.node,D);const ae=N(ce,ue,K);return Y.set(ue.node,ae),ae}function ne(ce,ue){return me.call(this,ce,ue)||this}function me(ce,ue){var K;if(!((K=ue)!=null&&K.includes(this)))if(ue=ue||[],ue.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(ce,ue)}else if(this.isReferencedIdentifier()){const Y=this.scope.getBinding(this.node.name);if(!Y||!Y.constant||Y.kind==="module")return;if(Y.path!==this){const he=Y.path.resolve(ce,ue);return this.find(ae=>ae.node===he.node)?void 0:he}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(ce,ue);if(ce&&this.isMemberExpression()){const Y=this.toComputedKey();if(!u(Y))return;const he=Y.value,ae=this.get("object").resolve(ce,ue);if(ae.isObjectExpression()){const U=ae.get("properties");for(const L of U){if(!L.isProperty())continue;const H=L.get("key");let ye=L.isnt("computed")&&H.isIdentifier({name:he});if(ye=ye||H.isLiteral({value:he}),ye)return L.get("value").resolve(ce,ue)}}else if(ae.isArrayExpression()&&!isNaN(+he)){const L=ae.get("elements")[he];if(L)return L.resolve(ce,ue)}}}}function Ce(){if(this.isIdentifier()){const ce=this.scope.getBinding(this.node.name);return ce?ce.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(ce=>ce.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){const{operator:ce}=this.node;return ce!=="in"&&ce!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function Ae(){return!!(this.isProgram()?this:this.parentPath).find(K=>{if(K.isProgram({sourceType:"module"})||K.isClass())return!0;if(K.isArrowFunctionExpression()&&!K.get("body").isBlockStatement())return!1;let Y;if(K.isFunction())Y=K.node.body;else if(K.isProgram())Y=K.node;else return!1;for(const he of Y.directives)if(he.value.value==="use strict")return!0;return!1})}}(op)),op}var zr={},Eg;function Xx(){if(Eg)return zr;Eg=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr._getKey=Z,zr._getPattern=J,zr.get=D,zr.getAllNextSiblings=R,zr.getAllPrevSiblings=I,zr.getAssignmentIdentifiers=N,zr.getBindingIdentifierPaths=me,zr.getBindingIdentifiers=$,zr.getCompletionRecords=T,zr.getNextSibling=j,zr.getOpposite=g,zr.getOuterBindingIdentifierPaths=Ce,zr.getOuterBindingIdentifiers=ne,zr.getPrevSibling=E,zr.getSibling=x;var t=Js(),e=Ut();const{getAssignmentIdentifiers:r,getBindingIdentifiers:n,getOuterBindingIdentifiers:s,numericLiteral:o,unaryExpression:a}=e,u=0,p=1;function y(Ae){return{type:u,path:Ae}}function h(Ae){return{type:p,path:Ae}}function g(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function b(Ae,ce,ue){return Ae&&ce.push(...C(Ae,ue)),ce}function S(Ae,ce,ue){let K=[];for(let Y=0;Y<Ae.length;Y++){const he=Ae[Y],ae=C(he,ue),U=[],L=[];for(const H of ae)H.type===u&&U.push(H),H.type===p&&L.push(H);U.length&&(K=U),ce.push(...L)}return ce.push(...K),ce}function O(Ae){Ae.forEach(ce=>{ce.type=p})}function _(Ae,ce){Ae.forEach(ue=>{ue.path.isBreakStatement({label:null})&&(ce?ue.path.replaceWith(a("void",o(0))):ue.path.remove())})}function w(Ae,ce){const ue=[];if(ce.canHaveBreak){let K=[];for(let Y=0;Y<Ae.length;Y++){const he=Ae[Y],ae=Object.assign({},ce,{inCaseClause:!1});he.isBlockStatement()&&(ce.inCaseClause||ce.shouldPopulateBreak)?ae.shouldPopulateBreak=!0:ae.shouldPopulateBreak=!1;const U=C(he,ae);if(U.length>0&&U.every(L=>L.type===p)){K.length>0&&U.every(L=>L.path.isBreakStatement({label:null}))?(O(K),ue.push(...K),K.some(L=>L.path.isDeclaration())&&(ue.push(...U),ce.shouldPreserveBreak||_(U,!0)),ce.shouldPreserveBreak||_(U,!1)):(ue.push(...U),!ce.shouldPopulateBreak&&!ce.shouldPreserveBreak&&_(U,!0));break}if(Y===Ae.length-1)ue.push(...U);else{K=[];for(let L=0;L<U.length;L++){const H=U[L];H.type===p&&ue.push(H),H.type===u&&K.push(H)}}}}else if(Ae.length)for(let K=Ae.length-1;K>=0;K--){const Y=C(Ae[K],ce);if(Y.length>1||Y.length===1&&!Y[0].path.isVariableDeclaration()&&!Y[0].path.isEmptyStatement()){ue.push(...Y);break}}return ue}function C(Ae,ce){let ue=[];if(Ae.isIfStatement())ue=b(Ae.get("consequent"),ue,ce),ue=b(Ae.get("alternate"),ue,ce);else{if(Ae.isDoExpression()||Ae.isFor()||Ae.isWhile()||Ae.isLabeledStatement())return b(Ae.get("body"),ue,ce);if(Ae.isProgram()||Ae.isBlockStatement())return w(Ae.get("body"),ce);if(Ae.isFunction())return C(Ae.get("body"),ce);if(Ae.isTryStatement())ue=b(Ae.get("block"),ue,ce),ue=b(Ae.get("handler"),ue,ce);else{if(Ae.isCatchClause())return b(Ae.get("body"),ue,ce);if(Ae.isSwitchStatement())return S(Ae.get("cases"),ue,ce);if(Ae.isSwitchCase())return w(Ae.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:ce.shouldPreserveBreak});Ae.isBreakStatement()?ue.push(h(Ae)):ue.push(y(Ae))}}return ue}function T(Ae=!1){return C(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:Ae}).map(ue=>ue.path)}function x(Ae){return t.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:Ae}).setContext(this.context)}function E(){return this.getSibling(this.key-1)}function j(){return this.getSibling(this.key+1)}function R(){let Ae=this.key,ce=this.getSibling(++Ae);const ue=[];for(;ce.node;)ue.push(ce),ce=this.getSibling(++Ae);return ue}function I(){let Ae=this.key,ce=this.getSibling(--Ae);const ue=[];for(;ce.node;)ue.push(ce),ce=this.getSibling(--Ae);return ue}function D(Ae,ce=!0){ce===!0&&(ce=this.context);const ue=Ae.split(".");return ue.length===1?Z.call(this,Ae,ce):J.call(this,ue,ce)}function Z(Ae,ce){const ue=this.node,K=ue[Ae];return Array.isArray(K)?K.map((Y,he)=>t.default.get({listKey:Ae,parentPath:this,parent:ue,container:K,key:he}).setContext(ce)):t.default.get({parentPath:this,parent:ue,container:ue,key:Ae}).setContext(ce)}function J(Ae,ce){let ue=this;for(const K of Ae)K==="."?ue=ue.parentPath:Array.isArray(ue)?ue=ue[K]:ue=ue.get(K,ce);return ue}function N(){return r(this.node)}function $(Ae){return n(this.node,Ae)}function ne(Ae){return s(this.node,Ae)}function me(Ae=!1,ce=!1){const K=[this],Y=Object.create(null);for(;K.length;){const he=K.shift();if(!he||!he.node)continue;const ae=n.keys[he.node.type];if(he.isIdentifier()){Ae?(Y[he.node.name]=Y[he.node.name]||[]).push(he):Y[he.node.name]=he;continue}if(he.isExportDeclaration()){const U=he.get("declaration");U.isDeclaration()&&K.push(U);continue}if(ce){if(he.isFunctionDeclaration()){K.push(he.get("id"));continue}if(he.isFunctionExpression())continue}if(ae)for(let U=0;U<ae.length;U++){const L=ae[U],H=he.get(L);Array.isArray(H)?K.push(...H):H.node&&K.push(H)}}return Y}function Ce(Ae=!1){return this.getBindingIdentifierPaths(Ae,!0)}return zr}var Fa={},xg;function Qx(){if(xg)return Fa;xg=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.addComment=o,Fa.addComments=a,Fa.shareCommentsWithSiblings=n;var t=Ut();const{addComment:e,addComments:r}=t;function n(){if(typeof this.key=="string")return;const u=this.node;if(!u)return;const p=u.trailingComments,y=u.leadingComments;if(!p&&!y)return;const h=this.getSibling(this.key-1),g=this.getSibling(this.key+1),b=!!h.node,S=!!g.node;b&&(y&&h.addComments("trailing",s(y,h.node.trailingComments)),p&&!S&&h.addComments("trailing",p)),S&&(p&&g.addComments("leading",s(p,g.node.leadingComments)),y&&!b&&g.addComments("leading",y))}function s(u,p){if(!(p!=null&&p.length))return u;const y=new Set(p);return u.filter(h=>!y.has(h))}function o(u,p,y){e(this.node,u,p,y)}function a(u,p){r(this.node,u,p)}return Fa}var Pg;function Js(){if(Pg)return Ni;Pg=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=Ni.SHOULD_STOP=Ni.SHOULD_SKIP=Ni.REMOVED=void 0;var t=h1(),e=Gf(),r=qr(),n=w1(),s=Ut(),o=s,a=La(),u=np(),p=Ux(),y=Wx(),h=bg(),g=Hx(),b=Jx(),S=Yx(),O=ki(),_=O,w=sp(),C=ap(),T=Xx(),x=Qx(),E=v1();const{validate:j}=s,R=e("babel");Ni.REMOVED=1,Ni.SHOULD_STOP=2,Ni.SHOULD_SKIP=4;const I=Ni.default=class vT{constructor(J,N){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=N,this.hub=J,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(J){J?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(J){J?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(J){J?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:J,parentPath:N,parent:$,container:ne,listKey:me,key:Ce}){if(!J&&N&&(J=N.hub),!$)throw new Error("To get a node path the parent needs to exist");const Ae=ne[Ce],ce=a.getOrCreateCachedPaths($,N);let ue=ce.get(Ae);return ue||(ue=new vT(J,$),Ae&&ce.set(Ae,ue)),O.setup.call(ue,N,ne,me,Ce),ue}getScope(J){return this.isScope()?new n.default(this):J}setData(J,N){return this.data==null&&(this.data=Object.create(null)),this.data[J]=N}getData(J,N){this.data==null&&(this.data=Object.create(null));let $=this.data[J];return $===void 0&&N!==void 0&&($=this.data[J]=N),$}hasNode(){return this.node!=null}buildCodeFrameError(J,N=SyntaxError){return this.hub.buildError(this.node,J,N)}traverse(J,N){(0,r.default)(this.node,J,this.scope,N,this)}set(J,N){j(this.node,J,N),this.node[J]=N}getPathLocation(){const J=[];let N=this;do{let $=N.key;N.inList&&($=`${N.listKey}[${$}]`),J.unshift($)}while(N=N.parentPath);return J.join(".")}debug(J){R.enabled&&R(`${this.getPathLocation()} ${this.type}: ${J}`)}toString(){return(0,u.default)(this.node).code}get inList(){return!!this.listKey}set inList(J){J||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},D={findParent:p.findParent,find:p.find,getFunctionParent:p.getFunctionParent,getStatementParent:p.getStatementParent,getEarliestCommonAncestorFrom:p.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:p.getDeepestCommonAncestorFrom,getAncestry:p.getAncestry,isAncestor:p.isAncestor,isDescendant:p.isDescendant,inType:p.inType,getTypeAnnotation:y.getTypeAnnotation,isBaseType:y.isBaseType,couldBeBaseType:y.couldBeBaseType,baseTypeStrictlyMatches:y.baseTypeStrictlyMatches,isGenericType:y.isGenericType,replaceWithMultiple:h.replaceWithMultiple,replaceWithSourceString:h.replaceWithSourceString,replaceWith:h.replaceWith,replaceExpressionWithStatements:h.replaceExpressionWithStatements,replaceInline:h.replaceInline,evaluateTruthy:g.evaluateTruthy,evaluate:g.evaluate,toComputedKey:b.toComputedKey,ensureBlock:b.ensureBlock,unwrapFunctionEnvironment:b.unwrapFunctionEnvironment,arrowFunctionToExpression:b.arrowFunctionToExpression,splitExportDeclaration:b.splitExportDeclaration,ensureFunctionName:b.ensureFunctionName,matchesPattern:S.matchesPattern,isStatic:S.isStatic,isNodeType:S.isNodeType,canHaveVariableDeclarationOrExpression:S.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:S.canSwapBetweenExpressionAndStatement,isCompletionRecord:S.isCompletionRecord,isStatementOrBlock:S.isStatementOrBlock,referencesImport:S.referencesImport,getSource:S.getSource,willIMaybeExecuteBefore:S.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:S._guessExecutionStatusRelativeTo,resolve:S.resolve,isConstantExpression:S.isConstantExpression,isInStrictMode:S.isInStrictMode,isDenylisted:_.isDenylisted,visit:_.visit,skip:_.skip,skipKey:_.skipKey,stop:_.stop,setContext:_.setContext,requeue:_.requeue,requeueComputedKeyAndDecorators:_.requeueComputedKeyAndDecorators,remove:w.remove,insertBefore:C.insertBefore,insertAfter:C.insertAfter,unshiftContainer:C.unshiftContainer,pushContainer:C.pushContainer,getOpposite:T.getOpposite,getCompletionRecords:T.getCompletionRecords,getSibling:T.getSibling,getPrevSibling:T.getPrevSibling,getNextSibling:T.getNextSibling,getAllNextSiblings:T.getAllNextSiblings,getAllPrevSiblings:T.getAllPrevSiblings,get:T.get,getAssignmentIdentifiers:T.getAssignmentIdentifiers,getBindingIdentifiers:T.getBindingIdentifiers,getOuterBindingIdentifiers:T.getOuterBindingIdentifiers,getBindingIdentifierPaths:T.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:T.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:x.shareCommentsWithSiblings,addComment:x.addComment,addComments:x.addComments};Object.assign(I.prototype,D),I.prototype.arrowFunctionToShadowed=b.arrowFunctionToShadowed,Object.assign(I.prototype,{has:S.has,is:S.is,isnt:S.isnt,equals:S.equals,hoist:C.hoist,updateSiblingKeys:C.updateSiblingKeys,call:_.call,isBlacklisted:_.isBlacklisted,setScope:_.setScope,resync:_.resync,popContext:_.popContext,pushContext:_.pushContext,setup:_.setup,setKey:_.setKey}),I.prototype._guessExecutionStatusRelativeToDifferentFunctions=S._guessExecutionStatusRelativeTo,I.prototype._guessExecutionStatusRelativeToDifferentFunctions=S._guessExecutionStatusRelativeTo,Object.assign(I.prototype,{_getTypeAnnotation:y._getTypeAnnotation,_replaceWith:h._replaceWith,_resolve:S._resolve,_call:_._call,_resyncParent:_._resyncParent,_resyncKey:_._resyncKey,_resyncList:_._resyncList,_resyncRemoved:_._resyncRemoved,_getQueueContexts:_._getQueueContexts,_removeFromScope:w._removeFromScope,_callRemovalHooks:w._callRemovalHooks,_remove:w._remove,_markRemoved:w._markRemoved,_assertUnremoved:w._assertUnremoved,_containerInsert:C._containerInsert,_containerInsertBefore:C._containerInsertBefore,_containerInsertAfter:C._containerInsertAfter,_verifyNodeList:C._verifyNodeList,_getKey:T._getKey,_getPattern:T._getPattern});for(const Z of o.TYPES){const J=`is${Z}`,N=o[J];I.prototype[J]=function($){return N(this.node,$)},I.prototype[`assert${Z}`]=function($){if(!N(this.node,$))throw new TypeError(`Expected node path of type ${Z}`)}}Object.assign(I.prototype,E);for(const Z of Object.keys(t))Z.startsWith("_")||o.TYPES.includes(Z)||o.TYPES.push(Z);return Ni}var Jo={},_g;function wg(){if(_g)return Jo;_g=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=void 0;class t{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(r,n,s=TypeError){return new s(n)}}return Jo.default=t,Jo}var Ag;function Zx(){if(Ag)return Mo;Ag=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;var t=Js(),e=Ut(),r=ki(),n=wg();const{VISITOR_KEYS:s}=e;class o{constructor(u,p,y,h){this.queue=null,this.priorityQueue=null,this.parentPath=h,this.scope=u,this.state=y,this.opts=p}shouldVisit(u){const p=this.opts;if(p.enter||p.exit||p[u.type])return!0;const y=s[u.type];if(!(y!=null&&y.length))return!1;for(const h of y)if(u[h])return!0;return!1}create(u,p,y,h){const{parentPath:g}=this,b=g==null?u.type==="Program"||u.type==="File"?new n.default:void 0:g.hub;return t.default.get({parentPath:g,parent:u,container:p,key:y,listKey:h,hub:b})}maybeQueue(u,p){this.queue&&(p?this.queue.push(u):this.priorityQueue.push(u))}visitMultiple(u,p,y){if(u.length===0)return!1;const h=[];for(let g=0;g<u.length;g++){const b=u[g];b&&this.shouldVisit(b)&&h.push(this.create(p,u,g,y))}return this.visitQueue(h)}visitSingle(u,p){return this.shouldVisit(u[p])?this.visitQueue([this.create(u,u,p)]):!1}visitQueue(u){this.queue=u,this.priorityQueue=[];const p=new WeakSet;let y=!1,h=0;for(;h<u.length;){const g=u[h];if(h++,r.resync.call(g),(g.contexts.length===0||g.contexts[g.contexts.length-1]!==this)&&r.pushContext.call(g,this),g.key===null)continue;const{node:b}=g;if(!p.has(b)){if(b&&p.add(b),g.visit()){y=!0;break}if(this.priorityQueue.length&&(y=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=u,y))break}}for(let g=0;g<h;g++)r.popContext.call(u[g]);return this.queue=null,y}visit(u,p){const y=u[p];return y?Array.isArray(y)?this.visitMultiple(y,u,p):this.visitSingle(u,p):!1}}return Mo.default=o,Mo}var Cg;function lp(){if(Cg)return Vc;Cg=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.traverseNode=n;var t=Zx();Js();var e=Ut();ki();const{VISITOR_KEYS:r}=e;function n(s,o,a,u,p,y,h){const g=r[s.type];if(!g)return!1;const b=new t.default(a,o,u,p);if(h)return y!=null&&y[p.parentKey]?!1:b.visitQueue([p]);for(const S of g)if(!(y!=null&&y[S])&&b.visit(s,S))return!0;return!1}return Vc}var Ig;function ki(){if(Ig)return gr;Ig=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr._call=o,gr._forceSetScope=b,gr._getQueueContexts=J,gr._resyncKey=C,gr._resyncList=T,gr._resyncParent=w,gr._resyncRemoved=x,gr.call=s,gr.isDenylisted=a,gr.popContext=E,gr.pushContext=j,gr.requeue=D,gr.requeueComputedKeyAndDecorators=Z,gr.resync=_,gr.setContext=O,gr.setKey=I,gr.setScope=S,gr.setup=R,gr.skip=y,gr.skipKey=h,gr.stop=g,gr.visit=p;var t=lp(),e=Js(),r=sp(),n=Ut();function s(N){const $=this.opts;if(this.debug(N),this.node&&o.call(this,$[N]))return!0;if(this.node){var ne;return o.call(this,(ne=$[this.node.type])==null?void 0:ne[N])}return!1}function o(N){if(!N)return!1;for(const $ of N){if(!$)continue;const ne=this.node;if(!ne)return!0;const me=$.call(this.state,this,this.state);if(me&&typeof me=="object"&&typeof me.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(me)throw new Error(`Unexpected return value from visitor method ${$}`);if(this.node!==ne||this._traverseFlags>0)return!0}return!1}function a(){var N;const $=(N=this.opts.denylist)!=null?N:this.opts.blacklist;return $==null?void 0:$.includes(this.node.type)}gr.isBlacklisted=a;function u(N,$){N.context!==$&&(N.context=$,N.state=$.state,N.opts=$.opts)}function p(){var N,$;if(!this.node||this.isDenylisted()||(N=($=this.opts).shouldSkip)!=null&&N.call($,this))return!1;const ne=this.context;return this.shouldSkip||s.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(u(this,ne),this.debug("Recursing into..."),this.shouldStop=(0,t.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),u(this,ne),s.call(this,"exit"),this.shouldStop)}function y(){this.shouldSkip=!0}function h(N){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[N]=!0}function g(){this._traverseFlags|=e.SHOULD_SKIP|e.SHOULD_STOP}function b(){var N;let $=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&$.isMethod()||this.key==="discriminant"&&$.isSwitchStatement())&&($=$.parentPath);let ne;for(;$&&!ne;)ne=$.scope,$=$.parentPath;this.scope=this.getScope(ne),(N=this.scope)==null||N.init()}function S(){var N,$;if((N=this.opts)!=null&&N.noScope)return;let ne=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&ne.isMethod()||this.key==="discriminant"&&ne.isSwitchStatement())&&(ne=ne.parentPath);let me;for(;ne&&!me;){var Ce;if((Ce=ne.opts)!=null&&Ce.noScope)return;me=ne.scope,ne=ne.parentPath}this.scope=this.getScope(me),($=this.scope)==null||$.init()}function O(N){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,N&&(this.context=N,this.state=N.state,this.opts=N.opts),S.call(this),this}function _(){this.removed||(w.call(this),T.call(this),C.call(this))}function w(){this.parentPath&&(this.parent=this.parentPath.node)}function C(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let N=0;N<this.container.length;N++)if(this.container[N]===this.node){I.call(this,N);return}}else for(const N of Object.keys(this.container))if(this.container[N]===this.node){I.call(this,N);return}this.key=null}}function T(){if(!this.parent||!this.inList)return;const N=this.parent[this.listKey];this.container!==N&&(this.container=N||null)}function x(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&r._markRemoved.call(this)}function E(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function j(N){this.contexts.push(N),this.setContext(N)}function R(N,$,ne,me){this.listKey=ne,this.container=$,this.parentPath=N||this.parentPath,I.call(this,me)}function I(N){var $;this.key=N,this.node=this.container[this.key],this.type=($=this.node)==null?void 0:$.type}function D(N=this){if(N.removed)return;const $=this.contexts;for(const ne of $)ne.maybeQueue(N)}function Z(){const{context:N,node:$}=this;if(!n.isPrivate($)&&$.computed&&N.maybeQueue(this.get("key")),$.decorators)for(const ne of this.get("decorators"))N.maybeQueue(ne)}function J(){let N=this,$=this.contexts;for(;!$.length&&(N=N.parentPath,!!N);)$=N.contexts;return $}return gr}var Og;function qr(){return Og||(Og=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Hub",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"NodePath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.default}}),t.visitors=t.default=void 0,ki();var e=Wc();t.visitors=e;var r=Ut(),n=La(),s=lp(),o=Js(),a=w1(),u=wg();const{VISITOR_KEYS:p,removeProperties:y,traverseFast:h}=r;function g(b,S={},O,_,w,C){if(b){if(!S.noScope&&!O&&b.type!=="Program"&&b.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${b.type} node without passing scope and parentPath.`);if(!w&&C)throw new Error("visitSelf can only be used when providing a NodePath.");p[b.type]&&(e.explode(S),(0,s.traverseNode)(b,S,O,_,w,void 0,C))}}t.default=g,g.visitors=e,g.verify=e.verify,g.explode=e.explode,g.cheap=function(b,S){h(b,S)},g.node=function(b,S,O,_,w,C){(0,s.traverseNode)(b,S,O,_,w,C)},g.clearNode=function(b,S){y(b,S)},g.removeProperties=function(b,S){return h(b,g.clearNode,S),b},g.hasType=function(b,S,O){return O!=null&&O.includes(b.type)?!1:b.type===S?!0:h(b,function(_){if(O!=null&&O.includes(_.type))return h.skip;if(_.type===S)return h.stop})},g.cache=n}(Vf)),Vf}var cp={exports:{}};(function(t,e){var r={};e=t.exports=D;var n;typeof process=="object"&&r&&r.NODE_DEBUG&&/\bsemver\b/i.test(r.NODE_DEBUG)?n=function(){var te=Array.prototype.slice.call(arguments,0);te.unshift("SEMVER"),console.log.apply(console,te)}:n=function(){},e.SEMVER_SPEC_VERSION="2.0.0";var s=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=16,u=s-6,p=e.re=[],y=e.safeRe=[],h=e.src=[],g=e.tokens={},b=0;function S(te){g[te]=b++}var O="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",s],[O,u]];function w(te){for(var de=0;de<_.length;de++){var G=_[de][0],be=_[de][1];te=te.split(G+"*").join(G+"{0,"+be+"}").split(G+"+").join(G+"{1,"+be+"}")}return te}S("NUMERICIDENTIFIER"),h[g.NUMERICIDENTIFIER]="0|[1-9]\\d*",S("NUMERICIDENTIFIERLOOSE"),h[g.NUMERICIDENTIFIERLOOSE]="\\d+",S("NONNUMERICIDENTIFIER"),h[g.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+O+"*",S("MAINVERSION"),h[g.MAINVERSION]="("+h[g.NUMERICIDENTIFIER]+")\\.("+h[g.NUMERICIDENTIFIER]+")\\.("+h[g.NUMERICIDENTIFIER]+")",S("MAINVERSIONLOOSE"),h[g.MAINVERSIONLOOSE]="("+h[g.NUMERICIDENTIFIERLOOSE]+")\\.("+h[g.NUMERICIDENTIFIERLOOSE]+")\\.("+h[g.NUMERICIDENTIFIERLOOSE]+")",S("PRERELEASEIDENTIFIER"),h[g.PRERELEASEIDENTIFIER]="(?:"+h[g.NUMERICIDENTIFIER]+"|"+h[g.NONNUMERICIDENTIFIER]+")",S("PRERELEASEIDENTIFIERLOOSE"),h[g.PRERELEASEIDENTIFIERLOOSE]="(?:"+h[g.NUMERICIDENTIFIERLOOSE]+"|"+h[g.NONNUMERICIDENTIFIER]+")",S("PRERELEASE"),h[g.PRERELEASE]="(?:-("+h[g.PRERELEASEIDENTIFIER]+"(?:\\."+h[g.PRERELEASEIDENTIFIER]+")*))",S("PRERELEASELOOSE"),h[g.PRERELEASELOOSE]="(?:-?("+h[g.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+h[g.PRERELEASEIDENTIFIERLOOSE]+")*))",S("BUILDIDENTIFIER"),h[g.BUILDIDENTIFIER]=O+"+",S("BUILD"),h[g.BUILD]="(?:\\+("+h[g.BUILDIDENTIFIER]+"(?:\\."+h[g.BUILDIDENTIFIER]+")*))",S("FULL"),S("FULLPLAIN"),h[g.FULLPLAIN]="v?"+h[g.MAINVERSION]+h[g.PRERELEASE]+"?"+h[g.BUILD]+"?",h[g.FULL]="^"+h[g.FULLPLAIN]+"$",S("LOOSEPLAIN"),h[g.LOOSEPLAIN]="[v=\\s]*"+h[g.MAINVERSIONLOOSE]+h[g.PRERELEASELOOSE]+"?"+h[g.BUILD]+"?",S("LOOSE"),h[g.LOOSE]="^"+h[g.LOOSEPLAIN]+"$",S("GTLT"),h[g.GTLT]="((?:<|>)?=?)",S("XRANGEIDENTIFIERLOOSE"),h[g.XRANGEIDENTIFIERLOOSE]=h[g.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",S("XRANGEIDENTIFIER"),h[g.XRANGEIDENTIFIER]=h[g.NUMERICIDENTIFIER]+"|x|X|\\*",S("XRANGEPLAIN"),h[g.XRANGEPLAIN]="[v=\\s]*("+h[g.XRANGEIDENTIFIER]+")(?:\\.("+h[g.XRANGEIDENTIFIER]+")(?:\\.("+h[g.XRANGEIDENTIFIER]+")(?:"+h[g.PRERELEASE]+")?"+h[g.BUILD]+"?)?)?",S("XRANGEPLAINLOOSE"),h[g.XRANGEPLAINLOOSE]="[v=\\s]*("+h[g.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+h[g.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+h[g.XRANGEIDENTIFIERLOOSE]+")(?:"+h[g.PRERELEASELOOSE]+")?"+h[g.BUILD]+"?)?)?",S("XRANGE"),h[g.XRANGE]="^"+h[g.GTLT]+"\\s*"+h[g.XRANGEPLAIN]+"$",S("XRANGELOOSE"),h[g.XRANGELOOSE]="^"+h[g.GTLT]+"\\s*"+h[g.XRANGEPLAINLOOSE]+"$",S("COERCE"),h[g.COERCE]="(^|[^\\d])(\\d{1,"+a+"})(?:\\.(\\d{1,"+a+"}))?(?:\\.(\\d{1,"+a+"}))?(?:$|[^\\d])",S("COERCERTL"),p[g.COERCERTL]=new RegExp(h[g.COERCE],"g"),y[g.COERCERTL]=new RegExp(w(h[g.COERCE]),"g"),S("LONETILDE"),h[g.LONETILDE]="(?:~>?)",S("TILDETRIM"),h[g.TILDETRIM]="(\\s*)"+h[g.LONETILDE]+"\\s+",p[g.TILDETRIM]=new RegExp(h[g.TILDETRIM],"g"),y[g.TILDETRIM]=new RegExp(w(h[g.TILDETRIM]),"g");var C="$1~";S("TILDE"),h[g.TILDE]="^"+h[g.LONETILDE]+h[g.XRANGEPLAIN]+"$",S("TILDELOOSE"),h[g.TILDELOOSE]="^"+h[g.LONETILDE]+h[g.XRANGEPLAINLOOSE]+"$",S("LONECARET"),h[g.LONECARET]="(?:\\^)",S("CARETTRIM"),h[g.CARETTRIM]="(\\s*)"+h[g.LONECARET]+"\\s+",p[g.CARETTRIM]=new RegExp(h[g.CARETTRIM],"g"),y[g.CARETTRIM]=new RegExp(w(h[g.CARETTRIM]),"g");var T="$1^";S("CARET"),h[g.CARET]="^"+h[g.LONECARET]+h[g.XRANGEPLAIN]+"$",S("CARETLOOSE"),h[g.CARETLOOSE]="^"+h[g.LONECARET]+h[g.XRANGEPLAINLOOSE]+"$",S("COMPARATORLOOSE"),h[g.COMPARATORLOOSE]="^"+h[g.GTLT]+"\\s*("+h[g.LOOSEPLAIN]+")$|^$",S("COMPARATOR"),h[g.COMPARATOR]="^"+h[g.GTLT]+"\\s*("+h[g.FULLPLAIN]+")$|^$",S("COMPARATORTRIM"),h[g.COMPARATORTRIM]="(\\s*)"+h[g.GTLT]+"\\s*("+h[g.LOOSEPLAIN]+"|"+h[g.XRANGEPLAIN]+")",p[g.COMPARATORTRIM]=new RegExp(h[g.COMPARATORTRIM],"g"),y[g.COMPARATORTRIM]=new RegExp(w(h[g.COMPARATORTRIM]),"g");var x="$1$2$3";S("HYPHENRANGE"),h[g.HYPHENRANGE]="^\\s*("+h[g.XRANGEPLAIN]+")\\s+-\\s+("+h[g.XRANGEPLAIN]+")\\s*$",S("HYPHENRANGELOOSE"),h[g.HYPHENRANGELOOSE]="^\\s*("+h[g.XRANGEPLAINLOOSE]+")\\s+-\\s+("+h[g.XRANGEPLAINLOOSE]+")\\s*$",S("STAR"),h[g.STAR]="(<|>)?=?\\s*\\*";for(var E=0;E<b;E++)n(E,h[E]),p[E]||(p[E]=new RegExp(h[E]),y[E]=new RegExp(w(h[E])));e.parse=j;function j(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof D)return te;if(typeof te!="string"||te.length>s)return null;var G=de.loose?y[g.LOOSE]:y[g.FULL];if(!G.test(te))return null;try{return new D(te,de)}catch{return null}}e.valid=R;function R(te,de){var G=j(te,de);return G?G.version:null}e.clean=I;function I(te,de){var G=j(te.trim().replace(/^[=v]+/,""),de);return G?G.version:null}e.SemVer=D;function D(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof D){if(te.loose===de.loose)return te;te=te.version}else if(typeof te!="string")throw new TypeError("Invalid Version: "+te);if(te.length>s)throw new TypeError("version is longer than "+s+" characters");if(!(this instanceof D))return new D(te,de);n("SemVer",te,de),this.options=de,this.loose=!!de.loose;var G=te.trim().match(de.loose?y[g.LOOSE]:y[g.FULL]);if(!G)throw new TypeError("Invalid Version: "+te);if(this.raw=te,this.major=+G[1],this.minor=+G[2],this.patch=+G[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");G[4]?this.prerelease=G[4].split(".").map(function(be){if(/^[0-9]+$/.test(be)){var et=+be;if(et>=0&&et<o)return et}return be}):this.prerelease=[],this.build=G[5]?G[5].split("."):[],this.format()}D.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},D.prototype.toString=function(){return this.version},D.prototype.compare=function(te){return n("SemVer.compare",this.version,this.options,te),te instanceof D||(te=new D(te,this.options)),this.compareMain(te)||this.comparePre(te)},D.prototype.compareMain=function(te){return te instanceof D||(te=new D(te,this.options)),$(this.major,te.major)||$(this.minor,te.minor)||$(this.patch,te.patch)},D.prototype.comparePre=function(te){if(te instanceof D||(te=new D(te,this.options)),this.prerelease.length&&!te.prerelease.length)return-1;if(!this.prerelease.length&&te.prerelease.length)return 1;if(!this.prerelease.length&&!te.prerelease.length)return 0;var de=0;do{var G=this.prerelease[de],be=te.prerelease[de];if(n("prerelease compare",de,G,be),G===void 0&&be===void 0)return 0;if(be===void 0)return 1;if(G===void 0)return-1;if(G===be)continue;return $(G,be)}while(++de)},D.prototype.compareBuild=function(te){te instanceof D||(te=new D(te,this.options));var de=0;do{var G=this.build[de],be=te.build[de];if(n("prerelease compare",de,G,be),G===void 0&&be===void 0)return 0;if(be===void 0)return 1;if(G===void 0)return-1;if(G===be)continue;return $(G,be)}while(++de)},D.prototype.inc=function(te,de){switch(te){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",de);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",de);break;case"prepatch":this.prerelease.length=0,this.inc("patch",de),this.inc("pre",de);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",de),this.inc("pre",de);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var G=this.prerelease.length;--G>=0;)typeof this.prerelease[G]=="number"&&(this.prerelease[G]++,G=-2);G===-1&&this.prerelease.push(0)}de&&(this.prerelease[0]===de?isNaN(this.prerelease[1])&&(this.prerelease=[de,0]):this.prerelease=[de,0]);break;default:throw new Error("invalid increment argument: "+te)}return this.format(),this.raw=this.version,this},e.inc=Z;function Z(te,de,G,be){typeof G=="string"&&(be=G,G=void 0);try{return new D(te,G).inc(de,be).version}catch{return null}}e.diff=J;function J(te,de){if(H(te,de))return null;var G=j(te),be=j(de),et="";if(G.prerelease.length||be.prerelease.length){et="pre";var ge="prerelease"}for(var rt in G)if((rt==="major"||rt==="minor"||rt==="patch")&&G[rt]!==be[rt])return et+rt;return ge}e.compareIdentifiers=$;var N=/^[0-9]+$/;function $(te,de){var G=N.test(te),be=N.test(de);return G&&be&&(te=+te,de=+de),te===de?0:G&&!be?-1:be&&!G?1:te<de?-1:1}e.rcompareIdentifiers=ne;function ne(te,de){return $(de,te)}e.major=me;function me(te,de){return new D(te,de).major}e.minor=Ce;function Ce(te,de){return new D(te,de).minor}e.patch=Ae;function Ae(te,de){return new D(te,de).patch}e.compare=ce;function ce(te,de,G){return new D(te,G).compare(new D(de,G))}e.compareLoose=ue;function ue(te,de){return ce(te,de,!0)}e.compareBuild=K;function K(te,de,G){var be=new D(te,G),et=new D(de,G);return be.compare(et)||be.compareBuild(et)}e.rcompare=Y;function Y(te,de,G){return ce(de,te,G)}e.sort=he;function he(te,de){return te.sort(function(G,be){return e.compareBuild(G,be,de)})}e.rsort=ae;function ae(te,de){return te.sort(function(G,be){return e.compareBuild(be,G,de)})}e.gt=U;function U(te,de,G){return ce(te,de,G)>0}e.lt=L;function L(te,de,G){return ce(te,de,G)<0}e.eq=H;function H(te,de,G){return ce(te,de,G)===0}e.neq=ye;function ye(te,de,G){return ce(te,de,G)!==0}e.gte=Ie;function Ie(te,de,G){return ce(te,de,G)>=0}e.lte=Ee;function Ee(te,de,G){return ce(te,de,G)<=0}e.cmp=De;function De(te,de,G,be){switch(de){case"===":return typeof te=="object"&&(te=te.version),typeof G=="object"&&(G=G.version),te===G;case"!==":return typeof te=="object"&&(te=te.version),typeof G=="object"&&(G=G.version),te!==G;case"":case"=":case"==":return H(te,G,be);case"!=":return ye(te,G,be);case">":return U(te,G,be);case">=":return Ie(te,G,be);case"<":return L(te,G,be);case"<=":return Ee(te,G,be);default:throw new TypeError("Invalid operator: "+de)}}e.Comparator=Me;function Me(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof Me){if(te.loose===!!de.loose)return te;te=te.value}if(!(this instanceof Me))return new Me(te,de);te=te.trim().split(/\s+/).join(" "),n("comparator",te,de),this.options=de,this.loose=!!de.loose,this.parse(te),this.semver===Ve?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}var Ve={};Me.prototype.parse=function(te){var de=this.options.loose?y[g.COMPARATORLOOSE]:y[g.COMPARATOR],G=te.match(de);if(!G)throw new TypeError("Invalid comparator: "+te);this.operator=G[1]!==void 0?G[1]:"",this.operator==="="&&(this.operator=""),G[2]?this.semver=new D(G[2],this.options.loose):this.semver=Ve},Me.prototype.toString=function(){return this.value},Me.prototype.test=function(te){if(n("Comparator.test",te,this.options.loose),this.semver===Ve||te===Ve)return!0;if(typeof te=="string")try{te=new D(te,this.options)}catch{return!1}return De(te,this.operator,this.semver,this.options)},Me.prototype.intersects=function(te,de){if(!(te instanceof Me))throw new TypeError("a Comparator is required");(!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1});var G;if(this.operator==="")return this.value===""?!0:(G=new Ze(te.value,de),oe(this.value,G,de));if(te.operator==="")return te.value===""?!0:(G=new Ze(this.value,de),oe(te.semver,G,de));var be=(this.operator===">="||this.operator===">")&&(te.operator===">="||te.operator===">"),et=(this.operator==="<="||this.operator==="<")&&(te.operator==="<="||te.operator==="<"),ge=this.semver.version===te.semver.version,rt=(this.operator===">="||this.operator==="<=")&&(te.operator===">="||te.operator==="<="),yt=De(this.semver,"<",te.semver,de)&&(this.operator===">="||this.operator===">")&&(te.operator==="<="||te.operator==="<"),mt=De(this.semver,">",te.semver,de)&&(this.operator==="<="||this.operator==="<")&&(te.operator===">="||te.operator===">");return be||et||ge&&rt||yt||mt},e.Range=Ze;function Ze(te,de){if((!de||typeof de!="object")&&(de={loose:!!de,includePrerelease:!1}),te instanceof Ze)return te.loose===!!de.loose&&te.includePrerelease===!!de.includePrerelease?te:new Ze(te.raw,de);if(te instanceof Me)return new Ze(te.value,de);if(!(this instanceof Ze))return new Ze(te,de);if(this.options=de,this.loose=!!de.loose,this.includePrerelease=!!de.includePrerelease,this.raw=te.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(G){return this.parseRange(G.trim())},this).filter(function(G){return G.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}Ze.prototype.format=function(){return this.range=this.set.map(function(te){return te.join(" ").trim()}).join("||").trim(),this.range},Ze.prototype.toString=function(){return this.range},Ze.prototype.parseRange=function(te){var de=this.options.loose,G=de?y[g.HYPHENRANGELOOSE]:y[g.HYPHENRANGE];te=te.replace(G,se),n("hyphen replace",te),te=te.replace(y[g.COMPARATORTRIM],x),n("comparator trim",te,y[g.COMPARATORTRIM]),te=te.replace(y[g.TILDETRIM],C),te=te.replace(y[g.CARETTRIM],T),te=te.split(/\s+/).join(" ");var be=de?y[g.COMPARATORLOOSE]:y[g.COMPARATOR],et=te.split(" ").map(function(ge){return dt(ge,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(et=et.filter(function(ge){return!!ge.match(be)})),et=et.map(function(ge){return new Me(ge,this.options)},this),et},Ze.prototype.intersects=function(te,de){if(!(te instanceof Ze))throw new TypeError("a Range is required");return this.set.some(function(G){return ut(G,de)&&te.set.some(function(be){return ut(be,de)&&G.every(function(et){return be.every(function(ge){return et.intersects(ge,de)})})})})};function ut(te,de){for(var G=!0,be=te.slice(),et=be.pop();G&&be.length;)G=be.every(function(ge){return et.intersects(ge,de)}),et=be.pop();return G}e.toComparators=st;function st(te,de){return new Ze(te,de).set.map(function(G){return G.map(function(be){return be.value}).join(" ").trim().split(" ")})}function dt(te,de){return n("comp",te,de),te=Le(te,de),n("caret",te),te=je(te,de),n("tildes",te),te=ht(te,de),n("xrange",te),te=Se(te,de),n("stars",te),te}function $e(te){return!te||te.toLowerCase()==="x"||te==="*"}function je(te,de){return te.trim().split(/\s+/).map(function(G){return qe(G,de)}).join(" ")}function qe(te,de){var G=de.loose?y[g.TILDELOOSE]:y[g.TILDE];return te.replace(G,function(be,et,ge,rt,yt){n("tilde",te,be,et,ge,rt,yt);var mt;return $e(et)?mt="":$e(ge)?mt=">="+et+".0.0 <"+(+et+1)+".0.0":$e(rt)?mt=">="+et+"."+ge+".0 <"+et+"."+(+ge+1)+".0":yt?(n("replaceTilde pr",yt),mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+et+"."+(+ge+1)+".0"):mt=">="+et+"."+ge+"."+rt+" <"+et+"."+(+ge+1)+".0",n("tilde return",mt),mt})}function Le(te,de){return te.trim().split(/\s+/).map(function(G){return gt(G,de)}).join(" ")}function gt(te,de){n("caret",te,de);var G=de.loose?y[g.CARETLOOSE]:y[g.CARET];return te.replace(G,function(be,et,ge,rt,yt){n("caret",te,be,et,ge,rt,yt);var mt;return $e(et)?mt="":$e(ge)?mt=">="+et+".0.0 <"+(+et+1)+".0.0":$e(rt)?et==="0"?mt=">="+et+"."+ge+".0 <"+et+"."+(+ge+1)+".0":mt=">="+et+"."+ge+".0 <"+(+et+1)+".0.0":yt?(n("replaceCaret pr",yt),et==="0"?ge==="0"?mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+et+"."+ge+"."+(+rt+1):mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+et+"."+(+ge+1)+".0":mt=">="+et+"."+ge+"."+rt+"-"+yt+" <"+(+et+1)+".0.0"):(n("no pr"),et==="0"?ge==="0"?mt=">="+et+"."+ge+"."+rt+" <"+et+"."+ge+"."+(+rt+1):mt=">="+et+"."+ge+"."+rt+" <"+et+"."+(+ge+1)+".0":mt=">="+et+"."+ge+"."+rt+" <"+(+et+1)+".0.0"),n("caret return",mt),mt})}function ht(te,de){return n("replaceXRanges",te,de),te.split(/\s+/).map(function(G){return xe(G,de)}).join(" ")}function xe(te,de){te=te.trim();var G=de.loose?y[g.XRANGELOOSE]:y[g.XRANGE];return te.replace(G,function(be,et,ge,rt,yt,mt){n("xRange",te,be,et,ge,rt,yt,mt);var Bt=$e(ge),Lt=Bt||$e(rt),Vt=Lt||$e(yt),Jt=Vt;return et==="="&&Jt&&(et=""),mt=de.includePrerelease?"-0":"",Bt?et===">"||et==="<"?be="<0.0.0-0":be="*":et&&Jt?(Lt&&(rt=0),yt=0,et===">"?(et=">=",Lt?(ge=+ge+1,rt=0,yt=0):(rt=+rt+1,yt=0)):et==="<="&&(et="<",Lt?ge=+ge+1:rt=+rt+1),be=et+ge+"."+rt+"."+yt+mt):Lt?be=">="+ge+".0.0"+mt+" <"+(+ge+1)+".0.0"+mt:Vt&&(be=">="+ge+"."+rt+".0"+mt+" <"+ge+"."+(+rt+1)+".0"+mt),n("xRange return",be),be})}function Se(te,de){return n("replaceStars",te,de),te.trim().replace(y[g.STAR],"")}function se(te,de,G,be,et,ge,rt,yt,mt,Bt,Lt,Vt,Jt){return $e(G)?de="":$e(be)?de=">="+G+".0.0":$e(et)?de=">="+G+"."+be+".0":de=">="+de,$e(mt)?yt="":$e(Bt)?yt="<"+(+mt+1)+".0.0":$e(Lt)?yt="<"+mt+"."+(+Bt+1)+".0":Vt?yt="<="+mt+"."+Bt+"."+Lt+"-"+Vt:yt="<="+yt,(de+" "+yt).trim()}Ze.prototype.test=function(te){if(!te)return!1;if(typeof te=="string")try{te=new D(te,this.options)}catch{return!1}for(var de=0;de<this.set.length;de++)if(ee(this.set[de],te,this.options))return!0;return!1};function ee(te,de,G){for(var be=0;be<te.length;be++)if(!te[be].test(de))return!1;if(de.prerelease.length&&!G.includePrerelease){for(be=0;be<te.length;be++)if(n(te[be].semver),te[be].semver!==Ve&&te[be].semver.prerelease.length>0){var et=te[be].semver;if(et.major===de.major&&et.minor===de.minor&&et.patch===de.patch)return!0}return!1}return!0}e.satisfies=oe;function oe(te,de,G){try{de=new Ze(de,G)}catch{return!1}return de.test(te)}e.maxSatisfying=W;function W(te,de,G){var be=null,et=null;try{var ge=new Ze(de,G)}catch{return null}return te.forEach(function(rt){ge.test(rt)&&(!be||et.compare(rt)===-1)&&(be=rt,et=new D(be,G))}),be}e.minSatisfying=fe;function fe(te,de,G){var be=null,et=null;try{var ge=new Ze(de,G)}catch{return null}return te.forEach(function(rt){ge.test(rt)&&(!be||et.compare(rt)===1)&&(be=rt,et=new D(be,G))}),be}e.minVersion=Re;function Re(te,de){te=new Ze(te,de);var G=new D("0.0.0");if(te.test(G)||(G=new D("0.0.0-0"),te.test(G)))return G;G=null;for(var be=0;be<te.set.length;++be){var et=te.set[be];et.forEach(function(ge){var rt=new D(ge.semver.version);switch(ge.operator){case">":rt.prerelease.length===0?rt.patch++:rt.prerelease.push(0),rt.raw=rt.format();case"":case">=":(!G||U(G,rt))&&(G=rt);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+ge.operator)}})}return G&&te.test(G)?G:null}e.validRange=Fe;function Fe(te,de){try{return new Ze(te,de).range||"*"}catch{return null}}e.ltr=Ke;function Ke(te,de,G){return _t(te,de,"<",G)}e.gtr=it;function it(te,de,G){return _t(te,de,">",G)}e.outside=_t;function _t(te,de,G,be){te=new D(te,be),de=new Ze(de,be);var et,ge,rt,yt,mt;switch(G){case">":et=U,ge=Ee,rt=L,yt=">",mt=">=";break;case"<":et=L,ge=Ie,rt=U,yt="<",mt="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oe(te,de,be))return!1;for(var Bt=0;Bt<de.set.length;++Bt){var Lt=de.set[Bt],Vt=null,Jt=null;if(Lt.forEach(function(lr){lr.semver===Ve&&(lr=new Me(">=0.0.0")),Vt=Vt||lr,Jt=Jt||lr,et(lr.semver,Vt.semver,be)?Vt=lr:rt(lr.semver,Jt.semver,be)&&(Jt=lr)}),Vt.operator===yt||Vt.operator===mt||(!Jt.operator||Jt.operator===yt)&&ge(te,Jt.semver))return!1;if(Jt.operator===mt&&rt(te,Jt.semver))return!1}return!0}e.prerelease=Mt;function Mt(te,de){var G=j(te,de);return G&&G.prerelease.length?G.prerelease:null}e.intersects=pt;function pt(te,de,G){return te=new Ze(te,G),de=new Ze(de,G),te.intersects(de)}e.coerce=xt;function xt(te,de){if(te instanceof D)return te;if(typeof te=="number"&&(te=String(te)),typeof te!="string")return null;de=de||{};var G=null;if(!de.rtl)G=te.match(y[g.COERCE]);else{for(var be;(be=y[g.COERCERTL].exec(te))&&(!G||G.index+G[0].length!==te.length);)(!G||be.index+be[0].length!==G.index+G[0].length)&&(G=be),y[g.COERCERTL].lastIndex=be.index+be[1].length+be[2].length;y[g.COERCERTL].lastIndex=-1}return G===null?null:j(G[2]+"."+(G[3]||"0")+"."+(G[4]||"0"),de)}})(cp,cp.exports);var ua=cp.exports,up={},fp={},pp={exports:{}},dp={},qa={},Ng={},hp=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==s||u.enumerable!==!0)return!1}return!0},eP=hp,Yc=function(){return eP()&&!!Symbol.toStringTag},yp=Object,tP=Error,rP=EvalError,nP=RangeError,iP=ReferenceError,kg=SyntaxError,Yo=TypeError,sP=URIError,aP=Math.abs,oP=Math.floor,lP=Math.max,cP=Math.min,uP=Math.pow,fP=Math.round,pP=Number.isNaN||function(e){return e!==e},dP=pP,hP=function(e){return dP(e)||e===0?e:e<0?-1:1},yP=Object.getOwnPropertyDescriptor,Xc=yP;if(Xc)try{Xc([],"length")}catch{Xc=null}var $a=Xc,Qc=Object.defineProperty||!1;if(Qc)try{Qc({},"a",{value:1})}catch{Qc=!1}var Zc=Qc,mp,Dg;function mP(){if(Dg)return mp;Dg=1;var t=typeof Symbol<"u"&&Symbol,e=hp;return mp=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},mp}var gp,Bg;function Rg(){return Bg||(Bg=1,gp=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gp}var bp,jg;function Mg(){if(jg)return bp;jg=1;var t=yp;return bp=t.getPrototypeOf||null,bp}var vp,Lg;function gP(){if(Lg)return vp;Lg=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",s=function(p,y){for(var h=[],g=0;g<p.length;g+=1)h[g]=p[g];for(var b=0;b<y.length;b+=1)h[b+p.length]=y[b];return h},o=function(p,y){for(var h=[],g=y,b=0;g<p.length;g+=1,b+=1)h[b]=p[g];return h},a=function(u,p){for(var y="",h=0;h<u.length;h+=1)y+=u[h],h+1<u.length&&(y+=p);return y};return vp=function(p){var y=this;if(typeof y!="function"||e.apply(y)!==n)throw new TypeError(t+y);for(var h=o(arguments,1),g,b=function(){if(this instanceof g){var C=y.apply(this,s(h,arguments));return Object(C)===C?C:this}return y.apply(p,s(h,arguments))},S=r(0,y.length-h.length),O=[],_=0;_<S;_++)O[_]="$"+_;if(g=Function("binder","return function ("+a(O,",")+"){ return binder.apply(this,arguments); }")(b),y.prototype){var w=function(){};w.prototype=y.prototype,g.prototype=new w,w.prototype=null}return g},vp}var Sp,Fg;function Xo(){if(Fg)return Sp;Fg=1;var t=gP();return Sp=Function.prototype.bind||t,Sp}var Tp,qg;function Ep(){return qg||(qg=1,Tp=Function.prototype.call),Tp}var xp,$g;function Pp(){return $g||($g=1,xp=Function.prototype.apply),xp}var bP=typeof Reflect<"u"&&Reflect&&Reflect.apply,vP=Xo(),SP=Pp(),TP=Ep(),EP=bP,Ug=EP||vP.call(TP,SP),xP=Xo(),PP=Yo,_P=Ep(),wP=Ug,_p=function(e){if(e.length<1||typeof e[0]!="function")throw new PP("a function is required");return wP(xP,_P,e)},wp,Vg;function AP(){if(Vg)return wp;Vg=1;var t=_p,e=$a,r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&e&&e(Object.prototype,"__proto__"),s=Object,o=s.getPrototypeOf;return wp=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(u){return o(u==null?u:s(u))}:!1,wp}var Ap,Kg;function Cp(){if(Kg)return Ap;Kg=1;var t=Rg(),e=Mg(),r=AP();return Ap=t?function(s){return t(s)}:e?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return e(s)}:r?function(s){return r(s)}:null,Ap}var Ip,Wg;function Gg(){if(Wg)return Ip;Wg=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Xo();return Ip=r.call(t,e),Ip}var nr,CP=yp,IP=tP,OP=rP,NP=nP,kP=iP,Ua=kg,Va=Yo,DP=sP,BP=aP,RP=oP,jP=lP,MP=cP,LP=uP,FP=fP,qP=hP,zg=Function,Op=function(t){try{return zg('"use strict"; return ('+t+").constructor;")()}catch{}},Qo=$a,$P=Zc,Np=function(){throw new Va},UP=Qo?function(){try{return arguments.callee,Np}catch{try{return Qo(arguments,"callee").get}catch{return Np}}}():Np,Ka=mP()(),Hr=Cp(),VP=Mg(),KP=Rg(),Hg=Pp(),Zo=Ep(),Wa={},WP=typeof Uint8Array>"u"||!Hr?nr:Hr(Uint8Array),fa={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?nr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?nr:ArrayBuffer,"%ArrayIteratorPrototype%":Ka&&Hr?Hr([][Symbol.iterator]()):nr,"%AsyncFromSyncIteratorPrototype%":nr,"%AsyncFunction%":Wa,"%AsyncGenerator%":Wa,"%AsyncGeneratorFunction%":Wa,"%AsyncIteratorPrototype%":Wa,"%Atomics%":typeof Atomics>"u"?nr:Atomics,"%BigInt%":typeof BigInt>"u"?nr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?nr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?nr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?nr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":IP,"%eval%":eval,"%EvalError%":OP,"%Float16Array%":typeof Float16Array>"u"?nr:Float16Array,"%Float32Array%":typeof Float32Array>"u"?nr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?nr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?nr:FinalizationRegistry,"%Function%":zg,"%GeneratorFunction%":Wa,"%Int8Array%":typeof Int8Array>"u"?nr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?nr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?nr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ka&&Hr?Hr(Hr([][Symbol.iterator]())):nr,"%JSON%":typeof JSON=="object"?JSON:nr,"%Map%":typeof Map>"u"?nr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ka||!Hr?nr:Hr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":CP,"%Object.getOwnPropertyDescriptor%":Qo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?nr:Promise,"%Proxy%":typeof Proxy>"u"?nr:Proxy,"%RangeError%":NP,"%ReferenceError%":kP,"%Reflect%":typeof Reflect>"u"?nr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?nr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ka||!Hr?nr:Hr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?nr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ka&&Hr?Hr(""[Symbol.iterator]()):nr,"%Symbol%":Ka?Symbol:nr,"%SyntaxError%":Ua,"%ThrowTypeError%":UP,"%TypedArray%":WP,"%TypeError%":Va,"%Uint8Array%":typeof Uint8Array>"u"?nr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?nr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?nr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?nr:Uint32Array,"%URIError%":DP,"%WeakMap%":typeof WeakMap>"u"?nr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?nr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?nr:WeakSet,"%Function.prototype.call%":Zo,"%Function.prototype.apply%":Hg,"%Object.defineProperty%":$P,"%Object.getPrototypeOf%":VP,"%Math.abs%":BP,"%Math.floor%":RP,"%Math.max%":jP,"%Math.min%":MP,"%Math.pow%":LP,"%Math.round%":FP,"%Math.sign%":qP,"%Reflect.getPrototypeOf%":KP};if(Hr)try{null.error}catch(t){var GP=Hr(Hr(t));fa["%Error.prototype%"]=GP}var zP=function t(e){var r;if(e==="%AsyncFunction%")r=Op("async function () {}");else if(e==="%GeneratorFunction%")r=Op("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Op("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Hr&&(r=Hr(s.prototype))}return fa[e]=r,r},Jg={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},el=Xo(),eu=Gg(),HP=el.call(Zo,Array.prototype.concat),JP=el.call(Hg,Array.prototype.splice),Yg=el.call(Zo,String.prototype.replace),tu=el.call(Zo,String.prototype.slice),YP=el.call(Zo,RegExp.prototype.exec),XP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QP=/\\(\\)?/g,ZP=function(e){var r=tu(e,0,1),n=tu(e,-1);if(r==="%"&&n!=="%")throw new Ua("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ua("invalid intrinsic syntax, expected opening `%`");var s=[];return Yg(e,XP,function(o,a,u,p){s[s.length]=u?Yg(p,QP,"$1"):a||o}),s},e_=function(e,r){var n=e,s;if(eu(Jg,n)&&(s=Jg[n],n="%"+s[0]+"%"),eu(fa,n)){var o=fa[n];if(o===Wa&&(o=zP(n)),typeof o>"u"&&!r)throw new Va("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:o}}throw new Ua("intrinsic "+e+" does not exist!")},kp=function(e,r){if(typeof e!="string"||e.length===0)throw new Va("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Va('"allowMissing" argument must be a boolean');if(YP(/^%?[^%]*%?$/,e)===null)throw new Ua("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ZP(e),s=n.length>0?n[0]:"",o=e_("%"+s+"%",r),a=o.name,u=o.value,p=!1,y=o.alias;y&&(s=y[0],JP(n,HP([0,1],y)));for(var h=1,g=!0;h<n.length;h+=1){var b=n[h],S=tu(b,0,1),O=tu(b,-1);if((S==='"'||S==="'"||S==="`"||O==='"'||O==="'"||O==="`")&&S!==O)throw new Ua("property names with quotes must have matching quotes");if((b==="constructor"||!g)&&(p=!0),s+="."+b,a="%"+s+"%",eu(fa,a))u=fa[a];else if(u!=null){if(!(b in u)){if(!r)throw new Va("base intrinsic for "+e+" exists, but the property is not available.");return}if(Qo&&h+1>=n.length){var _=Qo(u,b);g=!!_,g&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[b]}else g=eu(u,b),u=u[b];g&&!p&&(fa[a]=u)}}return u},Xg=kp,Qg=_p,t_=Qg([Xg("%String.prototype.indexOf%")]),Ga=function(e,r){var n=Xg(e,!!r);return typeof n=="function"&&t_(e,".prototype.")>-1?Qg([n]):n},r_=Yc(),n_=Ga,Dp=n_("Object.prototype.toString"),ru=function(e){return r_&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Dp(e)==="[object Arguments]"},Zg=function(e){return ru(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Dp(e)!=="[object Array]"&&"callee"in e&&Dp(e.callee)==="[object Function]"},i_=function(){return ru(arguments)}();ru.isLegacyArguments=Zg;var s_=i_?ru:Zg,eb=Ga,a_=Yc(),o_=Gg(),l_=$a,Bp;if(a_){var c_=eb("RegExp.prototype.exec"),tb={},Rp=function(){throw tb},rb={toString:Rp,valueOf:Rp};typeof Symbol.toPrimitive=="symbol"&&(rb[Symbol.toPrimitive]=Rp),Bp=function(e){if(!e||typeof e!="object")return!1;var r=l_(e,"lastIndex"),n=r&&o_(r,"value");if(!n)return!1;try{c_(e,rb)}catch(s){return s===tb}}}else{var u_=eb("Object.prototype.toString"),f_="[object RegExp]";Bp=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:u_(e)===f_}}var p_=Bp,d_=Ga,h_=p_,y_=d_("RegExp.prototype.exec"),m_=Yo,g_=function(e){if(!h_(e))throw new m_("`regex` must be a RegExp");return function(n){return y_(e,n)!==null}},jp,nb;function b_(){if(nb)return jp;nb=1;const t=(function*(){}).constructor;return jp=()=>t,jp}var ib=Ga,v_=g_,S_=v_(/^\s*(?:function)?\*/),T_=Yc(),sb=Cp(),E_=ib("Object.prototype.toString"),x_=ib("Function.prototype.toString"),P_=b_(),__=function(e){if(typeof e!="function")return!1;if(S_(x_(e)))return!0;if(!T_){var r=E_(e);return r==="[object GeneratorFunction]"}if(!sb)return!1;var n=P_();return n&&sb(e)===n.prototype},ab=Function.prototype.toString,za=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Mp,nu;if(typeof za=="function"&&typeof Object.defineProperty=="function")try{Mp=Object.defineProperty({},"length",{get:function(){throw nu}}),nu={},za(function(){throw 42},null,Mp)}catch(t){t!==nu&&(za=null)}else za=null;var w_=/^\s*class\b/,Lp=function(e){try{var r=ab.call(e);return w_.test(r)}catch{return!1}},Fp=function(e){try{return Lp(e)?!1:(ab.call(e),!0)}catch{return!1}},iu=Object.prototype.toString,A_="[object Object]",C_="[object Function]",I_="[object GeneratorFunction]",O_="[object HTMLAllCollection]",N_="[object HTML document.all class]",k_="[object HTMLCollection]",D_=typeof Symbol=="function"&&!!Symbol.toStringTag,B_=!(0 in[,]),qp=function(){return!1};if(typeof document=="object"){var R_=document.all;iu.call(R_)===iu.call(document.all)&&(qp=function(e){if((B_||!e)&&(typeof e>"u"||typeof e=="object"))try{var r=iu.call(e);return(r===O_||r===N_||r===k_||r===A_)&&e("")==null}catch{}return!1})}var j_=za?function(e){if(qp(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{za(e,null,Mp)}catch(r){if(r!==nu)return!1}return!Lp(e)&&Fp(e)}:function(e){if(qp(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(D_)return Fp(e);if(Lp(e))return!1;var r=iu.call(e);return r!==C_&&r!==I_&&!/^\[object HTML/.test(r)?!1:Fp(e)},M_=j_,L_=Object.prototype.toString,ob=Object.prototype.hasOwnProperty,F_=function(e,r,n){for(var s=0,o=e.length;s<o;s++)ob.call(e,s)&&(n==null?r(e[s],s,e):r.call(n,e[s],s,e))},q_=function(e,r,n){for(var s=0,o=e.length;s<o;s++)n==null?r(e.charAt(s),s,e):r.call(n,e.charAt(s),s,e)},$_=function(e,r,n){for(var s in e)ob.call(e,s)&&(n==null?r(e[s],s,e):r.call(n,e[s],s,e))};function U_(t){return L_.call(t)==="[object Array]"}var V_=function(e,r,n){if(!M_(r))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),U_(e)?F_(e,r,s):typeof e=="string"?q_(e,r,s):$_(e,r,s)},K_=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],$p=K_,W_=typeof globalThis>"u"?Ii:globalThis,G_=function(){for(var e=[],r=0;r<$p.length;r++)typeof W_[$p[r]]=="function"&&(e[e.length]=$p[r]);return e},lb={exports:{}},cb=Zc,z_=kg,Ha=Yo,ub=$a,fb=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Ha("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ha("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ha("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ha("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ha("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ha("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,p=!!ub&&ub(e,r);if(cb)cb(e,r,{configurable:a===null&&p?p.configurable:!a,enumerable:s===null&&p?p.enumerable:!s,value:n,writable:o===null&&p?p.writable:!o});else if(u||!s&&!o&&!a)e[r]=n;else throw new z_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Up=Zc,pb=function(){return!!Up};pb.hasArrayLengthDefineBug=function(){if(!Up)return null;try{return Up([],"length",{value:1}).length!==1}catch{return!0}};var db=pb,H_=kp,hb=fb,J_=db(),yb=$a,mb=Yo,Y_=H_("%Math.floor%"),X_=function(e,r){if(typeof e!="function")throw new mb("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Y_(r)!==r)throw new mb("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],s=!0,o=!0;if("length"in e&&yb){var a=yb(e,"length");a&&!a.configurable&&(s=!1),a&&!a.writable&&(o=!1)}return(s||o||!n)&&(J_?hb(e,"length",r,!0,!0):hb(e,"length",r)),e},Q_=Xo(),Z_=Pp(),ew=Ug,tw=function(){return ew(Q_,Z_,arguments)};(function(t){var e=X_,r=Zc,n=_p,s=tw;t.exports=function(a){var u=n(arguments),p=1+a.length-(arguments.length-1);return e(u,p>0?p:0,!0)},r?r(t.exports,"apply",{value:s}):t.exports.apply=s})(lb);var su=lb.exports,au=V_,rw=G_,gb=su,Vp=Ga,ou=$a,lu=Cp(),nw=Vp("Object.prototype.toString"),bb=Yc(),vb=typeof globalThis>"u"?Ii:globalThis,Kp=rw(),Wp=Vp("String.prototype.slice"),iw=Vp("Array.prototype.indexOf",!0)||function(e,r){for(var n=0;n<e.length;n+=1)if(e[n]===r)return n;return-1},cu={__proto__:null};bb&&ou&&lu?au(Kp,function(t){var e=new vb[t];if(Symbol.toStringTag in e&&lu){var r=lu(e),n=ou(r,Symbol.toStringTag);if(!n&&r){var s=lu(r);n=ou(s,Symbol.toStringTag)}if(n&&n.get){var o=gb(n.get);cu["$"+t]=o}}}):au(Kp,function(t){var e=new vb[t],r=e.slice||e.set;if(r){var n=gb(r);cu["$"+t]=n}});function sw(t){var e=!1;return au(cu,function(r,n){if(!e)try{"$"+r(t)===n&&(e=Wp(n,1))}catch{}}),e}function aw(t){var e=!1;return au(cu,function(r,n){if(!e)try{r(t),e=Wp(n,1)}catch{}}),e}function ow(t){return iw(Kp,t)>-1}var Sb=function(e){if(!e||typeof e!="object")return!1;if(!bb){var r=Wp(nw(e),8,-1);return ow(r)?r:r!=="Object"?!1:aw(e)}return ou?sw(e):null},lw=Sb,cw=function(e){return!!lw(e)};(function(t){var e=s_,r=__,n=Sb,s=cw;function o(Le){return Le.call.bind(Le)}var a=typeof BigInt<"u",u=typeof Symbol<"u",p=o(Object.prototype.toString),y=o(Number.prototype.valueOf),h=o(String.prototype.valueOf),g=o(Boolean.prototype.valueOf);if(a)var b=o(BigInt.prototype.valueOf);if(u)var S=o(Symbol.prototype.valueOf);function O(Le,gt){if(typeof Le!="object")return!1;try{return gt(Le),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=s;function _(Le){return typeof Promise<"u"&&Le instanceof Promise||Le!==null&&typeof Le=="object"&&typeof Le.then=="function"&&typeof Le.catch=="function"}t.isPromise=_;function w(Le){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Le):s(Le)||U(Le)}t.isArrayBufferView=w;function C(Le){return n(Le)==="Uint8Array"}t.isUint8Array=C;function T(Le){return n(Le)==="Uint8ClampedArray"}t.isUint8ClampedArray=T;function x(Le){return n(Le)==="Uint16Array"}t.isUint16Array=x;function E(Le){return n(Le)==="Uint32Array"}t.isUint32Array=E;function j(Le){return n(Le)==="Int8Array"}t.isInt8Array=j;function R(Le){return n(Le)==="Int16Array"}t.isInt16Array=R;function I(Le){return n(Le)==="Int32Array"}t.isInt32Array=I;function D(Le){return n(Le)==="Float32Array"}t.isFloat32Array=D;function Z(Le){return n(Le)==="Float64Array"}t.isFloat64Array=Z;function J(Le){return n(Le)==="BigInt64Array"}t.isBigInt64Array=J;function N(Le){return n(Le)==="BigUint64Array"}t.isBigUint64Array=N;function $(Le){return p(Le)==="[object Map]"}$.working=typeof Map<"u"&&$(new Map);function ne(Le){return typeof Map>"u"?!1:$.working?$(Le):Le instanceof Map}t.isMap=ne;function me(Le){return p(Le)==="[object Set]"}me.working=typeof Set<"u"&&me(new Set);function Ce(Le){return typeof Set>"u"?!1:me.working?me(Le):Le instanceof Set}t.isSet=Ce;function Ae(Le){return p(Le)==="[object WeakMap]"}Ae.working=typeof WeakMap<"u"&&Ae(new WeakMap);function ce(Le){return typeof WeakMap>"u"?!1:Ae.working?Ae(Le):Le instanceof WeakMap}t.isWeakMap=ce;function ue(Le){return p(Le)==="[object WeakSet]"}ue.working=typeof WeakSet<"u"&&ue(new WeakSet);function K(Le){return ue(Le)}t.isWeakSet=K;function Y(Le){return p(Le)==="[object ArrayBuffer]"}Y.working=typeof ArrayBuffer<"u"&&Y(new ArrayBuffer);function he(Le){return typeof ArrayBuffer>"u"?!1:Y.working?Y(Le):Le instanceof ArrayBuffer}t.isArrayBuffer=he;function ae(Le){return p(Le)==="[object DataView]"}ae.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&ae(new DataView(new ArrayBuffer(1),0,1));function U(Le){return typeof DataView>"u"?!1:ae.working?ae(Le):Le instanceof DataView}t.isDataView=U;var L=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function H(Le){return p(Le)==="[object SharedArrayBuffer]"}function ye(Le){return typeof L>"u"?!1:(typeof H.working>"u"&&(H.working=H(new L)),H.working?H(Le):Le instanceof L)}t.isSharedArrayBuffer=ye;function Ie(Le){return p(Le)==="[object AsyncFunction]"}t.isAsyncFunction=Ie;function Ee(Le){return p(Le)==="[object Map Iterator]"}t.isMapIterator=Ee;function De(Le){return p(Le)==="[object Set Iterator]"}t.isSetIterator=De;function Me(Le){return p(Le)==="[object Generator]"}t.isGeneratorObject=Me;function Ve(Le){return p(Le)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=Ve;function Ze(Le){return O(Le,y)}t.isNumberObject=Ze;function ut(Le){return O(Le,h)}t.isStringObject=ut;function st(Le){return O(Le,g)}t.isBooleanObject=st;function dt(Le){return a&&O(Le,b)}t.isBigIntObject=dt;function $e(Le){return u&&O(Le,S)}t.isSymbolObject=$e;function je(Le){return Ze(Le)||ut(Le)||st(Le)||dt(Le)||$e(Le)}t.isBoxedPrimitive=je;function qe(Le){return typeof Uint8Array<"u"&&(he(Le)||ye(Le))}t.isAnyArrayBuffer=qe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Le){Object.defineProperty(t,Le,{enumerable:!1,value:function(){throw new Error(Le+" is not supported in userland")}})})})(Ng);var uw=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Gp={exports:{}};typeof Object.create=="function"?Gp.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Gp.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var fw=Gp.exports;(function(t){var e={},r=Object.getOwnPropertyDescriptors||function(L){for(var H=Object.keys(L),ye={},Ie=0;Ie<H.length;Ie++)ye[H[Ie]]=Object.getOwnPropertyDescriptor(L,H[Ie]);return ye},n=/%[sdj%]/g;t.format=function(U){if(!R(U)){for(var L=[],H=0;H<arguments.length;H++)L.push(u(arguments[H]));return L.join(" ")}for(var H=1,ye=arguments,Ie=ye.length,Ee=String(U).replace(n,function(Me){if(Me==="%%")return"%";if(H>=Ie)return Me;switch(Me){case"%s":return String(ye[H++]);case"%d":return Number(ye[H++]);case"%j":try{return JSON.stringify(ye[H++])}catch{return"[Circular]"}default:return Me}}),De=ye[H];H<Ie;De=ye[++H])x(De)||!J(De)?Ee+=" "+De:Ee+=" "+u(De);return Ee},t.deprecate=function(U,L){if(typeof process<"u"&&process.noDeprecation===!0)return U;if(typeof process>"u")return function(){return t.deprecate(U,L).apply(this,arguments)};var H=!1;function ye(){if(!H){if(process.throwDeprecation)throw new Error(L);process.traceDeprecation?console.trace(L):console.error(L),H=!0}return U.apply(this,arguments)}return ye};var s={},o=/^$/;if(e.NODE_DEBUG){var a=e.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+a+"$","i")}t.debuglog=function(U){if(U=U.toUpperCase(),!s[U])if(o.test(U)){var L=process.pid;s[U]=function(){var H=t.format.apply(t,arguments);console.error("%s %d: %s",U,L,H)}}else s[U]=function(){};return s[U]};function u(U,L){var H={seen:[],stylize:y};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),T(L)?H.showHidden=L:L&&t._extend(H,L),D(H.showHidden)&&(H.showHidden=!1),D(H.depth)&&(H.depth=2),D(H.colors)&&(H.colors=!1),D(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=p),g(H,U,H.depth)}t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(U,L){var H=u.styles[L];return H?"\x1B["+u.colors[H][0]+"m"+U+"\x1B["+u.colors[H][1]+"m":U}function y(U,L){return U}function h(U){var L={};return U.forEach(function(H,ye){L[H]=!0}),L}function g(U,L,H){if(U.customInspect&&L&&ne(L.inspect)&&L.inspect!==t.inspect&&!(L.constructor&&L.constructor.prototype===L)){var ye=L.inspect(H,U);return R(ye)||(ye=g(U,ye,H)),ye}var Ie=b(U,L);if(Ie)return Ie;var Ee=Object.keys(L),De=h(Ee);if(U.showHidden&&(Ee=Object.getOwnPropertyNames(L)),$(L)&&(Ee.indexOf("message")>=0||Ee.indexOf("description")>=0))return S(L);if(Ee.length===0){if(ne(L)){var Me=L.name?": "+L.name:"";return U.stylize("[Function"+Me+"]","special")}if(Z(L))return U.stylize(RegExp.prototype.toString.call(L),"regexp");if(N(L))return U.stylize(Date.prototype.toString.call(L),"date");if($(L))return S(L)}var Ve="",Ze=!1,ut=["{","}"];if(C(L)&&(Ze=!0,ut=["[","]"]),ne(L)){var st=L.name?": "+L.name:"";Ve=" [Function"+st+"]"}if(Z(L)&&(Ve=" "+RegExp.prototype.toString.call(L)),N(L)&&(Ve=" "+Date.prototype.toUTCString.call(L)),$(L)&&(Ve=" "+S(L)),Ee.length===0&&(!Ze||L.length==0))return ut[0]+Ve+ut[1];if(H<0)return Z(L)?U.stylize(RegExp.prototype.toString.call(L),"regexp"):U.stylize("[Object]","special");U.seen.push(L);var dt;return Ze?dt=O(U,L,H,De,Ee):dt=Ee.map(function($e){return _(U,L,H,De,$e,Ze)}),U.seen.pop(),w(dt,Ve,ut)}function b(U,L){if(D(L))return U.stylize("undefined","undefined");if(R(L)){var H="'"+JSON.stringify(L).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(H,"string")}if(j(L))return U.stylize(""+L,"number");if(T(L))return U.stylize(""+L,"boolean");if(x(L))return U.stylize("null","null")}function S(U){return"["+Error.prototype.toString.call(U)+"]"}function O(U,L,H,ye,Ie){for(var Ee=[],De=0,Me=L.length;De<Me;++De)K(L,String(De))?Ee.push(_(U,L,H,ye,String(De),!0)):Ee.push("");return Ie.forEach(function(Ve){Ve.match(/^\d+$/)||Ee.push(_(U,L,H,ye,Ve,!0))}),Ee}function _(U,L,H,ye,Ie,Ee){var De,Me,Ve;if(Ve=Object.getOwnPropertyDescriptor(L,Ie)||{value:L[Ie]},Ve.get?Ve.set?Me=U.stylize("[Getter/Setter]","special"):Me=U.stylize("[Getter]","special"):Ve.set&&(Me=U.stylize("[Setter]","special")),K(ye,Ie)||(De="["+Ie+"]"),Me||(U.seen.indexOf(Ve.value)<0?(x(H)?Me=g(U,Ve.value,null):Me=g(U,Ve.value,H-1),Me.indexOf(`
66
66
  `)>-1&&(Ee?Me=Me.split(`
67
67
  `).map(function(Ze){return" "+Ze}).join(`
68
68
  `).slice(2):Me=`
@@ -2595,7 +2595,7 @@ Please consider using \`${n}\`${s}, or add @babel/plugin-transform-modules-commo
2595
2595
  })()
2596
2596
  `,J={ReferencedIdentifier(N){const $=N.node.name;if($!=="module"&&$!=="exports")return;const ne=N.scope.getBinding($);this.scope.getBinding($)!==ne||N.parentPath.isObjectProperty({value:N.node})&&N.parentPath.parentPath.isObjectPattern()||N.parentPath.isAssignmentExpression({left:N.node})||N.isAssignmentExpression({left:N.node})||N.replaceWith(Z($))},UpdateExpression(N){const $=N.get("argument");if(!$.isIdentifier())return;const ne=$.node.name;if(ne!=="module"&&ne!=="exports")return;const me=N.scope.getBinding(ne);this.scope.getBinding(ne)===me&&N.replaceWith(n.types.assignmentExpression(N.node.operator[0]+"=",$.node,Z(ne)))},AssignmentExpression(N){const $=N.get("left");if($.isIdentifier()){const ne=$.node.name;if(ne!=="module"&&ne!=="exports")return;const me=N.scope.getBinding(ne);if(this.scope.getBinding(ne)!==me)return;const Ae=N.get("right");Ae.replaceWith(n.types.sequenceExpression([Ae.node,Z(ne)]))}else if($.isPattern()){const ne=$.getOuterBindingIdentifiers(),me=Object.keys(ne).find(Ce=>Ce!=="module"&&Ce!=="exports"?!1:this.scope.getBinding(Ce)===N.scope.getBinding(Ce));if(me){const Ce=N.get("right");Ce.replaceWith(n.types.sequenceExpression([Ce.node,Z(me)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),x&&(0,a.defineCommonJSHook)(this.file,(0,o.lazyImportsHook)(x))},visitor:{["CallExpression"+(u.types.importExpression?"|ImportExpression":"")](N){if(!this.file.has("@babel/plugin-proposal-dynamic-import")||N.isCallExpression()&&!n.types.isImport(N.node.callee))return;let{scope:$}=N;do $.rename("require");while($=$.parent);(0,s.transformDynamicImport)(N,C,this.file)},Program:{exit(N,$){if(!(0,r.isModule)(N))return;N.scope.rename("exports"),N.scope.rename("module"),N.scope.rename("require"),N.scope.rename("__filename"),N.scope.rename("__dirname"),E||N.traverse(J,{scope:N.scope});let ne=(0,r.getModuleName)(this.file.opts,p);ne&&(ne=n.types.stringLiteral(ne));const me=(0,a.makeInvokers)(this.file),{meta:Ce,headers:Ae}=(0,r.rewriteModuleStatementsAndPrepareHeader)(N,{exportName:"exports",constantReexports:R,enumerableModuleMeta:I,strict:_,strictMode:w,allowTopLevelThis:O,noInterop:C,importInterop:T,wrapReference:me.wrapReference,getWrapperPayload:me.getWrapperPayload,esNamespaceOnly:typeof $.filename=="string"&&$.filename.endsWith(".mjs")?S:b,noIncompleteNsImportDetection:D,filename:this.file.opts.filename});for(const[ce,ue]of Ce.source){const K=n.types.callExpression(n.types.identifier("require"),[n.types.stringLiteral(ce)]);let Y;if((0,r.isSideEffectImport)(ue)){if(x&&ue.wrap==="function")throw new Error("Assertion failure");Y=n.types.expressionStatement(K)}else{const he=(0,r.wrapInterop)(N,K,ue.interop)||K;if(ue.wrap){const ae=me.buildRequireWrapper(ue.name,he,ue.wrap,ue.referenced);if(ae===!1)continue;Y=ae}Y??(Y=n.template.statement.ast`
2597
2597
  var ${ue.name} = ${he};
2598
- `)}Y.loc=ue.loc,Ae.push(Y),Ae.push(...(0,r.buildNamespaceInitStatements)(Ce,ue,R,me.wrapReference))}(0,r.ensureStatementsHoisted)(Ae),N.unshiftContainer("body",Ae),N.get("body").forEach(ce=>{Ae.includes(ce.node)&&ce.isVariableDeclaration()&&ce.scope.registerDeclaration(ce)})}}}}})})(oT),Object.defineProperty(iS,"__esModule",{value:!0});var fT=Ns,k4=Yu,D4=oT,B4=Cu;function pT(t){return t&&t.__esModule?t:{default:t}}var dT=pT(k4),R4=pT(D4);const Ms=new B4.OptionValidator("@babel/preset-typescript");function j4(t={}){let{allowNamespaces:e=!0,jsxPragma:r,onlyRemoveTypeImports:n}=t;const s={ignoreExtensions:"ignoreExtensions",disallowAmbiguousJSXLike:"disallowAmbiguousJSXLike",jsxPragmaFrag:"jsxPragmaFrag",optimizeConstEnums:"optimizeConstEnums",rewriteImportExtensions:"rewriteImportExtensions",allExtensions:"allExtensions",isTSX:"isTSX"},o=Ms.validateStringOption(s.jsxPragmaFrag,t.jsxPragmaFrag,"React.Fragment");var a=Ms.validateBooleanOption(s.allExtensions,t.allExtensions,!1),u=Ms.validateBooleanOption(s.isTSX,t.isTSX,!1);u&&Ms.invariant(a,"isTSX:true requires allExtensions:true");const p=Ms.validateBooleanOption(s.ignoreExtensions,t.ignoreExtensions,!1),y=Ms.validateBooleanOption(s.disallowAmbiguousJSXLike,t.disallowAmbiguousJSXLike,!1);y&&Ms.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true");const h=Ms.validateBooleanOption(s.optimizeConstEnums,t.optimizeConstEnums,!1),g=Ms.validateBooleanOption(s.rewriteImportExtensions,t.rewriteImportExtensions,!1),b={ignoreExtensions:p,allowNamespaces:e,disallowAmbiguousJSXLike:y,jsxPragma:r,jsxPragmaFrag:o,onlyRemoveTypeImports:n,optimizeConstEnums:h,rewriteImportExtensions:g};return b.allExtensions=a,b.isTSX=u,b}var M4=fT.declare(function({types:t,template:e}){function r(n,s,o){if(n){if(t.isStringLiteral(n)){/^\.\.?\//.test(n.value)&&(n.value=n.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,function(a,u,p,y,h){return u?".js":p&&(!y||!h)?a:p+y+"."+h.toLowerCase()+"js"}));return}o.availableHelper("tsRewriteRelativeImportExtensions")?s.replaceWith(t.callExpression(o.addHelper("tsRewriteRelativeImportExtensions"),[n])):s.replaceWith(e.expression.ast`(${n} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`)}}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(n,s){const o=n.node;(t.isImportDeclaration(o)?o.importKind:o.exportKind)==="value"&&r(o.source,n.get("source"),s)},CallExpression(n,s){t.isImport(n.node.callee)&&r(n.node.arguments[0],n.get("arguments.0"),s)},ImportExpression(n,s){r(n.node.source,n.get("source"),s)}}}}),L4=fT.declarePreset((t,e)=>{t.assertVersion(7);const{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:o,isTSX:a,jsxPragma:u,jsxPragmaFrag:p,onlyRemoveTypeImports:y,optimizeConstEnums:h,rewriteImportExtensions:g}=j4(e),b=_=>({allowDeclareFields:e.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:_,jsxPragma:u,jsxPragmaFrag:p,onlyRemoveTypeImports:y,optimizeConstEnums:h}),S=(_,w)=>[[dT.default,Object.assign({isTSX:_},b(w))]];return{plugins:g?[M4]:[],overrides:r||n?[{plugins:S(a,o)}]:[{test:/\.ts$/,plugins:S(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:S(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[R4.default,{allowTopLevelThis:!0}],[dT.default,b(!0)]]},{test:/\.tsx$/,plugins:S(!0,!1)}]}}),F4=iS.default=L4;class q4 extends Error{constructor(r){super(`Script execution timeout after ${r}ms`);Yt(this,"isScriptTimeout",!0);this.name="ScriptTimeoutError"}}class hT extends Error{constructor(r,n){super(r);Yt(this,"isScriptCompileError",!0);this.scriptName=n,this.name="ScriptCompileError"}}function $4(t,e={},r){const n=s=>s.map(o=>{if(typeof o=="object")try{return JSON.stringify(o,null,2)}catch{return String(o)}return String(o)}).join(" ");return{rtcAgent:t,console:{log:(...s)=>{const o=n(s);console.log("[Script]",o),r&&r.logs.push(o)},warn:(...s)=>{const o=n(s);console.warn("[Script]",o),r&&r.warns.push(o)},error:(...s)=>{const o=n(s);console.error("[Script]",o),r&&r.errors.push(o)}},params:e,Promise,Date,Math,JSON,Array,Object,String,Number,Boolean,Error,Map,Set,WeakMap,WeakSet,RegExp,Symbol,BigInt,TypeError,RangeError,ReferenceError,SyntaxError,URIError,AggregateError,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,encodeURI,decodeURI,atob,btoa,structuredClone,NaN:NaN,Infinity:1/0,undefined:void 0,URL,URLSearchParams}}const U4=[F4],V4=new Set(["localStorage","sessionStorage","indexedDB","caches","cookieStore","fetch","XMLHttpRequest","WebSocket","EventSource","BroadcastChannel","window","self","document","navigator","location","history","screen","alert","confirm","prompt","open","close","print","postMessage","frames","parent","top","opener","eval","Function","globalThis","global","Worker","SharedWorker","ServiceWorker","importScripts","setTimeout","setInterval","SharedArrayBuffer","Atomics","require","module","exports","__dirname","__filename"]),K4=new Set(["__proto__","constructor"]),W4={visitor:{Identifier(t){if(!t.isReferencedIdentifier())return;const e=t.node.name;if(V4.has(e)&&!t.scope.hasBinding(e)&&!t.parent.type.startsWith("TS"))throw t.buildCodeFrameError(`Access to global '${e}' is not allowed. Use rtcAgent APIs instead.`)},MemberExpression(t){const{property:e,computed:r}=t.node;let n;if(!r&&e.type==="Identifier"?n=e.name:r&&e.type==="StringLiteral"&&(n=e.value),n&&K4.has(n))throw t.buildCodeFrameError(`Access to '.${n}' is not allowed (prototype chain escape prevention).`)},ImportExpression(t){throw t.buildCodeFrameError("Dynamic import() is not allowed in scripts.")},WhileStatement(t){throw t.buildCodeFrameError("`while` loops are not allowed. Use `for...of` or Array iteration methods (forEach/map/filter/reduce) instead.")},DoWhileStatement(t){throw t.buildCodeFrameError("`do...while` loops are not allowed. Use `for...of` or Array iteration methods instead.")},ForStatement(t){if(t.node.test===null)throw t.buildCodeFrameError("`for(;;)` infinite loops are not allowed. Use a bounded `for` loop or `for...of` instead.")}}};function yT(t,e){const r=e?`${e}.ts`:"script.ts";let n;try{n=GI.transformSync(t,{presets:U4,filename:r,plugins:[W4]})}catch(s){const o=s instanceof Error?s.message:String(s);throw new hT(`Babel transformation failed for '${r}': ${o}`,e)}if(!n||!n.code)throw new hT("Babel transformation failed: no output",e);return n.code}function G4(t){const e=t.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!e)throw new Error("Invalid script format: missing frontmatter");const r=e[1],n=e[2],s={},o=r.split(/\r?\n/);for(const h of o){if(!h.trim()||h.trim().startsWith("#"))continue;const g=h.indexOf(":");if(g===-1)continue;const b=h.substring(0,g).trim();let S=h.substring(g+1).trim();S.startsWith('"')&&S.endsWith('"')&&(S=S.slice(1,-1)),b&&(s[b]=S)}const a=/```(?:typescript|javascript|ts|js)?\r?\n?([\s\S]*?)\r?\n?```/g,u=[];let p;for(;(p=a.exec(n))!==null;)u.push(p[1].trim());if(u.length===0)return{metadata:s,code:n.trim()};u.length>1&&console.warn(`[ScriptEngine] Found ${u.length} code blocks in script, concatenating all.`);const y=u.join(`
2598
+ `)}Y.loc=ue.loc,Ae.push(Y),Ae.push(...(0,r.buildNamespaceInitStatements)(Ce,ue,R,me.wrapReference))}(0,r.ensureStatementsHoisted)(Ae),N.unshiftContainer("body",Ae),N.get("body").forEach(ce=>{Ae.includes(ce.node)&&ce.isVariableDeclaration()&&ce.scope.registerDeclaration(ce)})}}}}})})(oT),Object.defineProperty(iS,"__esModule",{value:!0});var fT=Ns,k4=Yu,D4=oT,B4=Cu;function pT(t){return t&&t.__esModule?t:{default:t}}var dT=pT(k4),R4=pT(D4);const Ms=new B4.OptionValidator("@babel/preset-typescript");function j4(t={}){let{allowNamespaces:e=!0,jsxPragma:r,onlyRemoveTypeImports:n}=t;const s={ignoreExtensions:"ignoreExtensions",disallowAmbiguousJSXLike:"disallowAmbiguousJSXLike",jsxPragmaFrag:"jsxPragmaFrag",optimizeConstEnums:"optimizeConstEnums",rewriteImportExtensions:"rewriteImportExtensions",allExtensions:"allExtensions",isTSX:"isTSX"},o=Ms.validateStringOption(s.jsxPragmaFrag,t.jsxPragmaFrag,"React.Fragment");var a=Ms.validateBooleanOption(s.allExtensions,t.allExtensions,!1),u=Ms.validateBooleanOption(s.isTSX,t.isTSX,!1);u&&Ms.invariant(a,"isTSX:true requires allExtensions:true");const p=Ms.validateBooleanOption(s.ignoreExtensions,t.ignoreExtensions,!1),y=Ms.validateBooleanOption(s.disallowAmbiguousJSXLike,t.disallowAmbiguousJSXLike,!1);y&&Ms.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true");const h=Ms.validateBooleanOption(s.optimizeConstEnums,t.optimizeConstEnums,!1),g=Ms.validateBooleanOption(s.rewriteImportExtensions,t.rewriteImportExtensions,!1),b={ignoreExtensions:p,allowNamespaces:e,disallowAmbiguousJSXLike:y,jsxPragma:r,jsxPragmaFrag:o,onlyRemoveTypeImports:n,optimizeConstEnums:h,rewriteImportExtensions:g};return b.allExtensions=a,b.isTSX=u,b}var M4=fT.declare(function({types:t,template:e}){function r(n,s,o){if(n){if(t.isStringLiteral(n)){/^\.\.?\//.test(n.value)&&(n.value=n.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,function(a,u,p,y,h){return u?".js":p&&(!y||!h)?a:p+y+"."+h.toLowerCase()+"js"}));return}o.availableHelper("tsRewriteRelativeImportExtensions")?s.replaceWith(t.callExpression(o.addHelper("tsRewriteRelativeImportExtensions"),[n])):s.replaceWith(e.expression.ast`(${n} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`)}}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(n,s){const o=n.node;(t.isImportDeclaration(o)?o.importKind:o.exportKind)==="value"&&r(o.source,n.get("source"),s)},CallExpression(n,s){t.isImport(n.node.callee)&&r(n.node.arguments[0],n.get("arguments.0"),s)},ImportExpression(n,s){r(n.node.source,n.get("source"),s)}}}}),L4=fT.declarePreset((t,e)=>{t.assertVersion(7);const{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:o,isTSX:a,jsxPragma:u,jsxPragmaFrag:p,onlyRemoveTypeImports:y,optimizeConstEnums:h,rewriteImportExtensions:g}=j4(e),b=_=>({allowDeclareFields:e.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:_,jsxPragma:u,jsxPragmaFrag:p,onlyRemoveTypeImports:y,optimizeConstEnums:h}),S=(_,w)=>[[dT.default,Object.assign({isTSX:_},b(w))]];return{plugins:g?[M4]:[],overrides:r||n?[{plugins:S(a,o)}]:[{test:/\.ts$/,plugins:S(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:S(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[R4.default,{allowTopLevelThis:!0}],[dT.default,b(!0)]]},{test:/\.tsx$/,plugins:S(!0,!1)}]}}),F4=iS.default=L4;class q4 extends Error{constructor(r){super(`Script execution timeout after ${r}ms`);Ht(this,"isScriptTimeout",!0);this.name="ScriptTimeoutError"}}class hT extends Error{constructor(r,n){super(r);Ht(this,"isScriptCompileError",!0);this.scriptName=n,this.name="ScriptCompileError"}}function $4(t,e={},r){const n=s=>s.map(o=>{if(typeof o=="object")try{return JSON.stringify(o,null,2)}catch{return String(o)}return String(o)}).join(" ");return{rtcAgent:t,console:{log:(...s)=>{const o=n(s);console.log("[Script]",o),r&&r.logs.push(o)},warn:(...s)=>{const o=n(s);console.warn("[Script]",o),r&&r.warns.push(o)},error:(...s)=>{const o=n(s);console.error("[Script]",o),r&&r.errors.push(o)}},params:e,Promise,Date,Math,JSON,Array,Object,String,Number,Boolean,Error,Map,Set,WeakMap,WeakSet,RegExp,Symbol,BigInt,TypeError,RangeError,ReferenceError,SyntaxError,URIError,AggregateError,parseInt,parseFloat,isNaN,isFinite,encodeURIComponent,decodeURIComponent,encodeURI,decodeURI,atob,btoa,structuredClone,NaN:NaN,Infinity:1/0,undefined:void 0,URL,URLSearchParams}}const U4=[F4],V4=new Set(["localStorage","sessionStorage","indexedDB","caches","cookieStore","fetch","XMLHttpRequest","WebSocket","EventSource","BroadcastChannel","window","self","document","navigator","location","history","screen","alert","confirm","prompt","open","close","print","postMessage","frames","parent","top","opener","eval","Function","globalThis","global","Worker","SharedWorker","ServiceWorker","importScripts","setTimeout","setInterval","SharedArrayBuffer","Atomics","require","module","exports","__dirname","__filename"]),K4=new Set(["__proto__","constructor"]),W4={visitor:{Identifier(t){if(!t.isReferencedIdentifier())return;const e=t.node.name;if(V4.has(e)&&!t.scope.hasBinding(e)&&!t.parent.type.startsWith("TS"))throw t.buildCodeFrameError(`Access to global '${e}' is not allowed. Use rtcAgent APIs instead.`)},MemberExpression(t){const{property:e,computed:r}=t.node;let n;if(!r&&e.type==="Identifier"?n=e.name:r&&e.type==="StringLiteral"&&(n=e.value),n&&K4.has(n))throw t.buildCodeFrameError(`Access to '.${n}' is not allowed (prototype chain escape prevention).`)},ImportExpression(t){throw t.buildCodeFrameError("Dynamic import() is not allowed in scripts.")},WhileStatement(t){throw t.buildCodeFrameError("`while` loops are not allowed. Use `for...of` or Array iteration methods (forEach/map/filter/reduce) instead.")},DoWhileStatement(t){throw t.buildCodeFrameError("`do...while` loops are not allowed. Use `for...of` or Array iteration methods instead.")},ForStatement(t){if(t.node.test===null)throw t.buildCodeFrameError("`for(;;)` infinite loops are not allowed. Use a bounded `for` loop or `for...of` instead.")}}};function yT(t,e){const r=e?`${e}.ts`:"script.ts";let n;try{n=GI.transformSync(t,{presets:U4,filename:r,plugins:[W4]})}catch(s){const o=s instanceof Error?s.message:String(s);throw new hT(`Babel transformation failed for '${r}': ${o}`,e)}if(!n||!n.code)throw new hT("Babel transformation failed: no output",e);return n.code}function G4(t){const e=t.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!e)throw new Error("Invalid script format: missing frontmatter");const r=e[1],n=e[2],s={},o=r.split(/\r?\n/);for(const h of o){if(!h.trim()||h.trim().startsWith("#"))continue;const g=h.indexOf(":");if(g===-1)continue;const b=h.substring(0,g).trim();let S=h.substring(g+1).trim();S.startsWith('"')&&S.endsWith('"')&&(S=S.slice(1,-1)),b&&(s[b]=S)}const a=/```(?:typescript|javascript|ts|js)?\r?\n?([\s\S]*?)\r?\n?```/g,u=[];let p;for(;(p=a.exec(n))!==null;)u.push(p[1].trim());if(u.length===0)return{metadata:s,code:n.trim()};u.length>1&&console.warn(`[ScriptEngine] Found ${u.length} code blocks in script, concatenating all.`);const y=u.join(`
2599
2599
 
2600
2600
  `);return{metadata:s,code:y}}function z4(t,e,r){const n=new Date().toISOString();let s=`---
2601
2601
  `;return s+=`name: "${t}"
@@ -2608,7 +2608,7 @@ Please consider using \`${n}\`${s}, or add @babel/plugin-transform-modules-commo
2608
2608
  return (async () => {
2609
2609
  ${s}
2610
2610
  })();
2611
- `,p=new Function(...o,u);let y;const h=new Promise((g,b)=>{y=setTimeout(()=>{b(new q4(r))},r)});try{const g=p.call(void 0,...a);return await Promise.race([g,h])}finally{y!==void 0&&clearTimeout(y)}}async function J4(t,e,r){const n=z4(t,e,r),s=`/scripts/${t}.ts`;return await Lr.write(s,n,"overwrite"),s}async function yl(t){try{return{success:!0,data:await t()}}catch(e){return e instanceof To?{success:!1,error:e.message}:e instanceof SyntaxError?{success:!1,error:e.message}:{success:!1,error:e instanceof Error?e.message:String(e)}}}function zn(t,e){const r=t[e];if(r==null)return null;if(typeof r!="string")throw new TypeError(`Parameter '${e}' must be a string, got ${typeof r}`);return r}function ml(t,e){const r=t[e];if(r==null)return null;if(typeof r=="number"&&!isNaN(r))return r;if(typeof r=="string"){const n=Number(r);if(!isNaN(n))return n}throw new TypeError(`Parameter '${e}' must be a number, got ${typeof r}`)}const mT=["overwrite","append","create-new"];function Y4(t){return typeof t=="string"&&mT.includes(t)}class X4{constructor(){Yt(this,"name","ls");Yt(this,"description","List directory contents")}async execute(e){const r=zn(e,"path")||"/";return yl(()=>Lr.ls(r))}}class Q4{constructor(){Yt(this,"name","read");Yt(this,"description","Read file contents")}async execute(e){const r=zn(e,"path");if(!r)return{success:!1,error:"path is required"};const n=ml(e,"offset")??void 0,s=ml(e,"limit")??void 0;return yl(()=>Lr.read(r,n,s))}}class Z4{constructor(){Yt(this,"name","write");Yt(this,"description","Write to file")}async execute(e){const r=zn(e,"path");if(!r)return{success:!1,error:"path is required"};const n=e.content||"",s=e.mode??"overwrite";return Y4(s)?yl(async()=>({totalChars:await Lr.write(r,n,s),path:r})):{success:!1,error:`Invalid mode '${s}'. Must be one of: ${mT.join(", ")}`}}}class eN{constructor(){Yt(this,"name","find");Yt(this,"description","Find files by pattern")}async execute(e){const r=zn(e,"pattern");if(!r)return{success:!1,error:"pattern is required"};const n=zn(e,"path")||"/";return yl(()=>Lr.find(r,n))}}class tN{constructor(){Yt(this,"name","grep");Yt(this,"description","Search file contents")}async execute(e){const r=zn(e,"pattern");if(!r)return{success:!1,error:"pattern is required"};const n=zn(e,"path")||"/",s=e.case_sensitive||!1,o=ml(e,"max_results")??100;return yl(()=>Lr.grep(r,n,s,o))}}class gT{constructor(e){Yt(this,"name","script");Yt(this,"description","Save or execute scripts. Actions: save (save script to /scripts/), run (execute saved script), eval (execute inline code)");Yt(this,"rtcAgent");this.rtcAgent=e??null}async execute(e){let r=zn(e,"action");return r||(r="eval"),r==="save"?this._saveScript(e):r==="run"?this._runScript(e):r==="eval"?this._evalScript(e):{success:!1,error:`Unknown action: ${r}. Use save, run, or eval.`}}async _saveScript(e){const r=zn(e,"name");if(!r)return{success:!1,error:"name is required for save action"};const n=zn(e,"code");if(!n)return{success:!1,error:"code is required for save action"};const s=zn(e,"description")||void 0;try{yT(n,r)}catch(o){return o instanceof Error&&"isScriptCompileError"in o?{success:!1,error:`Script syntax check failed: ${o.message}`}:{success:!1,error:`Script syntax check failed: ${o instanceof Error?o.message:String(o)}`}}try{return{success:!0,data:{path:await J4(r,n,s),name:r}}}catch(o){return{success:!1,error:`Failed to save script: ${o instanceof Error?o.message:String(o)}`}}}async _runScript(e){const r=zn(e,"name");if(!r)return{success:!1,error:"name is required for run action"};const n=e.params||{},s=ml(e,"timeout")??3e4;return this._executeCode(r,n,s)}async _evalScript(e){const r=zn(e,"code");if(!r)return{success:!1,error:"code is required for eval action"};const n=e.params||{},s=ml(e,"timeout")??3e4;return this._executeCode(void 0,n,s,r)}async _executeCode(e,r,n,s){if(!this.rtcAgent)return{success:!1,error:"rtcAgent not initialized. Pass rtcAgent to ScriptTool constructor."};try{let o;if(s!==void 0)o=s;else{const h=`/scripts/${e}.ts`,g=await Lr.read(h);o=G4(g).code}const a={logs:[],warns:[],errors:[]},u=$4(this.rtcAgent,r,a),p=await H4(o,u,n,e),y={};return e&&(y.name=e),p!==void 0&&(y.result=p),a.logs.length>0&&(y.logs=a.logs),a.warns.length>0&&(y.warnings=a.warns),a.errors.length>0&&(y.errors=a.errors),{success:!0,data:y}}catch(o){return o instanceof Error&&"isScriptTimeout"in o?{success:!1,error:o.message}:o instanceof Error&&"isScriptCompileError"in o?{success:!1,error:`Script compile error: ${o.message}`}:{success:!1,error:`Script execution failed: ${o instanceof Error?o.message:String(o)}`}}}}function rN(t){return[new X4,new Q4,new Z4,new eN,new tN,new gT(t)]}class nN{constructor(e){Yt(this,"tools",new Map);const r=rN(e);for(const n of r)this.register(n)}setRtcAgent(e){this.register(new gT(e))}register(e){this.tools.set(e.name,e)}get(e){return this.tools.get(e)}has(e){return this.tools.has(e)}getToolNames(){return Array.from(this.tools.keys())}async execute(e,r){const n=this.tools.get(e);if(!n)throw new Error(`Tool not found: ${e}`);return n.execute(r)}}new nN;function iN(t={}){const{name:e="RTC Agent",description:r="Your AI-powered assistant",persona:n=""}=t;let s=`# ${e}
2611
+ `,p=new Function(...o,u);let y;const h=new Promise((g,b)=>{y=setTimeout(()=>{b(new q4(r))},r)});try{const g=p.call(void 0,...a);return await Promise.race([g,h])}finally{y!==void 0&&clearTimeout(y)}}async function J4(t,e,r){const n=z4(t,e,r),s=`/scripts/${t}.ts`;return await Lr.write(s,n,"overwrite"),s}async function yl(t){try{return{success:!0,data:await t()}}catch(e){return e instanceof To?{success:!1,error:e.message}:e instanceof SyntaxError?{success:!1,error:e.message}:{success:!1,error:e instanceof Error?e.message:String(e)}}}function zn(t,e){const r=t[e];if(r==null)return null;if(typeof r!="string")throw new TypeError(`Parameter '${e}' must be a string, got ${typeof r}`);return r}function ml(t,e){const r=t[e];if(r==null)return null;if(typeof r=="number"&&!isNaN(r))return r;if(typeof r=="string"){const n=Number(r);if(!isNaN(n))return n}throw new TypeError(`Parameter '${e}' must be a number, got ${typeof r}`)}const mT=["overwrite","append","create-new"];function Y4(t){return typeof t=="string"&&mT.includes(t)}class X4{constructor(){Ht(this,"name","ls");Ht(this,"description","List directory contents")}async execute(e){const r=zn(e,"path")||"/";return yl(()=>Lr.ls(r))}}class Q4{constructor(){Ht(this,"name","read");Ht(this,"description","Read file contents")}async execute(e){const r=zn(e,"path");if(!r)return{success:!1,error:"path is required"};const n=ml(e,"offset")??void 0,s=ml(e,"limit")??void 0;return yl(()=>Lr.read(r,n,s))}}class Z4{constructor(){Ht(this,"name","write");Ht(this,"description","Write to file")}async execute(e){const r=zn(e,"path");if(!r)return{success:!1,error:"path is required"};const n=e.content||"",s=e.mode??"overwrite";return Y4(s)?yl(async()=>({totalChars:await Lr.write(r,n,s),path:r})):{success:!1,error:`Invalid mode '${s}'. Must be one of: ${mT.join(", ")}`}}}class eN{constructor(){Ht(this,"name","find");Ht(this,"description","Find files by pattern")}async execute(e){const r=zn(e,"pattern");if(!r)return{success:!1,error:"pattern is required"};const n=zn(e,"path")||"/";return yl(()=>Lr.find(r,n))}}class tN{constructor(){Ht(this,"name","grep");Ht(this,"description","Search file contents")}async execute(e){const r=zn(e,"pattern");if(!r)return{success:!1,error:"pattern is required"};const n=zn(e,"path")||"/",s=e.case_sensitive||!1,o=ml(e,"max_results")??100;return yl(()=>Lr.grep(r,n,s,o))}}class gT{constructor(e){Ht(this,"name","script");Ht(this,"description","Save or execute scripts. Actions: save (save script to /scripts/), run (execute saved script), eval (execute inline code)");Ht(this,"rtcAgent");this.rtcAgent=e??null}async execute(e){let r=zn(e,"action");return r||(r="eval"),r==="save"?this._saveScript(e):r==="run"?this._runScript(e):r==="eval"?this._evalScript(e):{success:!1,error:`Unknown action: ${r}. Use save, run, or eval.`}}async _saveScript(e){const r=zn(e,"name");if(!r)return{success:!1,error:"name is required for save action"};const n=zn(e,"code");if(!n)return{success:!1,error:"code is required for save action"};const s=zn(e,"description")||void 0;try{yT(n,r)}catch(o){return o instanceof Error&&"isScriptCompileError"in o?{success:!1,error:`Script syntax check failed: ${o.message}`}:{success:!1,error:`Script syntax check failed: ${o instanceof Error?o.message:String(o)}`}}try{return{success:!0,data:{path:await J4(r,n,s),name:r}}}catch(o){return{success:!1,error:`Failed to save script: ${o instanceof Error?o.message:String(o)}`}}}async _runScript(e){const r=zn(e,"name");if(!r)return{success:!1,error:"name is required for run action"};const n=e.params||{},s=ml(e,"timeout")??3e4;return this._executeCode(r,n,s)}async _evalScript(e){const r=zn(e,"code");if(!r)return{success:!1,error:"code is required for eval action"};const n=e.params||{},s=ml(e,"timeout")??3e4;return this._executeCode(void 0,n,s,r)}async _executeCode(e,r,n,s){if(!this.rtcAgent)return{success:!1,error:"rtcAgent not initialized. Pass rtcAgent to ScriptTool constructor."};try{let o;if(s!==void 0)o=s;else{const h=`/scripts/${e}.ts`,g=await Lr.read(h);o=G4(g).code}const a={logs:[],warns:[],errors:[]},u=$4(this.rtcAgent,r,a),p=await H4(o,u,n,e),y={};return e&&(y.name=e),p!==void 0&&(y.result=p),a.logs.length>0&&(y.logs=a.logs),a.warns.length>0&&(y.warnings=a.warns),a.errors.length>0&&(y.errors=a.errors),{success:!0,data:y}}catch(o){return o instanceof Error&&"isScriptTimeout"in o?{success:!1,error:o.message}:o instanceof Error&&"isScriptCompileError"in o?{success:!1,error:`Script compile error: ${o.message}`}:{success:!1,error:`Script execution failed: ${o instanceof Error?o.message:String(o)}`}}}}function rN(t){return[new X4,new Q4,new Z4,new eN,new tN,new gT(t)]}class nN{constructor(e){Ht(this,"tools",new Map);const r=rN(e);for(const n of r)this.register(n)}setRtcAgent(e){this.register(new gT(e))}register(e){this.tools.set(e.name,e)}get(e){return this.tools.get(e)}has(e){return this.tools.has(e)}getToolNames(){return Array.from(this.tools.keys())}async execute(e,r){const n=this.tools.get(e);if(!n)throw new Error(`Tool not found: ${e}`);return n.execute(r)}}new nN;function iN(t={}){const{name:e="RTC Agent",description:r="Your AI-powered assistant",persona:n=""}=t;let s=`# ${e}
2612
2612
 
2613
2613
  `;return s+=`${r}
2614
2614
 
@@ -2640,9 +2640,9 @@ For business workflows, check \`/scenarios/\` directory.
2640
2640
 
2641
2641
  ---
2642
2642
  *This file is auto-generated. Content will be updated as Functions and Scenarios are registered.*
2643
- `,s}async function sN(t={}){try{if(!await Lr.exists("/AGENT.md")){const r=iN(t);await Lr.write("/AGENT.md",r,"overwrite"),console.log("[VirtualFS] Initialized: AGENT.md created")}}catch(e){throw console.error("[VirtualFS] Failed to initialize:",e),e}}const Ia=class Ia{constructor(e){Yt(this,"client");Yt(this,"offsetManager",jy());Yt(this,"entityRepository",lE());const r={...e.client,getLastOffset:n=>this.offsetManager.getPosition(n),updateOffset:async(n,s,o)=>{await this.offsetManager.updatePosition(n,s,o)},onPublication:async n=>{await this.handlePublication(n)}};this.client=new XT(r)}getClient(){return this.client}getOffsetManager(){return this.offsetManager}getEntityRepository(){return this.entityRepository}async connect(){await this.client.connect()}disconnect(){this.client.disconnect()}async reconnect(){await this.client.reconnect()}async handlePublication(e){const r=e.data;await this.entityRepository.applyUpdate(r)}async listSessions(e,r){return this.entityRepository.listSessions(e,r)}async getSession(e){return this.entityRepository.getClientSession(e)}async getSessionByClientId(e){return this.entityRepository.getClientSession(e)}async listMessages(e,r,n,s){return this.entityRepository.listMessagesBySession(e,r,n,s)}async getMessage(e){return this.entityRepository.getClientMessage(e)}async listRtc(e,r,n){return this.entityRepository.listRtcBySession(e,r,n)}async getNextRtcToProcess(e){return this.entityRepository.getNextRtcToProcess(e)}async close(){this.disconnect(),await tE()}async flushAll(){await rE()}async sendMessage(e){const{content:r,messageClientId:n,sessionClientId:s}=e,o=await this.entityRepository.getClientSession(s);let a,u,p="";try{p=await Lr.read("/AGENT.md")}catch{}if(o){const S=si(),O=await this.entityRepository.upsertSession({client_id:o.client_id,server_id:o.server_id,updated_at:S,agent_prompt:p},o.sync_status,{silent:!0});a=O.after,u=!1,p=O.after.agent_prompt??""}else{const S=this._generateSessionTitle(r);console.log("[PersistenceLayer.sendMessage] New session created, generated title:",`"${S}"`),a=(await this.entityRepository.upsertSession({client_id:s,status:"active",agent_prompt:p,title:S},"pending",{silent:!0})).after,u=!0,console.log("[PersistenceLayer.sendMessage] Session after upsert:",{client_id:a.client_id,title:a.title})}const y=si(),h=typeof r.data=="string"?r.data:JSON.stringify(r.data),b=(await this.entityRepository.upsertMessage({client_id:n,session_client_id:a.client_id,role:"user",content:h,streaming_status:"completed",created_at:y,updated_at:y},"pending",{silent:!0})).after;return this._syncToServer(b,a,r,u,p).catch(S=>{console.error("[PersistenceLayer] _syncToServer failed:",S)}),{session:a,message:b}}async insertLocalMessage(e){const r=si();return(await this.entityRepository.upsertMessage({client_id:crypto.randomUUID(),session_client_id:e.sessionClientId,role:e.role,content:e.content,streaming_status:"completed",creator_kind:e.creatorKind??"system",creator_ref_id:e.creatorRefId??"",created_at:r,updated_at:r},"synced")).after}_generateSessionTitle(e){var r;try{let n="";if(typeof e.data=="string")n=e.data;else if(e.data&&typeof e.data=="object"){const o=e.data;n=o.text||o.content||JSON.stringify(e.data)}const s=((r=n.split(`
2643
+ `,s}async function sN(t={}){try{if(!await Lr.exists("/AGENT.md")){const r=iN(t);await Lr.write("/AGENT.md",r,"overwrite"),console.log("[VirtualFS] Initialized: AGENT.md created")}}catch(e){throw console.error("[VirtualFS] Failed to initialize:",e),e}}const Ia=class Ia{constructor(e){Ht(this,"client");Ht(this,"offsetManager",jy());Ht(this,"entityRepository",lE());const r={...e.client,getLastOffset:n=>this.offsetManager.getPosition(n),updateOffset:async(n,s,o)=>{await this.offsetManager.updatePosition(n,s,o)},onPublication:async n=>{await this.handlePublication(n)}};this.client=new XT(r)}getClient(){return this.client}getOffsetManager(){return this.offsetManager}getEntityRepository(){return this.entityRepository}async connect(){await this.client.connect()}disconnect(){this.client.disconnect()}async reconnect(){await this.client.reconnect()}async handlePublication(e){const r=e.data;await this.entityRepository.applyUpdate(r)}async listSessions(e,r){return this.entityRepository.listSessions(e,r)}async getSession(e){return this.entityRepository.getClientSession(e)}async getSessionByClientId(e){return this.entityRepository.getClientSession(e)}async listMessages(e,r,n,s){return this.entityRepository.listMessagesBySession(e,r,n,s)}async getMessage(e){return this.entityRepository.getClientMessage(e)}async listRtc(e,r,n){return this.entityRepository.listRtcBySession(e,r,n)}async getNextRtcToProcess(e){return this.entityRepository.getNextRtcToProcess(e)}async close(){this.disconnect(),await tE()}async flushAll(){await rE()}async sendMessage(e){const{content:r,messageClientId:n,sessionClientId:s}=e,o=await this.entityRepository.getClientSession(s);let a,u,p="";try{p=await Lr.read("/AGENT.md")}catch{}if(o){const S=si(),O=await this.entityRepository.upsertSession({client_id:o.client_id,server_id:o.server_id,updated_at:S,agent_prompt:p},o.sync_status,{silent:!0});a=O.after,u=!1,p=O.after.agent_prompt??""}else{const S=this._generateSessionTitle(r);console.log("[PersistenceLayer.sendMessage] New session created, generated title:",`"${S}"`),a=(await this.entityRepository.upsertSession({client_id:s,status:"active",agent_prompt:p,title:S},"pending",{silent:!0})).after,u=!0,console.log("[PersistenceLayer.sendMessage] Session after upsert:",{client_id:a.client_id,title:a.title})}const y=si(),h=typeof r.data=="string"?r.data:JSON.stringify(r.data),b=(await this.entityRepository.upsertMessage({client_id:n,session_client_id:a.client_id,role:"user",content:h,streaming_status:"completed",created_at:y,updated_at:y},"pending",{silent:!0})).after;return this._syncToServer(b,a,r,u,p).catch(S=>{console.error("[PersistenceLayer] _syncToServer failed:",S)}),{session:a,message:b}}async insertLocalMessage(e){const r=si();return(await this.entityRepository.upsertMessage({client_id:crypto.randomUUID(),session_client_id:e.sessionClientId,role:e.role,content:e.content,streaming_status:"completed",creator_kind:e.creatorKind??"system",creator_ref_id:e.creatorRefId??"",created_at:r,updated_at:r},"synced")).after}_generateSessionTitle(e){var r;try{let n="";if(typeof e.data=="string")n=e.data;else if(e.data&&typeof e.data=="object"){const o=e.data;n=o.text||o.content||JSON.stringify(e.data)}const s=((r=n.split(`
2644
2644
  `)[0])==null?void 0:r.trim())||"";return s?s.length>50?s.substring(0,50)+"…":s:"New Chat"}catch{return"New Chat"}}async _syncToServer(e,r,n,s,o){const a={server_session_id:r.server_id,content_data:n,client_id:e.client_id,client_session_id:r.client_id,agent_prompt:o};try{const u=await this.client.sendMessage(a);u.updates&&u.updates.length>0&&await this.client.applyUpdates(u.updates),await this.entityRepository.upsertMessage({client_id:e.client_id,server_id:u.result.message_id},"synced"),s&&await this.entityRepository.upsertSession({client_id:r.client_id,server_id:u.result.session_id},"synced")}catch(u){console.error("[PersistenceLayer] _syncToServer RPC failed:",u),await this.entityRepository.upsertMessage({client_id:e.client_id},"failed"),s&&r.sync_status==="pending"&&await this.entityRepository.upsertSession({client_id:r.client_id},"failed")}}async stopTurn(e){const r=await this.entityRepository.getClientSession(e);if(!(r!=null&&r.server_id))throw new Error(`Session not found or not synced: ${e}`);const n=await this.client.stopTurn(r.server_id);n.updates&&n.updates.length>0&&await this.client.applyUpdates(n.updates)}async compactSession(e,r){const n=await this.entityRepository.getClientSession(e);if(!(n!=null&&n.server_id))throw new Error(`Session not found or not synced: ${e}`);const s={session_id:n.server_id,custom_instruction:r},o=await this.client.compactSession(s);o.updates&&o.updates.length>0&&await this.client.applyUpdates(o.updates)}async deleteSession(e){const r=await this.entityRepository.getClientSession(e);if(r&&(await this.entityRepository.softDeleteSession(e),r.server_id)){const n=r.deleted_at??si();this._syncWithRetry(()=>this.client.updateSession({session_id:r.server_id,deleted_at:n}),r.server_id,"delete")}}async updateSessionTitle(e,r){const n=await this.entityRepository.getClientSession(e);if(!n)return;const s=si();await this.entityRepository.upsertSession({client_id:e,title:r,updated_at:s},"pending"),n.server_id&&this._syncWithRetry(()=>this.client.updateSession({session_id:n.server_id,title:r}),n.server_id,"update")}_syncWithRetry(e,r,n){const s=async o=>{try{await e(),await this._markSessionSynced(r)}catch(a){if(o<Ia.SYNC_MAX_RETRIES-1){const u=Ia.SYNC_BASE_DELAY_MS*2**o;return await new Promise(p=>setTimeout(p,u)),s(o+1)}console.error(`[PersistenceLayer] ${n}Session RPC failed after ${Ia.SYNC_MAX_RETRIES} attempts:`,a),await this._markSessionSyncFailed(r)}};s(0)}async _markSessionSynced(e){const r=await this.entityRepository.getSessionByServerId(e);r&&await this.entityRepository.upsertSession({client_id:r.client_id},"synced")}async _markSessionSyncFailed(e){const r=await this.entityRepository.getSessionByServerId(e);r&&await this.entityRepository.upsertSession({client_id:r.client_id},"failed")}async submitRtcResult(e){var u;const{rtcClientId:r,success:n,result:s,error:o}=e,a=await this.entityRepository.getClientRtc(r);if(!(a!=null&&a.server_id))throw new Error(`RTC not synced yet: ${r}`);try{const p=si();await this.entityRepository.upsertRtc({client_id:r,status:n?"completed":"failed",result:s,error_message:o,completed_at:p,updated_at:p},"pending",{silent:!0});const y=5e4;let h=s,g=!1;try{const S=JSON.stringify(s);if(S.length>y){console.warn("[PersistenceLayer] result too large:",S.length,"bytes, truncating to",y,"bytes"),g=!0;const O=Math.floor(y*.8),_=Math.floor(y*.2),w=S.substring(0,O)+`
2645
2645
 
2646
2646
  ... [TRUNCATED: original size `+S.length+` bytes] ...
2647
2647
 
2648
- `+S.substring(S.length-_);try{h=JSON.parse(w)}catch{h=w}}}catch(S){console.warn("[PersistenceLayer] failed to check result size:",S)}const b=await this.client.submitRtcResult(a.server_id,n,h,g?"[Result truncated due to size limit. Full result stored locally.]":o);(u=b.updates)!=null&&u.length&&await this.client.applyUpdates(b.updates),await this.entityRepository.upsertRtc({client_id:r},"synced")}catch(p){throw console.error("[PersistenceLayer] submitRtcResult failed:",p),await this.entityRepository.upsertRtc({client_id:r},"failed"),p}}async forkSession(e){const{oldSessionClientId:r,oldMessageClientId:n,newSessionClientId:s,newMessageClientId:o,content:a,limit:u}=e,p=await this.entityRepository.getClientSession(r);if(!p)throw new Error(`Old session not found: ${r}`);if(!p.server_id)throw new Error(`Old session not synced yet: ${r}`);const y=await this.entityRepository.getClientMessage(n);if(!y)throw new Error(`Old message not found: ${n}`);if(!y.server_id)throw new Error(`Old message not synced yet: ${n}`);const h=si(),b=(await this.entityRepository.upsertSession({client_id:s,title:p.title,status:"active"},"pending",{silent:!0})).after,O=(await this.entityRepository.upsertMessage({client_id:o,session_client_id:b.client_id,role:"user",content:typeof a.data=="string"?a.data:JSON.stringify(a.data),streaming_status:"completed",created_at:h,updated_at:h},"pending",{silent:!0})).after;return this._syncForkToServer({oldSession:p,oldMessage:y,newSession:b,newMessage:O,content:a,limit:u}).catch(_=>{console.error("[PersistenceLayer] _syncForkToServer failed:",_)}),{session:b,message:O}}async _syncForkToServer(e){var y;const{oldSession:r,oldMessage:n,newSession:s,newMessage:o,content:a,limit:u}=e,p={old_server_session_id:r.server_id,old_server_message_id:n.server_id,new_client_session_id:s.client_id,new_client_message_id:o.client_id,content_data:a,limit:u};try{const h=await this.client.forkSession(p);h.updates&&h.updates.length>0&&await this.client.applyUpdates(h.updates),await this.entityRepository.upsertSession({client_id:s.client_id,server_id:h.result.session_id},"synced");const g=(y=h.result.message_ids)==null?void 0:y[h.result.message_ids.length-1];g&&await this.entityRepository.upsertMessage({client_id:o.client_id,server_id:g},"synced")}catch(h){console.error("[PersistenceLayer] _syncForkToServer RPC failed:",h),await this.entityRepository.upsertMessage({client_id:o.client_id},"failed"),await this.entityRepository.upsertSession({client_id:s.client_id},"failed")}}};Yt(Ia,"SYNC_MAX_RETRIES",3),Yt(Ia,"SYNC_BASE_DELAY_MS",1e3);let qh=Ia;function aN(t){return yr(t.databaseName),new qh(t)}class oN{constructor(){Yt(this,"layer",null);Yt(this,"unsubscribeBus",null);Yt(this,"unsubscribeConnection",null);Yt(this,"callbacks",new Set)}async init(e){if(this.layer){console.warn("[WorkerCore] already initialized, ignoring init()");return}const r={...e,client:{...e.client,getToken:()=>this.requestToken()}};this.layer=aN(r);const n=My();this.unsubscribeBus=n.subscribe(s=>{this.broadcastUIUpdate(s)})}registerCallback(e){this.callbacks.add(e)}unregisterCallback(e){this.callbacks.delete(e)}async connect(){console.log("[WorkerCore] connect() called");const e=this.ensureLayer();console.log("[WorkerCore] calling layer.connect()"),await e.connect(),console.log("[WorkerCore] layer.connect() returned, client state:",e.getClient().getConnectionState()),this._subscribeConnectionState(e),console.log("[WorkerCore] connection state subscribed, returning from connect()")}disconnect(){const e=this.ensureLayer();this._unsubscribeConnectionState(),e.disconnect()}async reconnect(){await this.ensureLayer().reconnect()}async getConnectionState(){return this.ensureLayer().getClient().getConnectionState()}async listSessions(e,r){return this.ensureLayer().listSessions(e,r)}async getSession(e){return this.ensureLayer().getSession(e)}async listMessages(e,r,n,s){return this.ensureLayer().listMessages(e,r,n,s)}async getMessage(e){return this.ensureLayer().getMessage(e)}async listRtc(e,r,n){return this.ensureLayer().listRtc(e,r,n)}async getNextRtcToProcess(e){return this.ensureLayer().getNextRtcToProcess(e)}async sendMessage(e){return this.ensureLayer().sendMessage(e)}async insertLocalMessage(e){return this.ensureLayer().insertLocalMessage(e)}async stopTurn(e){return this.ensureLayer().stopTurn(e)}async compactSession(e,r){return this.ensureLayer().compactSession(e,r)}async submitRtcResult(e){return this.ensureLayer().submitRtcResult(e)}async forkSession(e){return this.ensureLayer().forkSession(e)}async deleteSession(e){return this.ensureLayer().deleteSession(e)}async updateSessionTitle(e,r){return this.ensureLayer().updateSessionTitle(e,r)}async close(){this.unsubscribeBus&&(this.unsubscribeBus(),this.unsubscribeBus=null),this._unsubscribeConnectionState(),this.layer&&(await this.layer.close(),this.layer=null),this.callbacks.clear()}async flushAll(){return this.ensureLayer().flushAll()}async initializeVirtualFS(e={}){await sN(e)}async batchWriteFiles(e){console.log("[WorkerCore] batchWriteFiles called, files count:",e.length);for(const r of e){const n=this._getWriteModeForPath(r.path);await Lr.write(r.path,r.content,n,r.metadata)}console.log("[WorkerCore] batchWriteFiles completed"),this.broadcastUIUpdate({entity:"file",action:"updated",entityId:"",field:"batch",oldValue:void 0,newValue:void 0})}_getWriteModeForPath(e){return e==="/AGENT.md"||e.startsWith("/scenarios/")&&e!=="/scenarios/INDEX.md"?"create-new":"overwrite"}async resetOffset(){await jy().reset()}async virtualFSRead(e,r,n){return Lr.read(e,r,n)}async virtualFSWrite(e,r,n="overwrite",s){const o=await Lr.write(e,r,n,s);return this.broadcastUIUpdate({entity:"file",action:"updated",entityId:e,field:"write",oldValue:void 0,newValue:void 0}),o}async virtualFSLs(e){return Lr.ls(e)}async virtualFSFind(e,r){return Lr.find(e,r)}async virtualFSGrep(e,r,n,s){return Lr.grep(e,r,n,s)}async virtualFSQueryByType(e){return Lr.queryByType(e)}async virtualFSExists(e){return Lr.exists(e)}async virtualFSRemove(e){await Lr.remove(e),this.broadcastUIUpdate({entity:"file",action:"deleted",entityId:e,field:"delete",oldValue:void 0,newValue:void 0})}broadcastUIUpdate(e){for(const r of this.callbacks)try{r.onUIUpdate(e)}catch(n){console.error("[WorkerCore] onUIUpdate callback error:",n)}}async requestToken(){for(const e of this.callbacks)try{return await e.requestToken()}catch(r){console.warn("[WorkerCore] requestToken failed, trying next:",r)}throw new Error("[WorkerCore] no callback available to provide token")}ensureLayer(){if(!this.layer)throw new Error("[WorkerCore] not initialized, call init() first");return this.layer}_subscribeConnectionState(e){this._unsubscribeConnectionState();const r=e.getClient();console.log("[WorkerCore] subscribing to connection state changes"),this.unsubscribeConnection=r.on("connection",n=>{console.log("[WorkerCore] connection state changed:",n.state,"reason:",n.reason),this.broadcastConnectionState(n)})}_unsubscribeConnectionState(){this.unsubscribeConnection&&(this.unsubscribeConnection(),this.unsubscribeConnection=null)}broadcastConnectionState(e){for(const r of this.callbacks)try{r.onConnectionStateChange(e)}catch(n){console.error("[WorkerCore] onConnectionStateChange callback error:",n)}}}const ar=new oN,lN=self;lN.onconnect=t=>{const e=t.ports[0];Tf({init:n=>ar.init(n),registerCallback:n=>ar.registerCallback(n),unregisterCallback:n=>ar.unregisterCallback(n),connect:()=>ar.connect(),disconnect:()=>ar.disconnect(),reconnect:()=>ar.reconnect(),getConnectionState:()=>ar.getConnectionState(),listSessions:(...n)=>ar.listSessions(...n),getSession:(...n)=>ar.getSession(...n),listMessages:(...n)=>ar.listMessages(...n),getMessage:(...n)=>ar.getMessage(...n),listRtc:(...n)=>ar.listRtc(...n),getNextRtcToProcess:(...n)=>ar.getNextRtcToProcess(...n),sendMessage:(...n)=>ar.sendMessage(...n),insertLocalMessage:(...n)=>ar.insertLocalMessage(...n),stopTurn:(...n)=>ar.stopTurn(...n),compactSession:(...n)=>ar.compactSession(...n),submitRtcResult:(...n)=>ar.submitRtcResult(...n),forkSession:(...n)=>ar.forkSession(...n),deleteSession:(...n)=>ar.deleteSession(...n),updateSessionTitle:(...n)=>ar.updateSessionTitle(...n),close:()=>ar.close(),flushAll:()=>ar.flushAll(),initializeVirtualFS:(...n)=>ar.initializeVirtualFS(...n),batchWriteFiles:(...n)=>ar.batchWriteFiles(...n),resetOffset:()=>ar.resetOffset(),virtualFSRead:(...n)=>ar.virtualFSRead(...n),virtualFSWrite:(...n)=>ar.virtualFSWrite(...n),virtualFSLs:(...n)=>ar.virtualFSLs(...n),virtualFSFind:(...n)=>ar.virtualFSFind(...n),virtualFSGrep:(...n)=>ar.virtualFSGrep(...n),virtualFSQueryByType:(...n)=>ar.virtualFSQueryByType(...n),virtualFSExists:(...n)=>ar.virtualFSExists(...n),virtualFSRemove:(...n)=>ar.virtualFSRemove(...n)},e)}})();
2648
+ `+S.substring(S.length-_);try{h=JSON.parse(w)}catch{h=w}}}catch(S){console.warn("[PersistenceLayer] failed to check result size:",S)}const b=await this.client.submitRtcResult(a.server_id,n,h,g?"[Result truncated due to size limit. Full result stored locally.]":o);(u=b.updates)!=null&&u.length&&await this.client.applyUpdates(b.updates),await this.entityRepository.upsertRtc({client_id:r},"synced")}catch(p){throw console.error("[PersistenceLayer] submitRtcResult failed:",p),await this.entityRepository.upsertRtc({client_id:r},"failed"),p}}async forkSession(e){const{oldSessionClientId:r,oldMessageClientId:n,newSessionClientId:s,newMessageClientId:o,content:a,limit:u}=e,p=await this.entityRepository.getClientSession(r);if(!p)throw new Error(`Old session not found: ${r}`);if(!p.server_id)throw new Error(`Old session not synced yet: ${r}`);const y=await this.entityRepository.getClientMessage(n);if(!y)throw new Error(`Old message not found: ${n}`);if(!y.server_id)throw new Error(`Old message not synced yet: ${n}`);const h=si(),b=(await this.entityRepository.upsertSession({client_id:s,title:p.title,status:"active"},"pending",{silent:!0})).after,O=(await this.entityRepository.upsertMessage({client_id:o,session_client_id:b.client_id,role:"user",content:typeof a.data=="string"?a.data:JSON.stringify(a.data),streaming_status:"completed",created_at:h,updated_at:h},"pending",{silent:!0})).after;return this._syncForkToServer({oldSession:p,oldMessage:y,newSession:b,newMessage:O,content:a,limit:u}).catch(_=>{console.error("[PersistenceLayer] _syncForkToServer failed:",_)}),{session:b,message:O}}async _syncForkToServer(e){var y;const{oldSession:r,oldMessage:n,newSession:s,newMessage:o,content:a,limit:u}=e,p={old_server_session_id:r.server_id,old_server_message_id:n.server_id,new_client_session_id:s.client_id,new_client_message_id:o.client_id,content_data:a,limit:u};try{const h=await this.client.forkSession(p);h.updates&&h.updates.length>0&&await this.client.applyUpdates(h.updates),await this.entityRepository.upsertSession({client_id:s.client_id,server_id:h.result.session_id},"synced");const g=(y=h.result.message_ids)==null?void 0:y[h.result.message_ids.length-1];g&&await this.entityRepository.upsertMessage({client_id:o.client_id,server_id:g},"synced")}catch(h){console.error("[PersistenceLayer] _syncForkToServer RPC failed:",h),await this.entityRepository.upsertMessage({client_id:o.client_id},"failed"),await this.entityRepository.upsertSession({client_id:s.client_id},"failed")}}};Ht(Ia,"SYNC_MAX_RETRIES",3),Ht(Ia,"SYNC_BASE_DELAY_MS",1e3);let qh=Ia;function aN(t){return yr(t.databaseName),new qh(t)}class oN{constructor(){Ht(this,"layer",null);Ht(this,"unsubscribeBus",null);Ht(this,"unsubscribeConnection",null);Ht(this,"callbacks",new Set)}async init(e){if(this.layer){console.warn("[WorkerCore] already initialized, ignoring init()");return}const r={...e,client:{...e.client,getToken:()=>this.requestToken(),onTokenExpired:()=>this.requestTokenRefresh()}};this.layer=aN(r);const n=My();this.unsubscribeBus=n.subscribe(s=>{this.broadcastUIUpdate(s)})}registerCallback(e){this.callbacks.add(e)}unregisterCallback(e){this.callbacks.delete(e)}async connect(){console.log("[WorkerCore] connect() called");const e=this.ensureLayer();console.log("[WorkerCore] calling layer.connect()"),await e.connect(),console.log("[WorkerCore] layer.connect() returned, client state:",e.getClient().getConnectionState()),this._subscribeConnectionState(e),console.log("[WorkerCore] connection state subscribed, returning from connect()")}disconnect(){const e=this.ensureLayer();this._unsubscribeConnectionState(),e.disconnect()}async reconnect(){await this.ensureLayer().reconnect()}async getConnectionState(){return this.ensureLayer().getClient().getConnectionState()}async listSessions(e,r){return this.ensureLayer().listSessions(e,r)}async getSession(e){return this.ensureLayer().getSession(e)}async listMessages(e,r,n,s){return this.ensureLayer().listMessages(e,r,n,s)}async getMessage(e){return this.ensureLayer().getMessage(e)}async listRtc(e,r,n){return this.ensureLayer().listRtc(e,r,n)}async getNextRtcToProcess(e){return this.ensureLayer().getNextRtcToProcess(e)}async sendMessage(e){return this.ensureLayer().sendMessage(e)}async insertLocalMessage(e){return this.ensureLayer().insertLocalMessage(e)}async stopTurn(e){return this.ensureLayer().stopTurn(e)}async compactSession(e,r){return this.ensureLayer().compactSession(e,r)}async submitRtcResult(e){return this.ensureLayer().submitRtcResult(e)}async forkSession(e){return this.ensureLayer().forkSession(e)}async deleteSession(e){return this.ensureLayer().deleteSession(e)}async updateSessionTitle(e,r){return this.ensureLayer().updateSessionTitle(e,r)}async close(){this.unsubscribeBus&&(this.unsubscribeBus(),this.unsubscribeBus=null),this._unsubscribeConnectionState(),this.layer&&(await this.layer.close(),this.layer=null),this.callbacks.clear()}async flushAll(){return this.ensureLayer().flushAll()}async initializeVirtualFS(e={}){await sN(e)}async batchWriteFiles(e){console.log("[WorkerCore] batchWriteFiles called, files count:",e.length);for(const r of e){const n=this._getWriteModeForPath(r.path);await Lr.write(r.path,r.content,n,r.metadata)}console.log("[WorkerCore] batchWriteFiles completed"),this.broadcastUIUpdate({entity:"file",action:"updated",entityId:"",field:"batch",oldValue:void 0,newValue:void 0})}_getWriteModeForPath(e){return e==="/AGENT.md"||e.startsWith("/scenarios/")&&e!=="/scenarios/INDEX.md"?"create-new":"overwrite"}async resetOffset(){await jy().reset()}async virtualFSRead(e,r,n){return Lr.read(e,r,n)}async virtualFSWrite(e,r,n="overwrite",s){const o=await Lr.write(e,r,n,s);return this.broadcastUIUpdate({entity:"file",action:"updated",entityId:e,field:"write",oldValue:void 0,newValue:void 0}),o}async virtualFSLs(e){return Lr.ls(e)}async virtualFSFind(e,r){return Lr.find(e,r)}async virtualFSGrep(e,r,n,s){return Lr.grep(e,r,n,s)}async virtualFSQueryByType(e){return Lr.queryByType(e)}async virtualFSExists(e){return Lr.exists(e)}async virtualFSRemove(e){await Lr.remove(e),this.broadcastUIUpdate({entity:"file",action:"deleted",entityId:e,field:"delete",oldValue:void 0,newValue:void 0})}broadcastUIUpdate(e){for(const r of this.callbacks)try{r.onUIUpdate(e)}catch(n){console.error("[WorkerCore] onUIUpdate callback error:",n)}}async requestToken(){for(const e of this.callbacks)try{return await e.requestToken()}catch(r){console.warn("[WorkerCore] requestToken failed, trying next:",r)}throw new Error("[WorkerCore] no callback available to provide token")}async requestTokenRefresh(){for(const e of this.callbacks)try{return await e.requestTokenRefresh()}catch(r){console.warn("[WorkerCore] requestTokenRefresh failed, trying next:",r)}return"relogin"}ensureLayer(){if(!this.layer)throw new Error("[WorkerCore] not initialized, call init() first");return this.layer}_subscribeConnectionState(e){this._unsubscribeConnectionState();const r=e.getClient();console.log("[WorkerCore] subscribing to connection state changes"),this.unsubscribeConnection=r.on("connection",n=>{console.log("[WorkerCore] connection state changed:",n.state,"reason:",n.reason),this.broadcastConnectionState(n)})}_unsubscribeConnectionState(){this.unsubscribeConnection&&(this.unsubscribeConnection(),this.unsubscribeConnection=null)}broadcastConnectionState(e){for(const r of this.callbacks)try{r.onConnectionStateChange(e)}catch(n){console.error("[WorkerCore] onConnectionStateChange callback error:",n)}}}const ar=new oN,lN=self;lN.onconnect=t=>{const e=t.ports[0];Tf({init:n=>ar.init(n),registerCallback:n=>ar.registerCallback(n),unregisterCallback:n=>ar.unregisterCallback(n),connect:()=>ar.connect(),disconnect:()=>ar.disconnect(),reconnect:()=>ar.reconnect(),getConnectionState:()=>ar.getConnectionState(),listSessions:(...n)=>ar.listSessions(...n),getSession:(...n)=>ar.getSession(...n),listMessages:(...n)=>ar.listMessages(...n),getMessage:(...n)=>ar.getMessage(...n),listRtc:(...n)=>ar.listRtc(...n),getNextRtcToProcess:(...n)=>ar.getNextRtcToProcess(...n),sendMessage:(...n)=>ar.sendMessage(...n),insertLocalMessage:(...n)=>ar.insertLocalMessage(...n),stopTurn:(...n)=>ar.stopTurn(...n),compactSession:(...n)=>ar.compactSession(...n),submitRtcResult:(...n)=>ar.submitRtcResult(...n),forkSession:(...n)=>ar.forkSession(...n),deleteSession:(...n)=>ar.deleteSession(...n),updateSessionTitle:(...n)=>ar.updateSessionTitle(...n),close:()=>ar.close(),flushAll:()=>ar.flushAll(),initializeVirtualFS:(...n)=>ar.initializeVirtualFS(...n),batchWriteFiles:(...n)=>ar.batchWriteFiles(...n),resetOffset:()=>ar.resetOffset(),virtualFSRead:(...n)=>ar.virtualFSRead(...n),virtualFSWrite:(...n)=>ar.virtualFSWrite(...n),virtualFSLs:(...n)=>ar.virtualFSLs(...n),virtualFSFind:(...n)=>ar.virtualFSFind(...n),virtualFSGrep:(...n)=>ar.virtualFSGrep(...n),virtualFSQueryByType:(...n)=>ar.virtualFSQueryByType(...n),virtualFSExists:(...n)=>ar.virtualFSExists(...n),virtualFSRemove:(...n)=>ar.virtualFSRemove(...n)},e)}})();