- Implement feature parity between Python and TypeScript MCP versions - Add comprehensive test coverage for all orthogonal tools - Consolidate tools to follow single-tool-multiple-actions pattern - Add bash, git-search, critic, and mode tools - Create multi-platform build system for VS Code, Claude Desktop, and DXT - Add test files for filesystem, search, shell, process, web-fetch, mode, and git-search tools - Fix TypeScript compilation issues and update build scripts - Update package.json with hanzo-ai publisher ID - Successfully build all distribution formats: - VS Code Extension (.vsix) - Claude Desktop MCP package - Claude Code DXT file - Standalone MCP server
798 lines
4.3 MiB
Plaintext
Executable File
798 lines
4.3 MiB
Plaintext
Executable File
#!/usr/bin/env node
|
|
"use strict";var yir=Object.create;var $se=Object.defineProperty;var vir=Object.getOwnPropertyDescriptor;var bir=Object.getOwnPropertyNames;var xir=Object.getPrototypeOf,Sir=Object.prototype.hasOwnProperty;var mi=(o,a)=>()=>(o&&(a=o(o=0)),a);var Ve=(o,a)=>()=>(a||o((a={exports:{}}).exports,a),a.exports),uH=(o,a)=>{for(var u in a)$se(o,u,{get:a[u],enumerable:!0})},$at=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of bir(a))!Sir.call(o,d)&&d!==u&&$se(o,d,{get:()=>a[d],enumerable:!(f=vir(a,d))||f.enumerable});return o};var Ea=(o,a,u)=>(u=o!=null?yir(xir(o)):{},$at(a||!o||!o.__esModule?$se(u,"default",{value:o,enumerable:!0}):u,o)),tDe=o=>$at($se({},"__esModule",{value:!0}),o);var ist=Ve((Xan,nst)=>{var rst=require("stream").Stream,car=require("util");nst.exports=Vw;function Vw(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}car.inherits(Vw,rst);Vw.create=function(o,a){var u=new this;a=a||{};for(var f in a)u[f]=a[f];u.source=o;var d=o.emit;return o.emit=function(){return u._handleEmit(arguments),d.apply(o,arguments)},o.on("error",function(){}),u.pauseStream&&o.pause(),u};Object.defineProperty(Vw.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Vw.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Vw.prototype.resume=function(){this._released||this.release(),this.source.resume()};Vw.prototype.pause=function(){this.source.pause()};Vw.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(o){this.emit.apply(this,o)}.bind(this)),this._bufferedEvents=[]};Vw.prototype.pipe=function(){var o=rst.prototype.pipe.apply(this,arguments);return this.resume(),o};Vw.prototype._handleEmit=function(o){if(this._released){this.emit.apply(this,o);return}o[0]==="data"&&(this.dataSize+=o[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(o)};Vw.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var o="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(o))}}});var cst=Ve((Yan,ost)=>{var lar=require("util"),sst=require("stream").Stream,ast=ist();ost.exports=Dm;function Dm(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}lar.inherits(Dm,sst);Dm.create=function(o){var a=new this;o=o||{};for(var u in o)a[u]=o[u];return a};Dm.isStreamLike=function(o){return typeof o!="function"&&typeof o!="string"&&typeof o!="boolean"&&typeof o!="number"&&!Buffer.isBuffer(o)};Dm.prototype.append=function(o){var a=Dm.isStreamLike(o);if(a){if(!(o instanceof ast)){var u=ast.create(o,{maxDataSize:1/0,pauseStream:this.pauseStreams});o.on("data",this._checkDataSize.bind(this)),o=u}this._handleErrors(o),this.pauseStreams&&o.pause()}return this._streams.push(o),this};Dm.prototype.pipe=function(o,a){return sst.prototype.pipe.call(this,o,a),this.resume(),o};Dm.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Dm.prototype._realGetNext=function(){var o=this._streams.shift();if(typeof o>"u"){this.end();return}if(typeof o!="function"){this._pipeNext(o);return}var a=o;a(function(u){var f=Dm.isStreamLike(u);f&&(u.on("data",this._checkDataSize.bind(this)),this._handleErrors(u)),this._pipeNext(u)}.bind(this))};Dm.prototype._pipeNext=function(o){this._currentStream=o;var a=Dm.isStreamLike(o);if(a){o.on("end",this._getNext.bind(this)),o.pipe(this,{end:!1});return}var u=o;this.write(u),this._getNext()};Dm.prototype._handleErrors=function(o){var a=this;o.on("error",function(u){a._emitError(u)})};Dm.prototype.write=function(o){this.emit("data",o)};Dm.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Dm.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Dm.prototype.end=function(){this._reset(),this.emit("end")};Dm.prototype.destroy=function(){this._reset(),this.emit("close")};Dm.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Dm.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var o="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(o))}};Dm.prototype._updateDataSize=function(){this.dataSize=0;var o=this;this._streams.forEach(function(a){a.dataSize&&(o.dataSize+=a.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Dm.prototype._emitError=function(o){this._reset(),this.emit("error",o)}});var lst=Ve((Zan,uar)=>{uar.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var pst=Ve((esn,ust)=>{ust.exports=lst()});var dst=Ve(Eb=>{"use strict";var Xse=pst(),par=require("path").extname,fst=/^\s*([^;\s]*)(?:;|\s|$)/,far=/^text\//i;Eb.charset=_st;Eb.charsets={lookup:_st};Eb.contentType=_ar;Eb.extension=dar;Eb.extensions=Object.create(null);Eb.lookup=mar;Eb.types=Object.create(null);gar(Eb.extensions,Eb.types);function _st(o){if(!o||typeof o!="string")return!1;var a=fst.exec(o),u=a&&Xse[a[1].toLowerCase()];return u&&u.charset?u.charset:a&&far.test(a[1])?"UTF-8":!1}function _ar(o){if(!o||typeof o!="string")return!1;var a=o.indexOf("/")===-1?Eb.lookup(o):o;if(!a)return!1;if(a.indexOf("charset")===-1){var u=Eb.charset(a);u&&(a+="; charset="+u.toLowerCase())}return a}function dar(o){if(!o||typeof o!="string")return!1;var a=fst.exec(o),u=a&&Eb.extensions[a[1].toLowerCase()];return!u||!u.length?!1:u[0]}function mar(o){if(!o||typeof o!="string")return!1;var a=par("x."+o).toLowerCase().substr(1);return a&&Eb.types[a]||!1}function gar(o,a){var u=["nginx","apache",void 0,"iana"];Object.keys(Xse).forEach(function(d){var w=Xse[d],O=w.extensions;if(!(!O||!O.length)){o[d]=O;for(var q=0;q<O.length;q++){var K=O[q];if(a[K]){var le=u.indexOf(Xse[a[K]].source),ye=u.indexOf(w.source);if(a[K]!=="application/octet-stream"&&(le>ye||le===ye&&a[K].substr(0,12)==="application/"))continue}a[K]=d}}})}});var gst=Ve((rsn,mst)=>{mst.exports=har;function har(o){var a=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;a?a(o):setTimeout(o,0)}});var iDe=Ve((nsn,yst)=>{var hst=gst();yst.exports=yar;function yar(o){var a=!1;return hst(function(){a=!0}),function(f,d){a?o(f,d):hst(function(){o(f,d)})}}});var aDe=Ve((isn,vst)=>{vst.exports=bar;function bar(o){Object.keys(o.jobs).forEach(xar.bind(o)),o.jobs={}}function xar(o){typeof this.jobs[o]=="function"&&this.jobs[o]()}});var sDe=Ve((asn,xst)=>{var bst=iDe(),Sar=aDe();xst.exports=Tar;function Tar(o,a,u,f){var d=u.keyedList?u.keyedList[u.index]:u.index;u.jobs[d]=war(a,d,o[d],function(w,O){d in u.jobs&&(delete u.jobs[d],w?Sar(u):u.results[d]=O,f(w,u.results))})}function war(o,a,u,f){var d;return o.length==2?d=o(u,bst(f)):d=o(u,a,bst(f)),d}});var oDe=Ve((ssn,Sst)=>{Sst.exports=kar;function kar(o,a){var u=!Array.isArray(o),f={index:0,keyedList:u||a?Object.keys(o):null,jobs:{},results:u?{}:[],size:u?Object.keys(o).length:o.length};return a&&f.keyedList.sort(u?a:function(d,w){return a(o[d],o[w])}),f}});var cDe=Ve((osn,Tst)=>{var Car=aDe(),Par=iDe();Tst.exports=Ear;function Ear(o){Object.keys(this.jobs).length&&(this.index=this.size,Car(this),Par(o)(null,this.results))}});var kst=Ve((csn,wst)=>{var Dar=sDe(),Oar=oDe(),Nar=cDe();wst.exports=Aar;function Aar(o,a,u){for(var f=Oar(o);f.index<(f.keyedList||o).length;)Dar(o,a,f,function(d,w){if(d){u(d,w);return}if(Object.keys(f.jobs).length===0){u(null,f.results);return}}),f.index++;return Nar.bind(f,u)}});var lDe=Ve((lsn,Yse)=>{var Cst=sDe(),Iar=oDe(),Far=cDe();Yse.exports=Mar;Yse.exports.ascending=Pst;Yse.exports.descending=Rar;function Mar(o,a,u,f){var d=Iar(o,u);return Cst(o,a,d,function w(O,q){if(O){f(O,q);return}if(d.index++,d.index<(d.keyedList||o).length){Cst(o,a,d,w);return}f(null,d.results)}),Far.bind(d,f)}function Pst(o,a){return o<a?-1:o>a?1:0}function Rar(o,a){return-1*Pst(o,a)}});var Dst=Ve((usn,Est)=>{var jar=lDe();Est.exports=Lar;function Lar(o,a,u){return jar(o,a,null,u)}});var Nst=Ve((psn,Ost)=>{Ost.exports={parallel:kst(),serial:Dst(),serialOrdered:lDe()}});var uDe=Ve((fsn,Ast)=>{"use strict";Ast.exports=Object});var Fst=Ve((_sn,Ist)=>{"use strict";Ist.exports=Error});var Rst=Ve((dsn,Mst)=>{"use strict";Mst.exports=EvalError});var Lst=Ve((msn,jst)=>{"use strict";jst.exports=RangeError});var qst=Ve((gsn,Bst)=>{"use strict";Bst.exports=ReferenceError});var zst=Ve((hsn,Jst)=>{"use strict";Jst.exports=SyntaxError});var Zse=Ve((ysn,Wst)=>{"use strict";Wst.exports=TypeError});var $st=Ve((vsn,Ust)=>{"use strict";Ust.exports=URIError});var Hst=Ve((bsn,Vst)=>{"use strict";Vst.exports=Math.abs});var Kst=Ve((xsn,Gst)=>{"use strict";Gst.exports=Math.floor});var Xst=Ve((Ssn,Qst)=>{"use strict";Qst.exports=Math.max});var Zst=Ve((Tsn,Yst)=>{"use strict";Yst.exports=Math.min});var tot=Ve((wsn,eot)=>{"use strict";eot.exports=Math.pow});var not=Ve((ksn,rot)=>{"use strict";rot.exports=Math.round});var aot=Ve((Csn,iot)=>{"use strict";iot.exports=Number.isNaN||function(a){return a!==a}});var oot=Ve((Psn,sot)=>{"use strict";var Bar=aot();sot.exports=function(a){return Bar(a)||a===0?a:a<0?-1:1}});var lot=Ve((Esn,cot)=>{"use strict";cot.exports=Object.getOwnPropertyDescriptor});var pDe=Ve((Dsn,uot)=>{"use strict";var eoe=lot();if(eoe)try{eoe([],"length")}catch{eoe=null}uot.exports=eoe});var fot=Ve((Osn,pot)=>{"use strict";var toe=Object.defineProperty||!1;if(toe)try{toe({},"a",{value:1})}catch{toe=!1}pot.exports=toe});var fDe=Ve((Nsn,_ot)=>{"use strict";_ot.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},u=Symbol("test"),f=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(f)!=="[object Symbol]")return!1;var d=42;a[u]=d;for(var w in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var O=Object.getOwnPropertySymbols(a);if(O.length!==1||O[0]!==u||!Object.prototype.propertyIsEnumerable.call(a,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var q=Object.getOwnPropertyDescriptor(a,u);if(q.value!==d||q.enumerable!==!0)return!1}return!0}});var got=Ve((Asn,mot)=>{"use strict";var dot=typeof Symbol<"u"&&Symbol,qar=fDe();mot.exports=function(){return typeof dot!="function"||typeof Symbol!="function"||typeof dot("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qar()}});var _De=Ve((Isn,hot)=>{"use strict";hot.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var dDe=Ve((Fsn,yot)=>{"use strict";var Jar=uDe();yot.exports=Jar.getPrototypeOf||null});var xot=Ve((Msn,bot)=>{"use strict";var zar="Function.prototype.bind called on incompatible ",War=Object.prototype.toString,Uar=Math.max,$ar="[object Function]",vot=function(a,u){for(var f=[],d=0;d<a.length;d+=1)f[d]=a[d];for(var w=0;w<u.length;w+=1)f[w+a.length]=u[w];return f},Var=function(a,u){for(var f=[],d=u||0,w=0;d<a.length;d+=1,w+=1)f[w]=a[d];return f},Har=function(o,a){for(var u="",f=0;f<o.length;f+=1)u+=o[f],f+1<o.length&&(u+=a);return u};bot.exports=function(a){var u=this;if(typeof u!="function"||War.apply(u)!==$ar)throw new TypeError(zar+u);for(var f=Var(arguments,1),d,w=function(){if(this instanceof d){var ye=u.apply(this,vot(f,arguments));return Object(ye)===ye?ye:this}return u.apply(a,vot(f,arguments))},O=Uar(0,u.length-f.length),q=[],K=0;K<O;K++)q[K]="$"+K;if(d=Function("binder","return function ("+Har(q,",")+"){ return binder.apply(this,arguments); }")(w),u.prototype){var le=function(){};le.prototype=u.prototype,d.prototype=new le,le.prototype=null}return d}});var dH=Ve((Rsn,Sot)=>{"use strict";var Gar=xot();Sot.exports=Function.prototype.bind||Gar});var roe=Ve((jsn,Tot)=>{"use strict";Tot.exports=Function.prototype.call});var mDe=Ve((Lsn,wot)=>{"use strict";wot.exports=Function.prototype.apply});var Cot=Ve((Bsn,kot)=>{"use strict";kot.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Eot=Ve((qsn,Pot)=>{"use strict";var Kar=dH(),Qar=mDe(),Xar=roe(),Yar=Cot();Pot.exports=Yar||Kar.call(Xar,Qar)});var Oot=Ve((Jsn,Dot)=>{"use strict";var Zar=dH(),esr=Zse(),tsr=roe(),rsr=Eot();Dot.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new esr("a function is required");return rsr(Zar,tsr,a)}});var Rot=Ve((zsn,Mot)=>{"use strict";var nsr=Oot(),Not=pDe(),Iot;try{Iot=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var gDe=!!Iot&&Not&&Not(Object.prototype,"__proto__"),Fot=Object,Aot=Fot.getPrototypeOf;Mot.exports=gDe&&typeof gDe.get=="function"?nsr([gDe.get]):typeof Aot=="function"?function(a){return Aot(a==null?a:Fot(a))}:!1});var Jot=Ve((Wsn,qot)=>{"use strict";var jot=_De(),Lot=dDe(),Bot=Rot();qot.exports=jot?function(a){return jot(a)}:Lot?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return Lot(a)}:Bot?function(a){return Bot(a)}:null});var noe=Ve((Usn,zot)=>{"use strict";var isr=Function.prototype.call,asr=Object.prototype.hasOwnProperty,ssr=dH();zot.exports=ssr.call(isr,asr)});var Kot=Ve(($sn,Got)=>{"use strict";var Mu,osr=uDe(),csr=Fst(),lsr=Rst(),usr=Lst(),psr=qst(),CL=zst(),kL=Zse(),fsr=$st(),_sr=Hst(),dsr=Kst(),msr=Xst(),gsr=Zst(),hsr=tot(),ysr=not(),vsr=oot(),Vot=Function,hDe=function(o){try{return Vot('"use strict"; return ('+o+").constructor;")()}catch{}},mH=pDe(),bsr=fot(),yDe=function(){throw new kL},xsr=mH?function(){try{return arguments.callee,yDe}catch{try{return mH(arguments,"callee").get}catch{return yDe}}}():yDe,TL=got()(),yy=Jot(),Ssr=dDe(),Tsr=_De(),Hot=mDe(),gH=roe(),wL={},wsr=typeof Uint8Array>"u"||!yy?Mu:yy(Uint8Array),$8={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Mu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Mu:ArrayBuffer,"%ArrayIteratorPrototype%":TL&&yy?yy([][Symbol.iterator]()):Mu,"%AsyncFromSyncIteratorPrototype%":Mu,"%AsyncFunction%":wL,"%AsyncGenerator%":wL,"%AsyncGeneratorFunction%":wL,"%AsyncIteratorPrototype%":wL,"%Atomics%":typeof Atomics>"u"?Mu:Atomics,"%BigInt%":typeof BigInt>"u"?Mu:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Mu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Mu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Mu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":csr,"%eval%":eval,"%EvalError%":lsr,"%Float16Array%":typeof Float16Array>"u"?Mu:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Mu:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Mu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Mu:FinalizationRegistry,"%Function%":Vot,"%GeneratorFunction%":wL,"%Int8Array%":typeof Int8Array>"u"?Mu:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Mu:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Mu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":TL&&yy?yy(yy([][Symbol.iterator]())):Mu,"%JSON%":typeof JSON=="object"?JSON:Mu,"%Map%":typeof Map>"u"?Mu:Map,"%MapIteratorPrototype%":typeof Map>"u"||!TL||!yy?Mu:yy(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":osr,"%Object.getOwnPropertyDescriptor%":mH,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Mu:Promise,"%Proxy%":typeof Proxy>"u"?Mu:Proxy,"%RangeError%":usr,"%ReferenceError%":psr,"%Reflect%":typeof Reflect>"u"?Mu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Mu:Set,"%SetIteratorPrototype%":typeof Set>"u"||!TL||!yy?Mu:yy(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Mu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":TL&&yy?yy(""[Symbol.iterator]()):Mu,"%Symbol%":TL?Symbol:Mu,"%SyntaxError%":CL,"%ThrowTypeError%":xsr,"%TypedArray%":wsr,"%TypeError%":kL,"%Uint8Array%":typeof Uint8Array>"u"?Mu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Mu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Mu:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Mu:Uint32Array,"%URIError%":fsr,"%WeakMap%":typeof WeakMap>"u"?Mu:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Mu:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Mu:WeakSet,"%Function.prototype.call%":gH,"%Function.prototype.apply%":Hot,"%Object.defineProperty%":bsr,"%Object.getPrototypeOf%":Ssr,"%Math.abs%":_sr,"%Math.floor%":dsr,"%Math.max%":msr,"%Math.min%":gsr,"%Math.pow%":hsr,"%Math.round%":ysr,"%Math.sign%":vsr,"%Reflect.getPrototypeOf%":Tsr};if(yy)try{null.error}catch(o){Wot=yy(yy(o)),$8["%Error.prototype%"]=Wot}var Wot,ksr=function o(a){var u;if(a==="%AsyncFunction%")u=hDe("async function () {}");else if(a==="%GeneratorFunction%")u=hDe("function* () {}");else if(a==="%AsyncGeneratorFunction%")u=hDe("async function* () {}");else if(a==="%AsyncGenerator%"){var f=o("%AsyncGeneratorFunction%");f&&(u=f.prototype)}else if(a==="%AsyncIteratorPrototype%"){var d=o("%AsyncGenerator%");d&&yy&&(u=yy(d.prototype))}return $8[a]=u,u},Uot={__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"]},hH=dH(),ioe=noe(),Csr=hH.call(gH,Array.prototype.concat),Psr=hH.call(Hot,Array.prototype.splice),$ot=hH.call(gH,String.prototype.replace),aoe=hH.call(gH,String.prototype.slice),Esr=hH.call(gH,RegExp.prototype.exec),Dsr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Osr=/\\(\\)?/g,Nsr=function(a){var u=aoe(a,0,1),f=aoe(a,-1);if(u==="%"&&f!=="%")throw new CL("invalid intrinsic syntax, expected closing `%`");if(f==="%"&&u!=="%")throw new CL("invalid intrinsic syntax, expected opening `%`");var d=[];return $ot(a,Dsr,function(w,O,q,K){d[d.length]=q?$ot(K,Osr,"$1"):O||w}),d},Asr=function(a,u){var f=a,d;if(ioe(Uot,f)&&(d=Uot[f],f="%"+d[0]+"%"),ioe($8,f)){var w=$8[f];if(w===wL&&(w=ksr(f)),typeof w>"u"&&!u)throw new kL("intrinsic "+a+" exists, but is not available. Please file an issue!");return{alias:d,name:f,value:w}}throw new CL("intrinsic "+a+" does not exist!")};Got.exports=function(a,u){if(typeof a!="string"||a.length===0)throw new kL("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof u!="boolean")throw new kL('"allowMissing" argument must be a boolean');if(Esr(/^%?[^%]*%?$/,a)===null)throw new CL("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var f=Nsr(a),d=f.length>0?f[0]:"",w=Asr("%"+d+"%",u),O=w.name,q=w.value,K=!1,le=w.alias;le&&(d=le[0],Psr(f,Csr([0,1],le)));for(var ye=1,Be=!0;ye<f.length;ye+=1){var ce=f[ye],mt=aoe(ce,0,1),Re=aoe(ce,-1);if((mt==='"'||mt==="'"||mt==="`"||Re==='"'||Re==="'"||Re==="`")&&mt!==Re)throw new CL("property names with quotes must have matching quotes");if((ce==="constructor"||!Be)&&(K=!0),d+="."+ce,O="%"+d+"%",ioe($8,O))q=$8[O];else if(q!=null){if(!(ce in q)){if(!u)throw new kL("base intrinsic for "+a+" exists, but the property is not available.");return}if(mH&&ye+1>=f.length){var Ge=mH(q,ce);Be=!!Ge,Be&&"get"in Ge&&!("originalValue"in Ge.get)?q=Ge.get:q=q[ce]}else Be=ioe(q,ce),q=q[ce];Be&&!K&&($8[O]=q)}}return q}});var Xot=Ve((Vsn,Qot)=>{"use strict";var Isr=fDe();Qot.exports=function(){return Isr()&&!!Symbol.toStringTag}});var ect=Ve((Hsn,Zot)=>{"use strict";var Fsr=Kot(),Yot=Fsr("%Object.defineProperty%",!0),Msr=Xot()(),Rsr=noe(),jsr=Zse(),soe=Msr?Symbol.toStringTag:null;Zot.exports=function(a,u){var f=arguments.length>2&&!!arguments[2]&&arguments[2].force,d=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof f<"u"&&typeof f!="boolean"||typeof d<"u"&&typeof d!="boolean")throw new jsr("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");soe&&(f||!Rsr(a,soe))&&(Yot?Yot(a,soe,{configurable:!d,enumerable:!1,value:u,writable:!1}):a[soe]=u)}});var rct=Ve((Gsn,tct)=>{"use strict";tct.exports=function(o,a){return Object.keys(a).forEach(function(u){o[u]=o[u]||a[u]}),o}});var ict=Ve((Ksn,nct)=>{"use strict";var SDe=cst(),Lsr=require("util"),vDe=require("path"),Bsr=require("http"),qsr=require("https"),Jsr=require("url").parse,zsr=require("fs"),Wsr=require("stream").Stream,bDe=dst(),Usr=Nst(),$sr=ect(),h6=noe(),xDe=rct();function lp(o){if(!(this instanceof lp))return new lp(o);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],SDe.call(this),o=o||{};for(var a in o)this[a]=o[a]}Lsr.inherits(lp,SDe);lp.LINE_BREAK=`\r
|
|
`;lp.DEFAULT_CONTENT_TYPE="application/octet-stream";lp.prototype.append=function(o,a,u){u=u||{},typeof u=="string"&&(u={filename:u});var f=SDe.prototype.append.bind(this);if((typeof a=="number"||a==null)&&(a=String(a)),Array.isArray(a)){this._error(new Error("Arrays are not supported."));return}var d=this._multiPartHeader(o,a,u),w=this._multiPartFooter();f(d),f(a),f(w),this._trackLength(d,a,u)};lp.prototype._trackLength=function(o,a,u){var f=0;u.knownLength!=null?f+=Number(u.knownLength):Buffer.isBuffer(a)?f=a.length:typeof a=="string"&&(f=Buffer.byteLength(a)),this._valueLength+=f,this._overheadLength+=Buffer.byteLength(o)+lp.LINE_BREAK.length,!(!a||!a.path&&!(a.readable&&h6(a,"httpVersion"))&&!(a instanceof Wsr))&&(u.knownLength||this._valuesToMeasure.push(a))};lp.prototype._lengthRetriever=function(o,a){h6(o,"fd")?o.end!=null&&o.end!=1/0&&o.start!=null?a(null,o.end+1-(o.start?o.start:0)):zsr.stat(o.path,function(u,f){if(u){a(u);return}var d=f.size-(o.start?o.start:0);a(null,d)}):h6(o,"httpVersion")?a(null,Number(o.headers["content-length"])):h6(o,"httpModule")?(o.on("response",function(u){o.pause(),a(null,Number(u.headers["content-length"]))}),o.resume()):a("Unknown stream")};lp.prototype._multiPartHeader=function(o,a,u){if(typeof u.header=="string")return u.header;var f=this._getContentDisposition(a,u),d=this._getContentType(a,u),w="",O={"Content-Disposition":["form-data",'name="'+o+'"'].concat(f||[]),"Content-Type":[].concat(d||[])};typeof u.header=="object"&&xDe(O,u.header);var q;for(var K in O)if(h6(O,K)){if(q=O[K],q==null)continue;Array.isArray(q)||(q=[q]),q.length&&(w+=K+": "+q.join("; ")+lp.LINE_BREAK)}return"--"+this.getBoundary()+lp.LINE_BREAK+w+lp.LINE_BREAK};lp.prototype._getContentDisposition=function(o,a){var u;if(typeof a.filepath=="string"?u=vDe.normalize(a.filepath).replace(/\\/g,"/"):a.filename||o&&(o.name||o.path)?u=vDe.basename(a.filename||o&&(o.name||o.path)):o&&o.readable&&h6(o,"httpVersion")&&(u=vDe.basename(o.client._httpMessage.path||"")),u)return'filename="'+u+'"'};lp.prototype._getContentType=function(o,a){var u=a.contentType;return!u&&o&&o.name&&(u=bDe.lookup(o.name)),!u&&o&&o.path&&(u=bDe.lookup(o.path)),!u&&o&&o.readable&&h6(o,"httpVersion")&&(u=o.headers["content-type"]),!u&&(a.filepath||a.filename)&&(u=bDe.lookup(a.filepath||a.filename)),!u&&o&&typeof o=="object"&&(u=lp.DEFAULT_CONTENT_TYPE),u};lp.prototype._multiPartFooter=function(){return function(o){var a=lp.LINE_BREAK,u=this._streams.length===0;u&&(a+=this._lastBoundary()),o(a)}.bind(this)};lp.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+lp.LINE_BREAK};lp.prototype.getHeaders=function(o){var a,u={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(a in o)h6(o,a)&&(u[a.toLowerCase()]=o[a]);return u};lp.prototype.setBoundary=function(o){if(typeof o!="string")throw new TypeError("FormData boundary must be a string");this._boundary=o};lp.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};lp.prototype.getBuffer=function(){for(var o=new Buffer.alloc(0),a=this.getBoundary(),u=0,f=this._streams.length;u<f;u++)typeof this._streams[u]!="function"&&(Buffer.isBuffer(this._streams[u])?o=Buffer.concat([o,this._streams[u]]):o=Buffer.concat([o,Buffer.from(this._streams[u])]),(typeof this._streams[u]!="string"||this._streams[u].substring(2,a.length+2)!==a)&&(o=Buffer.concat([o,Buffer.from(lp.LINE_BREAK)])));return Buffer.concat([o,Buffer.from(this._lastBoundary())])};lp.prototype._generateBoundary=function(){for(var o="--------------------------",a=0;a<24;a++)o+=Math.floor(Math.random()*10).toString(16);this._boundary=o};lp.prototype.getLengthSync=function(){var o=this._overheadLength+this._valueLength;return this._streams.length&&(o+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),o};lp.prototype.hasKnownLength=function(){var o=!0;return this._valuesToMeasure.length&&(o=!1),o};lp.prototype.getLength=function(o){var a=this._overheadLength+this._valueLength;if(this._streams.length&&(a+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(o.bind(this,null,a));return}Usr.parallel(this._valuesToMeasure,this._lengthRetriever,function(u,f){if(u){o(u);return}f.forEach(function(d){a+=d}),o(null,a)})};lp.prototype.submit=function(o,a){var u,f,d={method:"post"};return typeof o=="string"?(o=Jsr(o),f=xDe({port:o.port,path:o.pathname,host:o.hostname,protocol:o.protocol},d)):(f=xDe(o,d),f.port||(f.port=f.protocol==="https:"?443:80)),f.headers=this.getHeaders(o.headers),f.protocol==="https:"?u=qsr.request(f):u=Bsr.request(f),this.getLength(function(w,O){if(w&&w!=="Unknown stream"){this._error(w);return}if(O&&u.setHeader("Content-Length",O),this.pipe(u),a){var q,K=function(le,ye){return u.removeListener("error",K),u.removeListener("response",q),a.call(this,le,ye)};q=K.bind(this,null),u.on("error",K),u.on("response",q)}}.bind(this)),u};lp.prototype._error=function(o){this.error||(this.error=o,this.pause(),this.emit("error",o))};lp.prototype.toString=function(){return"[object FormData]"};$sr(lp,"FormData");nct.exports=lp});var Sct=Ve(xct=>{"use strict";var lor=require("url").parse,uor={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},por=String.prototype.endsWith||function(o){return o.length<=this.length&&this.indexOf(o,this.length-o.length)!==-1};function _or(o){var a=typeof o=="string"?lor(o):o||{},u=a.protocol,f=a.host,d=a.port;if(typeof f!="string"||!f||typeof u!="string"||(u=u.split(":",1)[0],f=f.replace(/:\d*$/,""),d=parseInt(d)||uor[u]||0,!dor(f,d)))return"";var w=OL("npm_config_"+u+"_proxy")||OL(u+"_proxy")||OL("npm_config_proxy")||OL("all_proxy");return w&&w.indexOf("://")===-1&&(w=u+"://"+w),w}function dor(o,a){var u=(OL("npm_config_no_proxy")||OL("no_proxy")).toLowerCase();return u?u==="*"?!1:u.split(/[,\s]/).every(function(f){if(!f)return!0;var d=f.match(/^(.+):(\d+)$/),w=d?d[1]:f,O=d?parseInt(d[2]):0;return O&&O!==a?!0:/^[.*]/.test(w)?(w.charAt(0)==="*"&&(w=w.slice(1)),!por.call(o,w)):o!==w}):!0}function OL(o){return process.env[o.toLowerCase()]||process.env[o.toUpperCase()]||""}xct.getProxyForUrl=_or});var wct=Ve((Qon,Tct)=>{var NL=1e3,AL=NL*60,IL=AL*60,G8=IL*24,mor=G8*7,gor=G8*365.25;Tct.exports=function(o,a){a=a||{};var u=typeof o;if(u==="string"&&o.length>0)return hor(o);if(u==="number"&&isFinite(o))return a.long?vor(o):yor(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function hor(o){if(o=String(o),!(o.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(a){var u=parseFloat(a[1]),f=(a[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return u*gor;case"weeks":case"week":case"w":return u*mor;case"days":case"day":case"d":return u*G8;case"hours":case"hour":case"hrs":case"hr":case"h":return u*IL;case"minutes":case"minute":case"mins":case"min":case"m":return u*AL;case"seconds":case"second":case"secs":case"sec":case"s":return u*NL;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function yor(o){var a=Math.abs(o);return a>=G8?Math.round(o/G8)+"d":a>=IL?Math.round(o/IL)+"h":a>=AL?Math.round(o/AL)+"m":a>=NL?Math.round(o/NL)+"s":o+"ms"}function vor(o){var a=Math.abs(o);return a>=G8?uoe(o,a,G8,"day"):a>=IL?uoe(o,a,IL,"hour"):a>=AL?uoe(o,a,AL,"minute"):a>=NL?uoe(o,a,NL,"second"):o+" ms"}function uoe(o,a,u,f){var d=a>=u*1.5;return Math.round(o/u)+" "+f+(d?"s":"")}});var MDe=Ve((Xon,kct)=>{function bor(o){u.debug=u,u.default=u,u.coerce=K,u.disable=O,u.enable=d,u.enabled=q,u.humanize=wct(),u.destroy=le,Object.keys(o).forEach(ye=>{u[ye]=o[ye]}),u.names=[],u.skips=[],u.formatters={};function a(ye){let Be=0;for(let ce=0;ce<ye.length;ce++)Be=(Be<<5)-Be+ye.charCodeAt(ce),Be|=0;return u.colors[Math.abs(Be)%u.colors.length]}u.selectColor=a;function u(ye){let Be,ce=null,mt,Re;function Ge(..._r){if(!Ge.enabled)return;let jr=Ge,si=Number(new Date),Oi=si-(Be||si);jr.diff=Oi,jr.prev=Be,jr.curr=si,Be=si,_r[0]=u.coerce(_r[0]),typeof _r[0]!="string"&&_r.unshift("%O");let ys=0;_r[0]=_r[0].replace(/%([a-zA-Z%])/g,(sn,Ir)=>{if(sn==="%%")return"%";ys++;let Ks=u.formatters[Ir];if(typeof Ks=="function"){let Va=_r[ys];sn=Ks.call(jr,Va),_r.splice(ys,1),ys--}return sn}),u.formatArgs.call(jr,_r),(jr.log||u.log).apply(jr,_r)}return Ge.namespace=ye,Ge.useColors=u.useColors(),Ge.color=u.selectColor(ye),Ge.extend=f,Ge.destroy=u.destroy,Object.defineProperty(Ge,"enabled",{enumerable:!0,configurable:!1,get:()=>ce!==null?ce:(mt!==u.namespaces&&(mt=u.namespaces,Re=u.enabled(ye)),Re),set:_r=>{ce=_r}}),typeof u.init=="function"&&u.init(Ge),Ge}function f(ye,Be){let ce=u(this.namespace+(typeof Be>"u"?":":Be)+ye);return ce.log=this.log,ce}function d(ye){u.save(ye),u.namespaces=ye,u.names=[],u.skips=[];let Be=(typeof ye=="string"?ye:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let ce of Be)ce[0]==="-"?u.skips.push(ce.slice(1)):u.names.push(ce)}function w(ye,Be){let ce=0,mt=0,Re=-1,Ge=0;for(;ce<ye.length;)if(mt<Be.length&&(Be[mt]===ye[ce]||Be[mt]==="*"))Be[mt]==="*"?(Re=mt,Ge=ce,mt++):(ce++,mt++);else if(Re!==-1)mt=Re+1,Ge++,ce=Ge;else return!1;for(;mt<Be.length&&Be[mt]==="*";)mt++;return mt===Be.length}function O(){let ye=[...u.names,...u.skips.map(Be=>"-"+Be)].join(",");return u.enable(""),ye}function q(ye){for(let Be of u.skips)if(w(ye,Be))return!1;for(let Be of u.names)if(w(ye,Be))return!0;return!1}function K(ye){return ye instanceof Error?ye.stack||ye.message:ye}function le(){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 u.enable(u.load()),u}kct.exports=bor});var Cct=Ve((Db,poe)=>{Db.formatArgs=Sor;Db.save=Tor;Db.load=wor;Db.useColors=xor;Db.storage=kor();Db.destroy=(()=>{let o=!1;return()=>{o||(o=!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`."))}})();Db.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 xor(){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 o;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&&(o=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(o[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Sor(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+poe.exports.humanize(this.diff),!this.useColors)return;let a="color: "+this.color;o.splice(1,0,a,"color: inherit");let u=0,f=0;o[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(u++,d==="%c"&&(f=u))}),o.splice(f,0,a)}Db.log=console.debug||console.log||(()=>{});function Tor(o){try{o?Db.storage.setItem("debug",o):Db.storage.removeItem("debug")}catch{}}function wor(){let o;try{o=Db.storage.getItem("debug")||Db.storage.getItem("DEBUG")}catch{}return!o&&typeof process<"u"&&"env"in process&&(o=process.env.DEBUG),o}function kor(){try{return localStorage}catch{}}poe.exports=MDe()(Db);var{formatters:Cor}=poe.exports;Cor.j=function(o){try{return JSON.stringify(o)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}});var Ect=Ve((Yon,Pct)=>{"use strict";Pct.exports=(o,a=process.argv)=>{let u=o.startsWith("-")?"":o.length===1?"-":"--",f=a.indexOf(u+o),d=a.indexOf("--");return f!==-1&&(d===-1||f<d)}});var Nct=Ve((Zon,Oct)=>{"use strict";var Por=require("os"),Dct=require("tty"),UT=Ect(),{env:vy}=process,foe;UT("no-color")||UT("no-colors")||UT("color=false")||UT("color=never")?foe=0:(UT("color")||UT("colors")||UT("color=true")||UT("color=always"))&&(foe=1);function Eor(){if("FORCE_COLOR"in vy)return vy.FORCE_COLOR==="true"?1:vy.FORCE_COLOR==="false"?0:vy.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(vy.FORCE_COLOR,10),3)}function Dor(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}}function Oor(o,{streamIsTTY:a,sniffFlags:u=!0}={}){let f=Eor();f!==void 0&&(foe=f);let d=u?foe:f;if(d===0)return 0;if(u){if(UT("color=16m")||UT("color=full")||UT("color=truecolor"))return 3;if(UT("color=256"))return 2}if(o&&!a&&d===void 0)return 0;let w=d||0;if(vy.TERM==="dumb")return w;if(process.platform==="win32"){let O=Por.release().split(".");return Number(O[0])>=10&&Number(O[2])>=10586?Number(O[2])>=14931?3:2:1}if("CI"in vy)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(O=>O in vy)||vy.CI_NAME==="codeship"?1:w;if("TEAMCITY_VERSION"in vy)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(vy.TEAMCITY_VERSION)?1:0;if(vy.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in vy){let O=Number.parseInt((vy.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(vy.TERM_PROGRAM){case"iTerm.app":return O>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(vy.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(vy.TERM)||"COLORTERM"in vy?1:w}function RDe(o,a={}){let u=Oor(o,{streamIsTTY:o&&o.isTTY,...a});return Dor(u)}Oct.exports={supportsColor:RDe,stdout:RDe({isTTY:Dct.isatty(1)}),stderr:RDe({isTTY:Dct.isatty(2)})}});var Ict=Ve((by,doe)=>{var Nor=require("tty"),_oe=require("util");by.init=Lor;by.log=Mor;by.formatArgs=Ior;by.save=Ror;by.load=jor;by.useColors=Aor;by.destroy=_oe.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");by.colors=[6,2,3,4,5,1];try{let o=Nct();o&&(o.stderr||o).level>=2&&(by.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}by.inspectOpts=Object.keys(process.env).filter(o=>/^debug_/i.test(o)).reduce((o,a)=>{let u=a.substring(6).toLowerCase().replace(/_([a-z])/g,(d,w)=>w.toUpperCase()),f=process.env[a];return/^(yes|on|true|enabled)$/i.test(f)?f=!0:/^(no|off|false|disabled)$/i.test(f)?f=!1:f==="null"?f=null:f=Number(f),o[u]=f,o},{});function Aor(){return"colors"in by.inspectOpts?!!by.inspectOpts.colors:Nor.isatty(process.stderr.fd)}function Ior(o){let{namespace:a,useColors:u}=this;if(u){let f=this.color,d="\x1B[3"+(f<8?f:"8;5;"+f),w=` ${d};1m${a} \x1B[0m`;o[0]=w+o[0].split(`
|
|
`).join(`
|
|
`+w),o.push(d+"m+"+doe.exports.humanize(this.diff)+"\x1B[0m")}else o[0]=For()+a+" "+o[0]}function For(){return by.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Mor(...o){return process.stderr.write(_oe.formatWithOptions(by.inspectOpts,...o)+`
|
|
`)}function Ror(o){o?process.env.DEBUG=o:delete process.env.DEBUG}function jor(){return process.env.DEBUG}function Lor(o){o.inspectOpts={};let a=Object.keys(by.inspectOpts);for(let u=0;u<a.length;u++)o.inspectOpts[a[u]]=by.inspectOpts[a[u]]}doe.exports=MDe()(by);var{formatters:Act}=doe.exports;Act.o=function(o){return this.inspectOpts.colors=this.useColors,_oe.inspect(o,this.inspectOpts).split(`
|
|
`).map(a=>a.trim()).join(" ")};Act.O=function(o){return this.inspectOpts.colors=this.useColors,_oe.inspect(o,this.inspectOpts)}});var Fct=Ve((ecn,jDe)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jDe.exports=Cct():jDe.exports=Ict()});var Rct=Ve((tcn,Mct)=>{var xH;Mct.exports=function(){if(!xH){try{xH=Fct()("follow-redirects")}catch{}typeof xH!="function"&&(xH=function(){})}xH.apply(null,arguments)}});var Jct=Ve((rcn,KDe)=>{var TH=require("url"),SH=TH.URL,Bor=require("http"),qor=require("https"),zDe=require("stream").Writable,WDe=require("assert"),jct=Rct();(function(){var a=typeof process<"u",u=typeof window<"u"&&typeof document<"u",f=Q8(Error.captureStackTrace);!a&&(u||!f)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var UDe=!1;try{WDe(new SH(""))}catch(o){UDe=o.code==="ERR_INVALID_URL"}var Jor=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],$De=["abort","aborted","connect","error","socket","timeout"],VDe=Object.create(null);$De.forEach(function(o){VDe[o]=function(a,u,f){this._redirectable.emit(o,a,u,f)}});var BDe=wH("ERR_INVALID_URL","Invalid URL",TypeError),qDe=wH("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),zor=wH("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",qDe),Wor=wH("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Uor=wH("ERR_STREAM_WRITE_AFTER_END","write after end"),$or=zDe.prototype.destroy||Bct;function Ob(o,a){zDe.call(this),this._sanitizeOptions(o),this._options=o,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],a&&this.on("response",a);var u=this;this._onNativeResponse=function(f){try{u._processResponse(f)}catch(d){u.emit("error",d instanceof qDe?d:new qDe({cause:d}))}},this._performRequest()}Ob.prototype=Object.create(zDe.prototype);Ob.prototype.abort=function(){GDe(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Ob.prototype.destroy=function(o){return GDe(this._currentRequest,o),$or.call(this,o),this};Ob.prototype.write=function(o,a,u){if(this._ending)throw new Uor;if(!K8(o)&&!Gor(o))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Q8(a)&&(u=a,a=null),o.length===0){u&&u();return}this._requestBodyLength+o.length<=this._options.maxBodyLength?(this._requestBodyLength+=o.length,this._requestBodyBuffers.push({data:o,encoding:a}),this._currentRequest.write(o,a,u)):(this.emit("error",new Wor),this.abort())};Ob.prototype.end=function(o,a,u){if(Q8(o)?(u=o,o=a=null):Q8(a)&&(u=a,a=null),!o)this._ended=this._ending=!0,this._currentRequest.end(null,null,u);else{var f=this,d=this._currentRequest;this.write(o,a,function(){f._ended=!0,d.end(null,null,u)}),this._ending=!0}};Ob.prototype.setHeader=function(o,a){this._options.headers[o]=a,this._currentRequest.setHeader(o,a)};Ob.prototype.removeHeader=function(o){delete this._options.headers[o],this._currentRequest.removeHeader(o)};Ob.prototype.setTimeout=function(o,a){var u=this;function f(O){O.setTimeout(o),O.removeListener("timeout",O.destroy),O.addListener("timeout",O.destroy)}function d(O){u._timeout&&clearTimeout(u._timeout),u._timeout=setTimeout(function(){u.emit("timeout"),w()},o),f(O)}function w(){u._timeout&&(clearTimeout(u._timeout),u._timeout=null),u.removeListener("abort",w),u.removeListener("error",w),u.removeListener("response",w),u.removeListener("close",w),a&&u.removeListener("timeout",a),u.socket||u._currentRequest.removeListener("socket",d)}return a&&this.on("timeout",a),this.socket?d(this.socket):this._currentRequest.once("socket",d),this.on("socket",f),this.on("abort",w),this.on("error",w),this.on("response",w),this.on("close",w),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(o){Ob.prototype[o]=function(a,u){return this._currentRequest[o](a,u)}});["aborted","connection","socket"].forEach(function(o){Object.defineProperty(Ob.prototype,o,{get:function(){return this._currentRequest[o]}})});Ob.prototype._sanitizeOptions=function(o){if(o.headers||(o.headers={}),o.host&&(o.hostname||(o.hostname=o.host),delete o.host),!o.pathname&&o.path){var a=o.path.indexOf("?");a<0?o.pathname=o.path:(o.pathname=o.path.substring(0,a),o.search=o.path.substring(a))}};Ob.prototype._performRequest=function(){var o=this._options.protocol,a=this._options.nativeProtocols[o];if(!a)throw new TypeError("Unsupported protocol "+o);if(this._options.agents){var u=o.slice(0,-1);this._options.agent=this._options.agents[u]}var f=this._currentRequest=a.request(this._options,this._onNativeResponse);f._redirectable=this;for(var d of $De)f.on(d,VDe[d]);if(this._currentUrl=/^\//.test(this._options.path)?TH.format(this._options):this._options.path,this._isRedirect){var w=0,O=this,q=this._requestBodyBuffers;(function K(le){if(f===O._currentRequest)if(le)O.emit("error",le);else if(w<q.length){var ye=q[w++];f.finished||f.write(ye.data,ye.encoding,K)}else O._ended&&f.end()})()}};Ob.prototype._processResponse=function(o){var a=o.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:o.headers,statusCode:a});var u=o.headers.location;if(!u||this._options.followRedirects===!1||a<300||a>=400){o.responseUrl=this._currentUrl,o.redirects=this._redirects,this.emit("response",o),this._requestBodyBuffers=[];return}if(GDe(this._currentRequest),o.destroy(),++this._redirectCount>this._options.maxRedirects)throw new zor;var f,d=this._options.beforeRedirect;d&&(f=Object.assign({Host:o.req.getHeader("host")},this._options.headers));var w=this._options.method;((a===301||a===302)&&this._options.method==="POST"||a===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],LDe(/^content-/i,this._options.headers));var O=LDe(/^host$/i,this._options.headers),q=HDe(this._currentUrl),K=O||q.host,le=/^\w+:/.test(u)?this._currentUrl:TH.format(Object.assign(q,{host:K})),ye=Vor(u,le);if(jct("redirecting to",ye.href),this._isRedirect=!0,JDe(ye,this._options),(ye.protocol!==q.protocol&&ye.protocol!=="https:"||ye.host!==K&&!Hor(ye.host,K))&&LDe(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Q8(d)){var Be={headers:o.headers,statusCode:a},ce={url:le,method:w,headers:f};d(this._options,Be,ce),this._sanitizeOptions(this._options)}this._performRequest()};function Lct(o){var a={maxRedirects:21,maxBodyLength:10485760},u={};return Object.keys(o).forEach(function(f){var d=f+":",w=u[d]=o[f],O=a[f]=Object.create(w);function q(le,ye,Be){return Kor(le)?le=JDe(le):K8(le)?le=JDe(HDe(le)):(Be=ye,ye=qct(le),le={protocol:d}),Q8(ye)&&(Be=ye,ye=null),ye=Object.assign({maxRedirects:a.maxRedirects,maxBodyLength:a.maxBodyLength},le,ye),ye.nativeProtocols=u,!K8(ye.host)&&!K8(ye.hostname)&&(ye.hostname="::1"),WDe.equal(ye.protocol,d,"protocol mismatch"),jct("options",ye),new Ob(ye,Be)}function K(le,ye,Be){var ce=O.request(le,ye,Be);return ce.end(),ce}Object.defineProperties(O,{request:{value:q,configurable:!0,enumerable:!0,writable:!0},get:{value:K,configurable:!0,enumerable:!0,writable:!0}})}),a}function Bct(){}function HDe(o){var a;if(UDe)a=new SH(o);else if(a=qct(TH.parse(o)),!K8(a.protocol))throw new BDe({input:o});return a}function Vor(o,a){return UDe?new SH(o,a):HDe(TH.resolve(a,o))}function qct(o){if(/^\[/.test(o.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(o.hostname))throw new BDe({input:o.href||o});if(/^\[/.test(o.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(o.host))throw new BDe({input:o.href||o});return o}function JDe(o,a){var u=a||{};for(var f of Jor)u[f]=o[f];return u.hostname.startsWith("[")&&(u.hostname=u.hostname.slice(1,-1)),u.port!==""&&(u.port=Number(u.port)),u.path=u.search?u.pathname+u.search:u.pathname,u}function LDe(o,a){var u;for(var f in a)o.test(f)&&(u=a[f],delete a[f]);return u===null||typeof u>"u"?void 0:String(u).trim()}function wH(o,a,u){function f(d){Q8(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,d||{}),this.code=o,this.message=this.cause?a+": "+this.cause.message:a}return f.prototype=new(u||Error),Object.defineProperties(f.prototype,{constructor:{value:f,enumerable:!1},name:{value:"Error ["+o+"]",enumerable:!1}}),f}function GDe(o,a){for(var u of $De)o.removeListener(u,VDe[u]);o.on("error",Bct),o.destroy(a)}function Hor(o,a){WDe(K8(o)&&K8(a));var u=o.length-a.length-1;return u>0&&o[u]==="."&&o.endsWith(a)}function K8(o){return typeof o=="string"||o instanceof String}function Q8(o){return typeof o=="function"}function Gor(o){return typeof o=="object"&&"length"in o}function Kor(o){return SH&&o instanceof SH}KDe.exports=Lct({http:Bor,https:qor});KDe.exports.wrap=Lct});var Plt={};uH(Plt,{MCPClient:()=>pOe});var klt,Clt,pOe,Elt=mi(()=>{"use strict";klt=require("events"),Clt=Ea(require("net")),pOe=class extends klt.EventEmitter{constructor(u,f){super();this.messageId=0;this.pendingRequests=new Map;this.buffer="";this.transport=u,this.options=f}async connect(){if(this.transport==="stdio")process.stdin.on("data",this.handleData.bind(this)),console.log("[MCPClient] Connected via stdio");else{let u=this.options?.port||3e3,f=this.options?.host||"localhost";return new Promise((d,w)=>{this.socket=Clt.createConnection({port:u,host:f},()=>{console.log(`[MCPClient] Connected to TCP server at ${f}:${u}`),d()}),this.socket.on("data",this.handleData.bind(this)),this.socket.on("error",w),this.socket.on("close",()=>{console.log("[MCPClient] Connection closed"),this.emit("close")})})}}handleData(u){this.buffer+=u.toString();let f=this.buffer.split(`
|
|
`);this.buffer=f.pop()||"";for(let d of f)if(d.trim())try{let w=JSON.parse(d);this.handleMessage(w)}catch(w){console.error("[MCPClient] Failed to parse message:",w)}}handleMessage(u){if(u.id!==void 0){let f=this.pendingRequests.get(u.id);f&&(this.pendingRequests.delete(u.id),u.error?f.reject(new Error(u.error.message)):f.resolve(u.result))}else u.method&&this.emit("notification",u)}sendMessage(u){let f=JSON.stringify(u)+`
|
|
`;this.transport==="stdio"?process.stdout.write(f):this.socket&&this.socket.write(f)}async sendRequest(u,f){let d=++this.messageId;return new Promise((w,O)=>{this.pendingRequests.set(d,{resolve:w,reject:O}),this.sendMessage({jsonrpc:"2.0",id:d,method:u,params:f}),setTimeout(()=>{this.pendingRequests.has(d)&&(this.pendingRequests.delete(d),O(new Error("Request timeout")))},3e4)})}async registerTool(u){await this.sendRequest("tools/register",{name:u.name,description:u.description,inputSchema:u.inputSchema}),this.on("notification",async f=>{if(f.method===`tools/call/${u.name}`)try{let d=await u.handler(f.params);this.sendMessage({jsonrpc:"2.0",id:f.id,result:d})}catch(d){this.sendMessage({jsonrpc:"2.0",id:f.id,error:{code:-32603,message:d.message}})}})}async registerPrompt(u){await this.sendRequest("prompts/register",{name:u.name,description:u.description,arguments:u.arguments}),this.on("notification",async f=>{if(f.method===`prompts/get/${u.name}`)try{let d=await u.handler(f.params);this.sendMessage({jsonrpc:"2.0",id:f.id,result:{content:d}})}catch(d){this.sendMessage({jsonrpc:"2.0",id:f.id,error:{code:-32603,message:d.message}})}})}async executeCommand(u,f){return this.sendRequest(u,f)}disconnect(){this.socket&&(this.socket.destroy(),this.socket=void 0),this.removeAllListeners(),this.pendingRequests.clear()}}});var f0=Ve((Hun,Dlt)=>{var wcr={workspace:{workspaceFolders:process.env.HANZO_WORKSPACE?[{uri:{fsPath:process.env.HANZO_WORKSPACE}}]:void 0,getConfiguration:o=>({get:(a,u)=>{let f=`HANZO_${o.toUpperCase()}_${a.toUpperCase().replace(/\./g,"_")}`;return process.env[f]||u}}),findFiles:async()=>[],fs:{readFile:async o=>{let u=await require("fs").promises.readFile(o.fsPath||o);return Buffer.from(u)},writeFile:async(o,a)=>{await require("fs").promises.writeFile(o.fsPath||o,a)},createDirectory:async o=>{await require("fs").promises.mkdir(o.fsPath||o,{recursive:!0})}}},window:{showErrorMessage:console.error,showInformationMessage:console.log,visibleTextEditors:[],createWebviewPanel:()=>null,showTextDocument:()=>null},env:{openExternal:async o=>(console.log(`Opening: ${o}`),!0)},Uri:{file:o=>({fsPath:o}),parse:o=>({fsPath:o})},ViewColumn:{One:1},version:"1.0.0",commands:{executeCommand:async()=>[]},SymbolKind:{Function:11,Class:4,Method:5,Variable:12,Constant:13,Interface:10}};Dlt.exports=wcr});var $T,fOe=mi(()=>{"use strict";$T=class{static async storeGlobal(a,u,f){try{let d=JSON.stringify(f);await a.globalState.update(u,d)}catch(d){throw console.error(`[StorageUtil] Failed to store data for key ${u}:`,d),d}}static async retrieveGlobal(a,u,f){try{let d=a.globalState.get(u);return d?JSON.parse(d):f}catch(d){return console.error(`[StorageUtil] Failed to retrieve data for key ${u}:`,d),f}}static async storeWorkspace(a,u,f){try{let d=JSON.stringify(f);await a.workspaceState.update(u,d)}catch(d){throw console.error(`[StorageUtil] Failed to store workspace data for key ${u}:`,d),d}}static async retrieveWorkspace(a,u,f){try{let d=a.workspaceState.get(u);return d?JSON.parse(d):f}catch(d){return console.error(`[StorageUtil] Failed to retrieve workspace data for key ${u}:`,d),f}}static async clearGlobal(a,u){await a.globalState.update(u,void 0)}static async clearWorkspace(a,u){await a.workspaceState.update(u,void 0)}static getGlobalKeys(a){return a.globalState.keys()}static getWorkspaceKeys(a){return a.workspaceState.keys()}}});var Coe,Olt=mi(()=>{"use strict";fOe();Coe=class o{constructor(a){this.context=a;this.currentSession=null;this.SESSION_KEY="hanzo.sessions";this.CURRENT_SESSION_KEY="hanzo.current_session";this.initializeSession()}static getInstance(a){return o.instance||(o.instance=new o(a)),o.instance}async initializeSession(){let a=await $T.retrieveGlobal(this.context,this.CURRENT_SESSION_KEY,null);a&&!a.endTime?(this.currentSession=a,console.log(`[SessionTracker] Resumed session ${a.id}`)):this.startNewSession()}startNewSession(){this.currentSession={id:`session-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,startTime:Date.now(),events:[]},console.log(`[SessionTracker] Started new session ${this.currentSession.id}`),this.saveCurrentSession()}async trackEvent(a,u,f,d){this.currentSession||this.startNewSession();let w={id:`event-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,timestamp:Date.now(),type:a,action:u,details:f,metadata:d};switch(this.currentSession.events.push(w),this.currentSession.metadata||(this.currentSession.metadata={}),a){case"command":this.currentSession.metadata.totalCommands=(this.currentSession.metadata.totalCommands||0)+1;break;case"tool":this.currentSession.metadata.totalToolUsage=(this.currentSession.metadata.totalToolUsage||0)+1;break;case"error":this.currentSession.metadata.errors=(this.currentSession.metadata.errors||0)+1;break}await this.saveCurrentSession()}async trackCommand(a,u){let f=Date.now();return this.trackEvent("command",a,u,{duration:Date.now()-f})}async trackToolUsage(a,u,f){return this.trackEvent("tool",a,{input:u,output:f?JSON.stringify(f).substring(0,1e3):void 0})}async trackSearch(a,u,f){return this.trackEvent("search",`${u} search`,{query:a,resultCount:f})}async trackEdit(a,u){return this.trackEvent("edit",u,{filePath:a})}async trackNavigation(a,u){return this.trackEvent("navigate","navigation",{from:a,to:u})}async trackError(a,u){return this.trackEvent("error",a.name,{message:a.message,stack:a.stack,context:u},{error:a.message})}getCurrentSession(){return this.currentSession}async getAllSessions(){let a=await $T.retrieveGlobal(this.context,this.SESSION_KEY,[]);return this.currentSession&&!this.currentSession.endTime?[this.currentSession,...a]:a}async searchSessions(a,u){let f=await this.getAllSessions(),d=[];for(let w of f)if(!(u?.startDate&&w.startTime<u.startDate.getTime())&&!(u?.endDate&&w.startTime>u.endDate.getTime()))for(let O of w.events){if(u?.type&&O.type!==u.type)continue;if(JSON.stringify(O).toLowerCase().includes(a.toLowerCase())&&(d.push(O),u?.limit&&d.length>=u.limit))return d}return d}async getStatistics(a){let u;if(a){let d=a===this.currentSession?.id?this.currentSession:(await this.getAllSessions()).find(w=>w.id===a);u=d?[d]:[]}else u=await this.getAllSessions();let f={totalSessions:u.length,totalEvents:0,eventTypes:{},commandUsage:{},toolUsage:{},errors:0,averageSessionDuration:0,totalDuration:0};for(let d of u){f.totalEvents+=d.events.length,d.endTime&&(f.totalDuration+=d.endTime-d.startTime);for(let w of d.events)f.eventTypes[w.type]=(f.eventTypes[w.type]||0)+1,w.type==="command"?f.commandUsage[w.action]=(f.commandUsage[w.action]||0)+1:w.type==="tool"?f.toolUsage[w.action]=(f.toolUsage[w.action]||0)+1:w.type==="error"&&f.errors++}return u.filter(d=>d.endTime).length>0&&(f.averageSessionDuration=f.totalDuration/u.filter(d=>d.endTime).length),f}async endSession(){if(!this.currentSession)return;this.currentSession.endTime=Date.now();let a=await $T.retrieveGlobal(this.context,this.SESSION_KEY,[]);a.unshift(this.currentSession),a.length>100&&a.splice(100),await $T.storeGlobal(this.context,this.SESSION_KEY,a),await $T.clearGlobal(this.context,this.CURRENT_SESSION_KEY),console.log(`[SessionTracker] Ended session ${this.currentSession.id}`),this.currentSession=null}async saveCurrentSession(){this.currentSession&&await $T.storeGlobal(this.context,this.CURRENT_SESSION_KEY,this.currentSession)}async exportSessions(a){let u=await this.getAllSessions(),f={exportDate:new Date().toISOString(),sessions:u,statistics:await this.getStatistics()};await require("fs").promises.writeFile(a,JSON.stringify(f,null,2))}}});function kcr(o,a){let u=Coe.getInstance(a);return{...o,handler:async f=>{let d=Date.now(),w,O;try{return await u.trackToolUsage(o.name,f),w=await o.handler(f),await u.trackToolUsage(o.name,f,{success:!0,duration:Date.now()-d,resultPreview:typeof w=="string"?w.substring(0,200):JSON.stringify(w).substring(0,200)}),w}catch(q){throw O=q,await u.trackError(O,`Tool execution failed: ${o.name}`),await u.trackToolUsage(o.name,f,{success:!1,duration:Date.now()-d,error:O.message}),q}}}}function Nlt(o,a){return o.map(u=>kcr(u,a))}var Alt=mi(()=>{"use strict";Olt()});function Ilt(o){let a=OH.workspace.workspaceFolders?.[0]?.uri.fsPath||"";return[{name:"read",description:"Read the contents of a file",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to the file to read"},offset:{type:"number",description:"Line number to start reading from (1-indexed)"},limit:{type:"number",description:"Maximum number of lines to read"}},required:["path"]},handler:async u=>{let f=rg.isAbsolute(u.path)?u.path:rg.join(a,u.path);try{let w=(await VT.readFile(f,"utf-8")).split(`
|
|
`),O=(u.offset||1)-1,q=u.limit?O+u.limit:w.length;return w.slice(O,q).map((ye,Be)=>`${O+Be+1}: ${ye}`).join(`
|
|
`)}catch(d){throw new Error(`Failed to read file: ${d.message}`)}}},{name:"write",description:"Write content to a file",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to the file to write"},content:{type:"string",description:"Content to write to the file"}},required:["path","content"]},handler:async u=>{let f=rg.isAbsolute(u.path)?u.path:rg.join(a,u.path);try{let d=rg.dirname(f);return await VT.mkdir(d,{recursive:!0}),await VT.writeFile(f,u.content,"utf-8"),`File written successfully: ${f}`}catch(d){throw new Error(`Failed to write file: ${d.message}`)}}},{name:"edit",description:"Edit a file by replacing exact text patterns",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to the file to edit"},pattern:{type:"string",description:"Exact text pattern to find"},replacement:{type:"string",description:"Text to replace the pattern with"},replaceAll:{type:"boolean",description:"Replace all occurrences (default: false)"}},required:["path","pattern","replacement"]},handler:async u=>{let f=rg.isAbsolute(u.path)?u.path:rg.join(a,u.path);try{let d=await VT.readFile(f,"utf-8"),w=d;if(u.replaceAll)d=d.split(u.pattern).join(u.replacement);else{let O=d.indexOf(u.pattern);if(O===-1)throw new Error("Pattern not found in file");d=d.substring(0,O)+u.replacement+d.substring(O+u.pattern.length)}return d===w?"No changes made":(await VT.writeFile(f,d,"utf-8"),`File edited successfully: ${f}`)}catch(d){throw new Error(`Failed to edit file: ${d.message}`)}}},{name:"multi_edit",description:"Make multiple edits to a file in one operation",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to the file to edit"},edits:{type:"array",items:{type:"object",properties:{pattern:{type:"string"},replacement:{type:"string"},replaceAll:{type:"boolean"}},required:["pattern","replacement"]},description:"Array of edit operations to perform"}},required:["path","edits"]},handler:async u=>{let f=rg.isAbsolute(u.path)?u.path:rg.join(a,u.path);try{let d=await VT.readFile(f,"utf-8"),w=0;for(let O of u.edits)if(O.replaceAll){let q=d.split(O.pattern).join(O.replacement);q!==d&&(w++,d=q)}else{let q=d.indexOf(O.pattern);q!==-1&&(d=d.substring(0,q)+O.replacement+d.substring(q+O.pattern.length),w++)}return w===0?"No changes made":(await VT.writeFile(f,d,"utf-8"),`File edited successfully with ${w} changes: ${f}`)}catch(d){throw new Error(`Failed to edit file: ${d.message}`)}}},{name:"directory_tree",description:"Display directory structure as a tree",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to the directory (default: workspace root)"},maxDepth:{type:"number",description:"Maximum depth to traverse (default: 3)"},showHidden:{type:"boolean",description:"Show hidden files and directories (default: false)"}}},handler:async u=>{let f=u.path?rg.isAbsolute(u.path)?u.path:rg.join(a,u.path):a,d=u.maxDepth||3,w=u.showHidden||!1;async function O(q,K="",le=0){if(le>d)return"";let ye="",Be=await VT.readdir(q,{withFileTypes:!0}),mt=(w?Be:Be.filter(Re=>!Re.name.startsWith("."))).sort((Re,Ge)=>Re.isDirectory()!==Ge.isDirectory()?Re.isDirectory()?-1:1:Re.name.localeCompare(Ge.name));for(let Re=0;Re<mt.length;Re++){let Ge=mt[Re],_r=Re===mt.length-1,jr=_r?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ",si=_r?" ":"\u2502 ";ye+=K+jr+Ge.name,Ge.isDirectory()?(ye+=`/
|
|
`,le<d&&(ye+=await O(rg.join(q,Ge.name),K+si,le+1))):ye+=`
|
|
`}return ye}try{let q=await O(f);return rg.basename(f)+`/
|
|
`+q}catch(q){throw new Error(`Failed to build directory tree: ${q.message}`)}}},{name:"find_files",description:"Find files matching a pattern",inputSchema:{type:"object",properties:{pattern:{type:"string",description:"File name pattern to search for (supports wildcards)"},path:{type:"string",description:"Directory to search in (default: workspace root)"},maxResults:{type:"number",description:"Maximum number of results to return (default: 100)"}},required:["pattern"]},handler:async u=>{let f=u.path?rg.isAbsolute(u.path)?u.path:rg.join(a,u.path):a,d=u.maxResults||100,w=[],O=u.pattern.includes("*")?u.pattern:`*${u.pattern}*`,q=await OH.workspace.findFiles(new OH.RelativePattern(f,`**/${O}`),"**/node_modules/**",d);for(let K of q)w.push(rg.relative(a,K.fsPath));return w.length===0?"No files found matching the pattern":w.join(`
|
|
`)}}]}var OH,rg,VT,Flt=mi(()=>{"use strict";OH=Ea(f0()),rg=Ea(require("path")),VT=Ea(require("fs/promises"))});function NH(o){let a=v6.workspace.workspaceFolders?.[0]?.uri.fsPath||"",u=new Map;return[{name:"run_command",description:"Execute a shell command",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to execute"},cwd:{type:"string",description:"Working directory for the command"},timeout:{type:"number",description:"Timeout in milliseconds (default: 120000)"}},required:["command"]},handler:async f=>{let d=f.cwd||a,w=f.timeout||12e4;try{let{stdout:O,stderr:q}=await Ccr(f.command,{cwd:d,timeout:w,maxBuffer:10485760}),K="";return O&&(K+=O),q&&(K+=`
|
|
[stderr]
|
|
`+q),K.trim()||"Command completed successfully"}catch(O){throw O.killed?new Error(`Command timed out after ${w}ms`):new Error(`Command failed: ${O.message}
|
|
${O.stdout||""}
|
|
${O.stderr||""}`)}}},{name:"bash",description:"Execute a bash command (alias for run_command)",inputSchema:{type:"object",properties:{command:{type:"string",description:"The bash command to execute"},cwd:{type:"string",description:"Working directory for the command"},timeout:{type:"number",description:"Timeout in milliseconds (default: 120000)"}},required:["command"]},handler:async f=>NH(o)[0].handler(f)},{name:"run_background",description:"Run a command in the background",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run in background"},name:{type:"string",description:"Name for the background process"},cwd:{type:"string",description:"Working directory for the command"}},required:["command","name"]},handler:async f=>{if(u.has(f.name))throw new Error(`Process with name '${f.name}' already exists`);let d=f.cwd||a,[w,...O]=f.command.split(" "),q=(0,Poe.spawn)(w,O,{cwd:d,detached:!0,stdio:"pipe"}),K={pid:q.pid,command:f.command,startTime:new Date,output:"",process:q,exitCode:void 0,endTime:void 0};return u.set(f.name,K),q.stdout?.on("data",le=>{K.output+=le.toString(),K.output.length>1e5&&(K.output=K.output.slice(-1e5))}),q.stderr?.on("data",le=>{K.output+="[stderr] "+le.toString()}),q.on("exit",le=>{K.exitCode=le??void 0,K.endTime=new Date}),`Started background process '${f.name}' with PID ${q.pid}`}},{name:"processes",description:"List running background processes",inputSchema:{type:"object",properties:{}},handler:async()=>u.size===0?"No background processes running":Array.from(u.entries()).map(([d,w])=>{let O=w.exitCode!==void 0?`Exited (${w.exitCode})`:"Running",q=w.endTime?`${(w.endTime-w.startTime)/1e3}s`:`${(Date.now()-w.startTime)/1e3}s`;return`${d}: ${O} (PID: ${w.pid}, Runtime: ${q})
|
|
Command: ${w.command}`}).join(`
|
|
|
|
`)},{name:"pkill",description:"Kill a background process by name",inputSchema:{type:"object",properties:{name:{type:"string",description:"Name of the process to kill"}},required:["name"]},handler:async f=>{let d=u.get(f.name);if(!d)throw new Error(`No process found with name '${f.name}'`);try{return d.process.kill(),u.delete(f.name),`Killed process '${f.name}' (PID: ${d.pid})`}catch(w){throw new Error(`Failed to kill process: ${w.message}`)}}},{name:"logs",description:"View output from a background process",inputSchema:{type:"object",properties:{name:{type:"string",description:"Name of the process"},tail:{type:"number",description:"Number of lines to show from the end"}},required:["name"]},handler:async f=>{let d=u.get(f.name);if(!d)throw new Error(`No process found with name '${f.name}'`);let w=d.output;return f.tail&&f.tail>0&&(w=w.split(`
|
|
`).slice(-f.tail).join(`
|
|
`)),w||"No output available"}},{name:"open",description:"Open a file or URL in the default application",inputSchema:{type:"object",properties:{path:{type:"string",description:"File path or URL to open"}},required:["path"]},handler:async f=>{try{if(f.path.match(/^https?:\/\//))return await v6.env.openExternal(v6.Uri.parse(f.path)),`Opened URL: ${f.path}`;{let d=Eoe.isAbsolute(f.path)?f.path:Eoe.join(a,f.path),w=v6.Uri.file(d);return await v6.env.openExternal(w),`Opened file: ${d}`}}catch(d){throw new Error(`Failed to open: ${d.message}`)}}},{name:"npx",description:"Run a Node.js package directly",inputSchema:{type:"object",properties:{package:{type:"string",description:"Package name to run"},args:{type:"string",description:"Arguments to pass to the package"}},required:["package"]},handler:async f=>{let d=`npx ${f.package} ${f.args||""}`.trim();return NH(o)[0].handler({command:d})}},{name:"uvx",description:"Run a Python package directly",inputSchema:{type:"object",properties:{package:{type:"string",description:"Python package name to run"},args:{type:"string",description:"Arguments to pass to the package"}},required:["package"]},handler:async f=>{let d=`uvx ${f.package} ${f.args||""}`.trim();return NH(o)[0].handler({command:d})}}]}var v6,Poe,Mlt,Eoe,Ccr,Rlt=mi(()=>{"use strict";v6=Ea(f0()),Poe=require("child_process"),Mlt=require("util"),Eoe=Ea(require("path")),Ccr=(0,Mlt.promisify)(Poe.exec)});function e7(o){let a=Nb.workspace.workspaceFolders?.[0]?.uri.fsPath||"";return[{name:"grep",description:"Search for patterns in files using ripgrep",inputSchema:{type:"object",properties:{pattern:{type:"string",description:"Pattern to search for (supports regex)"},path:{type:"string",description:"Path to search in (default: workspace root)"},fileType:{type:"string",description:'File type to search (e.g., "ts", "js")'},ignoreCase:{type:"boolean",description:"Case insensitive search (default: false)"},maxResults:{type:"number",description:"Maximum number of results (default: 100)"}},required:["pattern"]},handler:async u=>{let f=u.path||a,d=u.maxResults||100;try{let w=`rg "${u.pattern}" "${f}"`;u.ignoreCase&&(w+=" -i"),u.fileType&&(w+=` -t ${u.fileType}`),w+=` -m ${d} --no-heading --line-number`;let{stdout:O}=await _Oe(w);return O.trim()||"No matches found"}catch{let O=u.fileType?`**/*.${u.fileType}`:"**/*",q=await Nb.workspace.findFiles(O,"**/node_modules/**",d),K=[];for(let le of q)try{let ye=await Nb.workspace.fs.readFile(le);Buffer.from(ye).toString("utf-8").split(`
|
|
`).forEach((mt,Re)=>{if(new RegExp(u.pattern,u.ignoreCase?"gi":"g").test(mt)){let _r=t7.relative(a,le.fsPath);K.push(`${_r}:${Re+1}: ${mt.trim()}`)}})}catch{}return K.length>0?K.slice(0,d).join(`
|
|
`):"No matches found"}}},{name:"search",description:"Unified search across files, symbols, and git history",inputSchema:{type:"object",properties:{query:{type:"string",description:"Search query"},type:{type:"string",enum:["all","text","symbol","ast","git"],description:"Type of search to perform (default: all)"},path:{type:"string",description:"Path to search in"},maxResults:{type:"number",description:"Maximum results per search type (default: 20)"}},required:["query"]},handler:async u=>{let f=u.type||"all",d=u.maxResults||20,w=[];if(f==="all"||f==="text"){let O=e7(o).find(q=>q.name==="grep");try{let q=await O.handler({pattern:u.query,path:u.path,maxResults:d});q!=="No matches found"&&w.push(`=== Text Matches ===
|
|
`+q)}catch{}}if(f==="all"||f==="symbol"){let O=e7(o).find(q=>q.name==="symbols");try{let q=await O.handler({query:u.query,path:u.path,maxResults:d});q!=="No symbols found"&&w.push(`
|
|
=== Symbol Matches ===
|
|
`+q)}catch{}}if(f==="all"||f==="git"){let O=e7(o).find(q=>q.name==="git_search");try{let q=await O.handler({query:u.query,path:u.path,maxResults:d});q.includes("No results found")||w.push(`
|
|
=== Git History ===
|
|
`+q)}catch{}}return w.length>0?w.join(`
|
|
`):"No results found"}},{name:"symbols",description:"Search for code symbols (functions, classes, etc.)",inputSchema:{type:"object",properties:{query:{type:"string",description:"Symbol name or pattern to search for"},path:{type:"string",description:"Path to search in"},type:{type:"string",enum:["all","function","class","method","variable","interface"],description:"Type of symbol to search for"},maxResults:{type:"number",description:"Maximum number of results (default: 50)"}},required:["query"]},handler:async u=>{let f=u.maxResults||50,d=[],w=await Nb.commands.executeCommand("vscode.executeWorkspaceSymbolProvider",u.query);if(!w||w.length===0)return"No symbols found";let O=w;if(u.path){let q=t7.isAbsolute(u.path)?u.path:t7.join(a,u.path);O=w.filter(K=>K.location.uri.fsPath.startsWith(q))}if(u.type&&u.type!=="all"){let K={function:[Nb.SymbolKind.Function],class:[Nb.SymbolKind.Class],method:[Nb.SymbolKind.Method],variable:[Nb.SymbolKind.Variable,Nb.SymbolKind.Constant],interface:[Nb.SymbolKind.Interface]}[u.type]||[];O=O.filter(le=>K.includes(le.kind))}return O.slice(0,f).forEach(q=>{let K=t7.relative(a,q.location.uri.fsPath),le=q.location.range.start.line+1,ye=Nb.SymbolKind[q.kind];d.push(`${K}:${le} [${ye}] ${q.name}`)}),d.length>0?d.join(`
|
|
`):"No symbols found"}},{name:"git_search",description:"Search in git history",inputSchema:{type:"object",properties:{query:{type:"string",description:"Search query"},type:{type:"string",enum:["commits","diffs","all"],description:"What to search in (default: all)"},path:{type:"string",description:"Path to limit search to"},maxResults:{type:"number",description:"Maximum number of results (default: 20)"}},required:["query"]},handler:async u=>{let f=u.type||"all",d=u.maxResults||20,w=[];try{if(f==="all"||f==="commits"){let O=`git log --grep="${u.query}" --oneline -n ${d}`,{stdout:q}=await _Oe(O,{cwd:a});q.trim()&&w.push(`=== Commit Messages ===
|
|
`+q.trim())}if(f==="all"||f==="diffs"){let O=`git log -G"${u.query}" --oneline -n ${d}`;u.path&&(O+=` -- ${u.path}`);let{stdout:q}=await _Oe(O,{cwd:a});q.trim()&&w.push(`
|
|
=== Code Changes ===
|
|
`+q.trim())}return w.length>0?w.join(`
|
|
`):"No results found in git history"}catch(O){throw new Error(`Git search failed: ${O.message}`)}}},{name:"grep_ast",description:"Search for AST patterns in code",inputSchema:{type:"object",properties:{pattern:{type:"string",description:'AST pattern to search for (e.g., "function $NAME")'},language:{type:"string",description:'Programming language (e.g., "typescript", "javascript")'},path:{type:"string",description:"Path to search in"}},required:["pattern"]},handler:async u=>{let d={"function $NAME":"(function|const|let|var)\\s+(\\w+)\\s*[=:]?\\s*\\(","class $NAME":"class\\s+(\\w+)","interface $NAME":"interface\\s+(\\w+)","import $NAME":`import\\s+.*\\s+from\\s+["']([^"']+)["']`}[u.pattern]||u.pattern;return e7(o).find(O=>O.name==="grep").handler({pattern:d,path:u.path,fileType:u.language})}},{name:"batch_search",description:"Perform multiple searches in parallel",inputSchema:{type:"object",properties:{searches:{type:"array",items:{type:"object",properties:{query:{type:"string"},type:{type:"string"},path:{type:"string"}},required:["query"]},description:"Array of search operations to perform"}},required:["searches"]},handler:async u=>{let f=e7(o).find(w=>w.name==="search");return(await Promise.all(u.searches.map(async(w,O)=>{try{let q=await f.handler(w);return`
|
|
=== Search ${O+1}: "${w.query}" ===
|
|
${q}`}catch(q){return`
|
|
=== Search ${O+1}: "${w.query}" ===
|
|
Error: ${q.message}`}}))).join(`
|
|
`)}}]}var Nb,t7,jlt,Llt,_Oe,Blt=mi(()=>{"use strict";Nb=Ea(f0()),t7=Ea(require("path")),jlt=require("child_process"),Llt=require("util"),_Oe=(0,Llt.promisify)(jlt.exec)});function qlt(o){return[{name:"notebook_read",description:"Read a Jupyter notebook file",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to the notebook file"},cellId:{type:"string",description:"Specific cell ID to read (optional)"}},required:["path"]},handler:async a=>"Jupyter notebook support coming soon"},{name:"notebook_edit",description:"Edit a Jupyter notebook cell",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to the notebook file"},cellId:{type:"string",description:"Cell ID to edit"},content:{type:"string",description:"New content for the cell"},cellType:{type:"string",enum:["code","markdown"],description:"Type of cell"}},required:["path","cellId","content"]},handler:async a=>"Jupyter notebook editing coming soon"}]}var Jlt=mi(()=>{"use strict"});function zlt(o){return[{name:"dispatch_agent",description:"Delegate tasks to specialized sub-agents",inputSchema:{type:"object",properties:{task:{type:"string",description:"Task description for the agent"},agents:{type:"array",items:{type:"object",properties:{name:{type:"string"},role:{type:"string"},tools:{type:"array",items:{type:"string"}}}},description:"Agents to dispatch (optional, will auto-select if not provided)"},parallel:{type:"boolean",description:"Run agents in parallel (default: false)"}},required:["task"]},handler:async a=>"Agent dispatch functionality coming soon"}]}var Wlt=mi(()=>{"use strict"});function Ult(o){let a="hanzo.todos",u=async()=>(await $T.retrieveGlobal(o,a,[])).map(w=>({...w,created:w.created||w.createdAt,updated:w.updated||w.updatedAt})),f=async d=>{await $T.storeGlobal(o,a,d)};return[{name:"todo_read",description:"Read the current todo list",inputSchema:{type:"object",properties:{status:{type:"string",enum:["all","pending","in_progress","completed"],description:"Filter by status (default: all)"},priority:{type:"string",enum:["all","high","medium","low"],description:"Filter by priority (default: all)"}}},handler:async d=>{let O=await u();if(d.status&&d.status!=="all"&&(O=O.filter(ye=>ye.status===d.status)),d.priority&&d.priority!=="all"&&(O=O.filter(ye=>ye.priority===d.priority)),O.length===0)return"No todos found";let q=ye=>{let Be={pending:"\u23F3",in_progress:"\u{1F504}",completed:"\u2705"},ce={high:"\u{1F534}",medium:"\u{1F7E1}",low:"\u{1F7E2}"};return`${Be[ye.status]} [${ye.id}] ${ce[ye.priority]} ${ye.content}`},K={in_progress:O.filter(ye=>ye.status==="in_progress"),pending:O.filter(ye=>ye.status==="pending"),completed:O.filter(ye=>ye.status==="completed")},le=[];return K.in_progress.length>0&&le.push(`=== In Progress ===
|
|
`+K.in_progress.map(q).join(`
|
|
`)),K.pending.length>0&&le.push(`=== Pending ===
|
|
`+K.pending.map(q).join(`
|
|
`)),K.completed.length>0&&le.push(`=== Completed ===
|
|
`+K.completed.map(q).join(`
|
|
`)),le.join(`
|
|
|
|
`)}},{name:"todo_write",description:"Create or update todo items",inputSchema:{type:"object",properties:{todos:{type:"array",items:{type:"object",properties:{id:{type:"string"},content:{type:"string"},status:{type:"string",enum:["pending","in_progress","completed"]},priority:{type:"string",enum:["high","medium","low"]}},required:["content","status","priority"]},description:"Array of todo items to create or update"},action:{type:"string",enum:["replace","merge","append"],description:"How to handle the todo list (default: replace)"}},required:["todos"]},handler:async d=>{let w=d.action||"replace",O=await u();if(w==="replace")O=d.todos.map((K,le)=>({id:K.id||`${Date.now()}-${le}`,content:K.content,status:K.status,priority:K.priority,created:Date.now(),updated:Date.now()}));else if(w==="merge")for(let K of d.todos){let le=O.find(ye=>ye.id===K.id);le?(le.content=K.content,le.status=K.status,le.priority=K.priority,le.updated=Date.now()):O.push({id:K.id||`${Date.now()}-${Math.random()}`,content:K.content,status:K.status,priority:K.priority,created:Date.now(),updated:Date.now()})}else if(w==="append"){let K=d.todos.map((le,ye)=>({id:le.id||`${Date.now()}-${ye}`,content:le.content,status:le.status,priority:le.priority,created:Date.now(),updated:Date.now()}));O.push(...K)}await f(O);let q={total:O.length,pending:O.filter(K=>K.status==="pending").length,in_progress:O.filter(K=>K.status==="in_progress").length,completed:O.filter(K=>K.status==="completed").length};return`Todo list updated: ${q.total} total (${q.pending} pending, ${q.in_progress} in progress, ${q.completed} completed)`}}]}var Vlt=mi(()=>{"use strict";fOe()});function Hlt(o){return[{name:"neovim_edit",description:"Edit files using Neovim commands",inputSchema:{type:"object",properties:{path:{type:"string",description:"File path to edit"},commands:{type:"array",items:{type:"string"},description:"Neovim commands to execute"}},required:["path","commands"]},handler:async a=>"Neovim integration coming soon"},{name:"neovim_command",description:"Execute Neovim commands",inputSchema:{type:"object",properties:{command:{type:"string",description:"Neovim command to execute"}},required:["command"]},handler:async a=>"Neovim command execution coming soon"},{name:"neovim_session",description:"Manage Neovim sessions",inputSchema:{type:"object",properties:{action:{type:"string",enum:["create","list","attach","detach"],description:"Session action"},name:{type:"string",description:"Session name"}},required:["action"]},handler:async a=>"Neovim session management coming soon"}]}var Glt=mi(()=>{"use strict"});var Gw,AH=mi(()=>{"use strict";Gw=class o{constructor(){this.nodes=new Map;this.edges=new Map;this.nodeIndex=new Map;this.edgeIndex=new Map}addNode(a){this.nodes.set(a.id,a),this.nodeIndex.has(a.type)||this.nodeIndex.set(a.type,new Set),this.nodeIndex.get(a.type).add(a.id)}getNode(a){return this.nodes.get(a)}updateNode(a,u){let f=this.nodes.get(a);f&&(Object.assign(f.properties,u.properties||{}),u.type&&u.type!==f.type&&(this.nodeIndex.get(f.type)?.delete(a),f.type=u.type,this.nodeIndex.has(f.type)||this.nodeIndex.set(f.type,new Set),this.nodeIndex.get(f.type).add(a)))}deleteNode(a){let u=this.nodes.get(a);u&&(this.nodeIndex.get(u.type)?.delete(a),this.getEdges({from:a}).concat(this.getEdges({to:a})).forEach(d=>this.deleteEdge(d.id)),this.nodes.delete(a))}addEdge(a){this.edges.set(a.id,a);let u=`from:${a.from}`,f=`to:${a.to}`;this.edgeIndex.has(u)||this.edgeIndex.set(u,new Set),this.edgeIndex.has(f)||this.edgeIndex.set(f,new Set),this.edgeIndex.get(u).add(a.id),this.edgeIndex.get(f).add(a.id)}getEdge(a){return this.edges.get(a)}deleteEdge(a){let u=this.edges.get(a);u&&(this.edgeIndex.get(`from:${u.from}`)?.delete(a),this.edgeIndex.get(`to:${u.to}`)?.delete(a),this.edges.delete(a))}queryNodes(a){let u=[];if(a.type){let f=this.nodeIndex.get(a.type)||new Set;u=Array.from(f).map(d=>this.nodes.get(d))}else u=Array.from(this.nodes.values());return a.properties&&(u=u.filter(f=>Object.entries(a.properties).every(([d,w])=>f.properties[d]===w))),a.connected&&(u=u.filter(f=>this.getNodeEdges(f.id,a.connected.direction).some(w=>w.type===a.connected.type))),u}getEdges(a){let u=[];if(a?.from){let f=this.edgeIndex.get(`from:${a.from}`)||new Set;u=Array.from(f).map(d=>this.edges.get(d))}else if(a?.to){let f=this.edgeIndex.get(`to:${a.to}`)||new Set;u=Array.from(f).map(d=>this.edges.get(d))}else u=Array.from(this.edges.values());return a?.type&&(u=u.filter(f=>f.type===a.type)),u}getNodeEdges(a,u="both"){let f=[];return(u==="out"||u==="both")&&(this.edgeIndex.get(`from:${a}`)||new Set).forEach(w=>{let O=this.edges.get(w);O&&f.push(O)}),(u==="in"||u==="both")&&(this.edgeIndex.get(`to:${a}`)||new Set).forEach(w=>{let O=this.edges.get(w);O&&f.push(O)}),f}findPath(a,u,f=10){let d=new Set,w=[{node:a,path:[a]}];for(;w.length>0;){let{node:O,path:q}=w.shift();if(q.length>f||d.has(O))continue;if(d.add(O),O===u)return q.map(le=>this.nodes.get(le));let K=this.getEdges({from:O});for(let le of K)d.has(le.to)||w.push({node:le.to,path:[...q,le.to]})}return null}getSubgraph(a,u=!0){let f=new Set(a),d=a.map(O=>this.nodes.get(O)).filter(O=>O),w=[];if(u)for(let O of this.edges.values())f.has(O.from)&&f.has(O.to)&&w.push(O);return{nodes:d,edges:w}}getNodeDegree(a){let u=this.edgeIndex.get(`to:${a}`)?.size||0,f=this.edgeIndex.get(`from:${a}`)?.size||0;return{in:u,out:f,total:u+f}}getConnectedComponents(){let a=new Set,u=[];for(let f of this.nodes.values())if(!a.has(f.id)){let d=this.dfs(f.id,a);u.push(d)}return u}dfs(a,u){let f=[a],d=[];for(;f.length>0;){let w=f.pop();if(u.has(w))continue;u.add(w);let O=this.nodes.get(w);if(O){d.push(O);let q=this.getNodeEdges(w);for(let K of q){let le=K.from===w?K.to:K.from;u.has(le)||f.push(le)}}}return d}toJSON(){return JSON.stringify({nodes:Array.from(this.nodes.values()),edges:Array.from(this.edges.values())})}static fromJSON(a){let u=JSON.parse(a),f=new o;for(let d of u.nodes)f.addNode(d);for(let d of u.edges)f.addEdge(d);return f}getStats(){let a={},u=0;for(let[f,d]of this.nodeIndex)a[f]=d.size;for(let f of this.nodes.values())u+=this.getNodeDegree(f.id).total;return{nodeCount:this.nodes.size,edgeCount:this.edges.size,nodeTypes:a,avgDegree:this.nodes.size>0?u/this.nodes.size:0}}clear(){this.nodes.clear(),this.edges.clear(),this.nodeIndex.clear(),this.edgeIndex.clear()}}});var nut=Ve((cpn,Ooe)=>{var Klt={};(o=>{"use strict";var a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,w=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},O=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of f(t))!d.call(e,s)&&s!==n&&a(e,s,{get:()=>t[s],enumerable:!(i=u(t,s))||i.enumerable});return e},q=e=>e,K={};w(K,{ANONYMOUS:()=>are,AccessFlags:()=>UB,AssertionLevel:()=>Ub,AssignmentDeclarationKind:()=>Ht,AssignmentKind:()=>Dme,Associativity:()=>jme,BreakpointResolver:()=>nne,BuilderFileEmit:()=>F0e,BuilderProgramKind:()=>z0e,BuilderState:()=>Qg,CallHierarchy:()=>KE,CharacterCodes:()=>fs,CheckFlags:()=>qO,CheckMode:()=>CZ,ClassificationType:()=>dte,ClassificationTypeNames:()=>U1e,CommentDirectiveType:()=>IB,Comparison:()=>Be,CompletionInfoFlags:()=>j1e,CompletionTriggerKind:()=>fte,Completions:()=>eD,ContainerFlags:()=>dve,ContextFlags:()=>LB,Debug:()=>I,DiagnosticCategory:()=>mr,Diagnostics:()=>y,DocumentHighlights:()=>zU,ElementFlags:()=>II,EmitFlags:()=>dl,EmitHint:()=>mu,EmitOnly:()=>MB,EndOfLineState:()=>q1e,ExitStatus:()=>uF,ExportKind:()=>Rbe,Extension:()=>Ws,ExternalEmitHelpers:()=>Sc,FileIncludeKind:()=>AI,FilePreprocessingDiagnosticsKind:()=>FB,FileSystemEntryKind:()=>E_e,FileWatcherEventKind:()=>OP,FindAllReferences:()=>qc,FlattenLevel:()=>Rve,FlowFlags:()=>jO,ForegroundColorEscapeSequences:()=>w0e,FunctionFlags:()=>Mme,GeneratedIdentifierFlags:()=>NI,GetLiteralTextFlags:()=>Vde,GoToDefinition:()=>wA,HighlightSpanKind:()=>M1e,IdentifierNameMap:()=>ZN,ImportKind:()=>Mbe,ImportsNotUsedAsValues:()=>Si,IndentStyle:()=>R1e,IndexFlags:()=>$B,IndexKind:()=>ee,InferenceFlags:()=>Ze,InferencePriority:()=>Je,InlayHintKind:()=>F1e,InlayHints:()=>Kne,InternalEmitFlags:()=>so,InternalNodeBuilderFlags:()=>qB,InternalSymbolName:()=>_F,IntersectionFlags:()=>jB,InvalidatedProjectKind:()=>p1e,JSDocParsingMode:()=>dv,JsDoc:()=>aT,JsTyping:()=>Fx,JsxEmit:()=>$n,JsxFlags:()=>OI,JsxReferenceKind:()=>VB,LanguageFeatureMinimumTarget:()=>Us,LanguageServiceMode:()=>A1e,LanguageVariant:()=>va,LexicalEnvironmentFlags:()=>d_,ListFormat:()=>pg,LogLevel:()=>xI,MapCode:()=>Qne,MemberOverrideStatus:()=>pF,ModifierFlags:()=>RO,ModuleDetectionKind:()=>On,ModuleInstanceState:()=>fve,ModuleKind:()=>mn,ModuleResolutionKind:()=>Jr,ModuleSpecifierEnding:()=>Ige,NavigateTo:()=>sxe,NavigationBar:()=>cxe,NewLineKind:()=>ea,NodeBuilderFlags:()=>BB,NodeCheckFlags:()=>hS,NodeFactoryFlags:()=>che,NodeFlags:()=>oF,NodeResolutionFeatures:()=>rve,ObjectFlags:()=>Qb,OperationCanceledException:()=>DP,OperatorPrecedence:()=>Lme,OrganizeImports:()=>sT,OrganizeImportsMode:()=>pte,OuterExpressionKinds:()=>ac,OutliningElementsCollector:()=>Yne,OutliningSpanKind:()=>L1e,OutputFileType:()=>B1e,PackageJsonAutoImportPreference:()=>N1e,PackageJsonDependencyGroup:()=>O1e,PatternMatchKind:()=>wre,PollingInterval:()=>gv,PollingWatchKind:()=>Ba,PragmaKindFlags:()=>S1,PredicateSemantics:()=>NB,PreparePasteEdits:()=>_ie,PrivateIdentifierKind:()=>yhe,ProcessLevel:()=>qve,ProgramUpdateLevel:()=>v0e,QuotePreference:()=>fbe,RegularExpressionFlags:()=>AB,RelationComparisonResult:()=>cF,Rename:()=>k$,ScriptElementKind:()=>z1e,ScriptElementKindModifier:()=>W1e,ScriptKind:()=>zi,ScriptSnapshot:()=>eU,ScriptTarget:()=>Hi,SemanticClassificationFormat:()=>I1e,SemanticMeaning:()=>$1e,SemicolonPreference:()=>_te,SignatureCheckMode:()=>PZ,SignatureFlags:()=>Z,SignatureHelp:()=>ZR,SignatureInfo:()=>I0e,SignatureKind:()=>HB,SmartSelectionRange:()=>tie,SnippetKind:()=>ic,StatisticType:()=>b1e,StructureIsReused:()=>LO,SymbolAccessibility:()=>BO,SymbolDisplay:()=>$1,SymbolDisplayPartKind:()=>rU,SymbolFlags:()=>fF,SymbolFormatFlags:()=>zB,SyntaxKind:()=>sF,Ternary:()=>bt,ThrottledCancellationToken:()=>gSe,TokenClass:()=>J1e,TokenFlags:()=>lF,TransformFlags:()=>ws,TypeFacts:()=>kZ,TypeFlags:()=>JO,TypeFormatFlags:()=>JB,TypeMapKind:()=>Ce,TypePredicateKind:()=>Kb,TypeReferenceSerializationKind:()=>WB,UnionReduction:()=>RB,UpToDateStatusType:()=>i1e,VarianceFlags:()=>yS,Version:()=>F_,VersionRange:()=>TI,WatchDirectoryFlags:()=>Li,WatchDirectoryKind:()=>Ni,WatchFileKind:()=>fn,WatchLogLevel:()=>x0e,WatchType:()=>ep,accessPrivateIdentifier:()=>Mve,addEmitFlags:()=>Mh,addEmitHelper:()=>gE,addEmitHelpers:()=>Rv,addInternalEmitFlags:()=>jk,addNodeFactoryPatcher:()=>Sje,addObjectAllocatorPatcher:()=>oje,addRange:()=>ti,addRelatedInfo:()=>Hs,addSyntheticLeadingComment:()=>F2,addSyntheticTrailingComment:()=>$4,addToSeen:()=>Jm,advancedAsyncSuperHelper:()=>pz,affectsDeclarationPathOptionDeclarations:()=>kye,affectsEmitOptionDeclarations:()=>wye,allKeysStartWithDot:()=>aW,altDirectorySeparator:()=>QB,and:()=>b1,append:()=>Zr,appendIfUnique:()=>Mm,arrayFrom:()=>Ka,arrayIsEqualTo:()=>Rp,arrayIsHomogeneous:()=>Jge,arrayOf:()=>mI,arrayReverseIterator:()=>_I,arrayToMap:()=>ck,arrayToMultiMap:()=>Wb,arrayToNumericMap:()=>lk,assertType:()=>cK,assign:()=>y1,asyncSuperHelper:()=>uz,attachFileToDiagnostics:()=>oE,base64decode:()=>age,base64encode:()=>ige,binarySearch:()=>tm,binarySearchKey:()=>ko,bindSourceFile:()=>mve,breakIntoCharacterSpans:()=>Ybe,breakIntoWordSpans:()=>Zbe,buildLinkParts:()=>bbe,buildOpts:()=>kM,buildOverload:()=>cYe,bundlerModuleNameResolver:()=>nve,canBeConvertedToAsync:()=>Ore,canHaveDecorators:()=>U2,canHaveExportModifier:()=>K5,canHaveFlowNode:()=>pN,canHaveIllegalDecorators:()=>FY,canHaveIllegalModifiers:()=>iye,canHaveIllegalType:()=>Gje,canHaveIllegalTypeParameters:()=>nye,canHaveJSDoc:()=>h5,canHaveLocals:()=>Py,canHaveModifiers:()=>$m,canHaveModuleSpecifier:()=>Cme,canHaveSymbol:()=>qg,canIncludeBindAndCheckDiagnostics:()=>M4,canJsonReportNoInputFiles:()=>NM,canProduceDiagnostics:()=>JM,canUsePropertyAccess:()=>JX,canWatchAffectingLocation:()=>Q0e,canWatchAtTypes:()=>K0e,canWatchDirectoryOrFile:()=>Eee,canWatchDirectoryOrFilePath:()=>rR,cartesianProduct:()=>CP,cast:()=>Js,chainBundle:()=>Kg,chainDiagnosticMessages:()=>vs,changeAnyExtension:()=>mF,changeCompilerHostLikeToUseCache:()=>P3,changeExtension:()=>I0,changeFullExtension:()=>ZB,changesAffectModuleResolution:()=>Cq,changesAffectingProgramStructure:()=>Lde,characterCodeToRegularExpressionFlag:()=>TK,childIsDecorated:()=>s4,classElementOrClassElementParameterIsDecorated:()=>SQ,classHasClassThisAssignment:()=>zZ,classHasDeclaredOrExplicitlyAssignedName:()=>WZ,classHasExplicitlyAssignedName:()=>yW,classOrConstructorParameterIsDecorated:()=>P1,classicNameResolver:()=>uve,classifier:()=>bSe,cleanExtendedConfigCache:()=>wW,clear:()=>wa,clearMap:()=>h_,clearSharedExtendedConfigFileWatcher:()=>nee,climbPastPropertyAccess:()=>aU,clone:()=>hB,cloneCompilerOptions:()=>Ite,closeFileWatcher:()=>hg,closeFileWatcherOf:()=>ym,codefix:()=>rf,collapseTextChangeRangesAcrossMultipleVersions:()=>X_e,collectExternalModuleInfo:()=>LZ,combine:()=>n2,combinePaths:()=>gi,commandLineOptionOfCustomType:()=>Eye,commentPragmas:()=>fg,commonOptionsWithBuild:()=>Lz,compact:()=>PO,compareBooleans:()=>_v,compareDataObjects:()=>mX,compareDiagnostics:()=>E4,compareEmitHelpers:()=>bhe,compareNumberOfDirectorySeparators:()=>V5,comparePaths:()=>S0,comparePathsCaseInsensitive:()=>oRe,comparePathsCaseSensitive:()=>sRe,comparePatternKeys:()=>yZ,compareProperties:()=>pk,compareStringsCaseInsensitive:()=>xP,compareStringsCaseInsensitiveEslintCompatible:()=>au,compareStringsCaseSensitive:()=>fp,compareStringsCaseSensitiveUI:()=>DO,compareTextSpans:()=>$b,compareValues:()=>mc,compilerOptionsAffectDeclarationPath:()=>Pge,compilerOptionsAffectEmit:()=>Cge,compilerOptionsAffectSemanticDiagnostics:()=>kge,compilerOptionsDidYouMeanDiagnostics:()=>zz,compilerOptionsIndicateEsModules:()=>Bte,computeCommonSourceDirectoryOfFilenames:()=>S0e,computeLineAndCharacterOfPosition:()=>UO,computeLineOfPosition:()=>jI,computeLineStarts:()=>FP,computePositionOfLineAndCharacter:()=>nq,computeSignatureWithDiagnostics:()=>See,computeSuggestionDiagnostics:()=>Pre,computedOptions:()=>D4,concatenate:()=>ya,concatenateDiagnosticMessageChains:()=>yge,consumesNodeCoreModules:()=>IU,contains:()=>Ta,containsIgnoredPath:()=>L4,containsObjectRestOrSpread:()=>xM,containsParseError:()=>UP,containsPath:()=>am,convertCompilerOptionsForTelemetry:()=>Uye,convertCompilerOptionsFromJson:()=>r9e,convertJsonOption:()=>Xk,convertToBase64:()=>nge,convertToJson:()=>EM,convertToObject:()=>jye,convertToOptionsWithAbsolutePaths:()=>Vz,convertToRelativePath:()=>MI,convertToTSConfig:()=>tZ,convertTypeAcquisitionFromJson:()=>n9e,copyComments:()=>sC,copyEntries:()=>Pq,copyLeadingComments:()=>gA,copyProperties:()=>yP,copyTrailingAsLeadingComments:()=>wR,copyTrailingComments:()=>W3,couldStartTrivia:()=>j_e,countWhere:()=>Vu,createAbstractBuilder:()=>lqe,createAccessorPropertyBackingField:()=>jY,createAccessorPropertyGetRedirector:()=>fye,createAccessorPropertySetRedirector:()=>_ye,createBaseNodeFactory:()=>nhe,createBinaryExpressionTrampoline:()=>Iz,createBuilderProgram:()=>Tee,createBuilderProgramUsingIncrementalBuildInfo:()=>V0e,createBuilderStatusReporter:()=>VW,createCacheableExportInfoMap:()=>gre,createCachedDirectoryStructureHost:()=>SW,createClassifier:()=>qJe,createCommentDirectivesMap:()=>Ude,createCompilerDiagnostic:()=>ll,createCompilerDiagnosticForInvalidCustomType:()=>Dye,createCompilerDiagnosticFromMessageChain:()=>NJ,createCompilerHost:()=>T0e,createCompilerHostFromProgramHost:()=>Wee,createCompilerHostWorker:()=>kW,createDetachedDiagnostic:()=>sE,createDiagnosticCollection:()=>y4,createDiagnosticForFileFromMessageChain:()=>hQ,createDiagnosticForNode:()=>Mn,createDiagnosticForNodeArray:()=>nN,createDiagnosticForNodeArrayFromMessageChain:()=>HF,createDiagnosticForNodeFromMessageChain:()=>Cv,createDiagnosticForNodeInSourceFile:()=>om,createDiagnosticForRange:()=>ime,createDiagnosticMessageChainFromDiagnostic:()=>nme,createDiagnosticReporter:()=>JE,createDocumentPositionMapper:()=>Ove,createDocumentRegistry:()=>Jbe,createDocumentRegistryInternal:()=>xre,createEmitAndSemanticDiagnosticsBuilderProgram:()=>Pee,createEmitHelperFactory:()=>vhe,createEmptyExports:()=>_M,createEvaluator:()=>Xge,createExpressionForJsxElement:()=>Xhe,createExpressionForJsxFragment:()=>Yhe,createExpressionForObjectLiteralElementLike:()=>Zhe,createExpressionForPropertyName:()=>EY,createExpressionFromEntityName:()=>dM,createExternalHelpersImportDeclarationIfNeeded:()=>NY,createFileDiagnostic:()=>Eu,createFileDiagnosticFromMessageChain:()=>jq,createFlowNode:()=>Ry,createForOfBindingStatement:()=>PY,createFutureSourceFile:()=>BU,createGetCanonicalFileName:()=>Xu,createGetIsolatedDeclarationErrors:()=>l0e,createGetSourceFile:()=>cee,createGetSymbolAccessibilityDiagnosticForNode:()=>GS,createGetSymbolAccessibilityDiagnosticForNodeName:()=>c0e,createGetSymbolWalker:()=>gve,createIncrementalCompilerHost:()=>$W,createIncrementalProgram:()=>n1e,createJsxFactoryExpression:()=>CY,createLanguageService:()=>hSe,createLanguageServiceSourceFile:()=>i$,createMemberAccessForPropertyName:()=>Kk,createModeAwareCache:()=>GN,createModeAwareCacheKey:()=>_3,createModeMismatchDetails:()=>tQ,createModuleNotFoundChain:()=>Dq,createModuleResolutionCache:()=>KN,createModuleResolutionLoader:()=>dee,createModuleResolutionLoaderUsingGlobalCache:()=>e1e,createModuleSpecifierResolutionHost:()=>YS,createMultiMap:()=>Zl,createNameResolver:()=>VX,createNodeConverters:()=>she,createNodeFactory:()=>Z5,createOptionNameMap:()=>qz,createOverload:()=>mie,createPackageJsonImportFilter:()=>hA,createPackageJsonInfo:()=>cre,createParenthesizerRules:()=>ihe,createPatternMatcher:()=>Vbe,createPrinter:()=>Ax,createPrinterWithDefaults:()=>h0e,createPrinterWithRemoveComments:()=>G2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>y0e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>ree,createProgram:()=>ZM,createProgramDiagnostics:()=>N0e,createProgramHost:()=>Uee,createPropertyNameNodeForIdentifierOrLiteral:()=>XJ,createQueue:()=>i2,createRange:()=>um,createRedirectedBuilderProgram:()=>Cee,createResolutionCache:()=>Oee,createRuntimeTypeSerializer:()=>$ve,createScanner:()=>bv,createSemanticDiagnosticsBuilderProgram:()=>cqe,createSet:()=>vP,createSolutionBuilder:()=>c1e,createSolutionBuilderHost:()=>s1e,createSolutionBuilderWithWatch:()=>l1e,createSolutionBuilderWithWatchHost:()=>o1e,createSortedArray:()=>pp,createSourceFile:()=>AE,createSourceMapGenerator:()=>kve,createSourceMapSource:()=>Cje,createSuperAccessVariableStatement:()=>bW,createSymbolTable:()=>Qs,createSymlinkCache:()=>kX,createSyntacticTypeNodeBuilder:()=>P1e,createSystemWatchFunctions:()=>D_e,createTextChange:()=>gR,createTextChangeFromStartLength:()=>yU,createTextChangeRange:()=>kF,createTextRangeFromNode:()=>Rte,createTextRangeFromSpan:()=>hU,createTextSpan:()=>Sp,createTextSpanFromBounds:()=>Ul,createTextSpanFromNode:()=>Lf,createTextSpanFromRange:()=>z1,createTextSpanFromStringLiteralLikeContent:()=>Mte,createTextWriter:()=>D5,createTokenRange:()=>uX,createTypeChecker:()=>Tve,createTypeReferenceDirectiveResolutionCache:()=>rW,createTypeReferenceResolutionLoader:()=>EW,createWatchCompilerHost:()=>vqe,createWatchCompilerHostOfConfigFile:()=>$ee,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Vee,createWatchFactory:()=>zee,createWatchHost:()=>Jee,createWatchProgram:()=>Hee,createWatchStatusReporter:()=>Nee,createWriteFileMeasuringIO:()=>lee,declarationNameToString:()=>Oc,decodeMappings:()=>MZ,decodedTextSpanIntersectsWith:()=>wF,deduplicate:()=>zb,defaultInitCompilerOptions:()=>GY,defaultMaximumTruncationLength:()=>ZI,diagnosticCategoryName:()=>hr,diagnosticToString:()=>ew,diagnosticsEqualityComparer:()=>AJ,directoryProbablyExists:()=>Wg,directorySeparator:()=>jc,displayPart:()=>b_,displayPartsToString:()=>jR,disposeEmitNodes:()=>tY,documentSpansEqual:()=>Vte,dumpTracingLegend:()=>MO,elementAt:()=>b0,elideNodes:()=>pye,emitDetachedComments:()=>Hme,emitFiles:()=>eee,emitFilesAndReportErrors:()=>JW,emitFilesAndReportErrorsAndGetExitStatus:()=>qee,emitModuleKindIsNonNodeESM:()=>z5,emitNewLineBeforeLeadingCommentOfPosition:()=>Vme,emitResolverSkipsTypeChecking:()=>ZZ,emitSkippedWithNoDiagnostics:()=>hee,emptyArray:()=>ce,emptyFileSystemEntries:()=>IX,emptyMap:()=>mt,emptyOptions:()=>Vm,endsWith:()=>bc,ensurePathIsNonModuleName:()=>_k,ensureScriptKind:()=>zJ,ensureTrailingDirectorySeparator:()=>ju,entityNameToString:()=>B_,enumerateInsertsAndDeletes:()=>o2,equalOwnProperties:()=>gB,equateStringsCaseInsensitive:()=>cg,equateStringsCaseSensitive:()=>fv,equateValues:()=>pv,escapeJsxAttributeString:()=>VQ,escapeLeadingUnderscores:()=>gl,escapeNonAsciiString:()=>uJ,escapeSnippetText:()=>I2,escapeString:()=>Ay,escapeTemplateSubstitution:()=>UQ,evaluatorResult:()=>Bu,every:()=>sn,exclusivelyPrefixedNodeCoreModules:()=>iz,executeCommandLine:()=>Yqe,expandPreOrPostfixIncrementOrDecrementExpression:()=>Ez,explainFiles:()=>Mee,explainIfFileIsRedirectAndImpliedFormat:()=>Ree,exportAssignmentIsAlias:()=>x5,expressionResultIsUnused:()=>Wge,extend:()=>gI,extensionFromPath:()=>I4,extensionIsTS:()=>HJ,extensionsNotSupportingExtensionlessResolution:()=>VJ,externalHelpersModuleNameText:()=>lx,factory:()=>j,fileExtensionIs:()=>il,fileExtensionIsOneOf:()=>Wl,fileIncludeReasonToDiagnostics:()=>Bee,fileShouldUseJavaScriptRequire:()=>mre,filter:()=>Cn,filterMutate:()=>__,filterSemanticDiagnostics:()=>AW,find:()=>Ir,findAncestor:()=>Br,findBestPatternMatch:()=>s2,findChildOfKind:()=>gc,findComputedPropertyNameCacheAssignment:()=>Fz,findConfigFile:()=>see,findConstructorDeclaration:()=>Y5,findContainingList:()=>uU,findDiagnosticForNode:()=>Abe,findFirstNonJsxWhitespaceToken:()=>Z1e,findIndex:()=>Va,findLast:()=>Ks,findLastIndex:()=>up,findListItemInfo:()=>Y1e,findModifier:()=>_A,findNextToken:()=>Y2,findPackageJson:()=>Nbe,findPackageJsons:()=>ore,findPrecedingMatchingToken:()=>mU,findPrecedingToken:()=>Ou,findSuperStatementIndexPath:()=>dW,findTokenOnLeftOfPosition:()=>R3,findUseStrictPrologue:()=>OY,first:()=>ho,firstDefined:()=>jr,firstDefinedIterator:()=>si,firstIterator:()=>U7,firstOrOnly:()=>pre,firstOrUndefined:()=>Yl,firstOrUndefinedIterator:()=>h1,fixupCompilerOptions:()=>Nre,flatMap:()=>li,flatMapIterator:()=>Xl,flatMapToMutable:()=>xl,flatten:()=>js,flattenCommaList:()=>dye,flattenDestructuringAssignment:()=>tC,flattenDestructuringBinding:()=>H2,flattenDiagnosticMessageText:()=>Uh,forEach:()=>Ge,forEachAncestor:()=>Bde,forEachAncestorDirectory:()=>RI,forEachAncestorDirectoryStoppingAtGlobalCache:()=>My,forEachChild:()=>xs,forEachChildRecursively:()=>NE,forEachDynamicImportOrRequireCall:()=>az,forEachEmittedFile:()=>KZ,forEachEnclosingBlockScopeContainer:()=>eme,forEachEntry:()=>Lu,forEachExternalModuleToImportFrom:()=>yre,forEachImportClauseDeclaration:()=>Pme,forEachKey:()=>wv,forEachLeadingCommentRange:()=>yF,forEachNameInAccessChainWalkingLeft:()=>_ge,forEachNameOfDefaultExport:()=>JU,forEachOptionsSyntaxByName:()=>YX,forEachProjectReference:()=>W4,forEachPropertyAssignment:()=>sN,forEachResolvedProjectReference:()=>QX,forEachReturnStatement:()=>_x,forEachRight:()=>_r,forEachTrailingCommentRange:()=>vF,forEachTsConfigPropArray:()=>YF,forEachUnique:()=>Gte,forEachYieldExpression:()=>cme,formatColorAndReset:()=>K2,formatDiagnostic:()=>uee,formatDiagnostics:()=>RBe,formatDiagnosticsWithColorAndContext:()=>P0e,formatGeneratedName:()=>WS,formatGeneratedNamePart:()=>UN,formatLocation:()=>pee,formatMessage:()=>cE,formatStringFromArgs:()=>Nv,formatting:()=>Su,generateDjb2Hash:()=>mv,generateTSConfig:()=>Bye,getAdjustedReferenceLocation:()=>Pte,getAdjustedRenameLocation:()=>fU,getAliasDeclarationFromName:()=>FQ,getAllAccessorDeclarations:()=>E2,getAllDecoratorsOfClass:()=>qZ,getAllDecoratorsOfClassElement:()=>gW,getAllJSDocTags:()=>uq,getAllJSDocTagsOfKind:()=>ORe,getAllKeys:()=>mB,getAllProjectOutputs:()=>xW,getAllSuperTypeNodes:()=>_4,getAllowImportingTsExtensions:()=>bge,getAllowJSCompilerOption:()=>bx,getAllowSyntheticDefaultImports:()=>lE,getAncestor:()=>DS,getAnyExtensionFromPath:()=>NP,getAreDeclarationMapsEnabled:()=>IJ,getAssignedExpandoInitializer:()=>HP,getAssignedName:()=>oq,getAssignmentDeclarationKind:()=>$l,getAssignmentDeclarationPropertyAccessKind:()=>p5,getAssignmentTargetKind:()=>dx,getAutomaticTypeDirectiveNames:()=>eW,getBaseFileName:()=>gu,getBinaryOperatorPrecedence:()=>C5,getBuildInfo:()=>tee,getBuildInfoFileVersionMap:()=>kee,getBuildInfoText:()=>m0e,getBuildOrderFromAnyBuildOrder:()=>iR,getBuilderCreationParameters:()=>RW,getBuilderFileEmit:()=>Ix,getCanonicalDiagnostic:()=>ame,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>w2,getClassLikeDeclarationOfSymbol:()=>A0,getCombinedLocalAndExportSymbolFlags:()=>bN,getCombinedModifierFlags:()=>bS,getCombinedNodeFlags:()=>w0,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>DK,getCommentRange:()=>Rh,getCommonSourceDirectory:()=>C3,getCommonSourceDirectoryOfConfig:()=>rC,getCompilerOptionValue:()=>RJ,getCompilerOptionsDiffValue:()=>Lye,getConditions:()=>Dx,getConfigFileParsingDiagnostics:()=>Q2,getConstantValue:()=>phe,getContainerFlags:()=>bZ,getContainerNode:()=>aC,getContainingClass:()=>dp,getContainingClassExcludingClassDecorators:()=>$q,getContainingClassStaticBlock:()=>gme,getContainingFunction:()=>Ed,getContainingFunctionDeclaration:()=>mme,getContainingFunctionOrClassStaticBlock:()=>Uq,getContainingNodeArray:()=>Uge,getContainingObjectLiteralElement:()=>LR,getContextualTypeFromParent:()=>PU,getContextualTypeFromParentOrAncestorTypeNode:()=>pU,getDeclarationDiagnostics:()=>u0e,getDeclarationEmitExtensionForPath:()=>_J,getDeclarationEmitOutputFilePath:()=>zme,getDeclarationEmitOutputFilePathWorker:()=>fJ,getDeclarationFileExtension:()=>Rz,getDeclarationFromName:()=>f4,getDeclarationModifierFlagsFromSymbol:()=>fm,getDeclarationOfKind:()=>Zc,getDeclarationsOfKind:()=>jde,getDeclaredExpandoInitializer:()=>l4,getDecorators:()=>tx,getDefaultCompilerOptions:()=>n$,getDefaultFormatCodeSettings:()=>tU,getDefaultLibFileName:()=>xF,getDefaultLibFilePath:()=>ySe,getDefaultLikeExportInfo:()=>qU,getDefaultLikeExportNameFromDeclaration:()=>fre,getDefaultResolutionModeForFileWorker:()=>NW,getDiagnosticText:()=>t_,getDiagnosticsWithinSpan:()=>Ibe,getDirectoryPath:()=>Ei,getDirectoryToWatchFailedLookupLocation:()=>Dee,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Y0e,getDocumentPositionMapper:()=>Cre,getDocumentSpansEqualityComparer:()=>Hte,getESModuleInterop:()=>Av,getEditsForFileRename:()=>Wbe,getEffectiveBaseTypeNode:()=>Dh,getEffectiveConstraintOfTypeParameter:()=>GO,getEffectiveContainerForJSDocTemplateTag:()=>nJ,getEffectiveImplementsTypeNodes:()=>_N,getEffectiveInitializer:()=>c5,getEffectiveJSDocHost:()=>ES,getEffectiveModifierFlags:()=>gf,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Xme,getEffectiveModifierFlagsNoCache:()=>Yme,getEffectiveReturnTypeNode:()=>dd,getEffectiveSetAccessorTypeAnnotationNode:()=>eX,getEffectiveTypeAnnotationNode:()=>hu,getEffectiveTypeParameterDeclarations:()=>nx,getEffectiveTypeRoots:()=>f3,getElementOrPropertyAccessArgumentExpressionOrName:()=>rJ,getElementOrPropertyAccessName:()=>P0,getElementsOfBindingOrAssignmentPattern:()=>WN,getEmitDeclarations:()=>y_,getEmitFlags:()=>Ao,getEmitHelpers:()=>rY,getEmitModuleDetectionKind:()=>xge,getEmitModuleFormatOfFileWorker:()=>O3,getEmitModuleKind:()=>hf,getEmitModuleResolutionKind:()=>Xp,getEmitScriptTarget:()=>Po,getEmitStandardClassFields:()=>TX,getEnclosingBlockScopeContainer:()=>Jg,getEnclosingContainer:()=>Rq,getEncodedSemanticClassifications:()=>vre,getEncodedSyntacticClassifications:()=>bre,getEndLinePosition:()=>zF,getEntityNameFromTypeNode:()=>t5,getEntrypointsFromPackageJsonInfo:()=>mZ,getErrorCountForSummary:()=>BW,getErrorSpanForNode:()=>Tk,getErrorSummaryText:()=>Iee,getEscapedTextOfIdentifierOrLiteral:()=>g4,getEscapedTextOfJsxAttributeName:()=>J4,getEscapedTextOfJsxNamespacedName:()=>_E,getExpandoInitializer:()=>CS,getExportAssignmentExpression:()=>MQ,getExportInfoMap:()=>OR,getExportNeedsImportStarHelper:()=>Nve,getExpressionAssociativity:()=>zQ,getExpressionPrecedence:()=>h4,getExternalHelpersModuleName:()=>gM,getExternalModuleImportEqualsDeclarationExpression:()=>o4,getExternalModuleName:()=>KP,getExternalModuleNameFromDeclaration:()=>qme,getExternalModuleNameFromPath:()=>KQ,getExternalModuleNameLiteral:()=>OE,getExternalModuleRequireArgument:()=>wQ,getFallbackOptions:()=>QM,getFileEmitOutput:()=>A0e,getFileMatcherPatterns:()=>JJ,getFileNamesFromConfigSpecs:()=>u3,getFileWatcherEventKind:()=>mK,getFilesInErrorForSummary:()=>qW,getFirstConstructorWithBody:()=>Dv,getFirstIdentifier:()=>Af,getFirstNonSpaceCharacterPosition:()=>Tbe,getFirstProjectOutput:()=>YZ,getFixableErrorSpanExpression:()=>lre,getFormatCodeSettingsForWriting:()=>jU,getFullWidth:()=>qF,getFunctionFlags:()=>eu,getHeritageClause:()=>S5,getHostSignatureFromJSDoc:()=>PS,getIdentifierAutoGenerate:()=>Dje,getIdentifierGeneratedImportReference:()=>hhe,getIdentifierTypeArguments:()=>Lk,getImmediatelyInvokedFunctionExpression:()=>v2,getImpliedNodeFormatForEmitWorker:()=>nC,getImpliedNodeFormatForFile:()=>YM,getImpliedNodeFormatForFileWorker:()=>OW,getImportNeedsImportDefaultHelper:()=>jZ,getImportNeedsImportStarHelper:()=>fW,getIndentString:()=>pJ,getInferredLibraryNameResolveFrom:()=>DW,getInitializedVariables:()=>k4,getInitializerOfBinaryExpression:()=>EQ,getInitializerOfBindingOrAssignmentElement:()=>yM,getInterfaceBaseTypeNodes:()=>d4,getInternalEmitFlags:()=>mg,getInvokedExpression:()=>Gq,getIsFileExcluded:()=>Lbe,getIsolatedModules:()=>zm,getJSDocAugmentsTag:()=>ode,getJSDocClassTag:()=>AK,getJSDocCommentRanges:()=>vQ,getJSDocCommentsAndTags:()=>DQ,getJSDocDeprecatedTag:()=>IK,getJSDocDeprecatedTagNoCache:()=>dde,getJSDocEnumTag:()=>FK,getJSDocHost:()=>S2,getJSDocImplementsTags:()=>cde,getJSDocOverloadTags:()=>NQ,getJSDocOverrideTagNoCache:()=>_de,getJSDocParameterTags:()=>HO,getJSDocParameterTagsNoCache:()=>nde,getJSDocPrivateTag:()=>CRe,getJSDocPrivateTagNoCache:()=>ude,getJSDocProtectedTag:()=>PRe,getJSDocProtectedTagNoCache:()=>pde,getJSDocPublicTag:()=>kRe,getJSDocPublicTagNoCache:()=>lde,getJSDocReadonlyTag:()=>ERe,getJSDocReadonlyTagNoCache:()=>fde,getJSDocReturnTag:()=>mde,getJSDocReturnType:()=>PF,getJSDocRoot:()=>fN,getJSDocSatisfiesExpressionType:()=>WX,getJSDocSatisfiesTag:()=>MK,getJSDocTags:()=>SS,getJSDocTemplateTag:()=>DRe,getJSDocThisTag:()=>cq,getJSDocType:()=>rx,getJSDocTypeAliasName:()=>IY,getJSDocTypeAssertionType:()=>JN,getJSDocTypeParameterDeclarations:()=>yJ,getJSDocTypeParameterTags:()=>ide,getJSDocTypeParameterTagsNoCache:()=>ade,getJSDocTypeTag:()=>xS,getJSXImplicitImportBase:()=>W5,getJSXRuntimeImport:()=>LJ,getJSXTransformEnabled:()=>jJ,getKeyForCompilerOptions:()=>uZ,getLanguageVariant:()=>j5,getLastChild:()=>gX,getLeadingCommentRanges:()=>vv,getLeadingCommentRangesOfNode:()=>yQ,getLeftmostAccessExpression:()=>xN,getLeftmostExpression:()=>SN,getLibFileNameFromLibReference:()=>KX,getLibNameFromLibReference:()=>GX,getLibraryNameFromLibFileName:()=>mee,getLineAndCharacterOfPosition:()=>$s,getLineInfo:()=>FZ,getLineOfLocalPosition:()=>v4,getLineStartPositionForPosition:()=>Hm,getLineStarts:()=>hv,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>uge,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>lge,getLinesBetweenPositions:()=>LI,getLinesBetweenRangeEndAndRangeStart:()=>pX,getLinesBetweenRangeEndPositions:()=>aje,getLiteralText:()=>Hde,getLocalNameForExternalImport:()=>zN,getLocalSymbolForExportDefault:()=>T4,getLocaleSpecificMessage:()=>gs,getLocaleTimeString:()=>nR,getMappedContextSpan:()=>Kte,getMappedDocumentSpan:()=>wU,getMappedLocation:()=>q3,getMatchedFileSpec:()=>jee,getMatchedIncludeSpec:()=>Lee,getMeaningFromDeclaration:()=>nU,getMeaningFromLocation:()=>iC,getMembersOfDeclaration:()=>lme,getModeForFileReference:()=>E0e,getModeForResolutionAtIndex:()=>zBe,getModeForUsageLocation:()=>_ee,getModifiedTime:()=>l2,getModifiers:()=>u2,getModuleInstanceState:()=>j0,getModuleNameStringLiteralAt:()=>eR,getModuleSpecifierEndingPreference:()=>Fge,getModuleSpecifierResolverHost:()=>qte,getNameForExportedSymbol:()=>FU,getNameFromImportAttribute:()=>tz,getNameFromIndexInfo:()=>tme,getNameFromPropertyName:()=>yR,getNameOfAccessExpression:()=>yX,getNameOfCompilerOptionValue:()=>rZ,getNameOfDeclaration:()=>ls,getNameOfExpando:()=>kQ,getNameOfJSDocTypedef:()=>rde,getNameOfScriptTarget:()=>MJ,getNameOrArgument:()=>u5,getNameTable:()=>rne,getNamespaceDeclarationNode:()=>uN,getNewLineCharacter:()=>O1,getNewLineKind:()=>DR,getNewLineOrDefaultFromHost:()=>B0,getNewTargetContainer:()=>yme,getNextJSDocCommentLocation:()=>OQ,getNodeChildren:()=>wY,getNodeForGeneratedName:()=>bM,getNodeId:()=>Wo,getNodeKind:()=>X2,getNodeModifiers:()=>j3,getNodeModulePathParts:()=>YJ,getNonAssignedNameOfDeclaration:()=>sq,getNonAssignmentOperatorForCompoundAssignment:()=>b3,getNonAugmentationDeclaration:()=>pQ,getNonDecoratorTokenPosOfNode:()=>aQ,getNonIncrementalBuildInfoRoots:()=>H0e,getNonModifierTokenPosOfNode:()=>$de,getNormalizedAbsolutePath:()=>Qa,getNormalizedAbsolutePathWithoutRoot:()=>vK,getNormalizedPathComponents:()=>YB,getObjectFlags:()=>oi,getOperatorAssociativity:()=>WQ,getOperatorPrecedence:()=>k5,getOptionFromName:()=>QY,getOptionsForLibraryResolution:()=>pZ,getOptionsNameMap:()=>VN,getOptionsSyntaxByArrayElementValue:()=>XX,getOptionsSyntaxByValue:()=>rhe,getOrCreateEmitNode:()=>qp,getOrUpdate:()=>A_,getOriginalNode:()=>al,getOriginalNodeId:()=>jf,getOutputDeclarationFileName:()=>tA,getOutputDeclarationFileNameWorker:()=>QZ,getOutputExtension:()=>HM,getOutputFileNames:()=>FBe,getOutputJSFileNameWorker:()=>XZ,getOutputPathsFor:()=>k3,getOwnEmitOutputFilePath:()=>Jme,getOwnKeys:()=>rm,getOwnValues:()=>_S,getPackageJsonTypesVersionsPaths:()=>Zz,getPackageNameFromTypesPackageName:()=>g3,getPackageScopeForPath:()=>m3,getParameterSymbolFromJSDoc:()=>y5,getParentNodeInSpan:()=>bR,getParseTreeNode:()=>ds,getParsedCommandLineOfConfigFile:()=>CM,getPathComponents:()=>jp,getPathFromPathComponents:()=>vS,getPathUpdater:()=>Tre,getPathsBasePath:()=>dJ,getPatternFromSpec:()=>EX,getPendingEmitKindWithSeen:()=>MW,getPositionOfLineAndCharacter:()=>gF,getPossibleGenericSignatures:()=>Dte,getPossibleOriginalInputExtensionForExtension:()=>QQ,getPossibleOriginalInputPathWithoutChangingExt:()=>XQ,getPossibleTypeArgumentsInfo:()=>Ote,getPreEmitDiagnostics:()=>MBe,getPrecedingNonSpaceCharacterPosition:()=>kU,getPrivateIdentifier:()=>JZ,getProperties:()=>BZ,getProperty:()=>As,getPropertyAssignmentAliasLikeExpression:()=>Fme,getPropertyNameForPropertyNameNode:()=>Nk,getPropertyNameFromType:()=>dm,getPropertyNameOfBindingOrAssignmentElement:()=>AY,getPropertySymbolFromBindingElement:()=>TU,getPropertySymbolsFromContextualType:()=>a$,getQuoteFromPreference:()=>zte,getQuotePreference:()=>H_,getRangesWhere:()=>gP,getRefactorContextSpan:()=>$E,getReferencedFileLocation:()=>D3,getRegexFromPattern:()=>N1,getRegularExpressionForWildcard:()=>O4,getRegularExpressionsForWildcards:()=>BJ,getRelativePathFromDirectory:()=>Pd,getRelativePathFromFile:()=>WO,getRelativePathToDirectoryOrUrl:()=>IP,getRenameLocation:()=>TR,getReplacementSpanForContextToken:()=>Fte,getResolutionDiagnostic:()=>vee,getResolutionModeOverride:()=>rA,getResolveJsonModule:()=>O2,getResolvePackageJsonExports:()=>B5,getResolvePackageJsonImports:()=>q5,getResolvedExternalModuleName:()=>GQ,getResolvedModuleFromResolution:()=>WP,getResolvedTypeReferenceDirectiveFromResolution:()=>Eq,getRestIndicatorOfBindingOrAssignmentElement:()=>Nz,getRestParameterElementType:()=>bQ,getRightMostAssignedExpression:()=>l5,getRootDeclaration:()=>Nh,getRootDirectoryOfResolutionCache:()=>Z0e,getRootLength:()=>Lg,getScriptKind:()=>Zte,getScriptKindFromFileName:()=>WJ,getScriptTargetFeatures:()=>sQ,getSelectedEffectiveModifierFlags:()=>tE,getSelectedSyntacticModifierFlags:()=>Kme,getSemanticClassifications:()=>Bbe,getSemanticJsxChildren:()=>mN,getSetAccessorTypeAnnotationNode:()=>Ume,getSetAccessorValueParameter:()=>b4,getSetExternalModuleIndicator:()=>L5,getShebang:()=>iq,getSingleVariableOfVariableStatement:()=>YP,getSnapshotText:()=>UE,getSnippetElement:()=>nY,getSourceFileOfModule:()=>JF,getSourceFileOfNode:()=>rn,getSourceFilePathInNewDir:()=>gJ,getSourceFileVersionAsHashFromText:()=>zW,getSourceFilesToEmit:()=>mJ,getSourceMapRange:()=>I1,getSourceMapper:()=>txe,getSourceTextOfNodeFromSourceFile:()=>m2,getSpanOfTokenAtPosition:()=>Ch,getSpellingSuggestion:()=>x0,getStartPositionOfLine:()=>ux,getStartPositionOfRange:()=>w4,getStartsOnNewLine:()=>U4,getStaticPropertiesAndClassStaticBlock:()=>mW,getStrictOptionValue:()=>Bp,getStringComparer:()=>uk,getSubPatternFromSpec:()=>qJ,getSuperCallFromStatement:()=>_W,getSuperContainer:()=>ZF,getSupportedCodeFixes:()=>ene,getSupportedExtensions:()=>N4,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>$5,getSwitchedType:()=>ire,getSymbolId:()=>co,getSymbolNameForPrivateIdentifier:()=>T5,getSymbolTarget:()=>ere,getSyntacticClassifications:()=>qbe,getSyntacticModifierFlags:()=>E1,getSyntacticModifierFlagsNoCache:()=>nX,getSynthesizedDeepClone:()=>tc,getSynthesizedDeepCloneWithReplacements:()=>SR,getSynthesizedDeepClones:()=>Z2,getSynthesizedDeepClonesWithReplacements:()=>tre,getSyntheticLeadingComments:()=>EN,getSyntheticTrailingComments:()=>nM,getTargetLabel:()=>sU,getTargetOfBindingOrAssignmentElement:()=>Px,getTemporaryModuleResolutionState:()=>d3,getTextOfConstantValue:()=>Gde,getTextOfIdentifierOrLiteral:()=>lm,getTextOfJSDocComment:()=>EF,getTextOfJsxAttributeName:()=>X5,getTextOfJsxNamespacedName:()=>z4,getTextOfNode:()=>cl,getTextOfNodeFromSourceText:()=>t4,getTextOfPropertyName:()=>VP,getThisContainer:()=>mf,getThisParameter:()=>C2,getTokenAtPosition:()=>ca,getTokenPosOfNode:()=>px,getTokenSourceMapRange:()=>Pje,getTouchingPropertyName:()=>r_,getTouchingToken:()=>pA,getTrailingCommentRanges:()=>ex,getTrailingSemicolonDeferringWriter:()=>HQ,getTransformers:()=>f0e,getTsBuildInfoEmitOutputFilePath:()=>KS,getTsConfigObjectLiteralExpression:()=>a4,getTsConfigPropArrayElementValue:()=>Wq,getTypeAnnotationNode:()=>$me,getTypeArgumentOrTypeParameterList:()=>sbe,getTypeKeywordOfTypeOnlyImport:()=>$te,getTypeNode:()=>mhe,getTypeNodeIfAccessible:()=>$3,getTypeParameterFromJsDoc:()=>Eme,getTypeParameterOwner:()=>xRe,getTypesPackageName:()=>sW,getUILocale:()=>SP,getUniqueName:()=>oC,getUniqueSymbolId:()=>Sbe,getUseDefineForClassFields:()=>J5,getWatchErrorSummaryDiagnosticMessage:()=>Aee,getWatchFactory:()=>aee,group:()=>dS,groupBy:()=>$7,guessIndentation:()=>Mde,handleNoEmitOptions:()=>yee,handleWatchOptionsConfigDirTemplateSubstitution:()=>Hz,hasAbstractModifier:()=>D2,hasAccessorModifier:()=>Ah,hasAmbientModifier:()=>rX,hasChangesInResolutions:()=>rQ,hasContextSensitiveParameters:()=>QJ,hasDecorators:()=>Od,hasDocComment:()=>ibe,hasDynamicName:()=>E0,hasEffectiveModifier:()=>z_,hasEffectiveModifiers:()=>tX,hasEffectiveReadonlyModifier:()=>Ik,hasExtension:()=>zO,hasImplementationTSFileExtension:()=>Age,hasIndexSignature:()=>nre,hasInferredType:()=>nz,hasInitializer:()=>k1,hasInvalidEscape:()=>$Q,hasJSDocNodes:()=>fd,hasJSDocParameterTags:()=>sde,hasJSFileExtension:()=>Iv,hasJsonModuleEmitEnabled:()=>FJ,hasOnlyExpressionInitializer:()=>xk,hasOverrideModifier:()=>vJ,hasPossibleExternalModuleReference:()=>Zde,hasProperty:()=>ec,hasPropertyAccessExpressionWithName:()=>uR,hasQuestionToken:()=>QP,hasRecordedExternalHelpers:()=>rye,hasResolutionModeOverride:()=>Kge,hasRestParameter:()=>XK,hasScopeMarker:()=>Cde,hasStaticModifier:()=>Pu,hasSyntacticModifier:()=>Ai,hasSyntacticModifiers:()=>Gme,hasTSFileExtension:()=>Mk,hasTabstop:()=>Vge,hasTrailingDirectorySeparator:()=>Yb,hasType:()=>Tq,hasTypeArguments:()=>KRe,hasZeroOrOneAsteriskCharacter:()=>wX,hostGetCanonicalFileName:()=>D0,hostUsesCaseSensitiveFileNames:()=>Ak,idText:()=>fi,identifierIsThisKeyword:()=>ZQ,identifierToKeywordKind:()=>mk,identity:()=>vc,identitySourceMapConsumer:()=>RZ,ignoreSourceNewlines:()=>aY,ignoredPaths:()=>KB,importFromModuleSpecifier:()=>u4,importSyntaxAffectsModuleResolution:()=>SX,indexOfAnyCharCode:()=>f_,indexOfNode:()=>tN,indicesOf:()=>pI,inferredTypesContainingFile:()=>E3,injectClassNamedEvaluationHelperBlockIfMissing:()=>vW,injectClassThisAssignmentIfMissing:()=>Bve,insertImports:()=>Ute,insertSorted:()=>Mg,insertStatementAfterCustomPrologue:()=>Sk,insertStatementAfterStandardPrologue:()=>zRe,insertStatementsAfterCustomPrologue:()=>nQ,insertStatementsAfterStandardPrologue:()=>kv,intersperse:()=>ns,intrinsicTagNameToString:()=>UX,introducesArgumentsExoticObject:()=>fme,inverseJsxOptionMap:()=>wM,isAbstractConstructorSymbol:()=>pge,isAbstractModifier:()=>Phe,isAccessExpression:()=>Lc,isAccessibilityModifier:()=>Ate,isAccessor:()=>ox,isAccessorModifier:()=>Dhe,isAliasableExpression:()=>iJ,isAmbientModule:()=>df,isAmbientPropertyDeclaration:()=>_Q,isAnyDirectorySeparator:()=>gK,isAnyImportOrBareOrAccessedRequire:()=>Xde,isAnyImportOrReExport:()=>$F,isAnyImportOrRequireStatement:()=>Yde,isAnyImportSyntax:()=>$P,isAnySupportedFileExtension:()=>vje,isApplicableVersionedTypesKey:()=>FM,isArgumentExpressionOfElementAccess:()=>xte,isArray:()=>cs,isArrayBindingElement:()=>hq,isArrayBindingOrAssignmentElement:()=>FF,isArrayBindingOrAssignmentPattern:()=>$K,isArrayBindingPattern:()=>j1,isArrayLiteralExpression:()=>kp,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>J1,isArrayTypeNode:()=>cM,isArrowFunction:()=>Bc,isAsExpression:()=>AN,isAssertClause:()=>Rhe,isAssertEntry:()=>Lje,isAssertionExpression:()=>d2,isAssertsKeyword:()=>khe,isAssignmentDeclaration:()=>c4,isAssignmentExpression:()=>Yu,isAssignmentOperator:()=>O0,isAssignmentPattern:()=>XI,isAssignmentTarget:()=>mx,isAsteriskToken:()=>aM,isAsyncFunction:()=>m4,isAsyncModifier:()=>G4,isAutoAccessorPropertyDeclaration:()=>Kf,isAwaitExpression:()=>kx,isAwaitKeyword:()=>uY,isBigIntLiteral:()=>H4,isBinaryExpression:()=>Vn,isBinaryLogicalOperator:()=>O5,isBinaryOperatorToken:()=>uye,isBindableObjectDefinePropertyCall:()=>Pk,isBindableStaticAccessExpression:()=>x2,isBindableStaticElementAccessExpression:()=>tJ,isBindableStaticNameExpression:()=>Ek,isBindingElement:()=>Do,isBindingElementOfBareOrAccessedRequire:()=>xme,isBindingName:()=>vk,isBindingOrAssignmentElement:()=>Sde,isBindingOrAssignmentPattern:()=>AF,isBindingPattern:()=>Os,isBlock:()=>Cs,isBlockLike:()=>VE,isBlockOrCatchScoped:()=>oQ,isBlockScope:()=>dQ,isBlockScopedContainerTopLevel:()=>Qde,isBooleanLiteral:()=>QI,isBreakOrContinueStatement:()=>VI,isBreakStatement:()=>Mje,isBuildCommand:()=>x1e,isBuildInfoFile:()=>_0e,isBuilderProgram:()=>Fee,isBundle:()=>qhe,isCallChain:()=>gk,isCallExpression:()=>Ls,isCallExpressionTarget:()=>mte,isCallLikeExpression:()=>_2,isCallLikeOrFunctionLikeExpression:()=>VK,isCallOrNewExpression:()=>wh,isCallOrNewExpressionTarget:()=>gte,isCallSignatureDeclaration:()=>xE,isCallToHelper:()=>V4,isCaseBlock:()=>t3,isCaseClause:()=>RN,isCaseKeyword:()=>Ohe,isCaseOrDefaultClause:()=>xq,isCatchClause:()=>z2,isCatchClauseVariableDeclaration:()=>$ge,isCatchClauseVariableDeclarationOrBindingElement:()=>cQ,isCheckJsEnabledForFile:()=>F4,isCircularBuildOrder:()=>zE,isClassDeclaration:()=>bu,isClassElement:()=>ou,isClassExpression:()=>vu,isClassInstanceProperty:()=>bde,isClassLike:()=>Ri,isClassMemberModifier:()=>zK,isClassNamedEvaluationHelperBlock:()=>BE,isClassOrTypeElement:()=>gq,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>S3,isColonToken:()=>The,isCommaExpression:()=>mM,isCommaListExpression:()=>Z4,isCommaSequence:()=>s3,isCommaToken:()=>She,isComment:()=>gU,isCommonJsExportPropertyAssignment:()=>Jq,isCommonJsExportedExpression:()=>ume,isCompoundAssignment:()=>v3,isComputedNonLiteralName:()=>VF,isComputedPropertyName:()=>po,isConciseBody:()=>vq,isConditionalExpression:()=>Wk,isConditionalTypeNode:()=>R2,isConstAssertion:()=>$X,isConstTypeReference:()=>_g,isConstructSignatureDeclaration:()=>oM,isConstructorDeclaration:()=>ul,isConstructorTypeNode:()=>DN,isContextualKeyword:()=>sJ,isContinueStatement:()=>Fje,isCustomPrologue:()=>XF,isDebuggerStatement:()=>Rje,isDeclaration:()=>Ku,isDeclarationBindingElement:()=>NF,isDeclarationFileName:()=>Wu,isDeclarationName:()=>Ny,isDeclarationNameOfEnumOrNamespace:()=>_X,isDeclarationReadonly:()=>GF,isDeclarationStatement:()=>Ode,isDeclarationWithTypeParameterChildren:()=>gQ,isDeclarationWithTypeParameters:()=>mQ,isDecorator:()=>qu,isDecoratorTarget:()=>H1e,isDefaultClause:()=>r3,isDefaultImport:()=>Dk,isDefaultModifier:()=>mz,isDefaultedExpandoInitializer:()=>Sme,isDeleteExpression:()=>Ahe,isDeleteTarget:()=>IQ,isDeprecatedDeclaration:()=>MU,isDestructuringAssignment:()=>D1,isDiskPathRoot:()=>hK,isDoStatement:()=>Ije,isDocumentRegistryEntry:()=>NR,isDotDotDotToken:()=>_z,isDottedName:()=>A5,isDynamicName:()=>cJ,isEffectiveExternalModule:()=>rN,isEffectiveStrictModeSourceFile:()=>fQ,isElementAccessChain:()=>RK,isElementAccessExpression:()=>Nc,isEmittedFileOfProgram:()=>b0e,isEmptyArrayLiteral:()=>rge,isEmptyBindingElement:()=>Z_e,isEmptyBindingPattern:()=>Y_e,isEmptyObjectLiteral:()=>cX,isEmptyStatement:()=>_Y,isEmptyStringLiteral:()=>TQ,isEntityName:()=>Of,isEntityNameExpression:()=>Tc,isEnumConst:()=>wS,isEnumDeclaration:()=>B2,isEnumMember:()=>L1,isEqualityOperatorKind:()=>EU,isEqualsGreaterThanToken:()=>whe,isExclamationToken:()=>sM,isExcludedFile:()=>Jye,isExclusivelyTypeOnlyImportOrExport:()=>fee,isExpandoPropertyDeclaration:()=>dE,isExportAssignment:()=>Gc,isExportDeclaration:()=>tu,isExportModifier:()=>vE,isExportName:()=>Dz,isExportNamespaceAsDefaultDeclaration:()=>Iq,isExportOrDefaultModifier:()=>vM,isExportSpecifier:()=>Yp,isExportsIdentifier:()=>Ck,isExportsOrModuleExportsOrAlias:()=>$2,isExpression:()=>At,isExpressionNode:()=>zg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Q1e,isExpressionOfOptionalChainRoot:()=>fq,isExpressionStatement:()=>Zu,isExpressionWithTypeArguments:()=>F0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>xJ,isExternalModule:()=>Du,isExternalModuleAugmentation:()=>h2,isExternalModuleImportEqualsDeclaration:()=>kS,isExternalModuleIndicator:()=>RF,isExternalModuleNameRelative:()=>Hu,isExternalModuleReference:()=>M0,isExternalModuleSymbol:()=>JP,isExternalOrCommonJsModule:()=>q_,isFileLevelReservedGeneratedIdentifier:()=>OF,isFileLevelUniqueName:()=>Nq,isFileProbablyExternalModule:()=>SM,isFirstDeclarationOfSymbolParameter:()=>Qte,isFixablePromiseHandler:()=>Dre,isForInOrOfStatement:()=>bk,isForInStatement:()=>bz,isForInitializer:()=>sm,isForOfStatement:()=>uM,isForStatement:()=>BS,isFullSourceFile:()=>Pv,isFunctionBlock:()=>y2,isFunctionBody:()=>GK,isFunctionDeclaration:()=>jl,isFunctionExpression:()=>Ic,isFunctionExpressionOrArrowFunction:()=>xx,isFunctionLike:()=>Ss,isFunctionLikeDeclaration:()=>Dc,isFunctionLikeKind:()=>jP,isFunctionLikeOrClassStaticBlockDeclaration:()=>XO,isFunctionOrConstructorTypeNode:()=>xde,isFunctionOrModuleBlock:()=>WK,isFunctionSymbol:()=>kme,isFunctionTypeNode:()=>Iy,isGeneratedIdentifier:()=>Xc,isGeneratedPrivateIdentifier:()=>yk,isGetAccessor:()=>Sv,isGetAccessorDeclaration:()=>mm,isGetOrSetAccessorDeclaration:()=>DF,isGlobalScopeAugmentation:()=>Oy,isGlobalSourceFile:()=>C1,isGrammarError:()=>Wde,isHeritageClause:()=>U_,isHoistedFunction:()=>Bq,isHoistedVariableStatement:()=>qq,isIdentifier:()=>Ye,isIdentifierANonContextualKeyword:()=>LQ,isIdentifierName:()=>Ime,isIdentifierOrThisTypeNode:()=>sye,isIdentifierPart:()=>T0,isIdentifierStart:()=>Cy,isIdentifierText:()=>m_,isIdentifierTypePredicate:()=>_me,isIdentifierTypeReference:()=>qge,isIfStatement:()=>LS,isIgnoredFileFromWildCardWatching:()=>KM,isImplicitGlob:()=>PX,isImportAttribute:()=>jhe,isImportAttributeName:()=>vde,isImportAttributes:()=>$k,isImportCall:()=>_d,isImportClause:()=>vg,isImportDeclaration:()=>sl,isImportEqualsDeclaration:()=>zu,isImportKeyword:()=>Q4,isImportMeta:()=>aN,isImportOrExportSpecifier:()=>ax,isImportOrExportSpecifierName:()=>xbe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>jje,isImportTypeNode:()=>jh,isImportable:()=>hre,isInComment:()=>q1,isInCompoundLikeAssignment:()=>AQ,isInExpressionContext:()=>Kq,isInJSDoc:()=>i5,isInJSFile:()=>jn,isInJSXText:()=>nbe,isInJsonFile:()=>Xq,isInNonReferenceComment:()=>lbe,isInReferenceComment:()=>cbe,isInRightSideOfInternalImportEqualsDeclaration:()=>iU,isInString:()=>WE,isInTemplateString:()=>Ete,isInTopLevelContext:()=>Vq,isInTypeQuery:()=>eE,isIncrementalBuildInfo:()=>tR,isIncrementalBundleEmitBuildInfo:()=>J0e,isIncrementalCompilation:()=>N2,isIndexSignatureDeclaration:()=>wx,isIndexedAccessTypeNode:()=>j2,isInferTypeNode:()=>qk,isInfinityOrNaNString:()=>B4,isInitializedProperty:()=>BM,isInitializedVariable:()=>R5,isInsideJsxElement:()=>dU,isInsideJsxElementOrAttribute:()=>rbe,isInsideNodeModules:()=>CR,isInsideTemplateLiteral:()=>mR,isInstanceOfExpression:()=>SJ,isInstantiatedModule:()=>DZ,isInterfaceDeclaration:()=>Cp,isInternalDeclaration:()=>Rde,isInternalModuleImportEqualsDeclaration:()=>kk,isInternalName:()=>DY,isIntersectionTypeNode:()=>wE,isIntrinsicJsxName:()=>gN,isIterationStatement:()=>cx,isJSDoc:()=>Gg,isJSDocAllType:()=>Whe,isJSDocAugmentsTag:()=>DE,isJSDocAuthorTag:()=>zje,isJSDocCallbackTag:()=>hY,isJSDocClassTag:()=>$he,isJSDocCommentContainingNode:()=>Sq,isJSDocConstructSignature:()=>XP,isJSDocDeprecatedTag:()=>SY,isJSDocEnumTag:()=>fM,isJSDocFunctionType:()=>LN,isJSDocImplementsTag:()=>Cz,isJSDocImportTag:()=>zh,isJSDocIndexSignature:()=>Zq,isJSDocLikeText:()=>LY,isJSDocLink:()=>Jhe,isJSDocLinkCode:()=>zhe,isJSDocLinkLike:()=>qP,isJSDocLinkPlain:()=>qje,isJSDocMemberName:()=>zS,isJSDocNameReference:()=>n3,isJSDocNamepathType:()=>Jje,isJSDocNamespaceBody:()=>MRe,isJSDocNode:()=>YO,isJSDocNonNullableType:()=>Sz,isJSDocNullableType:()=>jN,isJSDocOptionalParameter:()=>ZJ,isJSDocOptionalType:()=>gY,isJSDocOverloadTag:()=>BN,isJSDocOverrideTag:()=>wz,isJSDocParameterTag:()=>Ad,isJSDocPrivateTag:()=>vY,isJSDocPropertyLikeTag:()=>HI,isJSDocPropertyTag:()=>Vhe,isJSDocProtectedTag:()=>bY,isJSDocPublicTag:()=>yY,isJSDocReadonlyTag:()=>xY,isJSDocReturnTag:()=>kz,isJSDocSatisfiesExpression:()=>zX,isJSDocSatisfiesTag:()=>Pz,isJSDocSeeTag:()=>Wje,isJSDocSignature:()=>B1,isJSDocTag:()=>ZO,isJSDocTemplateTag:()=>Um,isJSDocThisTag:()=>TY,isJSDocThrowsTag:()=>$je,isJSDocTypeAlias:()=>Bm,isJSDocTypeAssertion:()=>W2,isJSDocTypeExpression:()=>JS,isJSDocTypeLiteral:()=>Hk,isJSDocTypeTag:()=>i3,isJSDocTypedefTag:()=>Gk,isJSDocUnknownTag:()=>Uje,isJSDocUnknownType:()=>Uhe,isJSDocVariadicType:()=>Tz,isJSXTagName:()=>cN,isJsonEqual:()=>GJ,isJsonSourceFile:()=>cm,isJsxAttribute:()=>Jh,isJsxAttributeLike:()=>bq,isJsxAttributeName:()=>Gge,isJsxAttributes:()=>J2,isJsxCallLike:()=>Fde,isJsxChild:()=>BF,isJsxClosingElement:()=>q2,isJsxClosingFragment:()=>Bhe,isJsxElement:()=>qh,isJsxExpression:()=>MN,isJsxFragment:()=>qS,isJsxNamespacedName:()=>Hg,isJsxOpeningElement:()=>Vg,isJsxOpeningFragment:()=>bg,isJsxOpeningLikeElement:()=>Qp,isJsxOpeningLikeElementTagName:()=>G1e,isJsxSelfClosingElement:()=>Vk,isJsxSpreadAttribute:()=>EE,isJsxTagNameExpression:()=>YI,isJsxText:()=>hE,isJumpStatementTarget:()=>pR,isKeyword:()=>Yf,isKeywordOrPunctuation:()=>aJ,isKnownSymbol:()=>w5,isLabelName:()=>vte,isLabelOfLabeledStatement:()=>yte,isLabeledStatement:()=>Cx,isLateVisibilityPaintedStatement:()=>Mq,isLeftHandSideExpression:()=>Qf,isLet:()=>Lq,isLineBreak:()=>Gp,isLiteralComputedPropertyDeclarationName:()=>b5,isLiteralExpression:()=>hk,isLiteralExpressionOfObject:()=>qK,isLiteralImportTypeNode:()=>C0,isLiteralKind:()=>GI,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>oU,isLiteralTypeLiteral:()=>kde,isLiteralTypeNode:()=>R1,isLocalName:()=>R0,isLogicalOperator:()=>Zme,isLogicalOrCoalescingAssignmentExpression:()=>iX,isLogicalOrCoalescingAssignmentOperator:()=>x4,isLogicalOrCoalescingBinaryExpression:()=>N5,isLogicalOrCoalescingBinaryOperator:()=>bJ,isMappedTypeNode:()=>zk,isMemberName:()=>xv,isMetaProperty:()=>Y4,isMethodDeclaration:()=>wl,isMethodOrAccessor:()=>LP,isMethodSignature:()=>yg,isMinusToken:()=>lY,isMissingDeclaration:()=>Bje,isMissingPackageJsonInfo:()=>Zye,isModifier:()=>oo,isModifierKind:()=>sx,isModifierLike:()=>Yc,isModuleAugmentationExternal:()=>uQ,isModuleBlock:()=>Lh,isModuleBody:()=>Pde,isModuleDeclaration:()=>cu,isModuleExportName:()=>xz,isModuleExportsAccessExpression:()=>Ev,isModuleIdentifier:()=>CQ,isModuleName:()=>lye,isModuleOrEnumDeclaration:()=>jF,isModuleReference:()=>Ade,isModuleSpecifierLike:()=>SU,isModuleWithStringLiteralName:()=>Fq,isNameOfFunctionDeclaration:()=>Tte,isNameOfModuleDeclaration:()=>Ste,isNamedDeclaration:()=>Gu,isNamedEvaluation:()=>J_,isNamedEvaluationSource:()=>BQ,isNamedExportBindings:()=>LK,isNamedExports:()=>hm,isNamedImportBindings:()=>KK,isNamedImports:()=>Bh,isNamedImportsOrExports:()=>DJ,isNamedTupleMember:()=>ON,isNamespaceBody:()=>FRe,isNamespaceExport:()=>Fy,isNamespaceExportDeclaration:()=>pM,isNamespaceImport:()=>jv,isNamespaceReexportDeclaration:()=>bme,isNewExpression:()=>L2,isNewExpressionTarget:()=>F3,isNewScopeNode:()=>the,isNoSubstitutionTemplateLiteral:()=>Bk,isNodeArray:()=>p2,isNodeArrayMultiLine:()=>cge,isNodeDescendantOf:()=>T2,isNodeKind:()=>dq,isNodeLikeSystem:()=>Q7,isNodeModulesDirectory:()=>eq,isNodeWithPossibleHoistedDeclaration:()=>Nme,isNonContextualKeyword:()=>jQ,isNonGlobalAmbientModule:()=>lQ,isNonNullAccess:()=>Hge,isNonNullChain:()=>_q,isNonNullExpression:()=>CE,isNonStaticMethodOrAccessorWithPrivateName:()=>Ave,isNotEmittedStatement:()=>Lhe,isNullishCoalesce:()=>jK,isNumber:()=>nm,isNumericLiteral:()=>e_,isNumericLiteralName:()=>Mv,isObjectBindingElementWithoutPropertyName:()=>vR,isObjectBindingOrAssignmentElement:()=>IF,isObjectBindingOrAssignmentPattern:()=>UK,isObjectBindingPattern:()=>Nd,isObjectLiteralElement:()=>QK,isObjectLiteralElementLike:()=>k0,isObjectLiteralExpression:()=>So,isObjectLiteralMethod:()=>Lm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zq,isObjectTypeDeclaration:()=>aE,isOmittedExpression:()=>Ju,isOptionalChain:()=>Kp,isOptionalChainRoot:()=>UI,isOptionalDeclaration:()=>fE,isOptionalJSDocPropertyLikeTag:()=>Q5,isOptionalTypeNode:()=>gz,isOuterExpression:()=>Oz,isOutermostOptionalChain:()=>$I,isOverrideModifier:()=>Ehe,isPackageJsonInfo:()=>tW,isPackedArrayLiteral:()=>qX,isParameter:()=>Da,isParameterPropertyDeclaration:()=>L_,isParameterPropertyModifier:()=>KI,isParenthesizedExpression:()=>Mf,isParenthesizedTypeNode:()=>Jk,isParseTreeNode:()=>WI,isPartOfParameterDeclaration:()=>OS,isPartOfTypeNode:()=>Eh,isPartOfTypeOnlyImportOrExportDeclaration:()=>yde,isPartOfTypeQuery:()=>Qq,isPartiallyEmittedExpression:()=>Ihe,isPatternMatch:()=>fk,isPinnedComment:()=>Aq,isPlainJsFile:()=>e4,isPlusToken:()=>cY,isPossiblyTypeArgumentPosition:()=>dR,isPostfixUnaryExpression:()=>fY,isPrefixUnaryExpression:()=>jS,isPrimitiveLiteralValue:()=>rz,isPrivateIdentifier:()=>Ca,isPrivateIdentifierClassElementDeclaration:()=>_f,isPrivateIdentifierPropertyAccessExpression:()=>QO,isPrivateIdentifierSymbol:()=>Rme,isProgramUptoDate:()=>gee,isPrologueDirective:()=>Ph,isPropertyAccessChain:()=>pq,isPropertyAccessEntityNameExpression:()=>I5,isPropertyAccessExpression:()=>ai,isPropertyAccessOrQualifiedName:()=>MF,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Tde,isPropertyAssignment:()=>xu,isPropertyDeclaration:()=>is,isPropertyName:()=>su,isPropertyNameLiteral:()=>Oh,isPropertySignature:()=>vf,isPrototypeAccess:()=>yx,isPrototypePropertyAssignment:()=>f5,isPunctuation:()=>RQ,isPushOrUnshiftIdentifier:()=>qQ,isQualifiedName:()=>If,isQuestionDotToken:()=>dz,isQuestionOrExclamationToken:()=>aye,isQuestionOrPlusOrMinusToken:()=>cye,isQuestionToken:()=>Tx,isReadonlyKeyword:()=>Che,isReadonlyKeywordOrPlusOrMinusToken:()=>oye,isRecognizedTripleSlashComment:()=>iQ,isReferenceFileLocation:()=>nA,isReferencedFile:()=>QS,isRegularExpressionLiteral:()=>sY,isRequireCall:()=>Xf,isRequireVariableStatement:()=>s5,isRestParameter:()=>Ey,isRestTypeNode:()=>hz,isReturnStatement:()=>md,isReturnStatementWithFixablePromiseHandler:()=>WU,isRightSideOfAccessExpression:()=>oX,isRightSideOfInstanceofExpression:()=>tge,isRightSideOfPropertyAccess:()=>cA,isRightSideOfQualifiedName:()=>K1e,isRightSideOfQualifiedNameOrPropertyAccess:()=>S4,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>ege,isRootedDiskPath:()=>j_,isSameEntityName:()=>lN,isSatisfiesExpression:()=>IN,isSemicolonClassElement:()=>Fhe,isSetAccessor:()=>kh,isSetAccessorDeclaration:()=>v_,isShiftOperatorOrHigher:()=>MY,isShorthandAmbientModuleSymbol:()=>UF,isShorthandPropertyAssignment:()=>Jp,isSideEffectImport:()=>HX,isSignedNumericLiteral:()=>oJ,isSimpleCopiableExpression:()=>V2,isSimpleInlineableExpression:()=>Wh,isSimpleParameterList:()=>qM,isSingleOrDoubleQuote:()=>o5,isSolutionConfig:()=>aZ,isSourceElement:()=>Qge,isSourceFile:()=>ba,isSourceFileFromLibrary:()=>yA,isSourceFileJS:()=>Nf,isSourceFileNotJson:()=>Yq,isSourceMapping:()=>Dve,isSpecialPropertyDeclaration:()=>wme,isSpreadAssignment:()=>Lv,isSpreadElement:()=>gm,isStatement:()=>fa,isStatementButNotDeclaration:()=>LF,isStatementOrBlock:()=>Nde,isStatementWithLocals:()=>zde,isStatic:()=>Vs,isStaticModifier:()=>bE,isString:()=>Ua,isStringANonContextualKeyword:()=>ZP,isStringAndEmptyAnonymousObjectIntersection:()=>obe,isStringDoubleQuoted:()=>eJ,isStringLiteral:()=>vo,isStringLiteralLike:()=>Ho,isStringLiteralOrJsxExpression:()=>Ide,isStringLiteralOrTemplate:()=>Pbe,isStringOrNumericLiteralLike:()=>Dd,isStringOrRegularExpressionOrTemplateLiteral:()=>Nte,isStringTextContainingNode:()=>JK,isSuperCall:()=>wk,isSuperKeyword:()=>K4,isSuperProperty:()=>g_,isSupportedSourceFileName:()=>AX,isSwitchStatement:()=>e3,isSyntaxList:()=>qN,isSyntheticExpression:()=>Aje,isSyntheticReference:()=>PE,isTagName:()=>bte,isTaggedTemplateExpression:()=>RS,isTaggedTemplateTag:()=>V1e,isTemplateExpression:()=>vz,isTemplateHead:()=>yE,isTemplateLiteral:()=>BP,isTemplateLiteralKind:()=>ix,isTemplateLiteralToken:()=>gde,isTemplateLiteralTypeNode:()=>Nhe,isTemplateLiteralTypeSpan:()=>pY,isTemplateMiddle:()=>oY,isTemplateMiddleOrTemplateTail:()=>mq,isTemplateSpan:()=>FN,isTemplateTail:()=>fz,isTextWhiteSpaceLike:()=>_be,isThis:()=>lA,isThisContainerOrFunctionBlock:()=>hme,isThisIdentifier:()=>hx,isThisInTypeQuery:()=>P2,isThisInitializedDeclaration:()=>Hq,isThisInitializedObjectBindingExpression:()=>vme,isThisProperty:()=>e5,isThisTypeNode:()=>X4,isThisTypeParameter:()=>q4,isThisTypePredicate:()=>dme,isThrowStatement:()=>mY,isToken:()=>RP,isTokenKind:()=>BK,isTraceEnabled:()=>Ex,isTransientSymbol:()=>Tv,isTrivia:()=>dN,isTryStatement:()=>Uk,isTupleTypeNode:()=>TE,isTypeAlias:()=>g5,isTypeAliasDeclaration:()=>Wm,isTypeAssertionExpression:()=>yz,isTypeDeclaration:()=>pE,isTypeElement:()=>f2,isTypeKeyword:()=>L3,isTypeKeywordTokenOrIdentifier:()=>vU,isTypeLiteralNode:()=>Ff,isTypeNode:()=>Yi,isTypeNodeKind:()=>hX,isTypeOfExpression:()=>NN,isTypeOnlyExportDeclaration:()=>hde,isTypeOnlyImportDeclaration:()=>KO,isTypeOnlyImportOrExportDeclaration:()=>w1,isTypeOperatorNode:()=>MS,isTypeParameterDeclaration:()=>Hc,isTypePredicateNode:()=>SE,isTypeQueryNode:()=>M2,isTypeReferenceNode:()=>W_,isTypeReferenceType:()=>wq,isTypeUsableAsPropertyName:()=>_m,isUMDExportSymbol:()=>EJ,isUnaryExpression:()=>HK,isUnaryExpressionWithWrite:()=>wde,isUnicodeIdentifierStart:()=>rq,isUnionTypeNode:()=>M1,isUrl:()=>N_e,isValidBigIntString:()=>KJ,isValidESSymbolDeclaration:()=>pme,isValidTypeOnlyAliasUseSite:()=>AS,isValueSignatureDeclaration:()=>Ok,isVarAwaitUsing:()=>KF,isVarConst:()=>iN,isVarConstLike:()=>ome,isVarUsing:()=>QF,isVariableDeclaration:()=>Ui,isVariableDeclarationInVariableStatement:()=>i4,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>b2,isVariableDeclarationInitializedToRequire:()=>a5,isVariableDeclarationList:()=>mp,isVariableLike:()=>n4,isVariableStatement:()=>Rl,isVoidExpression:()=>kE,isWatchSet:()=>dX,isWhileStatement:()=>dY,isWhiteSpaceLike:()=>yv,isWhiteSpaceSingleLine:()=>Th,isWithStatement:()=>Mhe,isWriteAccess:()=>iE,isWriteOnlyAccess:()=>PJ,isYieldExpression:()=>lM,jsxModeNeedsExplicitImport:()=>dre,keywordPart:()=>G_,last:()=>ao,lastOrUndefined:()=>dc,length:()=>Re,libMap:()=>WY,libs:()=>jz,lineBreakPart:()=>mA,loadModuleFromGlobalCache:()=>pve,loadWithModeAwareCache:()=>XM,makeIdentifierFromModuleName:()=>Kde,makeImport:()=>Mx,makeStringLiteral:()=>B3,mangleScopedPackageName:()=>XN,map:()=>Dt,mapAllOrFail:()=>ku,mapDefined:()=>Bi,mapDefinedIterator:()=>pf,mapEntries:()=>ok,mapIterator:()=>ci,mapOneOrMany:()=>ure,mapToDisplayParts:()=>ZS,matchFiles:()=>DX,matchPatternOrExact:()=>FX,matchedText:()=>ky,matchesExclude:()=>Qz,matchesExcludeWorker:()=>Xz,maxBy:()=>hI,maybeBind:()=>Ra,maybeSetLocalizedDiagnosticMessages:()=>hge,memoize:()=>Cu,memoizeOne:()=>im,min:()=>bP,minAndMax:()=>jge,missingFileModifiedTime:()=>Hp,modifierToFlag:()=>rE,modifiersToFlags:()=>Ih,moduleExportNameIsDefault:()=>Dy,moduleExportNameTextEscaped:()=>g2,moduleExportNameTextUnescaped:()=>fx,moduleOptionDeclaration:()=>xye,moduleResolutionIsEqualTo:()=>qde,moduleResolutionNameAndModeGetter:()=>PW,moduleResolutionOptionDeclarations:()=>$Y,moduleResolutionSupportsPackageJsonExportsAndImports:()=>TN,moduleResolutionUsesNodeModules:()=>bU,moduleSpecifierToValidIdentifier:()=>ER,moduleSpecifiers:()=>L0,moduleSupportsImportAttributes:()=>wge,moduleSymbolToValidIdentifier:()=>PR,moveEmitHelpers:()=>_he,moveRangeEnd:()=>kJ,moveRangePastDecorators:()=>N0,moveRangePastModifiers:()=>Fh,moveRangePos:()=>NS,moveSyntheticComments:()=>uhe,mutateMap:()=>P4,mutateMapSkippingNewValues:()=>Ov,needsParentheses:()=>CU,needsScopeMarker:()=>yq,newCaseClauseTracker:()=>LU,newPrivateEnvironment:()=>Fve,noEmitNotification:()=>UM,noEmitSubstitution:()=>w3,noTransformers:()=>p0e,noTruncationMaximumTruncationLength:()=>ZK,nodeCanBeDecorated:()=>r5,nodeCoreModules:()=>PN,nodeHasName:()=>CF,nodeIsDecorated:()=>oN,nodeIsMissing:()=>Sl,nodeIsPresent:()=>jm,nodeIsSynthesized:()=>Pc,nodeModuleNameResolver:()=>ive,nodeModulesPathPart:()=>Bv,nodeNextJsonConfigResolver:()=>ave,nodeOrChildIsDecorated:()=>n5,nodeOverlapsWithStartEnd:()=>cU,nodePosToString:()=>LRe,nodeSeenTracker:()=>fA,nodeStartsNewLexicalEnvironment:()=>JQ,noop:()=>Ko,noopFileWatcher:()=>sA,normalizePath:()=>Zs,normalizeSlashes:()=>_p,normalizeSpans:()=>EK,not:()=>NO,notImplemented:()=>zs,notImplementedResolver:()=>g0e,nullNodeConverters:()=>ohe,nullParenthesizerRules:()=>ahe,nullTransformationContext:()=>VM,objectAllocator:()=>wp,operatorPart:()=>J3,optionDeclarations:()=>xg,optionMapToObject:()=>Uz,optionsAffectingProgramStructure:()=>Cye,optionsForBuild:()=>HY,optionsForWatch:()=>FE,optionsHaveChanges:()=>zP,or:()=>Df,orderedRemoveItem:()=>wP,orderedRemoveItemAt:()=>jg,packageIdToPackageName:()=>Oq,packageIdToString:()=>TS,parameterIsThisKeyword:()=>gx,parameterNamePart:()=>mbe,parseBaseNodeFactory:()=>mye,parseBigInt:()=>Bge,parseBuildCommand:()=>Fye,parseCommandLine:()=>Aye,parseCommandLineWorker:()=>KY,parseConfigFileTextToJson:()=>XY,parseConfigFileWithSystem:()=>t1e,parseConfigHostFromCompilerHostLike:()=>IW,parseCustomTypeOption:()=>Jz,parseIsolatedEntityName:()=>IE,parseIsolatedJSDocComment:()=>hye,parseJSDocTypeExpressionForTests:()=>mLe,parseJsonConfigFileContent:()=>ULe,parseJsonSourceFileConfigFileContent:()=>DM,parseJsonText:()=>TM,parseListTypeOption:()=>Oye,parseNodeFactory:()=>US,parseNodeModuleFromPath:()=>IM,parsePackageName:()=>iW,parsePseudoBigInt:()=>R4,parseValidBigInt:()=>LX,pasteEdits:()=>die,patchWriteFileEnsuringDirectory:()=>O_e,pathContainsNodeModules:()=>Ox,pathIsAbsolute:()=>FI,pathIsBareSpecifier:()=>yK,pathIsRelative:()=>pd,patternText:()=>vB,performIncrementalCompilation:()=>r1e,performance:()=>DB,positionBelongsToNode:()=>wte,positionIsASICandidate:()=>DU,positionIsSynthesized:()=>Ug,positionsAreOnSameLine:()=>pm,preProcessFile:()=>eze,probablyUsesSemicolons:()=>kR,processCommentPragmas:()=>JY,processPragmasIntoFields:()=>zY,processTaggedTemplateExpression:()=>UZ,programContainsEsModules:()=>pbe,programContainsModules:()=>ube,projectReferenceIsEqualTo:()=>eQ,propertyNamePart:()=>gbe,pseudoBigIntToString:()=>A2,punctuationPart:()=>tf,pushIfUnique:()=>I_,quote:()=>U3,quotePreferenceFromString:()=>Jte,rangeContainsPosition:()=>uA,rangeContainsPositionExclusive:()=>fR,rangeContainsRange:()=>Zf,rangeContainsRangeExclusive:()=>X1e,rangeContainsStartEnd:()=>_R,rangeEndIsOnSameLineAsRangeStart:()=>M5,rangeEndPositionsAreOnSameLine:()=>sge,rangeEquals:()=>dI,rangeIsOnSingleLine:()=>Fk,rangeOfNode:()=>RX,rangeOfTypeParameters:()=>jX,rangeOverlapsWithStartEnd:()=>M3,rangeStartIsOnSameLineAsRangeEnd:()=>oge,rangeStartPositionsAreOnSameLine:()=>CJ,readBuilderProgram:()=>UW,readConfigFile:()=>PM,readJson:()=>vN,readJsonConfigFile:()=>Mye,readJsonOrUndefined:()=>lX,reduceEachLeadingCommentRange:()=>B_e,reduceEachTrailingCommentRange:()=>q_e,reduceLeft:()=>Qu,reduceLeftIterator:()=>Oi,reducePathComponents:()=>AP,refactor:()=>GE,regExpEscape:()=>_je,regularExpressionFlagToCharacterCode:()=>fRe,relativeComplement:()=>dB,removeAllComments:()=>tM,removeEmitHelper:()=>Eje,removeExtension:()=>H5,removeFileExtension:()=>yf,removeIgnoredPath:()=>jW,removeMinAndVersionNumbers:()=>bI,removePrefix:()=>kP,removeSuffix:()=>a2,removeTrailingDirectorySeparator:()=>T1,repeatString:()=>hR,replaceElement:()=>EO,replaceFirstStar:()=>Rk,resolutionExtensionIsTSOrJson:()=>A4,resolveConfigFileProjectName:()=>Gee,resolveJSModule:()=>tve,resolveLibrary:()=>nW,resolveModuleName:()=>Yk,resolveModuleNameFromCache:()=>b9e,resolvePackageNameToPackageJson:()=>lZ,resolvePath:()=>Zb,resolveProjectReferencePath:()=>qE,resolveTripleslashReference:()=>oee,resolveTypeReferenceDirective:()=>Xye,resolvingEmptyArray:()=>YK,returnFalse:()=>cd,returnNoopFileWatcher:()=>N3,returnTrue:()=>v1,returnUndefined:()=>Rg,returnsPromise:()=>Ere,rewriteModuleSpecifier:()=>jE,sameFlatMap:()=>Vc,sameMap:()=>ia,sameMapping:()=>uBe,scanTokenAtPosition:()=>sme,scanner:()=>gp,semanticDiagnosticsOptionDeclarations:()=>Tye,serializeCompilerOptions:()=>$z,server:()=>rZe,servicesVersion:()=>WWe,setCommentRange:()=>yu,setConfigFileInOptions:()=>nZ,setConstantValue:()=>fhe,setEmitFlags:()=>qn,setGetSourceFileAsHashVersioned:()=>WW,setIdentifierAutoGenerate:()=>iM,setIdentifierGeneratedImportReference:()=>ghe,setIdentifierTypeArguments:()=>F1,setInternalEmitFlags:()=>rM,setLocalizedDiagnosticMessages:()=>gge,setNodeChildren:()=>Hhe,setNodeFlags:()=>zge,setObjectAllocator:()=>mge,setOriginalNode:()=>ii,setParent:()=>Xo,setParentRecursive:()=>IS,setPrivateIdentifier:()=>eC,setSnippetElement:()=>iY,setSourceMapRange:()=>Eo,setStackTraceLimit:()=>Xb,setStartsOnNewLine:()=>cz,setSyntheticLeadingComments:()=>FS,setSyntheticTrailingComments:()=>mE,setSys:()=>tRe,setSysLog:()=>P_e,setTextRange:()=>Ot,setTextRangeEnd:()=>CN,setTextRangePos:()=>j4,setTextRangePosEnd:()=>$g,setTextRangePosWidth:()=>BX,setTokenSourceMapRange:()=>lhe,setTypeNode:()=>dhe,setUILocale:()=>TP,setValueDeclaration:()=>_5,shouldAllowImportingTsExtension:()=>YN,shouldPreserveConstEnums:()=>vx,shouldRewriteModuleSpecifier:()=>m5,shouldUseUriStyleNodeCoreModules:()=>RU,showModuleSpecifier:()=>fge,signatureHasRestParameter:()=>ef,signatureToDisplayParts:()=>Yte,single:()=>fS,singleElementArray:()=>lg,singleIterator:()=>uI,singleOrMany:()=>em,singleOrUndefined:()=>Zd,skipAlias:()=>Tp,skipConstraint:()=>Lte,skipOuterExpressions:()=>Ll,skipParentheses:()=>Qo,skipPartiallyEmittedExpressions:()=>dg,skipTrivia:()=>yo,skipTypeChecking:()=>kN,skipTypeCheckingIgnoringNoCheck:()=>Lge,skipTypeParentheses:()=>p4,skipWhile:()=>bB,sliceAfter:()=>MX,some:()=>Pt,sortAndDeduplicate:()=>hP,sortAndDeduplicateDiagnostics:()=>VO,sourceFileAffectingCompilerOptions:()=>VY,sourceFileMayBeEmitted:()=>k2,sourceMapCommentRegExp:()=>AZ,sourceMapCommentRegExpDontCareLineStart:()=>Cve,spacePart:()=>Il,spanMap:()=>z7,startEndContainsRange:()=>fX,startEndOverlapsWithStartEnd:()=>lU,startOnNewLine:()=>Zp,startTracing:()=>aF,startsWith:()=>La,startsWithDirectory:()=>xK,startsWithUnderscore:()=>_re,startsWithUseStrict:()=>eye,stringContainsAt:()=>Fbe,stringToToken:()=>dk,stripQuotes:()=>qm,supportedDeclarationExtensions:()=>$J,supportedJSExtensionsFlat:()=>wN,supportedLocaleDirectories:()=>tde,supportedTSExtensionsFlat:()=>OX,supportedTSImplementationExtensions:()=>U5,suppressLeadingAndTrailingTrivia:()=>K_,suppressLeadingTrivia:()=>rre,suppressTrailingTrivia:()=>wbe,symbolEscapedNameNoDefault:()=>xU,symbolName:()=>Ml,symbolNameNoDefault:()=>Wte,symbolToDisplayParts:()=>z3,sys:()=>Ru,sysLog:()=>dF,tagNamesAreEquivalent:()=>VS,takeWhile:()=>Hb,targetOptionDeclaration:()=>UY,targetToLibMap:()=>J_e,testFormatSettings:()=>xJe,textChangeRangeIsUnchanged:()=>Q_e,textChangeRangeNewSpan:()=>zI,textChanges:()=>Ln,textOrKeywordPart:()=>Xte,textPart:()=>Rd,textRangeContainsPositionInclusive:()=>SF,textRangeContainsTextSpan:()=>U_e,textRangeIntersectsWithTextSpan:()=>G_e,textSpanContainsPosition:()=>CK,textSpanContainsTextRange:()=>PK,textSpanContainsTextSpan:()=>W_e,textSpanEnd:()=>ml,textSpanIntersection:()=>K_e,textSpanIntersectsWith:()=>TF,textSpanIntersectsWithPosition:()=>H_e,textSpanIntersectsWithTextSpan:()=>V_e,textSpanIsEmpty:()=>z_e,textSpanOverlap:()=>$_e,textSpanOverlapsWith:()=>bRe,textSpansEqual:()=>dA,textToKeywordObj:()=>tq,timestamp:()=>xc,toArray:()=>Sh,toBuilderFileEmit:()=>U0e,toBuilderStateFileInfoForMultiEmit:()=>W0e,toEditorSettings:()=>RR,toFileNameLowerCase:()=>wy,toPath:()=>Ec,toProgramEmitPending:()=>$0e,toSorted:()=>ff,tokenIsIdentifierOrKeyword:()=>Gf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>I_e,tokenToString:()=>to,trace:()=>es,tracing:()=>Fn,tracingEnabled:()=>FO,transferSourceFileChildren:()=>Ghe,transform:()=>ZWe,transformClassFields:()=>Uve,transformDeclarations:()=>GZ,transformECMAScriptModule:()=>HZ,transformES2015:()=>i0e,transformES2016:()=>n0e,transformES2017:()=>Gve,transformES2018:()=>Kve,transformES2019:()=>Qve,transformES2020:()=>Xve,transformES2021:()=>Yve,transformESDecorators:()=>Hve,transformESNext:()=>Zve,transformGenerators:()=>a0e,transformImpliedNodeFormatDependentModule:()=>o0e,transformJsx:()=>r0e,transformLegacyDecorators:()=>Vve,transformModule:()=>VZ,transformNamedEvaluation:()=>$_,transformNodes:()=>$M,transformSystemModule:()=>s0e,transformTypeScript:()=>Wve,transpile:()=>lze,transpileDeclaration:()=>oze,transpileModule:()=>nxe,transpileOptionValueCompilerOptions:()=>Pye,tryAddToSet:()=>Ty,tryAndIgnoreErrors:()=>AU,tryCast:()=>_i,tryDirectoryExists:()=>NU,tryExtractTSExtension:()=>TJ,tryFileExists:()=>V3,tryGetClassExtendingExpressionWithTypeArguments:()=>aX,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>sX,tryGetDirectories:()=>OU,tryGetExtensionFromPath:()=>Fv,tryGetImportFromModuleSpecifier:()=>d5,tryGetJSDocSatisfiesTypeNode:()=>ez,tryGetModuleNameFromFile:()=>hM,tryGetModuleSpecifierFromDeclaration:()=>GP,tryGetNativePerformanceHooks:()=>wI,tryGetPropertyAccessOrIdentifierToString:()=>F5,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Az,tryGetSourceMappingURL:()=>Pve,tryGetTextOfPropertyName:()=>r4,tryParseJson:()=>wJ,tryParsePattern:()=>uE,tryParsePatterns:()=>G5,tryParseRawSourceMap:()=>Eve,tryReadDirectory:()=>sre,tryReadFile:()=>l3,tryRemoveDirectoryPrefix:()=>CX,tryRemoveExtension:()=>Rge,tryRemovePrefix:()=>G7,tryRemoveSuffix:()=>OO,tscBuildOption:()=>Qk,typeAcquisitionDeclarations:()=>Bz,typeAliasNamePart:()=>hbe,typeDirectiveIsEqualTo:()=>Jde,typeKeywords:()=>jte,typeParameterNamePart:()=>ybe,typeToDisplayParts:()=>xR,unchangedPollThresholds:()=>GB,unchangedTextChangeRange:()=>aq,unescapeLeadingUnderscores:()=>ka,unmangleScopedPackageName:()=>MM,unorderedRemoveItem:()=>Vb,unprefixedNodeCoreModules:()=>ehe,unreachableCodeIsError:()=>Sge,unsetNodeChildren:()=>kY,unusedLabelIsError:()=>Tge,unwrapInnermostStatementOfLabel:()=>xQ,unwrapParenthesizedExpression:()=>Yge,updateErrorForNoInputFiles:()=>Kz,updateLanguageServiceSourceFile:()=>tne,updateMissingFilePathsWatch:()=>iee,updateResolutionField:()=>HN,updateSharedExtendedConfigFileWatcher:()=>TW,updateSourceFile:()=>BY,updateWatchingWildcardDirectories:()=>GM,usingSingleLineStringWriter:()=>eN,utf16EncodeAsString:()=>JI,validateLocaleAndSetLanguage:()=>OK,version:()=>ye,versionMajorMinor:()=>le,visitArray:()=>h3,visitCommaListElements:()=>LM,visitEachChild:()=>Gr,visitFunctionBody:()=>Md,visitIterationBody:()=>Rf,visitLexicalEnvironment:()=>NZ,visitNode:()=>dt,visitNodes:()=>dn,visitParameterList:()=>kl,walkUpBindingElementsAndPatterns:()=>MP,walkUpOuterExpressions:()=>tye,walkUpParenthesizedExpressions:()=>gg,walkUpParenthesizedTypes:()=>v5,walkUpParenthesizedTypesAndGetParentAndChild:()=>Ame,whitespaceOrMapCommentRegExp:()=>IZ,writeCommentRange:()=>yN,writeFile:()=>hJ,writeFileEnsuringDirectories:()=>YQ,zipWith:()=>ys}),o.exports=q(K);var le="5.8",ye="5.8.3",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{}),ce=[],mt=new Map;function Re(e){return e!==void 0?e.length:0}function Ge(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);if(i)return i}}function _r(e,t){if(e!==void 0)for(let n=e.length-1;n>=0;n--){let i=t(e[n],n);if(i)return i}}function jr(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);if(i!==void 0)return i}}function si(e,t){for(let n of e){let i=t(n);if(i!==void 0)return i}}function Oi(e,t,n){let i=n;if(e){let s=0;for(let l of e)i=t(i,l,s),s++}return i}function ys(e,t,n){let i=[];I.assertEqual(e.length,t.length);for(let s=0;s<e.length;s++)i.push(n(e[s],t[s],s));return i}function ns(e,t){if(e.length<=1)return e;let n=[];for(let i=0,s=e.length;i<s;i++)i!==0&&n.push(t),n.push(e[i]);return n}function sn(e,t){if(e!==void 0){for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1}return!0}function Ir(e,t,n){if(e!==void 0)for(let i=n??0;i<e.length;i++){let s=e[i];if(t(s,i))return s}}function Ks(e,t,n){if(e!==void 0)for(let i=n??e.length-1;i>=0;i--){let s=e[i];if(t(s,i))return s}}function Va(e,t,n){if(e===void 0)return-1;for(let i=n??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function up(e,t,n){if(e===void 0)return-1;for(let i=n??e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function Ta(e,t,n=pv){if(e!==void 0){for(let i=0;i<e.length;i++)if(n(e[i],t))return!0}return!1}function f_(e,t,n){for(let i=n??0;i<e.length;i++)if(Ta(t,e.charCodeAt(i)))return i;return-1}function Vu(e,t){let n=0;if(e!==void 0)for(let i=0;i<e.length;i++){let s=e[i];t(s,i)&&n++}return n}function Cn(e,t){if(e!==void 0){let n=e.length,i=0;for(;i<n&&t(e[i]);)i++;if(i<n){let s=e.slice(0,i);for(i++;i<n;){let l=e[i];t(l)&&s.push(l),i++}return s}}return e}function __(e,t){let n=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[n]=e[i],n++);e.length=n}function wa(e){e.length=0}function Dt(e,t){let n;if(e!==void 0){n=[];for(let i=0;i<e.length;i++)n.push(t(e[i],i))}return n}function*ci(e,t){for(let n of e)yield t(n)}function ia(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){let i=e[n],s=t(i,n);if(i!==s){let l=e.slice(0,n);for(l.push(s),n++;n<e.length;n++)l.push(t(e[n],n));return l}}return e}function js(e){let t=[];for(let n=0;n<e.length;n++){let i=e[n];i&&(cs(i)?ti(t,i):t.push(i))}return t}function li(e,t){let n;if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s&&(cs(s)?n=ti(n,s):n=Zr(n,s))}return n??ce}function xl(e,t){let n=[];if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s&&(cs(s)?ti(n,s):n.push(s))}return n}function*Xl(e,t){for(let n of e){let i=t(n);i&&(yield*i)}}function Vc(e,t){let n;if(e!==void 0)for(let i=0;i<e.length;i++){let s=e[i],l=t(s,i);(n||s!==l||cs(l))&&(n||(n=e.slice(0,i)),cs(l)?ti(n,l):n.push(l))}return n??e}function ku(e,t){let n=[];for(let i=0;i<e.length;i++){let s=t(e[i],i);if(s===void 0)return;n.push(s)}return n}function Bi(e,t){let n=[];if(e!==void 0)for(let i=0;i<e.length;i++){let s=t(e[i],i);s!==void 0&&n.push(s)}return n}function*pf(e,t){for(let n of e){let i=t(n);i!==void 0&&(yield i)}}function A_(e,t,n){if(e.has(t))return e.get(t);let i=n();return e.set(t,i),i}function Ty(e,t){return e.has(t)?!1:(e.add(t),!0)}function*uI(e){yield e}function z7(e,t,n){let i;if(e!==void 0){i=[];let s=e.length,l,p,g=0,m=0;for(;g<s;){for(;m<s;){let x=e[m];if(p=t(x,m),m===0)l=p;else if(p!==l)break;m++}if(g<m){let x=n(e.slice(g,m),l,g,m);x&&i.push(x),g=m}l=p,m++}}return i}function ok(e,t){if(e===void 0)return;let n=new Map;return e.forEach((i,s)=>{let[l,p]=t(s,i);n.set(l,p)}),n}function Pt(e,t){if(e!==void 0)if(t!==void 0){for(let n=0;n<e.length;n++)if(t(e[n]))return!0}else return e.length>0;return!1}function gP(e,t,n){let i;for(let s=0;s<e.length;s++)t(e[s])?i=i===void 0?s:i:i!==void 0&&(n(i,s),i=void 0);i!==void 0&&n(i,e.length)}function ya(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function _B(e,t){return t}function pI(e){return e.map(_B)}function yc(e,t,n){let i=pI(e);aK(e,i,n);let s=e[i[0]],l=[i[0]];for(let p=1;p<i.length;p++){let g=i[p],m=e[g];t(s,m)||(l.push(g),s=m)}return l.sort(),l.map(p=>e[p])}function iK(e,t){let n=[];for(let i=0;i<e.length;i++)I_(n,e[i],t);return n}function zb(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?yc(e,t,n):iK(e,t)}function W7(e,t){if(e.length===0)return ce;let n=e[0],i=[n];for(let s=1;s<e.length;s++){let l=e[s];switch(t(l,n)){case!0:case 0:continue;case-1:return I.fail("Array is unsorted.")}i.push(n=l)}return i}function pp(){return[]}function Mg(e,t,n,i,s){if(e.length===0)return e.push(t),!0;let l=tm(e,t,vc,n);if(l<0){if(i&&!s){let p=~l;if(p>0&&i(t,e[p-1]))return!1;if(p<e.length&&i(t,e[p]))return e.splice(p,1,t),!0}return e.splice(~l,0,t),!0}return s?(e.splice(l,0,t),!0):!1}function hP(e,t,n){return W7(ff(e,t),n??t??fp)}function Rp(e,t,n=pv){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!n(e[i],t[i],i))return!1;return!0}function PO(e){let t;if(e!==void 0)for(let n=0;n<e.length;n++){let i=e[n];(t??!i)&&(t??(t=e.slice(0,n)),i&&t.push(i))}return t??e}function dB(e,t,n){if(!t||!e||t.length===0||e.length===0)return t;let i=[];e:for(let s=0,l=0;l<t.length;l++){l>0&&I.assertGreaterThanOrEqual(n(t[l],t[l-1]),0);t:for(let p=s;s<e.length;s++)switch(s>p&&I.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[l],e[s])){case-1:i.push(t[l]);continue e;case 0:continue e;case 1:continue t}}return i}function Zr(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function n2(e,t){return e===void 0?t:t===void 0?e:cs(e)?cs(t)?ya(e,t):Zr(e,t):cs(t)?Zr(t,e):[e,t]}function fI(e,t){return t<0?e.length+t:t}function ti(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:fI(t,n),i=i===void 0?t.length:fI(t,i);for(let s=n;s<i&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function I_(e,t,n){return Ta(e,t,n)?!1:(e.push(t),!0)}function Mm(e,t,n){return e!==void 0?(I_(e,t,n),e):[t]}function aK(e,t,n){t.sort((i,s)=>n(e[i],e[s])||mc(i,s))}function ff(e,t){return e.length===0?ce:e.slice().sort(t)}function*_I(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function dI(e,t,n,i){for(;n<i;){if(e[n]!==t[n])return!1;n++}return!0}var b0=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e!==void 0&&(t=fI(e,t),t<e.length))return e[t]};function Yl(e){return e===void 0||e.length===0?void 0:e[0]}function h1(e){if(e!==void 0)for(let t of e)return t}function ho(e){return I.assert(e.length!==0),e[0]}function U7(e){for(let t of e)return t;I.fail("iterator is empty")}function dc(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function ao(e){return I.assert(e.length!==0),e[e.length-1]}function Zd(e){return e!==void 0&&e.length===1?e[0]:void 0}function fS(e){return I.checkDefined(Zd(e))}function em(e){return e!==void 0&&e.length===1?e[0]:e}function EO(e,t,n){let i=e.slice(0);return i[t]=n,i}function tm(e,t,n,i,s){return ko(e,n(t),n,i,s)}function ko(e,t,n,i,s){if(!Pt(e))return-1;let l=s??0,p=e.length-1;for(;l<=p;){let g=l+(p-l>>1),m=n(e[g],g);switch(i(m,t)){case-1:l=g+1;break;case 0:return g;case 1:p=g-1;break}}return~l}function Qu(e,t,n,i,s){if(e&&e.length>0){let l=e.length;if(l>0){let p=i===void 0||i<0?0:i,g=s===void 0||p+s>l-1?l-1:p+s,m;for(arguments.length<=2?(m=e[p],p++):m=n;p<=g;)m=t(m,e[p],p),p++;return m}}return n}var og=Object.prototype.hasOwnProperty;function ec(e,t){return og.call(e,t)}function As(e,t){return og.call(e,t)?e[t]:void 0}function rm(e){let t=[];for(let n in e)og.call(e,n)&&t.push(n);return t}function mB(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let i of n)I_(t,i)}while(e=Object.getPrototypeOf(e));return t}function _S(e){let t=[];for(let n in e)og.call(e,n)&&t.push(e[n]);return t}function mI(e,t){let n=new Array(e);for(let i=0;i<e;i++)n[i]=t(i);return n}function Ka(e,t){let n=[];for(let i of e)n.push(t?t(i):i);return n}function y1(e,...t){for(let n of t)if(n!==void 0)for(let i in n)ec(n,i)&&(e[i]=n[i]);return e}function gB(e,t,n=pv){if(e===t)return!0;if(!e||!t)return!1;for(let i in e)if(og.call(e,i)&&(!og.call(t,i)||!n(e[i],t[i])))return!1;for(let i in t)if(og.call(t,i)&&!og.call(e,i))return!1;return!0}function ck(e,t,n=vc){let i=new Map;for(let s=0;s<e.length;s++){let l=e[s],p=t(l);p!==void 0&&i.set(p,n(l))}return i}function lk(e,t,n=vc){let i=[];for(let s=0;s<e.length;s++){let l=e[s];i[t(l)]=n(l)}return i}function Wb(e,t,n=vc){let i=Zl();for(let s=0;s<e.length;s++){let l=e[s];i.add(t(l),n(l))}return i}function dS(e,t,n=vc){return Ka(Wb(e,t).values(),n)}function $7(e,t){let n={};if(e!==void 0)for(let i=0;i<e.length;i++){let s=e[i],l=`${t(s)}`;(n[l]??(n[l]=[])).push(s)}return n}function hB(e){let t={};for(let n in e)og.call(e,n)&&(t[n]=e[n]);return t}function gI(e,t){let n={};for(let i in t)og.call(t,i)&&(n[i]=t[i]);for(let i in e)og.call(e,i)&&(n[i]=e[i]);return n}function yP(e,t){for(let n in t)og.call(t,n)&&(e[n]=t[n])}function Ra(e,t){return t?.bind(e)}function Zl(){let e=new Map;return e.add=__e,e.remove=V7,e}function __e(e,t){let n=this.get(e);return n!==void 0?n.push(t):this.set(e,n=[t]),n}function V7(e,t){let n=this.get(e);n!==void 0&&(Vb(n,t),n.length||this.delete(e))}function i2(e){let t=e?.slice()??[],n=0;function i(){return n===t.length}function s(...p){t.push(...p)}function l(){if(i())throw new Error("Queue is empty");let p=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){let g=t.length-n;t.copyWithin(0,n),t.length=g,n=0}return p}return{enqueue:s,dequeue:l,isEmpty:i}}function vP(e,t){let n=new Map,i=0;function*s(){for(let p of n.values())cs(p)?yield*p:yield p}let l={has(p){let g=e(p);if(!n.has(g))return!1;let m=n.get(g);return cs(m)?Ta(m,p,t):t(m,p)},add(p){let g=e(p);if(n.has(g)){let m=n.get(g);if(cs(m))Ta(m,p,t)||(m.push(p),i++);else{let x=m;t(x,p)||(n.set(g,[x,p]),i++)}}else n.set(g,p),i++;return this},delete(p){let g=e(p);if(!n.has(g))return!1;let m=n.get(g);if(cs(m)){for(let x=0;x<m.length;x++)if(t(m[x],p))return m.length===1?n.delete(g):m.length===2?n.set(g,m[1-x]):oK(m,x),i--,!0}else if(t(m,p))return n.delete(g),i--,!0;return!1},clear(){n.clear(),i=0},get size(){return i},forEach(p){for(let g of Ka(n.values()))if(cs(g))for(let m of g)p(m,m,l);else{let m=g;p(m,m,l)}},keys(){return s()},values(){return s()},*entries(){for(let p of s())yield[p,p]},[Symbol.iterator]:()=>s(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return l}function cs(e){return Array.isArray(e)}function Sh(e){return cs(e)?e:[e]}function Ua(e){return typeof e=="string"}function nm(e){return typeof e=="number"}function _i(e,t){return e!==void 0&&t(e)?e:void 0}function Js(e,t){return e!==void 0&&t(e)?e:I.fail(`Invalid cast. The supplied value ${e} did not pass the test '${I.getFunctionName(t)}'.`)}function Ko(e){}function cd(){return!1}function v1(){return!0}function Rg(){}function vc(e){return e}function yB(e){return e.toLowerCase()}var ld=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function wy(e){return ld.test(e)?e.replace(ld,yB):e}function zs(){throw new Error("Not implemented")}function Cu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function im(e){let t=new Map;return n=>{let i=`${typeof n}:${n}`,s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}var Ub=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(Ub||{});function pv(e,t){return e===t}function cg(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function fv(e,t){return pv(e,t)}function H7(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function mc(e,t){return H7(e,t)}function $b(e,t){return mc(e?.start,t?.start)||mc(e?.length,t?.length)}function hI(e,t,n){for(let i=0;i<e.length;i++)t=Math.max(t,n(e[i]));return t}function bP(e,t){return Qu(e,(n,i)=>t(n,i)===-1?n:i)}function xP(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function au(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function fp(e,t){return H7(e,t)}function uk(e){return e?xP:fp}var sK=(()=>{return t;function e(n,i,s){if(n===i)return 0;if(n===void 0)return-1;if(i===void 0)return 1;let l=s(n,i);return l<0?-1:l>0?1:0}function t(n){let i=new Intl.Collator(n,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(s,l)=>e(s,l,i)}})(),yI,vI;function SP(){return vI}function TP(e){vI!==e&&(vI=e,yI=void 0)}function DO(e,t){return yI??(yI=sK(vI)),yI(e,t)}function pk(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function _v(e,t){return mc(e?1:0,t?1:0)}function x0(e,t,n){let i=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,l;for(let p of t){let g=n(p);if(g!==void 0&&Math.abs(g.length-e.length)<=i){if(g===e||g.length<3&&g.toLowerCase()!==e.toLowerCase())continue;let m=d_e(e,g,s-.1);if(m===void 0)continue;I.assert(m<s),s=m,l=p}}return l}function d_e(e,t,n){let i=new Array(t.length+1),s=new Array(t.length+1),l=n+.01;for(let g=0;g<=t.length;g++)i[g]=g;for(let g=1;g<=e.length;g++){let m=e.charCodeAt(g-1),x=Math.ceil(g>n?g-n:1),b=Math.floor(t.length>n+g?n+g:t.length);s[0]=g;let S=g;for(let E=1;E<x;E++)s[E]=l;for(let E=x;E<=b;E++){let N=e[g-1].toLowerCase()===t[E-1].toLowerCase()?i[E-1]+.1:i[E-1]+2,F=m===t.charCodeAt(E-1)?i[E-1]:Math.min(i[E]+1,s[E-1]+1,N);s[E]=F,S=Math.min(S,F)}for(let E=b+1;E<=t.length;E++)s[E]=l;if(S>n)return;let P=i;i=s,s=P}let p=i[t.length];return p>n?void 0:p}function bc(e,t,n){let i=e.length-t.length;return i>=0&&(n?cg(e.slice(i),t):e.indexOf(t,i)===i)}function a2(e,t){return bc(e,t)?e.slice(0,e.length-t.length):e}function OO(e,t){return bc(e,t)?e.slice(0,e.length-t.length):void 0}function bI(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function wP(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return jg(e,n),!0;return!1}function jg(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function oK(e,t){e[t]=e[e.length-1],e.pop()}function Vb(e,t){return m_e(e,n=>n===t)}function m_e(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return oK(e,n),!0;return!1}function Xu(e){return e?vc:wy}function vB({prefix:e,suffix:t}){return`${e}*${t}`}function ky(e,t){return I.assert(fk(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function s2(e,t,n){let i,s=-1;for(let l=0;l<e.length;l++){let p=e[l],g=t(p);g.prefix.length>s&&fk(g,n)&&(s=g.prefix.length,i=p)}return i}function La(e,t,n){return n?cg(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function kP(e,t){return La(e,t)?e.substr(t.length):e}function G7(e,t,n=vc){return La(n(e),n(t))?e.substring(t.length):void 0}function fk({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&La(n,e)&&bc(n,t)}function b1(e,t){return n=>e(n)&&t(n)}function Df(...e){return(...t)=>{let n;for(let i of e)if(n=i(...t),n)return n;return n}}function NO(e){return(...t)=>!e(...t)}function cK(e){}function lg(e){return e===void 0?void 0:[e]}function o2(e,t,n,i,s,l){l??(l=Ko);let p=0,g=0,m=e.length,x=t.length,b=!1;for(;p<m&&g<x;){let S=e[p],P=t[g],E=n(S,P);E===-1?(i(S),p++,b=!0):E===1?(s(P),g++,b=!0):(l(P,S),p++,g++)}for(;p<m;)i(e[p++]),b=!0;for(;g<x;)s(t[g++]),b=!0;return b}function CP(e){let t=[];return K7(e,t,void 0,0),t}function K7(e,t,n,i){for(let s of e[i]){let l;n?(l=n.slice(),l.push(s)):l=[s],i===e.length-1?t.push(l):K7(e,t,l,i+1)}}function Hb(e,t){if(e!==void 0){let n=e.length,i=0;for(;i<n&&t(e[i]);)i++;return e.slice(0,i)}}function bB(e,t){if(e!==void 0){let n=e.length,i=0;for(;i<n&&t(e[i]);)i++;return e.slice(i)}}function Q7(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof require<"u"}var xI=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(xI||{}),I;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(at){return e.currentLogLevel<=at}e.shouldLog=n;function i(at,It){e.loggingHost&&n(at)&&e.loggingHost.log(at,It)}function s(at){i(3,at)}e.log=s,(at=>{function It(Pi){i(1,Pi)}at.error=It;function Cr(Pi){i(2,Pi)}at.warn=Cr;function wn(Pi){i(3,Pi)}at.log=wn;function Di(Pi){i(4,Pi)}at.trace=Di})(s=e.log||(e.log={}));let l={};function p(){return t}e.getAssertionLevel=p;function g(at){let It=t;if(t=at,at>It)for(let Cr of rm(l)){let wn=l[Cr];wn!==void 0&&e[Cr]!==wn.assertion&&at>=wn.level&&(e[Cr]=wn,l[Cr]=void 0)}}e.setAssertionLevel=g;function m(at){return t>=at}e.shouldAssert=m;function x(at,It){return m(at)?!0:(l[It]={level:at,assertion:e[It]},e[It]=Ko,!1)}function b(at,It){debugger;let Cr=new Error(at?`Debug Failure. ${at}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Cr,It||b),Cr}e.fail=b;function S(at,It,Cr){return b(`${It||"Unexpected node."}\r
|
|
Node ${Ne(at.kind)} was unexpected.`,Cr||S)}e.failBadSyntaxKind=S;function P(at,It,Cr,wn){at||(It=It?`False expression: ${It}`:"False expression.",Cr&&(It+=`\r
|
|
Verbose Debug Information: `+(typeof Cr=="string"?Cr:Cr())),b(It,wn||P))}e.assert=P;function E(at,It,Cr,wn,Di){if(at!==It){let Pi=Cr?wn?`${Cr} ${wn}`:Cr:"";b(`Expected ${at} === ${It}. ${Pi}`,Di||E)}}e.assertEqual=E;function N(at,It,Cr,wn){at>=It&&b(`Expected ${at} < ${It}. ${Cr||""}`,wn||N)}e.assertLessThan=N;function F(at,It,Cr){at>It&&b(`Expected ${at} <= ${It}`,Cr||F)}e.assertLessThanOrEqual=F;function M(at,It,Cr){at<It&&b(`Expected ${at} >= ${It}`,Cr||M)}e.assertGreaterThanOrEqual=M;function L(at,It,Cr){at==null&&b(It,Cr||L)}e.assertIsDefined=L;function W(at,It,Cr){return L(at,It,Cr||W),at}e.checkDefined=W;function z(at,It,Cr){for(let wn of at)L(wn,It,Cr||z)}e.assertEachIsDefined=z;function H(at,It,Cr){return z(at,It,Cr||H),at}e.checkEachDefined=H;function X(at,It="Illegal value:",Cr){let wn=typeof at=="object"&&ec(at,"kind")&&ec(at,"pos")?"SyntaxKind: "+Ne(at.kind):JSON.stringify(at);return b(`${It} ${wn}`,Cr||X)}e.assertNever=X;function ne(at,It,Cr,wn){x(1,"assertEachNode")&&P(It===void 0||sn(at,It),Cr||"Unexpected node.",()=>`Node array did not pass test '${me(It)}'.`,wn||ne)}e.assertEachNode=ne;function ae(at,It,Cr,wn){x(1,"assertNode")&&P(at!==void 0&&(It===void 0||It(at)),Cr||"Unexpected node.",()=>`Node ${Ne(at?.kind)} did not pass test '${me(It)}'.`,wn||ae)}e.assertNode=ae;function Y(at,It,Cr,wn){x(1,"assertNotNode")&&P(at===void 0||It===void 0||!It(at),Cr||"Unexpected node.",()=>`Node ${Ne(at.kind)} should not have passed test '${me(It)}'.`,wn||Y)}e.assertNotNode=Y;function Ee(at,It,Cr,wn){x(1,"assertOptionalNode")&&P(It===void 0||at===void 0||It(at),Cr||"Unexpected node.",()=>`Node ${Ne(at?.kind)} did not pass test '${me(It)}'.`,wn||Ee)}e.assertOptionalNode=Ee;function fe(at,It,Cr,wn){x(1,"assertOptionalToken")&&P(It===void 0||at===void 0||at.kind===It,Cr||"Unexpected node.",()=>`Node ${Ne(at?.kind)} was not a '${Ne(It)}' token.`,wn||fe)}e.assertOptionalToken=fe;function te(at,It,Cr){x(1,"assertMissingNode")&&P(at===void 0,It||"Unexpected node.",()=>`Node ${Ne(at.kind)} was unexpected'.`,Cr||te)}e.assertMissingNode=te;function de(at){}e.type=de;function me(at){if(typeof at!="function")return"";if(ec(at,"name"))return at.name;{let It=Function.prototype.toString.call(at),Cr=/^function\s+([\w$]+)\s*\(/.exec(It);return Cr?Cr[1]:""}}e.getFunctionName=me;function ve(at){return`{ name: ${ka(at.escapedName)}; flags: ${xe(at.flags)}; declarations: ${Dt(at.declarations,It=>Ne(It.kind))} }`}e.formatSymbol=ve;function Pe(at=0,It,Cr){let wn=ie(It);if(at===0)return wn.length>0&&wn[0][0]===0?wn[0][1]:"0";if(Cr){let Di=[],Pi=at;for(let[da,ks]of wn){if(da>at)break;da!==0&&da&at&&(Di.push(ks),Pi&=~da)}if(Pi===0)return Di.join("|")}else for(let[Di,Pi]of wn)if(Di===at)return Pi;return at.toString()}e.formatEnum=Pe;let Oe=new Map;function ie(at){let It=Oe.get(at);if(It)return It;let Cr=[];for(let Di in at){let Pi=at[Di];typeof Pi=="number"&&Cr.push([Pi,Di])}let wn=ff(Cr,(Di,Pi)=>mc(Di[0],Pi[0]));return Oe.set(at,wn),wn}function Ne(at){return Pe(at,sF,!1)}e.formatSyntaxKind=Ne;function it(at){return Pe(at,ic,!1)}e.formatSnippetKind=it;function ze(at){return Pe(at,zi,!1)}e.formatScriptKind=ze;function ge(at){return Pe(at,oF,!0)}e.formatNodeFlags=ge;function Me(at){return Pe(at,hS,!0)}e.formatNodeCheckFlags=Me;function Te(at){return Pe(at,RO,!0)}e.formatModifierFlags=Te;function gt(at){return Pe(at,ws,!0)}e.formatTransformFlags=gt;function Tt(at){return Pe(at,dl,!0)}e.formatEmitFlags=Tt;function xe(at){return Pe(at,fF,!0)}e.formatSymbolFlags=xe;function nt(at){return Pe(at,JO,!0)}e.formatTypeFlags=nt;function pe(at){return Pe(at,Z,!0)}e.formatSignatureFlags=pe;function He(at){return Pe(at,Qb,!0)}e.formatObjectFlags=He;function qe(at){return Pe(at,jO,!0)}e.formatFlowFlags=qe;function je(at){return Pe(at,cF,!0)}e.formatRelationComparisonResult=je;function st(at){return Pe(at,CZ,!0)}e.formatCheckMode=st;function jt(at){return Pe(at,PZ,!0)}e.formatSignatureCheckMode=jt;function ar(at){return Pe(at,kZ,!0)}e.formatTypeFacts=ar;let Or=!1,nn;function Ct(at){"__debugFlowFlags"in at||Object.defineProperties(at,{__tsDebuggerDisplay:{value(){let It=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Cr=this.flags&-2048;return`${It}${Cr?` (${qe(Cr)})`:""}`}},__debugFlowFlags:{get(){return Pe(this.flags,jO,!0)}},__debugToString:{value(){return Gi(this)}}})}function pr(at){return Or&&(typeof Object.setPrototypeOf=="function"?(nn||(nn=Object.create(Object.prototype),Ct(nn)),Object.setPrototypeOf(at,nn)):Ct(at)),at}e.attachFlowNodeDebugInfo=pr;let vn;function ta(at){"__tsDebuggerDisplay"in at||Object.defineProperties(at,{__tsDebuggerDisplay:{value(It){return It=String(It).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${It}`}}})}function ts(at){Or&&(typeof Object.setPrototypeOf=="function"?(vn||(vn=Object.create(Array.prototype),ta(vn)),Object.setPrototypeOf(at,vn)):ta(at))}e.attachNodeArrayDebugInfo=ts;function Gt(){if(Or)return;let at=new WeakMap,It=new WeakMap;Object.defineProperties(wp.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let wn=this.flags&33554432?"TransientSymbol":"Symbol",Di=this.flags&-33554433;return`${wn} '${Ml(this)}'${Di?` (${xe(Di)})`:""}`}},__debugFlags:{get(){return xe(this.flags)}}}),Object.defineProperties(wp.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let wn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Di=this.flags&524288?this.objectFlags&-1344:0;return`${wn}${this.symbol?` '${Ml(this.symbol)}'`:""}${Di?` (${He(Di)})`:""}`}},__debugFlags:{get(){return nt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?He(this.objectFlags):""}},__debugTypeToString:{value(){let wn=at.get(this);return wn===void 0&&(wn=this.checker.typeToString(this),at.set(this,wn)),wn}}}),Object.defineProperties(wp.getSignatureConstructor().prototype,{__debugFlags:{get(){return pe(this.flags)}},__debugSignatureToString:{value(){var wn;return(wn=this.checker)==null?void 0:wn.signatureToString(this)}}});let Cr=[wp.getNodeConstructor(),wp.getIdentifierConstructor(),wp.getTokenConstructor(),wp.getSourceFileConstructor()];for(let wn of Cr)ec(wn.prototype,"__debugKind")||Object.defineProperties(wn.prototype,{__tsDebuggerDisplay:{value(){return`${Xc(this)?"GeneratedIdentifier":Ye(this)?`Identifier '${fi(this)}'`:Ca(this)?`PrivateIdentifier '${fi(this)}'`:vo(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:e_(this)?`NumericLiteral ${this.text}`:H4(this)?`BigIntLiteral ${this.text}n`:Hc(this)?"TypeParameterDeclaration":Da(this)?"ParameterDeclaration":ul(this)?"ConstructorDeclaration":mm(this)?"GetAccessorDeclaration":v_(this)?"SetAccessorDeclaration":xE(this)?"CallSignatureDeclaration":oM(this)?"ConstructSignatureDeclaration":wx(this)?"IndexSignatureDeclaration":SE(this)?"TypePredicateNode":W_(this)?"TypeReferenceNode":Iy(this)?"FunctionTypeNode":DN(this)?"ConstructorTypeNode":M2(this)?"TypeQueryNode":Ff(this)?"TypeLiteralNode":cM(this)?"ArrayTypeNode":TE(this)?"TupleTypeNode":gz(this)?"OptionalTypeNode":hz(this)?"RestTypeNode":M1(this)?"UnionTypeNode":wE(this)?"IntersectionTypeNode":R2(this)?"ConditionalTypeNode":qk(this)?"InferTypeNode":Jk(this)?"ParenthesizedTypeNode":X4(this)?"ThisTypeNode":MS(this)?"TypeOperatorNode":j2(this)?"IndexedAccessTypeNode":zk(this)?"MappedTypeNode":R1(this)?"LiteralTypeNode":ON(this)?"NamedTupleMember":jh(this)?"ImportTypeNode":Ne(this.kind)}${this.flags?` (${ge(this.flags)})`:""}`}},__debugKind:{get(){return Ne(this.kind)}},__debugNodeFlags:{get(){return ge(this.flags)}},__debugModifierFlags:{get(){return Te(Yme(this))}},__debugTransformFlags:{get(){return gt(this.transformFlags)}},__debugIsParseTreeNode:{get(){return WI(this)}},__debugEmitFlags:{get(){return Tt(Ao(this))}},__debugGetText:{value(Di){if(Pc(this))return"";let Pi=It.get(this);if(Pi===void 0){let da=ds(this),ks=da&&rn(da);Pi=ks?m2(ks,da,Di):"",It.set(this,Pi)}return Pi}}});Or=!0}e.enableDebugInfo=Gt;function hi(at){let It=at&7,Cr=It===0?"in out":It===3?"[bivariant]":It===2?"in":It===1?"out":It===4?"[independent]":"";return at&8?Cr+=" (unmeasurable)":at&16&&(Cr+=" (unreliable)"),Cr}e.formatVariance=hi;class $a{__debugToString(){var It;switch(this.kind){case 3:return((It=this.debugInfo)==null?void 0:It.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ys(this.sources,this.targets||Dt(this.sources,()=>"any"),(Cr,wn)=>`${Cr.__debugTypeToString()} -> ${typeof wn=="string"?wn:wn.__debugTypeToString()}`).join(", ");case 2:return ys(this.sources,this.targets,(Cr,wn)=>`${Cr.__debugTypeToString()} -> ${wn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
`).join(`
|
|
`)}
|
|
m2: ${this.mapper2.__debugToString().split(`
|
|
`).join(`
|
|
`)}`;default:return X(this)}}}e.DebugTypeMapper=$a;function ui(at){return e.isDebugging?Object.setPrototypeOf(at,$a.prototype):at}e.attachDebugPrototypeIfDebug=ui;function Wn(at){return console.log(Gi(at))}e.printControlFlowGraph=Wn;function Gi(at){let It=-1;function Cr(re){return re.id||(re.id=It,It--),re.id}let wn;(re=>{re.lr="\u2500",re.ud="\u2502",re.dr="\u256D",re.dl="\u256E",re.ul="\u256F",re.ur="\u2570",re.udr="\u251C",re.udl="\u2524",re.dlr="\u252C",re.ulr="\u2534",re.udlr="\u256B"})(wn||(wn={}));let Di;(re=>{re[re.None=0]="None",re[re.Up=1]="Up",re[re.Down=2]="Down",re[re.Left=4]="Left",re[re.Right=8]="Right",re[re.UpDown=3]="UpDown",re[re.LeftRight=12]="LeftRight",re[re.UpLeft=5]="UpLeft",re[re.UpRight=9]="UpRight",re[re.DownLeft=6]="DownLeft",re[re.DownRight=10]="DownRight",re[re.UpDownLeft=7]="UpDownLeft",re[re.UpDownRight=11]="UpDownRight",re[re.UpLeftRight=13]="UpLeftRight",re[re.DownLeftRight=14]="DownLeftRight",re[re.UpDownLeftRight=15]="UpDownLeftRight",re[re.NoChildren=16]="NoChildren"})(Di||(Di={}));let Pi=2032,da=882,ks=Object.create(null),no=[],Vr=[],_s=$t(at,new Set);for(let re of no)re.text=We(re.flowNode,re.circular),Lt(re);let ft=Rt(_s),Qt=Xt(ft);return ut(_s,0),qt();function he(re){return!!(re.flags&128)}function wt(re){return!!(re.flags&12)&&!!re.antecedent}function oe(re){return!!(re.flags&Pi)}function Ue(re){return!!(re.flags&da)}function pt(re){let Ft=[];for(let rr of re.edges)rr.source===re&&Ft.push(rr.target);return Ft}function vt(re){let Ft=[];for(let rr of re.edges)rr.target===re&&Ft.push(rr.source);return Ft}function $t(re,Ft){let rr=Cr(re),Le=ks[rr];if(Le&&Ft.has(re))return Le.circular=!0,Le={id:-1,flowNode:re,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},no.push(Le),Le;if(Ft.add(re),!Le)if(ks[rr]=Le={id:rr,flowNode:re,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},no.push(Le),wt(re))for(let kt of re.antecedent)Qe(Le,kt,Ft);else oe(re)&&Qe(Le,re.antecedent,Ft);return Ft.delete(re),Le}function Qe(re,Ft,rr){let Le=$t(Ft,rr),kt={source:re,target:Le};Vr.push(kt),re.edges.push(kt),Le.edges.push(kt)}function Lt(re){if(re.level!==-1)return re.level;let Ft=0;for(let rr of vt(re))Ft=Math.max(Ft,Lt(rr)+1);return re.level=Ft}function Rt(re){let Ft=0;for(let rr of pt(re))Ft=Math.max(Ft,Rt(rr));return Ft+1}function Xt(re){let Ft=$(Array(re),0);for(let rr of no)Ft[rr.level]=Math.max(Ft[rr.level],rr.text.length);return Ft}function ut(re,Ft){if(re.lane===-1){re.lane=Ft,re.endLane=Ft;let rr=pt(re);for(let Le=0;Le<rr.length;Le++){Le>0&&Ft++;let kt=rr[Le];ut(kt,Ft),kt.endLane>re.endLane&&(Ft=kt.endLane)}re.endLane=Ft}}function lr(re){if(re&2)return"Start";if(re&4)return"Branch";if(re&8)return"Loop";if(re&16)return"Assignment";if(re&32)return"True";if(re&64)return"False";if(re&128)return"SwitchClause";if(re&256)return"ArrayMutation";if(re&512)return"Call";if(re&1024)return"ReduceLabel";if(re&1)return"Unreachable";throw new Error}function In(re){let Ft=rn(re);return m2(Ft,re,!1)}function We(re,Ft){let rr=lr(re.flags);if(Ft&&(rr=`${rr}#${Cr(re)}`),he(re)){let Le=[],{switchStatement:kt,clauseStart:dr,clauseEnd:kn}=re.node;for(let Kr=dr;Kr<kn;Kr++){let yn=kt.caseBlock.clauses[Kr];r3(yn)?Le.push("default"):Le.push(In(yn.expression))}rr+=` (${Le.join(", ")})`}else Ue(re)&&re.node&&(rr+=` (${In(re.node)})`);return Ft==="circularity"?`Circular(${rr})`:rr}function qt(){let re=Qt.length,Ft=hI(no,0,kn=>kn.lane)+1,rr=$(Array(Ft),""),Le=Qt.map(()=>Array(Ft)),kt=Qt.map(()=>$(Array(Ft),0));for(let kn of no){Le[kn.level][kn.lane]=kn;let Kr=pt(kn);for(let yt=0;yt<Kr.length;yt++){let Bt=Kr[yt],cr=8;Bt.lane===kn.lane&&(cr|=4),yt>0&&(cr|=1),yt<Kr.length-1&&(cr|=2),kt[kn.level][Bt.lane]|=cr}Kr.length===0&&(kt[kn.level][kn.lane]|=16);let yn=vt(kn);for(let yt=0;yt<yn.length;yt++){let Bt=yn[yt],cr=4;yt>0&&(cr|=1),yt<yn.length-1&&(cr|=2),kt[kn.level-1][Bt.lane]|=cr}}for(let kn=0;kn<re;kn++)for(let Kr=0;Kr<Ft;Kr++){let yn=kn>0?kt[kn-1][Kr]:0,yt=Kr>0?kt[kn][Kr-1]:0,Bt=kt[kn][Kr];Bt||(yn&8&&(Bt|=12),yt&2&&(Bt|=3),kt[kn][Kr]=Bt)}for(let kn=0;kn<re;kn++)for(let Kr=0;Kr<rr.length;Kr++){let yn=kt[kn][Kr],yt=yn&4?"\u2500":" ",Bt=Le[kn][Kr];Bt?(dr(Kr,Bt.text),kn<re-1&&(dr(Kr," "),dr(Kr,Ke(yt,Qt[kn]-Bt.text.length)))):kn<re-1&&dr(Kr,Ke(yt,Qt[kn]+1)),dr(Kr,ke(yn)),dr(Kr,yn&8&&kn<re-1&&!Le[kn+1][Kr]?"\u2500":" ")}return`
|
|
${rr.join(`
|
|
`)}
|
|
`;function dr(kn,Kr){rr[kn]+=Kr}}function ke(re){switch(re){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function $(re,Ft){if(re.fill)re.fill(Ft);else for(let rr=0;rr<re.length;rr++)re[rr]=Ft;return re}function Ke(re,Ft){if(re.repeat)return Ft>0?re.repeat(Ft):"";let rr="";for(;rr.length<Ft;)rr+=re;return rr}}e.formatControlFlowGraph=Gi})(I||(I={}));var xB=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,g_e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,SI=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,SB=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,h_e=/^[a-z0-9-]+$/i,TB=/^(?:0|[1-9]\d*)$/,wB=class jL{constructor(t,n=0,i=0,s="",l=""){typeof t=="string"&&({major:t,minor:n,patch:i,prerelease:s,build:l}=I.checkDefined(lK(t),"Invalid version")),I.assert(t>=0,"Invalid argument: major"),I.assert(n>=0,"Invalid argument: minor"),I.assert(i>=0,"Invalid argument: patch");let p=s?cs(s)?s:s.split("."):ce,g=l?cs(l)?l:l.split("."):ce;I.assert(sn(p,m=>SI.test(m)),"Invalid argument: prerelease"),I.assert(sn(g,m=>h_e.test(m)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=p,this.build=g}static tryParse(t){let n=lK(t);if(!n)return;let{major:i,minor:s,patch:l,prerelease:p,build:g}=n;return new jL(i,s,l,p,g)}compareTo(t){return this===t?0:t===void 0?1:mc(this.major,t.major)||mc(this.minor,t.minor)||mc(this.patch,t.patch)||y_e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new jL(this.major+1,0,0);case"minor":return new jL(this.major,this.minor+1,0);case"patch":return new jL(this.major,this.minor,this.patch+1);default:return I.assertNever(t)}}with(t){let{major:n=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:l=this.prerelease,build:p=this.build}=t;return new jL(n,i,s,l,p)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return Pt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),Pt(this.build)&&(t+=`+${this.build.join(".")}`),t}};wB.zero=new wB(0,0,0,["0"]);var F_=wB;function lK(e){let t=xB.exec(e);if(!t)return;let[,n,i="0",s="0",l="",p=""]=t;if(!(l&&!g_e.test(l))&&!(p&&!SB.test(p)))return{major:parseInt(n,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:l,build:p}}function y_e(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let n=Math.min(e.length,t.length);for(let i=0;i<n;i++){let s=e[i],l=t[i];if(s===l)continue;let p=TB.test(s),g=TB.test(l);if(p||g){if(p!==g)return p?-1:1;let m=mc(+s,+l);if(m)return m}else{let m=fp(s,l);if(m)return m}}return mc(e.length,t.length)}var TI=class Qlt{constructor(t){this._alternatives=t?I.checkDefined(uK(t),"Invalid range spec."):ce}static tryParse(t){let n=uK(t);if(n){let i=new Qlt("");return i._alternatives=n,i}}test(t){return typeof t=="string"&&(t=new F_(t)),S_e(t,this._alternatives)}toString(){return T_e(this._alternatives)}},X7=/\|\|/,Y7=/\s+/,kB=/^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,v_e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,b_e=/^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function uK(e){let t=[];for(let n of e.trim().split(X7)){if(!n)continue;let i=[];n=n.trim();let s=v_e.exec(n);if(s){if(!x_e(s[1],s[2],i))return}else for(let l of n.split(Y7)){let p=b_e.exec(l.trim());if(!p||!PB(p[1],p[2],i))return}t.push(i)}return t}function CB(e){let t=kB.exec(e);if(!t)return;let[,n,i="*",s="*",l,p]=t;return{version:new F_(M_(n)?0:parseInt(n,10),M_(n)||M_(i)?0:parseInt(i,10),M_(n)||M_(i)||M_(s)?0:parseInt(s,10),l,p),major:n,minor:i,patch:s}}function x_e(e,t,n){let i=CB(e);if(!i)return!1;let s=CB(t);return s?(M_(i.major)||n.push(ug(">=",i.version)),M_(s.major)||n.push(M_(s.minor)?ug("<",s.version.increment("major")):M_(s.patch)?ug("<",s.version.increment("minor")):ug("<=",s.version)),!0):!1}function PB(e,t,n){let i=CB(t);if(!i)return!1;let{version:s,major:l,minor:p,patch:g}=i;if(M_(l))(e==="<"||e===">")&&n.push(ug("<",F_.zero));else switch(e){case"~":n.push(ug(">=",s)),n.push(ug("<",s.increment(M_(p)?"major":"minor")));break;case"^":n.push(ug(">=",s)),n.push(ug("<",s.increment(s.major>0||M_(p)?"major":s.minor>0||M_(g)?"minor":"patch")));break;case"<":case">=":n.push(M_(p)||M_(g)?ug(e,s.with({prerelease:"0"})):ug(e,s));break;case"<=":case">":n.push(M_(p)?ug(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):M_(g)?ug(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):ug(e,s));break;case"=":case void 0:M_(p)||M_(g)?(n.push(ug(">=",s.with({prerelease:"0"}))),n.push(ug("<",s.increment(M_(p)?"major":"minor").with({prerelease:"0"})))):n.push(ug("=",s));break;default:return!1}return!0}function M_(e){return e==="*"||e==="x"||e==="X"}function ug(e,t){return{operator:e,operand:t}}function S_e(e,t){if(t.length===0)return!0;for(let n of t)if(Z7(e,n))return!0;return!1}function Z7(e,t){for(let n of t)if(!eF(e,n.operator,n.operand))return!1;return!0}function eF(e,t,n){let i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return I.assertNever(t)}}function T_e(e){return Dt(e,w_e).join(" || ")||"*"}function w_e(e){return Dt(e,tF).join(" ")}function tF(e){return`${e.operator}${e.operand}`}function pK(){if(Q7())try{let{performance:e}=require("perf_hooks");if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function k_e(){let e=pK();if(!e)return;let{shouldWriteNativeEvents:t,performance:n}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof n.timeOrigin=="number"&&typeof n.now=="function"&&(i.performanceTime=n),i.performanceTime&&typeof n.mark=="function"&&typeof n.measure=="function"&&typeof n.clearMarks=="function"&&typeof n.clearMeasures=="function"&&(i.performance=n),i}var EB=k_e(),rF=EB?.performanceTime;function wI(){return EB}var xc=rF?()=>rF.now():Date.now,DB={};w(DB,{clearMarks:()=>PI,clearMeasures:()=>iF,createTimer:()=>AO,createTimerIf:()=>fK,disable:()=>OB,enable:()=>DI,forEachMark:()=>nF,forEachMeasure:()=>gS,getCount:()=>CI,getDuration:()=>c2,isEnabled:()=>EI,mark:()=>Qc,measure:()=>R_,nullTimer:()=>kI});var PP,x1;function fK(e,t,n,i){return e?AO(t,n,i):kI}function AO(e,t,n){let i=0;return{enter:s,exit:l};function s(){++i===1&&Qc(t)}function l(){--i===0?(Qc(n),R_(e,t,n)):i<0&&I.fail("enter/exit count does not match.")}}var kI={enter:Ko,exit:Ko},ud=!1,IO=xc(),Gb=new Map,EP=new Map,mS=new Map;function Qc(e){if(ud){let t=EP.get(e)??0;EP.set(e,t+1),Gb.set(e,xc()),x1?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function R_(e,t,n){if(ud){let i=(n!==void 0?Gb.get(n):void 0)??xc(),s=(t!==void 0?Gb.get(t):void 0)??IO,l=mS.get(e)||0;mS.set(e,l+(i-s)),x1?.measure(e,t,n)}}function CI(e){return EP.get(e)||0}function c2(e){return mS.get(e)||0}function gS(e){mS.forEach((t,n)=>e(n,t))}function nF(e){Gb.forEach((t,n)=>e(n))}function iF(e){e!==void 0?mS.delete(e):mS.clear(),x1?.clearMeasures(e)}function PI(e){e!==void 0?(EP.delete(e),Gb.delete(e)):(EP.clear(),Gb.clear()),x1?.clearMarks(e)}function EI(){return ud}function DI(e=Ru){var t;return ud||(ud=!0,PP||(PP=wI()),PP?.performance&&(IO=PP.performance.timeOrigin,(PP.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(x1=PP.performance))),!0}function OB(){ud&&(Gb.clear(),EP.clear(),mS.clear(),x1=void 0,ud=!1)}var Fn,FO;(e=>{let t,n=0,i=0,s,l=[],p,g=[];function m(ae,Y,Ee){if(I.assert(!Fn,"Tracing already started"),t===void 0)try{t=require("fs")}catch(ve){throw new Error(`tracing requires having fs
|
|
(original error: ${ve.message||ve})`)}s=ae,l.length=0,p===void 0&&(p=gi(Y,"legend.json")),t.existsSync(Y)||t.mkdirSync(Y,{recursive:!0});let fe=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",te=gi(Y,`trace${fe}.json`),de=gi(Y,`types${fe}.json`);g.push({configFilePath:Ee,tracePath:te,typesPath:de}),i=t.openSync(te,"w"),Fn=e;let me={cat:"__metadata",ph:"M",ts:1e3*xc(),pid:1,tid:1};t.writeSync(i,`[
|
|
`+[{name:"process_name",args:{name:"tsc"},...me},{name:"thread_name",args:{name:"Main"},...me},{name:"TracingStartedInBrowser",...me,cat:"disabled-by-default-devtools.timeline"}].map(ve=>JSON.stringify(ve)).join(`,
|
|
`))}e.startTracing=m;function x(){I.assert(Fn,"Tracing is not in progress"),I.assert(!!l.length==(s!=="server")),t.writeSync(i,`
|
|
]
|
|
`),t.closeSync(i),Fn=void 0,l.length?X(l):g[g.length-1].typesPath=void 0}e.stopTracing=x;function b(ae){s!=="server"&&l.push(ae)}e.recordType=b;let S;(ae=>{ae.Parse="parse",ae.Program="program",ae.Bind="bind",ae.Check="check",ae.CheckTypes="checkTypes",ae.Emit="emit",ae.Session="session"})(S=e.Phase||(e.Phase={}));function P(ae,Y,Ee){z("I",ae,Y,Ee,'"s":"g"')}e.instant=P;let E=[];function N(ae,Y,Ee,fe=!1){fe&&z("B",ae,Y,Ee),E.push({phase:ae,name:Y,args:Ee,time:1e3*xc(),separateBeginAndEnd:fe})}e.push=N;function F(ae){I.assert(E.length>0),W(E.length-1,1e3*xc(),ae),E.length--}e.pop=F;function M(){let ae=1e3*xc();for(let Y=E.length-1;Y>=0;Y--)W(Y,ae);E.length=0}e.popAll=M;let L=1e3*10;function W(ae,Y,Ee){let{phase:fe,name:te,args:de,time:me,separateBeginAndEnd:ve}=E[ae];ve?(I.assert(!Ee,"`results` are not supported for events with `separateBeginAndEnd`"),z("E",fe,te,de,void 0,Y)):L-me%L<=Y-me&&z("X",fe,te,{...de,results:Ee},`"dur":${Y-me}`,me)}function z(ae,Y,Ee,fe,te,de=1e3*xc()){s==="server"&&Y==="checkTypes"||(Qc("beginTracing"),t.writeSync(i,`,
|
|
{"pid":1,"tid":1,"ph":"${ae}","cat":"${Y}","ts":${de},"name":"${Ee}"`),te&&t.writeSync(i,`,${te}`),fe&&t.writeSync(i,`,"args":${JSON.stringify(fe)}`),t.writeSync(i,"}"),Qc("endTracing"),R_("Tracing","beginTracing","endTracing"))}function H(ae){let Y=rn(ae);return Y?{path:Y.path,start:Ee($s(Y,ae.pos)),end:Ee($s(Y,ae.end))}:void 0;function Ee(fe){return{line:fe.line+1,character:fe.character+1}}}function X(ae){var Y,Ee,fe,te,de,me,ve,Pe,Oe,ie,Ne,it,ze,ge,Me,Te,gt,Tt,xe;Qc("beginDumpTypes");let nt=g[g.length-1].typesPath,pe=t.openSync(nt,"w"),He=new Map;t.writeSync(pe,"[");let qe=ae.length;for(let je=0;je<qe;je++){let st=ae[je],jt=st.objectFlags,ar=st.aliasSymbol??st.symbol,Or;if(jt&16|st.flags&2944)try{Or=(Y=st.checker)==null?void 0:Y.typeToString(st)}catch{Or=void 0}let nn={};if(st.flags&8388608){let ui=st;nn={indexedAccessObjectType:(Ee=ui.objectType)==null?void 0:Ee.id,indexedAccessIndexType:(fe=ui.indexType)==null?void 0:fe.id}}let Ct={};if(jt&4){let ui=st;Ct={instantiatedType:(te=ui.target)==null?void 0:te.id,typeArguments:(de=ui.resolvedTypeArguments)==null?void 0:de.map(Wn=>Wn.id),referenceLocation:H(ui.node)}}let pr={};if(st.flags&16777216){let ui=st;pr={conditionalCheckType:(me=ui.checkType)==null?void 0:me.id,conditionalExtendsType:(ve=ui.extendsType)==null?void 0:ve.id,conditionalTrueType:((Pe=ui.resolvedTrueType)==null?void 0:Pe.id)??-1,conditionalFalseType:((Oe=ui.resolvedFalseType)==null?void 0:Oe.id)??-1}}let vn={};if(st.flags&33554432){let ui=st;vn={substitutionBaseType:(ie=ui.baseType)==null?void 0:ie.id,constraintType:(Ne=ui.constraint)==null?void 0:Ne.id}}let ta={};if(jt&1024){let ui=st;ta={reverseMappedSourceType:(it=ui.source)==null?void 0:it.id,reverseMappedMappedType:(ze=ui.mappedType)==null?void 0:ze.id,reverseMappedConstraintType:(ge=ui.constraintType)==null?void 0:ge.id}}let ts={};if(jt&256){let ui=st;ts={evolvingArrayElementType:ui.elementType.id,evolvingArrayFinalType:(Me=ui.finalArrayType)==null?void 0:Me.id}}let Gt,hi=st.checker.getRecursionIdentity(st);hi&&(Gt=He.get(hi),Gt||(Gt=He.size,He.set(hi,Gt)));let $a={id:st.id,intrinsicName:st.intrinsicName,symbolName:ar?.escapedName&&ka(ar.escapedName),recursionId:Gt,isTuple:jt&8?!0:void 0,unionTypes:st.flags&1048576?(Te=st.types)==null?void 0:Te.map(ui=>ui.id):void 0,intersectionTypes:st.flags&2097152?st.types.map(ui=>ui.id):void 0,aliasTypeArguments:(gt=st.aliasTypeArguments)==null?void 0:gt.map(ui=>ui.id),keyofType:st.flags&4194304?(Tt=st.type)==null?void 0:Tt.id:void 0,...nn,...Ct,...pr,...vn,...ta,...ts,destructuringPattern:H(st.pattern),firstDeclaration:H((xe=ar?.declarations)==null?void 0:xe[0]),flags:I.formatTypeFlags(st.flags).split("|"),display:Or};t.writeSync(pe,JSON.stringify($a)),je<qe-1&&t.writeSync(pe,`,
|
|
`)}t.writeSync(pe,`]
|
|
`),t.closeSync(pe),Qc("endDumpTypes"),R_("Dump types","beginDumpTypes","endDumpTypes")}function ne(){p&&t.writeFileSync(p,JSON.stringify(g))}e.dumpLegend=ne})(FO||(FO={}));var aF=FO.startTracing,MO=FO.dumpLegend,sF=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(sF||{}),oF=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(oF||{}),RO=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(RO||{}),OI=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(OI||{}),cF=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(cF||{}),NB=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(NB||{}),NI=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(NI||{}),AB=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(AB||{}),lF=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(lF||{}),jO=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(jO||{}),IB=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(IB||{}),DP=class{},AI=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(AI||{}),FB=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(FB||{}),MB=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(MB||{}),LO=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(LO||{}),uF=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(uF||{}),pF=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(pF||{}),RB=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(RB||{}),jB=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(jB||{}),LB=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(LB||{}),BB=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(BB||{}),qB=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(qB||{}),JB=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(JB||{}),zB=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(zB||{}),BO=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(BO||{}),Kb=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Kb||{}),WB=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(WB||{}),fF=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(fF||{}),qO=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(qO||{}),_F=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(_F||{}),hS=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(hS||{}),JO=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(JO||{}),Qb=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(Qb||{}),yS=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(yS||{}),II=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(II||{}),UB=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(UB||{}),$B=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))($B||{}),VB=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(VB||{}),HB=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(HB||{}),Z=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Z||{}),ee=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(ee||{}),Ce=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(Ce||{}),Je=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Je||{}),Ze=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Ze||{}),bt=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(bt||{}),Ht=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Ht||{}),mr=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(mr||{});function hr(e,t=!0){let n=mr[e.category];return t?n.toLowerCase():n}var Jr=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Jr||{}),On=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(On||{}),fn=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(fn||{}),Ni=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Ni||{}),Ba=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Ba||{}),mn=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(mn||{}),$n=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))($n||{}),Si=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Si||{}),ea=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(ea||{}),zi=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(zi||{}),Hi=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Hi||{}),va=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(va||{}),Li=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Li||{}),fs=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(fs||{}),Ws=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Ws||{}),ws=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(ws||{}),ic=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(ic||{}),dl=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(dl||{}),so=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(so||{}),Us={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Sc=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Sc||{}),mu=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(mu||{}),ac=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(ac||{}),d_=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(d_||{}),pg=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(pg||{}),S1=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(S1||{}),fg={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},dv=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(dv||{});function mv(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function Xb(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}var OP=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(OP||{}),gv=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(gv||{}),Hp=new Date(0);function l2(e,t){return e.getModifiedTime(t)||Hp}function C_e(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var _K={Low:32,Medium:64,High:256},dK=C_e(_K),GB=C_e(_K);function eNt(e){if(!e.getEnvironmentVariable)return;let t=s("TSC_WATCH_POLLINGINTERVAL",gv);dK=l("TSC_WATCH_POLLINGCHUNKSIZE",_K)||dK,GB=l("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",_K)||GB;function n(p,g){return e.getEnvironmentVariable(`${p}_${g.toUpperCase()}`)}function i(p){let g;return m("Low"),m("Medium"),m("High"),g;function m(x){let b=n(p,x);b&&((g||(g={}))[x]=Number(b))}}function s(p,g){let m=i(p);if(m)return x("Low"),x("Medium"),x("High"),!0;return!1;function x(b){g[b]=m[b]||g[b]}}function l(p,g){let m=i(p);return(t||m)&&C_e(m?{...g,...m}:g)}}function QMe(e,t,n,i,s){let l=n;for(let g=t.length;i&&g;p(),g--){let m=t[n];if(m){if(m.isClosed){t[n]=void 0;continue}}else continue;i--;let x=iNt(m,l2(e,m.fileName));if(m.isClosed){t[n]=void 0;continue}s?.(m,n,x),t[n]&&(l<n&&(t[l]=m,t[n]=void 0),l++)}return n;function p(){n++,n===t.length&&(l<n&&(t.length=l),n=0,l=0)}}function tNt(e){let t=[],n=[],i=g(250),s=g(500),l=g(2e3);return p;function p(M,L,W){let z={fileName:M,callback:L,unchangedPolls:0,mtime:l2(e,M)};return t.push(z),P(z,W),{close:()=>{z.isClosed=!0,Vb(t,z)}}}function g(M){let L=[];return L.pollingInterval=M,L.pollIndex=0,L.pollScheduled=!1,L}function m(M,L){L.pollIndex=b(L,L.pollingInterval,L.pollIndex,dK[L.pollingInterval]),L.length?F(L.pollingInterval):(I.assert(L.pollIndex===0),L.pollScheduled=!1)}function x(M,L){b(n,250,0,n.length),m(M,L),!L.pollScheduled&&n.length&&F(250)}function b(M,L,W,z){return QMe(e,M,W,z,H);function H(X,ne,ae){ae?(X.unchangedPolls=0,M!==n&&(M[ne]=void 0,E(X))):X.unchangedPolls!==GB[L]?X.unchangedPolls++:M===n?(X.unchangedPolls=1,M[ne]=void 0,P(X,250)):L!==2e3&&(X.unchangedPolls++,M[ne]=void 0,P(X,L===250?500:2e3))}}function S(M){switch(M){case 250:return i;case 500:return s;case 2e3:return l}}function P(M,L){S(L).push(M),N(L)}function E(M){n.push(M),N(250)}function N(M){S(M).pollScheduled||F(M)}function F(M){S(M).pollScheduled=e.setTimeout(M===250?x:m,M,M===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",S(M))}}function rNt(e,t,n,i){let s=Zl(),l=i?new Map:void 0,p=new Map,g=Xu(t);return m;function m(b,S,P,E){let N=g(b);s.add(N,S).length===1&&l&&l.set(N,n(b)||Hp);let F=Ei(N)||".",M=p.get(F)||x(Ei(b)||".",F,E);return M.referenceCount++,{close:()=>{M.referenceCount===1?(M.close(),p.delete(F)):M.referenceCount--,s.remove(N,S)}}}function x(b,S,P){let E=e(b,1,(N,F)=>{if(!Ua(F))return;let M=Qa(F,b),L=g(M),W=M&&s.get(L);if(W){let z,H=1;if(l){let X=l.get(L);if(N==="change"&&(z=n(M)||Hp,z.getTime()===X.getTime()))return;z||(z=n(M)||Hp),l.set(L,z),X===Hp?H=0:z===Hp&&(H=2)}for(let X of W)X(M,H,z)}},!1,500,P);return E.referenceCount=0,p.set(S,E),E}}function nNt(e){let t=[],n=0,i;return s;function s(g,m){let x={fileName:g,callback:m,mtime:l2(e,g)};return t.push(x),p(),{close:()=>{x.isClosed=!0,Vb(t,x)}}}function l(){i=void 0,n=QMe(e,t,n,dK[250]),p()}function p(){!t.length||i||(i=e.setTimeout(l,2e3,"pollQueue"))}}function XMe(e,t,n,i,s){let p=Xu(t)(n),g=e.get(p);return g?g.callbacks.push(i):e.set(p,{watcher:s((m,x,b)=>{var S;return(S=e.get(p))==null?void 0:S.callbacks.slice().forEach(P=>P(m,x,b))}),callbacks:[i]}),{close:()=>{let m=e.get(p);m&&(!wP(m.callbacks,i)||m.callbacks.length||(e.delete(p),ym(m)))}}}function iNt(e,t){let n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,mK(n,i),t),!0):!1}function mK(e,t){return e===0?0:t===0?2:1}var KB=["/node_modules/.","/.git","/.#"],YMe=Ko;function dF(e){return YMe(e)}function P_e(e){YMe=e}function aNt({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:l,setTimeout:p,clearTimeout:g}){let m=new Map,x=Zl(),b=new Map,S,P=uk(!t),E=Xu(t);return(Y,Ee,fe,te)=>fe?N(Y,te,Ee):e(Y,Ee,fe,te);function N(Y,Ee,fe,te){let de=E(Y),me=m.get(de);me?me.refCount++:(me={watcher:e(Y,Pe=>{var Oe;ne(Pe,Ee)||(Ee?.synchronousWatchDirectory?((Oe=m.get(de))!=null&&Oe.targetWatcher||F(Y,de,Pe),X(Y,de,Ee)):M(Y,de,Pe,Ee))},!1,Ee),refCount:1,childWatches:ce,targetWatcher:void 0,links:void 0},m.set(de,me),X(Y,de,Ee)),te&&(me.links??(me.links=new Set)).add(te);let ve=fe&&{dirName:Y,callback:fe};return ve&&x.add(de,ve),{dirName:Y,close:()=>{var Pe;let Oe=I.checkDefined(m.get(de));ve&&x.remove(de,ve),te&&((Pe=Oe.links)==null||Pe.delete(te)),Oe.refCount--,!Oe.refCount&&(m.delete(de),Oe.links=void 0,ym(Oe),H(Oe),Oe.childWatches.forEach(hg))}}}function F(Y,Ee,fe,te){var de,me;let ve,Pe;Ua(fe)?ve=fe:Pe=fe,x.forEach((Oe,ie)=>{if(!(Pe&&Pe.get(ie)===!0)&&(ie===Ee||La(Ee,ie)&&Ee[ie.length]===jc))if(Pe)if(te){let Ne=Pe.get(ie);Ne?Ne.push(...te):Pe.set(ie,te.slice())}else Pe.set(ie,!0);else Oe.forEach(({callback:Ne})=>Ne(ve))}),(me=(de=m.get(Ee))==null?void 0:de.links)==null||me.forEach(Oe=>{let ie=Ne=>gi(Oe,Pd(Y,Ne,E));Pe?F(Oe,E(Oe),Pe,te?.map(ie)):F(Oe,E(Oe),ie(ve))})}function M(Y,Ee,fe,te){let de=m.get(Ee);if(de&&s(Y,1)){L(Y,Ee,fe,te);return}F(Y,Ee,fe),H(de),z(de)}function L(Y,Ee,fe,te){let de=b.get(Ee);de?de.fileNames.push(fe):b.set(Ee,{dirName:Y,options:te,fileNames:[fe]}),S&&(g(S),S=void 0),S=p(W,1e3,"timerToUpdateChildWatches")}function W(){var Y;S=void 0,dF(`sysLog:: onTimerToUpdateChildWatches:: ${b.size}`);let Ee=xc(),fe=new Map;for(;!S&&b.size;){let de=b.entries().next();I.assert(!de.done);let{value:[me,{dirName:ve,options:Pe,fileNames:Oe}]}=de;b.delete(me);let ie=X(ve,me,Pe);(Y=m.get(me))!=null&&Y.targetWatcher||F(ve,me,fe,ie?void 0:Oe)}dF(`sysLog:: invokingWatchers:: Elapsed:: ${xc()-Ee}ms:: ${b.size}`),x.forEach((de,me)=>{let ve=fe.get(me);ve&&de.forEach(({callback:Pe,dirName:Oe})=>{cs(ve)?ve.forEach(Pe):Pe(Oe)})});let te=xc()-Ee;dF(`sysLog:: Elapsed:: ${te}ms:: onTimerToUpdateChildWatches:: ${b.size} ${S}`)}function z(Y){if(!Y)return;let Ee=Y.childWatches;Y.childWatches=ce;for(let fe of Ee)fe.close(),z(m.get(E(fe.dirName)))}function H(Y){Y?.targetWatcher&&(Y.targetWatcher.close(),Y.targetWatcher=void 0)}function X(Y,Ee,fe){let te=m.get(Ee);if(!te)return!1;let de=Zs(l(Y)),me,ve;return P(de,Y)===0?me=o2(s(Y,1)?Bi(i(Y),ie=>{let Ne=Qa(ie,Y);return!ne(Ne,fe)&&P(Ne,Zs(l(Ne)))===0?Ne:void 0}):ce,te.childWatches,(ie,Ne)=>P(ie,Ne.dirName),Pe,hg,Oe):te.targetWatcher&&P(de,te.targetWatcher.dirName)===0?(me=!1,I.assert(te.childWatches===ce)):(H(te),te.targetWatcher=N(de,fe,void 0,Y),te.childWatches.forEach(hg),me=!0),te.childWatches=ve||ce,me;function Pe(ie){let Ne=N(ie,fe);Oe(Ne)}function Oe(ie){(ve||(ve=[])).push(ie)}}function ne(Y,Ee){return Pt(KB,fe=>ae(Y,fe))||ZMe(Y,Ee,t,n)}function ae(Y,Ee){return Y.includes(Ee)?!0:t?!1:E(Y).includes(Ee)}}var E_e=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(E_e||{});function sNt(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function oNt(e,t,n){return(i,s,l)=>{i==="rename"?(l||(l=n(e)||Hp),t(e,l!==Hp?0:2,l)):t(e,1,l)}}function ZMe(e,t,n,i){return(t?.excludeDirectories||t?.excludeFiles)&&(Qz(e,t?.excludeFiles,n,i())||Qz(e,t?.excludeDirectories,n,i()))}function eRe(e,t,n,i,s){return(l,p)=>{if(l==="rename"){let g=p?Zs(gi(e,p)):e;(!p||!ZMe(g,n,i,s))&&t(g)}}}function D_e({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:l,useCaseSensitiveFileNames:p,getCurrentDirectory:g,fsSupportsRecursiveFsWatch:m,getAccessibleSortedChildDirectories:x,realpath:b,tscWatchFile:S,useNonPollingWatchers:P,tscWatchDirectory:E,inodeWatching:N,fsWatchWithTimestamp:F,sysLog:M}){let L=new Map,W=new Map,z=new Map,H,X,ne,ae,Y=!1;return{watchFile:Ee,watchDirectory:ve};function Ee(ge,Me,Te,gt){gt=de(gt,P);let Tt=I.checkDefined(gt.watchFile);switch(Tt){case 0:return ie(ge,Me,250,void 0);case 1:return ie(ge,Me,Te,void 0);case 2:return fe()(ge,Me,Te,void 0);case 3:return te()(ge,Me,void 0,void 0);case 4:return Ne(ge,0,oNt(ge,Me,t),!1,Te,QM(gt));case 5:return ne||(ne=rNt(Ne,p,t,F)),ne(ge,Me,Te,QM(gt));default:I.assertNever(Tt)}}function fe(){return H||(H=tNt({getModifiedTime:t,setTimeout:n}))}function te(){return X||(X=nNt({getModifiedTime:t,setTimeout:n}))}function de(ge,Me){if(ge&&ge.watchFile!==void 0)return ge;switch(S){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return me(4,1,ge);case"UseFsEventsWithFallbackDynamicPolling":return me(4,2,ge);case"UseFsEventsOnParentDirectory":Me=!0;default:return Me?me(5,1,ge):{watchFile:4}}}function me(ge,Me,Te){let gt=Te?.fallbackPolling;return{watchFile:ge,fallbackPolling:gt===void 0?Me:gt}}function ve(ge,Me,Te,gt){return m?Ne(ge,1,eRe(ge,Me,gt,p,g),Te,500,QM(gt)):(ae||(ae=aNt({useCaseSensitiveFileNames:p,getCurrentDirectory:g,fileSystemEntryExists:l,getAccessibleSortedChildDirectories:x,watchDirectory:Pe,realpath:b,setTimeout:n,clearTimeout:i})),ae(ge,Me,Te,gt))}function Pe(ge,Me,Te,gt){I.assert(!Te);let Tt=Oe(gt),xe=I.checkDefined(Tt.watchDirectory);switch(xe){case 1:return ie(ge,()=>Me(ge),500,void 0);case 2:return fe()(ge,()=>Me(ge),500,void 0);case 3:return te()(ge,()=>Me(ge),void 0,void 0);case 0:return Ne(ge,1,eRe(ge,Me,gt,p,g),Te,500,QM(Tt));default:I.assertNever(xe)}}function Oe(ge){if(ge&&ge.watchDirectory!==void 0)return ge;switch(E){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Me=ge?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Me!==void 0?Me:void 0}}}function ie(ge,Me,Te,gt){return XMe(L,p,ge,Me,Tt=>e(ge,Tt,Te,gt))}function Ne(ge,Me,Te,gt,Tt,xe){return XMe(gt?z:W,p,ge,Te,nt=>it(ge,Me,nt,gt,Tt,xe))}function it(ge,Me,Te,gt,Tt,xe){let nt,pe;N&&(nt=ge.substring(ge.lastIndexOf(jc)),pe=nt.slice(jc.length));let He=l(ge,Me)?je():ar();return{close:()=>{He&&(He.close(),He=void 0)}};function qe(Or){He&&(M(`sysLog:: ${ge}:: Changing watcher to ${Or===je?"Present":"Missing"}FileSystemEntryWatcher`),He.close(),He=Or())}function je(){if(Y)return M(`sysLog:: ${ge}:: Defaulting to watchFile`),jt();try{let Or=(Me===1||!F?s:ze)(ge,gt,N?st:Te);return Or.on("error",()=>{Te("rename",""),qe(ar)}),Or}catch(Or){return Y||(Y=Or.code==="ENOSPC"),M(`sysLog:: ${ge}:: Changing to watchFile`),jt()}}function st(Or,nn){let Ct;if(nn&&bc(nn,"~")&&(Ct=nn,nn=nn.slice(0,nn.length-1)),Or==="rename"&&(!nn||nn===pe||bc(nn,nt))){let pr=t(ge)||Hp;Ct&&Te(Or,Ct,pr),Te(Or,nn,pr),N?qe(pr===Hp?ar:je):pr===Hp&&qe(ar)}else Ct&&Te(Or,Ct),Te(Or,nn)}function jt(){return Ee(ge,sNt(Te),Tt,xe)}function ar(){return Ee(ge,(Or,nn,Ct)=>{nn===0&&(Ct||(Ct=t(ge)||Hp),Ct!==Hp&&(Te("rename","",Ct),qe(je)))},Tt,xe)}}function ze(ge,Me,Te){let gt=t(ge)||Hp;return s(ge,Me,(Tt,xe,nt)=>{Tt==="change"&&(nt||(nt=t(ge)||Hp),nt.getTime()===gt.getTime())||(gt=nt||t(ge)||Hp,Te(Tt,xe,gt))})}}function O_e(e){let t=e.writeFile;e.writeFile=(n,i,s)=>YQ(n,i,!!s,(l,p,g)=>t.call(e,l,p,g),l=>e.createDirectory(l),l=>e.directoryExists(l))}var Ru=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/,s=require("fs"),l=require("path"),p=require("os"),g;try{g=require("crypto")}catch{g=void 0}let m,x="./profile.cpuprofile",b=process.platform==="darwin",S=process.platform==="linux"||b,P={throwIfNoEntry:!1},E=p.platform(),N=fe(),F=s.realpathSync.native?process.platform==="win32"?Me:s.realpathSync.native:s.realpathSync,M=__filename.endsWith("sys.js")?l.join(l.dirname(__dirname),"__fake__.js"):__filename,L=process.platform==="win32"||b,W=Cu(()=>process.cwd()),{watchFile:z,watchDirectory:H}=D_e({pollingWatchFileWorker:de,getModifiedTime:gt,setTimeout,clearTimeout,fsWatchWorker:me,useCaseSensitiveFileNames:N,getCurrentDirectory:W,fileSystemEntryExists:Ne,fsSupportsRecursiveFsWatch:L,getAccessibleSortedChildDirectories:pe=>Oe(pe).directories,realpath:Te,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:S,fsWatchWithTimestamp:b,sysLog:dF}),X={args:process.argv.slice(2),newLine:p.EOL,useCaseSensitiveFileNames:N,write(pe){process.stdout.write(pe)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ve,writeFile:Pe,watchFile:z,watchDirectory:H,preferNonRecursiveWatch:!L,resolvePath:pe=>l.resolve(pe),fileExists:it,directoryExists:ze,getAccessibleFileSystemEntries:Oe,createDirectory(pe){if(!X.directoryExists(pe))try{s.mkdirSync(pe)}catch(He){if(He.code!=="EEXIST")throw He}},getExecutingFilePath(){return M},getCurrentDirectory:W,getDirectories:ge,getEnvironmentVariable(pe){return process.env[pe]||""},readDirectory:ie,getModifiedTime:gt,setModifiedTime:Tt,deleteFile:xe,createHash:g?nt:mv,createSHA256Hash:g?nt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(pe){let He=ne(pe);return He?.isFile()?He.size:0},exit(pe){Ee(()=>process.exit(pe))},enableCPUProfiler:ae,disableCPUProfiler:Ee,cpuProfilingEnabled:()=>!!m||Ta(process.execArgv,"--cpu-prof")||Ta(process.execArgv,"--prof"),realpath:Te,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Pt(process.execArgv,pe=>/^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(pe))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{require("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H")},setBlocking:()=>{var pe;let He=(pe=process.stdout)==null?void 0:pe._handle;He&&He.setBlocking&&He.setBlocking(!0)},base64decode:pe=>Buffer.from(pe,"base64").toString("utf8"),base64encode:pe=>Buffer.from(pe).toString("base64"),require:(pe,He)=>{try{let qe=tve(He,pe,X);return{module:require(qe),modulePath:qe,error:void 0}}catch(qe){return{module:void 0,modulePath:void 0,error:qe}}}};return X;function ne(pe){try{return s.statSync(pe,P)}catch{return}}function ae(pe,He){if(m)return He(),!1;let qe=require("inspector");if(!qe||!qe.Session)return He(),!1;let je=new qe.Session;return je.connect(),je.post("Profiler.enable",()=>{je.post("Profiler.start",()=>{m=je,x=pe,He()})}),!0}function Y(pe){let He=0,qe=new Map,je=_p(l.dirname(M)),st=`file://${Lg(je)===1?"":"/"}${je}`;for(let jt of pe.nodes)if(jt.callFrame.url){let ar=_p(jt.callFrame.url);am(st,ar,N)?jt.callFrame.url=IP(st,ar,st,Xu(N),!0):i.test(ar)||(jt.callFrame.url=(qe.has(ar)?qe:qe.set(ar,`external${He}.js`)).get(ar),He++)}return pe}function Ee(pe){if(m&&m!=="stopping"){let He=m;return m.post("Profiler.stop",(qe,{profile:je})=>{var st;if(!qe){(st=ne(x))!=null&&st.isDirectory()&&(x=l.join(x,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`));try{s.mkdirSync(l.dirname(x),{recursive:!0})}catch{}s.writeFileSync(x,JSON.stringify(Y(je)))}m=void 0,He.disconnect(),pe()}),m="stopping",!0}else return pe(),!1}function fe(){return E==="win32"||E==="win64"?!1:!it(te(__filename))}function te(pe){return pe.replace(/\w/g,He=>{let qe=He.toUpperCase();return He===qe?He.toLowerCase():qe})}function de(pe,He,qe){s.watchFile(pe,{persistent:!0,interval:qe},st);let je;return{close:()=>s.unwatchFile(pe,st)};function st(jt,ar){let Or=+ar.mtime==0||je===2;if(+jt.mtime==0){if(Or)return;je=2}else if(Or)je=0;else{if(+jt.mtime==+ar.mtime)return;je=1}He(pe,je,jt.mtime)}}function me(pe,He,qe){return s.watch(pe,L?{persistent:!0,recursive:!!He}:{persistent:!0},qe)}function ve(pe,He){let qe;try{qe=s.readFileSync(pe)}catch{return}let je=qe.length;if(je>=2&&qe[0]===254&&qe[1]===255){je&=-2;for(let st=0;st<je;st+=2){let jt=qe[st];qe[st]=qe[st+1],qe[st+1]=jt}return qe.toString("utf16le",2)}return je>=2&&qe[0]===255&&qe[1]===254?qe.toString("utf16le",2):je>=3&&qe[0]===239&&qe[1]===187&&qe[2]===191?qe.toString("utf8",3):qe.toString("utf8")}function Pe(pe,He,qe){qe&&(He=e+He);let je;try{je=s.openSync(pe,"w"),s.writeSync(je,He,void 0,"utf8")}finally{je!==void 0&&s.closeSync(je)}}function Oe(pe){try{let He=s.readdirSync(pe||".",{withFileTypes:!0}),qe=[],je=[];for(let st of He){let jt=typeof st=="string"?st:st.name;if(jt==="."||jt==="..")continue;let ar;if(typeof st=="string"||st.isSymbolicLink()){let Or=gi(pe,jt);if(ar=ne(Or),!ar)continue}else ar=st;ar.isFile()?qe.push(jt):ar.isDirectory()&&je.push(jt)}return qe.sort(),je.sort(),{files:qe,directories:je}}catch{return IX}}function ie(pe,He,qe,je,st){return DX(pe,He,qe,je,N,process.cwd(),st,Oe,Te)}function Ne(pe,He){let qe=ne(pe);if(!qe)return!1;switch(He){case 0:return qe.isFile();case 1:return qe.isDirectory();default:return!1}}function it(pe){return Ne(pe,0)}function ze(pe){return Ne(pe,1)}function ge(pe){return Oe(pe).directories.slice()}function Me(pe){return pe.length<260?s.realpathSync.native(pe):s.realpathSync(pe)}function Te(pe){try{return F(pe)}catch{return pe}}function gt(pe){var He;return(He=ne(pe))==null?void 0:He.mtime}function Tt(pe,He){try{s.utimesSync(pe,He,He)}catch{return}}function xe(pe){try{return s.unlinkSync(pe)}catch{return}}function nt(pe){let He=g.createHash("sha256");return He.update(pe),He.digest("hex")}}let n;return Q7()&&(n=t()),n&&O_e(n),n})();function tRe(e){Ru=e}Ru&&Ru.getEnvironmentVariable&&(eNt(Ru),I.setAssertionLevel(/^development$/i.test(Ru.getEnvironmentVariable("NODE_ENV"))?1:0)),Ru&&Ru.debugMode&&(I.isDebugging=!0);var jc="/",QB="\\",rRe="://",cNt=/\\/g;function gK(e){return e===47||e===92}function N_e(e){return XB(e)<0}function j_(e){return XB(e)>0}function hK(e){let t=XB(e);return t>0&&t===e.length}function FI(e){return XB(e)!==0}function pd(e){return/^\.\.?(?:$|[\\/])/.test(e)}function yK(e){return!FI(e)&&!pd(e)}function zO(e){return gu(e).includes(".")}function il(e,t){return e.length>t.length&&bc(e,t)}function Wl(e,t){for(let n of t)if(il(e,n))return!0;return!1}function Yb(e){return e.length>0&&gK(e.charCodeAt(e.length-1))}function nRe(e){return e>=97&&e<=122||e>=65&&e<=90}function lNt(e,t){let n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function XB(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?jc:QB,2);return i<0?e.length:i+1}if(nRe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let n=e.indexOf(rRe);if(n!==-1){let i=n+rRe.length,s=e.indexOf(jc,i);if(s!==-1){let l=e.slice(0,n),p=e.slice(i,s);if(l==="file"&&(p===""||p==="localhost")&&nRe(e.charCodeAt(s+1))){let g=lNt(e,s+2);if(g!==-1){if(e.charCodeAt(g)===47)return~(g+1);if(g===e.length)return~g}}return~(s+1)}return~e.length}return 0}function Lg(e){let t=XB(e);return t<0?~t:t}function Ei(e){e=_p(e);let t=Lg(e);return t===e.length?e:(e=T1(e),e.slice(0,Math.max(t,e.lastIndexOf(jc))))}function gu(e,t,n){if(e=_p(e),Lg(e)===e.length)return"";e=T1(e);let s=e.slice(Math.max(Lg(e),e.lastIndexOf(jc)+1)),l=t!==void 0&&n!==void 0?NP(s,t,n):void 0;return l?s.slice(0,s.length-l.length):s}function iRe(e,t,n){if(La(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(n(i,t))return i}}function uNt(e,t,n){if(typeof t=="string")return iRe(e,t,n)||"";for(let i of t){let s=iRe(e,i,n);if(s)return s}return""}function NP(e,t,n){if(t)return uNt(T1(e),t,n?cg:fv);let i=gu(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function pNt(e,t){let n=e.substring(0,t),i=e.substring(t).split(jc);return i.length&&!dc(i)&&i.pop(),[n,...i]}function jp(e,t=""){return e=gi(t,e),pNt(e,Lg(e))}function vS(e,t){return e.length===0?"":(e[0]&&ju(e[0]))+e.slice(1,t).join(jc)}function _p(e){return e.includes("\\")?e.replace(cNt,jc):e}function AP(e){if(!Pt(e))return[];let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function gi(e,...t){e&&(e=_p(e));for(let n of t)n&&(n=_p(n),!e||Lg(n)!==0?e=n:e=ju(e)+n);return e}function Zb(e,...t){return Zs(Pt(t)?gi(e,...t):_p(e))}function YB(e,t){return AP(jp(e,t))}function Qa(e,t){let n=Lg(e);n===0&&t?(e=gi(t,e),n=Lg(e)):e=_p(e);let i=aRe(e);if(i!==void 0)return i.length>n?T1(i):i;let s=e.length,l=e.substring(0,n),p,g=n,m=g,x=g,b=n!==0;for(;g<s;){m=g;let S=e.charCodeAt(g);for(;S===47&&g+1<s;)g++,S=e.charCodeAt(g);g>m&&(p??(p=e.substring(0,m-1)),m=g);let P=e.indexOf(jc,g+1);P===-1&&(P=s);let E=P-m;if(E===1&&e.charCodeAt(g)===46)p??(p=e.substring(0,x));else if(E===2&&e.charCodeAt(g)===46&&e.charCodeAt(g+1)===46)if(!b)p!==void 0?p+=p.length===n?"..":"/..":x=g+2;else if(p===void 0)x-2>=0?p=e.substring(0,Math.max(n,e.lastIndexOf(jc,x-2))):p=e.substring(0,x);else{let N=p.lastIndexOf(jc);N!==-1?p=p.substring(0,Math.max(n,N)):p=l,p.length===n&&(b=n!==0)}else p!==void 0?(p.length!==n&&(p+=jc),b=!0,p+=e.substring(m,P)):(b=!0,x=P);g=P+1}return p??(s>n?T1(e):e)}function Zs(e){e=_p(e);let t=aRe(e);return t!==void 0?t:(t=Qa(e,""),t&&Yb(e)?ju(t):t)}function aRe(e){if(!bK.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!bK.test(e)))return e}function fNt(e){return e.length===0?"":e.slice(1).join(jc)}function vK(e,t){return fNt(YB(e,t))}function Ec(e,t,n){let i=j_(e)?Zs(e):Qa(e,t);return n(i)}function T1(e){return Yb(e)?e.substr(0,e.length-1):e}function ju(e){return Yb(e)?e:e+jc}function _k(e){return!FI(e)&&!pd(e)?"./"+e:e}function mF(e,t,n,i){let s=n!==void 0&&i!==void 0?NP(e,n,i):NP(e);return s?e.slice(0,e.length-s.length)+(La(t,".")?t:"."+t):e}function ZB(e,t){let n=Rz(e);return n?e.slice(0,e.length-n.length)+(La(t,".")?t:"."+t):mF(e,t)}var bK=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function A_e(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,Lg(e)),s=t.substring(0,Lg(t)),l=xP(i,s);if(l!==0)return l;let p=e.substring(i.length),g=t.substring(s.length);if(!bK.test(p)&&!bK.test(g))return n(p,g);let m=AP(jp(e)),x=AP(jp(t)),b=Math.min(m.length,x.length);for(let S=1;S<b;S++){let P=n(m[S],x[S]);if(P!==0)return P}return mc(m.length,x.length)}function sRe(e,t){return A_e(e,t,fp)}function oRe(e,t){return A_e(e,t,xP)}function S0(e,t,n,i){return typeof n=="string"?(e=gi(n,e),t=gi(n,t)):typeof n=="boolean"&&(i=n),A_e(e,t,uk(i))}function am(e,t,n,i){if(typeof n=="string"?(e=gi(n,e),t=gi(n,t)):typeof n=="boolean"&&(i=n),e===void 0||t===void 0)return!1;if(e===t)return!0;let s=AP(jp(e)),l=AP(jp(t));if(l.length<s.length)return!1;let p=i?cg:fv;for(let g=0;g<s.length;g++)if(!(g===0?cg:p)(s[g],l[g]))return!1;return!0}function xK(e,t,n){let i=n(e),s=n(t);return La(i,s+"/")||La(i,s+"\\")}function cRe(e,t,n,i){let s=AP(jp(e)),l=AP(jp(t)),p;for(p=0;p<s.length&&p<l.length;p++){let x=i(s[p]),b=i(l[p]);if(!(p===0?cg:n)(x,b))break}if(p===0)return l;let g=l.slice(p),m=[];for(;p<s.length;p++)m.push("..");return["",...m,...g]}function Pd(e,t,n){I.assert(Lg(e)>0==Lg(t)>0,"Paths must either both be absolute or both be relative");let l=cRe(e,t,(typeof n=="boolean"?n:!1)?cg:fv,typeof n=="function"?n:vc);return vS(l)}function MI(e,t,n){return j_(e)?IP(t,e,t,n,!1):e}function WO(e,t,n){return _k(Pd(Ei(e),t,n))}function IP(e,t,n,i,s){let l=cRe(Zb(n,e),Zb(n,t),fv,i),p=l[0];if(s&&j_(p)){let g=p.charAt(0)===jc?"file://":"file:///";l[0]=g+p}return vS(l)}function RI(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let i=Ei(e);if(i===e)return;e=i}}function eq(e){return bc(e,"/node_modules")}function C(e,t,n,i,s,l,p){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:l,reportsDeprecated:p}}var y={Unterminated_string_literal:C(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:C(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:C(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:C(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:C(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:C(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:C(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:C(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:C(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:C(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:C(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:C(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:C(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:C(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:C(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:C(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:C(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:C(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:C(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:C(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:C(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:C(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:C(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:C(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:C(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:C(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:C(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:C(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:C(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:C(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:C(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:C(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:C(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:C(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:C(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:C(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:C(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:C(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:C(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:C(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:C(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:C(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:C(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:C(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:C(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:C(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:C(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:C(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:C(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:C(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:C(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:C(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:C(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:C(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:C(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:C(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:C(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:C(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:C(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:C(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:C(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:C(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:C(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:C(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:C(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:C(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:C(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:C(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:C(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:C(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:C(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:C(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:C(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:C(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:C(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:C(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:C(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:C(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:C(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:C(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:C(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:C(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:C(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:C(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:C(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:C(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:C(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:C(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:C(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:C(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:C(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:C(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:C(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:C(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:C(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:C(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:C(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:C(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:C(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:C(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:C(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:C(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:C(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:C(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:C(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:C(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:C(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:C(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:C(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:C(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:C(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:C(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:C(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:C(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:C(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:C(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:C(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:C(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:C(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:C(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:C(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:C(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:C(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:C(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:C(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:C(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:C(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:C(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:C(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:C(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:C(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:C(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:C(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:C(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:C(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:C(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:C(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:C(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:C(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:C(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:C(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:C(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:C(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:C(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:C(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:C(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:C(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:C(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:C(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:C(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:C(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:C(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:C(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:C(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:C(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:C(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:C(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:C(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:C(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:C(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:C(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:C(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:C(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:C(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:C(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:C(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:C(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:C(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:C(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:C(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:C(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:C(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:C(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:C(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:C(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:C(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:C(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:C(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:C(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:C(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:C(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:C(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:C(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:C(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:C(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:C(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:C(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:C(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:C(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:C(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:C(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:C(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:C(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:C(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:C(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:C(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:C(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:C(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:C(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:C(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:C(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:C(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:C(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:C(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:C(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:C(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:C(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:C(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:C(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:C(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:C(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:C(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:C(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:C(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:C(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:C(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:C(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:C(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:C(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:C(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:C(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:C(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:C(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:C(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:C(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:C(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:C(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:C(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:C(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:C(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:C(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:C(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:C(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:C(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:C(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:C(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:C(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:C(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:C(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:C(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:C(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:C(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:C(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:C(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:C(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:C(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:C(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:C(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:C(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:C(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:C(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:C(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:C(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:C(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:C(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:C(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:C(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:C(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext:C(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve:C(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:C(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:C(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:C(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:C(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:C(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:C(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:C(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:C(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:C(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:C(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:C(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:C(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:C(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:C(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:C(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:C(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext:C(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', or 'nodenext'."),A_label_is_not_allowed_here:C(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:C(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:C(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:C(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:C(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:C(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:C(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:C(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:C(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:C(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:C(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:C(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:C(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:C(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:C(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:C(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:C(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:C(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:C(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:C(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:C(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:C(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:C(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:C(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:C(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:C(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:C(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:C(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:C(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:C(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:C(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:C(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:C(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:C(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:C(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:C(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:C(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:C(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:C(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:C(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:C(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:C(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:C(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:C(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:C(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:C(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:C(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:C(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:C(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:C(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:C(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:C(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:C(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:C(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:C(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:C(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:C(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:C(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:C(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:C(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:C(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:C(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:C(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:C(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:C(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:C(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:C(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:C(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:C(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:C(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:C(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:C(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:C(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:C(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:C(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:C(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:C(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:C(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:C(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:C(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:C(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:C(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:C(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:C(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:C(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:C(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:C(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:C(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:C(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:C(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:C(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:C(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:C(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:C(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:C(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:C(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:C(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:C(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:C(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:C(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:C(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:C(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:C(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:C(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:C(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:C(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:C(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:C(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:C(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:C(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:C(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:C(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:C(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:C(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:C(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:C(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:C(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:C(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:C(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:C(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:C(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:C(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:C(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:C(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:C(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:C(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:C(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:C(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:C(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:C(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:C(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:C(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:C(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:C(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:C(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:C(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:C(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:C(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:C(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:C(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:C(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:C(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:C(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:C(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:C(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:C(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:C(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:C(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:C(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:C(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:C(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:C(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:C(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:C(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:C(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:C(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:C(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:C(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:C(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:C(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:C(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:C(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:C(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:C(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:C(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:C(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:C(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:C(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:C(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:C(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:C(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:C(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:C(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:C(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:C(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:C(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:C(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:C(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:C(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:C(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:C(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:C(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),The_types_of_0_are_incompatible_between_these_types:C(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:C(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:C(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:C(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:C(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:C(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:C(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:C(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:C(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:C(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:C(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:C(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:C(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:C(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:C(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:C(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:C(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:C(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:C(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:C(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:C(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:C(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:C(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:C(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:C(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:C(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:C(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:C(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:C(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:C(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:C(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:C(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:C(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:C(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:C(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:C(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:C(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:C(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:C(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:C(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:C(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:C(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:C(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:C(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:C(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:C(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:C(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:C(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:C(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:C(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:C(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:C(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:C(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:C(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:C(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:C(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:C(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:C(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:C(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:C(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:C(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:C(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:C(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:C(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:C(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:C(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:C(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:C(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:C(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:C(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:C(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:C(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:C(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:C(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:C(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:C(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:C(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:C(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:C(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:C(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:C(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:C(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:C(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:C(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:C(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:C(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:C(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:C(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:C(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:C(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:C(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:C(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:C(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:C(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:C(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:C(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:C(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:C(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:C(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:C(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:C(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:C(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:C(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:C(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:C(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:C(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:C(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:C(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:C(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:C(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:C(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:C(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:C(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:C(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:C(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:C(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:C(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:C(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:C(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:C(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:C(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:C(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:C(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:C(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:C(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:C(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:C(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:C(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:C(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:C(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:C(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:C(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:C(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:C(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:C(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:C(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:C(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:C(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:C(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:C(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:C(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:C(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:C(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:C(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:C(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:C(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:C(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:C(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:C(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:C(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:C(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:C(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:C(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:C(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:C(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:C(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:C(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:C(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:C(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:C(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:C(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:C(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:C(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:C(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:C(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:C(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:C(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:C(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:C(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:C(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:C(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:C(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:C(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:C(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:C(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:C(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:C(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:C(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:C(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:C(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:C(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:C(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:C(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:C(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:C(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:C(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:C(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:C(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:C(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:C(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:C(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:C(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:C(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:C(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:C(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:C(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:C(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:C(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:C(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:C(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:C(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:C(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:C(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:C(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:C(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:C(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:C(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:C(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:C(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:C(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:C(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:C(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:C(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:C(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:C(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:C(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:C(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:C(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:C(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:C(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:C(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:C(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:C(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:C(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:C(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:C(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:C(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:C(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:C(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:C(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:C(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:C(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:C(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:C(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:C(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:C(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:C(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:C(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:C(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:C(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:C(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:C(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:C(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:C(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:C(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:C(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:C(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:C(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:C(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:C(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:C(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:C(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:C(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:C(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:C(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:C(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:C(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:C(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:C(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:C(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:C(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:C(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:C(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:C(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:C(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:C(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:C(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:C(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:C(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:C(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:C(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:C(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:C(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:C(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:C(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:C(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:C(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:C(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:C(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:C(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:C(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:C(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:C(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:C(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:C(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:C(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:C(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:C(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:C(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:C(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:C(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:C(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:C(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:C(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:C(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:C(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:C(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:C(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:C(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:C(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:C(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:C(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:C(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:C(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:C(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:C(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:C(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:C(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:C(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:C(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:C(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:C(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:C(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:C(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:C(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:C(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:C(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:C(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:C(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:C(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:C(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:C(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:C(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:C(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:C(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:C(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:C(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:C(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:C(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:C(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:C(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:C(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:C(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:C(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:C(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:C(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:C(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:C(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:C(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:C(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:C(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:C(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:C(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:C(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:C(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:C(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:C(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:C(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:C(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:C(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:C(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:C(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:C(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:C(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:C(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:C(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:C(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:C(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:C(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:C(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:C(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:C(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:C(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:C(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:C(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:C(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:C(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:C(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:C(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:C(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:C(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:C(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:C(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:C(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:C(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:C(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:C(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:C(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:C(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:C(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:C(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:C(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:C(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:C(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:C(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:C(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:C(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:C(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:C(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:C(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:C(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:C(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:C(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:C(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:C(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:C(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:C(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:C(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:C(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:C(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:C(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:C(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:C(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:C(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:C(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:C(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:C(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:C(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:C(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:C(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:C(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:C(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:C(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:C(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:C(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:C(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:C(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:C(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:C(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:C(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:C(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:C(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:C(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:C(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:C(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:C(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:C(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:C(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:C(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:C(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:C(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:C(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:C(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:C(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:C(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:C(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:C(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:C(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:C(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:C(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:C(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:C(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:C(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:C(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:C(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:C(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:C(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:C(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:C(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:C(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:C(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:C(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:C(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:C(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:C(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:C(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:C(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:C(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:C(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:C(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:C(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:C(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:C(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:C(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:C(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:C(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:C(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:C(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:C(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:C(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:C(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:C(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:C(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:C(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:C(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:C(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:C(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:C(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:C(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:C(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:C(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:C(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:C(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:C(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:C(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:C(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:C(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:C(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:C(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:C(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:C(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:C(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:C(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:C(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:C(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:C(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:C(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:C(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:C(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:C(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:C(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:C(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:C(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:C(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:C(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:C(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:C(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:C(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:C(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:C(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:C(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:C(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:C(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:C(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:C(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:C(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:C(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:C(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:C(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:C(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:C(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:C(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:C(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:C(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:C(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:C(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:C(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:C(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:C(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:C(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:C(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:C(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:C(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:C(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:C(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),Import_declaration_0_is_using_private_name_1:C(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:C(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:C(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:C(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:C(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:C(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:C(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:C(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:C(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:C(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:C(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:C(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:C(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:C(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:C(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:C(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:C(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:C(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:C(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:C(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:C(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:C(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:C(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:C(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:C(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:C(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:C(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:C(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:C(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:C(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:C(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:C(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:C(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:C(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:C(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:C(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:C(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:C(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:C(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:C(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:C(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:C(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:C(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:C(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:C(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:C(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:C(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:C(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:C(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:C(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:C(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:C(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:C(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:C(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:C(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:C(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:C(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:C(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:C(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:C(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:C(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:C(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:C(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:C(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:C(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:C(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:C(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:C(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:C(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:C(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:C(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:C(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:C(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:C(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:C(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:C(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:C(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:C(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:C(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:C(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:C(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:C(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:C(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:C(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:C(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:C(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:C(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:C(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:C(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:C(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:C(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:C(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:C(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:C(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:C(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:C(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:C(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:C(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:C(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:C(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option:C(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:C(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:C(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:C(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:C(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:C(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:C(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:C(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:C(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:C(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:C(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:C(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:C(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:C(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:C(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:C(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:C(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:C(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:C(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:C(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:C(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:C(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:C(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:C(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:C(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:C(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:C(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:C(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:C(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:C(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:C(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:C(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:C(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:C(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:C(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:C(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:C(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:C(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:C(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:C(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:C(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:C(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:C(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:C(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:C(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:C(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:C(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:C(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:C(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:C(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:C(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:C(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:C(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:C(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:C(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:C(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:C(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:C(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:C(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:C(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:C(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:C(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:C(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:C(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:C(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:C(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:C(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:C(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:C(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:C(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:C(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:C(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:C(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:C(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:C(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:C(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:C(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:C(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:C(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:C(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:C(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:C(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:C(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:C(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:C(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:C(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:C(6024,3,"options_6024","options"),file:C(6025,3,"file_6025","file"),Examples_Colon_0:C(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:C(6027,3,"Options_Colon_6027","Options:"),Version_0:C(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:C(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:C(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:C(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:C(6034,3,"KIND_6034","KIND"),FILE:C(6035,3,"FILE_6035","FILE"),VERSION:C(6036,3,"VERSION_6036","VERSION"),LOCATION:C(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:C(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:C(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:C(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:C(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:C(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:C(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:C(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:C(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:C(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:C(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:C(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:C(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:C(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:C(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:C(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:C(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:C(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:C(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:C(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:C(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:C(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:C(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:C(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:C(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:C(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:C(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:C(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:C(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:C(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:C(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:C(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:C(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:C(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:C(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:C(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:C(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:C(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:C(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:C(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:C(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:C(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:C(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:C(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:C(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:C(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:C(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:C(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:C(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:C(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:C(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:C(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:C(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:C(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:C(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:C(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:C(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:C(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:C(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:C(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:C(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:C(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:C(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:C(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:C(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:C(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:C(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:C(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:C(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:C(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:C(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:C(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:C(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:C(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:C(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:C(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:C(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:C(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:C(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:C(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:C(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:C(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:C(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:C(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:C(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:C(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:C(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:C(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:C(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:C(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:C(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:C(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:C(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:C(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:C(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:C(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:C(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:C(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:C(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:C(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:C(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:C(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:C(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:C(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:C(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:C(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:C(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:C(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:C(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:C(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:C(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:C(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:C(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:C(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:C(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:C(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:C(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:C(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:C(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:C(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:C(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:C(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:C(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:C(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:C(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:C(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:C(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:C(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:C(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:C(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:C(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:C(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:C(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:C(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:C(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:C(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:C(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:C(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:C(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:C(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:C(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:C(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:C(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:C(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:C(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:C(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:C(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:C(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:C(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:C(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:C(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:C(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:C(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:C(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:C(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:C(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:C(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:C(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:C(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:C(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:C(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:C(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:C(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:C(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:C(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:C(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:C(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:C(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:C(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:C(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:C(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:C(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:C(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:C(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:C(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:C(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:C(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:C(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:C(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:C(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:C(6244,3,"Modules_6244","Modules"),File_Management:C(6245,3,"File_Management_6245","File Management"),Emit:C(6246,3,"Emit_6246","Emit"),JavaScript_Support:C(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:C(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:C(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:C(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:C(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:C(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:C(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:C(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:C(6255,3,"Projects_6255","Projects"),Output_Formatting:C(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:C(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:C(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:C(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:C(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:C(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:C(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:C(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:C(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:C(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:C(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:C(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:C(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:C(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:C(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:C(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:C(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:C(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:C(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:C(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:C(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:C(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:C(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:C(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:C(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:C(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:C(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:C(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:C(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:C(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:C(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:C(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:C(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:C(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:C(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:C(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:C(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:C(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:C(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:C(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:C(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:C(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:C(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:C(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:C(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:C(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:C(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:C(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:C(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:C(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:C(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:C(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:C(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:C(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:C(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:C(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:C(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:C(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:C(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:C(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:C(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:C(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:C(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:C(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:C(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:C(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:C(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:C(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:C(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:C(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:C(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:C(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:C(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:C(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:C(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:C(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:C(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:C(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:C(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:C(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:C(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:C(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:C(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:C(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:C(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:C(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:C(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:C(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:C(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:C(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:C(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:C(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:C(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:C(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:C(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:C(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:C(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:C(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:C(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:C(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:C(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:C(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:C(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:C(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:C(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:C(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:C(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:C(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:C(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:C(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:C(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:C(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:C(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:C(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:C(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:C(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:C(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:C(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:C(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:C(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:C(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:C(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:C(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:C(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:C(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:C(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:C(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:C(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:C(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:C(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:C(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:C(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:C(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:C(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:C(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:C(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:C(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:C(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:C(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:C(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:C(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Skip_building_downstream_projects_on_error_in_upstream_project:C(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:C(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:C(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:C(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:C(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:C(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:C(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:C(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:C(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:C(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:C(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:C(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:C(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:C(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:C(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:C(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:C(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:C(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:C(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:C(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:C(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:C(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:C(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:C(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:C(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:C(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:C(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:C(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:C(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:C(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:C(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:C(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:C(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:C(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:C(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:C(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:C(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:C(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:C(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:C(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:C(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:C(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:C(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:C(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:C(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:C(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:C(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:C(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:C(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:C(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:C(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:C(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:C(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:C(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:C(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:C(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:C(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:C(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:C(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:C(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:C(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:C(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:C(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:C(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:C(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:C(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:C(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:C(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:C(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:C(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:C(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:C(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:C(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:C(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:C(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:C(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:C(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:C(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:C(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any:C(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:C(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:C(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:C(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:C(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:C(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),one_of_Colon:C(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:C(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:C(6902,3,"type_Colon_6902","type:"),default_Colon:C(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:C(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:C(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:C(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:C(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:C(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:C(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:C(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:C(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:C(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:C(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:C(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:C(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:C(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:C(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:C(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:C(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:C(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:C(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:C(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:C(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:C(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:C(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:C(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:C(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:C(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:C(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:C(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:C(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:C(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:C(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:C(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:C(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:C(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:C(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:C(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:C(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:C(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:C(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:C(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:C(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:C(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:C(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:C(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:C(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:C(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:C(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:C(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:C(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:C(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:C(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:C(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:C(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:C(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:C(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:C(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:C(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:C(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:C(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:C(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:C(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:C(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:C(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:C(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:C(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:C(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:C(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:C(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:C(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:C(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:C(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:C(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:C(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:C(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:C(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:C(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:C(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:C(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:C(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:C(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:C(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:C(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:C(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:C(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:C(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:C(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:C(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:C(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:C(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:C(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:C(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:C(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:C(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:C(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:C(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:C(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:C(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:C(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:C(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:C(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:C(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:C(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:C(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:C(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:C(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:C(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:C(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:C(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:C(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:C(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:C(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:C(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:C(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:C(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:C(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:C(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:C(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:C(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:C(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:C(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:C(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:C(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:C(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:C(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:C(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:C(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:C(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:C(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:C(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:C(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:C(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:C(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:C(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:C(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:C(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:C(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:C(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:C(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:C(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:C(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:C(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:C(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:C(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:C(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:C(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:C(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:C(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:C(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:C(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:C(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:C(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:C(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:C(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:C(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:C(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:C(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:C(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:C(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:C(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:C(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:C(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:C(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:C(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:C(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:C(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:C(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:C(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:C(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:C(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:C(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:C(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:C(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:C(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:C(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:C(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:C(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:C(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:C(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:C(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:C(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:C(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:C(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:C(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:C(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:C(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:C(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:C(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:C(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:C(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:C(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:C(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:C(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:C(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:C(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:C(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:C(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:C(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:C(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:C(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:C(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:C(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:C(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:C(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:C(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:C(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:C(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:C(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:C(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:C(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:C(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:C(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:C(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:C(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:C(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:C(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:C(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:C(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:C(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:C(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:C(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:C(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:C(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:C(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:C(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:C(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:C(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:C(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:C(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:C(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:C(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:C(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:C(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:C(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:C(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:C(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:C(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:C(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:C(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:C(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:C(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:C(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:C(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:C(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:C(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:C(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:C(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:C(95005,3,"Extract_function_95005","Extract function"),Extract_constant:C(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:C(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:C(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:C(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:C(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:C(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:C(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:C(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:C(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:C(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:C(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:C(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:C(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:C(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:C(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:C(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:C(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:C(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:C(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:C(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:C(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:C(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:C(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:C(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:C(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:C(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:C(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:C(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:C(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:C(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:C(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:C(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:C(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:C(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:C(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:C(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:C(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:C(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:C(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:C(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:C(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:C(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:C(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:C(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:C(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:C(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:C(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:C(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:C(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:C(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:C(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:C(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:C(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:C(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:C(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:C(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:C(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:C(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:C(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:C(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:C(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:C(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:C(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:C(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:C(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:C(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:C(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:C(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:C(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:C(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:C(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:C(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:C(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:C(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:C(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:C(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:C(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:C(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:C(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:C(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:C(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:C(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:C(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:C(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:C(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:C(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:C(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:C(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:C(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:C(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:C(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:C(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:C(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:C(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:C(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:C(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:C(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:C(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:C(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:C(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:C(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:C(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:C(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:C(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:C(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:C(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:C(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:C(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:C(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:C(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:C(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:C(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:C(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:C(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:C(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:C(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:C(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:C(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:C(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:C(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:C(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:C(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:C(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:C(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:C(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:C(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:C(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:C(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:C(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:C(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:C(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:C(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:C(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:C(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:C(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:C(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:C(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:C(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:C(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:C(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:C(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:C(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:C(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:C(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:C(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:C(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:C(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:C(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:C(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:C(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:C(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:C(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:C(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:C(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:C(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:C(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:C(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:C(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:C(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:C(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:C(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:C(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:C(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:C(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:C(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:C(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:C(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:C(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:C(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:C(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:C(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:C(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:C(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:C(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:C(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:C(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:C(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:C(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:C(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:C(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:C(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:C(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:C(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:C(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:C(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:C(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:C(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:C(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:C(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:C(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:C(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:C(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:C(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:C(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:C(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:C(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:C(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:C(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:C(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:C(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:C(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:C(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:C(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:C(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:C(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:C(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:C(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:C(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:C(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:C(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:C(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:C(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:C(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:C(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:C(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:C(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:C(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:C(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:C(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:C(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:C(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:C(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:C(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:C(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:C(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:C(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:C(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:C(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:C(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:C(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:C(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:C(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:C(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.")};function Gf(e){return e>=80}function I_e(e){return e===32||Gf(e)}var tq={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},_Nt=new Map(Object.entries(tq)),lRe=new Map(Object.entries({...tq,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),uRe=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),dNt=new Map([[1,Us.RegularExpressionFlagsHasIndices],[16,Us.RegularExpressionFlagsDotAll],[32,Us.RegularExpressionFlagsUnicode],[64,Us.RegularExpressionFlagsUnicodeSets],[128,Us.RegularExpressionFlagsSticky]]),mNt=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],gNt=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],hNt=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],yNt=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],vNt=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,bNt=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,xNt=/@(?:see|link)/i;function SK(e,t){if(e<t[0])return!1;let n=0,i=t.length,s;for(;n+1<i;){if(s=n+(i-n)/2,s-=s%2,t[s]<=e&&e<=t[s+1])return!0;e<t[s]?i=s:n=s+2}return!1}function rq(e,t){return t>=2?SK(e,hNt):SK(e,mNt)}function SNt(e,t){return t>=2?SK(e,yNt):SK(e,gNt)}function pRe(e){let t=[];return e.forEach((n,i)=>{t[n]=i}),t}var TNt=pRe(lRe);function to(e){return TNt[e]}function dk(e){return lRe.get(e)}var wNt=pRe(uRe);function fRe(e){return wNt[e]}function TK(e){return uRe.get(e)}function FP(e){let t=[],n=0,i=0;for(;n<e.length;){let s=e.charCodeAt(n);switch(n++,s){case 13:e.charCodeAt(n)===10&&n++;case 10:t.push(i),i=n;break;default:s>127&&Gp(s)&&(t.push(i),i=n);break}}return t.push(i),t}function gF(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):nq(hv(e),t,n,e.text,i)}function nq(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:I.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Rp(e,FP(i)):"unknown"}`));let l=e[t]+n;return s?l>e[t+1]?e[t+1]:typeof i=="string"&&l>i.length?i.length:l:(t<e.length-1?I.assert(l<e[t+1]):i!==void 0&&I.assert(l<=i.length),l)}function hv(e){return e.lineMap||(e.lineMap=FP(e.text))}function UO(e,t){let n=jI(e,t);return{line:n,character:t-e[n]}}function jI(e,t,n){let i=tm(e,t,vc,mc,n);return i<0&&(i=~i-1,I.assert(i!==-1,"position cannot precede the beginning of the file")),i}function LI(e,t,n){if(t===n)return 0;let i=hv(e),s=Math.min(t,n),l=s===n,p=l?t:n,g=jI(i,s),m=jI(i,p,g);return l?g-m:m-g}function $s(e,t){return UO(hv(e),t)}function yv(e){return Th(e)||Gp(e)}function Th(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Gp(e){return e===10||e===13||e===8232||e===8233}function $O(e){return e>=48&&e<=57}function F_e(e){return $O(e)||e>=65&&e<=70||e>=97&&e<=102}function M_e(e){return e>=65&&e<=90||e>=97&&e<=122}function _Re(e){return M_e(e)||$O(e)||e===95}function R_e(e){return e>=48&&e<=55}function j_e(e,t){let n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function yo(e,t,n,i,s){if(Ug(t))return t;let l=!1;for(;;){let p=e.charCodeAt(t);switch(p){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;l=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Gp(e.charCodeAt(t));)t++;l=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}l=!1;continue}break;case 60:case 124:case 61:case 62:if(BI(e,t)){t=hF(e,t),l=!1;continue}break;case 35:if(t===0&&dRe(e,t)){t=mRe(e,t),l=!1;continue}break;case 42:if(l){t++,l=!1;continue}break;default:if(p>127&&yv(p)){t++;continue}break}return t}}var wK=7;function BI(e,t){if(I.assert(t>=0),t===0||Gp(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+wK<e.length){for(let i=0;i<wK;i++)if(e.charCodeAt(t+i)!==n)return!1;return n===61||e.charCodeAt(t+wK)===32}}return!1}function hF(e,t,n){n&&n(y.Merge_conflict_marker_encountered,t,wK);let i=e.charCodeAt(t),s=e.length;if(i===60||i===62)for(;t<s&&!Gp(e.charCodeAt(t));)t++;else for(I.assert(i===124||i===61);t<s;){let l=e.charCodeAt(t);if((l===61||l===62)&&l!==i&&BI(e,t))break;t++}return t}var L_e=/^#!.*/;function dRe(e,t){return I.assert(t===0),L_e.test(e)}function mRe(e,t){let n=L_e.exec(e)[0];return t=t+n.length,t}function kK(e,t,n,i,s,l,p){let g,m,x,b,S=!1,P=i,E=p;if(n===0){P=!0;let N=iq(t);N&&(n=N.length)}e:for(;n>=0&&n<t.length;){let N=t.charCodeAt(n);switch(N){case 13:t.charCodeAt(n+1)===10&&n++;case 10:if(n++,i)break e;P=!0,S&&(b=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:let F=t.charCodeAt(n+1),M=!1;if(F===47||F===42){let L=F===47?2:3,W=n;if(n+=2,F===47)for(;n<t.length;){if(Gp(t.charCodeAt(n))){M=!0;break}n++}else for(;n<t.length;){if(t.charCodeAt(n)===42&&t.charCodeAt(n+1)===47){n+=2;break}n++}if(P){if(S&&(E=s(g,m,x,b,l,E),!e&&E))return E;g=W,m=n,x=L,b=M,S=!0}continue}break e;default:if(N>127&&yv(N)){S&&Gp(N)&&(b=!0),n++;continue}break e}}return S&&(E=s(g,m,x,b,l,E)),E}function yF(e,t,n,i){return kK(!1,e,t,!1,n,i)}function vF(e,t,n,i){return kK(!1,e,t,!0,n,i)}function B_e(e,t,n,i,s){return kK(!0,e,t,!1,n,i,s)}function q_e(e,t,n,i,s){return kK(!0,e,t,!0,n,i,s)}function gRe(e,t,n,i,s,l=[]){return l.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),l}function vv(e,t){return B_e(e,t,gRe,void 0,void 0)}function ex(e,t){return q_e(e,t,gRe,void 0,void 0)}function iq(e){let t=L_e.exec(e);if(t)return t[0]}function Cy(e,t){return M_e(e)||e===36||e===95||e>127&&rq(e,t)}function T0(e,t,n){return _Re(e)||e===36||(n===1?e===45||e===58:!1)||e>127&&SNt(e,t)}function m_(e,t,n){let i=qI(e,0);if(!Cy(i,t))return!1;for(let s=Bg(i);s<e.length;s+=Bg(i))if(!T0(i=qI(e,s),t,n))return!1;return!0}function bv(e,t,n=0,i,s,l,p){var g=i,m,x,b,S,P,E,N,F,M=0,L=0,W=0;ks(g,l,p);var z={getTokenFullStart:()=>b,getStartPos:()=>b,getTokenEnd:()=>m,getTextPos:()=>m,getToken:()=>P,getTokenStart:()=>S,getTokenPos:()=>S,getTokenText:()=>g.substring(S,m),getTokenValue:()=>E,hasUnicodeEscape:()=>(N&1024)!==0,hasExtendedUnicodeEscape:()=>(N&8)!==0,hasPrecedingLineBreak:()=>(N&1)!==0,hasPrecedingJSDocComment:()=>(N&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(N&32768)!==0,isIdentifier:()=>P===80||P>118,isReservedWord:()=>P>=83&&P<=118,isUnterminated:()=>(N&4)!==0,getCommentDirectives:()=>F,getNumericLiteralFlags:()=>N&25584,getTokenFlags:()=>N,reScanGreaterToken:qe,reScanAsteriskEqualsToken:je,reScanSlashToken:st,reScanTemplateToken:Ct,reScanTemplateHeadOrNoSubstitutionTemplate:pr,scanJsxIdentifier:$a,scanJsxAttributeValue:ui,reScanJsxAttributeValue:Wn,reScanJsxToken:vn,reScanLessThanToken:ta,reScanHashToken:ts,reScanQuestionToken:Gt,reScanInvalidIdentifier:pe,scanJsxToken:hi,scanJsDocToken:at,scanJSDocCommentTextToken:Gi,scan:xe,getText:Pi,clearCommentDirectives:da,setText:ks,setScriptTarget:Vr,setLanguageVariant:_s,setScriptKind:ft,setJSDocParsingMode:Qt,setOnError:no,resetTokenState:he,setTextPos:he,setSkipJsDocLeadingAsterisks:wt,tryScan:Di,lookAhead:wn,scanRange:Cr};return I.isDebugging&&Object.defineProperty(z,"__debugShowCurrentPositionInText",{get:()=>{let oe=z.getText();return oe.slice(0,z.getTokenFullStart())+"\u2551"+oe.slice(z.getTokenFullStart())}}),z;function H(oe){return qI(g,oe)}function X(oe){return oe>=0&&oe<x?H(oe):-1}function ne(oe){return g.charCodeAt(oe)}function ae(oe){return oe>=0&&oe<x?ne(oe):-1}function Y(oe,Ue=m,pt,vt){if(s){let $t=m;m=Ue,s(oe,pt||0,vt),m=$t}}function Ee(){let oe=m,Ue=!1,pt=!1,vt="";for(;;){let $t=ne(m);if($t===95){N|=512,Ue?(Ue=!1,pt=!0,vt+=g.substring(oe,m)):(N|=16384,Y(pt?y.Multiple_consecutive_numeric_separators_are_not_permitted:y.Numeric_separators_are_not_allowed_here,m,1)),m++,oe=m;continue}if($O($t)){Ue=!0,pt=!1,m++;continue}break}return ne(m-1)===95&&(N|=16384,Y(y.Numeric_separators_are_not_allowed_here,m-1,1)),vt+g.substring(oe,m)}function fe(){let oe=m,Ue;if(ne(m)===48)if(m++,ne(m)===95)N|=16896,Y(y.Numeric_separators_are_not_allowed_here,m,1),m--,Ue=Ee();else if(!de())N|=8192,Ue=""+ +E;else if(!E)Ue="0";else{E=""+parseInt(E,8),N|=32;let Lt=P===41,Rt=(Lt?"-":"")+"0o"+(+E).toString(8);return Lt&&oe--,Y(y.Octal_literals_are_not_allowed_Use_the_syntax_0,oe,m-oe,Rt),9}else Ue=Ee();let pt,vt;ne(m)===46&&(m++,pt=Ee());let $t=m;if(ne(m)===69||ne(m)===101){m++,N|=16,(ne(m)===43||ne(m)===45)&&m++;let Lt=m,Rt=Ee();Rt?(vt=g.substring($t,Lt)+Rt,$t=m):Y(y.Digit_expected)}let Qe;if(N&512?(Qe=Ue,pt&&(Qe+="."+pt),vt&&(Qe+=vt)):Qe=g.substring(oe,$t),N&8192)return Y(y.Decimals_with_leading_zeros_are_not_allowed,oe,$t-oe),E=""+ +Qe,9;if(pt!==void 0||N&16)return te(oe,pt===void 0&&!!(N&16)),E=""+ +Qe,9;{E=Qe;let Lt=Tt();return te(oe),Lt}}function te(oe,Ue){if(!Cy(H(m),e))return;let pt=m,{length:vt}=Me();vt===1&&g[pt]==="n"?Y(Ue?y.A_bigint_literal_cannot_use_exponential_notation:y.A_bigint_literal_must_be_an_integer,oe,pt-oe+1):(Y(y.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,pt,vt),m=pt)}function de(){let oe=m,Ue=!0;for(;$O(ae(m));)R_e(ne(m))||(Ue=!1),m++;return E=g.substring(oe,m),Ue}function me(oe,Ue){let pt=Pe(oe,!1,Ue);return pt?parseInt(pt,16):-1}function ve(oe,Ue){return Pe(oe,!0,Ue)}function Pe(oe,Ue,pt){let vt=[],$t=!1,Qe=!1;for(;vt.length<oe||Ue;){let Lt=ne(m);if(pt&&Lt===95){N|=512,$t?($t=!1,Qe=!0):Y(Qe?y.Multiple_consecutive_numeric_separators_are_not_permitted:y.Numeric_separators_are_not_allowed_here,m,1),m++;continue}if($t=pt,Lt>=65&&Lt<=70)Lt+=32;else if(!(Lt>=48&&Lt<=57||Lt>=97&&Lt<=102))break;vt.push(Lt),m++,Qe=!1}return vt.length<oe&&(vt=[]),ne(m-1)===95&&Y(y.Numeric_separators_are_not_allowed_here,m-1,1),String.fromCharCode(...vt)}function Oe(oe=!1){let Ue=ne(m);m++;let pt="",vt=m;for(;;){if(m>=x){pt+=g.substring(vt,m),N|=4,Y(y.Unterminated_string_literal);break}let $t=ne(m);if($t===Ue){pt+=g.substring(vt,m),m++;break}if($t===92&&!oe){pt+=g.substring(vt,m),pt+=Ne(3),vt=m;continue}if(($t===10||$t===13)&&!oe){pt+=g.substring(vt,m),N|=4,Y(y.Unterminated_string_literal);break}m++}return pt}function ie(oe){let Ue=ne(m)===96;m++;let pt=m,vt="",$t;for(;;){if(m>=x){vt+=g.substring(pt,m),N|=4,Y(y.Unterminated_template_literal),$t=Ue?15:18;break}let Qe=ne(m);if(Qe===96){vt+=g.substring(pt,m),m++,$t=Ue?15:18;break}if(Qe===36&&m+1<x&&ne(m+1)===123){vt+=g.substring(pt,m),m+=2,$t=Ue?16:17;break}if(Qe===92){vt+=g.substring(pt,m),vt+=Ne(1|(oe?2:0)),pt=m;continue}if(Qe===13){vt+=g.substring(pt,m),m++,m<x&&ne(m)===10&&m++,vt+=`
|
|
`,pt=m;continue}m++}return I.assert($t!==void 0),E=vt,$t}function Ne(oe){let Ue=m;if(m++,m>=x)return Y(y.Unexpected_end_of_text),"";let pt=ne(m);switch(m++,pt){case 48:if(m>=x||!$O(ne(m)))return"\0";case 49:case 50:case 51:m<x&&R_e(ne(m))&&m++;case 52:case 53:case 54:case 55:if(m<x&&R_e(ne(m))&&m++,N|=2048,oe&6){let Qe=parseInt(g.substring(Ue+1,m),8);return oe&4&&!(oe&32)&&pt!==48?Y(y.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,Ue,m-Ue,"\\x"+Qe.toString(16).padStart(2,"0")):Y(y.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Ue,m-Ue,"\\x"+Qe.toString(16).padStart(2,"0")),String.fromCharCode(Qe)}return g.substring(Ue,m);case 56:case 57:return N|=2048,oe&6?(oe&4&&!(oe&32)?Y(y.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Ue,m-Ue):Y(y.Escape_sequence_0_is_not_allowed,Ue,m-Ue,g.substring(Ue,m)),String.fromCharCode(pt)):g.substring(Ue,m);case 98:return"\b";case 116:return" ";case 110:return`
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(m<x&&ne(m)===123){m-=2;let Qe=it(!!(oe&6));return oe&17||(N|=2048,oe&6&&Y(y.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Ue,m-Ue)),Qe}for(;m<Ue+6;m++)if(!(m<x&&F_e(ne(m))))return N|=2048,oe&6&&Y(y.Hexadecimal_digit_expected),g.substring(Ue,m);N|=1024;let vt=parseInt(g.substring(Ue+2,m),16),$t=String.fromCharCode(vt);if(oe&16&&vt>=55296&&vt<=56319&&m+6<x&&g.substring(m,m+2)==="\\u"&&ne(m+2)!==123){let Qe=m,Lt=m+2;for(;Lt<Qe+6;Lt++)if(!F_e(ne(Lt)))return $t;let Rt=parseInt(g.substring(Qe+2,Lt),16);if(Rt>=56320&&Rt<=57343)return m=Lt,$t+String.fromCharCode(Rt)}return $t;case 120:for(;m<Ue+4;m++)if(!(m<x&&F_e(ne(m))))return N|=2048,oe&6&&Y(y.Hexadecimal_digit_expected),g.substring(Ue,m);return N|=4096,String.fromCharCode(parseInt(g.substring(Ue+2,m),16));case 13:m<x&&ne(m)===10&&m++;case 10:case 8232:case 8233:return"";default:return(oe&16||oe&4&&!(oe&8)&&T0(pt,e))&&Y(y.This_character_cannot_be_escaped_in_a_regular_expression,m-2,2),String.fromCharCode(pt)}}function it(oe){let Ue=m;m+=3;let pt=m,vt=ve(1,!1),$t=vt?parseInt(vt,16):-1,Qe=!1;return $t<0?(oe&&Y(y.Hexadecimal_digit_expected),Qe=!0):$t>1114111&&(oe&&Y(y.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,pt,m-pt),Qe=!0),m>=x?(oe&&Y(y.Unexpected_end_of_text),Qe=!0):ne(m)===125?m++:(oe&&Y(y.Unterminated_Unicode_escape_sequence),Qe=!0),Qe?(N|=2048,g.substring(Ue,m)):(N|=8,JI($t))}function ze(){if(m+5<x&&ne(m+1)===117){let oe=m;m+=2;let Ue=me(4,!1);return m=oe,Ue}return-1}function ge(){if(H(m+1)===117&&H(m+2)===123){let oe=m;m+=3;let Ue=ve(1,!1),pt=Ue?parseInt(Ue,16):-1;return m=oe,pt}return-1}function Me(){let oe="",Ue=m;for(;m<x;){let pt=H(m);if(T0(pt,e))m+=Bg(pt);else if(pt===92){if(pt=ge(),pt>=0&&T0(pt,e)){oe+=it(!0),Ue=m;continue}if(pt=ze(),!(pt>=0&&T0(pt,e)))break;N|=1024,oe+=g.substring(Ue,m),oe+=JI(pt),m+=6,Ue=m}else break}return oe+=g.substring(Ue,m),oe}function Te(){let oe=E.length;if(oe>=2&&oe<=12){let Ue=E.charCodeAt(0);if(Ue>=97&&Ue<=122){let pt=_Nt.get(E);if(pt!==void 0)return P=pt}}return P=80}function gt(oe){let Ue="",pt=!1,vt=!1;for(;;){let $t=ne(m);if($t===95){N|=512,pt?(pt=!1,vt=!0):Y(vt?y.Multiple_consecutive_numeric_separators_are_not_permitted:y.Numeric_separators_are_not_allowed_here,m,1),m++;continue}if(pt=!0,!$O($t)||$t-48>=oe)break;Ue+=g[m],m++,vt=!1}return ne(m-1)===95&&Y(y.Numeric_separators_are_not_allowed_here,m-1,1),Ue}function Tt(){return ne(m)===110?(E+="n",N&384&&(E=R4(E)+"n"),m++,10):(E=""+(N&128?parseInt(E.slice(2),2):N&256?parseInt(E.slice(2),8):+E),9)}function xe(){for(b=m,N=0;;){if(S=m,m>=x)return P=1;let oe=H(m);if(m===0&&oe===35&&dRe(g,m)){if(m=mRe(g,m),t)continue;return P=6}switch(oe){case 10:case 13:if(N|=1,t){m++;continue}else return oe===13&&m+1<x&&ne(m+1)===10?m+=2:m++,P=4;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 8203:case 8239:case 8287:case 12288:case 65279:if(t){m++;continue}else{for(;m<x&&Th(ne(m));)m++;return P=5}case 33:return ne(m+1)===61?ne(m+2)===61?(m+=3,P=38):(m+=2,P=36):(m++,P=54);case 34:case 39:return E=Oe(),P=11;case 96:return P=ie(!1);case 37:return ne(m+1)===61?(m+=2,P=70):(m++,P=45);case 38:return ne(m+1)===38?ne(m+2)===61?(m+=3,P=77):(m+=2,P=56):ne(m+1)===61?(m+=2,P=74):(m++,P=51);case 40:return m++,P=21;case 41:return m++,P=22;case 42:if(ne(m+1)===61)return m+=2,P=67;if(ne(m+1)===42)return ne(m+2)===61?(m+=3,P=68):(m+=2,P=43);if(m++,M&&!(N&32768)&&N&1){N|=32768;continue}return P=42;case 43:return ne(m+1)===43?(m+=2,P=46):ne(m+1)===61?(m+=2,P=65):(m++,P=40);case 44:return m++,P=28;case 45:return ne(m+1)===45?(m+=2,P=47):ne(m+1)===61?(m+=2,P=66):(m++,P=41);case 46:return $O(ne(m+1))?(fe(),P=9):ne(m+1)===46&&ne(m+2)===46?(m+=3,P=26):(m++,P=25);case 47:if(ne(m+1)===47){for(m+=2;m<x&&!Gp(ne(m));)m++;if(F=Or(F,g.slice(S,m),vNt,S),t)continue;return P=2}if(ne(m+1)===42){m+=2;let Lt=ne(m)===42&&ne(m+1)!==47,Rt=!1,Xt=S;for(;m<x;){let ut=ne(m);if(ut===42&&ne(m+1)===47){m+=2,Rt=!0;break}m++,Gp(ut)&&(Xt=m,N|=1)}if(Lt&&nt()&&(N|=2),F=Or(F,g.slice(Xt,m),bNt,Xt),Rt||Y(y.Asterisk_Slash_expected),t)continue;return Rt||(N|=4),P=3}return ne(m+1)===61?(m+=2,P=69):(m++,P=44);case 48:if(m+2<x&&(ne(m+1)===88||ne(m+1)===120))return m+=2,E=ve(1,!0),E||(Y(y.Hexadecimal_digit_expected),E="0"),E="0x"+E,N|=64,P=Tt();if(m+2<x&&(ne(m+1)===66||ne(m+1)===98))return m+=2,E=gt(2),E||(Y(y.Binary_digit_expected),E="0"),E="0b"+E,N|=128,P=Tt();if(m+2<x&&(ne(m+1)===79||ne(m+1)===111))return m+=2,E=gt(8),E||(Y(y.Octal_digit_expected),E="0"),E="0o"+E,N|=256,P=Tt();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P=fe();case 58:return m++,P=59;case 59:return m++,P=27;case 60:if(BI(g,m)){if(m=hF(g,m,Y),t)continue;return P=7}return ne(m+1)===60?ne(m+2)===61?(m+=3,P=71):(m+=2,P=48):ne(m+1)===61?(m+=2,P=33):n===1&&ne(m+1)===47&&ne(m+2)!==42?(m+=2,P=31):(m++,P=30);case 61:if(BI(g,m)){if(m=hF(g,m,Y),t)continue;return P=7}return ne(m+1)===61?ne(m+2)===61?(m+=3,P=37):(m+=2,P=35):ne(m+1)===62?(m+=2,P=39):(m++,P=64);case 62:if(BI(g,m)){if(m=hF(g,m,Y),t)continue;return P=7}return m++,P=32;case 63:return ne(m+1)===46&&!$O(ne(m+2))?(m+=2,P=29):ne(m+1)===63?ne(m+2)===61?(m+=3,P=78):(m+=2,P=61):(m++,P=58);case 91:return m++,P=23;case 93:return m++,P=24;case 94:return ne(m+1)===61?(m+=2,P=79):(m++,P=53);case 123:return m++,P=19;case 124:if(BI(g,m)){if(m=hF(g,m,Y),t)continue;return P=7}return ne(m+1)===124?ne(m+2)===61?(m+=3,P=76):(m+=2,P=57):ne(m+1)===61?(m+=2,P=75):(m++,P=52);case 125:return m++,P=20;case 126:return m++,P=55;case 64:return m++,P=60;case 92:let Ue=ge();if(Ue>=0&&Cy(Ue,e))return E=it(!0)+Me(),P=Te();let pt=ze();return pt>=0&&Cy(pt,e)?(m+=6,N|=1024,E=String.fromCharCode(pt)+Me(),P=Te()):(Y(y.Invalid_character),m++,P=0);case 35:if(m!==0&&g[m+1]==="!")return Y(y.can_only_be_used_at_the_start_of_a_file,m,2),m++,P=0;let vt=H(m+1);if(vt===92){m++;let Lt=ge();if(Lt>=0&&Cy(Lt,e))return E="#"+it(!0)+Me(),P=81;let Rt=ze();if(Rt>=0&&Cy(Rt,e))return m+=6,N|=1024,E="#"+String.fromCharCode(Rt)+Me(),P=81;m--}return Cy(vt,e)?(m++,He(vt,e)):(E="#",Y(y.Invalid_character,m++,Bg(oe))),P=81;case 65533:return Y(y.File_appears_to_be_binary,0,0),m=x,P=8;default:let $t=He(oe,e);if($t)return P=$t;if(Th(oe)){m+=Bg(oe);continue}else if(Gp(oe)){N|=1,m+=Bg(oe);continue}let Qe=Bg(oe);return Y(y.Invalid_character,m,Qe),m+=Qe,P=0}}}function nt(){switch(W){case 0:return!0;case 1:return!1}return L!==3&&L!==4?!0:W===3?!1:xNt.test(g.slice(b,m))}function pe(){I.assert(P===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),m=S=b,N=0;let oe=H(m),Ue=He(oe,99);return Ue?P=Ue:(m+=Bg(oe),P)}function He(oe,Ue){let pt=oe;if(Cy(pt,Ue)){for(m+=Bg(pt);m<x&&T0(pt=H(m),Ue);)m+=Bg(pt);return E=g.substring(S,m),pt===92&&(E+=Me()),Te()}}function qe(){if(P===32){if(ne(m)===62)return ne(m+1)===62?ne(m+2)===61?(m+=3,P=73):(m+=2,P=50):ne(m+1)===61?(m+=2,P=72):(m++,P=49);if(ne(m)===61)return m++,P=34}return P}function je(){return I.assert(P===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),m=S+1,P=64}function st(oe){if(P===44||P===69){let Ue=S+1;m=Ue;let pt=!1,vt=!1,$t=!1;for(;;){let Lt=ae(m);if(Lt===-1||Gp(Lt)){N|=4;break}if(pt)pt=!1;else{if(Lt===47&&!$t)break;Lt===91?$t=!0:Lt===92?pt=!0:Lt===93?$t=!1:!$t&&Lt===40&&ae(m+1)===63&&ae(m+2)===60&&ae(m+3)!==61&&ae(m+3)!==33&&(vt=!0)}m++}let Qe=m;if(N&4){m=Ue,pt=!1;let Lt=0,Rt=!1,Xt=0;for(;m<Qe;){let ut=ne(m);if(pt)pt=!1;else if(ut===92)pt=!0;else if(ut===91)Lt++;else if(ut===93&&Lt)Lt--;else if(!Lt){if(ut===123)Rt=!0;else if(ut===125&&Rt)Rt=!1;else if(!Rt){if(ut===40)Xt++;else if(ut===41&&Xt)Xt--;else if(ut===41||ut===93||ut===125)break}}m++}for(;yv(ae(m-1))||ae(m-1)===59;)m--;Y(y.Unterminated_regular_expression_literal,S,m-S)}else{m++;let Lt=0;for(;;){let Rt=X(m);if(Rt===-1||!T0(Rt,e))break;let Xt=Bg(Rt);if(oe){let ut=TK(Rt);ut===void 0?Y(y.Unknown_regular_expression_flag,m,Xt):Lt&ut?Y(y.Duplicate_regular_expression_flag,m,Xt):((Lt|ut)&96)===96?Y(y.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,m,Xt):(Lt|=ut,ar(ut,Xt))}m+=Xt}oe&&Cr(Ue,Qe-Ue,()=>{jt(Lt,!0,vt)})}E=g.substring(S,m),P=14}return P}function jt(oe,Ue,pt){var vt=!!(oe&64),$t=!!(oe&96),Qe=$t||!Ue,Lt=!1,Rt=0,Xt,ut,lr,In=[],We;function qt(or){for(;;){if(In.push(We),We=void 0,ke(or),We=In.pop(),ae(m)!==124)return;m++}}function ke(or){let Mr=!1;for(;;){let Wr=m,$r=ae(m);switch($r){case-1:return;case 94:case 36:m++,Mr=!1;break;case 92:switch(m++,ae(m)){case 98:case 66:m++,Mr=!1;break;default:Ke(),Mr=!0;break}break;case 40:if(m++,ae(m)===63)switch(m++,ae(m)){case 61:case 33:m++,Mr=!Qe;break;case 60:let Is=m;switch(m++,ae(m)){case 61:case 33:m++,Mr=!1;break;default:rr(!1),Pr(62),e<5&&Y(y.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,Is,m-Is),Rt++,Mr=!0;break}break;default:let Xs=m,Ps=$(0);ae(m)===45&&(m++,$(Ps),m===Xs+1&&Y(y.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,Xs,m-Xs)),Pr(58),Mr=!0;break}else Rt++,Mr=!0;qt(!0),Pr(41);break;case 123:m++;let Sr=m;de();let ji=E;if(!Qe&&!ji){Mr=!0;break}if(ae(m)===44){m++,de();let Is=E;if(ji)Is&&Number.parseInt(ji)>Number.parseInt(Is)&&(Qe||ae(m)===125)&&Y(y.Numbers_out_of_order_in_quantifier,Sr,m-Sr);else if(Is||ae(m)===125)Y(y.Incomplete_quantifier_Digit_expected,Sr,0);else{Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Wr,1,String.fromCharCode($r)),Mr=!0;break}}else if(!ji){Qe&&Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Wr,1,String.fromCharCode($r)),Mr=!0;break}if(ae(m)!==125)if(Qe)Y(y._0_expected,m,0,"}"),m--;else{Mr=!0;break}case 42:case 43:case 63:m++,ae(m)===63&&m++,Mr||Y(y.There_is_nothing_available_for_repetition,Wr,m-Wr),Mr=!1;break;case 46:m++,Mr=!0;break;case 91:m++,vt?dr():kt(),Pr(93),Mr=!0;break;case 41:if(or)return;case 93:case 125:(Qe||$r===41)&&Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,m,1,String.fromCharCode($r)),m++,Mr=!0;break;case 47:case 124:return;default:zr(),Mr=!0;break}}}function $(or){for(;;){let Mr=X(m);if(Mr===-1||!T0(Mr,e))break;let Wr=Bg(Mr),$r=TK(Mr);$r===void 0?Y(y.Unknown_regular_expression_flag,m,Wr):or&$r?Y(y.Duplicate_regular_expression_flag,m,Wr):$r&28?(or|=$r,ar($r,Wr)):Y(y.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,m,Wr),m+=Wr}return or}function Ke(){switch(I.assertEqual(ne(m-1),92),ae(m)){case 107:m++,ae(m)===60?(m++,rr(!0),Pr(62)):(Qe||pt)&&Y(y.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,m-2,2);break;case 113:if(vt){m++,Y(y.q_is_only_available_inside_character_class,m-2,2);break}default:I.assert(cr()||re()||Ft(!0));break}}function re(){I.assertEqual(ne(m-1),92);let or=ae(m);if(or>=49&&or<=57){let Mr=m;return de(),lr=Zr(lr,{pos:Mr,end:m,value:+E}),!0}return!1}function Ft(or){I.assertEqual(ne(m-1),92);let Mr=ae(m);switch(Mr){case-1:return Y(y.Undetermined_character_escape,m-1,1),"\\";case 99:if(m++,Mr=ae(m),M_e(Mr))return m++,String.fromCharCode(Mr&31);if(Qe)Y(y.c_must_be_followed_by_an_ASCII_letter,m-2,2);else if(or)return m--,"\\";return String.fromCharCode(Mr);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return m++,String.fromCharCode(Mr);default:return m--,Ne(4|(Ue?8:0)|($t?16:0)|(or?32:0))}}function rr(or){I.assertEqual(ne(m-1),60),S=m,He(X(m),e),m===S?Y(y.Expected_a_capturing_group_name):or?ut=Zr(ut,{pos:S,end:m,name:E}):We?.has(E)||In.some(Mr=>Mr?.has(E))?Y(y.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,S,m-S):(We??(We=new Set),We.add(E),Xt??(Xt=new Set),Xt.add(E))}function Le(or){return or===93||or===-1||m>=x}function kt(){for(I.assertEqual(ne(m-1),91),ae(m)===94&&m++;;){let or=ae(m);if(Le(or))return;let Mr=m,Wr=Bt();if(ae(m)===45){m++;let $r=ae(m);if(Le($r))return;!Wr&&Qe&&Y(y.A_character_class_range_must_not_be_bounded_by_another_character_class,Mr,m-1-Mr);let Sr=m,ji=Bt();if(!ji&&Qe){Y(y.A_character_class_range_must_not_be_bounded_by_another_character_class,Sr,m-Sr);continue}if(!Wr)continue;let Is=qI(Wr,0),Xs=qI(ji,0);Wr.length===Bg(Is)&&ji.length===Bg(Xs)&&Is>Xs&&Y(y.Range_out_of_order_in_character_class,Mr,m-Mr)}}}function dr(){I.assertEqual(ne(m-1),91);let or=!1;ae(m)===94&&(m++,or=!0);let Mr=!1,Wr=ae(m);if(Le(Wr))return;let $r=m,Sr;switch(g.slice(m,m+2)){case"--":case"&&":Y(y.Expected_a_class_set_operand),Lt=!1;break;default:Sr=Kr();break}switch(ae(m)){case 45:if(ae(m+1)===45){or&&Lt&&Y(y.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,$r,m-$r),Mr=Lt,kn(3),Lt=!or&&Mr;return}break;case 38:if(ae(m+1)===38){kn(2),or&&Lt&&Y(y.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,$r,m-$r),Mr=Lt,Lt=!or&&Mr;return}else Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,m,1,String.fromCharCode(Wr));break;default:or&&Lt&&Y(y.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,$r,m-$r),Mr=Lt;break}for(;Wr=ae(m),Wr!==-1;){switch(Wr){case 45:if(m++,Wr=ae(m),Le(Wr)){Lt=!or&&Mr;return}if(Wr===45){m++,Y(y.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,m-2,2),$r=m-2,Sr=g.slice($r,m);continue}else{Sr||Y(y.A_character_class_range_must_not_be_bounded_by_another_character_class,$r,m-1-$r);let ji=m,Is=Kr();if(or&&Lt&&Y(y.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,ji,m-ji),Mr||(Mr=Lt),!Is){Y(y.A_character_class_range_must_not_be_bounded_by_another_character_class,ji,m-ji);break}if(!Sr)break;let Xs=qI(Sr,0),Ps=qI(Is,0);Sr.length===Bg(Xs)&&Is.length===Bg(Ps)&&Xs>Ps&&Y(y.Range_out_of_order_in_character_class,$r,m-$r)}break;case 38:$r=m,m++,ae(m)===38?(m++,Y(y.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,m-2,2),ae(m)===38&&(Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,m,1,String.fromCharCode(Wr)),m++)):Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,m-1,1,String.fromCharCode(Wr)),Sr=g.slice($r,m);continue}if(Le(ae(m)))break;switch($r=m,g.slice(m,m+2)){case"--":case"&&":Y(y.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,m,2),m+=2,Sr=g.slice($r,m);break;default:Sr=Kr();break}}Lt=!or&&Mr}function kn(or){let Mr=Lt;for(;;){let Wr=ae(m);if(Le(Wr))break;switch(Wr){case 45:m++,ae(m)===45?(m++,or!==3&&Y(y.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,m-2,2)):Y(y.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,m-1,1);break;case 38:m++,ae(m)===38?(m++,or!==2&&Y(y.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,m-2,2),ae(m)===38&&(Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,m,1,String.fromCharCode(Wr)),m++)):Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,m-1,1,String.fromCharCode(Wr));break;default:switch(or){case 3:Y(y._0_expected,m,0,"--");break;case 2:Y(y._0_expected,m,0,"&&");break;default:break}break}if(Wr=ae(m),Le(Wr)){Y(y.Expected_a_class_set_operand);break}Kr(),Mr&&(Mr=Lt)}Lt=Mr}function Kr(){switch(Lt=!1,ae(m)){case-1:return"";case 91:return m++,dr(),Pr(93),"";case 92:if(m++,cr())return"";if(ae(m)===113)return m++,ae(m)===123?(m++,yn(),Pr(125),""):(Y(y.q_must_be_followed_by_string_alternatives_enclosed_in_braces,m-2,2),"q");m--;default:return yt()}}function yn(){I.assertEqual(ne(m-1),123);let or=0;for(;;)switch(ae(m)){case-1:return;case 125:or!==1&&(Lt=!0);return;case 124:or!==1&&(Lt=!0),m++,l=m,or=0;break;default:yt(),or++;break}}function yt(){let or=ae(m);if(or===-1)return"";if(or===92){m++;let Mr=ae(m);switch(Mr){case 98:return m++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return m++,String.fromCharCode(Mr);default:return Ft(!1)}}else if(or===ae(m+1))switch(or){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return Y(y.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,m,2),m+=2,g.substring(m-2,m)}switch(or){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return Y(y.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,m,1,String.fromCharCode(or)),m++,String.fromCharCode(or)}return zr()}function Bt(){if(ae(m)===92){m++;let or=ae(m);switch(or){case 98:return m++,"\b";case 45:return m++,String.fromCharCode(or);default:return cr()?"":Ft(!1)}}else return zr()}function cr(){I.assertEqual(ne(m-1),92);let or=!1,Mr=m-1,Wr=ae(m);switch(Wr){case 100:case 68:case 115:case 83:case 119:case 87:return m++,!0;case 80:or=!0;case 112:if(m++,ae(m)===123){m++;let $r=m,Sr=er();if(ae(m)===61){let ji=hRe.get(Sr);if(m===$r)Y(y.Expected_a_Unicode_property_name);else if(ji===void 0){Y(y.Unknown_Unicode_property_name,$r,m-$r);let Ps=x0(Sr,hRe.keys(),vc);Ps&&Y(y.Did_you_mean_0,$r,m-$r,Ps)}m++;let Is=m,Xs=er();if(m===Is)Y(y.Expected_a_Unicode_property_value);else if(ji!==void 0&&!bF[ji].has(Xs)){Y(y.Unknown_Unicode_property_value,Is,m-Is);let Ps=x0(Xs,bF[ji],vc);Ps&&Y(y.Did_you_mean_0,Is,m-Is,Ps)}}else if(m===$r)Y(y.Expected_a_Unicode_property_name_or_value);else if(vRe.has(Sr))vt?or?Y(y.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,$r,m-$r):Lt=!0:Y(y.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,$r,m-$r);else if(!bF.General_Category.has(Sr)&&!yRe.has(Sr)){Y(y.Unknown_Unicode_property_name_or_value,$r,m-$r);let ji=x0(Sr,[...bF.General_Category,...yRe,...vRe],vc);ji&&Y(y.Did_you_mean_0,$r,m-$r,ji)}Pr(125),$t||Y(y.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Mr,m-Mr)}else if(Qe)Y(y._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,m-2,2,String.fromCharCode(Wr));else return m--,!1;return!0}return!1}function er(){let or="";for(;;){let Mr=ae(m);if(Mr===-1||!_Re(Mr))break;or+=String.fromCharCode(Mr),m++}return or}function zr(){let or=$t?Bg(X(m)):1;return m+=or,or>0?g.substring(m-or,m):""}function Pr(or){ae(m)===or?m++:Y(y._0_expected,m,0,String.fromCharCode(or))}qt(!1),Ge(ut,or=>{if(!Xt?.has(or.name)&&(Y(y.There_is_no_capturing_group_named_0_in_this_regular_expression,or.pos,or.end-or.pos,or.name),Xt)){let Mr=x0(or.name,Xt,vc);Mr&&Y(y.Did_you_mean_0,or.pos,or.end-or.pos,Mr)}}),Ge(lr,or=>{or.value>Rt&&(Rt?Y(y.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,or.pos,or.end-or.pos,Rt):Y(y.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,or.pos,or.end-or.pos))})}function ar(oe,Ue){let pt=dNt.get(oe);pt&&e<pt&&Y(y.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,m,Ue,MJ(pt))}function Or(oe,Ue,pt,vt){let $t=nn(Ue.trimStart(),pt);return $t===void 0?oe:Zr(oe,{range:{pos:vt,end:m},type:$t})}function nn(oe,Ue){let pt=Ue.exec(oe);if(pt)switch(pt[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Ct(oe){return m=S,P=ie(!oe)}function pr(){return m=S,P=ie(!0)}function vn(oe=!0){return m=S=b,P=hi(oe)}function ta(){return P===48?(m=S+1,P=30):P}function ts(){return P===81?(m=S+1,P=63):P}function Gt(){return I.assert(P===61,"'reScanQuestionToken' should only be called on a '??'"),m=S+1,P=58}function hi(oe=!0){if(b=S=m,m>=x)return P=1;let Ue=ne(m);if(Ue===60)return ne(m+1)===47?(m+=2,P=31):(m++,P=30);if(Ue===123)return m++,P=19;let pt=0;for(;m<x&&(Ue=ne(m),Ue!==123);){if(Ue===60){if(BI(g,m))return m=hF(g,m,Y),P=7;break}if(Ue===62&&Y(y.Unexpected_token_Did_you_mean_or_gt,m,1),Ue===125&&Y(y.Unexpected_token_Did_you_mean_or_rbrace,m,1),Gp(Ue)&&pt===0)pt=-1;else{if(!oe&&Gp(Ue)&&pt>0)break;yv(Ue)||(pt=m)}m++}return E=g.substring(b,m),pt===-1?13:12}function $a(){if(Gf(P)){for(;m<x;){if(ne(m)===45){E+="-",m++;continue}let Ue=m;if(E+=Me(),m===Ue)break}return Te()}return P}function ui(){switch(b=m,ne(m)){case 34:case 39:return E=Oe(!0),P=11;default:return xe()}}function Wn(){return m=S=b,ui()}function Gi(oe){if(b=S=m,N=0,m>=x)return P=1;for(let Ue=ne(m);m<x&&!Gp(Ue)&&Ue!==96;Ue=H(++m))if(!oe){if(Ue===123)break;if(Ue===64&&m-1>=0&&Th(ne(m-1))&&!(m+1<x&&yv(ne(m+1))))break}return m===S?at():(E=g.substring(S,m),P=82)}function at(){if(b=S=m,N=0,m>=x)return P=1;let oe=H(m);switch(m+=Bg(oe),oe){case 9:case 11:case 12:case 32:for(;m<x&&Th(ne(m));)m++;return P=5;case 64:return P=60;case 13:ne(m)===10&&m++;case 10:return N|=1,P=4;case 42:return P=42;case 123:return P=19;case 125:return P=20;case 91:return P=23;case 93:return P=24;case 40:return P=21;case 41:return P=22;case 60:return P=30;case 62:return P=32;case 61:return P=64;case 44:return P=28;case 46:return P=25;case 96:return P=62;case 35:return P=63;case 92:m--;let Ue=ge();if(Ue>=0&&Cy(Ue,e))return E=it(!0)+Me(),P=Te();let pt=ze();return pt>=0&&Cy(pt,e)?(m+=6,N|=1024,E=String.fromCharCode(pt)+Me(),P=Te()):(m++,P=0)}if(Cy(oe,e)){let Ue=oe;for(;m<x&&T0(Ue=H(m),e)||Ue===45;)m+=Bg(Ue);return E=g.substring(S,m),Ue===92&&(E+=Me()),P=Te()}else return P=0}function It(oe,Ue){let pt=m,vt=b,$t=S,Qe=P,Lt=E,Rt=N,Xt=oe();return(!Xt||Ue)&&(m=pt,b=vt,S=$t,P=Qe,E=Lt,N=Rt),Xt}function Cr(oe,Ue,pt){let vt=x,$t=m,Qe=b,Lt=S,Rt=P,Xt=E,ut=N,lr=F;ks(g,oe,Ue);let In=pt();return x=vt,m=$t,b=Qe,S=Lt,P=Rt,E=Xt,N=ut,F=lr,In}function wn(oe){return It(oe,!0)}function Di(oe){return It(oe,!1)}function Pi(){return g}function da(){F=void 0}function ks(oe,Ue,pt){g=oe||"",x=pt===void 0?g.length:Ue+pt,he(Ue||0)}function no(oe){s=oe}function Vr(oe){e=oe}function _s(oe){n=oe}function ft(oe){L=oe}function Qt(oe){W=oe}function he(oe){I.assert(oe>=0),m=oe,b=oe,S=oe,P=0,E=void 0,N=0}function wt(oe){M+=oe?1:-1}}function qI(e,t){return e.codePointAt(t)}function Bg(e){return e>=65536?2:e===-1?0:1}function kNt(e){if(I.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}var CNt=String.fromCodePoint?e=>String.fromCodePoint(e):kNt;function JI(e){return CNt(e)}var hRe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),yRe=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),vRe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),bF={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};bF.Script_Extensions=bF.Script;function Hu(e){return pd(e)||j_(e)}function VO(e){return hP(e,E4,AJ)}var J_e=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function xF(e){let t=Po(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return J_e.get(t);default:return"lib.d.ts"}}function ml(e){return e.start+e.length}function z_e(e){return e.length===0}function CK(e,t){return t>=e.start&&t<ml(e)}function SF(e,t){return t>=e.pos&&t<=e.end}function W_e(e,t){return t.start>=e.start&&ml(t)<=ml(e)}function PK(e,t){return t.pos>=e.start&&t.end<=ml(e)}function U_e(e,t){return t.start>=e.pos&&ml(t)<=e.end}function bRe(e,t){return $_e(e,t)!==void 0}function $_e(e,t){let n=K_e(e,t);return n&&n.length===0?void 0:n}function V_e(e,t){return wF(e.start,e.length,t.start,t.length)}function TF(e,t,n){return wF(e.start,e.length,t,n)}function wF(e,t,n,i){let s=e+t,l=n+i;return n<=s&&l>=e}function H_e(e,t){return t<=ml(e)&&t>=e.start}function G_e(e,t){return TF(t,e.pos,e.end-e.pos)}function K_e(e,t){let n=Math.max(e.start,t.start),i=Math.min(ml(e),ml(t));return n<=i?Ul(n,i):void 0}function EK(e){e=e.filter(i=>i.length>0).sort((i,s)=>i.start!==s.start?i.start-s.start:i.length-s.length);let t=[],n=0;for(;n<e.length;){let i=e[n],s=n+1;for(;s<e.length&&V_e(i,e[s]);){let l=Math.min(i.start,e[s].start),p=Math.max(ml(i),ml(e[s]));i=Ul(l,p),s++}n=s,t.push(i)}return t}function Sp(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Ul(e,t){return Sp(e,t-e)}function zI(e){return Sp(e.span.start,e.newLength)}function Q_e(e){return z_e(e.span)&&e.newLength===0}function kF(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var aq=kF(Sp(0,0),0);function X_e(e){if(e.length===0)return aq;if(e.length===1)return e[0];let t=e[0],n=t.span.start,i=ml(t.span),s=n+t.newLength;for(let l=1;l<e.length;l++){let p=e[l],g=n,m=i,x=s,b=p.span.start,S=ml(p.span),P=b+p.newLength;n=Math.min(g,b),i=Math.max(m,m+(S-x)),s=Math.max(P,P+(x-S))}return kF(Ul(n,i),s-n)}function xRe(e){if(e&&e.kind===168){for(let t=e;t;t=t.parent)if(Ss(t)||Ri(t)||t.kind===264)return t}}function L_(e,t){return Da(e)&&Ai(e,31)&&t.kind===176}function Y_e(e){return Os(e)?sn(e.elements,Z_e):!1}function Z_e(e){return Ju(e)?!0:Y_e(e.name)}function MP(e){let t=e.parent;for(;Do(t.parent);)t=t.parent.parent;return t.parent}function ede(e,t){Do(e)&&(e=MP(e));let n=t(e);return e.kind===260&&(e=e.parent),e&&e.kind===261&&(n|=t(e),e=e.parent),e&&e.kind===243&&(n|=t(e)),n}function bS(e){return ede(e,gf)}function DK(e){return ede(e,Xme)}function w0(e){return ede(e,PNt)}function PNt(e){return e.flags}var tde=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function OK(e,t,n){let i=e.toLowerCase(),s=/^([a-z]+)(?:[_-]([a-z]+))?$/.exec(i);if(!s){n&&n.push(ll(y.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}let l=s[1],p=s[2];Ta(tde,i)&&!g(l,p,n)&&g(l,void 0,n),TP(e);function g(m,x,b){let S=Zs(t.getExecutingFilePath()),P=Ei(S),E=gi(P,m);if(x&&(E=E+"-"+x),E=t.resolvePath(gi(E,"diagnosticMessages.generated.json")),!t.fileExists(E))return!1;let N="";try{N=t.readFile(E)}catch{return b&&b.push(ll(y.Unable_to_open_file_0,E)),!1}try{gge(JSON.parse(N))}catch{return b&&b.push(ll(y.Corrupted_locale_file_0,E)),!1}return!0}}function al(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Br(e,t){for(;e;){let n=t(e);if(n==="quit")return;if(n)return e;e=e.parent}}function WI(e){return(e.flags&16)===0}function ds(e,t){if(e===void 0||WI(e))return e;for(e=e.original;e;){if(WI(e))return!t||t(e)?e:void 0;e=e.original}}function gl(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function ka(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function fi(e){return ka(e.escapedText)}function mk(e){let t=dk(e.escapedText);return t?_i(t,Yf):void 0}function Ml(e){return e.valueDeclaration&&_f(e.valueDeclaration)?fi(e.valueDeclaration.name):ka(e.escapedName)}function SRe(e){let t=e.parent.parent;if(t){if(Ku(t))return NK(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return NK(t.declarationList.declarations[0]);break;case 244:let n=t.expression;switch(n.kind===226&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 211:return n.name;case 212:let i=n.argumentExpression;if(Ye(i))return i}break;case 217:return NK(t.expression);case 256:{if(Ku(t.statement)||At(t.statement))return NK(t.statement);break}}}}function NK(e){let t=ls(e);return t&&Ye(t)?t:void 0}function CF(e,t){return!!(Gu(e)&&Ye(e.name)&&fi(e.name)===fi(t)||Rl(e)&&Pt(e.declarationList.declarations,n=>CF(n,t)))}function rde(e){return e.name||SRe(e)}function Gu(e){return!!e.name}function sq(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:n}=e;if(n.kind===166)return n.right;break}case 213:case 226:{let n=e;switch($l(n)){case 1:case 4:case 5:case 3:return rJ(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 346:return rde(e);case 340:return SRe(e);case 277:{let{expression:n}=e;return Ye(n)?n:void 0}case 212:let t=e;if(tJ(t))return t.argumentExpression}return e.name}function ls(e){if(e!==void 0)return sq(e)||(Ic(e)||Bc(e)||vu(e)?oq(e):void 0)}function oq(e){if(e.parent){if(xu(e.parent)||Do(e.parent))return e.parent.name;if(Vn(e.parent)&&e===e.parent.right){if(Ye(e.parent.left))return e.parent.left;if(Lc(e.parent.left))return rJ(e.parent.left)}else if(Ui(e.parent)&&Ye(e.parent.name))return e.parent.name}else return}function tx(e){if(Od(e))return Cn(e.modifiers,qu)}function u2(e){if(Ai(e,98303))return Cn(e.modifiers,oo)}function TRe(e,t){if(e.name)if(Ye(e.name)){let n=e.name.escapedText;return lq(e.parent,t).filter(i=>Ad(i)&&Ye(i.name)&&i.name.escapedText===n)}else{let n=e.parent.parameters.indexOf(e);I.assert(n>-1,"Parameters should always be in their parents' parameter list");let i=lq(e.parent,t).filter(Ad);if(n<i.length)return[i[n]]}return ce}function HO(e){return TRe(e,!1)}function nde(e){return TRe(e,!0)}function wRe(e,t){let n=e.name.escapedText;return lq(e.parent,t).filter(i=>Um(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function ide(e){return wRe(e,!1)}function ade(e){return wRe(e,!0)}function sde(e){return!!Rm(e,Ad)}function ode(e){return Rm(e,DE)}function cde(e){return uq(e,Cz)}function AK(e){return Rm(e,$he)}function kRe(e){return Rm(e,yY)}function lde(e){return Rm(e,yY,!0)}function CRe(e){return Rm(e,vY)}function ude(e){return Rm(e,vY,!0)}function PRe(e){return Rm(e,bY)}function pde(e){return Rm(e,bY,!0)}function ERe(e){return Rm(e,xY)}function fde(e){return Rm(e,xY,!0)}function _de(e){return Rm(e,wz,!0)}function IK(e){return Rm(e,SY)}function dde(e){return Rm(e,SY,!0)}function FK(e){return Rm(e,fM)}function cq(e){return Rm(e,TY)}function mde(e){return Rm(e,kz)}function DRe(e){return Rm(e,Um)}function MK(e){return Rm(e,Pz)}function xS(e){let t=Rm(e,i3);if(t&&t.typeExpression&&t.typeExpression.type)return t}function rx(e){let t=Rm(e,i3);return!t&&Da(e)&&(t=Ir(HO(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function PF(e){let t=mde(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=xS(e);if(n&&n.typeExpression){let i=n.typeExpression.type;if(Ff(i)){let s=Ir(i.members,xE);return s&&s.type}if(Iy(i)||LN(i))return i.type}}function lq(e,t){var n;if(!h5(e))return ce;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){let s=DQ(e,t);I.assert(s.length<2||s[0]!==s[1]),i=li(s,l=>Gg(l)?l.tags:l),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function SS(e){return lq(e,!1)}function Rm(e,t,n){return Ir(lq(e,n),t)}function uq(e,t){return SS(e).filter(t)}function ORe(e,t){return SS(e).filter(n=>n.kind===t)}function EF(e){return typeof e=="string"?e:e?.map(t=>t.kind===321?t.text:ENt(t)).join("")}function ENt(e){let t=e.kind===324?"link":e.kind===325?"linkcode":"linkplain",n=e.name?B_(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${i}${e.text}}`}function nx(e){if(B1(e)){if(BN(e.parent)){let t=fN(e.parent);if(t&&Re(t.tags))return li(t.tags,n=>Um(n)?n.typeParameters:void 0)}return ce}if(Bm(e))return I.assert(e.parent.kind===320),li(e.parent.tags,t=>Um(t)?t.typeParameters:void 0);if(e.typeParameters||nye(e)&&e.typeParameters)return e.typeParameters;if(jn(e)){let t=yJ(e);if(t.length)return t;let n=rx(e);if(n&&Iy(n)&&n.typeParameters)return n.typeParameters}return ce}function GO(e){return e.constraint?e.constraint:Um(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function xv(e){return e.kind===80||e.kind===81}function DF(e){return e.kind===178||e.kind===177}function pq(e){return ai(e)&&!!(e.flags&64)}function RK(e){return Nc(e)&&!!(e.flags&64)}function gk(e){return Ls(e)&&!!(e.flags&64)}function Kp(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function UI(e){return Kp(e)&&!CE(e)&&!!e.questionDotToken}function fq(e){return UI(e.parent)&&e.parent.expression===e}function $I(e){return!Kp(e.parent)||UI(e.parent)||e!==e.parent.expression}function jK(e){return e.kind===226&&e.operatorToken.kind===61}function _g(e){return W_(e)&&Ye(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function dg(e){return Ll(e,8)}function _q(e){return CE(e)&&!!(e.flags&64)}function VI(e){return e.kind===252||e.kind===251}function LK(e){return e.kind===280||e.kind===279}function HI(e){return e.kind===348||e.kind===341}function dq(e){return e>=166}function BK(e){return e>=0&&e<=165}function RP(e){return BK(e.kind)}function p2(e){return ec(e,"pos")&&ec(e,"end")}function GI(e){return 9<=e&&e<=15}function hk(e){return GI(e.kind)}function qK(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function ix(e){return 15<=e&&e<=18}function gde(e){return ix(e.kind)}function mq(e){let t=e.kind;return t===17||t===18}function ax(e){return bf(e)||Yp(e)}function KO(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function hde(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function w1(e){return KO(e)||hde(e)}function yde(e){return Br(e,w1)!==void 0}function JK(e){return e.kind===11||ix(e.kind)}function vde(e){return vo(e)||Ye(e)}function Xc(e){var t;return Ye(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function yk(e){var t;return Ca(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function OF(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function _f(e){return(is(e)||LP(e))&&Ca(e.name)}function QO(e){return ai(e)&&Ca(e.name)}function sx(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function KI(e){return!!(rE(e)&31)}function zK(e){return KI(e)||e===126||e===164||e===129}function oo(e){return sx(e.kind)}function Of(e){let t=e.kind;return t===166||t===80}function su(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function vk(e){let t=e.kind;return t===80||t===206||t===207}function Ss(e){return!!e&&jP(e.kind)}function XO(e){return!!e&&(jP(e.kind)||Al(e))}function Dc(e){return e&&NRe(e.kind)}function QI(e){return e.kind===112||e.kind===97}function NRe(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function jP(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return NRe(e)}}function WK(e){return ba(e)||Lh(e)||Cs(e)&&Ss(e.parent)}function ou(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function Ri(e){return e&&(e.kind===263||e.kind===231)}function ox(e){return e&&(e.kind===177||e.kind===178)}function Kf(e){return is(e)&&Ah(e)}function bde(e){return jn(e)&&dE(e)?(!x2(e)||!yx(e.expression))&&!Ek(e,!0):e.parent&&Ri(e.parent)&&is(e)&&!Ah(e)}function LP(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Yc(e){return oo(e)||qu(e)}function f2(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178||t===354}function gq(e){return f2(e)||ou(e)}function k0(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function Yi(e){return hX(e.kind)}function xde(e){switch(e.kind){case 184:case 185:return!0}return!1}function Os(e){if(e){let t=e.kind;return t===207||t===206}return!1}function XI(e){let t=e.kind;return t===209||t===210}function hq(e){let t=e.kind;return t===208||t===232}function NF(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Sde(e){return Ui(e)||Da(e)||IF(e)||FF(e)}function AF(e){return UK(e)||$K(e)}function UK(e){switch(e.kind){case 206:case 210:return!0}return!1}function IF(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function $K(e){switch(e.kind){case 207:case 209:return!0}return!1}function FF(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Yu(e,!0)}function Tde(e){let t=e.kind;return t===211||t===166||t===205}function MF(e){let t=e.kind;return t===211||t===166}function VK(e){return _2(e)||xx(e)}function _2(e){switch(e.kind){case 213:case 214:case 215:case 170:case 286:case 285:case 289:return!0;case 226:return e.operatorToken.kind===104;default:return!1}}function wh(e){return e.kind===213||e.kind===214}function BP(e){let t=e.kind;return t===228||t===15}function Qf(e){return ARe(dg(e).kind)}function ARe(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function HK(e){return IRe(dg(e).kind)}function IRe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return ARe(e)}}function wde(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function kde(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return hk(e)}}function At(e){return DNt(dg(e).kind)}function DNt(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return IRe(e)}}function d2(e){let t=e.kind;return t===216||t===234}function cx(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&cx(e.statement,t)}return!1}function ONt(e){return Gc(e)||tu(e)}function Cde(e){return Pt(e,ONt)}function yq(e){return!$F(e)&&!Gc(e)&&!Ai(e,32)&&!df(e)}function RF(e){return $F(e)||Gc(e)||Ai(e,32)}function bk(e){return e.kind===249||e.kind===250}function vq(e){return Cs(e)||At(e)}function GK(e){return Cs(e)}function sm(e){return mp(e)||At(e)}function Pde(e){let t=e.kind;return t===268||t===267||t===80}function FRe(e){let t=e.kind;return t===268||t===267}function MRe(e){let t=e.kind;return t===80||t===267}function KK(e){let t=e.kind;return t===275||t===274}function jF(e){return e.kind===267||e.kind===266}function qg(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Py(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function NNt(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function Ede(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Dde(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function Ku(e){return e.kind===168?e.parent&&e.parent.kind!==345||jn(e):NNt(e.kind)}function Ode(e){return Ede(e.kind)}function LF(e){return Dde(e.kind)}function fa(e){let t=e.kind;return Dde(t)||Ede(t)||ANt(e)}function ANt(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!y2(e)}function Nde(e){let t=e.kind;return Dde(t)||Ede(t)||t===241}function Ade(e){let t=e.kind;return t===283||t===166||t===80}function YI(e){let t=e.kind;return t===110||t===80||t===211||t===295}function BF(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function bq(e){let t=e.kind;return t===291||t===293}function Ide(e){let t=e.kind;return t===11||t===294}function Qp(e){let t=e.kind;return t===286||t===285}function Fde(e){let t=e.kind;return t===286||t===285||t===289}function xq(e){let t=e.kind;return t===296||t===297}function YO(e){return e.kind>=309&&e.kind<=351}function Sq(e){return e.kind===320||e.kind===319||e.kind===321||qP(e)||ZO(e)||Hk(e)||B1(e)}function ZO(e){return e.kind>=327&&e.kind<=351}function kh(e){return e.kind===178}function Sv(e){return e.kind===177}function fd(e){if(!h5(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function Tq(e){return!!e.type}function k1(e){return!!e.initializer}function xk(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function QK(e){return e.kind===291||e.kind===293||k0(e)}function wq(e){return e.kind===183||e.kind===233}var RRe=1073741823;function Mde(e){let t=RRe;for(let n of e){if(!n.length)continue;let i=0;for(;i<n.length&&i<t&&yv(n.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===RRe?void 0:t}function Ho(e){return e.kind===11||e.kind===15}function qP(e){return e.kind===324||e.kind===325||e.kind===326}function XK(e){let t=dc(e.parameters);return!!t&&Ey(t)}function Ey(e){let t=Ad(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===318}function jRe(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function Rde(e,t){t??(t=rn(e));let n=ds(e);if(n&&n.kind===169){let s=n.parent.parameters.indexOf(n),l=s>0?n.parent.parameters[s-1]:void 0,p=t.text,g=l?ya(ex(p,yo(p,l.end+1,!1,!0)),vv(p,e.pos)):ex(p,yo(p,e.pos,!1,!0));return Pt(g)&&jRe(ao(g),t)}let i=n&&yQ(n,t);return!!Ge(i,s=>jRe(s,t))}var YK=[],lx="tslib",ZI=160,ZK=1e6;function Zc(e,t){let n=e.declarations;if(n){for(let i of n)if(i.kind===t)return i}}function jde(e,t){return Cn(e.declarations||ce,n=>n.kind===t)}function Qs(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function Tv(e){return(e.flags&33554432)!==0}function JP(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var kq=INt();function INt(){var e="";let t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&yv(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ko,decreaseIndent:Ko,clear:()=>e=""}}function Cq(e,t){return e.configFilePath!==t.configFilePath||FNt(e,t)}function FNt(e,t){return zP(e,t,$Y)}function Lde(e,t){return zP(e,t,Cye)}function zP(e,t,n){return e!==t&&n.some(i=>!GJ(RJ(e,i),RJ(t,i)))}function Bde(e,t){for(;;){let n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(ba(e))return;e=e.parent}}function Lu(e,t){let n=e.entries();for(let[i,s]of n){let l=t(s,i);if(l)return l}}function wv(e,t){let n=e.keys();for(let i of n){let s=t(i);if(s)return s}}function Pq(e,t){e.forEach((n,i)=>{t.set(i,n)})}function eN(e){let t=kq.getText();try{return e(kq),kq.getText()}finally{kq.clear(),kq.writeKeyword(t)}}function qF(e){return e.end-e.pos}function eQ(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function qde(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&MNt(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function WP(e){return e.resolvedModule}function Eq(e){return e.resolvedTypeReferenceDirective}function Dq(e,t,n,i,s){var l;let p=(l=t.getResolvedModule(e,n,i))==null?void 0:l.alternateResult,g=p&&(Xp(t.getCompilerOptions())===2?[y.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[p]]:[y.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[p,p.includes(Bv+"@types/")?`@types/${XN(s)}`:s]]),m=g?vs(void 0,g[0],...g[1]):t.typesPackageExists(s)?vs(void 0,y.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,XN(s)):t.packageBundlesTypes(s)?vs(void 0,y.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):vs(void 0,y.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,XN(s));return m&&(m.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),m}function tQ(e){let t=Fv(e.fileName),n=e.packageJsonScope,i=t===".ts"?".mts":t===".js"?".mjs":void 0,s=n&&!n.contents.packageJsonContent.type?i?vs(void 0,y.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,i,gi(n.packageDirectory,"package.json")):vs(void 0,y.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,gi(n.packageDirectory,"package.json")):i?vs(void 0,y.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,i):vs(void 0,y.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return s.repopulateInfo=()=>!0,s}function MNt(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function Oq({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function TS(e){return`${Oq(e)}@${e.version}${e.peerDependencies??""}`}function Jde(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function rQ(e,t,n,i){I.assert(e.length===t.length);for(let s=0;s<e.length;s++){let l=t[s],p=e[s],g=n(p);if(g?!l||!i(g,l):l)return!0}return!1}function UP(e){return RNt(e),(e.flags&1048576)!==0}function RNt(e){e.flags&2097152||((e.flags&262144||xs(e,UP))&&(e.flags|=1048576),e.flags|=2097152)}function rn(e){for(;e&&e.kind!==307;)e=e.parent;return e}function JF(e){return rn(e.valueDeclaration||pQ(e))}function e4(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function zde(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function ux(e,t){return I.assert(e>=0),hv(t)[e]}function LRe(e){let t=rn(e),n=$s(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function zF(e,t){I.assert(e>=0);let n=hv(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{let l=n[i],p=n[i+1]-1;for(I.assert(Gp(s.charCodeAt(p)));l<=p&&Gp(s.charCodeAt(p));)p--;return p}}function Nq(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function Sl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function jm(e){return!Sl(e)}function Wde(e,t){return Hc(e)?t===e.expression:Al(e)?t===e.modifiers:vf(e)?t===e.initializer:is(e)?t===e.questionToken&&Kf(e):xu(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||WF(e.modifiers,t,Yc):Jp(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||WF(e.modifiers,t,Yc):wl(e)?t===e.exclamationToken:ul(e)?t===e.typeParameters||t===e.type||WF(e.typeParameters,t,Hc):mm(e)?t===e.typeParameters||WF(e.typeParameters,t,Hc):v_(e)?t===e.typeParameters||t===e.type||WF(e.typeParameters,t,Hc):pM(e)?t===e.modifiers||WF(e.modifiers,t,Yc):!1}function WF(e,t,n){return!e||cs(t)||!n(t)?!1:Ta(e,t)}function BRe(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&n(e[i]);++i);return e.splice(i,0,...t),e}function qRe(e,t,n){if(t===void 0)return e;let i=0;for(;i<e.length&&n(e[i]);++i);return e.splice(i,0,t),e}function JRe(e){return Ph(e)||!!(Ao(e)&2097152)}function kv(e,t){return BRe(e,t,Ph)}function nQ(e,t){return BRe(e,t,JRe)}function zRe(e,t){return qRe(e,t,Ph)}function Sk(e,t){return qRe(e,t,JRe)}function iQ(e,t,n){if(e.charCodeAt(t+1)===47&&t+2<n&&e.charCodeAt(t+2)===47){let i=e.substring(t,n);return!!($Nt.test(i)||GNt.test(i)||KNt.test(i)||VNt.test(i)||HNt.test(i)||QNt.test(i))}return!1}function Aq(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Ude(e,t){let n=new Map(t.map(p=>[`${$s(e,p.range.end).line}`,p])),i=new Map;return{getUnusedExpectations:s,markUsed:l};function s(){return Ka(n.entries()).filter(([p,g])=>g.type===0&&!i.get(p)).map(([p,g])=>g)}function l(p){return n.has(`${p}`)?(i.set(`${p}`,!0),!0):!1}}function px(e,t,n){if(Sl(e))return e.pos;if(YO(e)||e.kind===12)return yo((t??rn(e)).text,e.pos,!1,!0);if(n&&fd(e))return px(e.jsDoc[0],t);if(e.kind===352){t??(t=rn(e));let i=Yl(wY(e,t));if(i)return px(i,t,n)}return yo((t??rn(e)).text,e.pos,!1,!1,i5(e))}function aQ(e,t){let n=!Sl(e)&&$m(e)?Ks(e.modifiers,qu):void 0;return n?yo((t||rn(e)).text,n.end):px(e,t)}function $de(e,t){let n=!Sl(e)&&$m(e)&&e.modifiers?ao(e.modifiers):void 0;return n?yo((t||rn(e)).text,n.end):px(e,t)}function m2(e,t,n=!1){return t4(e.text,t,n)}function jNt(e){return!!Br(e,JS)}function Iq(e){return!!(tu(e)&&e.exportClause&&Fy(e.exportClause)&&Dy(e.exportClause.name))}function fx(e){return e.kind===11?e.text:ka(e.escapedText)}function g2(e){return e.kind===11?gl(e.text):e.escapedText}function Dy(e){return(e.kind===11?e.text:e.escapedText)==="default"}function t4(e,t,n=!1){if(Sl(t))return"";let i=e.substring(n?t.pos:yo(e,t.pos),t.end);return jNt(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(`
|
|
`)),i}function cl(e,t=!1){return m2(rn(e),e,t)}function LNt(e){return e.pos}function tN(e,t){return tm(e,t,LNt,mc)}function Ao(e){let t=e.emitNode;return t&&t.flags||0}function mg(e){let t=e.emitNode;return t&&t.internalFlags||0}var sQ=Cu(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:ce})),AsyncIterator:new Map(Object.entries({es2015:ce})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:ce})),AsyncIterableIterator:new Map(Object.entries({es2018:ce})),AsyncGenerator:new Map(Object.entries({es2018:ce})),AsyncGeneratorFunction:new Map(Object.entries({es2018:ce})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:ce,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:ce})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:ce})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:ce,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:ce,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),Vde=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(Vde||{});function Hde(e,t,n){if(t&&BNt(e,n))return m2(t,e);switch(e.kind){case 11:{let i=n&2?VQ:n&1||Ao(e)&16777216?Ay:uJ;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=n&1||Ao(e)&16777216?Ay:uJ,s=e.rawText??UQ(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return I.fail(`Literal kind '${e.kind}' not accounted for.`)}function BNt(e,t){if(Pc(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(e_(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!H4(e)}function Gde(e){return Ua(e)?`"${Ay(e)}"`:""+e}function Kde(e){return gu(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function oQ(e){return(w0(e)&7)!==0||cQ(e)}function cQ(e){let t=Nh(e);return t.kind===260&&t.parent.kind===299}function df(e){return cu(e)&&(e.name.kind===11||Oy(e))}function Fq(e){return cu(e)&&e.name.kind===11}function lQ(e){return cu(e)&&vo(e.name)}function qNt(e){return cu(e)||Ye(e)}function UF(e){return JNt(e.valueDeclaration)}function JNt(e){return!!e&&e.kind===267&&!e.body}function Qde(e){return e.kind===307||e.kind===267||XO(e)}function Oy(e){return!!(e.flags&2048)}function h2(e){return df(e)&&uQ(e)}function uQ(e){switch(e.parent.kind){case 307:return Du(e.parent);case 268:return df(e.parent.parent)&&ba(e.parent.parent.parent)&&!Du(e.parent.parent.parent)}return!1}function pQ(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!h2(n)&&!(cu(n)&&Oy(n)))}function zNt(e){return e===1||100<=e&&e<=199}function rN(e,t){return Du(e)||zNt(hf(t))&&!!e.commonJsModuleIndicator}function fQ(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Bp(t,"alwaysStrict")||eye(e.statements)||Du(e)||zm(t))}function _Q(e){return!!(e.flags&33554432)||Ai(e,128)}function dQ(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!XO(t)}return!1}function mQ(e){switch(I.type(e),e.kind){case 338:case 346:case 323:return!0;default:return gQ(e)}}function gQ(e){switch(I.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function $P(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Xde(e){return $P(e)||b2(e)}function Yde(e){return $P(e)||s5(e)}function Mq(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Zde(e){return $F(e)||cu(e)||jh(e)||_d(e)}function $F(e){return $P(e)||tu(e)}function Rq(e){return Br(e.parent,t=>!!(bZ(t)&1))}function Jg(e){return Br(e.parent,t=>dQ(t,t.parent))}function eme(e,t){let n=Jg(e);for(;n;)t(n),n=Jg(n)}function Oc(e){return!e||qF(e)===0?"(Missing)":cl(e)}function tme(e){return e.declaration?Oc(e.declaration.parameters[0].name):void 0}function VF(e){return e.kind===167&&!Dd(e.expression)}function r4(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 10:case 15:return gl(e.text);case 167:return Dd(e.expression)?gl(e.expression.text):void 0;case 295:return _E(e);default:return I.assertNever(e)}}function VP(e){return I.checkDefined(r4(e))}function B_(e){switch(e.kind){case 110:return"this";case 81:case 80:return qF(e)===0?fi(e):cl(e);case 166:return B_(e.left)+"."+B_(e.right);case 211:return Ye(e.name)||Ca(e.name)?B_(e.expression)+"."+B_(e.name):I.assertNever(e.name);case 311:return B_(e.left)+"#"+B_(e.right);case 295:return B_(e.namespace)+":"+B_(e.name);default:return I.assertNever(e)}}function Mn(e,t,...n){let i=rn(e);return om(i,e,t,...n)}function nN(e,t,n,...i){let s=yo(e.text,t.pos);return Eu(e,s,t.end-s,n,...i)}function om(e,t,n,...i){let s=Tk(e,t);return Eu(e,s.start,s.length,n,...i)}function Cv(e,t,n,i){let s=Tk(e,t);return jq(e,s.start,s.length,n,i)}function HF(e,t,n,i){let s=yo(e.text,t.pos);return jq(e,s,t.end-s,n,i)}function rme(e,t,n){I.assertGreaterThanOrEqual(t,0),I.assertGreaterThanOrEqual(n,0),I.assertLessThanOrEqual(t,e.length),I.assertLessThanOrEqual(t+n,e.length)}function jq(e,t,n,i,s){return rme(e.text,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s,canonicalHead:i.canonicalHead}}function hQ(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function nme(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function ime(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function ame(e,...t){return{code:e.code,messageText:cE(e,...t)}}function Ch(e,t){let n=bv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();let i=n.getTokenStart();return Ul(i,n.getTokenEnd())}function sme(e,t){let n=bv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function WNt(e,t){let n=yo(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=$s(e,t.body.pos),{line:s}=$s(e,t.body.end);if(i<s)return Sp(n,zF(i,e)-n+1)}return Ul(n,t.end)}function Tk(e,t){let n=t;switch(t.kind){case 307:{let l=yo(e.text,0,!1);return l===e.text.length?Sp(0,0):Ch(e,l)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return WNt(e,t);case 296:case 297:{let l=yo(e.text,t.pos),p=t.statements.length>0?t.statements[0].pos:t.end;return Ul(l,p)}case 253:case 229:{let l=yo(e.text,t.pos);return Ch(e,l)}case 238:{let l=yo(e.text,t.expression.end);return Ch(e,l)}case 350:{let l=yo(e.text,t.tagName.pos);return Ch(e,l)}case 176:{let l=t,p=yo(e.text,l.pos),g=bv(e.languageVersion,!0,e.languageVariant,e.text,void 0,p),m=g.scan();for(;m!==137&&m!==1;)m=g.scan();let x=g.getTokenEnd();return Ul(p,x)}}if(n===void 0)return Ch(e,t.pos);I.assert(!Gg(n));let i=Sl(n),s=i||hE(t)?n.pos:yo(e.text,n.pos);return i?(I.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),I.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(I.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),I.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Ul(s,n.end)}function C1(e){return e.kind===307&&!q_(e)}function q_(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function cm(e){return e.scriptKind===6}function wS(e){return!!(bS(e)&4096)}function GF(e){return!!(bS(e)&8&&!L_(e,e.parent))}function KF(e){return(w0(e)&7)===6}function QF(e){return(w0(e)&7)===4}function iN(e){return(w0(e)&7)===2}function ome(e){let t=w0(e)&7;return t===2||t===4||t===6}function Lq(e){return(w0(e)&7)===1}function wk(e){return e.kind===213&&e.expression.kind===108}function _d(e){return e.kind===213&&e.expression.kind===102}function aN(e){return Y4(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function C0(e){return jh(e)&&R1(e.argument)&&vo(e.argument.literal)}function Ph(e){return e.kind===244&&e.expression.kind===11}function XF(e){return!!(Ao(e)&2097152)}function Bq(e){return XF(e)&&jl(e)}function UNt(e){return Ye(e.name)&&!e.initializer}function qq(e){return XF(e)&&Rl(e)&&sn(e.declarationList.declarations,UNt)}function yQ(e,t){return e.kind!==12?vv(t.text,e.pos):void 0}function vQ(e,t){let n=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?ya(ex(t,e.pos),vv(t,e.pos)):vv(t,e.pos);return Cn(n,i=>i.end<=e.end&&t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}var $Nt=/^\/\/\/\s*<reference\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,VNt=/^\/\/\/\s*<reference\s+types\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,HNt=/^\/\/\/\s*<reference\s+lib\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,GNt=/^\/\/\/\s*<amd-dependency\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,KNt=/^\/\/\/\s*<amd-module\s+(?:\S.*?)??\/>/,QNt=/^\/\/\/\s*<reference\s+no-default-lib\s*=\s*(?:'[^']*'|"[^"]*")\s*\/>/;function Eh(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return WRe(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),I.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return WRe(t);case 168:return e===t.constraint;case 345:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return Ta(t.typeArguments,e)}}}return!1}function WRe(e){return Cz(e.parent)||DE(e.parent)||U_(e.parent)&&!xJ(e)}function _x(e,t){return n(e);function n(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return xs(i,n)}}}function cme(e,t){return n(e);function n(i){switch(i.kind){case 229:t(i);let s=i.expression;s&&n(s);return;case 266:case 264:case 267:case 265:return;default:if(Ss(i)){if(i.name&&i.name.kind===167){n(i.name.expression);return}}else Eh(i)||xs(i,n)}}}function bQ(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Zd(e.typeArguments):void 0}function lme(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function n4(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function i4(e){return e.parent.kind===261&&e.parent.parent.kind===243}function ume(e){return jn(e)?So(e.parent)&&Vn(e.parent.parent)&&$l(e.parent.parent)===2||Jq(e.parent):!1}function Jq(e){return jn(e)?Vn(e)&&$l(e)===1:!1}function pme(e){return(Ui(e)?iN(e)&&Ye(e.name)&&i4(e):is(e)?Ik(e)&&Pu(e):vf(e)&&Ik(e))||Jq(e)}function fme(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function xQ(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function y2(e){return e&&e.kind===241&&Ss(e.parent)}function Lm(e){return e&&e.kind===174&&e.parent.kind===210}function zq(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function _me(e){return e&&e.kind===1}function dme(e){return e&&e.kind===0}function sN(e,t,n,i){return Ge(e?.properties,s=>{if(!xu(s))return;let l=r4(s.name);return t===l||i&&i===l?n(s):void 0})}function a4(e){if(e&&e.statements.length){let t=e.statements[0].expression;return _i(t,So)}}function Wq(e,t,n){return YF(e,t,i=>kp(i.initializer)?Ir(i.initializer.elements,s=>vo(s)&&s.text===n):void 0)}function YF(e,t,n){return sN(a4(e),t,n)}function Ed(e){return Br(e.parent,Ss)}function mme(e){return Br(e.parent,Dc)}function dp(e){return Br(e.parent,Ri)}function gme(e){return Br(e.parent,t=>Ri(t)||Ss(t)?"quit":Al(t))}function Uq(e){return Br(e.parent,XO)}function $q(e){let t=Br(e.parent,n=>Ri(n)?"quit":qu(n));return t&&Ri(t.parent)?dp(t.parent):dp(t??e)}function mf(e,t,n){for(I.assert(e.kind!==307);;){if(e=e.parent,!e)return I.fail();switch(e.kind){case 167:if(n&&Ri(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&ou(e.parent.parent)?e=e.parent.parent:ou(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function hme(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function Vq(e){Ye(e)&&(bu(e.parent)||jl(e.parent))&&e.parent.name===e&&(e=e.parent);let t=mf(e,!0,!1);return ba(t)}function yme(e){let t=mf(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function ZF(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&ou(e.parent.parent)?e=e.parent.parent:ou(e.parent)&&(e=e.parent);break}}}function v2(e){if(e.kind===218||e.kind===219){let t=e,n=e.parent;for(;n.kind===217;)t=n,n=n.parent;if(n.kind===213&&n.expression===t)return n}}function g_(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function e5(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function Hq(e){var t;return!!e&&Ui(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function vme(e){return!!e&&(Jp(e)||xu(e))&&Vn(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function t5(e){switch(e.kind){case 183:return e.typeName;case 233:return Tc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function Gq(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;case 289:return e;default:return e.expression}}function r5(e,t,n,i){if(e&&Gu(t)&&Ca(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return n!==void 0&&(e?bu(n):Ri(n)&&!D2(t)&&!rX(t));case 177:case 178:case 174:return t.body!==void 0&&n!==void 0&&(e?bu(n):Ri(n));case 169:return e?n!==void 0&&n.body!==void 0&&(n.kind===176||n.kind===174||n.kind===178)&&C2(n)!==t&&i!==void 0&&i.kind===263:!1}return!1}function oN(e,t,n,i){return Od(t)&&r5(e,t,n,i)}function n5(e,t,n,i){return oN(e,t,n,i)||s4(e,t,n)}function s4(e,t,n){switch(t.kind){case 263:return Pt(t.members,i=>n5(e,i,t,n));case 231:return!e&&Pt(t.members,i=>n5(e,i,t,n));case 174:case 178:case 176:return Pt(t.parameters,i=>oN(e,i,t,n));default:return!1}}function P1(e,t){if(oN(e,t))return!0;let n=Dv(t);return!!n&&s4(e,n,t)}function SQ(e,t,n){let i;if(ox(t)){let{firstAccessor:s,secondAccessor:l,setAccessor:p}=E2(n.members,t),g=Od(s)?s:l&&Od(l)?l:void 0;if(!g||t!==g)return!1;i=p?.parameters}else wl(t)&&(i=t.parameters);if(oN(e,t,n))return!0;if(i){for(let s of i)if(!gx(s)&&oN(e,s,t,n))return!0}return!1}function TQ(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return TQ(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function cN(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function zg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!U_(e.parent)&&!DE(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||qP(e.parent)||n3(e.parent)||zS(e.parent)||cN(e);case 311:for(;zS(e.parent);)e=e.parent;return e.parent.kind===186||qP(e.parent)||n3(e.parent)||zS(e.parent)||cN(e);case 81:return Vn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||qP(e.parent)||n3(e.parent)||zS(e.parent)||cN(e))return!0;case 9:case 10:case 11:case 15:case 110:return Kq(e);default:return!1}}function Kq(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let n=t;return n.initializer===e&&n.initializer.kind!==261||n.condition===e||n.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Eh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return zg(t)}}function Qq(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function bme(e){return Fy(e)&&!!e.parent.moduleSpecifier}function kS(e){return e.kind===271&&e.moduleReference.kind===283}function o4(e){return I.assert(kS(e)),e.moduleReference.expression}function wQ(e){return b2(e)&&xN(e.initializer).arguments[0]}function kk(e){return e.kind===271&&e.moduleReference.kind!==283}function Pv(e){return e?.kind===307}function Nf(e){return jn(e)}function jn(e){return!!e&&!!(e.flags&524288)}function Xq(e){return!!e&&!!(e.flags&134217728)}function Yq(e){return!cm(e)}function i5(e){return!!e&&!!(e.flags&16777216)}function Zq(e){return W_(e)&&Ye(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Xf(e,t){if(e.kind!==213)return!1;let{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;let s=i[0];return!t||Ho(s)}function a5(e){return URe(e,!1)}function b2(e){return URe(e,!0)}function xme(e){return Do(e)&&b2(e.parent.parent)}function URe(e,t){return Ui(e)&&!!e.initializer&&Xf(t?xN(e.initializer):e.initializer,!0)}function s5(e){return Rl(e)&&e.declarationList.declarations.length>0&&sn(e.declarationList.declarations,t=>a5(t))}function o5(e){return e===39||e===34}function eJ(e,t){return m2(t,e).charCodeAt(0)===34}function c4(e){return Vn(e)||Lc(e)||Ye(e)||Ls(e)}function c5(e){return jn(e)&&e.initializer&&Vn(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Tc(e.name)&&lN(e.name,e.initializer.left)?e.initializer.right:e.initializer}function l4(e){let t=c5(e);return t&&CS(t,yx(e.name))}function XNt(e,t){return Ge(e.properties,n=>xu(n)&&Ye(n.name)&&n.name.escapedText==="value"&&n.initializer&&CS(n.initializer,t))}function HP(e){if(e&&e.parent&&Vn(e.parent)&&e.parent.operatorToken.kind===64){let t=yx(e.parent.left);return CS(e.parent.right,t)||YNt(e.parent.left,e.parent.right,t)}if(e&&Ls(e)&&Pk(e)){let t=XNt(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function CS(e,t){if(Ls(e)){let n=Qo(e.expression);return n.kind===218||n.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||So(e)&&(e.properties.length===0||t))return e}function YNt(e,t,n){let i=Vn(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&CS(t.right,n);if(i&&lN(e,t.left))return i}function Sme(e){let t=Ui(e.parent)?e.parent.name:Vn(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&CS(e.right,yx(t))&&Tc(t)&&lN(t,e.left)}function kQ(e){if(Vn(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Vn(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ye(t.left))return t.left}else if(Ui(e.parent))return e.parent.name}function lN(e,t){return Oh(e)&&Oh(t)?lm(e)===lm(t):xv(e)&&Tme(t)&&(t.expression.kind===110||Ye(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?lN(e,u5(t)):Tme(e)&&Tme(t)?P0(e)===P0(t)&&lN(e.expression,t.expression):!1}function l5(e){for(;Yu(e,!0);)e=e.right;return e}function Ck(e){return Ye(e)&&e.escapedText==="exports"}function CQ(e){return Ye(e)&&e.escapedText==="module"}function Ev(e){return(ai(e)||PQ(e))&&CQ(e.expression)&&P0(e)==="exports"}function $l(e){let t=ZNt(e);return t===5||jn(e)?t:0}function Pk(e){return Re(e.arguments)===3&&ai(e.expression)&&Ye(e.expression.expression)&&fi(e.expression.expression)==="Object"&&fi(e.expression.name)==="defineProperty"&&Dd(e.arguments[1])&&Ek(e.arguments[0],!0)}function Tme(e){return ai(e)||PQ(e)}function PQ(e){return Nc(e)&&Dd(e.argumentExpression)}function x2(e,t){return ai(e)&&(!t&&e.expression.kind===110||Ye(e.name)&&Ek(e.expression,!0))||tJ(e,t)}function tJ(e,t){return PQ(e)&&(!t&&e.expression.kind===110||Tc(e.expression)||x2(e.expression,!0))}function Ek(e,t){return Tc(e)||x2(e,t)}function u5(e){return ai(e)?e.name:e.argumentExpression}function ZNt(e){if(Ls(e)){if(!Pk(e))return 0;let t=e.arguments[0];return Ck(t)||Ev(t)?8:x2(t)&&P0(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Lc(e.left)||eAt(l5(e))?0:Ek(e.left.expression,!0)&&P0(e.left)==="prototype"&&So(EQ(e))?6:p5(e.left)}function eAt(e){return kE(e)&&e_(e.expression)&&e.expression.text==="0"}function rJ(e){if(ai(e))return e.name;let t=Qo(e.argumentExpression);return e_(t)||Ho(t)?t:e}function P0(e){let t=rJ(e);if(t){if(Ye(t))return t.escapedText;if(Ho(t)||e_(t))return gl(t.text)}}function p5(e){if(e.expression.kind===110)return 4;if(Ev(e))return 2;if(Ek(e.expression,!0)){if(yx(e.expression))return 3;let t=e;for(;!Ye(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&P0(t)==="exports")&&x2(e))return 1;if(Ek(e,!0)||Nc(e)&&cJ(e))return 5}return 0}function EQ(e){for(;Vn(e.right);)e=e.right;return e.right}function f5(e){return Vn(e)&&$l(e)===3}function wme(e){return jn(e)&&e.parent&&e.parent.kind===244&&(!Nc(e)||PQ(e))&&!!xS(e.parent)}function _5(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!jn(t)&&!(n.flags&33554432))&&c4(n)&&!c4(t)||n.kind!==t.kind&&qNt(n))&&(e.valueDeclaration=t)}function kme(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Ui(t)&&t.initializer&&Ss(t.initializer)}function Cme(e){switch(e?.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function GP(e){var t,n;switch(e.kind){case 260:case 208:return(t=Br(e.initializer,i=>Xf(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:case 351:return _i(e.moduleSpecifier,Ho);case 271:return _i((n=_i(e.moduleReference,M0))==null?void 0:n.expression,Ho);case 273:case 280:return _i(e.parent.moduleSpecifier,Ho);case 274:case 281:return _i(e.parent.parent.moduleSpecifier,Ho);case 276:return _i(e.parent.parent.parent.moduleSpecifier,Ho);case 205:return C0(e)?e.argument.literal:void 0;default:I.assertNever(e)}}function u4(e){return d5(e)||I.failBadSyntaxKind(e.parent)}function d5(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return _d(e.parent)||Xf(e.parent,!1)?e.parent:void 0;case 201:if(!vo(e))break;return _i(e.parent.parent,jh);default:return}}function m5(e,t){return!!t.rewriteRelativeImportExtensions&&pd(e)&&!Wu(e)&&Mk(e)}function KP(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return C0(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return I.assertNever(e)}}function uN(e){switch(e.kind){case 272:return e.importClause&&_i(e.importClause.namedBindings,jv);case 271:return e;case 278:return e.exportClause&&_i(e.exportClause,Fy);default:return I.assertNever(e)}}function Dk(e){return(e.kind===272||e.kind===351)&&!!e.importClause&&!!e.importClause.name}function Pme(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=jv(e.namedBindings)?t(e.namedBindings):Ge(e.namedBindings.elements,t);if(n)return n}}function QP(e){switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function XP(e){let t=LN(e)?Yl(e.parameters):void 0,n=_i(t&&t.name,Ye);return!!n&&n.escapedText==="new"}function Bm(e){return e.kind===346||e.kind===338||e.kind===340}function g5(e){return Bm(e)||Wm(e)}function tAt(e){return Zu(e)&&Vn(e.expression)&&e.expression.operatorToken.kind===64?l5(e.expression):void 0}function $Re(e){return Zu(e)&&Vn(e.expression)&&$l(e.expression)!==0&&Vn(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function VRe(e){switch(e.kind){case 243:let t=YP(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function YP(e){return Rl(e)?Yl(e.declarationList.declarations):void 0}function HRe(e){return cu(e)&&e.body&&e.body.kind===267?e.body:void 0}function pN(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function h5(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function DQ(e,t){let n;n4(e)&&k1(e)&&fd(e.initializer)&&(n=ti(n,GRe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(fd(i)&&(n=ti(n,GRe(e,i.jsDoc))),i.kind===169){n=ti(n,(t?nde:HO)(i));break}if(i.kind===168){n=ti(n,(t?ade:ide)(i));break}i=OQ(i)}return n||ce}function GRe(e,t){let n=ao(t);return li(t,i=>{if(i===n){let s=Cn(i.tags,l=>rAt(e,l));return i.tags===s?[i]:s}else return Cn(i.tags,BN)})}function rAt(e,t){return!(i3(t)||Pz(t))||!t.parent||!Gg(t.parent)||!Mf(t.parent.parent)||t.parent.parent===e}function OQ(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||HRe(t)||Yu(e))return t;if(t.parent&&(YP(t.parent)===e||Yu(t)))return t.parent;if(t.parent&&t.parent.parent&&(YP(t.parent.parent)||VRe(t.parent.parent)===e||$Re(t.parent.parent)))return t.parent.parent}function y5(e){if(e.symbol)return e.symbol;if(!Ye(e.name))return;let t=e.name.escapedText,n=PS(e);if(!n)return;let i=Ir(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function nJ(e){if(Gg(e.parent)&&e.parent.tags){let t=Ir(e.parent.tags,Bm);if(t)return t}return PS(e)}function NQ(e){return uq(e,BN)}function PS(e){let t=ES(e);if(t)return vf(t)&&t.type&&Ss(t.type)?t.type:Ss(t)?t:void 0}function ES(e){let t=S2(e);if(t)return $Re(t)||tAt(t)||VRe(t)||YP(t)||HRe(t)||t}function S2(e){let t=fN(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===dc(n.jsDoc))return n}function fN(e){return Br(e.parent,Gg)}function Eme(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&Ir(n,i=>i.name.escapedText===t)}function KRe(e){return!!e.typeArguments}var Dme=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Dme||{});function Ome(e){let t=e.parent;for(;;){switch(t.kind){case 226:let n=t,i=n.operatorToken.kind;return O0(i)&&n.left===e?n:void 0;case 224:case 225:let s=t,l=s.operator;return l===46||l===47?s:void 0;case 249:case 250:let p=t;return p.initializer===e?p:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function dx(e){let t=Ome(e);if(!t)return 0;switch(t.kind){case 226:let n=t.operatorToken.kind;return n===64||x4(n)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function mx(e){return!!Ome(e)}function nAt(e){let t=Qo(e.right);return t.kind===226&&MY(t.operatorToken.kind)}function AQ(e){let t=Ome(e);return!!t&&Yu(t,!0)&&nAt(t)}function Nme(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Ok(e){return Ic(e)||Bc(e)||LP(e)||jl(e)||ul(e)}function QRe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function v5(e){return QRe(e,196)}function gg(e){return QRe(e,217)}function Ame(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function p4(e){for(;Jk(e);)e=e.type;return e}function Qo(e,t){return Ll(e,t?-2147483647:1)}function IQ(e){return e.kind!==211&&e.kind!==212?!1:(e=gg(e.parent),e&&e.kind===220)}function T2(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Ny(e){return!ba(e)&&!Os(e)&&Ku(e.parent)&&e.parent.name===e}function f4(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(po(t))return t.parent;case 80:if(Ku(t))return t.name===e?t:void 0;if(If(t)){let n=t.parent;return Ad(n)&&n.name===t?n:void 0}else{let n=t.parent;return Vn(n)&&$l(n)!==0&&(n.left.symbol||n.symbol)&&ls(n)===e?n:void 0}case 81:return Ku(t)&&t.name===e?t:void 0;default:return}}function b5(e){return Dd(e)&&e.parent.kind===167&&Ku(e.parent.parent)}function Ime(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function FQ(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return FQ(e)}}function iJ(e){return Tc(e)||vu(e)}function x5(e){let t=MQ(e);return iJ(t)}function MQ(e){return Gc(e)?e.expression:e.right}function Fme(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Dh(e){let t=w2(e);if(t&&jn(e)){let n=ode(e);if(n)return n.class}return t}function w2(e){let t=S5(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function _N(e){if(jn(e))return cde(e).map(t=>t.class);{let t=S5(e.heritageClauses,119);return t?.types}}function _4(e){return Cp(e)?d4(e)||ce:Ri(e)&&ya(lg(Dh(e)),_N(e))||ce}function d4(e){let t=S5(e.heritageClauses,96);return t?t.types:void 0}function S5(e,t){if(e){for(let n of e)if(n.token===t)return n}}function DS(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Yf(e){return 83<=e&&e<=165}function RQ(e){return 19<=e&&e<=79}function aJ(e){return Yf(e)||RQ(e)}function sJ(e){return 128<=e&&e<=165}function jQ(e){return Yf(e)&&!sJ(e)}function ZP(e){let t=dk(e);return t!==void 0&&jQ(t)}function LQ(e){let t=mk(e);return!!t&&!sJ(t)}function dN(e){return 2<=e&&e<=7}var Mme=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Mme||{});function eu(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Ai(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function m4(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Ai(e,1024)}return!1}function Dd(e){return Ho(e)||e_(e)}function oJ(e){return jS(e)&&(e.operator===40||e.operator===41)&&e_(e.operand)}function E0(e){let t=ls(e);return!!t&&cJ(t)}function cJ(e){if(!(e.kind===167||e.kind===212))return!1;let t=Nc(e)?Qo(e.argumentExpression):e.expression;return!Dd(t)&&!oJ(t)}function Nk(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return gl(e.text);case 167:let t=e.expression;return Dd(t)?gl(t.text):oJ(t)?t.operator===41?to(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return _E(e);default:return I.assertNever(e)}}function Oh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function lm(e){return xv(e)?fi(e):Hg(e)?z4(e):e.text}function g4(e){return xv(e)?e.escapedText:Hg(e)?_E(e):gl(e.text)}function T5(e,t){return`__#${co(e)}@${t}`}function w5(e){return La(e.escapedName,"__@")}function Rme(e){return La(e.escapedName,"__#")}function iAt(e){return Ye(e)?fi(e)==="__proto__":vo(e)&&e.text==="__proto__"}function lJ(e,t){switch(e=Ll(e),e.kind){case 231:if(WZ(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function BQ(e){switch(e.kind){case 303:return!iAt(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ye(e.name)&&!!e.initializer;case 169:return Ye(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ye(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ye(e.left)}break;case 277:return!0}return!1}function J_(e,t){if(!BQ(e))return!1;switch(e.kind){case 303:return lJ(e.initializer,t);case 304:return lJ(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return lJ(e.initializer,t);case 226:return lJ(e.right,t);case 277:return lJ(e.expression,t)}}function qQ(e){return e.escapedText==="push"||e.escapedText==="unshift"}function OS(e){return Nh(e).kind===169}function Nh(e){for(;e.kind===208;)e=e.parent.parent;return e}function JQ(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===307}function Pc(e){return Ug(e.pos)||Ug(e.end)}var jme=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(jme||{});function zQ(e){let t=XRe(e),n=e.kind===214&&e.arguments!==void 0;return WQ(e.kind,t,n)}function WQ(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function h4(e){let t=XRe(e),n=e.kind===214&&e.arguments!==void 0;return k5(e.kind,t,n)}function XRe(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}var Lme=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(Lme||{});function k5(e,t,n){switch(e){case 356:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return C5(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function C5(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function mN(e){return Cn(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function y4(){let e=[],t=[],n=new Map,i=!1;return{add:l,lookup:s,getGlobalDiagnostics:p,getDiagnostics:g};function s(m){let x;if(m.file?x=n.get(m.file.fileName):x=e,!x)return;let b=tm(x,m,vc,vge);if(b>=0)return x[b];if(~b>0&&AJ(m,x[~b-1]))return x[~b-1]}function l(m){let x;m.file?(x=n.get(m.file.fileName),x||(x=[],n.set(m.file.fileName,x),Mg(t,m.file.fileName,fp))):(i&&(i=!1,e=e.slice()),x=e),Mg(x,m,vge,AJ)}function p(){return i=!0,e}function g(m){if(m)return n.get(m)||[];let x=xl(t,b=>n.get(b));return e.length&&x.unshift(...e),x}}var aAt=/\$\{/g;function UQ(e){return e.replace(aAt,"\\${")}function Bme(e){return!!((e.templateFlags||0)&2048)}function $Q(e){return e&&!!(Bk(e)?Bme(e):Bme(e.head)||Pt(e.templateSpans,t=>Bme(t.literal)))}var sAt=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,oAt=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,cAt=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,lAt=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function YRe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function uAt(e,t,n){if(e.charCodeAt(0)===0){let i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return lAt.get(e)||YRe(e.charCodeAt(0))}function Ay(e,t){let n=t===96?cAt:t===39?oAt:sAt;return e.replace(n,uAt)}var ZRe=/[^\u0000-\u007F]/g;function uJ(e,t){return e=Ay(e,t),ZRe.test(e)?e.replace(ZRe,n=>YRe(n.charCodeAt(0))):e}var pAt=/["\u0000-\u001f\u2028\u2029\u0085]/g,fAt=/['\u0000-\u001f\u2028\u2029\u0085]/g,_At=new Map(Object.entries({'"':""","'":"'"}));function dAt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function mAt(e){return e.charCodeAt(0)===0?"�":_At.get(e)||dAt(e.charCodeAt(0))}function VQ(e,t){let n=t===39?fAt:pAt;return e.replace(n,mAt)}function qm(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&gAt(e.charCodeAt(0))?e.substring(1,t-1):e}function gAt(e){return e===39||e===34||e===96}function gN(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var P5=[""," "];function pJ(e){let t=P5[1];for(let n=P5.length;n<=e;n++)P5.push(P5[n-1]+t);return P5[e]}function E5(){return P5[1].length}function D5(e){var t,n,i,s,l,p=!1;function g(F){let M=FP(F);M.length>1?(s=s+M.length-1,l=t.length-F.length+ao(M),i=l-t.length===0):i=!1}function m(F){F&&F.length&&(i&&(F=pJ(n)+F,i=!1),t+=F,g(F))}function x(F){F&&(p=!1),m(F)}function b(F){F&&(p=!0),m(F)}function S(){t="",n=0,i=!0,s=0,l=0,p=!1}function P(F){F!==void 0&&(t+=F,g(F),p=!1)}function E(F){F&&F.length&&x(F)}function N(F){(!i||F)&&(t+=e,s++,l=t.length,i=!0,p=!1)}return S(),{write:x,rawWrite:P,writeLiteral:E,writeLine:N,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*E5():t.length-l,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>p,hasTrailingWhitespace:()=>!!t.length&&yv(t.charCodeAt(t.length-1)),clear:S,writeKeyword:x,writeOperator:x,writeParameter:x,writeProperty:x,writePunctuation:x,writeSpace:x,writeStringLiteral:x,writeSymbol:(F,M)=>x(F),writeTrailingSemicolon:x,writeComment:b}}function HQ(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function Ak(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function D0(e){return Xu(Ak(e))}function GQ(e,t,n){return t.moduleName||KQ(e,t.fileName,n&&n.fileName)}function eje(e,t){return e.getCanonicalFileName(Qa(t,e.getCurrentDirectory()))}function qme(e,t,n){let i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;let s=KP(n);if(!(s&&Ho(s)&&!pd(s.text)&&!eje(e,i.path).includes(eje(e,ju(e.getCommonSourceDirectory())))))return GQ(e,i)}function KQ(e,t,n){let i=m=>e.getCanonicalFileName(m),s=Ec(n?Ei(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),l=Qa(t,e.getCurrentDirectory()),p=IP(s,l,s,i,!1),g=yf(p);return n?_k(g):g}function Jme(e,t,n){let i=t.getCompilerOptions(),s;return i.outDir?s=yf(gJ(e,t,i.outDir)):s=yf(e),s+n}function zme(e,t){return fJ(e,t.getCompilerOptions(),t)}function fJ(e,t,n){let i=t.declarationDir||t.outDir,s=i?Wme(e,i,n.getCurrentDirectory(),n.getCommonSourceDirectory(),p=>n.getCanonicalFileName(p)):e,l=_J(s);return yf(s)+l}function _J(e){return Wl(e,[".mjs",".mts"])?".d.mts":Wl(e,[".cjs",".cts"])?".d.cts":Wl(e,[".json"])?".d.json.ts":".d.ts"}function QQ(e){return Wl(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Wl(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Wl(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function XQ(e,t,n,i){return n?Zb(i(),Pd(n,e,t)):e}function dJ(e,t){var n;if(e.paths)return e.baseUrl??I.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function mJ(e,t,n){let i=e.getCompilerOptions();if(i.outFile){let s=hf(i),l=i.emitDeclarationOnly||s===2||s===4;return Cn(e.getSourceFiles(),p=>(l||!Du(p))&&k2(p,e,n))}else{let s=t===void 0?e.getSourceFiles():[t];return Cn(s,l=>k2(l,e,n))}}function k2(e,t,n){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Nf(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!cm(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(i.outFile)return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let s=Qa(C3(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),l=Wme(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(S0(e.fileName,l,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function gJ(e,t,n){return Wme(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function Wme(e,t,n,i,s){let l=Qa(e,n);return l=s(l).indexOf(s(i))===0?l.substring(i.length):l,gi(t,l)}function hJ(e,t,n,i,s,l,p){e.writeFile(n,i,s,g=>{t.add(ll(y.Could_not_write_file_0_Colon_1,n,g))},l,p)}function tje(e,t,n){if(e.length>Lg(e)&&!n(e)){let i=Ei(e);tje(i,t,n),t(e)}}function YQ(e,t,n,i,s,l){try{i(e,t,n)}catch{tje(Ei(Zs(e)),s,l),i(e,t,n)}}function v4(e,t){let n=hv(e);return jI(n,t)}function hN(e,t){return jI(e,t)}function Dv(e){return Ir(e.members,t=>ul(t)&&jm(t.body))}function b4(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&gx(e.parameters[0]);return e.parameters[t?1:0]}}function Ume(e){let t=b4(e);return t&&t.type}function C2(e){if(e.parameters.length&&!B1(e)){let t=e.parameters[0];if(gx(t))return t}}function gx(e){return hx(e.name)}function hx(e){return!!e&&e.kind===80&&ZQ(e)}function eE(e){return!!Br(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function P2(e){if(!hx(e))return!1;for(;If(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function ZQ(e){return e.escapedText==="this"}function E2(e,t){let n,i,s,l;return E0(t)?(n=t,t.kind===177?s=t:t.kind===178?l=t:I.fail("Accessor has wrong kind")):Ge(e,p=>{if(ox(p)&&Vs(p)===Vs(t)){let g=Nk(p.name),m=Nk(t.name);g===m&&(n?i||(i=p):n=p,p.kind===177&&!s&&(s=p),p.kind===178&&!l&&(l=p))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:l}}function hu(e){if(!jn(e)&&jl(e)||Wm(e))return;let t=e.type;return t||!jn(e)?t:HI(e)?e.typeExpression&&e.typeExpression.type:rx(e)}function $me(e){return e.type}function dd(e){return B1(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(jn(e)?PF(e):void 0)}function yJ(e){return li(SS(e),t=>hAt(t)?t.typeParameters:void 0)}function hAt(e){return Um(e)&&!(e.parent.kind===320&&(e.parent.tags.some(Bm)||e.parent.tags.some(BN)))}function eX(e){let t=b4(e);return t&&hu(t)}function yAt(e,t,n,i){vAt(e,t,n.pos,i)}function vAt(e,t,n,i){i&&i.length&&n!==i[0].pos&&hN(e,n)!==hN(e,i[0].pos)&&t.writeLine()}function Vme(e,t,n,i){n!==i&&hN(e,n)!==hN(e,i)&&t.writeLine()}function bAt(e,t,n,i,s,l,p,g){if(i&&i.length>0){s&&n.writeSpace(" ");let m=!1;for(let x of i)m&&(n.writeSpace(" "),m=!1),g(e,t,n,x.pos,x.end,p),x.hasTrailingNewLine?n.writeLine():m=!0;m&&l&&n.writeSpace(" ")}}function Hme(e,t,n,i,s,l,p){let g,m;if(p?s.pos===0&&(g=Cn(vv(e,s.pos),x)):g=vv(e,s.pos),g){let b=[],S;for(let P of g){if(S){let E=hN(t,S.end);if(hN(t,P.pos)>=E+2)break}b.push(P),S=P}if(b.length){let P=hN(t,ao(b).end);hN(t,yo(e,s.pos))>=P+2&&(yAt(t,n,s,g),bAt(e,t,n,b,!1,!0,l,i),m={nodePos:s.pos,detachedCommentEndPos:ao(b).end})}}return m;function x(b){return Aq(e,b.pos)}}function yN(e,t,n,i,s,l){if(e.charCodeAt(i+1)===42){let p=UO(t,i),g=t.length,m;for(let x=i,b=p.line;x<s;b++){let S=b+1===g?e.length+1:t[b+1];if(x!==i){m===void 0&&(m=rje(e,t[p.line],i));let E=n.getIndent()*E5()-m+rje(e,x,S);if(E>0){let N=E%E5(),F=pJ((E-N)/E5());for(n.rawWrite(F);N;)n.rawWrite(" "),N--}else n.rawWrite("")}xAt(e,s,n,l,x,S),x=S}}else n.writeComment(e.substring(i,s))}function xAt(e,t,n,i,s,l){let p=Math.min(t,l-1),g=e.substring(s,p).trim();g?(n.writeComment(g),p!==t&&n.writeLine()):n.rawWrite(i)}function rje(e,t,n){let i=0;for(;t<n&&Th(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=E5()-i%E5():i++;return i}function tX(e){return gf(e)!==0}function Gme(e){return E1(e)!==0}function z_(e,t){return!!tE(e,t)}function Ai(e,t){return!!Kme(e,t)}function Vs(e){return ou(e)&&Pu(e)||Al(e)}function Pu(e){return Ai(e,256)}function vJ(e){return z_(e,16)}function D2(e){return Ai(e,64)}function rX(e){return Ai(e,128)}function Ah(e){return Ai(e,512)}function Ik(e){return z_(e,8)}function Od(e){return Ai(e,32768)}function tE(e,t){return gf(e)&t}function Kme(e,t){return E1(e)&t}function Qme(e,t,n){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=nX(e)|536870912),n||t&&jn(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=nje(e)|268435456),ije(e.modifierFlagsCache)):SAt(e.modifierFlagsCache))}function gf(e){return Qme(e,!0)}function Xme(e){return Qme(e,!0,!0)}function E1(e){return Qme(e,!1)}function nje(e){let t=0;return e.parent&&!Da(e)&&(jn(e)&&(lde(e)&&(t|=8388608),ude(e)&&(t|=16777216),pde(e)&&(t|=33554432),fde(e)&&(t|=67108864),_de(e)&&(t|=134217728)),dde(e)&&(t|=65536)),t}function SAt(e){return e&65535}function ije(e){return e&131071|(e&260046848)>>>23}function TAt(e){return ije(nje(e))}function Yme(e){return nX(e)|TAt(e)}function nX(e){let t=$m(e)?Ih(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Ih(e){let t=0;if(e)for(let n of e)t|=rE(n.kind);return t}function rE(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function O5(e){return e===57||e===56}function Zme(e){return O5(e)||e===54}function x4(e){return e===76||e===77||e===78}function iX(e){return Vn(e)&&x4(e.operatorToken.kind)}function bJ(e){return O5(e)||e===61}function N5(e){return Vn(e)&&bJ(e.operatorToken.kind)}function O0(e){return e>=64&&e<=79}function aX(e){let t=sX(e);return t&&!t.isImplements?t.class:void 0}function sX(e){if(F0(e)){if(U_(e.parent)&&Ri(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(DE(e.parent)){let t=ES(e.parent);if(t&&Ri(t))return{class:t,isImplements:!1}}}}function Yu(e,t){return Vn(e)&&(t?e.operatorToken.kind===64:O0(e.operatorToken.kind))&&Qf(e.left)}function D1(e){if(Yu(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function xJ(e){return aX(e)!==void 0}function Tc(e){return e.kind===80||I5(e)}function Af(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function A5(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&A5(e.expression)||e.kind===217&&A5(e.expression)}function I5(e){return ai(e)&&Ye(e.name)&&Tc(e.expression)}function F5(e){if(ai(e)){let t=F5(e.expression);if(t!==void 0)return t+"."+B_(e.name)}else if(Nc(e)){let t=F5(e.expression);if(t!==void 0&&su(e.argumentExpression))return t+"."+Nk(e.argumentExpression)}else{if(Ye(e))return ka(e.escapedText);if(Hg(e))return z4(e)}}function yx(e){return x2(e)&&P0(e)==="prototype"}function S4(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function oX(e){return!!e.parent&&(ai(e.parent)&&e.parent.name===e||Nc(e.parent)&&e.parent.argumentExpression===e)}function ege(e){return If(e.parent)&&e.parent.right===e||ai(e.parent)&&e.parent.name===e||zS(e.parent)&&e.parent.right===e}function SJ(e){return Vn(e)&&e.operatorToken.kind===104}function tge(e){return SJ(e.parent)&&e===e.parent.right}function cX(e){return e.kind===210&&e.properties.length===0}function rge(e){return e.kind===209&&e.elements.length===0}function T4(e){if(!(!wAt(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function wAt(e){return e&&Re(e.declarations)>0&&Ai(e.declarations[0],2048)}function TJ(e){return Ir(YAt,t=>il(e,t))}function kAt(e){let t=[],n=e.length;for(let i=0;i<n;i++){let s=e.charCodeAt(i);s<128?t.push(s):s<2048?(t.push(s>>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):I.assert(!1,"Unexpected code point")}return t}var nE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function nge(e){let t="",n=kAt(e),i=0,s=n.length,l,p,g,m;for(;i<s;)l=n[i]>>2,p=(n[i]&3)<<4|n[i+1]>>4,g=(n[i+1]&15)<<2|n[i+2]>>6,m=n[i+2]&63,i+1>=s?g=m=64:i+2>=s&&(m=64),t+=nE.charAt(l)+nE.charAt(p)+nE.charAt(g)+nE.charAt(m),i+=3;return t}function CAt(e){let t="",n=0,i=e.length;for(;n<i;){let s=e[n];if(s<128)t+=String.fromCharCode(s),n++;else if((s&192)===192){let l=s&63;n++;let p=e[n];for(;(p&192)===128;)l=l<<6|p&63,n++,p=e[n];t+=String.fromCharCode(l)}else t+=String.fromCharCode(s),n++}return t}function ige(e,t){return e&&e.base64encode?e.base64encode(t):nge(t)}function age(e,t){if(e&&e.base64decode)return e.base64decode(t);let n=t.length,i=[],s=0;for(;s<n&&t.charCodeAt(s)!==nE.charCodeAt(64);){let l=nE.indexOf(t[s]),p=nE.indexOf(t[s+1]),g=nE.indexOf(t[s+2]),m=nE.indexOf(t[s+3]),x=(l&63)<<2|p>>4&3,b=(p&15)<<4|g>>2&15,S=(g&3)<<6|m&63;b===0&&g!==0?i.push(x):S===0&&m!==0?i.push(x,b):i.push(x,b,S),s+=4}return CAt(i)}function lX(e,t){let n=Ua(t)?t:t.readFile(e);if(!n)return;let i=XY(e,n);return i.error?void 0:i.config}function vN(e,t){return lX(e,t)||{}}function wJ(e){try{return JSON.parse(e)}catch{return}}function Wg(e,t){return!t.directoryExists||t.directoryExists(e)}var PAt=`\r
|
|
`,EAt=`
|
|
`;function O1(e){switch(e.newLine){case 0:return PAt;case 1:case void 0:return EAt}}function um(e,t=e){return I.assert(t>=e||t===-1),{pos:e,end:t}}function kJ(e,t){return um(e.pos,t)}function NS(e,t){return um(t,e.end)}function N0(e){let t=$m(e)?Ks(e.modifiers,qu):void 0;return t&&!Ug(t.end)?NS(e,t.end):e}function Fh(e){if(is(e)||wl(e))return NS(e,e.name.pos);let t=$m(e)?dc(e.modifiers):void 0;return t&&!Ug(t.end)?NS(e,t.end):N0(e)}function uX(e,t){return um(e,e+to(t).length)}function Fk(e,t){return oge(e,e,t)}function CJ(e,t,n){return pm(w4(e,n,!1),w4(t,n,!1),n)}function sge(e,t,n){return pm(e.end,t.end,n)}function oge(e,t,n){return pm(w4(e,n,!1),t.end,n)}function M5(e,t,n){return pm(e.end,w4(t,n,!1),n)}function pX(e,t,n,i){let s=w4(t,n,i);return LI(n,e.end,s)}function aje(e,t,n){return LI(n,e.end,t.end)}function cge(e,t){return!pm(e.pos,e.end,t)}function pm(e,t,n){return LI(n,e,t)===0}function w4(e,t,n){return Ug(e.pos)?-1:yo(t.text,e.pos,!1,n)}function lge(e,t,n,i){let s=yo(n.text,e,!1,i),l=DAt(s,t,n);return LI(n,l??t,s)}function uge(e,t,n,i){let s=yo(n.text,e,!1,i);return LI(n,e,Math.min(t,s))}function Zf(e,t){return fX(e.pos,e.end,t)}function fX(e,t,n){return e<=n.pos&&t>=n.end}function DAt(e,t=0,n){for(;e-- >t;)if(!yv(n.text.charCodeAt(e)))return e}function _X(e){let t=ds(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function k4(e){return Cn(e.declarations,R5)}function R5(e){return Ui(e)&&e.initializer!==void 0}function dX(e){return e.watch&&ec(e,"watch")}function hg(e){e.close()}function Tl(e){return e.flags&33554432?e.links.checkFlags:0}function fm(e,t=!1){if(e.valueDeclaration){let n=t&&e.declarations&&Ir(e.declarations,v_)||e.flags&32768&&Ir(e.declarations,mm)||e.valueDeclaration,i=bS(n);return e.parent&&e.parent.flags&32?i:i&-8}if(Tl(e)&6){let n=e.links.checkFlags,i=n&1024?2:n&256?1:4,s=n&2048?256:0;return i|s}return e.flags&4194304?257:0}function Tp(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function bN(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function PJ(e){return C4(e)===1}function iE(e){return C4(e)!==0}function C4(e){let{parent:t}=e;switch(t?.kind){case 217:return C4(t);case 225:case 224:let{operator:n}=t;return n===46||n===47?2:0;case 226:let{left:i,operatorToken:s}=t;return i===e&&O0(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:C4(t);case 303:{let l=C4(t.parent);return e===t.name?OAt(l):l}case 304:return e===t.objectAssignmentInitializer?0:C4(t.parent);case 209:return C4(t);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function OAt(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return I.assertNever(e)}}function mX(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(typeof e[n]=="object"){if(!mX(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function h_(e,t){e.forEach(t),e.clear()}function Ov(e,t,n){let{onDeleteValue:i,onExistingValue:s}=n;e.forEach((l,p)=>{var g;t?.has(p)?s&&s(l,(g=t.get)==null?void 0:g.call(t,p),p):(e.delete(p),i(l,p))})}function P4(e,t,n){Ov(e,t,n);let{createNewValue:i}=n;t?.forEach((s,l)=>{e.has(l)||e.set(l,i(l,s))})}function pge(e){if(e.flags&32){let t=A0(e);return!!t&&Ai(t,64)}return!1}function A0(e){var t;return(t=e.declarations)==null?void 0:t.find(Ri)}function oi(e){return e.flags&3899393?e.objectFlags:0}function EJ(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&pM(e.declarations[0])}function fge({moduleSpecifier:e}){return vo(e)?e.text:cl(e)}function gX(e){let t;return xs(e,n=>{jm(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(jm(n[i])){t=n[i];break}}),t}function Jm(e,t){return e.has(t)?!1:(e.add(t),!0)}function aE(e){return Ri(e)||Cp(e)||Ff(e)}function hX(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function Lc(e){return e.kind===211||e.kind===212}function yX(e){return e.kind===211?e.name:(I.assert(e.kind===212),e.argumentExpression)}function DJ(e){return e.kind===275||e.kind===279}function xN(e){for(;Lc(e);)e=e.expression;return e}function _ge(e,t){if(Lc(e.parent)&&oX(e))return n(e.parent);function n(i){if(i.kind===211){let s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if(Ye(i.argumentExpression)||Ho(i.argumentExpression)){let s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(Lc(i.expression))return n(i.expression);if(Ye(i.expression))return t(i.expression)}}function SN(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function NAt(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function AAt(e,t){this.flags=t,(I.isDebugging||Fn)&&(this.checker=e)}function IAt(e,t){this.flags=t,I.isDebugging&&(this.checker=e)}function dge(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function FAt(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function MAt(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function RAt(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}var wp={getNodeConstructor:()=>dge,getTokenConstructor:()=>FAt,getIdentifierConstructor:()=>MAt,getPrivateIdentifierConstructor:()=>dge,getSourceFileConstructor:()=>dge,getSymbolConstructor:()=>NAt,getTypeConstructor:()=>AAt,getSignatureConstructor:()=>IAt,getSourceMapSourceConstructor:()=>RAt},sje=[];function oje(e){sje.push(e),e(wp)}function mge(e){Object.assign(wp,e),Ge(sje,t=>t(wp))}function Nv(e,t){return e.replace(/\{(\d+)\}/g,(n,i)=>""+I.checkDefined(t[+i]))}var OJ;function gge(e){OJ=e}function hge(e){!OJ&&e&&(OJ=e())}function gs(e){return OJ&&OJ[e.key]||e.message}function sE(e,t,n,i,s,...l){n+i>t.length&&(i=t.length-n),rme(t,n,i);let p=gs(s);return Pt(l)&&(p=Nv(p,l)),{file:void 0,start:n,length:i,messageText:p,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function jAt(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function cje(e,t){let n=t.fileName||"",i=t.text.length;I.assertEqual(e.fileName,n),I.assertLessThanOrEqual(e.start,i),I.assertLessThanOrEqual(e.start+e.length,i);let s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(let l of e.relatedInformation)jAt(l)&&l.fileName===n?(I.assertLessThanOrEqual(l.start,i),I.assertLessThanOrEqual(l.start+l.length,i),s.relatedInformation.push(cje(l,t))):s.relatedInformation.push(l)}return s}function oE(e,t){let n=[];for(let i of e)n.push(cje(i,t));return n}function Eu(e,t,n,i,...s){rme(e.text,t,n);let l=gs(i);return Pt(s)&&(l=Nv(l,s)),{file:e,start:t,length:n,messageText:l,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function cE(e,...t){let n=gs(e);return Pt(t)&&(n=Nv(n,t)),n}function ll(e,...t){let n=gs(e);return Pt(t)&&(n=Nv(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function NJ(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function vs(e,t,...n){let i=gs(t);return Pt(n)&&(i=Nv(i,n)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function yge(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function vX(e){return e.file?e.file.path:void 0}function E4(e,t){return vge(e,t)||LAt(e,t)||0}function vge(e,t){let n=bX(e),i=bX(t);return fp(vX(e),vX(t))||mc(e.start,t.start)||mc(e.length,t.length)||mc(n,i)||BAt(e,t)||0}function LAt(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?mc(t.relatedInformation.length,e.relatedInformation.length)||Ge(e.relatedInformation,(n,i)=>{let s=t.relatedInformation[i];return E4(n,s)})||0:e.relatedInformation?-1:1}function BAt(e,t){let n=xX(e),i=xX(t);typeof n!="string"&&(n=n.messageText),typeof i!="string"&&(i=i.messageText);let s=typeof e.messageText!="string"?e.messageText.next:void 0,l=typeof t.messageText!="string"?t.messageText.next:void 0,p=fp(n,i);return p||(p=qAt(s,l),p)?p:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function qAt(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:lje(e,t)||uje(e,t)}function lje(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let n=mc(t.length,e.length);if(n)return n;for(let i=0;i<t.length;i++)if(n=lje(e[i].next,t[i].next),n)return n;return 0}function uje(e,t){let n;for(let i=0;i<t.length;i++){if(n=fp(e[i].messageText,t[i].messageText),n)return n;if(e[i].next!==void 0&&(n=uje(e[i].next,t[i].next),n))return n}return 0}function AJ(e,t){let n=bX(e),i=bX(t),s=xX(e),l=xX(t);return fp(vX(e),vX(t))===0&&mc(e.start,t.start)===0&&mc(e.length,t.length)===0&&mc(n,i)===0&&JAt(s,l)}function bX(e){var t;return((t=e.canonicalHead)==null?void 0:t.code)||e.code}function xX(e){var t;return((t=e.canonicalHead)==null?void 0:t.messageText)||e.messageText}function JAt(e,t){let n=typeof e=="string"?e:e.messageText,i=typeof t=="string"?t:t.messageText;return fp(n,i)===0}function j5(e){return e===4||e===2||e===1||e===6?1:0}function pje(e){if(e.transformFlags&2)return Qp(e)||qS(e)?e:xs(e,pje)}function zAt(e){return e.isDeclarationFile?void 0:pje(e)}function WAt(e,t){return(nC(e,t)===99||Wl(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function L5(e){switch(xge(e)){case 3:return s=>{s.externalModuleIndicator=SM(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=SM(s)};case 2:let t=[SM];(e.jsx===4||e.jsx===5)&&t.push(zAt),t.push(WAt);let n=Df(...t);return s=>void(s.externalModuleIndicator=n(s,e))}}function SX(e){let t=Xp(e);return 3<=t&&t<=99||B5(e)||q5(e)}function Uan(e){return e}var Lp={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Lp.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Lp.module.computeValue(e)){case 1:t=2;break;case 100:case 101:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=Lp.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Lp.module.computeValue(e)){case 100:case 101:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Lp.esModuleInterop.computeValue(e)||Lp.module.computeValue(e)===4||Lp.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Lp.moduleResolution.computeValue(e);if(!TN(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=Lp.moduleResolution.computeValue(e);if(!TN(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:Lp.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Lp.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Lp.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Lp.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Bp(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Bp(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Bp(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Bp(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Bp(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Bp(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Bp(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Bp(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Bp(e,"useUnknownInCatchVariables")}},D4=Lp,bge=Lp.allowImportingTsExtensions.computeValue,Po=Lp.target.computeValue,hf=Lp.module.computeValue,Xp=Lp.moduleResolution.computeValue,xge=Lp.moduleDetection.computeValue,zm=Lp.isolatedModules.computeValue,Av=Lp.esModuleInterop.computeValue,lE=Lp.allowSyntheticDefaultImports.computeValue,B5=Lp.resolvePackageJsonExports.computeValue,q5=Lp.resolvePackageJsonImports.computeValue,O2=Lp.resolveJsonModule.computeValue,y_=Lp.declaration.computeValue,vx=Lp.preserveConstEnums.computeValue,N2=Lp.incremental.computeValue,IJ=Lp.declarationMap.computeValue,bx=Lp.allowJs.computeValue,J5=Lp.useDefineForClassFields.computeValue;function z5(e){return e>=5&&e<=99}function FJ(e){switch(hf(e)){case 0:case 4:case 3:return!1}return!0}function Sge(e){return e.allowUnreachableCode===!1}function Tge(e){return e.allowUnusedLabels===!1}function TN(e){return e>=3&&e<=99||e===100}function wge(e){return 101<=e&&e<=199||e===200||e===99}function Bp(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function MJ(e){return Lu(UY.type,(t,n)=>t===e?n:void 0)}function TX(e){return e.useDefineForClassFields!==!1&&Po(e)>=9}function kge(e,t){return zP(t,e,Tye)}function Cge(e,t){return zP(t,e,wye)}function Pge(e,t){return zP(t,e,kye)}function RJ(e,t){return t.strictFlag?Bp(e,t.name):t.allowJsFlag?bx(e):e[t.name]}function jJ(e){let t=e.jsx;return t===2||t===4||t===5}function W5(e,t){let n=t?.pragmas.get("jsximportsource"),i=cs(n)?n[n.length-1]:n,s=t?.pragmas.get("jsxruntime"),l=cs(s)?s[s.length-1]:s;if(l?.arguments.factory!=="classic")return e.jsx===4||e.jsx===5||e.jsxImportSource||i||l?.arguments.factory==="automatic"?i?.arguments.factory||e.jsxImportSource||"react":void 0}function LJ(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wX(e){let t=!1;for(let n=0;n<e.length;n++)if(e.charCodeAt(n)===42)if(!t)t=!0;else return!1;return!0}function kX(e,t){let n,i,s,l=!1;return{getSymlinkedFiles:()=>s,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(m,x)=>(s||(s=new Map)).set(m,x),setSymlinkedDirectory:(m,x)=>{let b=Ec(m,e,t);L4(b)||(b=ju(b),x!==!1&&!n?.has(b)&&(i||(i=Zl())).add(x.realPath,m),(n||(n=new Map)).set(b,x))},setSymlinksFromResolutions(m,x,b){I.assert(!l),l=!0,m(S=>g(this,S.resolvedModule)),x(S=>g(this,S.resolvedTypeReferenceDirective)),b.forEach(S=>g(this,S.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>l,setSymlinksFromResolution(m){g(this,m)},hasAnySymlinks:p};function p(){return!!s?.size||!!n&&!!Lu(n,m=>!!m)}function g(m,x){if(!x||!x.originalPath||!x.resolvedFileName)return;let{resolvedFileName:b,originalPath:S}=x;m.setSymlinkedFile(Ec(S,e,t),b);let[P,E]=UAt(b,S,e,t)||ce;P&&E&&m.setSymlinkedDirectory(E,{real:ju(P),realPath:ju(Ec(P,e,t))})}}function UAt(e,t,n,i){let s=jp(Qa(e,n)),l=jp(Qa(t,n)),p=!1;for(;s.length>=2&&l.length>=2&&!fje(s[s.length-2],i)&&!fje(l[l.length-2],i)&&i(s[s.length-1])===i(l[l.length-1]);)s.pop(),l.pop(),p=!0;return p?[vS(s),vS(l)]:void 0}function fje(e,t){return e!==void 0&&(t(e)==="node_modules"||La(e,"@"))}function $At(e){return gK(e.charCodeAt(0))?e.slice(1):void 0}function CX(e,t,n){let i=G7(e,t,n);return i===void 0?void 0:$At(i)}var Ege=/[^\w\s/]/g;function _je(e){return e.replace(Ege,VAt)}function VAt(e){return"\\"+e}var HAt=[42,63],GAt=["node_modules","bower_components","jspm_packages"],Dge=`(?!(${GAt.join("|")})(/|$))`,dje={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Dge}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Nge(e,dje.singleAsteriskRegexFragment)},mje={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Dge}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Nge(e,mje.singleAsteriskRegexFragment)},gje={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Nge(e,gje.singleAsteriskRegexFragment)},Oge={files:dje,directories:mje,exclude:gje};function O4(e,t,n){let i=BJ(e,t,n);return!i||!i.length?void 0:`^(${i.map(p=>`(${p})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function BJ(e,t,n){if(!(e===void 0||e.length===0))return li(e,i=>i&&qJ(i,t,n,Oge[n]))}function PX(e){return!/[.*?]/.test(e)}function EX(e,t,n){let i=e&&qJ(e,t,n,Oge[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function qJ(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:l}=Oge[n]){let p="",g=!1,m=YB(e,t),x=ao(m);if(n!=="exclude"&&x==="**")return;m[0]=T1(m[0]),PX(x)&&m.push("**","*");let b=0;for(let S of m){if(S==="**")p+=s;else if(n==="directories"&&(p+="(",b++),g&&(p+=jc),n!=="exclude"){let P="";S.charCodeAt(0)===42?(P+="([^./]"+i+")?",S=S.substr(1)):S.charCodeAt(0)===63&&(P+="[^./]",S=S.substr(1)),P+=S.replace(Ege,l),P!==S&&(p+=Dge),p+=P}else p+=S.replace(Ege,l);g=!0}for(;b>0;)p+=")?",b--;return p}function Nge(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function JJ(e,t,n,i,s){e=Zs(e),s=Zs(s);let l=gi(s,e);return{includeFilePatterns:Dt(BJ(n,l,"files"),p=>`^${p}$`),includeFilePattern:O4(n,l,"files"),includeDirectoryPattern:O4(n,l,"directories"),excludePattern:O4(t,l,"exclude"),basePaths:KAt(e,n,i)}}function N1(e,t){return new RegExp(e,t?"":"i")}function DX(e,t,n,i,s,l,p,g,m){e=Zs(e),l=Zs(l);let x=JJ(e,n,i,s,l),b=x.includeFilePatterns&&x.includeFilePatterns.map(L=>N1(L,s)),S=x.includeDirectoryPattern&&N1(x.includeDirectoryPattern,s),P=x.excludePattern&&N1(x.excludePattern,s),E=b?b.map(()=>[]):[[]],N=new Map,F=Xu(s);for(let L of x.basePaths)M(L,gi(l,L),p);return js(E);function M(L,W,z){let H=F(m(W));if(N.has(H))return;N.set(H,!0);let{files:X,directories:ne}=g(L);for(let ae of ff(X,fp)){let Y=gi(L,ae),Ee=gi(W,ae);if(!(t&&!Wl(Y,t))&&!(P&&P.test(Ee)))if(!b)E[0].push(Y);else{let fe=Va(b,te=>te.test(Ee));fe!==-1&&E[fe].push(Y)}}if(!(z!==void 0&&(z--,z===0)))for(let ae of ff(ne,fp)){let Y=gi(L,ae),Ee=gi(W,ae);(!S||S.test(Ee))&&(!P||!P.test(Ee))&&M(Y,Ee,z)}}}function KAt(e,t,n){let i=[e];if(t){let s=[];for(let l of t){let p=j_(l)?l:Zs(gi(e,l));s.push(QAt(p))}s.sort(uk(!n));for(let l of s)sn(i,p=>!am(p,l,e,!n))&&i.push(l)}return i}function QAt(e){let t=f_(e,HAt);return t<0?zO(e)?T1(Ei(e)):e:e.substring(0,e.lastIndexOf(jc,t))}function zJ(e,t){return t||WJ(e)||3}function WJ(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var UJ=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],OX=js(UJ),XAt=[...UJ,[".json"]],YAt=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],ZAt=[[".js",".jsx"],[".mjs"],[".cjs"]],wN=js(ZAt),NX=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],e6t=[...NX,[".json"]],$J=[".d.ts",".d.cts",".d.mts"],U5=[".ts",".cts",".mts",".tsx"],VJ=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function N4(e,t){let n=e&&bx(e);if(!t||t.length===0)return n?NX:UJ;let i=n?NX:UJ,s=js(i);return[...i,...Bi(t,p=>p.scriptKind===7||n&&t6t(p.scriptKind)&&!s.includes(p.extension)?[p.extension]:void 0)]}function $5(e,t){return!e||!O2(e)?t:t===NX?e6t:t===UJ?XAt:[...t,[".json"]]}function t6t(e){return e===1||e===2}function Iv(e){return Pt(wN,t=>il(e,t))}function Mk(e){return Pt(OX,t=>il(e,t))}function Age(e){return Pt(U5,t=>il(e,t))&&!Wu(e)}var Ige=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Ige||{});function r6t({imports:e},t=Df(Iv,Mk)){return jr(e,({text:n})=>pd(n)&&!Wl(n,VJ)?t(n):void 0)||!1}function Fge(e,t,n,i){let s=Xp(n),l=3<=s&&s<=99;if(e==="js"||t===99&&l)return YN(n)&&p()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!YN(n))return i&&r6t(i)?2:0;return p();function p(){let g=!1,m=i?.imports.length?i.imports:i&&Nf(i)?n6t(i).map(x=>x.arguments[0]):ce;for(let x of m)if(pd(x.text)){if(l&&t===1&&_ee(i,x,n)===99||Wl(x.text,VJ))continue;if(Mk(x.text))return 3;Iv(x.text)&&(g=!0)}return g?2:0}}function n6t(e){let t=0,n;for(let i of e.statements){if(t>3)break;s5(i)?n=ya(n,i.declarationList.declarations.map(s=>s.initializer)):Zu(i)&&Xf(i.expression,!0)?n=Zr(n,i.expression):t++}return n||ce}function AX(e,t,n){if(!e)return!1;let i=N4(t,n);for(let s of js($5(t,i)))if(il(e,s))return!0;return!1}function hje(e){let t=e.match(/\//g);return t?t.length:0}function V5(e,t){return mc(hje(e),hje(t))}var Mge=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function yf(e){for(let t of Mge){let n=Rge(e,t);if(n!==void 0)return n}return e}function Rge(e,t){return il(e,t)?H5(e,t):void 0}function H5(e,t){return e.substring(0,e.length-t.length)}function I0(e,t){return mF(e,t,Mge,!1)}function uE(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}var yje=new WeakMap;function G5(e){let t=yje.get(e);if(t!==void 0)return t;let n,i,s=rm(e);for(let l of s){let p=uE(l);p!==void 0&&(typeof p=="string"?(n??(n=new Set)).add(p):(i??(i=[])).push(p))}return yje.set(e,t={matchableStringSet:n,patterns:i}),t}function Ug(e){return!(e>=0)}function HJ(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||La(e,".d.")&&bc(e,".ts")}function A4(e){return HJ(e)||e===".json"}function I4(e){let t=Fv(e);return t!==void 0?t:I.fail(`File ${e} has unknown extension.`)}function vje(e){return Fv(e)!==void 0}function Fv(e){return Ir(Mge,t=>il(e,t))}function F4(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var IX={files:ce,directories:ce};function FX(e,t){let{matchableStringSet:n,patterns:i}=e;if(n?.has(t))return t;if(!(i===void 0||i.length===0))return s2(i,s=>s,t)}function MX(e,t){let n=e.indexOf(t);return I.assert(n!==-1),e.slice(n)}function Hs(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),I.assert(e.relatedInformation!==ce,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function jge(e,t){I.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;s<e.length;s++){let l=t(e[s]);l<n?n=l:l>i&&(i=l)}return{min:n,max:i}}function RX(e){return{pos:px(e),end:e.end}}function jX(e,t){let n=t.pos-1,i=Math.min(e.text.length,yo(e.text,t.end)+1);return{pos:n,end:i}}function kN(e,t,n){return bje(e,t,n,!1)}function Lge(e,t,n){return bje(e,t,n,!0)}function bje(e,t,n,i){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!i&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!M4(e,t)}function M4(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;let i=(e.scriptKind===1||e.scriptKind===2)&&F4(e,t);return e4(e,t.checkJs)||i||e.scriptKind===7}function GJ(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&gB(e,t,GJ)}function R4(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let x=e.length-1,b=0;for(;e.charCodeAt(b)===48;)b++;return e.slice(b,x)||"0"}let n=2,i=e.length-1,s=(i-n)*t,l=new Uint16Array((s>>>4)+(s&15?1:0));for(let x=i-1,b=0;x>=n;x--,b+=t){let S=b>>>4,P=e.charCodeAt(x),N=(P<=57?P-48:10+P-(P<=70?65:97))<<(b&15);l[S]|=N;let F=N>>>16;F&&(l[S+1]|=F)}let p="",g=l.length-1,m=!0;for(;m;){let x=0;m=!1;for(let b=g;b>=0;b--){let S=x<<16|l[b],P=S/10|0;l[b]=P,x=S-P*10,P&&!m&&(g=b,m=!0)}p=x+p}return p}function A2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Bge(e){if(KJ(e,!1))return LX(e)}function LX(e){let t=e.startsWith("-"),n=R4(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function KJ(e,t){if(e==="")return!1;let n=bv(99,!1),i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan(),l=s===41;l&&(s=n.scan());let p=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(p&512)&&(!t||e===A2({negative:l,base10Value:R4(n.getTokenValue())}))}function AS(e){return!!(e.flags&33554432)||i5(e)||Qq(e)||s6t(e)||a6t(e)||!(zg(e)||i6t(e))}function i6t(e){return Ye(e)&&Jp(e.parent)&&e.parent.name===e}function a6t(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Ai(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function s6t(e){if(e.kind!==80)return!1;let t=Br(e.parent,n=>{switch(n.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function qge(e){return W_(e)&&Ye(e.typeName)}function Jge(e,t=pv){if(e.length<2)return!0;let n=e[0];for(let i=1,s=e.length;i<s;i++){let l=e[i];if(!t(n,l))return!1}return!0}function j4(e,t){return e.pos=t,e}function CN(e,t){return e.end=t,e}function $g(e,t,n){return CN(j4(e,t),n)}function BX(e,t,n){return $g(e,t,t+n)}function zge(e,t){return e&&(e.flags=t),e}function Xo(e,t){return e&&t&&(e.parent=t),e}function IS(e,t){if(!e)return e;return NE(e,YO(e)?n:s),e;function n(l,p){if(t&&l.parent===p)return"skip";Xo(l,p)}function i(l){if(fd(l))for(let p of l.jsDoc)n(p,l),NE(p,n)}function s(l,p){return n(l,p)||i(l)}}function o6t(e){return!Ju(e)}function qX(e){return kp(e)&&sn(e.elements,o6t)}function Wge(e){for(I.assertIsDefined(e.parent);;){let t=e.parent;if(Mf(t)){e=t;continue}if(Zu(t)||kE(t)||BS(t)&&(t.initializer===e||t.incrementor===e))return!0;if(Z4(t)){if(e!==ao(t.elements))return!0;e=t;continue}if(Vn(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function L4(e){return Pt(KB,t=>e.includes(t))}function Uge(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:n}=e;return n.kind===195?void 0:n.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return U2(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(ZO(e))return Hk(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return f2(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 356:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Yi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return BF(e)?t.children:void 0;case 286:case 285:return Yi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return ou(e)?t.members:void 0;case 266:return L1(e)?t.members:void 0;case 307:return t.statements}}function QJ(e){if(!e.typeParameters){if(Pt(e.parameters,t=>!hu(t)))return!0;if(e.kind!==219){let t=Yl(e.parameters);if(!(t&&gx(t)))return!0}}return!1}function B4(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function $ge(e){return e.kind===260&&e.parent.kind===299}function xx(e){return e.kind===218||e.kind===219}function I2(e){return e.replace(/\$/g,()=>"\\$")}function Mv(e){return(+e).toString()===e}function XJ(e,t,n,i,s){let l=s&&e==="new";return!l&&m_(e,t)?j.createIdentifier(e):!i&&!l&&Mv(e)&&+e>=0?j.createNumericLiteral(+e):j.createStringLiteral(e,!!n)}function q4(e){return!!(e.flags&262144&&e.isThisType)}function YJ(e){let t=0,n=0,i=0,s=0,l;(x=>{x[x.BeforeNodeModules=0]="BeforeNodeModules",x[x.NodeModules=1]="NodeModules",x[x.Scope=2]="Scope",x[x.PackageContent=3]="PackageContent"})(l||(l={}));let p=0,g=0,m=0;for(;g>=0;)switch(p=g,g=e.indexOf("/",p+1),m){case 0:e.indexOf(Bv,p)===p&&(t=p,n=g,m=1);break;case 1:case 2:m===1&&e.charAt(p+1)==="@"?m=2:(i=g,m=3);break;case 3:e.indexOf(Bv,p)===p?m=1:m=3;break}return s=p,m>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function pE(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function K5(e){return B2(e)||Rl(e)||jl(e)||bu(e)||Cp(e)||pE(e)||cu(e)&&!h2(e)&&!Oy(e)}function Q5(e){if(!HI(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===316}function JX(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&Cy(e.charCodeAt(1),t):Cy(n,t)}function Vge(e){var t;return((t=nY(e))==null?void 0:t.kind)===0}function ZJ(e){return jn(e)&&(e.type&&e.type.kind===316||HO(e).some(Q5))}function fE(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||ZJ(e);case 348:case 341:return Q5(e);default:return!1}}function Hge(e){let t=e.kind;return(t===211||t===212)&&CE(e.expression)}function zX(e){return jn(e)&&Mf(e)&&fd(e)&&!!MK(e)}function WX(e){return I.checkDefined(ez(e))}function ez(e){let t=MK(e);return t&&t.typeExpression&&t.typeExpression.type}function J4(e){return Ye(e)?e.escapedText:_E(e)}function X5(e){return Ye(e)?fi(e):z4(e)}function Gge(e){let t=e.kind;return t===80||t===295}function _E(e){return`${e.namespace.escapedText}:${fi(e.name)}`}function z4(e){return`${fi(e.namespace)}:${fi(e.name)}`}function UX(e){return Ye(e)?fi(e):z4(e)}function _m(e){return!!(e.flags&8576)}function dm(e){return e.flags&8192?e.escapedName:e.flags&384?gl(""+e.value):I.fail()}function dE(e){return!!e&&(ai(e)||Nc(e)||Vn(e))}function Kge(e){return e===void 0?!1:!!rA(e.attributes)}var c6t=String.prototype.replace;function Rk(e,t){return c6t.call(e,"*",t)}function tz(e){return Ye(e.name)?e.name.escapedText:gl(e.name.text)}function Qge(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function Bu(e,t=!1,n=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:i}}function Xge({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(s,l){let p=!1,g=!1,m=!1;switch(s=Qo(s),s.kind){case 224:let x=n(s.operand,l);if(g=x.resolvedOtherFiles,m=x.hasExternalReferences,typeof x.value=="number")switch(s.operator){case 40:return Bu(x.value,p,g,m);case 41:return Bu(-x.value,p,g,m);case 55:return Bu(~x.value,p,g,m)}break;case 226:{let b=n(s.left,l),S=n(s.right,l);if(p=(b.isSyntacticallyString||S.isSyntacticallyString)&&s.operatorToken.kind===40,g=b.resolvedOtherFiles||S.resolvedOtherFiles,m=b.hasExternalReferences||S.hasExternalReferences,typeof b.value=="number"&&typeof S.value=="number")switch(s.operatorToken.kind){case 52:return Bu(b.value|S.value,p,g,m);case 51:return Bu(b.value&S.value,p,g,m);case 49:return Bu(b.value>>S.value,p,g,m);case 50:return Bu(b.value>>>S.value,p,g,m);case 48:return Bu(b.value<<S.value,p,g,m);case 53:return Bu(b.value^S.value,p,g,m);case 42:return Bu(b.value*S.value,p,g,m);case 44:return Bu(b.value/S.value,p,g,m);case 40:return Bu(b.value+S.value,p,g,m);case 41:return Bu(b.value-S.value,p,g,m);case 45:return Bu(b.value%S.value,p,g,m);case 43:return Bu(b.value**S.value,p,g,m)}else if((typeof b.value=="string"||typeof b.value=="number")&&(typeof S.value=="string"||typeof S.value=="number")&&s.operatorToken.kind===40)return Bu(""+b.value+S.value,p,g,m);break}case 11:case 15:return Bu(s.text,!0);case 228:return i(s,l);case 9:return Bu(+s.text);case 80:return t(s,l);case 211:if(Tc(s))return t(s,l);break;case 212:return e(s,l)}return Bu(void 0,p,g,m)}function i(s,l){let p=s.head.text,g=!1,m=!1;for(let x of s.templateSpans){let b=n(x.expression,l);if(b.value===void 0)return Bu(void 0,!0);p+=b.value,p+=x.literal.text,g||(g=b.resolvedOtherFiles),m||(m=b.hasExternalReferences)}return Bu(p,!0,g,m)}return n}function $X(e){return d2(e)&&_g(e.type)||i3(e)&&_g(e.typeExpression)}function Y5(e){let t=e.members;for(let n of t)if(n.kind===176&&jm(n.body))return n}function VX({compilerOptions:e,requireSymbol:t,argumentsSymbol:n,error:i,getSymbolOfDeclaration:s,globals:l,lookup:p,setRequiresScopeChangeCache:g=Rg,getRequiresScopeChangeCache:m=Rg,onPropertyWithInvalidInitializer:x=cd,onFailedToResolveSymbol:b=Rg,onSuccessfullyResolvedSymbol:S=Rg}){var P=e.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",E=TX(e),N=Qs();return F;function F(H,X,ne,ae,Y,Ee){var fe,te,de;let me=H,ve,Pe,Oe,ie,Ne,it=!1,ze,ge=Ua(X)?X:X.escapedText;e:for(;H;){if(ge==="const"&&$X(H))return;if(jF(H)&&Pe&&H.name===Pe&&(Pe=H,H=H.parent),Py(H)&&H.locals&&!C1(H)&&(ve=p(H.locals,ge,ne))){let Me=!0;if(Ss(H)&&Pe&&Pe!==H.body?(ne&ve.flags&788968&&Pe.kind!==320&&(Me=ve.flags&262144?!!(Pe.flags&16)||Pe===H.type||Pe.kind===169||Pe.kind===341||Pe.kind===342||Pe.kind===168:!1),ne&ve.flags&3&&(M(ve,H,Pe)?Me=!1:ve.flags&1&&(Me=Pe.kind===169||!!(Pe.flags&16)||Pe===H.type&&!!Br(ve.valueDeclaration,Da)))):H.kind===194&&(Me=Pe===H.trueType),Me)break e;ve=void 0}switch(it=it||L(H,Pe),H.kind){case 307:if(!q_(H))break;case 267:let Me=((fe=s(H))==null?void 0:fe.exports)||N;if(H.kind===307||cu(H)&&H.flags&33554432&&!Oy(H)){if(ve=Me.get("default")){let Tt=T4(ve);if(Tt&&ve.flags&ne&&Tt.escapedName===ge)break e;ve=void 0}let gt=Me.get(ge);if(gt&>.flags===2097152&&(Zc(gt,281)||Zc(gt,280)))break}if(ge!=="default"&&(ve=p(Me,ge,ne&2623475)))if(ba(H)&&H.commonJsModuleIndicator&&!((te=ve.declarations)!=null&&te.some(Bm)))ve=void 0;else break e;break;case 266:if(ve=p(((de=s(H))==null?void 0:de.exports)||N,ge,ne&8)){ae&&zm(e)&&!(H.flags&33554432)&&rn(H)!==rn(ve.valueDeclaration)&&i(me,y.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,ka(ge),P,`${ka(s(H).escapedName)}.${ka(ge)}`);break e}break;case 172:if(!Vs(H)){let gt=Y5(H.parent);gt&>.locals&&p(gt.locals,ge,ne&111551)&&(I.assertNode(H,is),ie=H)}break;case 263:case 231:case 264:if(ve=p(s(H).members||N,ge,ne&788968)){if(!z(ve,H)){ve=void 0;break}if(Pe&&Vs(Pe)){ae&&i(me,y.Static_members_cannot_reference_class_type_parameters);return}break e}if(vu(H)&&ne&32){let gt=H.name;if(gt&&ge===gt.escapedText){ve=H.symbol;break e}}break;case 233:if(Pe===H.expression&&H.parent.token===96){let gt=H.parent.parent;if(Ri(gt)&&(ve=p(s(gt).members,ge,ne&788968))){ae&&i(me,y.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(ze=H.parent.parent,(Ri(ze)||ze.kind===264)&&(ve=p(s(ze).members,ge,ne&788968))){ae&&i(me,y.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Po(e)>=2)break;case 174:case 176:case 177:case 178:case 262:if(ne&3&&ge==="arguments"){ve=n;break e}break;case 218:if(ne&3&&ge==="arguments"){ve=n;break e}if(ne&16){let gt=H.name;if(gt&&ge===gt.escapedText){ve=H.symbol;break e}}break;case 170:H.parent&&H.parent.kind===169&&(H=H.parent),H.parent&&(ou(H.parent)||H.parent.kind===263)&&(H=H.parent);break;case 346:case 338:case 340:case 351:let Te=fN(H);Te&&(H=Te.parent);break;case 169:Pe&&(Pe===H.initializer||Pe===H.name&&Os(Pe))&&(Ne||(Ne=H));break;case 208:Pe&&(Pe===H.initializer||Pe===H.name&&Os(Pe))&&OS(H)&&!Ne&&(Ne=H);break;case 195:if(ne&262144){let gt=H.typeParameter.name;if(gt&&ge===gt.escapedText){ve=H.typeParameter.symbol;break e}}break;case 281:Pe&&Pe===H.propertyName&&H.parent.parent.moduleSpecifier&&(H=H.parent.parent.parent);break}W(H,Pe)&&(Oe=H),Pe=H,H=Um(H)?nJ(H)||H.parent:(Ad(H)||kz(H))&&PS(H)||H.parent}if(Y&&ve&&(!Oe||ve!==Oe.symbol)&&(ve.isReferenced|=ne),!ve){if(Pe&&(I.assertNode(Pe,ba),Pe.commonJsModuleIndicator&&ge==="exports"&&ne&Pe.symbol.flags))return Pe.symbol;Ee||(ve=p(l,ge,ne))}if(!ve&&me&&jn(me)&&me.parent&&Xf(me.parent,!1))return t;if(ae){if(ie&&x(me,ge,ie,ve))return;ve?S(me,ve,ne,Pe,Ne,it):b(me,X,ne,ae)}return ve}function M(H,X,ne){let ae=Po(e),Y=X;if(Da(ne)&&Y.body&&H.valueDeclaration&&H.valueDeclaration.pos>=Y.body.pos&&H.valueDeclaration.end<=Y.body.end&&ae>=2){let te=m(Y);return te===void 0&&(te=Ge(Y.parameters,Ee)||!1,g(Y,te)),!te}return!1;function Ee(te){return fe(te.name)||!!te.initializer&&fe(te.initializer)}function fe(te){switch(te.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return fe(te.name);case 172:return Pu(te)?!E:fe(te.name);default:return jK(te)||Kp(te)?ae<7:Do(te)&&te.dotDotDotToken&&Nd(te.parent)?ae<4:Yi(te)?!1:xs(te,fe)||!1}}}function L(H,X){return H.kind!==219&&H.kind!==218?M2(H)||(Dc(H)||H.kind===172&&!Vs(H))&&(!X||X!==H.name):X&&X===H.name?!1:H.asteriskToken||Ai(H,1024)?!0:!v2(H)}function W(H,X){switch(H.kind){case 169:return!!X&&X===H.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function z(H,X){if(H.declarations){for(let ne of H.declarations)if(ne.kind===168&&(Um(ne.parent)?S2(ne.parent):ne.parent)===X)return!(Um(ne.parent)&&Ir(ne.parent.parent.tags,Bm))}return!1}}function rz(e,t=!0){switch(I.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return e.operator===41?e_(e.operand)||t&&H4(e.operand):e.operator===40?e_(e.operand):!1;default:return!1}}function Yge(e){for(;e.kind===217;)e=e.expression;return e}function nz(e){switch(I.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:case 304:case 341:case 348:return!0;default:return!1}}function HX(e){let t=Br(e,sl);return!!t&&!t.importClause}var Zge=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],ehe=new Set(Zge),iz=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),PN=new Set([...Zge,...Zge.map(e=>`node:${e}`),...iz]);function az(e,t,n,i){let s=jn(e),l=/import|require/g;for(;l.exec(e.text)!==null;){let p=l6t(e,l.lastIndex,t);if(s&&Xf(p,n))i(p,p.arguments[0]);else if(_d(p)&&p.arguments.length>=1&&(!n||Ho(p.arguments[0])))i(p,p.arguments[0]);else if(t&&C0(p))i(p,p.argument.literal);else if(t&&zh(p)){let g=KP(p);g&&vo(g)&&g.text&&i(p,g)}}}function l6t(e,t,n){let i=jn(e),s=e,l=p=>{if(p.pos<=t&&(t<p.end||t===p.end&&p.kind===1))return p};for(;;){let p=i&&n&&fd(s)&&Ge(s.jsDoc,l)||xs(s,l);if(!p)return s;s=p}}function the(e){return Ss(e)||B1(e)||zk(e)}function GX(e){return wy(e.fileName)}function KX(e){let t=GX(e);return WY.get(t)}function QX(e,t){return W4(void 0,e,(n,i)=>n&&t(n,i))}function W4(e,t,n,i){let s;return l(e,t,void 0);function l(p,g,m){if(i){let b=i(p,m);if(b)return b}let x;return Ge(g,(b,S)=>{if(b&&s?.has(b.sourceFile.path)){(x??(x=new Set)).add(b);return}let P=n(b,m,S);if(P||!b)return P;(s||(s=new Set)).add(b.sourceFile.path)})||Ge(g,b=>b&&!x?.has(b)?l(b.commandLine.projectReferences,b.references,b):void 0)}}function XX(e,t,n){return e&&u6t(e,t,n)}function u6t(e,t,n){return sN(e,t,i=>kp(i.initializer)?Ir(i.initializer.elements,s=>vo(s)&&s.text===n):void 0)}function rhe(e,t,n){return YX(e,t,i=>vo(i.initializer)&&i.initializer.text===n?i.initializer:void 0)}function YX(e,t,n){return sN(e,t,n)}function nhe(){let e,t,n,i,s;return{createBaseSourceFileNode:l,createBaseIdentifierNode:p,createBasePrivateIdentifierNode:g,createBaseTokenNode:m,createBaseNode:x};function l(b){return new(s||(s=wp.getSourceFileConstructor()))(b,-1,-1)}function p(b){return new(n||(n=wp.getIdentifierConstructor()))(b,-1,-1)}function g(b){return new(i||(i=wp.getPrivateIdentifierConstructor()))(b,-1,-1)}function m(b){return new(t||(t=wp.getTokenConstructor()))(b,-1,-1)}function x(b){return new(e||(e=wp.getNodeConstructor()))(b,-1,-1)}}function ihe(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:x,parenthesizeRightSideOfBinary:b,parenthesizeExpressionOfComputedPropertyName:S,parenthesizeConditionOfConditionalExpression:P,parenthesizeBranchOfConditionalExpression:E,parenthesizeExpressionOfExportDefault:N,parenthesizeExpressionOfNew:F,parenthesizeLeftSideOfAccess:M,parenthesizeOperandOfPostfixUnary:L,parenthesizeOperandOfPrefixUnary:W,parenthesizeExpressionsOfCommaDelimitedList:z,parenthesizeExpressionForDisallowedComma:H,parenthesizeExpressionOfExpressionStatement:X,parenthesizeConciseBodyOfArrowFunction:ne,parenthesizeCheckTypeOfConditionalType:ae,parenthesizeExtendsTypeOfConditionalType:Y,parenthesizeConstituentTypesOfUnionType:fe,parenthesizeConstituentTypeOfUnionType:Ee,parenthesizeConstituentTypesOfIntersectionType:de,parenthesizeConstituentTypeOfIntersectionType:te,parenthesizeOperandOfTypeOperator:me,parenthesizeOperandOfReadonlyTypeOperator:ve,parenthesizeNonArrayTypeOfPostfixType:Pe,parenthesizeElementTypesOfTupleType:Oe,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:it,parenthesizeTypeArguments:Me,parenthesizeLeadingTypeArgument:ze};function i(Te){t||(t=new Map);let gt=t.get(Te);return gt||(gt=Tt=>x(Te,Tt),t.set(Te,gt)),gt}function s(Te){n||(n=new Map);let gt=n.get(Te);return gt||(gt=Tt=>b(Te,void 0,Tt),n.set(Te,gt)),gt}function l(Te,gt,Tt,xe){let nt=k5(226,Te),pe=WQ(226,Te),He=dg(gt);if(!Tt&>.kind===219&&nt>3)return!0;let qe=h4(He);switch(mc(qe,nt)){case-1:return!(!Tt&&pe===1&>.kind===229);case 1:return!1;case 0:if(Tt)return pe===1;if(Vn(He)&&He.operatorToken.kind===Te){if(p(Te))return!1;if(Te===40){let st=xe?g(xe):0;if(GI(st)&&st===g(He))return!1}}return zQ(He)===0}}function p(Te){return Te===42||Te===52||Te===51||Te===53||Te===28}function g(Te){if(Te=dg(Te),GI(Te.kind))return Te.kind;if(Te.kind===226&&Te.operatorToken.kind===40){if(Te.cachedLiteralKind!==void 0)return Te.cachedLiteralKind;let gt=g(Te.left),Tt=GI(gt)&>===g(Te.right)?gt:0;return Te.cachedLiteralKind=Tt,Tt}return 0}function m(Te,gt,Tt,xe){return dg(gt).kind===217?gt:l(Te,gt,Tt,xe)?e.createParenthesizedExpression(gt):gt}function x(Te,gt){return m(Te,gt,!0)}function b(Te,gt,Tt){return m(Te,Tt,!1,gt)}function S(Te){return s3(Te)?e.createParenthesizedExpression(Te):Te}function P(Te){let gt=k5(227,58),Tt=dg(Te),xe=h4(Tt);return mc(xe,gt)!==1?e.createParenthesizedExpression(Te):Te}function E(Te){let gt=dg(Te);return s3(gt)?e.createParenthesizedExpression(Te):Te}function N(Te){let gt=dg(Te),Tt=s3(gt);if(!Tt)switch(SN(gt,!1).kind){case 231:case 218:Tt=!0}return Tt?e.createParenthesizedExpression(Te):Te}function F(Te){let gt=SN(Te,!0);switch(gt.kind){case 213:return e.createParenthesizedExpression(Te);case 214:return gt.arguments?Te:e.createParenthesizedExpression(Te)}return M(Te)}function M(Te,gt){let Tt=dg(Te);return Qf(Tt)&&(Tt.kind!==214||Tt.arguments)&&(gt||!Kp(Tt))?Te:Ot(e.createParenthesizedExpression(Te),Te)}function L(Te){return Qf(Te)?Te:Ot(e.createParenthesizedExpression(Te),Te)}function W(Te){return HK(Te)?Te:Ot(e.createParenthesizedExpression(Te),Te)}function z(Te){let gt=ia(Te,H);return Ot(e.createNodeArray(gt,Te.hasTrailingComma),Te)}function H(Te){let gt=dg(Te),Tt=h4(gt),xe=k5(226,28);return Tt>xe?Te:Ot(e.createParenthesizedExpression(Te),Te)}function X(Te){let gt=dg(Te);if(Ls(gt)){let xe=gt.expression,nt=dg(xe).kind;if(nt===218||nt===219){let pe=e.updateCallExpression(gt,Ot(e.createParenthesizedExpression(xe),xe),gt.typeArguments,gt.arguments);return e.restoreOuterExpressions(Te,pe,8)}}let Tt=SN(gt,!1).kind;return Tt===210||Tt===218?Ot(e.createParenthesizedExpression(Te),Te):Te}function ne(Te){return!Cs(Te)&&(s3(Te)||SN(Te,!1).kind===210)?Ot(e.createParenthesizedExpression(Te),Te):Te}function ae(Te){switch(Te.kind){case 184:case 185:case 194:return e.createParenthesizedType(Te)}return Te}function Y(Te){switch(Te.kind){case 194:return e.createParenthesizedType(Te)}return Te}function Ee(Te){switch(Te.kind){case 192:case 193:return e.createParenthesizedType(Te)}return ae(Te)}function fe(Te){return e.createNodeArray(ia(Te,Ee))}function te(Te){switch(Te.kind){case 192:case 193:return e.createParenthesizedType(Te)}return Ee(Te)}function de(Te){return e.createNodeArray(ia(Te,te))}function me(Te){switch(Te.kind){case 193:return e.createParenthesizedType(Te)}return te(Te)}function ve(Te){switch(Te.kind){case 198:return e.createParenthesizedType(Te)}return me(Te)}function Pe(Te){switch(Te.kind){case 195:case 198:case 186:return e.createParenthesizedType(Te)}return me(Te)}function Oe(Te){return e.createNodeArray(ia(Te,ie))}function ie(Te){return Ne(Te)?e.createParenthesizedType(Te):Te}function Ne(Te){return jN(Te)?Te.postfix:ON(Te)||Iy(Te)||DN(Te)||MS(Te)?Ne(Te.type):R2(Te)?Ne(Te.falseType):M1(Te)||wE(Te)?Ne(ao(Te.types)):qk(Te)?!!Te.typeParameter.constraint&&Ne(Te.typeParameter.constraint):!1}function it(Te){return Ne(Te)?e.createParenthesizedType(Te):Pe(Te)}function ze(Te){return xde(Te)&&Te.typeParameters?e.createParenthesizedType(Te):Te}function ge(Te,gt){return gt===0?ze(Te):Te}function Me(Te){if(Pt(Te))return e.createNodeArray(ia(Te,ge))}}var ahe={getParenthesizeLeftSideOfBinaryForOperator:e=>vc,getParenthesizeRightSideOfBinaryForOperator:e=>vc,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:vc,parenthesizeConditionOfConditionalExpression:vc,parenthesizeBranchOfConditionalExpression:vc,parenthesizeExpressionOfExportDefault:vc,parenthesizeExpressionOfNew:e=>Js(e,Qf),parenthesizeLeftSideOfAccess:e=>Js(e,Qf),parenthesizeOperandOfPostfixUnary:e=>Js(e,Qf),parenthesizeOperandOfPrefixUnary:e=>Js(e,HK),parenthesizeExpressionsOfCommaDelimitedList:e=>Js(e,p2),parenthesizeExpressionForDisallowedComma:vc,parenthesizeExpressionOfExpressionStatement:vc,parenthesizeConciseBodyOfArrowFunction:vc,parenthesizeCheckTypeOfConditionalType:vc,parenthesizeExtendsTypeOfConditionalType:vc,parenthesizeConstituentTypesOfUnionType:e=>Js(e,p2),parenthesizeConstituentTypeOfUnionType:vc,parenthesizeConstituentTypesOfIntersectionType:e=>Js(e,p2),parenthesizeConstituentTypeOfIntersectionType:vc,parenthesizeOperandOfTypeOperator:vc,parenthesizeOperandOfReadonlyTypeOperator:vc,parenthesizeNonArrayTypeOfPostfixType:vc,parenthesizeElementTypesOfTupleType:e=>Js(e,p2),parenthesizeElementTypeOfTupleType:vc,parenthesizeTypeOfOptionalType:vc,parenthesizeTypeArguments:e=>e&&Js(e,p2),parenthesizeLeadingTypeArgument:vc};function she(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:l,convertToAssignmentPattern:p,convertToObjectAssignmentPattern:g,convertToArrayAssignmentPattern:m,convertToAssignmentElementTarget:x};function t(b,S){if(Cs(b))return b;let P=e.createReturnStatement(b);Ot(P,b);let E=e.createBlock([P],S);return Ot(E,b),E}function n(b){var S;if(!b.body)return I.fail("Cannot convert a FunctionDeclaration without a body");let P=e.createFunctionExpression((S=u2(b))==null?void 0:S.filter(E=>!vE(E)&&!mz(E)),b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body);return ii(P,b),Ot(P,b),U4(b)&&cz(P,!0),P}function i(b){var S;let P=e.createClassExpression((S=b.modifiers)==null?void 0:S.filter(E=>!vE(E)&&!mz(E)),b.name,b.typeParameters,b.heritageClauses,b.members);return ii(P,b),Ot(P,b),U4(b)&&cz(P,!0),P}function s(b){if(Do(b)){if(b.dotDotDotToken)return I.assertNode(b.name,Ye),ii(Ot(e.createSpreadElement(b.name),b),b);let S=x(b.name);return b.initializer?ii(Ot(e.createAssignment(S,b.initializer),b),b):S}return Js(b,At)}function l(b){if(Do(b)){if(b.dotDotDotToken)return I.assertNode(b.name,Ye),ii(Ot(e.createSpreadAssignment(b.name),b),b);if(b.propertyName){let S=x(b.name);return ii(Ot(e.createPropertyAssignment(b.propertyName,b.initializer?e.createAssignment(S,b.initializer):S),b),b)}return I.assertNode(b.name,Ye),ii(Ot(e.createShorthandPropertyAssignment(b.name,b.initializer),b),b)}return Js(b,k0)}function p(b){switch(b.kind){case 207:case 209:return m(b);case 206:case 210:return g(b)}}function g(b){return Nd(b)?ii(Ot(e.createObjectLiteralExpression(Dt(b.elements,l)),b),b):Js(b,So)}function m(b){return j1(b)?ii(Ot(e.createArrayLiteralExpression(Dt(b.elements,s)),b),b):Js(b,kp)}function x(b){return Os(b)?p(b):Js(b,At)}}var ohe={convertToFunctionBlock:zs,convertToFunctionExpression:zs,convertToClassExpression:zs,convertToArrayAssignmentElement:zs,convertToObjectAssignmentElement:zs,convertToAssignmentPattern:zs,convertToObjectAssignmentPattern:zs,convertToArrayAssignmentPattern:zs,convertToAssignmentElementTarget:zs},ZX=0,che=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(che||{}),xje=[];function Sje(e){xje.push(e)}function Z5(e,t){let n=e&8?vc:ii,i=Cu(()=>e&1?ahe:ihe(L)),s=Cu(()=>e&2?ohe:she(L)),l=im(k=>(R,G)=>Tn(R,k,G)),p=im(k=>R=>xt(k,R)),g=im(k=>R=>yr(R,k)),m=im(k=>()=>ms(k)),x=im(k=>R=>bC(k,R)),b=im(k=>(R,G)=>zn(k,R,G)),S=im(k=>(R,G)=>ib(k,R,G)),P=im(k=>(R,G)=>_T(k,R,G)),E=im(k=>(R,G)=>Dl(k,R,G)),N=im(k=>(R,G,we)=>pu(k,R,G,we)),F=im(k=>(R,G,we)=>BA(k,R,G,we)),M=im(k=>(R,G,we,ct)=>rd(k,R,G,we,ct)),L={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:W,createNumericLiteral:ne,createBigIntLiteral:ae,createStringLiteral:Ee,createStringLiteralFromNode:fe,createRegularExpressionLiteral:te,createLiteralLikeNode:de,createIdentifier:Pe,createTempVariable:Oe,createLoopVariable:ie,createUniqueName:Ne,getGeneratedNameForNode:it,createPrivateIdentifier:ge,createUniquePrivateName:Te,getGeneratedPrivateNameForNode:gt,createToken:xe,createSuper:nt,createThis:pe,createNull:He,createTrue:qe,createFalse:je,createModifier:st,createModifiersFromModifierFlags:jt,createQualifiedName:ar,updateQualifiedName:Or,createComputedPropertyName:nn,updateComputedPropertyName:Ct,createTypeParameterDeclaration:pr,updateTypeParameterDeclaration:vn,createParameterDeclaration:ta,updateParameterDeclaration:ts,createDecorator:Gt,updateDecorator:hi,createPropertySignature:$a,updatePropertySignature:ui,createPropertyDeclaration:Gi,updatePropertyDeclaration:at,createMethodSignature:It,updateMethodSignature:Cr,createMethodDeclaration:wn,updateMethodDeclaration:Di,createConstructorDeclaration:Vr,updateConstructorDeclaration:_s,createGetAccessorDeclaration:Qt,updateGetAccessorDeclaration:he,createSetAccessorDeclaration:oe,updateSetAccessorDeclaration:Ue,createCallSignature:vt,updateCallSignature:$t,createConstructSignature:Qe,updateConstructSignature:Lt,createIndexSignature:Rt,updateIndexSignature:Xt,createClassStaticBlockDeclaration:da,updateClassStaticBlockDeclaration:ks,createTemplateLiteralTypeSpan:ut,updateTemplateLiteralTypeSpan:lr,createKeywordTypeNode:In,createTypePredicateNode:We,updateTypePredicateNode:qt,createTypeReferenceNode:ke,updateTypeReferenceNode:$,createFunctionTypeNode:Ke,updateFunctionTypeNode:re,createConstructorTypeNode:rr,updateConstructorTypeNode:dr,createTypeQueryNode:yn,updateTypeQueryNode:yt,createTypeLiteralNode:Bt,updateTypeLiteralNode:cr,createArrayTypeNode:er,updateArrayTypeNode:zr,createTupleTypeNode:Pr,updateTupleTypeNode:or,createNamedTupleMember:Mr,updateNamedTupleMember:Wr,createOptionalTypeNode:$r,updateOptionalTypeNode:Sr,createRestTypeNode:ji,updateRestTypeNode:Is,createUnionTypeNode:Vl,updateUnionTypeNode:pl,createIntersectionTypeNode:Bl,updateIntersectionTypeNode:la,createConditionalTypeNode:us,updateConditionalTypeNode:lu,createInferTypeNode:Kc,updateInferTypeNode:Ro,createImportTypeNode:as,updateImportTypeNode:Gs,createParenthesizedType:qo,updateParenthesizedType:jo,createThisTypeNode:fr,createTypeOperatorNode:hc,updateTypeOperatorNode:uu,createIndexedAccessTypeNode:Cl,updateIndexedAccessTypeNode:hp,createMappedTypeNode:tl,updateMappedTypeNode:Pl,createLiteralTypeNode:B,updateLiteralTypeNode:Xe,createTemplateLiteralType:el,updateTemplateLiteralType:Q_,createObjectBindingPattern:Et,updateObjectBindingPattern:ur,createArrayBindingPattern:cn,updateArrayBindingPattern:wi,createBindingElement:Bn,updateBindingElement:an,createArrayLiteralExpression:ua,updateArrayLiteralExpression:ma,createObjectLiteralExpression:sc,updateObjectLiteralExpression:To,createPropertyAccessExpression:e&4?(k,R)=>qn(El(k,R),262144):El,updatePropertyAccessExpression:Hl,createPropertyAccessChain:e&4?(k,R,G)=>qn(Fc(k,R,G),262144):Fc,updatePropertyAccessChain:Gl,createElementAccessExpression:Dp,updateElementAccessExpression:Ld,createElementAccessChain:Bf,updateElementAccessChain:$e,createCallExpression:Nn,updateCallExpression:za,createCallChain:Fs,updateCallChain:Io,createNewExpression:Jc,updateNewExpression:Kl,createTaggedTemplateExpression:hl,updateTaggedTemplateExpression:yl,createTypeAssertion:ru,updateTypeAssertion:Nu,createParenthesizedExpression:Au,updateParenthesizedExpression:Y_,createFunctionExpression:qf,updateFunctionExpression:Tg,createArrowFunction:gd,updateArrowFunction:Qh,createDeleteExpression:Jv,updateDeleteExpression:Bd,createTypeOfExpression:n_,updateTypeOfExpression:xf,createVoidExpression:Xh,updateVoidExpression:hd,createAwaitExpression:zv,updateAwaitExpression:_e,createPrefixUnaryExpression:xt,updatePrefixUnaryExpression:gr,createPostfixUnaryExpression:yr,updatePostfixUnaryExpression:Qr,createBinaryExpression:Tn,updateBinaryExpression:Ki,createConditionalExpression:Na,updateConditionalExpression:U,createTemplateExpression:rt,updateTemplateExpression:Yt,createTemplateHead:Uc,createTemplateMiddle:lo,createTemplateTail:Tu,createNoSubstitutionTemplateLiteral:Z_,createTemplateLiteralLikeNode:ss,createYieldExpression:vm,updateYieldExpression:Zg,createSpreadElement:U0,updateSpreadElement:Wv,createClassExpression:x_,updateClassExpression:eh,createOmittedExpression:Yh,createExpressionWithTypeArguments:Km,updateExpressionWithTypeArguments:jx,createAsExpression:yd,updateAsExpression:H1,createNonNullExpression:Lx,updateNonNullExpression:G1,createSatisfiesExpression:tt,updateSatisfiesExpression:ht,createNonNullChain:tr,updateNonNullChain:Er,createMetaProperty:hn,updateMetaProperty:Gn,createTemplateSpan:ln,updateTemplateSpan:Hn,createSemicolonClassElement:_a,createBlock:rs,updateBlock:Ii,createVariableStatement:Ia,updateVariableStatement:Es,createEmptyStatement:tp,createExpressionStatement:qd,updateExpressionStatement:Jd,createIfStatement:ed,updateIfStatement:Ly,createDoStatement:wg,updateDoStatement:By,createWhileStatement:K1,updateWhileStatement:qy,createForStatement:Q1,updateForStatement:oT,createForInStatement:ow,updateForInStatement:u8,createForOfStatement:aD,updateForOfStatement:AA,createContinueStatement:cw,updateContinueStatement:IA,createBreakStatement:_C,updateBreakStatement:sD,createReturnStatement:lw,updateReturnStatement:FA,createWithStatement:dC,updateWithStatement:oD,createSwitchStatement:mC,updateSwitchStatement:Zh,createLabeledStatement:X1,updateLabeledStatement:$0,createThrowStatement:Jy,updateThrowStatement:cT,createTryStatement:Bx,updateTryStatement:uw,createDebuggerStatement:pw,createVariableDeclaration:Y1,updateVariableDeclaration:Jo,createVariableDeclarationList:lT,updateVariableDeclarationList:p8,createFunctionDeclaration:qx,updateFunctionDeclaration:Uv,createClassDeclaration:bm,updateClassDeclaration:i_,createInterfaceDeclaration:S_,updateInterfaceDeclaration:td,createTypeAliasDeclaration:wu,updateTypeAliasDeclaration:Z1,createEnumDeclaration:gC,updateEnumDeclaration:th,createModuleDeclaration:Jx,updateModuleDeclaration:yp,createModuleBlock:Vv,updateModuleBlock:T_,createCaseBlock:Hv,updateCaseBlock:Gv,createNamespaceExportDeclaration:zy,updateNamespaceExportDeclaration:fw,createImportEqualsDeclaration:eb,updateImportEqualsDeclaration:rh,createImportDeclaration:tb,updateImportDeclaration:cD,createImportClause:rb,updateImportClause:V0,createAssertClause:Wy,updateAssertClause:lD,createAssertEntry:fo,updateAssertEntry:rp,createImportTypeAssertionContainer:Kv,updateImportTypeAssertionContainer:Qv,createImportAttributes:zx,updateImportAttributes:uT,createImportAttribute:ey,updateImportAttribute:H0,createNamespaceImport:hC,updateNamespaceImport:nb,createNamespaceExport:ty,updateNamespaceExport:Uy,createNamedImports:Wx,updateNamedImports:Fa,createImportSpecifier:Zn,updateImportSpecifier:Sf,createExportAssignment:yC,updateExportAssignment:ry,createExportDeclaration:Ac,updateExportDeclaration:pT,createNamedExports:vC,updateNamedExports:uD,createExportSpecifier:Ux,updateExportSpecifier:nh,createMissingDeclaration:MA,createExternalModuleReference:Kn,updateExternalModuleReference:af,get createJSDocAllType(){return m(312)},get createJSDocUnknownType(){return m(313)},get createJSDocNonNullableType(){return S(315)},get updateJSDocNonNullableType(){return P(315)},get createJSDocNullableType(){return S(314)},get updateJSDocNullableType(){return P(314)},get createJSDocOptionalType(){return x(316)},get updateJSDocOptionalType(){return b(316)},get createJSDocVariadicType(){return x(318)},get updateJSDocVariadicType(){return b(318)},get createJSDocNamepathType(){return x(319)},get updateJSDocNamepathType(){return b(319)},createJSDocFunctionType:RA,updateJSDocFunctionType:pD,createJSDocTypeLiteral:Tf,updateJSDocTypeLiteral:$y,createJSDocTypeExpression:kg,updateJSDocTypeExpression:ab,createJSDocSignature:zd,updateJSDocSignature:Xv,createJSDocTemplateTag:Vy,updateJSDocTemplateTag:_w,createJSDocTypedefTag:sb,updateJSDocTypedefTag:fD,createJSDocParameterTag:Yv,updateJSDocParameterTag:xC,createJSDocPropertyTag:_D,updateJSDocPropertyTag:$x,createJSDocCallbackTag:Cg,updateJSDocCallbackTag:dD,createJSDocOverloadTag:SC,updateJSDocOverloadTag:ob,createJSDocAugmentsTag:dw,updateJSDocAugmentsTag:ny,createJSDocImplementsTag:G0,updateJSDocImplementsTag:wC,createJSDocSeeTag:iy,updateJSDocSeeTag:cb,createJSDocImportTag:K0,updateJSDocImportTag:qA,createJSDocNameReference:np,updateJSDocNameReference:TC,createJSDocMemberName:Zv,updateJSDocMemberName:mw,createJSDocLink:mD,updateJSDocLink:Hy,createJSDocLinkCode:jA,updateJSDocLinkCode:gw,createJSDocLinkPlain:LA,updateJSDocLinkPlain:dT,get createJSDocTypeTag(){return F(344)},get updateJSDocTypeTag(){return M(344)},get createJSDocReturnTag(){return F(342)},get updateJSDocReturnTag(){return M(342)},get createJSDocThisTag(){return F(343)},get updateJSDocThisTag(){return M(343)},get createJSDocAuthorTag(){return E(330)},get updateJSDocAuthorTag(){return N(330)},get createJSDocClassTag(){return E(332)},get updateJSDocClassTag(){return N(332)},get createJSDocPublicTag(){return E(333)},get updateJSDocPublicTag(){return N(333)},get createJSDocPrivateTag(){return E(334)},get updateJSDocPrivateTag(){return N(334)},get createJSDocProtectedTag(){return E(335)},get updateJSDocProtectedTag(){return N(335)},get createJSDocReadonlyTag(){return E(336)},get updateJSDocReadonlyTag(){return N(336)},get createJSDocOverrideTag(){return E(337)},get updateJSDocOverrideTag(){return N(337)},get createJSDocDeprecatedTag(){return E(331)},get updateJSDocDeprecatedTag(){return N(331)},get createJSDocThrowsTag(){return F(349)},get updateJSDocThrowsTag(){return M(349)},get createJSDocSatisfiesTag(){return F(350)},get updateJSDocSatisfiesTag(){return M(350)},createJSDocEnumTag:ah,updateJSDocEnumTag:kC,createJSDocUnknownTag:Xm,updateJSDocUnknownTag:gD,createJSDocText:CC,updateJSDocText:Ol,createJSDocComment:mT,updateJSDocComment:JA,createJsxElement:hw,updateJsxElement:f8,createJsxSelfClosingElement:wf,updateJsxSelfClosingElement:gT,createJsxOpeningElement:yw,updateJsxOpeningElement:PC,createJsxClosingElement:a_,updateJsxClosingElement:Ym,createJsxFragment:lb,createJsxText:hT,updateJsxText:yT,createJsxOpeningFragment:yD,createJsxJsxClosingFragment:vT,updateJsxFragment:hD,createJsxAttribute:vD,updateJsxAttribute:vw,createJsxAttributes:Gy,updateJsxAttributes:nd,createJsxSpreadAttribute:e0,updateJsxSpreadAttribute:EC,createJsxExpression:bT,updateJsxExpression:Uo,createJsxNamespacedName:ei,updateJsxNamespacedName:bd,createCaseClause:w_,updateCaseClause:bD,createDefaultClause:Vx,updateDefaultClause:DC,createHeritageClause:xD,updateHeritageClause:SD,createCatchClause:Wd,updateCatchClause:Ud,createPropertyAssignment:k_,updatePropertyAssignment:sh,createShorthandPropertyAssignment:t0,updateShorthandPropertyAssignment:A,createSpreadAssignment:Jt,updateSpreadAssignment:Nr,createEnumMember:Wi,updateEnumMember:pa,createSourceFile:Ha,updateSourceFile:TD,createRedirectedSourceFile:ps,createBundle:zf,updateBundle:ay,createSyntheticExpression:Hx,createSyntaxList:xT,createNotEmittedStatement:wD,createNotEmittedTypeElement:pb,createPartiallyEmittedExpression:kD,updatePartiallyEmittedExpression:ub,createCommaListExpression:sy,updateCommaListExpression:CD,createSyntheticReferenceExpression:PD,updateSyntheticReferenceExpression:mj,cloneNode:ja,get createComma(){return l(28)},get createAssignment(){return l(64)},get createLogicalOr(){return l(57)},get createLogicalAnd(){return l(56)},get createBitwiseOr(){return l(52)},get createBitwiseXor(){return l(53)},get createBitwiseAnd(){return l(51)},get createStrictEquality(){return l(37)},get createStrictInequality(){return l(38)},get createEquality(){return l(35)},get createInequality(){return l(36)},get createLessThan(){return l(30)},get createLessThanEquals(){return l(33)},get createGreaterThan(){return l(32)},get createGreaterThanEquals(){return l(34)},get createLeftShift(){return l(48)},get createRightShift(){return l(49)},get createUnsignedRightShift(){return l(50)},get createAdd(){return l(40)},get createSubtract(){return l(41)},get createMultiply(){return l(42)},get createDivide(){return l(44)},get createModulo(){return l(45)},get createExponent(){return l(43)},get createPrefixPlus(){return p(40)},get createPrefixMinus(){return p(41)},get createPrefixIncrement(){return p(46)},get createPrefixDecrement(){return p(47)},get createBitwiseNot(){return p(55)},get createLogicalNot(){return p(54)},get createPostfixIncrement(){return g(46)},get createPostfixDecrement(){return g(47)},createImmediatelyInvokedFunctionExpression:Sw,createImmediatelyInvokedArrowFunction:Pn,createVoidZero:ST,createExportDefault:DD,createExternalModuleExport:zA,createTypeCheck:OD,createIsNotTypeCheck:hj,createMethodCall:TT,createGlobalMethodCall:Tw,createFunctionBindCall:M$,createFunctionCallCall:wT,createFunctionApplyCall:R$,createArraySliceCall:ND,createArrayConcatCall:yj,createObjectDefinePropertyCall:WA,createObjectGetOwnPropertyDescriptorCall:ww,createReflectGetCall:kT,createReflectSetCall:X0,createPropertyDescriptor:oy,createCallBinding:fu,createAssignmentTargetWrapper:se,inlineExpressions:Ae,getInternalName:Wt,getLocalName:vr,getExportName:Hr,getDeclarationName:bi,getNamespaceMemberName:ga,getExternalModuleOrNamespaceExportName:Qi,restoreOuterExpressions:cy,restoreEnclosingLabel:PT,createUseStrictPrologue:kc,copyPrologue:Zi,copyStandardPrologue:Cc,copyCustomPrologue:zo,ensureUseStrict:xm,liftToBlock:Ky,mergeLexicalEnvironment:ip,replaceModifiers:oh,replaceDecoratorsAndModifiers:Gx,replacePropertyName:vj};return Ge(xje,k=>k(L)),L;function W(k,R){if(k===void 0||k===ce)k=[];else if(p2(k)){if(R===void 0||k.hasTrailingComma===R)return k.transformFlags===void 0&&wje(k),I.attachNodeArrayDebugInfo(k),k;let ct=k.slice();return ct.pos=k.pos,ct.end=k.end,ct.hasTrailingComma=R,ct.transformFlags=k.transformFlags,I.attachNodeArrayDebugInfo(ct),ct}let G=k.length,we=G>=1&&G<=4?k.slice():k;return we.pos=-1,we.end=-1,we.hasTrailingComma=!!R,we.transformFlags=0,wje(we),I.attachNodeArrayDebugInfo(we),we}function z(k){return t.createBaseNode(k)}function H(k){let R=z(k);return R.symbol=void 0,R.localSymbol=void 0,R}function X(k,R){return k!==R&&(k.typeArguments=R.typeArguments),Jn(k,R)}function ne(k,R=0){let G=typeof k=="number"?k+"":k;I.assert(G.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let we=H(9);return we.text=G,we.numericLiteralFlags=R,R&384&&(we.transformFlags|=1024),we}function ae(k){let R=Tt(10);return R.text=typeof k=="string"?k:A2(k)+"n",R.transformFlags|=32,R}function Y(k,R){let G=H(11);return G.text=k,G.singleQuote=R,G}function Ee(k,R,G){let we=Y(k,R);return we.hasExtendedUnicodeEscape=G,G&&(we.transformFlags|=1024),we}function fe(k){let R=Y(lm(k),void 0);return R.textSourceNode=k,R}function te(k){let R=Tt(14);return R.text=k,R}function de(k,R){switch(k){case 9:return ne(R,0);case 10:return ae(R);case 11:return Ee(R,void 0);case 12:return hT(R,!1);case 13:return hT(R,!0);case 14:return te(R);case 15:return ss(k,R,void 0,0)}}function me(k){let R=t.createBaseIdentifierNode(80);return R.escapedText=k,R.jsDoc=void 0,R.flowNode=void 0,R.symbol=void 0,R}function ve(k,R,G,we){let ct=me(gl(k));return iM(ct,{flags:R,id:ZX,prefix:G,suffix:we}),ZX++,ct}function Pe(k,R,G){R===void 0&&k&&(R=dk(k)),R===80&&(R=void 0);let we=me(gl(k));return G&&(we.flags|=256),we.escapedText==="await"&&(we.transformFlags|=67108864),we.flags&256&&(we.transformFlags|=1024),we}function Oe(k,R,G,we){let ct=1;R&&(ct|=8);let br=ve("",ct,G,we);return k&&k(br),br}function ie(k){let R=2;return k&&(R|=8),ve("",R,void 0,void 0)}function Ne(k,R=0,G,we){return I.assert(!(R&7),"Argument out of range: flags"),I.assert((R&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),ve(k,3|R,G,we)}function it(k,R=0,G,we){I.assert(!(R&7),"Argument out of range: flags");let ct=k?xv(k)?WS(!1,G,k,we,fi):`generated@${Wo(k)}`:"";(G||we)&&(R|=16);let br=ve(ct,4|R,G,we);return br.original=k,br}function ze(k){let R=t.createBasePrivateIdentifierNode(81);return R.escapedText=k,R.transformFlags|=16777216,R}function ge(k){return La(k,"#")||I.fail("First character of private identifier must be #: "+k),ze(gl(k))}function Me(k,R,G,we){let ct=ze(gl(k));return iM(ct,{flags:R,id:ZX,prefix:G,suffix:we}),ZX++,ct}function Te(k,R,G){k&&!La(k,"#")&&I.fail("First character of private identifier must be #: "+k);let we=8|(k?3:1);return Me(k??"",we,R,G)}function gt(k,R,G){let we=xv(k)?WS(!0,R,k,G,fi):`#generated@${Wo(k)}`,br=Me(we,4|(R||G?16:0),R,G);return br.original=k,br}function Tt(k){return t.createBaseTokenNode(k)}function xe(k){I.assert(k>=0&&k<=165,"Invalid token"),I.assert(k<=15||k>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),I.assert(k<=9||k>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),I.assert(k!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let R=Tt(k),G=0;switch(k){case 134:G=384;break;case 160:G=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:G=1;break;case 108:G=134218752,R.flowNode=void 0;break;case 126:G=1024;break;case 129:G=16777216;break;case 110:G=16384,R.flowNode=void 0;break}return G&&(R.transformFlags|=G),R}function nt(){return xe(108)}function pe(){return xe(110)}function He(){return xe(106)}function qe(){return xe(112)}function je(){return xe(97)}function st(k){return xe(k)}function jt(k){let R=[];return k&32&&R.push(st(95)),k&128&&R.push(st(138)),k&2048&&R.push(st(90)),k&4096&&R.push(st(87)),k&1&&R.push(st(125)),k&2&&R.push(st(123)),k&4&&R.push(st(124)),k&64&&R.push(st(128)),k&256&&R.push(st(126)),k&16&&R.push(st(164)),k&8&&R.push(st(148)),k&512&&R.push(st(129)),k&1024&&R.push(st(134)),k&8192&&R.push(st(103)),k&16384&&R.push(st(147)),R.length?R:void 0}function ar(k,R){let G=z(166);return G.left=k,G.right=Iu(R),G.transformFlags|=Yn(G.left)|eM(G.right),G.flowNode=void 0,G}function Or(k,R,G){return k.left!==R||k.right!==G?Jn(ar(R,G),k):k}function nn(k){let R=z(167);return R.expression=i().parenthesizeExpressionOfComputedPropertyName(k),R.transformFlags|=Yn(R.expression)|1024|131072,R}function Ct(k,R){return k.expression!==R?Jn(nn(R),k):k}function pr(k,R,G,we){let ct=H(168);return ct.modifiers=$o(k),ct.name=Iu(R),ct.constraint=G,ct.default=we,ct.transformFlags=1,ct.expression=void 0,ct.jsDoc=void 0,ct}function vn(k,R,G,we,ct){return k.modifiers!==R||k.name!==G||k.constraint!==we||k.default!==ct?Jn(pr(R,G,we,ct),k):k}function ta(k,R,G,we,ct,br){let Qn=H(169);return Qn.modifiers=$o(k),Qn.dotDotDotToken=R,Qn.name=Iu(G),Qn.questionToken=we,Qn.type=ct,Qn.initializer=AD(br),hx(Qn.name)?Qn.transformFlags=1:Qn.transformFlags=Bo(Qn.modifiers)|Yn(Qn.dotDotDotToken)|Sx(Qn.name)|Yn(Qn.questionToken)|Yn(Qn.initializer)|(Qn.questionToken??Qn.type?1:0)|(Qn.dotDotDotToken??Qn.initializer?1024:0)|(Ih(Qn.modifiers)&31?8192:0),Qn.jsDoc=void 0,Qn}function ts(k,R,G,we,ct,br,Qn){return k.modifiers!==R||k.dotDotDotToken!==G||k.name!==we||k.questionToken!==ct||k.type!==br||k.initializer!==Qn?Jn(ta(R,G,we,ct,br,Qn),k):k}function Gt(k){let R=z(170);return R.expression=i().parenthesizeLeftSideOfAccess(k,!1),R.transformFlags|=Yn(R.expression)|1|8192|33554432,R}function hi(k,R){return k.expression!==R?Jn(Gt(R),k):k}function $a(k,R,G,we){let ct=H(171);return ct.modifiers=$o(k),ct.name=Iu(R),ct.type=we,ct.questionToken=G,ct.transformFlags=1,ct.initializer=void 0,ct.jsDoc=void 0,ct}function ui(k,R,G,we,ct){return k.modifiers!==R||k.name!==G||k.questionToken!==we||k.type!==ct?Wn($a(R,G,we,ct),k):k}function Wn(k,R){return k!==R&&(k.initializer=R.initializer),Jn(k,R)}function Gi(k,R,G,we,ct){let br=H(172);br.modifiers=$o(k),br.name=Iu(R),br.questionToken=G&&Tx(G)?G:void 0,br.exclamationToken=G&&sM(G)?G:void 0,br.type=we,br.initializer=AD(ct);let Qn=br.flags&33554432||Ih(br.modifiers)&128;return br.transformFlags=Bo(br.modifiers)|Sx(br.name)|Yn(br.initializer)|(Qn||br.questionToken||br.exclamationToken||br.type?1:0)|(po(br.name)||Ih(br.modifiers)&256&&br.initializer?8192:0)|16777216,br.jsDoc=void 0,br}function at(k,R,G,we,ct,br){return k.modifiers!==R||k.name!==G||k.questionToken!==(we!==void 0&&Tx(we)?we:void 0)||k.exclamationToken!==(we!==void 0&&sM(we)?we:void 0)||k.type!==ct||k.initializer!==br?Jn(Gi(R,G,we,ct,br),k):k}function It(k,R,G,we,ct,br){let Qn=H(173);return Qn.modifiers=$o(k),Qn.name=Iu(R),Qn.questionToken=G,Qn.typeParameters=$o(we),Qn.parameters=$o(ct),Qn.type=br,Qn.transformFlags=1,Qn.jsDoc=void 0,Qn.locals=void 0,Qn.nextContainer=void 0,Qn.typeArguments=void 0,Qn}function Cr(k,R,G,we,ct,br,Qn){return k.modifiers!==R||k.name!==G||k.questionToken!==we||k.typeParameters!==ct||k.parameters!==br||k.type!==Qn?X(It(R,G,we,ct,br,Qn),k):k}function wn(k,R,G,we,ct,br,Qn,Xa){let rc=H(174);if(rc.modifiers=$o(k),rc.asteriskToken=R,rc.name=Iu(G),rc.questionToken=we,rc.exclamationToken=void 0,rc.typeParameters=$o(ct),rc.parameters=W(br),rc.type=Qn,rc.body=Xa,!rc.body)rc.transformFlags=1;else{let ch=Ih(rc.modifiers)&1024,r0=!!rc.asteriskToken,Qy=ch&&r0;rc.transformFlags=Bo(rc.modifiers)|Yn(rc.asteriskToken)|Sx(rc.name)|Yn(rc.questionToken)|Bo(rc.typeParameters)|Bo(rc.parameters)|Yn(rc.type)|Yn(rc.body)&-67108865|(Qy?128:ch?256:r0?2048:0)|(rc.questionToken||rc.typeParameters||rc.type?1:0)|1024}return rc.typeArguments=void 0,rc.jsDoc=void 0,rc.locals=void 0,rc.nextContainer=void 0,rc.flowNode=void 0,rc.endFlowNode=void 0,rc.returnFlowNode=void 0,rc}function Di(k,R,G,we,ct,br,Qn,Xa,rc){return k.modifiers!==R||k.asteriskToken!==G||k.name!==we||k.questionToken!==ct||k.typeParameters!==br||k.parameters!==Qn||k.type!==Xa||k.body!==rc?Pi(wn(R,G,we,ct,br,Qn,Xa,rc),k):k}function Pi(k,R){return k!==R&&(k.exclamationToken=R.exclamationToken),Jn(k,R)}function da(k){let R=H(175);return R.body=k,R.transformFlags=Yn(k)|16777216,R.modifiers=void 0,R.jsDoc=void 0,R.locals=void 0,R.nextContainer=void 0,R.endFlowNode=void 0,R.returnFlowNode=void 0,R}function ks(k,R){return k.body!==R?no(da(R),k):k}function no(k,R){return k!==R&&(k.modifiers=R.modifiers),Jn(k,R)}function Vr(k,R,G){let we=H(176);return we.modifiers=$o(k),we.parameters=W(R),we.body=G,we.body?we.transformFlags=Bo(we.modifiers)|Bo(we.parameters)|Yn(we.body)&-67108865|1024:we.transformFlags=1,we.typeParameters=void 0,we.type=void 0,we.typeArguments=void 0,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.endFlowNode=void 0,we.returnFlowNode=void 0,we}function _s(k,R,G,we){return k.modifiers!==R||k.parameters!==G||k.body!==we?ft(Vr(R,G,we),k):k}function ft(k,R){return k!==R&&(k.typeParameters=R.typeParameters,k.type=R.type),X(k,R)}function Qt(k,R,G,we,ct){let br=H(177);return br.modifiers=$o(k),br.name=Iu(R),br.parameters=W(G),br.type=we,br.body=ct,br.body?br.transformFlags=Bo(br.modifiers)|Sx(br.name)|Bo(br.parameters)|Yn(br.type)|Yn(br.body)&-67108865|(br.type?1:0):br.transformFlags=1,br.typeArguments=void 0,br.typeParameters=void 0,br.jsDoc=void 0,br.locals=void 0,br.nextContainer=void 0,br.flowNode=void 0,br.endFlowNode=void 0,br.returnFlowNode=void 0,br}function he(k,R,G,we,ct,br){return k.modifiers!==R||k.name!==G||k.parameters!==we||k.type!==ct||k.body!==br?wt(Qt(R,G,we,ct,br),k):k}function wt(k,R){return k!==R&&(k.typeParameters=R.typeParameters),X(k,R)}function oe(k,R,G,we){let ct=H(178);return ct.modifiers=$o(k),ct.name=Iu(R),ct.parameters=W(G),ct.body=we,ct.body?ct.transformFlags=Bo(ct.modifiers)|Sx(ct.name)|Bo(ct.parameters)|Yn(ct.body)&-67108865|(ct.type?1:0):ct.transformFlags=1,ct.typeArguments=void 0,ct.typeParameters=void 0,ct.type=void 0,ct.jsDoc=void 0,ct.locals=void 0,ct.nextContainer=void 0,ct.flowNode=void 0,ct.endFlowNode=void 0,ct.returnFlowNode=void 0,ct}function Ue(k,R,G,we,ct){return k.modifiers!==R||k.name!==G||k.parameters!==we||k.body!==ct?pt(oe(R,G,we,ct),k):k}function pt(k,R){return k!==R&&(k.typeParameters=R.typeParameters,k.type=R.type),X(k,R)}function vt(k,R,G){let we=H(179);return we.typeParameters=$o(k),we.parameters=$o(R),we.type=G,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function $t(k,R,G,we){return k.typeParameters!==R||k.parameters!==G||k.type!==we?X(vt(R,G,we),k):k}function Qe(k,R,G){let we=H(180);return we.typeParameters=$o(k),we.parameters=$o(R),we.type=G,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function Lt(k,R,G,we){return k.typeParameters!==R||k.parameters!==G||k.type!==we?X(Qe(R,G,we),k):k}function Rt(k,R,G){let we=H(181);return we.modifiers=$o(k),we.parameters=$o(R),we.type=G,we.transformFlags=1,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function Xt(k,R,G,we){return k.parameters!==G||k.type!==we||k.modifiers!==R?X(Rt(R,G,we),k):k}function ut(k,R){let G=z(204);return G.type=k,G.literal=R,G.transformFlags=1,G}function lr(k,R,G){return k.type!==R||k.literal!==G?Jn(ut(R,G),k):k}function In(k){return xe(k)}function We(k,R,G){let we=z(182);return we.assertsModifier=k,we.parameterName=Iu(R),we.type=G,we.transformFlags=1,we}function qt(k,R,G,we){return k.assertsModifier!==R||k.parameterName!==G||k.type!==we?Jn(We(R,G,we),k):k}function ke(k,R){let G=z(183);return G.typeName=Iu(k),G.typeArguments=R&&i().parenthesizeTypeArguments(W(R)),G.transformFlags=1,G}function $(k,R,G){return k.typeName!==R||k.typeArguments!==G?Jn(ke(R,G),k):k}function Ke(k,R,G){let we=H(184);return we.typeParameters=$o(k),we.parameters=$o(R),we.type=G,we.transformFlags=1,we.modifiers=void 0,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.typeArguments=void 0,we}function re(k,R,G,we){return k.typeParameters!==R||k.parameters!==G||k.type!==we?Ft(Ke(R,G,we),k):k}function Ft(k,R){return k!==R&&(k.modifiers=R.modifiers),X(k,R)}function rr(...k){return k.length===4?Le(...k):k.length===3?kt(...k):I.fail("Incorrect number of arguments specified.")}function Le(k,R,G,we){let ct=H(185);return ct.modifiers=$o(k),ct.typeParameters=$o(R),ct.parameters=$o(G),ct.type=we,ct.transformFlags=1,ct.jsDoc=void 0,ct.locals=void 0,ct.nextContainer=void 0,ct.typeArguments=void 0,ct}function kt(k,R,G){return Le(void 0,k,R,G)}function dr(...k){return k.length===5?kn(...k):k.length===4?Kr(...k):I.fail("Incorrect number of arguments specified.")}function kn(k,R,G,we,ct){return k.modifiers!==R||k.typeParameters!==G||k.parameters!==we||k.type!==ct?X(rr(R,G,we,ct),k):k}function Kr(k,R,G,we){return kn(k,k.modifiers,R,G,we)}function yn(k,R){let G=z(186);return G.exprName=k,G.typeArguments=R&&i().parenthesizeTypeArguments(R),G.transformFlags=1,G}function yt(k,R,G){return k.exprName!==R||k.typeArguments!==G?Jn(yn(R,G),k):k}function Bt(k){let R=H(187);return R.members=W(k),R.transformFlags=1,R}function cr(k,R){return k.members!==R?Jn(Bt(R),k):k}function er(k){let R=z(188);return R.elementType=i().parenthesizeNonArrayTypeOfPostfixType(k),R.transformFlags=1,R}function zr(k,R){return k.elementType!==R?Jn(er(R),k):k}function Pr(k){let R=z(189);return R.elements=W(i().parenthesizeElementTypesOfTupleType(k)),R.transformFlags=1,R}function or(k,R){return k.elements!==R?Jn(Pr(R),k):k}function Mr(k,R,G,we){let ct=H(202);return ct.dotDotDotToken=k,ct.name=R,ct.questionToken=G,ct.type=we,ct.transformFlags=1,ct.jsDoc=void 0,ct}function Wr(k,R,G,we,ct){return k.dotDotDotToken!==R||k.name!==G||k.questionToken!==we||k.type!==ct?Jn(Mr(R,G,we,ct),k):k}function $r(k){let R=z(190);return R.type=i().parenthesizeTypeOfOptionalType(k),R.transformFlags=1,R}function Sr(k,R){return k.type!==R?Jn($r(R),k):k}function ji(k){let R=z(191);return R.type=k,R.transformFlags=1,R}function Is(k,R){return k.type!==R?Jn(ji(R),k):k}function Xs(k,R,G){let we=z(k);return we.types=L.createNodeArray(G(R)),we.transformFlags=1,we}function Ps(k,R,G){return k.types!==R?Jn(Xs(k.kind,R,G),k):k}function Vl(k){return Xs(192,k,i().parenthesizeConstituentTypesOfUnionType)}function pl(k,R){return Ps(k,R,i().parenthesizeConstituentTypesOfUnionType)}function Bl(k){return Xs(193,k,i().parenthesizeConstituentTypesOfIntersectionType)}function la(k,R){return Ps(k,R,i().parenthesizeConstituentTypesOfIntersectionType)}function us(k,R,G,we){let ct=z(194);return ct.checkType=i().parenthesizeCheckTypeOfConditionalType(k),ct.extendsType=i().parenthesizeExtendsTypeOfConditionalType(R),ct.trueType=G,ct.falseType=we,ct.transformFlags=1,ct.locals=void 0,ct.nextContainer=void 0,ct}function lu(k,R,G,we,ct){return k.checkType!==R||k.extendsType!==G||k.trueType!==we||k.falseType!==ct?Jn(us(R,G,we,ct),k):k}function Kc(k){let R=z(195);return R.typeParameter=k,R.transformFlags=1,R}function Ro(k,R){return k.typeParameter!==R?Jn(Kc(R),k):k}function el(k,R){let G=z(203);return G.head=k,G.templateSpans=W(R),G.transformFlags=1,G}function Q_(k,R,G){return k.head!==R||k.templateSpans!==G?Jn(el(R,G),k):k}function as(k,R,G,we,ct=!1){let br=z(205);return br.argument=k,br.attributes=R,br.assertions&&br.assertions.assertClause&&br.attributes&&(br.assertions.assertClause=br.attributes),br.qualifier=G,br.typeArguments=we&&i().parenthesizeTypeArguments(we),br.isTypeOf=ct,br.transformFlags=1,br}function Gs(k,R,G,we,ct,br=k.isTypeOf){return k.argument!==R||k.attributes!==G||k.qualifier!==we||k.typeArguments!==ct||k.isTypeOf!==br?Jn(as(R,G,we,ct,br),k):k}function qo(k){let R=z(196);return R.type=k,R.transformFlags=1,R}function jo(k,R){return k.type!==R?Jn(qo(R),k):k}function fr(){let k=z(197);return k.transformFlags=1,k}function hc(k,R){let G=z(198);return G.operator=k,G.type=k===148?i().parenthesizeOperandOfReadonlyTypeOperator(R):i().parenthesizeOperandOfTypeOperator(R),G.transformFlags=1,G}function uu(k,R){return k.type!==R?Jn(hc(k.operator,R),k):k}function Cl(k,R){let G=z(199);return G.objectType=i().parenthesizeNonArrayTypeOfPostfixType(k),G.indexType=R,G.transformFlags=1,G}function hp(k,R,G){return k.objectType!==R||k.indexType!==G?Jn(Cl(R,G),k):k}function tl(k,R,G,we,ct,br){let Qn=H(200);return Qn.readonlyToken=k,Qn.typeParameter=R,Qn.nameType=G,Qn.questionToken=we,Qn.type=ct,Qn.members=br&&W(br),Qn.transformFlags=1,Qn.locals=void 0,Qn.nextContainer=void 0,Qn}function Pl(k,R,G,we,ct,br,Qn){return k.readonlyToken!==R||k.typeParameter!==G||k.nameType!==we||k.questionToken!==ct||k.type!==br||k.members!==Qn?Jn(tl(R,G,we,ct,br,Qn),k):k}function B(k){let R=z(201);return R.literal=k,R.transformFlags=1,R}function Xe(k,R){return k.literal!==R?Jn(B(R),k):k}function Et(k){let R=z(206);return R.elements=W(k),R.transformFlags|=Bo(R.elements)|1024|524288,R.transformFlags&32768&&(R.transformFlags|=65664),R}function ur(k,R){return k.elements!==R?Jn(Et(R),k):k}function cn(k){let R=z(207);return R.elements=W(k),R.transformFlags|=Bo(R.elements)|1024|524288,R}function wi(k,R){return k.elements!==R?Jn(cn(R),k):k}function Bn(k,R,G,we){let ct=H(208);return ct.dotDotDotToken=k,ct.propertyName=Iu(R),ct.name=Iu(G),ct.initializer=AD(we),ct.transformFlags|=Yn(ct.dotDotDotToken)|Sx(ct.propertyName)|Sx(ct.name)|Yn(ct.initializer)|(ct.dotDotDotToken?32768:0)|1024,ct.flowNode=void 0,ct}function an(k,R,G,we,ct){return k.propertyName!==G||k.dotDotDotToken!==R||k.name!==we||k.initializer!==ct?Jn(Bn(R,G,we,ct),k):k}function ua(k,R){let G=z(209),we=k&&dc(k),ct=W(k,we&&Ju(we)?!0:void 0);return G.elements=i().parenthesizeExpressionsOfCommaDelimitedList(ct),G.multiLine=R,G.transformFlags|=Bo(G.elements),G}function ma(k,R){return k.elements!==R?Jn(ua(R,k.multiLine),k):k}function sc(k,R){let G=H(210);return G.properties=W(k),G.multiLine=R,G.transformFlags|=Bo(G.properties),G.jsDoc=void 0,G}function To(k,R){return k.properties!==R?Jn(sc(R,k.multiLine),k):k}function Wc(k,R,G){let we=H(211);return we.expression=k,we.questionDotToken=R,we.name=G,we.transformFlags=Yn(we.expression)|Yn(we.questionDotToken)|(Ye(we.name)?eM(we.name):Yn(we.name)|536870912),we.jsDoc=void 0,we.flowNode=void 0,we}function El(k,R){let G=Wc(i().parenthesizeLeftSideOfAccess(k,!1),void 0,Iu(R));return K4(k)&&(G.transformFlags|=384),G}function Hl(k,R,G){return pq(k)?Gl(k,R,k.questionDotToken,Js(G,Ye)):k.expression!==R||k.name!==G?Jn(El(R,G),k):k}function Fc(k,R,G){let we=Wc(i().parenthesizeLeftSideOfAccess(k,!0),R,Iu(G));return we.flags|=64,we.transformFlags|=32,we}function Gl(k,R,G,we){return I.assert(!!(k.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),k.expression!==R||k.questionDotToken!==G||k.name!==we?Jn(Fc(R,G,we),k):k}function X_(k,R,G){let we=H(212);return we.expression=k,we.questionDotToken=R,we.argumentExpression=G,we.transformFlags|=Yn(we.expression)|Yn(we.questionDotToken)|Yn(we.argumentExpression),we.jsDoc=void 0,we.flowNode=void 0,we}function Dp(k,R){let G=X_(i().parenthesizeLeftSideOfAccess(k,!1),void 0,Kx(R));return K4(k)&&(G.transformFlags|=384),G}function Ld(k,R,G){return RK(k)?$e(k,R,k.questionDotToken,G):k.expression!==R||k.argumentExpression!==G?Jn(Dp(R,G),k):k}function Bf(k,R,G){let we=X_(i().parenthesizeLeftSideOfAccess(k,!0),R,Kx(G));return we.flags|=64,we.transformFlags|=32,we}function $e(k,R,G,we){return I.assert(!!(k.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),k.expression!==R||k.questionDotToken!==G||k.argumentExpression!==we?Jn(Bf(R,G,we),k):k}function nr(k,R,G,we){let ct=H(213);return ct.expression=k,ct.questionDotToken=R,ct.typeArguments=G,ct.arguments=we,ct.transformFlags|=Yn(ct.expression)|Yn(ct.questionDotToken)|Bo(ct.typeArguments)|Bo(ct.arguments),ct.typeArguments&&(ct.transformFlags|=1),g_(ct.expression)&&(ct.transformFlags|=16384),ct}function Nn(k,R,G){let we=nr(i().parenthesizeLeftSideOfAccess(k,!1),void 0,$o(R),i().parenthesizeExpressionsOfCommaDelimitedList(W(G)));return Q4(we.expression)&&(we.transformFlags|=8388608),we}function za(k,R,G,we){return gk(k)?Io(k,R,k.questionDotToken,G,we):k.expression!==R||k.typeArguments!==G||k.arguments!==we?Jn(Nn(R,G,we),k):k}function Fs(k,R,G,we){let ct=nr(i().parenthesizeLeftSideOfAccess(k,!0),R,$o(G),i().parenthesizeExpressionsOfCommaDelimitedList(W(we)));return ct.flags|=64,ct.transformFlags|=32,ct}function Io(k,R,G,we,ct){return I.assert(!!(k.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),k.expression!==R||k.questionDotToken!==G||k.typeArguments!==we||k.arguments!==ct?Jn(Fs(R,G,we,ct),k):k}function Jc(k,R,G){let we=H(214);return we.expression=i().parenthesizeExpressionOfNew(k),we.typeArguments=$o(R),we.arguments=G?i().parenthesizeExpressionsOfCommaDelimitedList(G):void 0,we.transformFlags|=Yn(we.expression)|Bo(we.typeArguments)|Bo(we.arguments)|32,we.typeArguments&&(we.transformFlags|=1),we}function Kl(k,R,G,we){return k.expression!==R||k.typeArguments!==G||k.arguments!==we?Jn(Jc(R,G,we),k):k}function hl(k,R,G){let we=z(215);return we.tag=i().parenthesizeLeftSideOfAccess(k,!1),we.typeArguments=$o(R),we.template=G,we.transformFlags|=Yn(we.tag)|Bo(we.typeArguments)|Yn(we.template)|1024,we.typeArguments&&(we.transformFlags|=1),$Q(we.template)&&(we.transformFlags|=128),we}function yl(k,R,G,we){return k.tag!==R||k.typeArguments!==G||k.template!==we?Jn(hl(R,G,we),k):k}function ru(k,R){let G=z(216);return G.expression=i().parenthesizeOperandOfPrefixUnary(R),G.type=k,G.transformFlags|=Yn(G.expression)|Yn(G.type)|1,G}function Nu(k,R,G){return k.type!==R||k.expression!==G?Jn(ru(R,G),k):k}function Au(k){let R=z(217);return R.expression=k,R.transformFlags=Yn(R.expression),R.jsDoc=void 0,R}function Y_(k,R){return k.expression!==R?Jn(Au(R),k):k}function qf(k,R,G,we,ct,br,Qn){let Xa=H(218);Xa.modifiers=$o(k),Xa.asteriskToken=R,Xa.name=Iu(G),Xa.typeParameters=$o(we),Xa.parameters=W(ct),Xa.type=br,Xa.body=Qn;let rc=Ih(Xa.modifiers)&1024,ch=!!Xa.asteriskToken,r0=rc&&ch;return Xa.transformFlags=Bo(Xa.modifiers)|Yn(Xa.asteriskToken)|Sx(Xa.name)|Bo(Xa.typeParameters)|Bo(Xa.parameters)|Yn(Xa.type)|Yn(Xa.body)&-67108865|(r0?128:rc?256:ch?2048:0)|(Xa.typeParameters||Xa.type?1:0)|4194304,Xa.typeArguments=void 0,Xa.jsDoc=void 0,Xa.locals=void 0,Xa.nextContainer=void 0,Xa.flowNode=void 0,Xa.endFlowNode=void 0,Xa.returnFlowNode=void 0,Xa}function Tg(k,R,G,we,ct,br,Qn,Xa){return k.name!==we||k.modifiers!==R||k.asteriskToken!==G||k.typeParameters!==ct||k.parameters!==br||k.type!==Qn||k.body!==Xa?X(qf(R,G,we,ct,br,Qn,Xa),k):k}function gd(k,R,G,we,ct,br){let Qn=H(219);Qn.modifiers=$o(k),Qn.typeParameters=$o(R),Qn.parameters=W(G),Qn.type=we,Qn.equalsGreaterThanToken=ct??xe(39),Qn.body=i().parenthesizeConciseBodyOfArrowFunction(br);let Xa=Ih(Qn.modifiers)&1024;return Qn.transformFlags=Bo(Qn.modifiers)|Bo(Qn.typeParameters)|Bo(Qn.parameters)|Yn(Qn.type)|Yn(Qn.equalsGreaterThanToken)|Yn(Qn.body)&-67108865|(Qn.typeParameters||Qn.type?1:0)|(Xa?16640:0)|1024,Qn.typeArguments=void 0,Qn.jsDoc=void 0,Qn.locals=void 0,Qn.nextContainer=void 0,Qn.flowNode=void 0,Qn.endFlowNode=void 0,Qn.returnFlowNode=void 0,Qn}function Qh(k,R,G,we,ct,br,Qn){return k.modifiers!==R||k.typeParameters!==G||k.parameters!==we||k.type!==ct||k.equalsGreaterThanToken!==br||k.body!==Qn?X(gd(R,G,we,ct,br,Qn),k):k}function Jv(k){let R=z(220);return R.expression=i().parenthesizeOperandOfPrefixUnary(k),R.transformFlags|=Yn(R.expression),R}function Bd(k,R){return k.expression!==R?Jn(Jv(R),k):k}function n_(k){let R=z(221);return R.expression=i().parenthesizeOperandOfPrefixUnary(k),R.transformFlags|=Yn(R.expression),R}function xf(k,R){return k.expression!==R?Jn(n_(R),k):k}function Xh(k){let R=z(222);return R.expression=i().parenthesizeOperandOfPrefixUnary(k),R.transformFlags|=Yn(R.expression),R}function hd(k,R){return k.expression!==R?Jn(Xh(R),k):k}function zv(k){let R=z(223);return R.expression=i().parenthesizeOperandOfPrefixUnary(k),R.transformFlags|=Yn(R.expression)|256|128|2097152,R}function _e(k,R){return k.expression!==R?Jn(zv(R),k):k}function xt(k,R){let G=z(224);return G.operator=k,G.operand=i().parenthesizeOperandOfPrefixUnary(R),G.transformFlags|=Yn(G.operand),(k===46||k===47)&&Ye(G.operand)&&!Xc(G.operand)&&!R0(G.operand)&&(G.transformFlags|=268435456),G}function gr(k,R){return k.operand!==R?Jn(xt(k.operator,R),k):k}function yr(k,R){let G=z(225);return G.operator=R,G.operand=i().parenthesizeOperandOfPostfixUnary(k),G.transformFlags|=Yn(G.operand),Ye(G.operand)&&!Xc(G.operand)&&!R0(G.operand)&&(G.transformFlags|=268435456),G}function Qr(k,R){return k.operand!==R?Jn(yr(R,k.operator),k):k}function Tn(k,R,G){let we=H(226),ct=$A(R),br=ct.kind;return we.left=i().parenthesizeLeftSideOfBinary(br,k),we.operatorToken=ct,we.right=i().parenthesizeRightSideOfBinary(br,we.left,G),we.transformFlags|=Yn(we.left)|Yn(we.operatorToken)|Yn(we.right),br===61?we.transformFlags|=32:br===64?So(we.left)?we.transformFlags|=5248|vi(we.left):kp(we.left)&&(we.transformFlags|=5120|vi(we.left)):br===43||br===68?we.transformFlags|=512:x4(br)&&(we.transformFlags|=16),br===103&&Ca(we.left)&&(we.transformFlags|=536870912),we.jsDoc=void 0,we}function vi(k){return xM(k)?65536:0}function Ki(k,R,G,we){return k.left!==R||k.operatorToken!==G||k.right!==we?Jn(Tn(R,G,we),k):k}function Na(k,R,G,we,ct){let br=z(227);return br.condition=i().parenthesizeConditionOfConditionalExpression(k),br.questionToken=R??xe(58),br.whenTrue=i().parenthesizeBranchOfConditionalExpression(G),br.colonToken=we??xe(59),br.whenFalse=i().parenthesizeBranchOfConditionalExpression(ct),br.transformFlags|=Yn(br.condition)|Yn(br.questionToken)|Yn(br.whenTrue)|Yn(br.colonToken)|Yn(br.whenFalse),br.flowNodeWhenFalse=void 0,br.flowNodeWhenTrue=void 0,br}function U(k,R,G,we,ct,br){return k.condition!==R||k.questionToken!==G||k.whenTrue!==we||k.colonToken!==ct||k.whenFalse!==br?Jn(Na(R,G,we,ct,br),k):k}function rt(k,R){let G=z(228);return G.head=k,G.templateSpans=W(R),G.transformFlags|=Yn(G.head)|Bo(G.templateSpans)|1024,G}function Yt(k,R,G){return k.head!==R||k.templateSpans!==G?Jn(rt(R,G),k):k}function Xr(k,R,G,we=0){I.assert(!(we&-7177),"Unsupported template flags.");let ct;if(G!==void 0&&G!==R&&(ct=p6t(k,G),typeof ct=="object"))return I.fail("Invalid raw text");if(R===void 0){if(ct===void 0)return I.fail("Arguments 'text' and 'rawText' may not both be undefined.");R=ct}else ct!==void 0&&I.assert(R===ct,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return R}function Ya(k){let R=1024;return k&&(R|=128),R}function aa(k,R,G,we){let ct=Tt(k);return ct.text=R,ct.rawText=G,ct.templateFlags=we&7176,ct.transformFlags=Ya(ct.templateFlags),ct}function qa(k,R,G,we){let ct=H(k);return ct.text=R,ct.rawText=G,ct.templateFlags=we&7176,ct.transformFlags=Ya(ct.templateFlags),ct}function ss(k,R,G,we){return k===15?qa(k,R,G,we):aa(k,R,G,we)}function Uc(k,R,G){return k=Xr(16,k,R,G),ss(16,k,R,G)}function lo(k,R,G){return k=Xr(16,k,R,G),ss(17,k,R,G)}function Tu(k,R,G){return k=Xr(16,k,R,G),ss(18,k,R,G)}function Z_(k,R,G){return k=Xr(16,k,R,G),qa(15,k,R,G)}function vm(k,R){I.assert(!k||!!R,"A `YieldExpression` with an asteriskToken must have an expression.");let G=z(229);return G.expression=R&&i().parenthesizeExpressionForDisallowedComma(R),G.asteriskToken=k,G.transformFlags|=Yn(G.expression)|Yn(G.asteriskToken)|1024|128|1048576,G}function Zg(k,R,G){return k.expression!==G||k.asteriskToken!==R?Jn(vm(R,G),k):k}function U0(k){let R=z(230);return R.expression=i().parenthesizeExpressionForDisallowedComma(k),R.transformFlags|=Yn(R.expression)|1024|32768,R}function Wv(k,R){return k.expression!==R?Jn(U0(R),k):k}function x_(k,R,G,we,ct){let br=H(231);return br.modifiers=$o(k),br.name=Iu(R),br.typeParameters=$o(G),br.heritageClauses=$o(we),br.members=W(ct),br.transformFlags|=Bo(br.modifiers)|Sx(br.name)|Bo(br.typeParameters)|Bo(br.heritageClauses)|Bo(br.members)|(br.typeParameters?1:0)|1024,br.jsDoc=void 0,br}function eh(k,R,G,we,ct,br){return k.modifiers!==R||k.name!==G||k.typeParameters!==we||k.heritageClauses!==ct||k.members!==br?Jn(x_(R,G,we,ct,br),k):k}function Yh(){return z(232)}function Km(k,R){let G=z(233);return G.expression=i().parenthesizeLeftSideOfAccess(k,!1),G.typeArguments=R&&i().parenthesizeTypeArguments(R),G.transformFlags|=Yn(G.expression)|Bo(G.typeArguments)|1024,G}function jx(k,R,G){return k.expression!==R||k.typeArguments!==G?Jn(Km(R,G),k):k}function yd(k,R){let G=z(234);return G.expression=k,G.type=R,G.transformFlags|=Yn(G.expression)|Yn(G.type)|1,G}function H1(k,R,G){return k.expression!==R||k.type!==G?Jn(yd(R,G),k):k}function Lx(k){let R=z(235);return R.expression=i().parenthesizeLeftSideOfAccess(k,!1),R.transformFlags|=Yn(R.expression)|1,R}function G1(k,R){return _q(k)?Er(k,R):k.expression!==R?Jn(Lx(R),k):k}function tt(k,R){let G=z(238);return G.expression=k,G.type=R,G.transformFlags|=Yn(G.expression)|Yn(G.type)|1,G}function ht(k,R,G){return k.expression!==R||k.type!==G?Jn(tt(R,G),k):k}function tr(k){let R=z(235);return R.flags|=64,R.expression=i().parenthesizeLeftSideOfAccess(k,!0),R.transformFlags|=Yn(R.expression)|1,R}function Er(k,R){return I.assert(!!(k.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),k.expression!==R?Jn(tr(R),k):k}function hn(k,R){let G=z(236);switch(G.keywordToken=k,G.name=R,G.transformFlags|=Yn(G.name),k){case 105:G.transformFlags|=1024;break;case 102:G.transformFlags|=32;break;default:return I.assertNever(k)}return G.flowNode=void 0,G}function Gn(k,R){return k.name!==R?Jn(hn(k.keywordToken,R),k):k}function ln(k,R){let G=z(239);return G.expression=k,G.literal=R,G.transformFlags|=Yn(G.expression)|Yn(G.literal)|1024,G}function Hn(k,R,G){return k.expression!==R||k.literal!==G?Jn(ln(R,G),k):k}function _a(){let k=z(240);return k.transformFlags|=1024,k}function rs(k,R){let G=z(241);return G.statements=W(k),G.multiLine=R,G.transformFlags|=Bo(G.statements),G.jsDoc=void 0,G.locals=void 0,G.nextContainer=void 0,G}function Ii(k,R){return k.statements!==R?Jn(rs(R,k.multiLine),k):k}function Ia(k,R){let G=z(243);return G.modifiers=$o(k),G.declarationList=cs(R)?lT(R):R,G.transformFlags|=Bo(G.modifiers)|Yn(G.declarationList),Ih(G.modifiers)&128&&(G.transformFlags=1),G.jsDoc=void 0,G.flowNode=void 0,G}function Es(k,R,G){return k.modifiers!==R||k.declarationList!==G?Jn(Ia(R,G),k):k}function tp(){let k=z(242);return k.jsDoc=void 0,k}function qd(k){let R=z(244);return R.expression=i().parenthesizeExpressionOfExpressionStatement(k),R.transformFlags|=Yn(R.expression),R.jsDoc=void 0,R.flowNode=void 0,R}function Jd(k,R){return k.expression!==R?Jn(qd(R),k):k}function ed(k,R,G){let we=z(245);return we.expression=k,we.thenStatement=s_(R),we.elseStatement=s_(G),we.transformFlags|=Yn(we.expression)|Yn(we.thenStatement)|Yn(we.elseStatement),we.jsDoc=void 0,we.flowNode=void 0,we}function Ly(k,R,G,we){return k.expression!==R||k.thenStatement!==G||k.elseStatement!==we?Jn(ed(R,G,we),k):k}function wg(k,R){let G=z(246);return G.statement=s_(k),G.expression=R,G.transformFlags|=Yn(G.statement)|Yn(G.expression),G.jsDoc=void 0,G.flowNode=void 0,G}function By(k,R,G){return k.statement!==R||k.expression!==G?Jn(wg(R,G),k):k}function K1(k,R){let G=z(247);return G.expression=k,G.statement=s_(R),G.transformFlags|=Yn(G.expression)|Yn(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function qy(k,R,G){return k.expression!==R||k.statement!==G?Jn(K1(R,G),k):k}function Q1(k,R,G,we){let ct=z(248);return ct.initializer=k,ct.condition=R,ct.incrementor=G,ct.statement=s_(we),ct.transformFlags|=Yn(ct.initializer)|Yn(ct.condition)|Yn(ct.incrementor)|Yn(ct.statement),ct.jsDoc=void 0,ct.locals=void 0,ct.nextContainer=void 0,ct.flowNode=void 0,ct}function oT(k,R,G,we,ct){return k.initializer!==R||k.condition!==G||k.incrementor!==we||k.statement!==ct?Jn(Q1(R,G,we,ct),k):k}function ow(k,R,G){let we=z(249);return we.initializer=k,we.expression=R,we.statement=s_(G),we.transformFlags|=Yn(we.initializer)|Yn(we.expression)|Yn(we.statement),we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we.flowNode=void 0,we}function u8(k,R,G,we){return k.initializer!==R||k.expression!==G||k.statement!==we?Jn(ow(R,G,we),k):k}function aD(k,R,G,we){let ct=z(250);return ct.awaitModifier=k,ct.initializer=R,ct.expression=i().parenthesizeExpressionForDisallowedComma(G),ct.statement=s_(we),ct.transformFlags|=Yn(ct.awaitModifier)|Yn(ct.initializer)|Yn(ct.expression)|Yn(ct.statement)|1024,k&&(ct.transformFlags|=128),ct.jsDoc=void 0,ct.locals=void 0,ct.nextContainer=void 0,ct.flowNode=void 0,ct}function AA(k,R,G,we,ct){return k.awaitModifier!==R||k.initializer!==G||k.expression!==we||k.statement!==ct?Jn(aD(R,G,we,ct),k):k}function cw(k){let R=z(251);return R.label=Iu(k),R.transformFlags|=Yn(R.label)|4194304,R.jsDoc=void 0,R.flowNode=void 0,R}function IA(k,R){return k.label!==R?Jn(cw(R),k):k}function _C(k){let R=z(252);return R.label=Iu(k),R.transformFlags|=Yn(R.label)|4194304,R.jsDoc=void 0,R.flowNode=void 0,R}function sD(k,R){return k.label!==R?Jn(_C(R),k):k}function lw(k){let R=z(253);return R.expression=k,R.transformFlags|=Yn(R.expression)|128|4194304,R.jsDoc=void 0,R.flowNode=void 0,R}function FA(k,R){return k.expression!==R?Jn(lw(R),k):k}function dC(k,R){let G=z(254);return G.expression=k,G.statement=s_(R),G.transformFlags|=Yn(G.expression)|Yn(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function oD(k,R,G){return k.expression!==R||k.statement!==G?Jn(dC(R,G),k):k}function mC(k,R){let G=z(255);return G.expression=i().parenthesizeExpressionForDisallowedComma(k),G.caseBlock=R,G.transformFlags|=Yn(G.expression)|Yn(G.caseBlock),G.jsDoc=void 0,G.flowNode=void 0,G.possiblyExhaustive=!1,G}function Zh(k,R,G){return k.expression!==R||k.caseBlock!==G?Jn(mC(R,G),k):k}function X1(k,R){let G=z(256);return G.label=Iu(k),G.statement=s_(R),G.transformFlags|=Yn(G.label)|Yn(G.statement),G.jsDoc=void 0,G.flowNode=void 0,G}function $0(k,R,G){return k.label!==R||k.statement!==G?Jn(X1(R,G),k):k}function Jy(k){let R=z(257);return R.expression=k,R.transformFlags|=Yn(R.expression),R.jsDoc=void 0,R.flowNode=void 0,R}function cT(k,R){return k.expression!==R?Jn(Jy(R),k):k}function Bx(k,R,G){let we=z(258);return we.tryBlock=k,we.catchClause=R,we.finallyBlock=G,we.transformFlags|=Yn(we.tryBlock)|Yn(we.catchClause)|Yn(we.finallyBlock),we.jsDoc=void 0,we.flowNode=void 0,we}function uw(k,R,G,we){return k.tryBlock!==R||k.catchClause!==G||k.finallyBlock!==we?Jn(Bx(R,G,we),k):k}function pw(){let k=z(259);return k.jsDoc=void 0,k.flowNode=void 0,k}function Y1(k,R,G,we){let ct=H(260);return ct.name=Iu(k),ct.exclamationToken=R,ct.type=G,ct.initializer=AD(we),ct.transformFlags|=Sx(ct.name)|Yn(ct.initializer)|(ct.exclamationToken??ct.type?1:0),ct.jsDoc=void 0,ct}function Jo(k,R,G,we,ct){return k.name!==R||k.type!==we||k.exclamationToken!==G||k.initializer!==ct?Jn(Y1(R,G,we,ct),k):k}function lT(k,R=0){let G=z(261);return G.flags|=R&7,G.declarations=W(k),G.transformFlags|=Bo(G.declarations)|4194304,R&7&&(G.transformFlags|=263168),R&4&&(G.transformFlags|=4),G}function p8(k,R){return k.declarations!==R?Jn(lT(R,k.flags),k):k}function qx(k,R,G,we,ct,br,Qn){let Xa=H(262);if(Xa.modifiers=$o(k),Xa.asteriskToken=R,Xa.name=Iu(G),Xa.typeParameters=$o(we),Xa.parameters=W(ct),Xa.type=br,Xa.body=Qn,!Xa.body||Ih(Xa.modifiers)&128)Xa.transformFlags=1;else{let rc=Ih(Xa.modifiers)&1024,ch=!!Xa.asteriskToken,r0=rc&&ch;Xa.transformFlags=Bo(Xa.modifiers)|Yn(Xa.asteriskToken)|Sx(Xa.name)|Bo(Xa.typeParameters)|Bo(Xa.parameters)|Yn(Xa.type)|Yn(Xa.body)&-67108865|(r0?128:rc?256:ch?2048:0)|(Xa.typeParameters||Xa.type?1:0)|4194304}return Xa.typeArguments=void 0,Xa.jsDoc=void 0,Xa.locals=void 0,Xa.nextContainer=void 0,Xa.endFlowNode=void 0,Xa.returnFlowNode=void 0,Xa}function Uv(k,R,G,we,ct,br,Qn,Xa){return k.modifiers!==R||k.asteriskToken!==G||k.name!==we||k.typeParameters!==ct||k.parameters!==br||k.type!==Qn||k.body!==Xa?$v(qx(R,G,we,ct,br,Qn,Xa),k):k}function $v(k,R){return k!==R&&k.modifiers===R.modifiers&&(k.modifiers=R.modifiers),X(k,R)}function bm(k,R,G,we,ct){let br=H(263);return br.modifiers=$o(k),br.name=Iu(R),br.typeParameters=$o(G),br.heritageClauses=$o(we),br.members=W(ct),Ih(br.modifiers)&128?br.transformFlags=1:(br.transformFlags|=Bo(br.modifiers)|Sx(br.name)|Bo(br.typeParameters)|Bo(br.heritageClauses)|Bo(br.members)|(br.typeParameters?1:0)|1024,br.transformFlags&8192&&(br.transformFlags|=1)),br.jsDoc=void 0,br}function i_(k,R,G,we,ct,br){return k.modifiers!==R||k.name!==G||k.typeParameters!==we||k.heritageClauses!==ct||k.members!==br?Jn(bm(R,G,we,ct,br),k):k}function S_(k,R,G,we,ct){let br=H(264);return br.modifiers=$o(k),br.name=Iu(R),br.typeParameters=$o(G),br.heritageClauses=$o(we),br.members=W(ct),br.transformFlags=1,br.jsDoc=void 0,br}function td(k,R,G,we,ct,br){return k.modifiers!==R||k.name!==G||k.typeParameters!==we||k.heritageClauses!==ct||k.members!==br?Jn(S_(R,G,we,ct,br),k):k}function wu(k,R,G,we){let ct=H(265);return ct.modifiers=$o(k),ct.name=Iu(R),ct.typeParameters=$o(G),ct.type=we,ct.transformFlags=1,ct.jsDoc=void 0,ct.locals=void 0,ct.nextContainer=void 0,ct}function Z1(k,R,G,we,ct){return k.modifiers!==R||k.name!==G||k.typeParameters!==we||k.type!==ct?Jn(wu(R,G,we,ct),k):k}function gC(k,R,G){let we=H(266);return we.modifiers=$o(k),we.name=Iu(R),we.members=W(G),we.transformFlags|=Bo(we.modifiers)|Yn(we.name)|Bo(we.members)|1,we.transformFlags&=-67108865,we.jsDoc=void 0,we}function th(k,R,G,we){return k.modifiers!==R||k.name!==G||k.members!==we?Jn(gC(R,G,we),k):k}function Jx(k,R,G,we=0){let ct=H(267);return ct.modifiers=$o(k),ct.flags|=we&2088,ct.name=R,ct.body=G,Ih(ct.modifiers)&128?ct.transformFlags=1:ct.transformFlags|=Bo(ct.modifiers)|Yn(ct.name)|Yn(ct.body)|1,ct.transformFlags&=-67108865,ct.jsDoc=void 0,ct.locals=void 0,ct.nextContainer=void 0,ct}function yp(k,R,G,we){return k.modifiers!==R||k.name!==G||k.body!==we?Jn(Jx(R,G,we,k.flags),k):k}function Vv(k){let R=z(268);return R.statements=W(k),R.transformFlags|=Bo(R.statements),R.jsDoc=void 0,R}function T_(k,R){return k.statements!==R?Jn(Vv(R),k):k}function Hv(k){let R=z(269);return R.clauses=W(k),R.transformFlags|=Bo(R.clauses),R.locals=void 0,R.nextContainer=void 0,R}function Gv(k,R){return k.clauses!==R?Jn(Hv(R),k):k}function zy(k){let R=H(270);return R.name=Iu(k),R.transformFlags|=eM(R.name)|1,R.modifiers=void 0,R.jsDoc=void 0,R}function fw(k,R){return k.name!==R?ot(zy(R),k):k}function ot(k,R){return k!==R&&(k.modifiers=R.modifiers),Jn(k,R)}function eb(k,R,G,we){let ct=H(271);return ct.modifiers=$o(k),ct.name=Iu(G),ct.isTypeOnly=R,ct.moduleReference=we,ct.transformFlags|=Bo(ct.modifiers)|eM(ct.name)|Yn(ct.moduleReference),M0(ct.moduleReference)||(ct.transformFlags|=1),ct.transformFlags&=-67108865,ct.jsDoc=void 0,ct}function rh(k,R,G,we,ct){return k.modifiers!==R||k.isTypeOnly!==G||k.name!==we||k.moduleReference!==ct?Jn(eb(R,G,we,ct),k):k}function tb(k,R,G,we){let ct=z(272);return ct.modifiers=$o(k),ct.importClause=R,ct.moduleSpecifier=G,ct.attributes=ct.assertClause=we,ct.transformFlags|=Yn(ct.importClause)|Yn(ct.moduleSpecifier),ct.transformFlags&=-67108865,ct.jsDoc=void 0,ct}function cD(k,R,G,we,ct){return k.modifiers!==R||k.importClause!==G||k.moduleSpecifier!==we||k.attributes!==ct?Jn(tb(R,G,we,ct),k):k}function rb(k,R,G){let we=H(273);return we.isTypeOnly=k,we.name=R,we.namedBindings=G,we.transformFlags|=Yn(we.name)|Yn(we.namedBindings),k&&(we.transformFlags|=1),we.transformFlags&=-67108865,we}function V0(k,R,G,we){return k.isTypeOnly!==R||k.name!==G||k.namedBindings!==we?Jn(rb(R,G,we),k):k}function Wy(k,R){let G=z(300);return G.elements=W(k),G.multiLine=R,G.token=132,G.transformFlags|=4,G}function lD(k,R,G){return k.elements!==R||k.multiLine!==G?Jn(Wy(R,G),k):k}function fo(k,R){let G=z(301);return G.name=k,G.value=R,G.transformFlags|=4,G}function rp(k,R,G){return k.name!==R||k.value!==G?Jn(fo(R,G),k):k}function Kv(k,R){let G=z(302);return G.assertClause=k,G.multiLine=R,G}function Qv(k,R,G){return k.assertClause!==R||k.multiLine!==G?Jn(Kv(R,G),k):k}function zx(k,R,G){let we=z(300);return we.token=G??118,we.elements=W(k),we.multiLine=R,we.transformFlags|=4,we}function uT(k,R,G){return k.elements!==R||k.multiLine!==G?Jn(zx(R,G,k.token),k):k}function ey(k,R){let G=z(301);return G.name=k,G.value=R,G.transformFlags|=4,G}function H0(k,R,G){return k.name!==R||k.value!==G?Jn(ey(R,G),k):k}function hC(k){let R=H(274);return R.name=k,R.transformFlags|=Yn(R.name),R.transformFlags&=-67108865,R}function nb(k,R){return k.name!==R?Jn(hC(R),k):k}function ty(k){let R=H(280);return R.name=k,R.transformFlags|=Yn(R.name)|32,R.transformFlags&=-67108865,R}function Uy(k,R){return k.name!==R?Jn(ty(R),k):k}function Wx(k){let R=z(275);return R.elements=W(k),R.transformFlags|=Bo(R.elements),R.transformFlags&=-67108865,R}function Fa(k,R){return k.elements!==R?Jn(Wx(R),k):k}function Zn(k,R,G){let we=H(276);return we.isTypeOnly=k,we.propertyName=R,we.name=G,we.transformFlags|=Yn(we.propertyName)|Yn(we.name),we.transformFlags&=-67108865,we}function Sf(k,R,G,we){return k.isTypeOnly!==R||k.propertyName!==G||k.name!==we?Jn(Zn(R,G,we),k):k}function yC(k,R,G){let we=H(277);return we.modifiers=$o(k),we.isExportEquals=R,we.expression=R?i().parenthesizeRightSideOfBinary(64,void 0,G):i().parenthesizeExpressionOfExportDefault(G),we.transformFlags|=Bo(we.modifiers)|Yn(we.expression),we.transformFlags&=-67108865,we.jsDoc=void 0,we}function ry(k,R,G){return k.modifiers!==R||k.expression!==G?Jn(yC(R,k.isExportEquals,G),k):k}function Ac(k,R,G,we,ct){let br=H(278);return br.modifiers=$o(k),br.isTypeOnly=R,br.exportClause=G,br.moduleSpecifier=we,br.attributes=br.assertClause=ct,br.transformFlags|=Bo(br.modifiers)|Yn(br.exportClause)|Yn(br.moduleSpecifier),br.transformFlags&=-67108865,br.jsDoc=void 0,br}function pT(k,R,G,we,ct,br){return k.modifiers!==R||k.isTypeOnly!==G||k.exportClause!==we||k.moduleSpecifier!==ct||k.attributes!==br?fT(Ac(R,G,we,ct,br),k):k}function fT(k,R){return k!==R&&k.modifiers===R.modifiers&&(k.modifiers=R.modifiers),Jn(k,R)}function vC(k){let R=z(279);return R.elements=W(k),R.transformFlags|=Bo(R.elements),R.transformFlags&=-67108865,R}function uD(k,R){return k.elements!==R?Jn(vC(R),k):k}function Ux(k,R,G){let we=z(281);return we.isTypeOnly=k,we.propertyName=Iu(R),we.name=Iu(G),we.transformFlags|=Yn(we.propertyName)|Yn(we.name),we.transformFlags&=-67108865,we.jsDoc=void 0,we}function nh(k,R,G,we){return k.isTypeOnly!==R||k.propertyName!==G||k.name!==we?Jn(Ux(R,G,we),k):k}function MA(){let k=H(282);return k.jsDoc=void 0,k}function Kn(k){let R=z(283);return R.expression=k,R.transformFlags|=Yn(R.expression),R.transformFlags&=-67108865,R}function af(k,R){return k.expression!==R?Jn(Kn(R),k):k}function ms(k){return z(k)}function ib(k,R,G=!1){let we=bC(k,G?R&&i().parenthesizeNonArrayTypeOfPostfixType(R):R);return we.postfix=G,we}function bC(k,R){let G=z(k);return G.type=R,G}function _T(k,R,G){return R.type!==G?Jn(ib(k,G,R.postfix),R):R}function zn(k,R,G){return R.type!==G?Jn(bC(k,G),R):R}function RA(k,R){let G=H(317);return G.parameters=$o(k),G.type=R,G.transformFlags=Bo(G.parameters)|(G.type?1:0),G.jsDoc=void 0,G.locals=void 0,G.nextContainer=void 0,G.typeArguments=void 0,G}function pD(k,R,G){return k.parameters!==R||k.type!==G?Jn(RA(R,G),k):k}function Tf(k,R=!1){let G=H(322);return G.jsDocPropertyTags=$o(k),G.isArrayType=R,G}function $y(k,R,G){return k.jsDocPropertyTags!==R||k.isArrayType!==G?Jn(Tf(R,G),k):k}function kg(k){let R=z(309);return R.type=k,R}function ab(k,R){return k.type!==R?Jn(kg(R),k):k}function zd(k,R,G){let we=H(323);return we.typeParameters=$o(k),we.parameters=W(R),we.type=G,we.jsDoc=void 0,we.locals=void 0,we.nextContainer=void 0,we}function Xv(k,R,G,we){return k.typeParameters!==R||k.parameters!==G||k.type!==we?Jn(zd(R,G,we),k):k}function vd(k){let R=eY(k.kind);return k.tagName.escapedText===gl(R)?k.tagName:Pe(R)}function ih(k,R,G){let we=z(k);return we.tagName=R,we.comment=G,we}function Qm(k,R,G){let we=H(k);return we.tagName=R,we.comment=G,we}function Vy(k,R,G,we){let ct=ih(345,k??Pe("template"),we);return ct.constraint=R,ct.typeParameters=W(G),ct}function _w(k,R=vd(k),G,we,ct){return k.tagName!==R||k.constraint!==G||k.typeParameters!==we||k.comment!==ct?Jn(Vy(R,G,we,ct),k):k}function sb(k,R,G,we){let ct=Qm(346,k??Pe("typedef"),we);return ct.typeExpression=R,ct.fullName=G,ct.name=IY(G),ct.locals=void 0,ct.nextContainer=void 0,ct}function fD(k,R=vd(k),G,we,ct){return k.tagName!==R||k.typeExpression!==G||k.fullName!==we||k.comment!==ct?Jn(sb(R,G,we,ct),k):k}function Yv(k,R,G,we,ct,br){let Qn=Qm(341,k??Pe("param"),br);return Qn.typeExpression=we,Qn.name=R,Qn.isNameFirst=!!ct,Qn.isBracketed=G,Qn}function xC(k,R=vd(k),G,we,ct,br,Qn){return k.tagName!==R||k.name!==G||k.isBracketed!==we||k.typeExpression!==ct||k.isNameFirst!==br||k.comment!==Qn?Jn(Yv(R,G,we,ct,br,Qn),k):k}function _D(k,R,G,we,ct,br){let Qn=Qm(348,k??Pe("prop"),br);return Qn.typeExpression=we,Qn.name=R,Qn.isNameFirst=!!ct,Qn.isBracketed=G,Qn}function $x(k,R=vd(k),G,we,ct,br,Qn){return k.tagName!==R||k.name!==G||k.isBracketed!==we||k.typeExpression!==ct||k.isNameFirst!==br||k.comment!==Qn?Jn(_D(R,G,we,ct,br,Qn),k):k}function Cg(k,R,G,we){let ct=Qm(338,k??Pe("callback"),we);return ct.typeExpression=R,ct.fullName=G,ct.name=IY(G),ct.locals=void 0,ct.nextContainer=void 0,ct}function dD(k,R=vd(k),G,we,ct){return k.tagName!==R||k.typeExpression!==G||k.fullName!==we||k.comment!==ct?Jn(Cg(R,G,we,ct),k):k}function SC(k,R,G){let we=ih(339,k??Pe("overload"),G);return we.typeExpression=R,we}function ob(k,R=vd(k),G,we){return k.tagName!==R||k.typeExpression!==G||k.comment!==we?Jn(SC(R,G,we),k):k}function dw(k,R,G){let we=ih(328,k??Pe("augments"),G);return we.class=R,we}function ny(k,R=vd(k),G,we){return k.tagName!==R||k.class!==G||k.comment!==we?Jn(dw(R,G,we),k):k}function G0(k,R,G){let we=ih(329,k??Pe("implements"),G);return we.class=R,we}function iy(k,R,G){let we=ih(347,k??Pe("see"),G);return we.name=R,we}function cb(k,R,G,we){return k.tagName!==R||k.name!==G||k.comment!==we?Jn(iy(R,G,we),k):k}function np(k){let R=z(310);return R.name=k,R}function TC(k,R){return k.name!==R?Jn(np(R),k):k}function Zv(k,R){let G=z(311);return G.left=k,G.right=R,G.transformFlags|=Yn(G.left)|Yn(G.right),G}function mw(k,R,G){return k.left!==R||k.right!==G?Jn(Zv(R,G),k):k}function mD(k,R){let G=z(324);return G.name=k,G.text=R,G}function Hy(k,R,G){return k.name!==R?Jn(mD(R,G),k):k}function jA(k,R){let G=z(325);return G.name=k,G.text=R,G}function gw(k,R,G){return k.name!==R?Jn(jA(R,G),k):k}function LA(k,R){let G=z(326);return G.name=k,G.text=R,G}function dT(k,R,G){return k.name!==R?Jn(LA(R,G),k):k}function wC(k,R=vd(k),G,we){return k.tagName!==R||k.class!==G||k.comment!==we?Jn(G0(R,G,we),k):k}function Dl(k,R,G){return ih(k,R??Pe(eY(k)),G)}function pu(k,R,G=vd(R),we){return R.tagName!==G||R.comment!==we?Jn(Dl(k,G,we),R):R}function BA(k,R,G,we){let ct=ih(k,R??Pe(eY(k)),we);return ct.typeExpression=G,ct}function rd(k,R,G=vd(R),we,ct){return R.tagName!==G||R.typeExpression!==we||R.comment!==ct?Jn(BA(k,G,we,ct),R):R}function Xm(k,R){return ih(327,k,R)}function gD(k,R,G){return k.tagName!==R||k.comment!==G?Jn(Xm(R,G),k):k}function ah(k,R,G){let we=Qm(340,k??Pe(eY(340)),G);return we.typeExpression=R,we.locals=void 0,we.nextContainer=void 0,we}function kC(k,R=vd(k),G,we){return k.tagName!==R||k.typeExpression!==G||k.comment!==we?Jn(ah(R,G,we),k):k}function K0(k,R,G,we,ct){let br=ih(351,k??Pe("import"),ct);return br.importClause=R,br.moduleSpecifier=G,br.attributes=we,br.comment=ct,br}function qA(k,R,G,we,ct,br){return k.tagName!==R||k.comment!==br||k.importClause!==G||k.moduleSpecifier!==we||k.attributes!==ct?Jn(K0(R,G,we,ct,br),k):k}function CC(k){let R=z(321);return R.text=k,R}function Ol(k,R){return k.text!==R?Jn(CC(R),k):k}function mT(k,R){let G=z(320);return G.comment=k,G.tags=$o(R),G}function JA(k,R,G){return k.comment!==R||k.tags!==G?Jn(mT(R,G),k):k}function hw(k,R,G){let we=z(284);return we.openingElement=k,we.children=W(R),we.closingElement=G,we.transformFlags|=Yn(we.openingElement)|Bo(we.children)|Yn(we.closingElement)|2,we}function f8(k,R,G,we){return k.openingElement!==R||k.children!==G||k.closingElement!==we?Jn(hw(R,G,we),k):k}function wf(k,R,G){let we=z(285);return we.tagName=k,we.typeArguments=$o(R),we.attributes=G,we.transformFlags|=Yn(we.tagName)|Bo(we.typeArguments)|Yn(we.attributes)|2,we.typeArguments&&(we.transformFlags|=1),we}function gT(k,R,G,we){return k.tagName!==R||k.typeArguments!==G||k.attributes!==we?Jn(wf(R,G,we),k):k}function yw(k,R,G){let we=z(286);return we.tagName=k,we.typeArguments=$o(R),we.attributes=G,we.transformFlags|=Yn(we.tagName)|Bo(we.typeArguments)|Yn(we.attributes)|2,R&&(we.transformFlags|=1),we}function PC(k,R,G,we){return k.tagName!==R||k.typeArguments!==G||k.attributes!==we?Jn(yw(R,G,we),k):k}function a_(k){let R=z(287);return R.tagName=k,R.transformFlags|=Yn(R.tagName)|2,R}function Ym(k,R){return k.tagName!==R?Jn(a_(R),k):k}function lb(k,R,G){let we=z(288);return we.openingFragment=k,we.children=W(R),we.closingFragment=G,we.transformFlags|=Yn(we.openingFragment)|Bo(we.children)|Yn(we.closingFragment)|2,we}function hD(k,R,G,we){return k.openingFragment!==R||k.children!==G||k.closingFragment!==we?Jn(lb(R,G,we),k):k}function hT(k,R){let G=z(12);return G.text=k,G.containsOnlyTriviaWhiteSpaces=!!R,G.transformFlags|=2,G}function yT(k,R,G){return k.text!==R||k.containsOnlyTriviaWhiteSpaces!==G?Jn(hT(R,G),k):k}function yD(){let k=z(289);return k.transformFlags|=2,k}function vT(){let k=z(290);return k.transformFlags|=2,k}function vD(k,R){let G=H(291);return G.name=k,G.initializer=R,G.transformFlags|=Yn(G.name)|Yn(G.initializer)|2,G}function vw(k,R,G){return k.name!==R||k.initializer!==G?Jn(vD(R,G),k):k}function Gy(k){let R=H(292);return R.properties=W(k),R.transformFlags|=Bo(R.properties)|2,R}function nd(k,R){return k.properties!==R?Jn(Gy(R),k):k}function e0(k){let R=z(293);return R.expression=k,R.transformFlags|=Yn(R.expression)|2,R}function EC(k,R){return k.expression!==R?Jn(e0(R),k):k}function bT(k,R){let G=z(294);return G.dotDotDotToken=k,G.expression=R,G.transformFlags|=Yn(G.dotDotDotToken)|Yn(G.expression)|2,G}function Uo(k,R){return k.expression!==R?Jn(bT(k.dotDotDotToken,R),k):k}function ei(k,R){let G=z(295);return G.namespace=k,G.name=R,G.transformFlags|=Yn(G.namespace)|Yn(G.name)|2,G}function bd(k,R,G){return k.namespace!==R||k.name!==G?Jn(ei(R,G),k):k}function w_(k,R){let G=z(296);return G.expression=i().parenthesizeExpressionForDisallowedComma(k),G.statements=W(R),G.transformFlags|=Yn(G.expression)|Bo(G.statements),G.jsDoc=void 0,G}function bD(k,R,G){return k.expression!==R||k.statements!==G?Jn(w_(R,G),k):k}function Vx(k){let R=z(297);return R.statements=W(k),R.transformFlags=Bo(R.statements),R}function DC(k,R){return k.statements!==R?Jn(Vx(R),k):k}function xD(k,R){let G=z(298);switch(G.token=k,G.types=W(R),G.transformFlags|=Bo(G.types),k){case 96:G.transformFlags|=1024;break;case 119:G.transformFlags|=1;break;default:return I.assertNever(k)}return G}function SD(k,R){return k.types!==R?Jn(xD(k.token,R),k):k}function Wd(k,R){let G=z(299);return G.variableDeclaration=Qx(k),G.block=R,G.transformFlags|=Yn(G.variableDeclaration)|Yn(G.block)|(k?0:64),G.locals=void 0,G.nextContainer=void 0,G}function Ud(k,R,G){return k.variableDeclaration!==R||k.block!==G?Jn(Wd(R,G),k):k}function k_(k,R){let G=H(303);return G.name=Iu(k),G.initializer=i().parenthesizeExpressionForDisallowedComma(R),G.transformFlags|=Sx(G.name)|Yn(G.initializer),G.modifiers=void 0,G.questionToken=void 0,G.exclamationToken=void 0,G.jsDoc=void 0,G}function sh(k,R,G){return k.name!==R||k.initializer!==G?Q0(k_(R,G),k):k}function Q0(k,R){return k!==R&&(k.modifiers=R.modifiers,k.questionToken=R.questionToken,k.exclamationToken=R.exclamationToken),Jn(k,R)}function t0(k,R){let G=H(304);return G.name=Iu(k),G.objectAssignmentInitializer=R&&i().parenthesizeExpressionForDisallowedComma(R),G.transformFlags|=eM(G.name)|Yn(G.objectAssignmentInitializer)|1024,G.equalsToken=void 0,G.modifiers=void 0,G.questionToken=void 0,G.exclamationToken=void 0,G.jsDoc=void 0,G}function A(k,R,G){return k.name!==R||k.objectAssignmentInitializer!==G?Se(t0(R,G),k):k}function Se(k,R){return k!==R&&(k.modifiers=R.modifiers,k.questionToken=R.questionToken,k.exclamationToken=R.exclamationToken,k.equalsToken=R.equalsToken),Jn(k,R)}function Jt(k){let R=H(305);return R.expression=i().parenthesizeExpressionForDisallowedComma(k),R.transformFlags|=Yn(R.expression)|128|65536,R.jsDoc=void 0,R}function Nr(k,R){return k.expression!==R?Jn(Jt(R),k):k}function Wi(k,R){let G=H(306);return G.name=Iu(k),G.initializer=R&&i().parenthesizeExpressionForDisallowedComma(R),G.transformFlags|=Yn(G.name)|Yn(G.initializer)|1,G.jsDoc=void 0,G}function pa(k,R,G){return k.name!==R||k.initializer!==G?Jn(Wi(R,G),k):k}function Ha(k,R,G){let we=t.createBaseSourceFileNode(307);return we.statements=W(k),we.endOfFileToken=R,we.flags|=G,we.text="",we.fileName="",we.path="",we.resolvedPath="",we.originalFileName="",we.languageVersion=1,we.languageVariant=0,we.scriptKind=0,we.isDeclarationFile=!1,we.hasNoDefaultLib=!1,we.transformFlags|=Bo(we.statements)|Yn(we.endOfFileToken),we.locals=void 0,we.nextContainer=void 0,we.endFlowNode=void 0,we.nodeCount=0,we.identifierCount=0,we.symbolCount=0,we.parseDiagnostics=void 0,we.bindDiagnostics=void 0,we.bindSuggestionDiagnostics=void 0,we.lineMap=void 0,we.externalModuleIndicator=void 0,we.setExternalModuleIndicator=void 0,we.pragmas=void 0,we.checkJsDirective=void 0,we.referencedFiles=void 0,we.typeReferenceDirectives=void 0,we.libReferenceDirectives=void 0,we.amdDependencies=void 0,we.commentDirectives=void 0,we.identifiers=void 0,we.packageJsonLocations=void 0,we.packageJsonScope=void 0,we.imports=void 0,we.moduleAugmentations=void 0,we.ambientModuleNames=void 0,we.classifiableNames=void 0,we.impliedNodeFormat=void 0,we}function ps(k){let R=Object.create(k.redirectTarget);return Object.defineProperties(R,{id:{get(){return this.redirectInfo.redirectTarget.id},set(G){this.redirectInfo.redirectTarget.id=G}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(G){this.redirectInfo.redirectTarget.symbol=G}}}),R.redirectInfo=k,R}function Co(k){let R=ps(k.redirectInfo);return R.flags|=k.flags&-17,R.fileName=k.fileName,R.path=k.path,R.resolvedPath=k.resolvedPath,R.originalFileName=k.originalFileName,R.packageJsonLocations=k.packageJsonLocations,R.packageJsonScope=k.packageJsonScope,R.emitNode=void 0,R}function Jf(k){let R=t.createBaseSourceFileNode(307);R.flags|=k.flags&-17;for(let G in k)if(!(ec(R,G)||!ec(k,G))){if(G==="emitNode"){R.emitNode=void 0;continue}R[G]=k[G]}return R}function vl(k){let R=k.redirectInfo?Co(k):Jf(k);return n(R,k),R}function rl(k,R,G,we,ct,br,Qn){let Xa=vl(k);return Xa.statements=W(R),Xa.isDeclarationFile=G,Xa.referencedFiles=we,Xa.typeReferenceDirectives=ct,Xa.hasNoDefaultLib=br,Xa.libReferenceDirectives=Qn,Xa.transformFlags=Bo(Xa.statements)|Yn(Xa.endOfFileToken),Xa}function TD(k,R,G=k.isDeclarationFile,we=k.referencedFiles,ct=k.typeReferenceDirectives,br=k.hasNoDefaultLib,Qn=k.libReferenceDirectives){return k.statements!==R||k.isDeclarationFile!==G||k.referencedFiles!==we||k.typeReferenceDirectives!==ct||k.hasNoDefaultLib!==br||k.libReferenceDirectives!==Qn?Jn(rl(k,R,G,we,ct,br,Qn),k):k}function zf(k){let R=z(308);return R.sourceFiles=k,R.syntheticFileReferences=void 0,R.syntheticTypeReferences=void 0,R.syntheticLibReferences=void 0,R.hasNoDefaultLib=void 0,R}function ay(k,R){return k.sourceFiles!==R?Jn(zf(R),k):k}function Hx(k,R=!1,G){let we=z(237);return we.type=k,we.isSpread=R,we.tupleNameSource=G,we}function xT(k){let R=z(352);return R._children=k,R}function wD(k){let R=z(353);return R.original=k,Ot(R,k),R}function kD(k,R){let G=z(355);return G.expression=k,G.original=R,G.transformFlags|=Yn(G.expression)|1,Ot(G,R),G}function ub(k,R){return k.expression!==R?Jn(kD(R,k.original),k):k}function pb(){return z(354)}function bw(k){if(Pc(k)&&!WI(k)&&!k.original&&!k.emitNode&&!k.id){if(Z4(k))return k.elements;if(Vn(k)&&She(k.operatorToken))return[k.left,k.right]}return k}function sy(k){let R=z(356);return R.elements=W(Vc(k,bw)),R.transformFlags|=Bo(R.elements),R}function CD(k,R){return k.elements!==R?Jn(sy(R),k):k}function PD(k,R){let G=z(357);return G.expression=k,G.thisArg=R,G.transformFlags|=Yn(G.expression)|Yn(G.thisArg),G}function mj(k,R,G){return k.expression!==R||k.thisArg!==G?Jn(PD(R,G),k):k}function xw(k){let R=me(k.escapedText);return R.flags|=k.flags&-17,R.transformFlags=k.transformFlags,n(R,k),iM(R,{...k.emitNode.autoGenerate}),R}function gj(k){let R=me(k.escapedText);R.flags|=k.flags&-17,R.jsDoc=k.jsDoc,R.flowNode=k.flowNode,R.symbol=k.symbol,R.transformFlags=k.transformFlags,n(R,k);let G=Lk(k);return G&&F1(R,G),R}function _8(k){let R=ze(k.escapedText);return R.flags|=k.flags&-17,R.transformFlags=k.transformFlags,n(R,k),iM(R,{...k.emitNode.autoGenerate}),R}function ED(k){let R=ze(k.escapedText);return R.flags|=k.flags&-17,R.transformFlags=k.transformFlags,n(R,k),R}function ja(k){if(k===void 0)return k;if(ba(k))return vl(k);if(Xc(k))return xw(k);if(Ye(k))return gj(k);if(yk(k))return _8(k);if(Ca(k))return ED(k);let R=dq(k.kind)?t.createBaseNode(k.kind):t.createBaseTokenNode(k.kind);R.flags|=k.flags&-17,R.transformFlags=k.transformFlags,n(R,k);for(let G in k)ec(R,G)||!ec(k,G)||(R[G]=k[G]);return R}function Sw(k,R,G){return Nn(qf(void 0,void 0,void 0,void 0,R?[R]:[],void 0,rs(k,!0)),void 0,G?[G]:[])}function Pn(k,R,G){return Nn(gd(void 0,void 0,R?[R]:[],void 0,void 0,rs(k,!0)),void 0,G?[G]:[])}function ST(){return Xh(ne("0"))}function DD(k){return yC(void 0,!1,k)}function zA(k){return Ac(void 0,!1,vC([Ux(!1,void 0,k)]))}function OD(k,R){return R==="null"?L.createStrictEquality(k,He()):R==="undefined"?L.createStrictEquality(k,ST()):L.createStrictEquality(n_(k),Ee(R))}function hj(k,R){return R==="null"?L.createStrictInequality(k,He()):R==="undefined"?L.createStrictInequality(k,ST()):L.createStrictInequality(n_(k),Ee(R))}function TT(k,R,G){return gk(k)?Fs(Fc(k,void 0,R),void 0,void 0,G):Nn(El(k,R),void 0,G)}function M$(k,R,G){return TT(k,"bind",[R,...G])}function wT(k,R,G){return TT(k,"call",[R,...G])}function R$(k,R,G){return TT(k,"apply",[R,G])}function Tw(k,R,G){return TT(Pe(k),R,G)}function ND(k,R){return TT(k,"slice",R===void 0?[]:[Kx(R)])}function yj(k,R){return TT(k,"concat",R)}function WA(k,R,G){return Tw("Object","defineProperty",[k,Kx(R),G])}function ww(k,R){return Tw("Object","getOwnPropertyDescriptor",[k,Kx(R)])}function kT(k,R,G){return Tw("Reflect","get",G?[k,R,G]:[k,R])}function X0(k,R,G,we){return Tw("Reflect","set",we?[k,R,G,we]:[k,R,G])}function CT(k,R,G){return G?(k.push(k_(R,G)),!0):!1}function oy(k,R){let G=[];CT(G,"enumerable",Kx(k.enumerable)),CT(G,"configurable",Kx(k.configurable));let we=CT(G,"writable",Kx(k.writable));we=CT(G,"value",k.value)||we;let ct=CT(G,"get",k.get);return ct=CT(G,"set",k.set)||ct,I.assert(!(we&&ct),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),sc(G,!R)}function UA(k,R){switch(k.kind){case 217:return Y_(k,R);case 216:return Nu(k,k.type,R);case 234:return H1(k,R,k.type);case 238:return ht(k,R,k.type);case 235:return G1(k,R);case 233:return jx(k,R,k.typeArguments);case 355:return ub(k,R)}}function j$(k){return Mf(k)&&Pc(k)&&Pc(I1(k))&&Pc(Rh(k))&&!Pt(EN(k))&&!Pt(nM(k))}function cy(k,R,G=63){return k&&Oz(k,G)&&!j$(k)?UA(k,cy(k.expression,R)):R}function PT(k,R,G){if(!R)return k;let we=$0(R,R.label,Cx(R.statement)?PT(k,R.statement):k);return G&&G(R),we}function d8(k,R){let G=Qo(k);switch(G.kind){case 80:return R;case 110:case 9:case 10:case 11:return!1;case 209:return G.elements.length!==0;case 210:return G.properties.length>0;default:return!0}}function fu(k,R,G,we=!1){let ct=Ll(k,63),br,Qn;return g_(ct)?(br=pe(),Qn=ct):K4(ct)?(br=pe(),Qn=G!==void 0&&G<2?Ot(Pe("_super"),ct):ct):Ao(ct)&8192?(br=ST(),Qn=i().parenthesizeLeftSideOfAccess(ct,!1)):ai(ct)?d8(ct.expression,we)?(br=Oe(R),Qn=El(Ot(L.createAssignment(br,ct.expression),ct.expression),ct.name),Ot(Qn,ct)):(br=ct.expression,Qn=ct):Nc(ct)?d8(ct.expression,we)?(br=Oe(R),Qn=Dp(Ot(L.createAssignment(br,ct.expression),ct.expression),ct.argumentExpression),Ot(Qn,ct)):(br=ct.expression,Qn=ct):(br=ST(),Qn=i().parenthesizeLeftSideOfAccess(k,!1)),{target:Qn,thisArg:br}}function se(k,R){return El(Au(sc([oe(void 0,"value",[ta(void 0,void 0,k,void 0,void 0,void 0)],rs([qd(R)]))])),"value")}function Ae(k){return k.length>10?sy(k):Qu(k,L.createComma)}function et(k,R,G,we=0,ct){let br=ct?k&&sq(k):ls(k);if(br&&Ye(br)&&!Xc(br)){let Qn=Xo(Ot(ja(br),br),br.parent);return we|=Ao(br),G||(we|=96),R||(we|=3072),we&&qn(Qn,we),Qn}return it(k)}function Wt(k,R,G){return et(k,R,G,98304)}function vr(k,R,G,we){return et(k,R,G,32768,we)}function Hr(k,R,G){return et(k,R,G,16384)}function bi(k,R,G){return et(k,R,G)}function ga(k,R,G,we){let ct=El(k,Pc(R)?R:ja(R));Ot(ct,R);let br=0;return we||(br|=96),G||(br|=3072),br&&qn(ct,br),ct}function Qi(k,R,G,we){return k&&Ai(R,32)?ga(k,et(R),G,we):Hr(R,G,we)}function Zi(k,R,G,we){let ct=Cc(k,R,0,G);return zo(k,R,ct,we)}function Ja(k){return vo(k.expression)&&k.expression.text==="use strict"}function kc(){return Zp(qd(Ee("use strict")))}function Cc(k,R,G=0,we){I.assert(R.length===0,"Prologue directives should be at the first statement in the target statements array");let ct=!1,br=k.length;for(;G<br;){let Qn=k[G];if(Ph(Qn))Ja(Qn)&&(ct=!0),R.push(Qn);else break;G++}return we&&!ct&&R.push(kc()),G}function zo(k,R,G,we,ct=v1){let br=k.length;for(;G!==void 0&&G<br;){let Qn=k[G];if(Ao(Qn)&2097152&&ct(Qn))Zr(R,we?dt(Qn,we,fa):Qn);else break;G++}return G}function xm(k){return OY(k)?k:Ot(W([kc(),...k]),k)}function Ky(k){return I.assert(sn(k,Nde),"Cannot lift nodes to a Block."),Zd(k)||rs(k)}function Zm(k,R,G){let we=G;for(;we<k.length&&R(k[we]);)we++;return we}function ip(k,R){if(!Pt(R))return k;let G=Zm(k,Ph,0),we=Zm(k,Bq,G),ct=Zm(k,qq,we),br=Zm(R,Ph,0),Qn=Zm(R,Bq,br),Xa=Zm(R,qq,Qn),rc=Zm(R,XF,Xa);I.assert(rc===R.length,"Expected declarations to be valid standard or custom prologues");let ch=p2(k)?k.slice():k;if(rc>Xa&&ch.splice(ct,0,...R.slice(Xa,rc)),Xa>Qn&&ch.splice(we,0,...R.slice(Qn,Xa)),Qn>br&&ch.splice(G,0,...R.slice(br,Qn)),br>0)if(G===0)ch.splice(0,0,...R.slice(0,br));else{let r0=new Map;for(let Qy=0;Qy<G;Qy++){let ID=k[Qy];r0.set(ID.expression.text,!0)}for(let Qy=br-1;Qy>=0;Qy--){let ID=R[Qy];r0.has(ID.expression.text)||ch.unshift(ID)}}return p2(k)?Ot(W(ch,k.hasTrailingComma),k):k}function oh(k,R){let G;return typeof R=="number"?G=jt(R):G=R,Hc(k)?vn(k,G,k.name,k.constraint,k.default):Da(k)?ts(k,G,k.dotDotDotToken,k.name,k.questionToken,k.type,k.initializer):DN(k)?kn(k,G,k.typeParameters,k.parameters,k.type):vf(k)?ui(k,G,k.name,k.questionToken,k.type):is(k)?at(k,G,k.name,k.questionToken??k.exclamationToken,k.type,k.initializer):yg(k)?Cr(k,G,k.name,k.questionToken,k.typeParameters,k.parameters,k.type):wl(k)?Di(k,G,k.asteriskToken,k.name,k.questionToken,k.typeParameters,k.parameters,k.type,k.body):ul(k)?_s(k,G,k.parameters,k.body):mm(k)?he(k,G,k.name,k.parameters,k.type,k.body):v_(k)?Ue(k,G,k.name,k.parameters,k.body):wx(k)?Xt(k,G,k.parameters,k.type):Ic(k)?Tg(k,G,k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body):Bc(k)?Qh(k,G,k.typeParameters,k.parameters,k.type,k.equalsGreaterThanToken,k.body):vu(k)?eh(k,G,k.name,k.typeParameters,k.heritageClauses,k.members):Rl(k)?Es(k,G,k.declarationList):jl(k)?Uv(k,G,k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body):bu(k)?i_(k,G,k.name,k.typeParameters,k.heritageClauses,k.members):Cp(k)?td(k,G,k.name,k.typeParameters,k.heritageClauses,k.members):Wm(k)?Z1(k,G,k.name,k.typeParameters,k.type):B2(k)?th(k,G,k.name,k.members):cu(k)?yp(k,G,k.name,k.body):zu(k)?rh(k,G,k.isTypeOnly,k.name,k.moduleReference):sl(k)?cD(k,G,k.importClause,k.moduleSpecifier,k.attributes):Gc(k)?ry(k,G,k.expression):tu(k)?pT(k,G,k.isTypeOnly,k.exportClause,k.moduleSpecifier,k.attributes):I.assertNever(k)}function Gx(k,R){return Da(k)?ts(k,R,k.dotDotDotToken,k.name,k.questionToken,k.type,k.initializer):is(k)?at(k,R,k.name,k.questionToken??k.exclamationToken,k.type,k.initializer):wl(k)?Di(k,R,k.asteriskToken,k.name,k.questionToken,k.typeParameters,k.parameters,k.type,k.body):mm(k)?he(k,R,k.name,k.parameters,k.type,k.body):v_(k)?Ue(k,R,k.name,k.parameters,k.body):vu(k)?eh(k,R,k.name,k.typeParameters,k.heritageClauses,k.members):bu(k)?i_(k,R,k.name,k.typeParameters,k.heritageClauses,k.members):I.assertNever(k)}function vj(k,R){switch(k.kind){case 177:return he(k,k.modifiers,R,k.parameters,k.type,k.body);case 178:return Ue(k,k.modifiers,R,k.parameters,k.body);case 174:return Di(k,k.modifiers,k.asteriskToken,R,k.questionToken,k.typeParameters,k.parameters,k.type,k.body);case 173:return Cr(k,k.modifiers,R,k.questionToken,k.typeParameters,k.parameters,k.type);case 172:return at(k,k.modifiers,R,k.questionToken??k.exclamationToken,k.type,k.initializer);case 171:return ui(k,k.modifiers,R,k.questionToken,k.type);case 303:return sh(k,R,k.initializer)}}function $o(k){return k?W(k):void 0}function Iu(k){return typeof k=="string"?Pe(k):k}function Kx(k){return typeof k=="string"?Ee(k):typeof k=="number"?ne(k):typeof k=="boolean"?k?qe():je():k}function AD(k){return k&&i().parenthesizeExpressionForDisallowedComma(k)}function $A(k){return typeof k=="number"?xe(k):k}function s_(k){return k&&Lhe(k)?Ot(n(tp(),k),k):k}function Qx(k){return typeof k=="string"||k&&!Ui(k)?Y1(k,void 0,void 0,void 0):k}function Jn(k,R){return k!==R&&(n(k,R),Ot(k,R)),k}}function eY(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return I.fail(`Unsupported kind: ${I.formatSyntaxKind(e)}`)}}var A1,Tje={};function p6t(e,t){switch(A1||(A1=bv(99,!1,0)),e){case 15:A1.setText("`"+t+"`");break;case 16:A1.setText("`"+t+"${");break;case 17:A1.setText("}"+t+"${");break;case 18:A1.setText("}"+t+"`");break}let n=A1.scan();if(n===20&&(n=A1.reScanTemplateToken(!1)),A1.isUnterminated())return A1.setText(void 0),Tje;let i;switch(n){case 15:case 16:case 17:case 18:i=A1.getTokenValue();break}return i===void 0||A1.scan()!==1?(A1.setText(void 0),Tje):(A1.setText(void 0),i)}function Sx(e){return e&&Ye(e)?eM(e):Yn(e)}function eM(e){return Yn(e)&-67108865}function f6t(e,t){return t|e.transformFlags&134234112}function Yn(e){if(!e)return 0;let t=e.transformFlags&~_6t(e.kind);return Gu(e)&&su(e.name)?f6t(e.name,t):t}function Bo(e){return e?e.transformFlags:0}function wje(e){let t=0;for(let n of e)t|=Yn(n);e.transformFlags=t}function _6t(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var sz=nhe();function oz(e){return e.flags|=16,e}var d6t={createBaseSourceFileNode:e=>oz(sz.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>oz(sz.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>oz(sz.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>oz(sz.createBaseTokenNode(e)),createBaseNode:e=>oz(sz.createBaseNode(e))},j=Z5(4,d6t),kje;function Cje(e,t,n){return new(kje||(kje=wp.getSourceMapSourceConstructor()))(e,t,n)}function ii(e,t){if(e.original!==t&&(e.original=t,t)){let n=t.emitNode;n&&(e.emitNode=m6t(n,e.emitNode))}return e}function m6t(e,t){let{flags:n,internalFlags:i,leadingComments:s,trailingComments:l,commentRange:p,sourceMapRange:g,tokenSourceMapRanges:m,constantValue:x,helpers:b,startsOnNewLine:S,snippetElement:P,classThis:E,assignedName:N}=e;if(t||(t={}),n&&(t.flags=n),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=ti(s.slice(),t.leadingComments)),l&&(t.trailingComments=ti(l.slice(),t.trailingComments)),p&&(t.commentRange=p),g&&(t.sourceMapRange=g),m&&(t.tokenSourceMapRanges=g6t(m,t.tokenSourceMapRanges)),x!==void 0&&(t.constantValue=x),b)for(let F of b)t.helpers=Mm(t.helpers,F);return S!==void 0&&(t.startsOnNewLine=S),P!==void 0&&(t.snippetElement=P),E&&(t.classThis=E),N&&(t.assignedName=N),t}function g6t(e,t){t||(t=[]);for(let n in e)t[n]=e[n];return t}function qp(e){if(e.emitNode)I.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(WI(e)){if(e.kind===307)return e.emitNode={annotatedNodes:[e]};let t=rn(ds(rn(e)))??I.fail("Could not determine parsed source file.");qp(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function tY(e){var t,n;let i=(n=(t=rn(ds(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(let s of i)s.emitNode=void 0}function tM(e){let t=qp(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function qn(e,t){return qp(e).flags=t,e}function Mh(e,t){let n=qp(e);return n.flags=n.flags|t,e}function rM(e,t){return qp(e).internalFlags=t,e}function jk(e,t){let n=qp(e);return n.internalFlags=n.internalFlags|t,e}function I1(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Eo(e,t){return qp(e).sourceMapRange=t,e}function Pje(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function lhe(e,t,n){let i=qp(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=n,e}function U4(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function cz(e,t){return qp(e).startsOnNewLine=t,e}function Rh(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function yu(e,t){return qp(e).commentRange=t,e}function EN(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function FS(e,t){return qp(e).leadingComments=t,e}function F2(e,t,n,i){return FS(e,Zr(EN(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function nM(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function mE(e,t){return qp(e).trailingComments=t,e}function $4(e,t,n,i){return mE(e,Zr(nM(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function uhe(e,t){FS(e,EN(t)),mE(e,nM(t));let n=qp(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function phe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function fhe(e,t){let n=qp(e);return n.constantValue=t,e}function gE(e,t){let n=qp(e);return n.helpers=Zr(n.helpers,t),e}function Rv(e,t){if(Pt(t)){let n=qp(e);for(let i of t)n.helpers=Mm(n.helpers,i)}return e}function Eje(e,t){var n;let i=(n=e.emitNode)==null?void 0:n.helpers;return i?wP(i,t):!1}function rY(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function _he(e,t,n){let i=e.emitNode,s=i&&i.helpers;if(!Pt(s))return;let l=qp(t),p=0;for(let g=0;g<s.length;g++){let m=s[g];n(m)?(p++,l.helpers=Mm(l.helpers,m)):p>0&&(s[g-p]=m)}p>0&&(s.length-=p)}function nY(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function iY(e,t){let n=qp(e);return n.snippetElement=t,e}function aY(e){return qp(e).internalFlags|=4,e}function dhe(e,t){let n=qp(e);return n.typeNode=t,e}function mhe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function F1(e,t){return qp(e).identifierTypeArguments=t,e}function Lk(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function iM(e,t){return qp(e).autoGenerate=t,e}function Dje(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function ghe(e,t){return qp(e).generatedImportReference=t,e}function hhe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var yhe=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(yhe||{});function vhe(e){let t=e.factory,n=Cu(()=>rM(t.createTrue(),8)),i=Cu(()=>rM(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:l,createMetadataHelper:p,createParamHelper:g,createESDecorateHelper:F,createRunInitializersHelper:M,createAssignHelper:L,createAwaitHelper:W,createAsyncGeneratorHelper:z,createAsyncDelegatorHelper:H,createAsyncValuesHelper:X,createRestHelper:ne,createAwaiterHelper:ae,createExtendsHelper:Y,createTemplateObjectHelper:Ee,createSpreadArrayHelper:fe,createPropKeyHelper:te,createSetFunctionNameHelper:de,createValuesHelper:me,createReadHelper:ve,createGeneratorHelper:Pe,createImportStarHelper:Oe,createImportStarCallbackHelper:ie,createImportDefaultHelper:Ne,createExportStarHelper:it,createClassPrivateFieldGetHelper:ze,createClassPrivateFieldSetHelper:ge,createClassPrivateFieldInHelper:Me,createAddDisposableResourceHelper:Te,createDisposeResourcesHelper:gt,createRewriteRelativeImportExtensionsHelper:Tt};function s(xe){return qn(t.createIdentifier(xe),8196)}function l(xe,nt,pe,He){e.requestEmitHelper(h6t);let qe=[];return qe.push(t.createArrayLiteralExpression(xe,!0)),qe.push(nt),pe&&(qe.push(pe),He&&qe.push(He)),t.createCallExpression(s("__decorate"),void 0,qe)}function p(xe,nt){return e.requestEmitHelper(y6t),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(xe),nt])}function g(xe,nt,pe){return e.requestEmitHelper(v6t),Ot(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(nt+""),xe]),pe)}function m(xe){let nt=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),xe.name),t.createPropertyAssignment(t.createIdentifier("metadata"),xe.metadata)];return t.createObjectLiteralExpression(nt)}function x(xe){let nt=xe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),xe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),xe.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,nt))}function b(xe){let nt=xe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),xe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),xe.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(nt,t.createIdentifier("value")))])))}function S(xe){let nt=xe.computed?xe.name:Ye(xe.name)?t.createStringLiteralFromNode(xe.name):xe.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(nt,103,t.createIdentifier("obj"))))}function P(xe,nt){let pe=[];return pe.push(S(xe)),nt.get&&pe.push(x(xe)),nt.set&&pe.push(b(xe)),t.createObjectLiteralExpression(pe)}function E(xe){let nt=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(xe.kind)),t.createPropertyAssignment(t.createIdentifier("name"),xe.name.computed?xe.name.name:t.createStringLiteralFromNode(xe.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),xe.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),xe.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),P(xe.name,xe.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),xe.metadata)];return t.createObjectLiteralExpression(nt)}function N(xe){return xe.kind==="class"?m(xe):E(xe)}function F(xe,nt,pe,He,qe,je){return e.requestEmitHelper(b6t),t.createCallExpression(s("__esDecorate"),void 0,[xe??t.createNull(),nt??t.createNull(),pe,N(He),qe,je])}function M(xe,nt,pe){return e.requestEmitHelper(x6t),t.createCallExpression(s("__runInitializers"),void 0,pe?[xe,nt,pe]:[xe,nt])}function L(xe){return Po(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,xe):(e.requestEmitHelper(S6t),t.createCallExpression(s("__assign"),void 0,xe))}function W(xe){return e.requestEmitHelper(lz),t.createCallExpression(s("__await"),void 0,[xe])}function z(xe,nt){return e.requestEmitHelper(lz),e.requestEmitHelper(T6t),(xe.emitNode||(xe.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[nt?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),xe])}function H(xe){return e.requestEmitHelper(lz),e.requestEmitHelper(w6t),t.createCallExpression(s("__asyncDelegator"),void 0,[xe])}function X(xe){return e.requestEmitHelper(k6t),t.createCallExpression(s("__asyncValues"),void 0,[xe])}function ne(xe,nt,pe,He){e.requestEmitHelper(C6t);let qe=[],je=0;for(let st=0;st<nt.length-1;st++){let jt=AY(nt[st]);if(jt)if(po(jt)){I.assertIsDefined(pe,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let ar=pe[je];je++,qe.push(t.createConditionalExpression(t.createTypeCheck(ar,"symbol"),void 0,ar,void 0,t.createAdd(ar,t.createStringLiteral(""))))}else qe.push(t.createStringLiteralFromNode(jt))}return t.createCallExpression(s("__rest"),void 0,[xe,Ot(t.createArrayLiteralExpression(qe),He)])}function ae(xe,nt,pe,He,qe){e.requestEmitHelper(P6t);let je=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,He??[],void 0,qe);return(je.emitNode||(je.emitNode={})).flags|=1572864,t.createCallExpression(s("__awaiter"),void 0,[xe?t.createThis():t.createVoidZero(),nt??t.createVoidZero(),pe?dM(t,pe):t.createVoidZero(),je])}function Y(xe){return e.requestEmitHelper(E6t),t.createCallExpression(s("__extends"),void 0,[xe,t.createUniqueName("_super",48)])}function Ee(xe,nt){return e.requestEmitHelper(D6t),t.createCallExpression(s("__makeTemplateObject"),void 0,[xe,nt])}function fe(xe,nt,pe){return e.requestEmitHelper(N6t),t.createCallExpression(s("__spreadArray"),void 0,[xe,nt,pe?n():i()])}function te(xe){return e.requestEmitHelper(A6t),t.createCallExpression(s("__propKey"),void 0,[xe])}function de(xe,nt,pe){return e.requestEmitHelper(I6t),e.factory.createCallExpression(s("__setFunctionName"),void 0,pe?[xe,nt,e.factory.createStringLiteral(pe)]:[xe,nt])}function me(xe){return e.requestEmitHelper(F6t),t.createCallExpression(s("__values"),void 0,[xe])}function ve(xe,nt){return e.requestEmitHelper(O6t),t.createCallExpression(s("__read"),void 0,nt!==void 0?[xe,t.createNumericLiteral(nt+"")]:[xe])}function Pe(xe){return e.requestEmitHelper(M6t),t.createCallExpression(s("__generator"),void 0,[t.createThis(),xe])}function Oe(xe){return e.requestEmitHelper(Nje),t.createCallExpression(s("__importStar"),void 0,[xe])}function ie(){return e.requestEmitHelper(Nje),s("__importStar")}function Ne(xe){return e.requestEmitHelper(j6t),t.createCallExpression(s("__importDefault"),void 0,[xe])}function it(xe,nt=t.createIdentifier("exports")){return e.requestEmitHelper(L6t),e.requestEmitHelper(xhe),t.createCallExpression(s("__exportStar"),void 0,[xe,nt])}function ze(xe,nt,pe,He){e.requestEmitHelper(B6t);let qe;return He?qe=[xe,nt,t.createStringLiteral(pe),He]:qe=[xe,nt,t.createStringLiteral(pe)],t.createCallExpression(s("__classPrivateFieldGet"),void 0,qe)}function ge(xe,nt,pe,He,qe){e.requestEmitHelper(q6t);let je;return qe?je=[xe,nt,pe,t.createStringLiteral(He),qe]:je=[xe,nt,pe,t.createStringLiteral(He)],t.createCallExpression(s("__classPrivateFieldSet"),void 0,je)}function Me(xe,nt){return e.requestEmitHelper(J6t),t.createCallExpression(s("__classPrivateFieldIn"),void 0,[xe,nt])}function Te(xe,nt,pe){return e.requestEmitHelper(z6t),t.createCallExpression(s("__addDisposableResource"),void 0,[xe,nt,pe?t.createTrue():t.createFalse()])}function gt(xe){return e.requestEmitHelper(W6t),t.createCallExpression(s("__disposeResources"),void 0,[xe])}function Tt(xe){return e.requestEmitHelper(U6t),t.createCallExpression(s("__rewriteRelativeImportExtension"),void 0,e.getCompilerOptions().jsx===1?[xe,t.createTrue()]:[xe])}}function bhe(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:mc(e.priority,t.priority)}function Oje(e,...t){return n=>{let i="";for(let s=0;s<t.length;s++)i+=e[s],i+=n(t[s]);return i+=e[e.length-1],i}}var h6t={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
|
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};`},y6t={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
|
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};`},v6t={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
|
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
};`},b6t={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
|
|
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
var _, done = false;
|
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
var context = {};
|
|
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
if (kind === "accessor") {
|
|
if (result === void 0) continue;
|
|
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
if (_ = accept(result.get)) descriptor.get = _;
|
|
if (_ = accept(result.set)) descriptor.set = _;
|
|
if (_ = accept(result.init)) initializers.unshift(_);
|
|
}
|
|
else if (_ = accept(result)) {
|
|
if (kind === "field") initializers.unshift(_);
|
|
else descriptor[key] = _;
|
|
}
|
|
}
|
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
done = true;
|
|
};`},x6t={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
|
|
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
var useValue = arguments.length > 2;
|
|
for (var i = 0; i < initializers.length; i++) {
|
|
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
}
|
|
return useValue ? value : void 0;
|
|
};`},S6t={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
|
|
var __assign = (this && this.__assign) || function () {
|
|
__assign = Object.assign || function(t) {
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
s = arguments[i];
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
t[p] = s[p];
|
|
}
|
|
return t;
|
|
};
|
|
return __assign.apply(this, arguments);
|
|
};`},lz={name:"typescript:await",importName:"__await",scoped:!1,text:`
|
|
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},T6t={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[lz],text:`
|
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
function fulfill(value) { resume("next", value); }
|
|
function reject(value) { resume("throw", value); }
|
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
};`},w6t={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[lz],text:`
|
|
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
var i, p;
|
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
};`},k6t={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
|
|
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
var m = o[Symbol.asyncIterator], i;
|
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
};`},C6t={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
|
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
var t = {};
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
t[p] = s[p];
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
t[p[i]] = s[p[i]];
|
|
}
|
|
return t;
|
|
};`},P6t={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
});
|
|
};`},E6t={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
|
|
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = function (d, b) {
|
|
extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
return extendStatics(d, b);
|
|
};
|
|
|
|
return function (d, b) {
|
|
if (typeof b !== "function" && b !== null)
|
|
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();`},D6t={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
|
|
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
return cooked;
|
|
};`},O6t={name:"typescript:read",importName:"__read",scoped:!1,text:`
|
|
var __read = (this && this.__read) || function (o, n) {
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
if (!m) return o;
|
|
var i = m.call(o), r, ar = [], e;
|
|
try {
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
}
|
|
catch (error) { e = { error: error }; }
|
|
finally {
|
|
try {
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
}
|
|
finally { if (e) throw e.error; }
|
|
}
|
|
return ar;
|
|
};`},N6t={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
|
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
if (ar || !(i in from)) {
|
|
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
ar[i] = from[i];
|
|
}
|
|
}
|
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
};`},A6t={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
|
|
var __propKey = (this && this.__propKey) || function (x) {
|
|
return typeof x === "symbol" ? x : "".concat(x);
|
|
};`},I6t={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
|
|
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
};`},F6t={name:"typescript:values",importName:"__values",scoped:!1,text:`
|
|
var __values = (this && this.__values) || function(o) {
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
if (m) return m.call(o);
|
|
if (o && typeof o.length === "number") return {
|
|
next: function () {
|
|
if (o && i >= o.length) o = void 0;
|
|
return { value: o && o[i++], done: !o };
|
|
}
|
|
};
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
};`},M6t={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
|
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
function step(op) {
|
|
if (f) throw new TypeError("Generator is already executing.");
|
|
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
switch (op[0]) {
|
|
case 0: case 1: t = op; break;
|
|
case 4: _.label++; return { value: op[1], done: false };
|
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
default:
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
if (t[2]) _.ops.pop();
|
|
_.trys.pop(); continue;
|
|
}
|
|
op = body.call(thisArg, _);
|
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
}
|
|
};`},xhe={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
}
|
|
Object.defineProperty(o, k2, desc);
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));`},R6t={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
|
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
}) : function(o, v) {
|
|
o["default"] = v;
|
|
});`},Nje={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xhe,R6t],priority:2,text:`
|
|
var __importStar = (this && this.__importStar) || (function () {
|
|
var ownKeys = function(o) {
|
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
var ar = [];
|
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
return ar;
|
|
};
|
|
return ownKeys(o);
|
|
};
|
|
return function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
__setModuleDefault(result, mod);
|
|
return result;
|
|
};
|
|
})();`},j6t={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};`},L6t={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[xhe],priority:2,text:`
|
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
};`},B6t={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
|
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
};`},q6t={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
|
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
};`},J6t={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
|
|
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
|
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
};`},z6t={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:`
|
|
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
if (value !== null && value !== void 0) {
|
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
var dispose, inner;
|
|
if (async) {
|
|
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
dispose = value[Symbol.asyncDispose];
|
|
}
|
|
if (dispose === void 0) {
|
|
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
dispose = value[Symbol.dispose];
|
|
if (async) inner = dispose;
|
|
}
|
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
}
|
|
else if (async) {
|
|
env.stack.push({ async: true });
|
|
}
|
|
return value;
|
|
};`},W6t={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:`
|
|
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
return function (env) {
|
|
function fail(e) {
|
|
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
env.hasError = true;
|
|
}
|
|
var r, s = 0;
|
|
function next() {
|
|
while (r = env.stack.pop()) {
|
|
try {
|
|
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
if (r.dispose) {
|
|
var result = r.dispose.call(r.value);
|
|
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
}
|
|
else s |= 1;
|
|
}
|
|
catch (e) {
|
|
fail(e);
|
|
}
|
|
}
|
|
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
if (env.hasError) throw env.error;
|
|
}
|
|
return next();
|
|
};
|
|
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
var e = new Error(message);
|
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
});`},U6t={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:`
|
|
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {
|
|
return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
});
|
|
}
|
|
return path;
|
|
};`},uz={name:"typescript:async-super",scoped:!0,text:Oje`
|
|
const ${"_superIndex"} = name => super[name];`},pz={name:"typescript:advanced-async-super",scoped:!0,text:Oje`
|
|
const ${"_superIndex"} = (function (geti, seti) {
|
|
const cache = Object.create(null);
|
|
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
|
|
})(name => super[name], (name, value) => super[name] = value);`};function V4(e,t){return Ls(e)&&Ye(e.expression)&&(Ao(e.expression)&8192)!==0&&e.expression.escapedText===t}function e_(e){return e.kind===9}function H4(e){return e.kind===10}function vo(e){return e.kind===11}function hE(e){return e.kind===12}function sY(e){return e.kind===14}function Bk(e){return e.kind===15}function yE(e){return e.kind===16}function oY(e){return e.kind===17}function fz(e){return e.kind===18}function _z(e){return e.kind===26}function She(e){return e.kind===28}function cY(e){return e.kind===40}function lY(e){return e.kind===41}function aM(e){return e.kind===42}function sM(e){return e.kind===54}function Tx(e){return e.kind===58}function The(e){return e.kind===59}function dz(e){return e.kind===29}function whe(e){return e.kind===39}function Ye(e){return e.kind===80}function Ca(e){return e.kind===81}function vE(e){return e.kind===95}function mz(e){return e.kind===90}function G4(e){return e.kind===134}function khe(e){return e.kind===131}function uY(e){return e.kind===135}function Che(e){return e.kind===148}function bE(e){return e.kind===126}function Phe(e){return e.kind===128}function Ehe(e){return e.kind===164}function Dhe(e){return e.kind===129}function K4(e){return e.kind===108}function Q4(e){return e.kind===102}function Ohe(e){return e.kind===84}function If(e){return e.kind===166}function po(e){return e.kind===167}function Hc(e){return e.kind===168}function Da(e){return e.kind===169}function qu(e){return e.kind===170}function vf(e){return e.kind===171}function is(e){return e.kind===172}function yg(e){return e.kind===173}function wl(e){return e.kind===174}function Al(e){return e.kind===175}function ul(e){return e.kind===176}function mm(e){return e.kind===177}function v_(e){return e.kind===178}function xE(e){return e.kind===179}function oM(e){return e.kind===180}function wx(e){return e.kind===181}function SE(e){return e.kind===182}function W_(e){return e.kind===183}function Iy(e){return e.kind===184}function DN(e){return e.kind===185}function M2(e){return e.kind===186}function Ff(e){return e.kind===187}function cM(e){return e.kind===188}function TE(e){return e.kind===189}function ON(e){return e.kind===202}function gz(e){return e.kind===190}function hz(e){return e.kind===191}function M1(e){return e.kind===192}function wE(e){return e.kind===193}function R2(e){return e.kind===194}function qk(e){return e.kind===195}function Jk(e){return e.kind===196}function X4(e){return e.kind===197}function MS(e){return e.kind===198}function j2(e){return e.kind===199}function zk(e){return e.kind===200}function R1(e){return e.kind===201}function jh(e){return e.kind===205}function pY(e){return e.kind===204}function Nhe(e){return e.kind===203}function Nd(e){return e.kind===206}function j1(e){return e.kind===207}function Do(e){return e.kind===208}function kp(e){return e.kind===209}function So(e){return e.kind===210}function ai(e){return e.kind===211}function Nc(e){return e.kind===212}function Ls(e){return e.kind===213}function L2(e){return e.kind===214}function RS(e){return e.kind===215}function yz(e){return e.kind===216}function Mf(e){return e.kind===217}function Ic(e){return e.kind===218}function Bc(e){return e.kind===219}function Ahe(e){return e.kind===220}function NN(e){return e.kind===221}function kE(e){return e.kind===222}function kx(e){return e.kind===223}function jS(e){return e.kind===224}function fY(e){return e.kind===225}function Vn(e){return e.kind===226}function Wk(e){return e.kind===227}function vz(e){return e.kind===228}function lM(e){return e.kind===229}function gm(e){return e.kind===230}function vu(e){return e.kind===231}function Ju(e){return e.kind===232}function F0(e){return e.kind===233}function AN(e){return e.kind===234}function IN(e){return e.kind===238}function CE(e){return e.kind===235}function Y4(e){return e.kind===236}function Aje(e){return e.kind===237}function Ihe(e){return e.kind===355}function Z4(e){return e.kind===356}function FN(e){return e.kind===239}function Fhe(e){return e.kind===240}function Cs(e){return e.kind===241}function Rl(e){return e.kind===243}function _Y(e){return e.kind===242}function Zu(e){return e.kind===244}function LS(e){return e.kind===245}function Ije(e){return e.kind===246}function dY(e){return e.kind===247}function BS(e){return e.kind===248}function bz(e){return e.kind===249}function uM(e){return e.kind===250}function Fje(e){return e.kind===251}function Mje(e){return e.kind===252}function md(e){return e.kind===253}function Mhe(e){return e.kind===254}function e3(e){return e.kind===255}function Cx(e){return e.kind===256}function mY(e){return e.kind===257}function Uk(e){return e.kind===258}function Rje(e){return e.kind===259}function Ui(e){return e.kind===260}function mp(e){return e.kind===261}function jl(e){return e.kind===262}function bu(e){return e.kind===263}function Cp(e){return e.kind===264}function Wm(e){return e.kind===265}function B2(e){return e.kind===266}function cu(e){return e.kind===267}function Lh(e){return e.kind===268}function t3(e){return e.kind===269}function pM(e){return e.kind===270}function zu(e){return e.kind===271}function sl(e){return e.kind===272}function vg(e){return e.kind===273}function jje(e){return e.kind===302}function Rhe(e){return e.kind===300}function Lje(e){return e.kind===301}function $k(e){return e.kind===300}function jhe(e){return e.kind===301}function jv(e){return e.kind===274}function Fy(e){return e.kind===280}function Bh(e){return e.kind===275}function bf(e){return e.kind===276}function Gc(e){return e.kind===277}function tu(e){return e.kind===278}function hm(e){return e.kind===279}function Yp(e){return e.kind===281}function xz(e){return e.kind===80||e.kind===11}function Bje(e){return e.kind===282}function Lhe(e){return e.kind===353}function PE(e){return e.kind===357}function M0(e){return e.kind===283}function qh(e){return e.kind===284}function Vk(e){return e.kind===285}function Vg(e){return e.kind===286}function q2(e){return e.kind===287}function qS(e){return e.kind===288}function bg(e){return e.kind===289}function Bhe(e){return e.kind===290}function Jh(e){return e.kind===291}function J2(e){return e.kind===292}function EE(e){return e.kind===293}function MN(e){return e.kind===294}function Hg(e){return e.kind===295}function RN(e){return e.kind===296}function r3(e){return e.kind===297}function U_(e){return e.kind===298}function z2(e){return e.kind===299}function xu(e){return e.kind===303}function Jp(e){return e.kind===304}function Lv(e){return e.kind===305}function L1(e){return e.kind===306}function ba(e){return e.kind===307}function qhe(e){return e.kind===308}function JS(e){return e.kind===309}function n3(e){return e.kind===310}function zS(e){return e.kind===311}function Jhe(e){return e.kind===324}function zhe(e){return e.kind===325}function qje(e){return e.kind===326}function Whe(e){return e.kind===312}function Uhe(e){return e.kind===313}function jN(e){return e.kind===314}function Sz(e){return e.kind===315}function gY(e){return e.kind===316}function LN(e){return e.kind===317}function Tz(e){return e.kind===318}function Jje(e){return e.kind===319}function Gg(e){return e.kind===320}function Hk(e){return e.kind===322}function B1(e){return e.kind===323}function DE(e){return e.kind===328}function zje(e){return e.kind===330}function $he(e){return e.kind===332}function hY(e){return e.kind===338}function yY(e){return e.kind===333}function vY(e){return e.kind===334}function bY(e){return e.kind===335}function xY(e){return e.kind===336}function wz(e){return e.kind===337}function BN(e){return e.kind===339}function SY(e){return e.kind===331}function Wje(e){return e.kind===347}function fM(e){return e.kind===340}function Ad(e){return e.kind===341}function kz(e){return e.kind===342}function TY(e){return e.kind===343}function i3(e){return e.kind===344}function Um(e){return e.kind===345}function Gk(e){return e.kind===346}function Uje(e){return e.kind===327}function Vhe(e){return e.kind===348}function Cz(e){return e.kind===329}function Pz(e){return e.kind===350}function $je(e){return e.kind===349}function zh(e){return e.kind===351}function qN(e){return e.kind===352}var a3=new WeakMap;function wY(e,t){var n;let i=e.kind;return dq(i)?i===352?e._children:(n=a3.get(t))==null?void 0:n.get(e):ce}function Hhe(e,t,n){e.kind===352&&I.fail("Should not need to re-set the children of a SyntaxList.");let i=a3.get(t);return i===void 0&&(i=new WeakMap,a3.set(t,i)),i.set(e,n),n}function kY(e,t){var n;e.kind===352&&I.fail("Did not expect to unset the children of a SyntaxList."),(n=a3.get(t))==null||n.delete(e)}function Ghe(e,t){let n=a3.get(e);n!==void 0&&(a3.delete(e),a3.set(t,n))}function _M(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function Kk(e,t,n,i){if(po(n))return Ot(e.createElementAccessExpression(t,n.expression),i);{let s=Ot(xv(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return Mh(s,128),s}}function Khe(e,t){let n=US.createIdentifier(e||"React");return Xo(n,ds(t)),n}function Qhe(e,t,n){if(If(t)){let i=Qhe(e,t.left,n),s=e.createIdentifier(fi(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return Khe(fi(t),n)}function CY(e,t,n,i){return t?Qhe(e,t,i):e.createPropertyAccessExpression(Khe(n,i),"createElement")}function $6t(e,t,n,i){return t?Qhe(e,t,i):e.createPropertyAccessExpression(Khe(n,i),"Fragment")}function Xhe(e,t,n,i,s,l){let p=[n];if(i&&p.push(i),s&&s.length>0)if(i||p.push(e.createNull()),s.length>1)for(let g of s)Zp(g),p.push(g);else p.push(s[0]);return Ot(e.createCallExpression(t,void 0,p),l)}function Yhe(e,t,n,i,s,l,p){let m=[$6t(e,n,i,l),e.createNull()];if(s&&s.length>0)if(s.length>1)for(let x of s)Zp(x),m.push(x);else m.push(s[0]);return Ot(e.createCallExpression(CY(e,t,i,l),void 0,m),p)}function PY(e,t,n){if(mp(t)){let i=ho(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return Ot(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{let i=Ot(e.createAssignment(t,n),t);return Ot(e.createExpressionStatement(i),t)}}function dM(e,t){if(If(t)){let n=dM(e,t.left),i=Xo(Ot(e.cloneNode(t.right),t.right),t.right.parent);return Ot(e.createPropertyAccessExpression(n,i),t)}else return Xo(Ot(e.cloneNode(t),t),t.parent)}function EY(e,t){return Ye(t)?e.createStringLiteralFromNode(t):po(t)?Xo(Ot(e.cloneNode(t.expression),t.expression),t.expression.parent):Xo(Ot(e.cloneNode(t),t),t.parent)}function V6t(e,t,n,i,s){let{firstAccessor:l,getAccessor:p,setAccessor:g}=E2(t,n);if(n===l)return Ot(e.createObjectDefinePropertyCall(i,EY(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:p&&Ot(ii(e.createFunctionExpression(u2(p),void 0,void 0,void 0,p.parameters,void 0,p.body),p),p),set:g&&Ot(ii(e.createFunctionExpression(u2(g),void 0,void 0,void 0,g.parameters,void 0,g.body),g),g)},!s)),l)}function H6t(e,t,n){return ii(Ot(e.createAssignment(Kk(e,n,t.name,t.name),t.initializer),t),t)}function G6t(e,t,n){return ii(Ot(e.createAssignment(Kk(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function K6t(e,t,n){return ii(Ot(e.createAssignment(Kk(e,n,t.name,t.name),ii(Ot(e.createFunctionExpression(u2(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Zhe(e,t,n,i){switch(n.name&&Ca(n.name)&&I.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return V6t(e,t.properties,n,i,!!t.multiLine);case 303:return H6t(e,n,i);case 304:return G6t(e,n,i);case 174:return K6t(e,n,i)}}function Ez(e,t,n,i,s){let l=t.operator;I.assert(l===46||l===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let p=e.createTempVariable(i);n=e.createAssignment(p,n),Ot(n,t.operand);let g=jS(t)?e.createPrefixUnaryExpression(l,p):e.createPostfixUnaryExpression(p,l);return Ot(g,t),s&&(g=e.createAssignment(s,g),Ot(g,t)),n=e.createComma(n,g),Ot(n,t),fY(t)&&(n=e.createComma(n,p),Ot(n,t)),n}function DY(e){return(Ao(e)&65536)!==0}function R0(e){return(Ao(e)&32768)!==0}function Dz(e){return(Ao(e)&16384)!==0}function Vje(e){return vo(e.expression)&&e.expression.text==="use strict"}function OY(e){for(let t of e)if(Ph(t)){if(Vje(t))return t}else break}function eye(e){let t=Yl(e);return t!==void 0&&Ph(t)&&Vje(t)}function mM(e){return e.kind===226&&e.operatorToken.kind===28}function s3(e){return mM(e)||Z4(e)}function W2(e){return Mf(e)&&jn(e)&&!!xS(e)}function JN(e){let t=rx(e);return I.assertIsDefined(t),t}function Oz(e,t=63){switch(e.kind){case 217:return t&-2147483648&&W2(e)?!1:(t&1)!==0;case 216:case 234:return(t&2)!==0;case 238:return(t&34)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function Ll(e,t=63){for(;Oz(e,t);)e=e.expression;return e}function tye(e,t=63){let n=e.parent;for(;Oz(n,t);)n=n.parent,I.assert(n);return n}function Zp(e){return cz(e,!0)}function gM(e){let t=al(e,ba),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function rye(e){let t=al(e,ba),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function NY(e,t,n,i,s,l,p){if(i.importHelpers&&rN(n,i)){let g=hf(i),m=nC(n,i),x=Q6t(n);if(g>=5&&g<=99||m===99||m===void 0&&g===200){if(x){let b=[];for(let S of x){let P=S.importName;P&&I_(b,P)}if(Pt(b)){b.sort(fp);let S=e.createNamedImports(Dt(b,F=>Nq(n,F)?e.createImportSpecifier(!1,void 0,e.createIdentifier(F)):e.createImportSpecifier(!1,e.createIdentifier(F),t.getUnscopedHelperName(F)))),P=al(n,ba),E=qp(P);E.externalHelpers=!0;let N=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,S),e.createStringLiteral(lx),void 0);return jk(N,2),N}}}else{let b=X6t(e,n,i,x,s,l||p);if(b){let S=e.createImportEqualsDeclaration(void 0,!1,b,e.createExternalModuleReference(e.createStringLiteral(lx)));return jk(S,2),S}}}}function Q6t(e){return Cn(rY(e),t=>!t.scoped)}function X6t(e,t,n,i,s,l){let p=gM(t);if(p)return p;if(Pt(i)||(s||Av(n)&&l)&&O3(t,n)<4){let m=al(t,ba),x=qp(m);return x.externalHelpersModuleName||(x.externalHelpersModuleName=e.createUniqueName(lx))}}function zN(e,t,n){let i=uN(t);if(i&&!Dk(t)&&!Iq(t)){let s=i.name;return s.kind===11?e.getGeneratedNameForNode(t):Xc(s)?s:e.createIdentifier(m2(n,s)||fi(s))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function OE(e,t,n,i,s,l){let p=KP(t);if(p&&vo(p))return Z6t(t,i,e,s,l)||Y6t(e,p,n)||e.cloneNode(p)}function Y6t(e,t,n){let i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function hM(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(KQ(n,t.fileName))}}function Z6t(e,t,n,i,s){return hM(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function yM(e){if(NF(e))return e.initializer;if(xu(e)){let t=e.initializer;return Yu(t,!0)?t.right:void 0}if(Jp(e))return e.objectAssignmentInitializer;if(Yu(e,!0))return e.right;if(gm(e))return yM(e.expression)}function Px(e){if(NF(e))return e.name;if(k0(e)){switch(e.kind){case 303:return Px(e.initializer);case 304:return e.name;case 305:return Px(e.expression)}return}return Yu(e,!0)?Px(e.left):gm(e)?Px(e.expression):e}function Nz(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function AY(e){let t=Az(e);return I.assert(!!t||Lv(e),"Invalid property name for binding element."),t}function Az(e){switch(e.kind){case 208:if(e.propertyName){let n=e.propertyName;return Ca(n)?I.failBadSyntaxKind(n):po(n)&&Hje(n.expression)?n.expression:n}break;case 303:if(e.name){let n=e.name;return Ca(n)?I.failBadSyntaxKind(n):po(n)&&Hje(n.expression)?n.expression:n}break;case 305:return e.name&&Ca(e.name)?I.failBadSyntaxKind(e.name):e.name}let t=Px(e);if(t&&su(t))return t}function Hje(e){let t=e.kind;return t===11||t===9}function WN(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function IY(e){if(e){let t=e;for(;;){if(Ye(t)||!t.body)return Ye(t)?t:t.name;t=t.body}}}function Gje(e){let t=e.kind;return t===176||t===178}function nye(e){let t=e.kind;return t===176||t===177||t===178}function FY(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function iye(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function aye(e){return Tx(e)||sM(e)}function sye(e){return Ye(e)||X4(e)}function oye(e){return Che(e)||cY(e)||lY(e)}function cye(e){return Tx(e)||cY(e)||lY(e)}function lye(e){return Ye(e)||vo(e)}function eIt(e){return e===43}function tIt(e){return e===42||e===44||e===45}function rIt(e){return eIt(e)||tIt(e)}function nIt(e){return e===40||e===41}function iIt(e){return nIt(e)||rIt(e)}function aIt(e){return e===48||e===49||e===50}function MY(e){return aIt(e)||iIt(e)}function sIt(e){return e===30||e===33||e===32||e===34||e===104||e===103}function oIt(e){return sIt(e)||MY(e)}function cIt(e){return e===35||e===37||e===36||e===38}function lIt(e){return cIt(e)||oIt(e)}function uIt(e){return e===51||e===52||e===53}function pIt(e){return uIt(e)||lIt(e)}function fIt(e){return e===56||e===57}function _It(e){return fIt(e)||pIt(e)}function dIt(e){return e===61||_It(e)||O0(e)}function mIt(e){return dIt(e)||e===28}function uye(e){return mIt(e.kind)}var RY;(e=>{function t(b,S,P,E,N,F,M){let L=S>0?N[S-1]:void 0;return I.assertEqual(P[S],t),N[S]=b.onEnter(E[S],L,M),P[S]=g(b,t),S}e.enter=t;function n(b,S,P,E,N,F,M){I.assertEqual(P[S],n),I.assertIsDefined(b.onLeft),P[S]=g(b,n);let L=b.onLeft(E[S].left,N[S],E[S]);return L?(x(S,E,L),m(S,P,E,N,L)):S}e.left=n;function i(b,S,P,E,N,F,M){return I.assertEqual(P[S],i),I.assertIsDefined(b.onOperator),P[S]=g(b,i),b.onOperator(E[S].operatorToken,N[S],E[S]),S}e.operator=i;function s(b,S,P,E,N,F,M){I.assertEqual(P[S],s),I.assertIsDefined(b.onRight),P[S]=g(b,s);let L=b.onRight(E[S].right,N[S],E[S]);return L?(x(S,E,L),m(S,P,E,N,L)):S}e.right=s;function l(b,S,P,E,N,F,M){I.assertEqual(P[S],l),P[S]=g(b,l);let L=b.onExit(E[S],N[S]);if(S>0){if(S--,b.foldState){let W=P[S]===l?"right":"left";N[S]=b.foldState(N[S],L,W)}}else F.value=L;return S}e.exit=l;function p(b,S,P,E,N,F,M){return I.assertEqual(P[S],p),S}e.done=p;function g(b,S){switch(S){case t:if(b.onLeft)return n;case n:if(b.onOperator)return i;case i:if(b.onRight)return s;case s:return l;case l:return p;case p:return p;default:I.fail("Invalid state")}}e.nextState=g;function m(b,S,P,E,N){return b++,S[b]=t,P[b]=N,E[b]=void 0,b}function x(b,S,P){if(I.shouldAssert(2))for(;b>=0;)I.assert(S[b]!==P,"Circular traversal detected."),b--}})(RY||(RY={}));var gIt=class{constructor(e,t,n,i,s,l){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=l}};function Iz(e,t,n,i,s,l){let p=new gIt(e,t,n,i,s,l);return g;function g(m,x){let b={value:void 0},S=[RY.enter],P=[m],E=[void 0],N=0;for(;S[N]!==RY.done;)N=S[N](p,N,S,P,E,b,x);return I.assertEqual(N,0),b.value}}function hIt(e){return e===95||e===90}function vM(e){let t=e.kind;return hIt(t)}function pye(e,t){if(t!==void 0)return t.length===0?t:Ot(e.createNodeArray([],t.hasTrailingComma),t)}function bM(e){var t;let n=e.emitNode.autoGenerate;if(n.flags&4){let i=n.id,s=e,l=s.original;for(;l;){s=l;let p=(t=s.emitNode)==null?void 0:t.autoGenerate;if(xv(s)&&(p===void 0||p.flags&4&&p.id!==i))break;l=s.original}return s}return e}function UN(e,t){return typeof e=="object"?WS(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function yIt(e,t){return typeof e=="string"?e:vIt(e,I.checkDefined(t))}function vIt(e,t){return yk(e)?t(e).slice(1):Xc(e)?t(e):Ca(e)?e.escapedText.slice(1):fi(e)}function WS(e,t,n,i,s){return t=UN(t,s),i=UN(i,s),n=yIt(n,s),`${e?"#":""}${t}${n}${i}`}function jY(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function fye(e,t,n,i,s=e.createThis()){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function _ye(e,t,n,i,s=e.createThis()){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function Fz(e){let t=e.expression;for(;;){if(t=Ll(t),Z4(t)){t=ao(t.elements);continue}if(mM(t)){t=t.right;continue}if(Yu(t,!0)&&Xc(t.left))return t;break}}function bIt(e){return Mf(e)&&Pc(e)&&!e.emitNode}function Mz(e,t){if(bIt(e))Mz(e.expression,t);else if(mM(e))Mz(e.left,t),Mz(e.right,t);else if(Z4(e))for(let n of e.elements)Mz(n,t);else t.push(e)}function dye(e){let t=[];return Mz(e,t),t}function xM(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of WN(e)){let n=Px(t);if(n&&XI(n)&&(n.transformFlags&65536||n.transformFlags&128&&xM(n)))return!0}return!1}function Ot(e,t){return t?$g(e,t.pos,t.end):e}function $m(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function U2(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var Kje,Qje,Xje,Yje,Zje,mye={createBaseSourceFileNode:e=>new(Zje||(Zje=wp.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Xje||(Xje=wp.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Yje||(Yje=wp.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Qje||(Qje=wp.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Kje||(Kje=wp.getNodeConstructor()))(e,-1,-1)},US=Z5(1,mye);function wr(e,t){return t&&e(t)}function xa(e,t,n){if(n){if(t)return t(n);for(let i of n){let s=e(i);if(s)return s}}}function LY(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function SM(e){return Ge(e.statements,xIt)||SIt(e)}function xIt(e){return $m(e)&&TIt(e,95)||zu(e)&&M0(e.moduleReference)||sl(e)||Gc(e)||tu(e)?e:void 0}function SIt(e){return e.flags&8388608?eLe(e):void 0}function eLe(e){return wIt(e)?e:xs(e,eLe)}function TIt(e,t){return Pt(e.modifiers,n=>n.kind===t)}function wIt(e){return Y4(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var kIt={166:function(t,n,i){return wr(n,t.left)||wr(n,t.right)},168:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.constraint)||wr(n,t.default)||wr(n,t.expression)},304:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.questionToken)||wr(n,t.exclamationToken)||wr(n,t.equalsToken)||wr(n,t.objectAssignmentInitializer)},305:function(t,n,i){return wr(n,t.expression)},169:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.dotDotDotToken)||wr(n,t.name)||wr(n,t.questionToken)||wr(n,t.type)||wr(n,t.initializer)},172:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.questionToken)||wr(n,t.exclamationToken)||wr(n,t.type)||wr(n,t.initializer)},171:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.questionToken)||wr(n,t.type)||wr(n,t.initializer)},303:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.questionToken)||wr(n,t.exclamationToken)||wr(n,t.initializer)},260:function(t,n,i){return wr(n,t.name)||wr(n,t.exclamationToken)||wr(n,t.type)||wr(n,t.initializer)},208:function(t,n,i){return wr(n,t.dotDotDotToken)||wr(n,t.propertyName)||wr(n,t.name)||wr(n,t.initializer)},181:function(t,n,i){return xa(n,i,t.modifiers)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)},185:function(t,n,i){return xa(n,i,t.modifiers)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)},184:function(t,n,i){return xa(n,i,t.modifiers)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)},179:tLe,180:tLe,174:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.asteriskToken)||wr(n,t.name)||wr(n,t.questionToken)||wr(n,t.exclamationToken)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)||wr(n,t.body)},173:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.questionToken)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)},176:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)||wr(n,t.body)},177:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)||wr(n,t.body)},178:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)||wr(n,t.body)},262:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.asteriskToken)||wr(n,t.name)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)||wr(n,t.body)},218:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.asteriskToken)||wr(n,t.name)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)||wr(n,t.body)},219:function(t,n,i){return xa(n,i,t.modifiers)||xa(n,i,t.typeParameters)||xa(n,i,t.parameters)||wr(n,t.type)||wr(n,t.equalsGreaterThanToken)||wr(n,t.body)},175:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.body)},183:function(t,n,i){return wr(n,t.typeName)||xa(n,i,t.typeArguments)},182:function(t,n,i){return wr(n,t.assertsModifier)||wr(n,t.parameterName)||wr(n,t.type)},186:function(t,n,i){return wr(n,t.exprName)||xa(n,i,t.typeArguments)},187:function(t,n,i){return xa(n,i,t.members)},188:function(t,n,i){return wr(n,t.elementType)},189:function(t,n,i){return xa(n,i,t.elements)},192:rLe,193:rLe,194:function(t,n,i){return wr(n,t.checkType)||wr(n,t.extendsType)||wr(n,t.trueType)||wr(n,t.falseType)},195:function(t,n,i){return wr(n,t.typeParameter)},205:function(t,n,i){return wr(n,t.argument)||wr(n,t.attributes)||wr(n,t.qualifier)||xa(n,i,t.typeArguments)},302:function(t,n,i){return wr(n,t.assertClause)},196:nLe,198:nLe,199:function(t,n,i){return wr(n,t.objectType)||wr(n,t.indexType)},200:function(t,n,i){return wr(n,t.readonlyToken)||wr(n,t.typeParameter)||wr(n,t.nameType)||wr(n,t.questionToken)||wr(n,t.type)||xa(n,i,t.members)},201:function(t,n,i){return wr(n,t.literal)},202:function(t,n,i){return wr(n,t.dotDotDotToken)||wr(n,t.name)||wr(n,t.questionToken)||wr(n,t.type)},206:iLe,207:iLe,209:function(t,n,i){return xa(n,i,t.elements)},210:function(t,n,i){return xa(n,i,t.properties)},211:function(t,n,i){return wr(n,t.expression)||wr(n,t.questionDotToken)||wr(n,t.name)},212:function(t,n,i){return wr(n,t.expression)||wr(n,t.questionDotToken)||wr(n,t.argumentExpression)},213:aLe,214:aLe,215:function(t,n,i){return wr(n,t.tag)||wr(n,t.questionDotToken)||xa(n,i,t.typeArguments)||wr(n,t.template)},216:function(t,n,i){return wr(n,t.type)||wr(n,t.expression)},217:function(t,n,i){return wr(n,t.expression)},220:function(t,n,i){return wr(n,t.expression)},221:function(t,n,i){return wr(n,t.expression)},222:function(t,n,i){return wr(n,t.expression)},224:function(t,n,i){return wr(n,t.operand)},229:function(t,n,i){return wr(n,t.asteriskToken)||wr(n,t.expression)},223:function(t,n,i){return wr(n,t.expression)},225:function(t,n,i){return wr(n,t.operand)},226:function(t,n,i){return wr(n,t.left)||wr(n,t.operatorToken)||wr(n,t.right)},234:function(t,n,i){return wr(n,t.expression)||wr(n,t.type)},235:function(t,n,i){return wr(n,t.expression)},238:function(t,n,i){return wr(n,t.expression)||wr(n,t.type)},236:function(t,n,i){return wr(n,t.name)},227:function(t,n,i){return wr(n,t.condition)||wr(n,t.questionToken)||wr(n,t.whenTrue)||wr(n,t.colonToken)||wr(n,t.whenFalse)},230:function(t,n,i){return wr(n,t.expression)},241:sLe,268:sLe,307:function(t,n,i){return xa(n,i,t.statements)||wr(n,t.endOfFileToken)},243:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.declarationList)},261:function(t,n,i){return xa(n,i,t.declarations)},244:function(t,n,i){return wr(n,t.expression)},245:function(t,n,i){return wr(n,t.expression)||wr(n,t.thenStatement)||wr(n,t.elseStatement)},246:function(t,n,i){return wr(n,t.statement)||wr(n,t.expression)},247:function(t,n,i){return wr(n,t.expression)||wr(n,t.statement)},248:function(t,n,i){return wr(n,t.initializer)||wr(n,t.condition)||wr(n,t.incrementor)||wr(n,t.statement)},249:function(t,n,i){return wr(n,t.initializer)||wr(n,t.expression)||wr(n,t.statement)},250:function(t,n,i){return wr(n,t.awaitModifier)||wr(n,t.initializer)||wr(n,t.expression)||wr(n,t.statement)},251:oLe,252:oLe,253:function(t,n,i){return wr(n,t.expression)},254:function(t,n,i){return wr(n,t.expression)||wr(n,t.statement)},255:function(t,n,i){return wr(n,t.expression)||wr(n,t.caseBlock)},269:function(t,n,i){return xa(n,i,t.clauses)},296:function(t,n,i){return wr(n,t.expression)||xa(n,i,t.statements)},297:function(t,n,i){return xa(n,i,t.statements)},256:function(t,n,i){return wr(n,t.label)||wr(n,t.statement)},257:function(t,n,i){return wr(n,t.expression)},258:function(t,n,i){return wr(n,t.tryBlock)||wr(n,t.catchClause)||wr(n,t.finallyBlock)},299:function(t,n,i){return wr(n,t.variableDeclaration)||wr(n,t.block)},170:function(t,n,i){return wr(n,t.expression)},263:cLe,231:cLe,264:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||xa(n,i,t.typeParameters)||xa(n,i,t.heritageClauses)||xa(n,i,t.members)},265:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||xa(n,i,t.typeParameters)||wr(n,t.type)},266:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||xa(n,i,t.members)},306:function(t,n,i){return wr(n,t.name)||wr(n,t.initializer)},267:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.body)},271:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)||wr(n,t.moduleReference)},272:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.importClause)||wr(n,t.moduleSpecifier)||wr(n,t.attributes)},273:function(t,n,i){return wr(n,t.name)||wr(n,t.namedBindings)},300:function(t,n,i){return xa(n,i,t.elements)},301:function(t,n,i){return wr(n,t.name)||wr(n,t.value)},270:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.name)},274:function(t,n,i){return wr(n,t.name)},280:function(t,n,i){return wr(n,t.name)},275:lLe,279:lLe,278:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.exportClause)||wr(n,t.moduleSpecifier)||wr(n,t.attributes)},276:uLe,281:uLe,277:function(t,n,i){return xa(n,i,t.modifiers)||wr(n,t.expression)},228:function(t,n,i){return wr(n,t.head)||xa(n,i,t.templateSpans)},239:function(t,n,i){return wr(n,t.expression)||wr(n,t.literal)},203:function(t,n,i){return wr(n,t.head)||xa(n,i,t.templateSpans)},204:function(t,n,i){return wr(n,t.type)||wr(n,t.literal)},167:function(t,n,i){return wr(n,t.expression)},298:function(t,n,i){return xa(n,i,t.types)},233:function(t,n,i){return wr(n,t.expression)||xa(n,i,t.typeArguments)},283:function(t,n,i){return wr(n,t.expression)},282:function(t,n,i){return xa(n,i,t.modifiers)},356:function(t,n,i){return xa(n,i,t.elements)},284:function(t,n,i){return wr(n,t.openingElement)||xa(n,i,t.children)||wr(n,t.closingElement)},288:function(t,n,i){return wr(n,t.openingFragment)||xa(n,i,t.children)||wr(n,t.closingFragment)},285:pLe,286:pLe,292:function(t,n,i){return xa(n,i,t.properties)},291:function(t,n,i){return wr(n,t.name)||wr(n,t.initializer)},293:function(t,n,i){return wr(n,t.expression)},294:function(t,n,i){return wr(n,t.dotDotDotToken)||wr(n,t.expression)},287:function(t,n,i){return wr(n,t.tagName)},295:function(t,n,i){return wr(n,t.namespace)||wr(n,t.name)},190:o3,191:o3,309:o3,315:o3,314:o3,316:o3,318:o3,317:function(t,n,i){return xa(n,i,t.parameters)||wr(n,t.type)},320:function(t,n,i){return(typeof t.comment=="string"?void 0:xa(n,i,t.comment))||xa(n,i,t.tags)},347:function(t,n,i){return wr(n,t.tagName)||wr(n,t.name)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment))},310:function(t,n,i){return wr(n,t.name)},311:function(t,n,i){return wr(n,t.left)||wr(n,t.right)},341:fLe,348:fLe,330:function(t,n,i){return wr(n,t.tagName)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment))},329:function(t,n,i){return wr(n,t.tagName)||wr(n,t.class)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment))},328:function(t,n,i){return wr(n,t.tagName)||wr(n,t.class)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment))},345:function(t,n,i){return wr(n,t.tagName)||wr(n,t.constraint)||xa(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment))},346:function(t,n,i){return wr(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?wr(n,t.typeExpression)||wr(n,t.fullName)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment)):wr(n,t.fullName)||wr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment)))},338:function(t,n,i){return wr(n,t.tagName)||wr(n,t.fullName)||wr(n,t.typeExpression)||(typeof t.comment=="string"?void 0:xa(n,i,t.comment))},342:c3,344:c3,343:c3,340:c3,350:c3,349:c3,339:c3,323:function(t,n,i){return Ge(t.typeParameters,n)||Ge(t.parameters,n)||wr(n,t.type)},324:gye,325:gye,326:gye,322:function(t,n,i){return Ge(t.jsDocPropertyTags,n)},327:$N,332:$N,333:$N,334:$N,335:$N,336:$N,331:$N,337:$N,351:CIt,355:PIt};function tLe(e,t,n){return xa(t,n,e.typeParameters)||xa(t,n,e.parameters)||wr(t,e.type)}function rLe(e,t,n){return xa(t,n,e.types)}function nLe(e,t,n){return wr(t,e.type)}function iLe(e,t,n){return xa(t,n,e.elements)}function aLe(e,t,n){return wr(t,e.expression)||wr(t,e.questionDotToken)||xa(t,n,e.typeArguments)||xa(t,n,e.arguments)}function sLe(e,t,n){return xa(t,n,e.statements)}function oLe(e,t,n){return wr(t,e.label)}function cLe(e,t,n){return xa(t,n,e.modifiers)||wr(t,e.name)||xa(t,n,e.typeParameters)||xa(t,n,e.heritageClauses)||xa(t,n,e.members)}function lLe(e,t,n){return xa(t,n,e.elements)}function uLe(e,t,n){return wr(t,e.propertyName)||wr(t,e.name)}function pLe(e,t,n){return wr(t,e.tagName)||xa(t,n,e.typeArguments)||wr(t,e.attributes)}function o3(e,t,n){return wr(t,e.type)}function fLe(e,t,n){return wr(t,e.tagName)||(e.isNameFirst?wr(t,e.name)||wr(t,e.typeExpression):wr(t,e.typeExpression)||wr(t,e.name))||(typeof e.comment=="string"?void 0:xa(t,n,e.comment))}function c3(e,t,n){return wr(t,e.tagName)||wr(t,e.typeExpression)||(typeof e.comment=="string"?void 0:xa(t,n,e.comment))}function gye(e,t,n){return wr(t,e.name)}function $N(e,t,n){return wr(t,e.tagName)||(typeof e.comment=="string"?void 0:xa(t,n,e.comment))}function CIt(e,t,n){return wr(t,e.tagName)||wr(t,e.importClause)||wr(t,e.moduleSpecifier)||wr(t,e.attributes)||(typeof e.comment=="string"?void 0:xa(t,n,e.comment))}function PIt(e,t,n){return wr(t,e.expression)}function xs(e,t,n){if(e===void 0||e.kind<=165)return;let i=kIt[e.kind];return i===void 0?void 0:i(e,t,n)}function NE(e,t,n){let i=_Le(e),s=[];for(;s.length<i.length;)s.push(e);for(;i.length!==0;){let l=i.pop(),p=s.pop();if(cs(l)){if(n){let g=n(l,p);if(g){if(g==="skip")continue;return g}}for(let g=l.length-1;g>=0;--g)i.push(l[g]),s.push(p)}else{let g=t(l,p);if(g){if(g==="skip")continue;return g}if(l.kind>=166)for(let m of _Le(l))i.push(m),s.push(l)}}}function _Le(e){let t=[];return xs(e,n,n),t;function n(i){t.unshift(i)}}function dLe(e){e.externalModuleIndicator=SM(e)}function AE(e,t,n,i=!1,s){var l,p;(l=Fn)==null||l.push(Fn.Phase.Parse,"createSourceFile",{path:e},!0),Qc("beforeParse");let g,{languageVersion:m,setExternalModuleIndicator:x,impliedNodeFormat:b,jsDocParsingMode:S}=typeof n=="object"?n:{languageVersion:n};if(m===100)g=$S.parseSourceFile(e,t,m,void 0,i,6,Ko,S);else{let P=b===void 0?x:E=>(E.impliedNodeFormat=b,(x||dLe)(E));g=$S.parseSourceFile(e,t,m,void 0,i,s,P,S)}return Qc("afterParse"),R_("Parse","beforeParse","afterParse"),(p=Fn)==null||p.pop(),g}function IE(e,t){return $S.parseIsolatedEntityName(e,t)}function TM(e,t){return $S.parseJsonText(e,t)}function Du(e){return e.externalModuleIndicator!==void 0}function BY(e,t,n,i=!1){let s=qY.updateSourceFile(e,t,n,i);return s.flags|=e.flags&12582912,s}function hye(e,t,n){let i=$S.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&$S.fixupParentReferences(i.jsDoc),i}function mLe(e,t,n){return $S.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}var $S;(e=>{var t=bv(99,!0),n=40960,i,s,l,p,g;function m(se){return je++,se}var x={createBaseSourceFileNode:se=>m(new g(se,0,0)),createBaseIdentifierNode:se=>m(new l(se,0,0)),createBasePrivateIdentifierNode:se=>m(new p(se,0,0)),createBaseTokenNode:se=>m(new s(se,0,0)),createBaseNode:se=>m(new i(se,0,0))},b=Z5(11,x),{createNodeArray:S,createNumericLiteral:P,createStringLiteral:E,createLiteralLikeNode:N,createIdentifier:F,createPrivateIdentifier:M,createToken:L,createArrayLiteralExpression:W,createObjectLiteralExpression:z,createPropertyAccessExpression:H,createPropertyAccessChain:X,createElementAccessExpression:ne,createElementAccessChain:ae,createCallExpression:Y,createCallChain:Ee,createNewExpression:fe,createParenthesizedExpression:te,createBlock:de,createVariableStatement:me,createExpressionStatement:ve,createIfStatement:Pe,createWhileStatement:Oe,createForStatement:ie,createForOfStatement:Ne,createVariableDeclaration:it,createVariableDeclarationList:ze}=b,ge,Me,Te,gt,Tt,xe,nt,pe,He,qe,je,st,jt,ar,Or,nn,Ct=!0,pr=!1;function vn(se,Ae,et,Wt,vr=!1,Hr,bi,ga=0){var Qi;if(Hr=zJ(se,Hr),Hr===6){let Ja=ts(se,Ae,et,Wt,vr);return EM(Ja,(Qi=Ja.statements[0])==null?void 0:Qi.expression,Ja.parseDiagnostics,!1,void 0),Ja.referencedFiles=ce,Ja.typeReferenceDirectives=ce,Ja.libReferenceDirectives=ce,Ja.amdDependencies=ce,Ja.hasNoDefaultLib=!1,Ja.pragmas=mt,Ja}Gt(se,Ae,et,Wt,Hr,ga);let Zi=$a(et,vr,Hr,bi||dLe,ga);return hi(),Zi}e.parseSourceFile=vn;function ta(se,Ae){Gt("",se,Ae,void 0,1,0),Le();let et=xt(!0),Wt=re()===1&&!nt.length;return hi(),Wt?et:void 0}e.parseIsolatedEntityName=ta;function ts(se,Ae,et=2,Wt,vr=!1){Gt(se,Ae,et,Wt,6,0),Me=nn,Le();let Hr=$(),bi,ga;if(re()===1)bi=jo([],Hr,Hr),ga=el();else{let Ja;for(;re()!==1;){let zo;switch(re()){case 23:zo=dD();break;case 112:case 97:case 106:zo=el();break;case 41:or(()=>Le()===9&&Le()!==59)?zo=H0():zo=ob();break;case 9:case 11:if(or(()=>Le()!==59)){zo=Yt();break}default:zo=ob();break}Ja&&cs(Ja)?Ja.push(zo):Ja?Ja=[Ja,zo]:(Ja=zo,re()!==1&&lr(y.Unexpected_token))}let kc=cs(Ja)?fr(W(Ja),Hr):I.checkDefined(Ja),Cc=ve(kc);fr(Cc,Hr),bi=jo([Cc],Hr),ga=Kc(1,y.Unexpected_token)}let Qi=It(se,2,6,!1,bi,ga,Me,Ko);vr&&at(Qi),Qi.nodeCount=je,Qi.identifierCount=jt,Qi.identifiers=st,Qi.parseDiagnostics=oE(nt,Qi),pe&&(Qi.jsDocDiagnostics=oE(pe,Qi));let Zi=Qi;return hi(),Zi}e.parseJsonText=ts;function Gt(se,Ae,et,Wt,vr,Hr){switch(i=wp.getNodeConstructor(),s=wp.getTokenConstructor(),l=wp.getIdentifierConstructor(),p=wp.getPrivateIdentifierConstructor(),g=wp.getSourceFileConstructor(),ge=Zs(se),Te=Ae,gt=et,He=Wt,Tt=vr,xe=j5(vr),nt=[],ar=0,st=new Map,jt=0,je=0,Me=0,Ct=!0,Tt){case 1:case 2:nn=524288;break;case 6:nn=134742016;break;default:nn=0;break}pr=!1,t.setText(Te),t.setOnError(ke),t.setScriptTarget(gt),t.setLanguageVariant(xe),t.setScriptKind(Tt),t.setJSDocParsingMode(Hr)}function hi(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Te=void 0,gt=void 0,He=void 0,Tt=void 0,xe=void 0,Me=0,nt=void 0,pe=void 0,ar=0,st=void 0,Or=void 0,Ct=!0}function $a(se,Ae,et,Wt,vr){let Hr=Wu(ge);Hr&&(nn|=33554432),Me=nn,Le();let bi=Jc(0,Ym);I.assert(re()===1);let ga=Ke(),Qi=Wn(el(),ga),Zi=It(ge,se,et,Hr,bi,Qi,Me,Wt);return JY(Zi,Te),zY(Zi,Ja),Zi.commentDirectives=t.getCommentDirectives(),Zi.nodeCount=je,Zi.identifierCount=jt,Zi.identifiers=st,Zi.parseDiagnostics=oE(nt,Zi),Zi.jsDocParsingMode=vr,pe&&(Zi.jsDocDiagnostics=oE(pe,Zi)),Ae&&at(Zi),Zi;function Ja(kc,Cc,zo){nt.push(sE(ge,Te,kc,Cc,zo))}}let ui=!1;function Wn(se,Ae){if(!Ae)return se;I.assert(!se.jsDoc);let et=Bi(vQ(se,Te),Wt=>fu.parseJSDocComment(se,Wt.pos,Wt.end-Wt.pos));return et.length&&(se.jsDoc=et),ui&&(ui=!1,se.flags|=536870912),se}function Gi(se){let Ae=He,et=qY.createSyntaxCursor(se);He={currentNode:Ja};let Wt=[],vr=nt;nt=[];let Hr=0,bi=Qi(se.statements,0);for(;bi!==-1;){let kc=se.statements[Hr],Cc=se.statements[bi];ti(Wt,se.statements,Hr,bi),Hr=Zi(se.statements,bi);let zo=Va(vr,Ky=>Ky.start>=kc.pos),xm=zo>=0?Va(vr,Ky=>Ky.start>=Cc.pos,zo):-1;zo>=0&&ti(nt,vr,zo,xm>=0?xm:void 0),Pr(()=>{let Ky=nn;for(nn|=65536,t.resetTokenState(Cc.pos),Le();re()!==1;){let Zm=t.getTokenFullStart(),ip=Kl(0,Ym);if(Wt.push(ip),Zm===t.getTokenFullStart()&&Le(),Hr>=0){let oh=se.statements[Hr];if(ip.end===oh.pos)break;ip.end>oh.pos&&(Hr=Zi(se.statements,Hr+1))}}nn=Ky},2),bi=Hr>=0?Qi(se.statements,Hr):-1}if(Hr>=0){let kc=se.statements[Hr];ti(Wt,se.statements,Hr);let Cc=Va(vr,zo=>zo.start>=kc.pos);Cc>=0&&ti(nt,vr,Cc)}return He=Ae,b.updateSourceFile(se,Ot(S(Wt),se.statements));function ga(kc){return!(kc.flags&65536)&&!!(kc.transformFlags&67108864)}function Qi(kc,Cc){for(let zo=Cc;zo<kc.length;zo++)if(ga(kc[zo]))return zo;return-1}function Zi(kc,Cc){for(let zo=Cc;zo<kc.length;zo++)if(!ga(kc[zo]))return zo;return-1}function Ja(kc){let Cc=et.currentNode(kc);return Ct&&Cc&&ga(Cc)&&yye(Cc),Cc}}function at(se){IS(se,!0)}e.fixupParentReferences=at;function It(se,Ae,et,Wt,vr,Hr,bi,ga){let Qi=b.createSourceFile(vr,Hr,bi);if(BX(Qi,0,Te.length),Zi(Qi),!Wt&&Du(Qi)&&Qi.transformFlags&67108864){let Ja=Qi;Qi=Gi(Qi),Ja!==Qi&&Zi(Qi)}return Qi;function Zi(Ja){Ja.text=Te,Ja.bindDiagnostics=[],Ja.bindSuggestionDiagnostics=void 0,Ja.languageVersion=Ae,Ja.fileName=se,Ja.languageVariant=j5(et),Ja.isDeclarationFile=Wt,Ja.scriptKind=et,ga(Ja),Ja.setExternalModuleIndicator=ga}}function Cr(se,Ae){se?nn|=Ae:nn&=~Ae}function wn(se){Cr(se,8192)}function Di(se){Cr(se,16384)}function Pi(se){Cr(se,32768)}function da(se){Cr(se,65536)}function ks(se,Ae){let et=se&nn;if(et){Cr(!1,et);let Wt=Ae();return Cr(!0,et),Wt}return Ae()}function no(se,Ae){let et=se&~nn;if(et){Cr(!0,et);let Wt=Ae();return Cr(!1,et),Wt}return Ae()}function Vr(se){return ks(8192,se)}function _s(se){return no(8192,se)}function ft(se){return ks(131072,se)}function Qt(se){return no(131072,se)}function he(se){return no(16384,se)}function wt(se){return no(32768,se)}function oe(se){return no(65536,se)}function Ue(se){return ks(65536,se)}function pt(se){return no(81920,se)}function vt(se){return ks(81920,se)}function $t(se){return(nn&se)!==0}function Qe(){return $t(16384)}function Lt(){return $t(8192)}function Rt(){return $t(131072)}function Xt(){return $t(32768)}function ut(){return $t(65536)}function lr(se,...Ae){return We(t.getTokenStart(),t.getTokenEnd(),se,...Ae)}function In(se,Ae,et,...Wt){let vr=dc(nt),Hr;return(!vr||se!==vr.start)&&(Hr=sE(ge,Te,se,Ae,et,...Wt),nt.push(Hr)),pr=!0,Hr}function We(se,Ae,et,...Wt){return In(se,Ae-se,et,...Wt)}function qt(se,Ae,...et){We(se.pos,se.end,Ae,...et)}function ke(se,Ae,et){In(t.getTokenEnd(),Ae,se,et)}function $(){return t.getTokenFullStart()}function Ke(){return t.hasPrecedingJSDocComment()}function re(){return qe}function Ft(){return qe=t.scan()}function rr(se){return Le(),se()}function Le(){return Yf(qe)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&We(t.getTokenStart(),t.getTokenEnd(),y.Keywords_cannot_contain_escape_characters),Ft()}function kt(){return qe=t.scanJsDocToken()}function dr(se){return qe=t.scanJSDocCommentTextToken(se)}function kn(){return qe=t.reScanGreaterToken()}function Kr(){return qe=t.reScanSlashToken()}function yn(se){return qe=t.reScanTemplateToken(se)}function yt(){return qe=t.reScanLessThanToken()}function Bt(){return qe=t.reScanHashToken()}function cr(){return qe=t.scanJsxIdentifier()}function er(){return qe=t.scanJsxToken()}function zr(){return qe=t.scanJsxAttributeValue()}function Pr(se,Ae){let et=qe,Wt=nt.length,vr=pr,Hr=nn,bi=Ae!==0?t.lookAhead(se):t.tryScan(se);return I.assert(Hr===nn),(!bi||Ae!==0)&&(qe=et,Ae!==2&&(nt.length=Wt),pr=vr),bi}function or(se){return Pr(se,1)}function Mr(se){return Pr(se,0)}function Wr(){return re()===80?!0:re()>118}function $r(){return re()===80?!0:re()===127&&Qe()||re()===135&&ut()?!1:re()>118}function Sr(se,Ae,et=!0){return re()===se?(et&&Le(),!0):(Ae?lr(Ae):lr(y._0_expected,to(se)),!1)}let ji=Object.keys(tq).filter(se=>se.length>2);function Is(se){if(RS(se)){We(yo(Te,se.template.pos),se.template.end,y.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ae=Ye(se)?fi(se):void 0;if(!Ae||!m_(Ae,gt)){lr(y._0_expected,to(27));return}let et=yo(Te,se.pos);switch(Ae){case"const":case"let":case"var":We(et,se.end,y.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Xs(y.Interface_name_cannot_be_0,y.Interface_must_be_given_a_name,19);return;case"is":We(et,t.getTokenStart(),y.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Xs(y.Namespace_name_cannot_be_0,y.Namespace_must_be_given_a_name,19);return;case"type":Xs(y.Type_alias_name_cannot_be_0,y.Type_alias_must_be_given_a_name,64);return}let Wt=x0(Ae,ji,vc)??Ps(Ae);if(Wt){We(et,se.end,y.Unknown_keyword_or_identifier_Did_you_mean_0,Wt);return}re()!==0&&We(et,se.end,y.Unexpected_keyword_or_identifier)}function Xs(se,Ae,et){re()===et?lr(Ae):lr(se,t.getTokenValue())}function Ps(se){for(let Ae of ji)if(se.length>Ae.length+2&&La(se,Ae))return`${Ae} ${se.slice(Ae.length)}`}function Vl(se,Ae,et){if(re()===60&&!t.hasPrecedingLineBreak()){lr(y.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(re()===21){lr(y.Cannot_start_a_function_call_in_a_type_annotation),Le();return}if(Ae&&!as()){et?lr(y._0_expected,to(27)):lr(y.Expected_for_property_initializer);return}if(!Gs()){if(et){lr(y._0_expected,to(27));return}Is(se)}}function pl(se){return re()===se?(kt(),!0):(I.assert(aJ(se)),lr(y._0_expected,to(se)),!1)}function Bl(se,Ae,et,Wt){if(re()===Ae){Le();return}let vr=lr(y._0_expected,to(Ae));et&&vr&&Hs(vr,sE(ge,Te,Wt,1,y.The_parser_expected_to_find_a_1_to_match_the_0_token_here,to(se),to(Ae)))}function la(se){return re()===se?(Le(),!0):!1}function us(se){if(re()===se)return el()}function lu(se){if(re()===se)return Q_()}function Kc(se,Ae,et){return us(se)||hc(se,!1,Ae||y._0_expected,et||to(se))}function Ro(se){let Ae=lu(se);return Ae||(I.assert(aJ(se)),hc(se,!1,y._0_expected,to(se)))}function el(){let se=$(),Ae=re();return Le(),fr(L(Ae),se)}function Q_(){let se=$(),Ae=re();return kt(),fr(L(Ae),se)}function as(){return re()===27?!0:re()===20||re()===1||t.hasPrecedingLineBreak()}function Gs(){return as()?(re()===27&&Le(),!0):!1}function qo(){return Gs()||Sr(27)}function jo(se,Ae,et,Wt){let vr=S(se,Wt);return $g(vr,Ae,et??t.getTokenFullStart()),vr}function fr(se,Ae,et){return $g(se,Ae,et??t.getTokenFullStart()),nn&&(se.flags|=nn),pr&&(pr=!1,se.flags|=262144),se}function hc(se,Ae,et,...Wt){Ae?In(t.getTokenFullStart(),0,et,...Wt):et&&lr(et,...Wt);let vr=$(),Hr=se===80?F("",void 0):ix(se)?b.createTemplateLiteralLikeNode(se,"","",void 0):se===9?P("",void 0):se===11?E("",void 0):se===282?b.createMissingDeclaration():L(se);return fr(Hr,vr)}function uu(se){let Ae=st.get(se);return Ae===void 0&&st.set(se,Ae=se),Ae}function Cl(se,Ae,et){if(se){jt++;let ga=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():$(),Qi=re(),Zi=uu(t.getTokenValue()),Ja=t.hasExtendedUnicodeEscape();return Ft(),fr(F(Zi,Qi,Ja),ga)}if(re()===81)return lr(et||y.Private_identifiers_are_not_allowed_outside_class_bodies),Cl(!0);if(re()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Cl(!0);jt++;let Wt=re()===1,vr=t.isReservedWord(),Hr=t.getTokenText(),bi=vr?y.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:y.Identifier_expected;return hc(80,Wt,Ae||bi,Hr)}function hp(se){return Cl(Wr(),void 0,se)}function tl(se,Ae){return Cl($r(),se,Ae)}function Pl(se){return Cl(Gf(re()),se)}function B(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&lr(y.Unicode_escape_sequence_cannot_appear_here),Cl(Gf(re()))}function Xe(){return Gf(re())||re()===11||re()===9||re()===10}function Et(){return Gf(re())||re()===11}function ur(se){if(re()===11||re()===9||re()===10){let Ae=Yt();return Ae.text=uu(Ae.text),Ae}return se&&re()===23?wi():re()===81?Bn():Pl()}function cn(){return ur(!0)}function wi(){let se=$();Sr(23);let Ae=Vr(yp);return Sr(24),fr(b.createComputedPropertyName(Ae),se)}function Bn(){let se=$(),Ae=M(uu(t.getTokenValue()));return Le(),fr(Ae,se)}function an(se){return re()===se&&Mr(ma)}function ua(){return Le(),t.hasPrecedingLineBreak()?!1:El()}function ma(){switch(re()){case 87:return Le()===94;case 95:return Le(),re()===90?or(Fc):re()===156?or(To):sc();case 90:return Fc();case 126:return Le(),El();case 139:case 153:return Le(),Hl();default:return ua()}}function sc(){return re()===60||re()!==42&&re()!==130&&re()!==19&&El()}function To(){return Le(),sc()}function Wc(){return sx(re())&&Mr(ma)}function El(){return re()===23||re()===19||re()===42||re()===26||Xe()}function Hl(){return re()===23||Xe()}function Fc(){return Le(),re()===86||re()===100||re()===120||re()===60||re()===128&&or(K0)||re()===134&&or(qA)}function Gl(se,Ae){if(hl(se))return!0;switch(se){case 0:case 1:case 3:return!(re()===27&&Ae)&&JA();case 2:return re()===84||re()===90;case 4:return or(tp);case 5:return or(Q0)||re()===27&&!Ae;case 6:return re()===23||Xe();case 12:switch(re()){case 23:case 42:case 26:case 25:return!0;default:return Xe()}case 18:return Xe();case 9:return re()===23||re()===26||Xe();case 24:return Et();case 7:return re()===19?or(X_):Ae?$r()&&!$e():gC()&&!$e();case 8:return bT();case 10:return re()===28||re()===26||bT();case 19:return re()===103||re()===87||$r();case 15:switch(re()){case 28:case 25:return!0}case 11:return re()===26||th();case 16:return H1(!1);case 17:return H1(!0);case 20:case 21:return re()===28||Zh();case 22:return wD();case 23:return re()===161&&or(yD)?!1:re()===11?!0:Gf(re());case 13:return Gf(re())||re()===19;case 14:return!0;case 25:return!0;case 26:return I.fail("ParsingContext.Count used as a context");default:I.assertNever(se,"Non-exhaustive case in 'isListElement'.")}}function X_(){if(I.assert(re()===19),Le()===20){let se=Le();return se===28||se===19||se===96||se===119}return!0}function Dp(){return Le(),$r()}function Ld(){return Le(),Gf(re())}function Bf(){return Le(),I_e(re())}function $e(){return re()===119||re()===96?or(nr):!1}function nr(){return Le(),th()}function Nn(){return Le(),Zh()}function za(se){if(re()===1)return!0;switch(se){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return re()===20;case 3:return re()===20||re()===84||re()===90;case 7:return re()===19||re()===96||re()===119;case 8:return Fs();case 19:return re()===32||re()===21||re()===19||re()===96||re()===119;case 11:return re()===22||re()===27;case 15:case 21:case 10:return re()===24;case 17:case 16:case 18:return re()===22||re()===24;case 20:return re()!==28;case 22:return re()===19||re()===20;case 13:return re()===32||re()===44;case 14:return re()===30&&or(ja);default:return!1}}function Fs(){return!!(as()||rp(re())||re()===39)}function Io(){I.assert(ar,"Missing parsing context");for(let se=0;se<26;se++)if(ar&1<<se&&(Gl(se,!0)||za(se)))return!0;return!1}function Jc(se,Ae){let et=ar;ar|=1<<se;let Wt=[],vr=$();for(;!za(se);){if(Gl(se,!1)){Wt.push(Kl(se,Ae));continue}if(Bd(se))break}return ar=et,jo(Wt,vr)}function Kl(se,Ae){let et=hl(se);return et?yl(et):Ae()}function hl(se,Ae){var et;if(!He||!ru(se)||pr)return;let Wt=He.currentNode(Ae??t.getTokenFullStart());if(!(Sl(Wt)||DIt(Wt)||UP(Wt)||(Wt.flags&101441536)!==nn)&&Nu(Wt,se))return h5(Wt)&&((et=Wt.jsDoc)!=null&&et.jsDocCache)&&(Wt.jsDoc.jsDocCache=void 0),Wt}function yl(se){return t.resetTokenState(se.end),Le(),se}function ru(se){switch(se){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Nu(se,Ae){switch(Ae){case 5:return Au(se);case 2:return Y_(se);case 0:case 1:case 3:return qf(se);case 6:return Tg(se);case 4:return gd(se);case 8:return Qh(se);case 17:case 16:return Jv(se)}return!1}function Au(se){if(se)switch(se.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:let Ae=se;return!(Ae.name.kind===80&&Ae.name.escapedText==="constructor")}return!1}function Y_(se){if(se)switch(se.kind){case 296:case 297:return!0}return!1}function qf(se){if(se)switch(se.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function Tg(se){return se.kind===306}function gd(se){if(se)switch(se.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function Qh(se){return se.kind!==260?!1:se.initializer===void 0}function Jv(se){return se.kind!==169?!1:se.initializer===void 0}function Bd(se){return n_(se),Io()?!0:(Le(),!1)}function n_(se){switch(se){case 0:return re()===90?lr(y._0_expected,to(95)):lr(y.Declaration_or_statement_expected);case 1:return lr(y.Declaration_or_statement_expected);case 2:return lr(y.case_or_default_expected);case 3:return lr(y.Statement_expected);case 18:case 4:return lr(y.Property_or_signature_expected);case 5:return lr(y.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return lr(y.Enum_member_expected);case 7:return lr(y.Expression_expected);case 8:return Yf(re())?lr(y._0_is_not_allowed_as_a_variable_declaration_name,to(re())):lr(y.Variable_declaration_expected);case 9:return lr(y.Property_destructuring_pattern_expected);case 10:return lr(y.Array_element_destructuring_pattern_expected);case 11:return lr(y.Argument_expression_expected);case 12:return lr(y.Property_assignment_expected);case 15:return lr(y.Expression_or_comma_expected);case 17:return lr(y.Parameter_declaration_expected);case 16:return Yf(re())?lr(y._0_is_not_allowed_as_a_parameter_name,to(re())):lr(y.Parameter_declaration_expected);case 19:return lr(y.Type_parameter_declaration_expected);case 20:return lr(y.Type_argument_expected);case 21:return lr(y.Type_expected);case 22:return lr(y.Unexpected_token_expected);case 23:return re()===161?lr(y._0_expected,"}"):lr(y.Identifier_expected);case 13:return lr(y.Identifier_expected);case 14:return lr(y.Identifier_expected);case 24:return lr(y.Identifier_or_string_literal_expected);case 25:return lr(y.Identifier_expected);case 26:return I.fail("ParsingContext.Count used as a context");default:I.assertNever(se)}}function xf(se,Ae,et){let Wt=ar;ar|=1<<se;let vr=[],Hr=$(),bi=-1;for(;;){if(Gl(se,!1)){let ga=t.getTokenFullStart(),Qi=Kl(se,Ae);if(!Qi){ar=Wt;return}if(vr.push(Qi),bi=t.getTokenStart(),la(28))continue;if(bi=-1,za(se))break;Sr(28,Xh(se)),et&&re()===27&&!t.hasPrecedingLineBreak()&&Le(),ga===t.getTokenFullStart()&&Le();continue}if(za(se)||Bd(se))break}return ar=Wt,jo(vr,Hr,void 0,bi>=0)}function Xh(se){return se===6?y.An_enum_member_name_must_be_followed_by_a_or:void 0}function hd(){let se=jo([],$());return se.isMissingList=!0,se}function zv(se){return!!se.isMissingList}function _e(se,Ae,et,Wt){if(Sr(et)){let vr=xf(se,Ae);return Sr(Wt),vr}return hd()}function xt(se,Ae){let et=$(),Wt=se?Pl(Ae):tl(Ae);for(;la(25)&&re()!==30;)Wt=fr(b.createQualifiedName(Wt,yr(se,!1,!0)),et);return Wt}function gr(se,Ae){return fr(b.createQualifiedName(se,Ae),se.pos)}function yr(se,Ae,et){if(t.hasPrecedingLineBreak()&&Gf(re())&&or(kC))return hc(80,!0,y.Identifier_expected);if(re()===81){let Wt=Bn();return Ae?Wt:hc(80,!0,y.Identifier_expected)}return se?et?Pl():B():tl()}function Qr(se){let Ae=$(),et=[],Wt;do Wt=rt(se),et.push(Wt);while(Wt.literal.kind===17);return jo(et,Ae)}function Tn(se){let Ae=$();return fr(b.createTemplateExpression(Xr(se),Qr(se)),Ae)}function vi(){let se=$();return fr(b.createTemplateLiteralType(Xr(!1),Ki()),se)}function Ki(){let se=$(),Ae=[],et;do et=Na(),Ae.push(et);while(et.literal.kind===17);return jo(Ae,se)}function Na(){let se=$();return fr(b.createTemplateLiteralTypeSpan(wu(),U(!1)),se)}function U(se){return re()===20?(yn(se),Ya()):Kc(18,y._0_expected,to(20))}function rt(se){let Ae=$();return fr(b.createTemplateSpan(Vr(yp),U(se)),Ae)}function Yt(){return qa(re())}function Xr(se){!se&&t.getTokenFlags()&26656&&yn(!1);let Ae=qa(re());return I.assert(Ae.kind===16,"Template head has wrong token kind"),Ae}function Ya(){let se=qa(re());return I.assert(se.kind===17||se.kind===18,"Template fragment has wrong token kind"),se}function aa(se){let Ae=se===15||se===18,et=t.getTokenText();return et.substring(1,et.length-(t.isUnterminated()?0:Ae?1:2))}function qa(se){let Ae=$(),et=ix(se)?b.createTemplateLiteralLikeNode(se,t.getTokenValue(),aa(se),t.getTokenFlags()&7176):se===9?P(t.getTokenValue(),t.getNumericLiteralFlags()):se===11?E(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):GI(se)?N(se,t.getTokenValue()):I.fail();return t.hasExtendedUnicodeEscape()&&(et.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(et.isUnterminated=!0),Le(),fr(et,Ae)}function ss(){return xt(!0,y.Type_expected)}function Uc(){if(!t.hasPrecedingLineBreak()&&yt()===30)return _e(20,wu,30,32)}function lo(){let se=$();return fr(b.createTypeReferenceNode(ss(),Uc()),se)}function Tu(se){switch(se.kind){case 183:return Sl(se.typeName);case 184:case 185:{let{parameters:Ae,type:et}=se;return zv(Ae)||Tu(et)}case 196:return Tu(se.type);default:return!1}}function Z_(se){return Le(),fr(b.createTypePredicateNode(void 0,se,wu()),se.pos)}function vm(){let se=$();return Le(),fr(b.createThisTypeNode(),se)}function Zg(){let se=$();return Le(),fr(b.createJSDocAllType(),se)}function U0(){let se=$();return Le(),fr(b.createJSDocNonNullableType(mC(),!1),se)}function Wv(){let se=$();return Le(),re()===28||re()===20||re()===22||re()===32||re()===64||re()===52?fr(b.createJSDocUnknownType(),se):fr(b.createJSDocNullableType(wu(),!1),se)}function x_(){let se=$(),Ae=Ke();if(Mr(_8)){let et=ln(36),Wt=Er(59,!1);return Wn(fr(b.createJSDocFunctionType(et,Wt),se),Ae)}return fr(b.createTypeReferenceNode(Pl(),void 0),se)}function eh(){let se=$(),Ae;return(re()===110||re()===105)&&(Ae=Pl(),Sr(59)),fr(b.createParameterDeclaration(void 0,void 0,Ae,void 0,Yh(),void 0),se)}function Yh(){t.setSkipJsDocLeadingAsterisks(!0);let se=$();if(la(144)){let Wt=b.createJSDocNamepathType(void 0);e:for(;;)switch(re()){case 20:case 1:case 28:case 5:break e;default:kt()}return t.setSkipJsDocLeadingAsterisks(!1),fr(Wt,se)}let Ae=la(26),et=i_();return t.setSkipJsDocLeadingAsterisks(!1),Ae&&(et=fr(b.createJSDocVariadicType(et),se)),re()===64?(Le(),fr(b.createJSDocOptionalType(et),se)):et}function Km(){let se=$();Sr(114);let Ae=xt(!0),et=t.hasPrecedingLineBreak()?void 0:xT();return fr(b.createTypeQueryNode(Ae,et),se)}function jx(){let se=$(),Ae=Wi(!1,!0),et=tl(),Wt,vr;la(96)&&(Zh()||!th()?Wt=wu():vr=Fa());let Hr=la(64)?wu():void 0,bi=b.createTypeParameterDeclaration(Ae,et,Wt,Hr);return bi.expression=vr,fr(bi,se)}function yd(){if(re()===30)return _e(19,jx,30,32)}function H1(se){return re()===26||bT()||sx(re())||re()===60||Zh(!se)}function Lx(se){let Ae=Uo(y.Private_identifiers_cannot_be_used_as_parameters);return qF(Ae)===0&&!Pt(se)&&sx(re())&&Le(),Ae}function G1(){return Wr()||re()===23||re()===19}function tt(se){return tr(se)}function ht(se){return tr(se,!1)}function tr(se,Ae=!0){let et=$(),Wt=Ke(),vr=se?oe(()=>Wi(!0)):Ue(()=>Wi(!0));if(re()===110){let Qi=b.createParameterDeclaration(vr,void 0,Cl(!0),void 0,Z1(),void 0),Zi=Yl(vr);return Zi&&qt(Zi,y.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Wn(fr(Qi,et),Wt)}let Hr=Ct;Ct=!1;let bi=us(26);if(!Ae&&!G1())return;let ga=Wn(fr(b.createParameterDeclaration(vr,bi,Lx(vr),us(58),Z1(),Vv()),et),Wt);return Ct=Hr,ga}function Er(se,Ae){if(hn(se,Ae))return ft(i_)}function hn(se,Ae){return se===39?(Sr(se),!0):la(59)?!0:Ae&&re()===39?(lr(y._0_expected,to(59)),Le(),!0):!1}function Gn(se,Ae){let et=Qe(),Wt=ut();Di(!!(se&1)),da(!!(se&2));let vr=se&32?xf(17,eh):xf(16,()=>Ae?tt(Wt):ht(Wt));return Di(et),da(Wt),vr}function ln(se){if(!Sr(21))return hd();let Ae=Gn(se,!0);return Sr(22),Ae}function Hn(){la(28)||qo()}function _a(se){let Ae=$(),et=Ke();se===180&&Sr(105);let Wt=yd(),vr=ln(4),Hr=Er(59,!0);Hn();let bi=se===179?b.createCallSignature(Wt,vr,Hr):b.createConstructSignature(Wt,vr,Hr);return Wn(fr(bi,Ae),et)}function rs(){return re()===23&&or(Ii)}function Ii(){if(Le(),re()===26||re()===24)return!0;if(sx(re())){if(Le(),$r())return!0}else if($r())Le();else return!1;return re()===59||re()===28?!0:re()!==58?!1:(Le(),re()===59||re()===28||re()===24)}function Ia(se,Ae,et){let Wt=_e(16,()=>tt(!1),23,24),vr=Z1();Hn();let Hr=b.createIndexSignature(et,Wt,vr);return Wn(fr(Hr,se),Ae)}function Es(se,Ae,et){let Wt=cn(),vr=us(58),Hr;if(re()===21||re()===30){let bi=yd(),ga=ln(4),Qi=Er(59,!0);Hr=b.createMethodSignature(et,Wt,vr,bi,ga,Qi)}else{let bi=Z1();Hr=b.createPropertySignature(et,Wt,vr,bi),re()===64&&(Hr.initializer=Vv())}return Hn(),Wn(fr(Hr,se),Ae)}function tp(){if(re()===21||re()===30||re()===139||re()===153)return!0;let se=!1;for(;sx(re());)se=!0,Le();return re()===23?!0:(Xe()&&(se=!0,Le()),se?re()===21||re()===30||re()===58||re()===59||re()===28||as():!1)}function qd(){if(re()===21||re()===30)return _a(179);if(re()===105&&or(Jd))return _a(180);let se=$(),Ae=Ke(),et=Wi(!1);return an(139)?sh(se,Ae,et,177,4):an(153)?sh(se,Ae,et,178,4):rs()?Ia(se,Ae,et):Es(se,Ae,et)}function Jd(){return Le(),re()===21||re()===30}function ed(){return Le()===25}function Ly(){switch(Le()){case 21:case 30:case 25:return!0}return!1}function wg(){let se=$();return fr(b.createTypeLiteralNode(By()),se)}function By(){let se;return Sr(19)?(se=Jc(4,qd),Sr(20)):se=hd(),se}function K1(){return Le(),re()===40||re()===41?Le()===148:(re()===148&&Le(),re()===23&&Dp()&&Le()===103)}function qy(){let se=$(),Ae=Pl();Sr(103);let et=wu();return fr(b.createTypeParameterDeclaration(void 0,Ae,et,void 0),se)}function Q1(){let se=$();Sr(19);let Ae;(re()===148||re()===40||re()===41)&&(Ae=el(),Ae.kind!==148&&Sr(148)),Sr(23);let et=qy(),Wt=la(130)?wu():void 0;Sr(24);let vr;(re()===58||re()===40||re()===41)&&(vr=el(),vr.kind!==58&&Sr(58));let Hr=Z1();qo();let bi=Jc(4,qd);return Sr(20),fr(b.createMappedTypeNode(Ae,et,Wt,vr,Hr,bi),se)}function oT(){let se=$();if(la(26))return fr(b.createRestTypeNode(wu()),se);let Ae=wu();if(jN(Ae)&&Ae.pos===Ae.type.pos){let et=b.createOptionalTypeNode(Ae.type);return Ot(et,Ae),et.flags=Ae.flags,et}return Ae}function ow(){return Le()===59||re()===58&&Le()===59}function u8(){return re()===26?Gf(Le())&&ow():Gf(re())&&ow()}function aD(){if(or(u8)){let se=$(),Ae=Ke(),et=us(26),Wt=Pl(),vr=us(58);Sr(59);let Hr=oT(),bi=b.createNamedTupleMember(et,Wt,vr,Hr);return Wn(fr(bi,se),Ae)}return oT()}function AA(){let se=$();return fr(b.createTupleTypeNode(_e(21,aD,23,24)),se)}function cw(){let se=$();Sr(21);let Ae=wu();return Sr(22),fr(b.createParenthesizedType(Ae),se)}function IA(){let se;if(re()===128){let Ae=$();Le();let et=fr(L(128),Ae);se=jo([et],Ae)}return se}function _C(){let se=$(),Ae=Ke(),et=IA(),Wt=la(105);I.assert(!et||Wt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let vr=yd(),Hr=ln(4),bi=Er(39,!1),ga=Wt?b.createConstructorTypeNode(et,vr,Hr,bi):b.createFunctionTypeNode(vr,Hr,bi);return Wn(fr(ga,se),Ae)}function sD(){let se=el();return re()===25?void 0:se}function lw(se){let Ae=$();se&&Le();let et=re()===112||re()===97||re()===106?el():qa(re());return se&&(et=fr(b.createPrefixUnaryExpression(41,et),Ae)),fr(b.createLiteralTypeNode(et),Ae)}function FA(){return Le(),re()===102}function dC(){Me|=4194304;let se=$(),Ae=la(114);Sr(102),Sr(21);let et=wu(),Wt;if(la(28)){let bi=t.getTokenStart();Sr(19);let ga=re();if(ga===118||ga===132?Le():lr(y._0_expected,to(118)),Sr(59),Wt=OD(ga,!0),!Sr(20)){let Qi=dc(nt);Qi&&Qi.code===y._0_expected.code&&Hs(Qi,sE(ge,Te,bi,1,y.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Sr(22);let vr=la(25)?ss():void 0,Hr=Uc();return fr(b.createImportTypeNode(et,Wt,vr,Hr,Ae),se)}function oD(){return Le(),re()===9||re()===10}function mC(){switch(re()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Mr(sD)||lo();case 67:t.reScanAsteriskEqualsToken();case 42:return Zg();case 61:t.reScanQuestionToken();case 58:return Wv();case 100:return x_();case 54:return U0();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return lw();case 41:return or(oD)?lw(!0):lo();case 116:return el();case 110:{let se=vm();return re()===142&&!t.hasPrecedingLineBreak()?Z_(se):se}case 114:return or(FA)?dC():Km();case 19:return or(K1)?Q1():wg();case 23:return AA();case 21:return cw();case 102:return dC();case 131:return or(kC)?td():lo();case 16:return vi();default:return lo()}}function Zh(se){switch(re()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!se;case 41:return!se&&or(oD);case 21:return!se&&or(X1);default:return $r()}}function X1(){return Le(),re()===22||H1(!1)||Zh()}function $0(){let se=$(),Ae=mC();for(;!t.hasPrecedingLineBreak();)switch(re()){case 54:Le(),Ae=fr(b.createJSDocNonNullableType(Ae,!0),se);break;case 58:if(or(Nn))return Ae;Le(),Ae=fr(b.createJSDocNullableType(Ae,!0),se);break;case 23:if(Sr(23),Zh()){let et=wu();Sr(24),Ae=fr(b.createIndexedAccessTypeNode(Ae,et),se)}else Sr(24),Ae=fr(b.createArrayTypeNode(Ae),se);break;default:return Ae}return Ae}function Jy(se){let Ae=$();return Sr(se),fr(b.createTypeOperatorNode(se,pw()),Ae)}function cT(){if(la(96)){let se=Qt(wu);if(Rt()||re()!==58)return se}}function Bx(){let se=$(),Ae=tl(),et=Mr(cT),Wt=b.createTypeParameterDeclaration(void 0,Ae,et);return fr(Wt,se)}function uw(){let se=$();return Sr(140),fr(b.createInferTypeNode(Bx()),se)}function pw(){let se=re();switch(se){case 143:case 158:case 148:return Jy(se);case 140:return uw()}return ft($0)}function Y1(se){if(Uv()){let Ae=_C(),et;return Iy(Ae)?et=se?y.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:y.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:et=se?y.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:y.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,qt(Ae,et),Ae}}function Jo(se,Ae,et){let Wt=$(),vr=se===52,Hr=la(se),bi=Hr&&Y1(vr)||Ae();if(re()===se||Hr){let ga=[bi];for(;la(se);)ga.push(Y1(vr)||Ae());bi=fr(et(jo(ga,Wt)),Wt)}return bi}function lT(){return Jo(51,pw,b.createIntersectionTypeNode)}function p8(){return Jo(52,lT,b.createUnionTypeNode)}function qx(){return Le(),re()===105}function Uv(){return re()===30||re()===21&&or(bm)?!0:re()===105||re()===128&&or(qx)}function $v(){if(sx(re())&&Wi(!1),$r()||re()===110)return Le(),!0;if(re()===23||re()===19){let se=nt.length;return Uo(),se===nt.length}return!1}function bm(){return Le(),!!(re()===22||re()===26||$v()&&(re()===59||re()===28||re()===58||re()===64||re()===22&&(Le(),re()===39)))}function i_(){let se=$(),Ae=$r()&&Mr(S_),et=wu();return Ae?fr(b.createTypePredicateNode(void 0,Ae,et),se):et}function S_(){let se=tl();if(re()===142&&!t.hasPrecedingLineBreak())return Le(),se}function td(){let se=$(),Ae=Kc(131),et=re()===110?vm():tl(),Wt=la(142)?wu():void 0;return fr(b.createTypePredicateNode(Ae,et,Wt),se)}function wu(){if(nn&81920)return ks(81920,wu);if(Uv())return _C();let se=$(),Ae=p8();if(!Rt()&&!t.hasPrecedingLineBreak()&&la(96)){let et=Qt(wu);Sr(58);let Wt=ft(wu);Sr(59);let vr=ft(wu);return fr(b.createConditionalTypeNode(Ae,et,Wt,vr),se)}return Ae}function Z1(){return la(59)?wu():void 0}function gC(){switch(re()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return or(Ly);default:return $r()}}function th(){if(gC())return!0;switch(re()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Qv()?!0:$r()}}function Jx(){return re()!==19&&re()!==100&&re()!==86&&re()!==60&&th()}function yp(){let se=Xt();se&&Pi(!1);let Ae=$(),et=T_(!0),Wt;for(;Wt=us(28);)et=uT(et,Wt,T_(!0),Ae);return se&&Pi(!0),et}function Vv(){return la(64)?T_(!0):void 0}function T_(se){if(Hv())return zy();let Ae=ot(se)||cD(se);if(Ae)return Ae;let et=$(),Wt=Ke(),vr=fo(0);return vr.kind===80&&re()===39?fw(et,vr,se,Wt,void 0):Qf(vr)&&O0(kn())?uT(vr,el(),T_(se),et):lD(vr,et,se)}function Hv(){return re()===127?Qe()?!0:or(CC):!1}function Gv(){return Le(),!t.hasPrecedingLineBreak()&&$r()}function zy(){let se=$();return Le(),!t.hasPrecedingLineBreak()&&(re()===42||th())?fr(b.createYieldExpression(us(42),T_(!0)),se):fr(b.createYieldExpression(void 0,void 0),se)}function fw(se,Ae,et,Wt,vr){I.assert(re()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Hr=b.createParameterDeclaration(void 0,void 0,Ae,void 0,void 0,void 0);fr(Hr,Ae.pos);let bi=jo([Hr],Hr.pos,Hr.end),ga=Kc(39),Qi=Wy(!!vr,et),Zi=b.createArrowFunction(vr,void 0,bi,void 0,ga,Qi);return Wn(fr(Zi,se),Wt)}function ot(se){let Ae=eb();if(Ae!==0)return Ae===1?V0(!0,!0):Mr(()=>tb(se))}function eb(){return re()===21||re()===30||re()===134?or(rh):re()===39?1:0}function rh(){if(re()===134&&(Le(),t.hasPrecedingLineBreak()||re()!==21&&re()!==30))return 0;let se=re(),Ae=Le();if(se===21){if(Ae===22)switch(Le()){case 39:case 59:case 19:return 1;default:return 0}if(Ae===23||Ae===19)return 2;if(Ae===26)return 1;if(sx(Ae)&&Ae!==134&&or(Dp))return Le()===130?0:1;if(!$r()&&Ae!==110)return 0;switch(Le()){case 59:return 1;case 58:return Le(),re()===59||re()===28||re()===64||re()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return I.assert(se===30),!$r()&&re()!==87?0:xe===1?or(()=>{la(87);let Wt=Le();if(Wt===96)switch(Le()){case 64:case 32:case 44:return!1;default:return!0}else if(Wt===28||Wt===64)return!0;return!1})?1:0:2}function tb(se){let Ae=t.getTokenStart();if(Or?.has(Ae))return;let et=V0(!1,se);return et||(Or||(Or=new Set)).add(Ae),et}function cD(se){if(re()===134&&or(rb)===1){let Ae=$(),et=Ke(),Wt=pa(),vr=fo(0);return fw(Ae,vr,se,et,Wt)}}function rb(){if(re()===134){if(Le(),t.hasPrecedingLineBreak()||re()===39)return 0;let se=fo(0);if(!t.hasPrecedingLineBreak()&&se.kind===80&&re()===39)return 1}return 0}function V0(se,Ae){let et=$(),Wt=Ke(),vr=pa(),Hr=Pt(vr,G4)?2:0,bi=yd(),ga;if(Sr(21)){if(se)ga=Gn(Hr,se);else{let Zm=Gn(Hr,se);if(!Zm)return;ga=Zm}if(!Sr(22)&&!se)return}else{if(!se)return;ga=hd()}let Qi=re()===59,Zi=Er(59,!1);if(Zi&&!se&&Tu(Zi))return;let Ja=Zi;for(;Ja?.kind===196;)Ja=Ja.type;let kc=Ja&&LN(Ja);if(!se&&re()!==39&&(kc||re()!==19))return;let Cc=re(),zo=Kc(39),xm=Cc===39||Cc===19?Wy(Pt(vr,G4),Ae):tl();if(!Ae&&Qi&&re()!==59)return;let Ky=b.createArrowFunction(vr,bi,ga,Zi,zo,xm);return Wn(fr(Ky,et),Wt)}function Wy(se,Ae){if(re()===19)return cb(se?2:0);if(re()!==27&&re()!==100&&re()!==86&&JA()&&!Jx())return cb(16|(se?2:0));let et=Ct;Ct=!1;let Wt=se?oe(()=>T_(Ae)):Ue(()=>T_(Ae));return Ct=et,Wt}function lD(se,Ae,et){let Wt=us(58);if(!Wt)return se;let vr;return fr(b.createConditionalExpression(se,Wt,ks(n,()=>T_(!1)),vr=Kc(59),jm(vr)?T_(et):hc(80,!1,y._0_expected,to(59))),Ae)}function fo(se){let Ae=$(),et=Fa();return Kv(se,et,Ae)}function rp(se){return se===103||se===165}function Kv(se,Ae,et){for(;;){kn();let Wt=C5(re());if(!(re()===43?Wt>=se:Wt>se)||re()===103&&Lt())break;if(re()===130||re()===152){if(t.hasPrecedingLineBreak())break;{let Hr=re();Le(),Ae=Hr===152?zx(Ae,wu()):ey(Ae,wu())}}else Ae=uT(Ae,el(),fo(Wt),et)}return Ae}function Qv(){return Lt()&&re()===103?!1:C5(re())>0}function zx(se,Ae){return fr(b.createSatisfiesExpression(se,Ae),se.pos)}function uT(se,Ae,et,Wt){return fr(b.createBinaryExpression(se,Ae,et),Wt)}function ey(se,Ae){return fr(b.createAsExpression(se,Ae),se.pos)}function H0(){let se=$();return fr(b.createPrefixUnaryExpression(re(),rr(Zn)),se)}function hC(){let se=$();return fr(b.createDeleteExpression(rr(Zn)),se)}function nb(){let se=$();return fr(b.createTypeOfExpression(rr(Zn)),se)}function ty(){let se=$();return fr(b.createVoidExpression(rr(Zn)),se)}function Uy(){return re()===135?ut()?!0:or(CC):!1}function Wx(){let se=$();return fr(b.createAwaitExpression(rr(Zn)),se)}function Fa(){if(Sf()){let et=$(),Wt=yC();return re()===43?Kv(C5(re()),Wt,et):Wt}let se=re(),Ae=Zn();if(re()===43){let et=yo(Te,Ae.pos),{end:Wt}=Ae;Ae.kind===216?We(et,Wt,y.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(I.assert(aJ(se)),We(et,Wt,y.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,to(se)))}return Ae}function Zn(){switch(re()){case 40:case 41:case 55:case 54:return H0();case 91:return hC();case 114:return nb();case 116:return ty();case 30:return xe===1?fT(!0,void 0,void 0,!0):Tf();case 135:if(Uy())return Wx();default:return yC()}}function Sf(){switch(re()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(xe!==1)return!1;default:return!0}}function yC(){if(re()===46||re()===47){let Ae=$();return fr(b.createPrefixUnaryExpression(re(),rr(ry)),Ae)}else if(xe===1&&re()===30&&or(Bf))return fT(!0);let se=ry();if(I.assert(Qf(se)),(re()===46||re()===47)&&!t.hasPrecedingLineBreak()){let Ae=re();return Le(),fr(b.createPostfixUnaryExpression(se,Ae),se.pos)}return se}function ry(){let se=$(),Ae;return re()===102?or(Jd)?(Me|=4194304,Ae=el()):or(ed)?(Le(),Le(),Ae=fr(b.createMetaProperty(102,Pl()),se),Me|=8388608):Ae=Ac():Ae=re()===108?pT():Ac(),Vy(se,Ae)}function Ac(){let se=$(),Ae=Yv();return vd(se,Ae,!0)}function pT(){let se=$(),Ae=el();if(re()===30){let et=$(),Wt=Mr(sb);Wt!==void 0&&(We(et,$(),y.super_may_not_use_type_arguments),ih()||(Ae=b.createExpressionWithTypeArguments(Ae,Wt)))}return re()===21||re()===25||re()===23?Ae:(Kc(25,y.super_must_be_followed_by_an_argument_list_or_member_access),fr(H(Ae,yr(!0,!0,!0)),se))}function fT(se,Ae,et,Wt=!1){let vr=$(),Hr=MA(se),bi;if(Hr.kind===286){let ga=Ux(Hr),Qi,Zi=ga[ga.length-1];if(Zi?.kind===284&&!VS(Zi.openingElement.tagName,Zi.closingElement.tagName)&&VS(Hr.tagName,Zi.closingElement.tagName)){let Ja=Zi.children.end,kc=fr(b.createJsxElement(Zi.openingElement,Zi.children,fr(b.createJsxClosingElement(fr(F(""),Ja,Ja)),Ja,Ja)),Zi.openingElement.pos,Ja);ga=jo([...ga.slice(0,ga.length-1),kc],ga.pos,Ja),Qi=Zi.closingElement}else Qi=RA(Hr,se),VS(Hr.tagName,Qi.tagName)||(et&&Vg(et)&&VS(Qi.tagName,et.tagName)?qt(Hr.tagName,y.JSX_element_0_has_no_corresponding_closing_tag,t4(Te,Hr.tagName)):qt(Qi.tagName,y.Expected_corresponding_JSX_closing_tag_for_0,t4(Te,Hr.tagName)));bi=fr(b.createJsxElement(Hr,ga,Qi),vr)}else Hr.kind===289?bi=fr(b.createJsxFragment(Hr,Ux(Hr),pD(se)),vr):(I.assert(Hr.kind===285),bi=Hr);if(!Wt&&se&&re()===30){let ga=typeof Ae>"u"?bi.pos:Ae,Qi=Mr(()=>fT(!0,ga));if(Qi){let Zi=hc(28,!1);return BX(Zi,Qi.pos,0),We(yo(Te,ga),Qi.end,y.JSX_expressions_must_have_one_parent_element),fr(b.createBinaryExpression(bi,Zi,Qi),vr)}}return bi}function vC(){let se=$(),Ae=b.createJsxText(t.getTokenValue(),qe===13);return qe=t.scanJsxToken(),fr(Ae,se)}function uD(se,Ae){switch(Ae){case 1:if(bg(se))qt(se,y.JSX_fragment_has_no_corresponding_closing_tag);else{let et=se.tagName,Wt=Math.min(yo(Te,et.pos),et.end);We(Wt,et.end,y.JSX_element_0_has_no_corresponding_closing_tag,t4(Te,se.tagName))}return;case 31:case 7:return;case 12:case 13:return vC();case 19:return ms(!1);case 30:return fT(!1,void 0,se);default:return I.assertNever(Ae)}}function Ux(se){let Ae=[],et=$(),Wt=ar;for(ar|=16384;;){let vr=uD(se,qe=t.reScanJsxToken());if(!vr||(Ae.push(vr),Vg(se)&&vr?.kind===284&&!VS(vr.openingElement.tagName,vr.closingElement.tagName)&&VS(se.tagName,vr.closingElement.tagName)))break}return ar=Wt,jo(Ae,et)}function nh(){let se=$();return fr(b.createJsxAttributes(Jc(13,ib)),se)}function MA(se){let Ae=$();if(Sr(30),re()===32)return er(),fr(b.createJsxOpeningFragment(),Ae);let et=Kn(),Wt=nn&524288?void 0:xT(),vr=nh(),Hr;return re()===32?(er(),Hr=b.createJsxOpeningElement(et,Wt,vr)):(Sr(44),Sr(32,void 0,!1)&&(se?Le():er()),Hr=b.createJsxSelfClosingElement(et,Wt,vr)),fr(Hr,Ae)}function Kn(){let se=$(),Ae=af();if(Hg(Ae))return Ae;let et=Ae;for(;la(25);)et=fr(H(et,yr(!0,!1,!1)),se);return et}function af(){let se=$();cr();let Ae=re()===110,et=B();return la(59)?(cr(),fr(b.createJsxNamespacedName(et,B()),se)):Ae?fr(b.createToken(110),se):et}function ms(se){let Ae=$();if(!Sr(19))return;let et,Wt;return re()!==20&&(se||(et=us(26)),Wt=yp()),se?Sr(20):Sr(20,void 0,!1)&&er(),fr(b.createJsxExpression(et,Wt),Ae)}function ib(){if(re()===19)return zn();let se=$();return fr(b.createJsxAttribute(_T(),bC()),se)}function bC(){if(re()===64){if(zr()===11)return Yt();if(re()===19)return ms(!0);if(re()===30)return fT(!0);lr(y.or_JSX_element_expected)}}function _T(){let se=$();cr();let Ae=B();return la(59)?(cr(),fr(b.createJsxNamespacedName(Ae,B()),se)):Ae}function zn(){let se=$();Sr(19),Sr(26);let Ae=yp();return Sr(20),fr(b.createJsxSpreadAttribute(Ae),se)}function RA(se,Ae){let et=$();Sr(31);let Wt=Kn();return Sr(32,void 0,!1)&&(Ae||!VS(se.tagName,Wt)?Le():er()),fr(b.createJsxClosingElement(Wt),et)}function pD(se){let Ae=$();return Sr(31),Sr(32,y.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(se?Le():er()),fr(b.createJsxJsxClosingFragment(),Ae)}function Tf(){I.assert(xe!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let se=$();Sr(30);let Ae=wu();Sr(32);let et=Zn();return fr(b.createTypeAssertion(Ae,et),se)}function $y(){return Le(),Gf(re())||re()===23||ih()}function kg(){return re()===29&&or($y)}function ab(se){if(se.flags&64)return!0;if(CE(se)){let Ae=se.expression;for(;CE(Ae)&&!(Ae.flags&64);)Ae=Ae.expression;if(Ae.flags&64){for(;CE(se);)se.flags|=64,se=se.expression;return!0}}return!1}function zd(se,Ae,et){let Wt=yr(!0,!0,!0),vr=et||ab(Ae),Hr=vr?X(Ae,et,Wt):H(Ae,Wt);if(vr&&Ca(Hr.name)&&qt(Hr.name,y.An_optional_chain_cannot_contain_private_identifiers),F0(Ae)&&Ae.typeArguments){let bi=Ae.typeArguments.pos-1,ga=yo(Te,Ae.typeArguments.end)+1;We(bi,ga,y.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return fr(Hr,se)}function Xv(se,Ae,et){let Wt;if(re()===24)Wt=hc(80,!0,y.An_element_access_expression_should_take_an_argument);else{let Hr=Vr(yp);Dd(Hr)&&(Hr.text=uu(Hr.text)),Wt=Hr}Sr(24);let vr=et||ab(Ae)?ae(Ae,et,Wt):ne(Ae,Wt);return fr(vr,se)}function vd(se,Ae,et){for(;;){let Wt,vr=!1;if(et&&kg()?(Wt=Kc(29),vr=Gf(re())):vr=la(25),vr){Ae=zd(se,Ae,Wt);continue}if((Wt||!Xt())&&la(23)){Ae=Xv(se,Ae,Wt);continue}if(ih()){Ae=!Wt&&Ae.kind===233?Qm(se,Ae.expression,Wt,Ae.typeArguments):Qm(se,Ae,Wt,void 0);continue}if(!Wt){if(re()===54&&!t.hasPrecedingLineBreak()){Le(),Ae=fr(b.createNonNullExpression(Ae),se);continue}let Hr=Mr(sb);if(Hr){Ae=fr(b.createExpressionWithTypeArguments(Ae,Hr),se);continue}}return Ae}}function ih(){return re()===15||re()===16}function Qm(se,Ae,et,Wt){let vr=b.createTaggedTemplateExpression(Ae,Wt,re()===15?(yn(!0),Yt()):Tn(!0));return(et||Ae.flags&64)&&(vr.flags|=64),vr.questionDotToken=et,fr(vr,se)}function Vy(se,Ae){for(;;){Ae=vd(se,Ae,!0);let et,Wt=us(29);if(Wt&&(et=Mr(sb),ih())){Ae=Qm(se,Ae,Wt,et);continue}if(et||re()===21){!Wt&&Ae.kind===233&&(et=Ae.typeArguments,Ae=Ae.expression);let vr=_w(),Hr=Wt||ab(Ae)?Ee(Ae,Wt,et,vr):Y(Ae,et,vr);Ae=fr(Hr,se);continue}if(Wt){let vr=hc(80,!1,y.Identifier_expected);Ae=fr(X(Ae,Wt,vr),se)}break}return Ae}function _w(){Sr(21);let se=xf(11,Cg);return Sr(22),se}function sb(){if(nn&524288||yt()!==30)return;Le();let se=xf(20,wu);if(kn()===32)return Le(),se&&fD()?se:void 0}function fD(){switch(re()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Qv()||!th()}function Yv(){switch(re()){case 15:t.getTokenFlags()&26656&&yn(!1);case 9:case 10:case 11:return Yt();case 110:case 108:case 106:case 112:case 97:return el();case 21:return xC();case 23:return dD();case 19:return ob();case 134:if(!or(qA))break;return dw();case 60:return ps();case 86:return Co();case 100:return dw();case 105:return G0();case 44:case 69:if(Kr()===14)return Yt();break;case 16:return Tn(!1);case 81:return Bn()}return tl(y.Expression_expected)}function xC(){let se=$(),Ae=Ke();Sr(21);let et=Vr(yp);return Sr(22),Wn(fr(te(et),se),Ae)}function _D(){let se=$();Sr(26);let Ae=T_(!0);return fr(b.createSpreadElement(Ae),se)}function $x(){return re()===26?_D():re()===28?fr(b.createOmittedExpression(),$()):T_(!0)}function Cg(){return ks(n,$x)}function dD(){let se=$(),Ae=t.getTokenStart(),et=Sr(23),Wt=t.hasPrecedingLineBreak(),vr=xf(15,$x);return Bl(23,24,et,Ae),fr(W(vr,Wt),se)}function SC(){let se=$(),Ae=Ke();if(us(26)){let Ja=T_(!0);return Wn(fr(b.createSpreadAssignment(Ja),se),Ae)}let et=Wi(!0);if(an(139))return sh(se,Ae,et,177,0);if(an(153))return sh(se,Ae,et,178,0);let Wt=us(42),vr=$r(),Hr=cn(),bi=us(58),ga=us(54);if(Wt||re()===21||re()===30)return Wd(se,Ae,et,Wt,Hr,bi,ga);let Qi;if(vr&&re()!==59){let Ja=us(64),kc=Ja?Vr(()=>T_(!0)):void 0;Qi=b.createShorthandPropertyAssignment(Hr,kc),Qi.equalsToken=Ja}else{Sr(59);let Ja=Vr(()=>T_(!0));Qi=b.createPropertyAssignment(Hr,Ja)}return Qi.modifiers=et,Qi.questionToken=bi,Qi.exclamationToken=ga,Wn(fr(Qi,se),Ae)}function ob(){let se=$(),Ae=t.getTokenStart(),et=Sr(19),Wt=t.hasPrecedingLineBreak(),vr=xf(12,SC,!0);return Bl(19,20,et,Ae),fr(z(vr,Wt),se)}function dw(){let se=Xt();Pi(!1);let Ae=$(),et=Ke(),Wt=Wi(!1);Sr(100);let vr=us(42),Hr=vr?1:0,bi=Pt(Wt,G4)?2:0,ga=Hr&&bi?pt(ny):Hr?he(ny):bi?oe(ny):ny(),Qi=yd(),Zi=ln(Hr|bi),Ja=Er(59,!1),kc=cb(Hr|bi);Pi(se);let Cc=b.createFunctionExpression(Wt,vr,ga,Qi,Zi,Ja,kc);return Wn(fr(Cc,Ae),et)}function ny(){return Wr()?hp():void 0}function G0(){let se=$();if(Sr(105),la(25)){let Hr=Pl();return fr(b.createMetaProperty(105,Hr),se)}let Ae=$(),et=vd(Ae,Yv(),!1),Wt;et.kind===233&&(Wt=et.typeArguments,et=et.expression),re()===29&&lr(y.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,t4(Te,et));let vr=re()===21?_w():void 0;return fr(fe(et,Wt,vr),se)}function iy(se,Ae){let et=$(),Wt=Ke(),vr=t.getTokenStart(),Hr=Sr(19,Ae);if(Hr||se){let bi=t.hasPrecedingLineBreak(),ga=Jc(1,Ym);Bl(19,20,Hr,vr);let Qi=Wn(fr(de(ga,bi),et),Wt);return re()===64&&(lr(y.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Le()),Qi}else{let bi=hd();return Wn(fr(de(bi,void 0),et),Wt)}}function cb(se,Ae){let et=Qe();Di(!!(se&1));let Wt=ut();da(!!(se&2));let vr=Ct;Ct=!1;let Hr=Xt();Hr&&Pi(!1);let bi=iy(!!(se&16),Ae);return Hr&&Pi(!0),Ct=vr,Di(et),da(Wt),bi}function np(){let se=$(),Ae=Ke();return Sr(27),Wn(fr(b.createEmptyStatement(),se),Ae)}function TC(){let se=$(),Ae=Ke();Sr(101);let et=t.getTokenStart(),Wt=Sr(21),vr=Vr(yp);Bl(21,22,Wt,et);let Hr=Ym(),bi=la(93)?Ym():void 0;return Wn(fr(Pe(vr,Hr,bi),se),Ae)}function Zv(){let se=$(),Ae=Ke();Sr(92);let et=Ym();Sr(117);let Wt=t.getTokenStart(),vr=Sr(21),Hr=Vr(yp);return Bl(21,22,vr,Wt),la(27),Wn(fr(b.createDoStatement(et,Hr),se),Ae)}function mw(){let se=$(),Ae=Ke();Sr(117);let et=t.getTokenStart(),Wt=Sr(21),vr=Vr(yp);Bl(21,22,Wt,et);let Hr=Ym();return Wn(fr(Oe(vr,Hr),se),Ae)}function mD(){let se=$(),Ae=Ke();Sr(99);let et=us(135);Sr(21);let Wt;re()!==27&&(re()===115||re()===121||re()===87||re()===160&&or(wf)||re()===135&&or(PC)?Wt=w_(!0):Wt=_s(yp));let vr;if(et?Sr(165):la(165)){let Hr=Vr(()=>T_(!0));Sr(22),vr=Ne(et,Wt,Hr,Ym())}else if(la(103)){let Hr=Vr(yp);Sr(22),vr=b.createForInStatement(Wt,Hr,Ym())}else{Sr(27);let Hr=re()!==27&&re()!==22?Vr(yp):void 0;Sr(27);let bi=re()!==22?Vr(yp):void 0;Sr(22),vr=ie(Wt,Hr,bi,Ym())}return Wn(fr(vr,se),Ae)}function Hy(se){let Ae=$(),et=Ke();Sr(se===252?83:88);let Wt=as()?void 0:tl();qo();let vr=se===252?b.createBreakStatement(Wt):b.createContinueStatement(Wt);return Wn(fr(vr,Ae),et)}function jA(){let se=$(),Ae=Ke();Sr(107);let et=as()?void 0:Vr(yp);return qo(),Wn(fr(b.createReturnStatement(et),se),Ae)}function gw(){let se=$(),Ae=Ke();Sr(118);let et=t.getTokenStart(),Wt=Sr(21),vr=Vr(yp);Bl(21,22,Wt,et);let Hr=no(67108864,Ym);return Wn(fr(b.createWithStatement(vr,Hr),se),Ae)}function LA(){let se=$(),Ae=Ke();Sr(84);let et=Vr(yp);Sr(59);let Wt=Jc(3,Ym);return Wn(fr(b.createCaseClause(et,Wt),se),Ae)}function dT(){let se=$();Sr(90),Sr(59);let Ae=Jc(3,Ym);return fr(b.createDefaultClause(Ae),se)}function wC(){return re()===84?LA():dT()}function Dl(){let se=$();Sr(19);let Ae=Jc(2,wC);return Sr(20),fr(b.createCaseBlock(Ae),se)}function pu(){let se=$(),Ae=Ke();Sr(109),Sr(21);let et=Vr(yp);Sr(22);let Wt=Dl();return Wn(fr(b.createSwitchStatement(et,Wt),se),Ae)}function BA(){let se=$(),Ae=Ke();Sr(111);let et=t.hasPrecedingLineBreak()?void 0:Vr(yp);return et===void 0&&(jt++,et=fr(F(""),$())),Gs()||Is(et),Wn(fr(b.createThrowStatement(et),se),Ae)}function rd(){let se=$(),Ae=Ke();Sr(113);let et=iy(!1),Wt=re()===85?Xm():void 0,vr;return(!Wt||re()===98)&&(Sr(98,y.catch_or_finally_expected),vr=iy(!1)),Wn(fr(b.createTryStatement(et,Wt,vr),se),Ae)}function Xm(){let se=$();Sr(85);let Ae;la(21)?(Ae=bd(),Sr(22)):Ae=void 0;let et=iy(!1);return fr(b.createCatchClause(Ae,et),se)}function gD(){let se=$(),Ae=Ke();return Sr(89),qo(),Wn(fr(b.createDebuggerStatement(),se),Ae)}function ah(){let se=$(),Ae=Ke(),et,Wt=re()===21,vr=Vr(yp);return Ye(vr)&&la(59)?et=b.createLabeledStatement(vr,Ym()):(Gs()||Is(vr),et=ve(vr),Wt&&(Ae=!1)),Wn(fr(et,se),Ae)}function kC(){return Le(),Gf(re())&&!t.hasPrecedingLineBreak()}function K0(){return Le(),re()===86&&!t.hasPrecedingLineBreak()}function qA(){return Le(),re()===100&&!t.hasPrecedingLineBreak()}function CC(){return Le(),(Gf(re())||re()===9||re()===10||re()===11)&&!t.hasPrecedingLineBreak()}function Ol(){for(;;)switch(re()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return yw();case 135:return a_();case 120:case 156:return Gv();case 144:case 145:return vD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let se=re();if(Le(),t.hasPrecedingLineBreak())return!1;if(se===138&&re()===156)return!0;continue;case 162:return Le(),re()===19||re()===80||re()===95;case 102:return Le(),re()===11||re()===42||re()===19||Gf(re());case 95:let Ae=Le();if(Ae===156&&(Ae=or(Le)),Ae===64||Ae===42||Ae===19||Ae===90||Ae===130||Ae===60)return!0;continue;case 126:Le();continue;default:return!1}}function mT(){return or(Ol)}function JA(){switch(re()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return mT()||or(Ly);case 87:case 95:return mT();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return mT()||!or(kC);default:return th()}}function hw(){return Le(),Wr()||re()===19||re()===23}function f8(){return or(hw)}function wf(){return gT(!0)}function gT(se){return Le(),se&&re()===165?!1:(Wr()||re()===19)&&!t.hasPrecedingLineBreak()}function yw(){return or(gT)}function PC(se){return Le()===160?gT(se):!1}function a_(){return or(PC)}function Ym(){switch(re()){case 27:return np();case 19:return iy(!1);case 115:return Vx($(),Ke(),void 0);case 121:if(f8())return Vx($(),Ke(),void 0);break;case 135:if(a_())return Vx($(),Ke(),void 0);break;case 160:if(yw())return Vx($(),Ke(),void 0);break;case 100:return DC($(),Ke(),void 0);case 86:return Jf($(),Ke(),void 0);case 101:return TC();case 92:return Zv();case 117:return mw();case 99:return mD();case 88:return Hy(251);case 83:return Hy(252);case 107:return jA();case 118:return gw();case 109:return pu();case 111:return BA();case 113:case 85:case 98:return rd();case 89:return gD();case 60:return hD();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(mT())return hD();break}return ah()}function lb(se){return se.kind===138}function hD(){let se=$(),Ae=Ke(),et=Wi(!0);if(Pt(et,lb)){let vr=hT(se);if(vr)return vr;for(let Hr of et)Hr.flags|=33554432;return no(33554432,()=>yT(se,Ae,et))}else return yT(se,Ae,et)}function hT(se){return no(33554432,()=>{let Ae=hl(ar,se);if(Ae)return yl(Ae)})}function yT(se,Ae,et){switch(re()){case 115:case 121:case 87:case 160:case 135:return Vx(se,Ae,et);case 100:return DC(se,Ae,et);case 86:return Jf(se,Ae,et);case 120:return ub(se,Ae,et);case 156:return pb(se,Ae,et);case 94:return sy(se,Ae,et);case 162:case 144:case 145:return xw(se,Ae,et);case 102:return Pn(se,Ae,et);case 95:switch(Le(),re()){case 90:case 64:return cy(se,Ae,et);case 130:return Sw(se,Ae,et);default:return j$(se,Ae,et)}default:if(et){let Wt=hc(282,!0,y.Declaration_expected);return j4(Wt,se),Wt.modifiers=et,Wt}return}}function yD(){return Le()===11}function vT(){return Le(),re()===161||re()===64}function vD(){return Le(),!t.hasPrecedingLineBreak()&&($r()||re()===11)}function vw(se,Ae){if(re()!==19){if(se&4){Hn();return}if(as()){qo();return}}return cb(se,Ae)}function Gy(){let se=$();if(re()===28)return fr(b.createOmittedExpression(),se);let Ae=us(26),et=Uo(),Wt=Vv();return fr(b.createBindingElement(Ae,void 0,et,Wt),se)}function nd(){let se=$(),Ae=us(26),et=Wr(),Wt=cn(),vr;et&&re()!==59?(vr=Wt,Wt=void 0):(Sr(59),vr=Uo());let Hr=Vv();return fr(b.createBindingElement(Ae,Wt,vr,Hr),se)}function e0(){let se=$();Sr(19);let Ae=Vr(()=>xf(9,nd));return Sr(20),fr(b.createObjectBindingPattern(Ae),se)}function EC(){let se=$();Sr(23);let Ae=Vr(()=>xf(10,Gy));return Sr(24),fr(b.createArrayBindingPattern(Ae),se)}function bT(){return re()===19||re()===23||re()===81||Wr()}function Uo(se){return re()===23?EC():re()===19?e0():hp(se)}function ei(){return bd(!0)}function bd(se){let Ae=$(),et=Ke(),Wt=Uo(y.Private_identifiers_are_not_allowed_in_variable_declarations),vr;se&&Wt.kind===80&&re()===54&&!t.hasPrecedingLineBreak()&&(vr=el());let Hr=Z1(),bi=rp(re())?void 0:Vv(),ga=it(Wt,vr,Hr,bi);return Wn(fr(ga,Ae),et)}function w_(se){let Ae=$(),et=0;switch(re()){case 115:break;case 121:et|=1;break;case 87:et|=2;break;case 160:et|=4;break;case 135:I.assert(a_()),et|=6,Le();break;default:I.fail()}Le();let Wt;if(re()===165&&or(bD))Wt=hd();else{let vr=Lt();wn(se),Wt=xf(8,se?bd:ei),wn(vr)}return fr(ze(Wt,et),Ae)}function bD(){return Dp()&&Le()===22}function Vx(se,Ae,et){let Wt=w_(!1);qo();let vr=me(et,Wt);return Wn(fr(vr,se),Ae)}function DC(se,Ae,et){let Wt=ut(),vr=Ih(et);Sr(100);let Hr=us(42),bi=vr&2048?ny():hp(),ga=Hr?1:0,Qi=vr&1024?2:0,Zi=yd();vr&32&&da(!0);let Ja=ln(ga|Qi),kc=Er(59,!1),Cc=vw(ga|Qi,y.or_expected);da(Wt);let zo=b.createFunctionDeclaration(et,Hr,bi,Zi,Ja,kc,Cc);return Wn(fr(zo,se),Ae)}function xD(){if(re()===137)return Sr(137);if(re()===11&&or(Le)===21)return Mr(()=>{let se=Yt();return se.text==="constructor"?se:void 0})}function SD(se,Ae,et){return Mr(()=>{if(xD()){let Wt=yd(),vr=ln(0),Hr=Er(59,!1),bi=vw(0,y.or_expected),ga=b.createConstructorDeclaration(et,vr,bi);return ga.typeParameters=Wt,ga.type=Hr,Wn(fr(ga,se),Ae)}})}function Wd(se,Ae,et,Wt,vr,Hr,bi,ga){let Qi=Wt?1:0,Zi=Pt(et,G4)?2:0,Ja=yd(),kc=ln(Qi|Zi),Cc=Er(59,!1),zo=vw(Qi|Zi,ga),xm=b.createMethodDeclaration(et,Wt,vr,Hr,Ja,kc,Cc,zo);return xm.exclamationToken=bi,Wn(fr(xm,se),Ae)}function Ud(se,Ae,et,Wt,vr){let Hr=!vr&&!t.hasPrecedingLineBreak()?us(54):void 0,bi=Z1(),ga=ks(90112,Vv);Vl(Wt,bi,ga);let Qi=b.createPropertyDeclaration(et,Wt,vr||Hr,bi,ga);return Wn(fr(Qi,se),Ae)}function k_(se,Ae,et){let Wt=us(42),vr=cn(),Hr=us(58);return Wt||re()===21||re()===30?Wd(se,Ae,et,Wt,vr,Hr,void 0,y.or_expected):Ud(se,Ae,et,vr,Hr)}function sh(se,Ae,et,Wt,vr){let Hr=cn(),bi=yd(),ga=ln(0),Qi=Er(59,!1),Zi=vw(vr),Ja=Wt===177?b.createGetAccessorDeclaration(et,Hr,ga,Qi,Zi):b.createSetAccessorDeclaration(et,Hr,ga,Zi);return Ja.typeParameters=bi,v_(Ja)&&(Ja.type=Qi),Wn(fr(Ja,se),Ae)}function Q0(){let se;if(re()===60)return!0;for(;sx(re());){if(se=re(),zK(se))return!0;Le()}if(re()===42||(Xe()&&(se=re(),Le()),re()===23))return!0;if(se!==void 0){if(!Yf(se)||se===153||se===139)return!0;switch(re()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return as()}}return!1}function t0(se,Ae,et){Kc(126);let Wt=A(),vr=Wn(fr(b.createClassStaticBlockDeclaration(Wt),se),Ae);return vr.modifiers=et,vr}function A(){let se=Qe(),Ae=ut();Di(!1),da(!0);let et=iy(!1);return Di(se),da(Ae),et}function Se(){if(ut()&&re()===135){let se=$(),Ae=tl(y.Expression_expected);Le();let et=vd(se,Ae,!0);return Vy(se,et)}return ry()}function Jt(){let se=$();if(!la(60))return;let Ae=wt(Se);return fr(b.createDecorator(Ae),se)}function Nr(se,Ae,et){let Wt=$(),vr=re();if(re()===87&&Ae){if(!Mr(ua))return}else{if(et&&re()===126&&or(ED))return;if(se&&re()===126)return;if(!Wc())return}return fr(L(vr),Wt)}function Wi(se,Ae,et){let Wt=$(),vr,Hr,bi,ga=!1,Qi=!1,Zi=!1;if(se&&re()===60)for(;Hr=Jt();)vr=Zr(vr,Hr);for(;bi=Nr(ga,Ae,et);)bi.kind===126&&(ga=!0),vr=Zr(vr,bi),Qi=!0;if(Qi&&se&&re()===60)for(;Hr=Jt();)vr=Zr(vr,Hr),Zi=!0;if(Zi)for(;bi=Nr(ga,Ae,et);)bi.kind===126&&(ga=!0),vr=Zr(vr,bi);return vr&&jo(vr,Wt)}function pa(){let se;if(re()===134){let Ae=$();Le();let et=fr(L(134),Ae);se=jo([et],Ae)}return se}function Ha(){let se=$(),Ae=Ke();if(re()===27)return Le(),Wn(fr(b.createSemicolonClassElement(),se),Ae);let et=Wi(!0,!0,!0);if(re()===126&&or(ED))return t0(se,Ae,et);if(an(139))return sh(se,Ae,et,177,0);if(an(153))return sh(se,Ae,et,178,0);if(re()===137||re()===11){let Wt=SD(se,Ae,et);if(Wt)return Wt}if(rs())return Ia(se,Ae,et);if(Gf(re())||re()===11||re()===9||re()===10||re()===42||re()===23)if(Pt(et,lb)){for(let vr of et)vr.flags|=33554432;return no(33554432,()=>k_(se,Ae,et))}else return k_(se,Ae,et);if(et){let Wt=hc(80,!0,y.Declaration_expected);return Ud(se,Ae,et,Wt,void 0)}return I.fail("Should not have attempted to parse class member declaration.")}function ps(){let se=$(),Ae=Ke(),et=Wi(!0);if(re()===86)return vl(se,Ae,et,231);let Wt=hc(282,!0,y.Expression_expected);return j4(Wt,se),Wt.modifiers=et,Wt}function Co(){return vl($(),Ke(),void 0,231)}function Jf(se,Ae,et){return vl(se,Ae,et,263)}function vl(se,Ae,et,Wt){let vr=ut();Sr(86);let Hr=rl(),bi=yd();Pt(et,vE)&&da(!0);let ga=zf(),Qi;Sr(19)?(Qi=kD(),Sr(20)):Qi=hd(),da(vr);let Zi=Wt===263?b.createClassDeclaration(et,Hr,bi,ga,Qi):b.createClassExpression(et,Hr,bi,ga,Qi);return Wn(fr(Zi,se),Ae)}function rl(){return Wr()&&!TD()?Cl(Wr()):void 0}function TD(){return re()===119&&or(Ld)}function zf(){if(wD())return Jc(22,ay)}function ay(){let se=$(),Ae=re();I.assert(Ae===96||Ae===119),Le();let et=xf(7,Hx);return fr(b.createHeritageClause(Ae,et),se)}function Hx(){let se=$(),Ae=ry();if(Ae.kind===233)return Ae;let et=xT();return fr(b.createExpressionWithTypeArguments(Ae,et),se)}function xT(){return re()===30?_e(20,wu,30,32):void 0}function wD(){return re()===96||re()===119}function kD(){return Jc(5,Ha)}function ub(se,Ae,et){Sr(120);let Wt=tl(),vr=yd(),Hr=zf(),bi=By(),ga=b.createInterfaceDeclaration(et,Wt,vr,Hr,bi);return Wn(fr(ga,se),Ae)}function pb(se,Ae,et){Sr(156),t.hasPrecedingLineBreak()&&lr(y.Line_break_not_permitted_here);let Wt=tl(),vr=yd();Sr(64);let Hr=re()===141&&Mr(sD)||wu();qo();let bi=b.createTypeAliasDeclaration(et,Wt,vr,Hr);return Wn(fr(bi,se),Ae)}function bw(){let se=$(),Ae=Ke(),et=cn(),Wt=Vr(Vv);return Wn(fr(b.createEnumMember(et,Wt),se),Ae)}function sy(se,Ae,et){Sr(94);let Wt=tl(),vr;Sr(19)?(vr=vt(()=>xf(6,bw)),Sr(20)):vr=hd();let Hr=b.createEnumDeclaration(et,Wt,vr);return Wn(fr(Hr,se),Ae)}function CD(){let se=$(),Ae;return Sr(19)?(Ae=Jc(1,Ym),Sr(20)):Ae=hd(),fr(b.createModuleBlock(Ae),se)}function PD(se,Ae,et,Wt){let vr=Wt&32,Hr=Wt&8?Pl():tl(),bi=la(25)?PD($(),!1,void 0,8|vr):CD(),ga=b.createModuleDeclaration(et,Hr,bi,Wt);return Wn(fr(ga,se),Ae)}function mj(se,Ae,et){let Wt=0,vr;re()===162?(vr=tl(),Wt|=2048):(vr=Yt(),vr.text=uu(vr.text));let Hr;re()===19?Hr=CD():qo();let bi=b.createModuleDeclaration(et,vr,Hr,Wt);return Wn(fr(bi,se),Ae)}function xw(se,Ae,et){let Wt=0;if(re()===162)return mj(se,Ae,et);if(la(145))Wt|=32;else if(Sr(144),re()===11)return mj(se,Ae,et);return PD(se,Ae,et,Wt)}function gj(){return re()===149&&or(_8)}function _8(){return Le()===21}function ED(){return Le()===19}function ja(){return Le()===44}function Sw(se,Ae,et){Sr(130),Sr(145);let Wt=tl();qo();let vr=b.createNamespaceExportDeclaration(Wt);return vr.modifiers=et,Wn(fr(vr,se),Ae)}function Pn(se,Ae,et){Sr(102);let Wt=t.getTokenFullStart(),vr;$r()&&(vr=tl());let Hr=!1;if(vr?.escapedText==="type"&&(re()!==161||$r()&&or(vT))&&($r()||hj())&&(Hr=!0,vr=$r()?tl():void 0),vr&&!TT())return M$(se,Ae,et,vr,Hr);let bi=ST(vr,Wt,Hr),ga=ND(),Qi=DD();qo();let Zi=b.createImportDeclaration(et,bi,ga,Qi);return Wn(fr(Zi,se),Ae)}function ST(se,Ae,et,Wt=!1){let vr;return(se||re()===42||re()===19)&&(vr=wT(se,Ae,et,Wt),Sr(161)),vr}function DD(){let se=re();if((se===118||se===132)&&!t.hasPrecedingLineBreak())return OD(se)}function zA(){let se=$(),Ae=Gf(re())?Pl():qa(11);Sr(59);let et=T_(!0);return fr(b.createImportAttribute(Ae,et),se)}function OD(se,Ae){let et=$();Ae||Sr(se);let Wt=t.getTokenStart();if(Sr(19)){let vr=t.hasPrecedingLineBreak(),Hr=xf(24,zA,!0);if(!Sr(20)){let bi=dc(nt);bi&&bi.code===y._0_expected.code&&Hs(bi,sE(ge,Te,Wt,1,y.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return fr(b.createImportAttributes(Hr,vr,se),et)}else{let vr=jo([],$(),void 0,!1);return fr(b.createImportAttributes(vr,!1,se),et)}}function hj(){return re()===42||re()===19}function TT(){return re()===28||re()===161}function M$(se,Ae,et,Wt,vr){Sr(64);let Hr=R$();qo();let bi=b.createImportEqualsDeclaration(et,vr,Wt,Hr);return Wn(fr(bi,se),Ae)}function wT(se,Ae,et,Wt){let vr;return(!se||la(28))&&(Wt&&t.setSkipJsDocLeadingAsterisks(!0),vr=re()===42?yj():kT(275),Wt&&t.setSkipJsDocLeadingAsterisks(!1)),fr(b.createImportClause(et,se,vr),Ae)}function R$(){return gj()?Tw():xt(!1)}function Tw(){let se=$();Sr(149),Sr(21);let Ae=ND();return Sr(22),fr(b.createExternalModuleReference(Ae),se)}function ND(){if(re()===11){let se=Yt();return se.text=uu(se.text),se}else return yp()}function yj(){let se=$();Sr(42),Sr(130);let Ae=tl();return fr(b.createNamespaceImport(Ae),se)}function WA(){return Gf(re())||re()===11}function ww(se){return re()===11?Yt():se()}function kT(se){let Ae=$(),et=se===275?b.createNamedImports(_e(23,CT,19,20)):b.createNamedExports(_e(23,X0,19,20));return fr(et,Ae)}function X0(){let se=Ke();return Wn(oy(281),se)}function CT(){return oy(276)}function oy(se){let Ae=$(),et=Yf(re())&&!$r(),Wt=t.getTokenStart(),vr=t.getTokenEnd(),Hr=!1,bi,ga=!0,Qi=ww(Pl);if(Qi.kind===80&&Qi.escapedText==="type")if(re()===130){let kc=Pl();if(re()===130){let Cc=Pl();WA()?(Hr=!0,bi=kc,Qi=ww(Ja),ga=!1):(bi=Qi,Qi=Cc,ga=!1)}else WA()?(bi=Qi,ga=!1,Qi=ww(Ja)):(Hr=!0,Qi=kc)}else WA()&&(Hr=!0,Qi=ww(Ja));ga&&re()===130&&(bi=Qi,Sr(130),Qi=ww(Ja)),se===276&&(Qi.kind!==80?(We(yo(Te,Qi.pos),Qi.end,y.Identifier_expected),Qi=$g(hc(80,!1),Qi.pos,Qi.pos)):et&&We(Wt,vr,y.Identifier_expected));let Zi=se===276?b.createImportSpecifier(Hr,bi,Qi):b.createExportSpecifier(Hr,bi,Qi);return fr(Zi,Ae);function Ja(){return et=Yf(re())&&!$r(),Wt=t.getTokenStart(),vr=t.getTokenEnd(),Pl()}}function UA(se){return fr(b.createNamespaceExport(ww(Pl)),se)}function j$(se,Ae,et){let Wt=ut();da(!0);let vr,Hr,bi,ga=la(156),Qi=$();la(42)?(la(130)&&(vr=UA(Qi)),Sr(161),Hr=ND()):(vr=kT(279),(re()===161||re()===11&&!t.hasPrecedingLineBreak())&&(Sr(161),Hr=ND()));let Zi=re();Hr&&(Zi===118||Zi===132)&&!t.hasPrecedingLineBreak()&&(bi=OD(Zi)),qo(),da(Wt);let Ja=b.createExportDeclaration(et,ga,vr,Hr,bi);return Wn(fr(Ja,se),Ae)}function cy(se,Ae,et){let Wt=ut();da(!0);let vr;la(64)?vr=!0:Sr(90);let Hr=T_(!0);qo(),da(Wt);let bi=b.createExportAssignment(et,vr,Hr);return Wn(fr(bi,se),Ae)}let PT;(se=>{se[se.SourceElements=0]="SourceElements",se[se.BlockStatements=1]="BlockStatements",se[se.SwitchClauses=2]="SwitchClauses",se[se.SwitchClauseStatements=3]="SwitchClauseStatements",se[se.TypeMembers=4]="TypeMembers",se[se.ClassMembers=5]="ClassMembers",se[se.EnumMembers=6]="EnumMembers",se[se.HeritageClauseElement=7]="HeritageClauseElement",se[se.VariableDeclarations=8]="VariableDeclarations",se[se.ObjectBindingElements=9]="ObjectBindingElements",se[se.ArrayBindingElements=10]="ArrayBindingElements",se[se.ArgumentExpressions=11]="ArgumentExpressions",se[se.ObjectLiteralMembers=12]="ObjectLiteralMembers",se[se.JsxAttributes=13]="JsxAttributes",se[se.JsxChildren=14]="JsxChildren",se[se.ArrayLiteralMembers=15]="ArrayLiteralMembers",se[se.Parameters=16]="Parameters",se[se.JSDocParameters=17]="JSDocParameters",se[se.RestProperties=18]="RestProperties",se[se.TypeParameters=19]="TypeParameters",se[se.TypeArguments=20]="TypeArguments",se[se.TupleElementTypes=21]="TupleElementTypes",se[se.HeritageClauses=22]="HeritageClauses",se[se.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",se[se.ImportAttributes=24]="ImportAttributes",se[se.JSDocComment=25]="JSDocComment",se[se.Count=26]="Count"})(PT||(PT={}));let d8;(se=>{se[se.False=0]="False",se[se.True=1]="True",se[se.Unknown=2]="Unknown"})(d8||(d8={}));let fu;(se=>{function Ae(Zi,Ja,kc){Gt("file.js",Zi,99,void 0,1,0),t.setText(Zi,Ja,kc),qe=t.scan();let Cc=et(),zo=It("file.js",99,1,!1,[],L(1),0,Ko),xm=oE(nt,zo);return pe&&(zo.jsDocDiagnostics=oE(pe,zo)),hi(),Cc?{jsDocTypeExpression:Cc,diagnostics:xm}:void 0}se.parseJSDocTypeExpressionForTests=Ae;function et(Zi){let Ja=$(),kc=(Zi?la:Sr)(19),Cc=no(16777216,Yh);(!Zi||kc)&&pl(20);let zo=b.createJSDocTypeExpression(Cc);return at(zo),fr(zo,Ja)}se.parseJSDocTypeExpression=et;function Wt(){let Zi=$(),Ja=la(19),kc=$(),Cc=xt(!1);for(;re()===81;)Bt(),kt(),Cc=fr(b.createJSDocMemberName(Cc,tl()),kc);Ja&&pl(20);let zo=b.createJSDocNameReference(Cc);return at(zo),fr(zo,Zi)}se.parseJSDocNameReference=Wt;function vr(Zi,Ja,kc){Gt("",Zi,99,void 0,1,0);let Cc=no(16777216,()=>Qi(Ja,kc)),xm=oE(nt,{languageVariant:0,text:Zi});return hi(),Cc?{jsDoc:Cc,diagnostics:xm}:void 0}se.parseIsolatedJSDocComment=vr;function Hr(Zi,Ja,kc){let Cc=qe,zo=nt.length,xm=pr,Ky=no(16777216,()=>Qi(Ja,kc));return Xo(Ky,Zi),nn&524288&&(pe||(pe=[]),ti(pe,nt,zo)),qe=Cc,nt.length=zo,pr=xm,Ky}se.parseJSDocComment=Hr;let bi;(Zi=>{Zi[Zi.BeginningOfLine=0]="BeginningOfLine",Zi[Zi.SawAsterisk=1]="SawAsterisk",Zi[Zi.SavingComments=2]="SavingComments",Zi[Zi.SavingBackticks=3]="SavingBackticks"})(bi||(bi={}));let ga;(Zi=>{Zi[Zi.Property=1]="Property",Zi[Zi.Parameter=2]="Parameter",Zi[Zi.CallbackParameter=4]="CallbackParameter"})(ga||(ga={}));function Qi(Zi=0,Ja){let kc=Te,Cc=Ja===void 0?kc.length:Zi+Ja;if(Ja=Cc-Zi,I.assert(Zi>=0),I.assert(Zi<=Cc),I.assert(Cc<=kc.length),!LY(kc,Zi))return;let zo,xm,Ky,Zm,ip,oh=[],Gx=[],vj=ar;ar|=1<<25;let $o=t.scanRange(Zi+3,Ja-5,Iu);return ar=vj,$o;function Iu(){let on=1,pi,yi=Zi-(kc.lastIndexOf(`
|
|
`,Zi)+1)+4;function na(Go){pi||(pi=yi),oh.push(Go),yi+=Go.length}for(kt();_b(5););_b(4)&&(on=0,yi=0);e:for(;;){switch(re()){case 60:AD(oh),ip||(ip=$()),Xa(Jn(yi)),on=0,pi=void 0;break;case 4:oh.push(t.getTokenText()),on=0,yi=0;break;case 42:let Go=t.getTokenText();on===1?(on=2,na(Go)):(I.assert(on===0),on=1,yi+=Go.length);break;case 5:I.assert(on!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let zp=t.getTokenText();pi!==void 0&&yi+zp.length>pi&&oh.push(zp.slice(pi-yi)),yi+=zp.length;break;case 1:break e;case 82:on=2,na(t.getTokenValue());break;case 19:on=2;let uy=t.getTokenFullStart(),Fu=t.getTokenEnd()-1,lh=G(Fu);if(lh){Zm||Kx(oh),Gx.push(fr(b.createJSDocText(oh.join("")),Zm??Zi,uy)),Gx.push(lh),oh=[],Zm=t.getTokenEnd();break}default:on=2,na(t.getTokenText());break}on===2?dr(!1):kt()}let sa=oh.join("").trimEnd();Gx.length&&sa.length&&Gx.push(fr(b.createJSDocText(sa),Zm??Zi,ip)),Gx.length&&zo&&I.assertIsDefined(ip,"having parsed tags implies that the end of the comment span should be set");let Vo=zo&&jo(zo,xm,Ky);return fr(b.createJSDocComment(Gx.length?jo(Gx,Zi,ip):sa.length?sa:void 0,Vo),Zi,Cc)}function Kx(on){for(;on.length&&(on[0]===`
|
|
`||on[0]==="\r");)on.shift()}function AD(on){for(;on.length;){let pi=on[on.length-1].trimEnd();if(pi==="")on.pop();else if(pi.length<on[on.length-1].length){on[on.length-1]=pi;break}else break}}function $A(){for(;;){if(kt(),re()===1)return!0;if(!(re()===5||re()===4))return!1}}function s_(){if(!((re()===5||re()===4)&&or($A)))for(;re()===5||re()===4;)kt()}function Qx(){if((re()===5||re()===4)&&or($A))return"";let on=t.hasPrecedingLineBreak(),pi=!1,yi="";for(;on&&re()===42||re()===5||re()===4;)yi+=t.getTokenText(),re()===4?(on=!0,pi=!0,yi=""):re()===42&&(on=!1),kt();return pi?yi:""}function Jn(on){I.assert(re()===60);let pi=t.getTokenStart();kt();let yi=Pg(void 0),na=Qx(),sa;switch(yi.escapedText){case"author":sa=OC(pi,yi,on,na);break;case"implements":sa=xke(pi,yi,on,na);break;case"augments":case"extends":sa=Ske(pi,yi,on,na);break;case"class":case"constructor":sa=FD(pi,b.createJSDocClassTag,yi,on,na);break;case"public":sa=FD(pi,b.createJSDocPublicTag,yi,on,na);break;case"private":sa=FD(pi,b.createJSDocPrivateTag,yi,on,na);break;case"protected":sa=FD(pi,b.createJSDocProtectedTag,yi,on,na);break;case"readonly":sa=FD(pi,b.createJSDocReadonlyTag,yi,on,na);break;case"override":sa=FD(pi,b.createJSDocOverrideTag,yi,on,na);break;case"deprecated":ui=!0,sa=FD(pi,b.createJSDocDeprecatedTag,yi,on,na);break;case"this":sa=B$(pi,yi,on,na);break;case"enum":sa=Tke(pi,yi,on,na);break;case"arg":case"argument":case"param":return Qy(pi,yi,2,on);case"return":case"returns":sa=ET(pi,yi,on,na);break;case"template":sa=xj(pi,yi,on,na);break;case"type":sa=Jie(pi,yi,on,na);break;case"typedef":sa=wke(pi,yi,on,na);break;case"callback":sa=kke(pi,yi,on,na);break;case"overload":sa=fb(pi,yi,on,na);break;case"satisfies":sa=g8(pi,yi,on,na);break;case"see":sa=vke(pi,yi,on,na);break;case"exception":case"throws":sa=bke(pi,yi,on,na);break;case"import":sa=zie(pi,yi,on,na);break;default:sa=Qn(pi,yi,on,na);break}return sa}function k(on,pi,yi,na){return na||(yi+=pi-on),R(yi,na.slice(yi))}function R(on,pi){let yi=$(),na=[],sa=[],Vo,Go=0,zp;function uy(db){zp||(zp=on),na.push(db),on+=db.length}pi!==void 0&&(pi!==""&&uy(pi),Go=1);let Fu=re();e:for(;;){switch(Fu){case 4:Go=0,na.push(t.getTokenText()),on=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:I.assert(Go!==2&&Go!==3,"whitespace shouldn't come from the scanner while saving comment text");let db=t.getTokenText();zp!==void 0&&on+db.length>zp&&(na.push(db.slice(zp-on)),Go=2),on+=db.length;break;case 19:Go=2;let Sj=t.getTokenFullStart(),DT=t.getTokenEnd()-1,Tj=G(DT);Tj?(sa.push(fr(b.createJSDocText(na.join("")),Vo??yi,Sj)),sa.push(Tj),na=[],Vo=t.getTokenEnd()):uy(t.getTokenText());break;case 62:Go===3?Go=2:Go=3,uy(t.getTokenText());break;case 82:Go!==3&&(Go=2),uy(t.getTokenValue());break;case 42:if(Go===0){Go=1,on+=1;break}default:Go!==3&&(Go=2),uy(t.getTokenText());break}Go===2||Go===3?Fu=dr(Go===3):Fu=kt()}Kx(na);let lh=na.join("").trimEnd();if(sa.length)return lh.length&&sa.push(fr(b.createJSDocText(lh),Vo??yi)),jo(sa,yi,t.getTokenEnd());if(lh.length)return lh}function G(on){let pi=Mr(ct);if(!pi)return;kt(),s_();let yi=we(),na=[];for(;re()!==20&&re()!==4&&re()!==1;)na.push(t.getTokenText()),kt();let sa=pi==="link"?b.createJSDocLink:pi==="linkcode"?b.createJSDocLinkCode:b.createJSDocLinkPlain;return fr(sa(yi,na.join("")),on,t.getTokenEnd())}function we(){if(Gf(re())){let on=$(),pi=Pl();for(;la(25);)pi=fr(b.createQualifiedName(pi,re()===81?hc(80,!1):Pl()),on);for(;re()===81;)Bt(),kt(),pi=fr(b.createJSDocMemberName(pi,tl()),on);return pi}}function ct(){if(Qx(),re()===19&&kt()===60&&Gf(kt())){let on=t.getTokenValue();if(br(on))return on}}function br(on){return on==="link"||on==="linkcode"||on==="linkplain"}function Qn(on,pi,yi,na){return fr(b.createJSDocUnknownTag(pi,k(on,$(),yi,na)),on)}function Xa(on){on&&(zo?zo.push(on):(zo=[on],xm=on.pos),Ky=on.end)}function rc(){return Qx(),re()===19?et():void 0}function ch(){let on=_b(23);on&&s_();let pi=_b(62),yi=Wie();return pi&&Ro(62),on&&(s_(),us(64)&&yp(),Sr(24)),{name:yi,isBracketed:on}}function r0(on){switch(on.kind){case 151:return!0;case 188:return r0(on.elementType);default:return W_(on)&&Ye(on.typeName)&&on.typeName.escapedText==="Object"&&!on.typeArguments}}function Qy(on,pi,yi,na){let sa=rc(),Vo=!sa;Qx();let{name:Go,isBracketed:zp}=ch(),uy=Qx();Vo&&!or(ct)&&(sa=rc());let Fu=k(on,$(),na,uy),lh=ID(sa,Go,yi,na);lh&&(sa=lh,Vo=!0);let db=yi===1?b.createJSDocPropertyTag(pi,Go,zp,sa,Vo,Fu):b.createJSDocParameterTag(pi,Go,zp,sa,Vo,Fu);return fr(db,on)}function ID(on,pi,yi,na){if(on&&r0(on.type)){let sa=$(),Vo,Go;for(;Vo=Mr(()=>bj(yi,na,pi));)Vo.kind===341||Vo.kind===348?Go=Zr(Go,Vo):Vo.kind===345&&qt(Vo.tagName,y.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Go){let zp=fr(b.createJSDocTypeLiteral(Go,on.type.kind===188),sa);return fr(b.createJSDocTypeExpression(zp),sa)}}}function ET(on,pi,yi,na){Pt(zo,kz)&&We(pi.pos,t.getTokenStart(),y._0_tag_already_specified,ka(pi.escapedText));let sa=rc();return fr(b.createJSDocReturnTag(pi,sa,k(on,$(),yi,na)),on)}function Jie(on,pi,yi,na){Pt(zo,i3)&&We(pi.pos,t.getTokenStart(),y._0_tag_already_specified,ka(pi.escapedText));let sa=et(!0),Vo=yi!==void 0&&na!==void 0?k(on,$(),yi,na):void 0;return fr(b.createJSDocTypeTag(pi,sa,Vo),on)}function vke(on,pi,yi,na){let Vo=re()===23||or(()=>kt()===60&&Gf(kt())&&br(t.getTokenValue()))?void 0:Wt(),Go=yi!==void 0&&na!==void 0?k(on,$(),yi,na):void 0;return fr(b.createJSDocSeeTag(pi,Vo,Go),on)}function bke(on,pi,yi,na){let sa=rc(),Vo=k(on,$(),yi,na);return fr(b.createJSDocThrowsTag(pi,sa,Vo),on)}function OC(on,pi,yi,na){let sa=$(),Vo=m8(),Go=t.getTokenFullStart(),zp=k(on,Go,yi,na);zp||(Go=t.getTokenFullStart());let uy=typeof zp!="string"?jo(ya([fr(Vo,sa,Go)],zp),sa):Vo.text+zp;return fr(b.createJSDocAuthorTag(pi,uy),on)}function m8(){let on=[],pi=!1,yi=t.getToken();for(;yi!==1&&yi!==4;){if(yi===30)pi=!0;else{if(yi===60&&!pi)break;if(yi===32&&pi){on.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}on.push(t.getTokenText()),yi=kt()}return b.createJSDocText(on.join(""))}function xke(on,pi,yi,na){let sa=L$();return fr(b.createJSDocImplementsTag(pi,sa,k(on,$(),yi,na)),on)}function Ske(on,pi,yi,na){let sa=L$();return fr(b.createJSDocAugmentsTag(pi,sa,k(on,$(),yi,na)),on)}function g8(on,pi,yi,na){let sa=et(!1),Vo=yi!==void 0&&na!==void 0?k(on,$(),yi,na):void 0;return fr(b.createJSDocSatisfiesTag(pi,sa,Vo),on)}function zie(on,pi,yi,na){let sa=t.getTokenFullStart(),Vo;$r()&&(Vo=tl());let Go=ST(Vo,sa,!0,!0),zp=ND(),uy=DD(),Fu=yi!==void 0&&na!==void 0?k(on,$(),yi,na):void 0;return fr(b.createJSDocImportTag(pi,Go,zp,uy,Fu),on)}function L$(){let on=la(19),pi=$(),yi=h8();t.setSkipJsDocLeadingAsterisks(!0);let na=xT();t.setSkipJsDocLeadingAsterisks(!1);let sa=b.createExpressionWithTypeArguments(yi,na),Vo=fr(sa,pi);return on&&(s_(),Sr(20)),Vo}function h8(){let on=$(),pi=Pg();for(;la(25);){let yi=Pg();pi=fr(H(pi,yi),on)}return pi}function FD(on,pi,yi,na,sa){return fr(pi(yi,k(on,$(),na,sa)),on)}function B$(on,pi,yi,na){let sa=et(!0);return s_(),fr(b.createJSDocThisTag(pi,sa,k(on,$(),yi,na)),on)}function Tke(on,pi,yi,na){let sa=et(!0);return s_(),fr(b.createJSDocEnumTag(pi,sa,k(on,$(),yi,na)),on)}function wke(on,pi,yi,na){let sa=rc();Qx();let Vo=q$();s_();let Go=R(yi),zp;if(!sa||r0(sa.type)){let Fu,lh,db,Sj=!1;for(;(Fu=Mr(()=>Xx(yi)))&&Fu.kind!==345;)if(Sj=!0,Fu.kind===344)if(lh){let DT=lr(y.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);DT&&Hs(DT,sE(ge,Te,0,0,y.The_tag_was_first_specified_here));break}else lh=Fu;else db=Zr(db,Fu);if(Sj){let DT=sa&&sa.type.kind===188,Tj=b.createJSDocTypeLiteral(db,DT);sa=lh&&lh.typeExpression&&!r0(lh.typeExpression.type)?lh.typeExpression:fr(Tj,on),zp=sa.end}}zp=zp||Go!==void 0?$():(Vo??sa??pi).end,Go||(Go=k(on,zp,yi,na));let uy=b.createJSDocTypedefTag(pi,sa,Vo,Go);return fr(uy,on,zp)}function q$(on){let pi=t.getTokenStart();if(!Gf(re()))return;let yi=Pg();if(la(25)){let na=q$(!0),sa=b.createModuleDeclaration(void 0,yi,na,on?8:void 0);return fr(sa,pi)}return on&&(yi.flags|=4096),yi}function VA(on){let pi=$(),yi,na;for(;yi=Mr(()=>bj(4,on));){if(yi.kind===345){qt(yi.tagName,y.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}na=Zr(na,yi)}return jo(na||[],pi)}function J$(on,pi){let yi=VA(pi),na=Mr(()=>{if(_b(60)){let sa=Jn(pi);if(sa&&sa.kind===342)return sa}});return fr(b.createJSDocSignature(void 0,yi,na),on)}function kke(on,pi,yi,na){let sa=q$();s_();let Vo=R(yi),Go=J$(on,yi);Vo||(Vo=k(on,$(),yi,na));let zp=Vo!==void 0?$():Go.end;return fr(b.createJSDocCallbackTag(pi,Go,sa,Vo),on,zp)}function fb(on,pi,yi,na){s_();let sa=R(yi),Vo=J$(on,yi);sa||(sa=k(on,$(),yi,na));let Go=sa!==void 0?$():Vo.end;return fr(b.createJSDocOverloadTag(pi,Vo,sa),on,Go)}function An(on,pi){for(;!Ye(on)||!Ye(pi);)if(!Ye(on)&&!Ye(pi)&&on.right.escapedText===pi.right.escapedText)on=on.left,pi=pi.left;else return!1;return on.escapedText===pi.escapedText}function Xx(on){return bj(1,on)}function bj(on,pi,yi){let na=!0,sa=!1;for(;;)switch(kt()){case 60:if(na){let Vo=ly(on,pi);return Vo&&(Vo.kind===341||Vo.kind===348)&&yi&&(Ye(Vo.name)||!An(yi,Vo.name.left))?!1:Vo}sa=!1;break;case 4:na=!0,sa=!1;break;case 42:sa&&(na=!1),sa=!0;break;case 80:na=!1;break;case 1:return!1}}function ly(on,pi){I.assert(re()===60);let yi=t.getTokenFullStart();kt();let na=Pg(),sa=Qx(),Vo;switch(na.escapedText){case"type":return on===1&&Jie(yi,na);case"prop":case"property":Vo=1;break;case"arg":case"argument":case"param":Vo=6;break;case"template":return xj(yi,na,pi,sa);case"this":return B$(yi,na,pi,sa);default:return!1}return on&Vo?Qy(yi,na,on,pi):!1}function HA(){let on=$(),pi=_b(23);pi&&s_();let yi=Wi(!1,!0),na=Pg(y.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),sa;if(pi&&(s_(),Sr(64),sa=no(16777216,Yh),Sr(24)),!Sl(na))return fr(b.createTypeParameterDeclaration(yi,na,void 0,sa),on)}function GA(){let on=$(),pi=[];do{s_();let yi=HA();yi!==void 0&&pi.push(yi),Qx()}while(_b(28));return jo(pi,on)}function xj(on,pi,yi,na){let sa=re()===19?et():void 0,Vo=GA();return fr(b.createJSDocTemplateTag(pi,sa,Vo,k(on,$(),yi,na)),on)}function _b(on){return re()===on?(kt(),!0):!1}function Wie(){let on=Pg();for(la(23)&&Sr(24);la(25);){let pi=Pg();la(23)&&Sr(24),on=gr(on,pi)}return on}function Pg(on){if(!Gf(re()))return hc(80,!on,on||y.Identifier_expected);jt++;let pi=t.getTokenStart(),yi=t.getTokenEnd(),na=re(),sa=uu(t.getTokenValue()),Vo=fr(F(sa,na),pi,yi);return kt(),Vo}}})(fu=e.JSDocParser||(e.JSDocParser={}))})($S||($S={}));var gLe=new WeakSet;function EIt(e){gLe.has(e)&&I.fail("Source file has already been incrementally parsed"),gLe.add(e)}var hLe=new WeakSet;function DIt(e){return hLe.has(e)}function yye(e){hLe.add(e)}var qY;(e=>{function t(E,N,F,M){if(M=M||I.shouldAssert(2),b(E,N,F,M),Q_e(F))return E;if(E.statements.length===0)return $S.parseSourceFile(E.fileName,N,E.languageVersion,void 0,!0,E.scriptKind,E.setExternalModuleIndicator,E.jsDocParsingMode);EIt(E),$S.fixupParentReferences(E);let L=E.text,W=S(E),z=m(E,F);b(E,N,z,M),I.assert(z.span.start<=F.span.start),I.assert(ml(z.span)===ml(F.span)),I.assert(ml(zI(z))===ml(zI(F)));let H=zI(z).length-z.span.length;g(E,z.span.start,ml(z.span),ml(zI(z)),H,L,N,M);let X=$S.parseSourceFile(E.fileName,N,E.languageVersion,W,!0,E.scriptKind,E.setExternalModuleIndicator,E.jsDocParsingMode);return X.commentDirectives=n(E.commentDirectives,X.commentDirectives,z.span.start,ml(z.span),H,L,N,M),X.impliedNodeFormat=E.impliedNodeFormat,Ghe(E,X),X}e.updateSourceFile=t;function n(E,N,F,M,L,W,z,H){if(!E)return N;let X,ne=!1;for(let Y of E){let{range:Ee,type:fe}=Y;if(Ee.end<F)X=Zr(X,Y);else if(Ee.pos>M){ae();let te={range:{pos:Ee.pos+L,end:Ee.end+L},type:fe};X=Zr(X,te),H&&I.assert(W.substring(Ee.pos,Ee.end)===z.substring(te.range.pos,te.range.end))}}return ae(),X;function ae(){ne||(ne=!0,X?N&&X.push(...N):X=N)}}function i(E,N,F,M,L,W,z){F?X(E):H(E);return;function H(ne){let ae="";if(z&&s(ne)&&(ae=L.substring(ne.pos,ne.end)),kY(ne,N),$g(ne,ne.pos+M,ne.end+M),z&&s(ne)&&I.assert(ae===W.substring(ne.pos,ne.end)),xs(ne,H,X),fd(ne))for(let Y of ne.jsDoc)H(Y);p(ne,z)}function X(ne){$g(ne,ne.pos+M,ne.end+M);for(let ae of ne)H(ae)}}function s(E){switch(E.kind){case 11:case 9:case 80:return!0}return!1}function l(E,N,F,M,L){I.assert(E.end>=N,"Adjusting an element that was entirely before the change range"),I.assert(E.pos<=F,"Adjusting an element that was entirely after the change range"),I.assert(E.pos<=E.end);let W=Math.min(E.pos,M),z=E.end>=F?E.end+L:Math.min(E.end,M);if(I.assert(W<=z),E.parent){let H=E.parent;I.assertGreaterThanOrEqual(W,H.pos),I.assertLessThanOrEqual(z,H.end)}$g(E,W,z)}function p(E,N){if(N){let F=E.pos,M=L=>{I.assert(L.pos>=F),F=L.end};if(fd(E))for(let L of E.jsDoc)M(L);xs(E,M),I.assert(F<=E.end)}}function g(E,N,F,M,L,W,z,H){X(E);return;function X(ae){if(I.assert(ae.pos<=ae.end),ae.pos>F){i(ae,E,!1,L,W,z,H);return}let Y=ae.end;if(Y>=N){if(yye(ae),kY(ae,E),l(ae,N,F,M,L),xs(ae,X,ne),fd(ae))for(let Ee of ae.jsDoc)X(Ee);p(ae,H);return}I.assert(Y<N)}function ne(ae){if(I.assert(ae.pos<=ae.end),ae.pos>F){i(ae,E,!0,L,W,z,H);return}let Y=ae.end;if(Y>=N){yye(ae),l(ae,N,F,M,L);for(let Ee of ae)X(Ee);return}I.assert(Y<N)}}function m(E,N){let M=N.span.start;for(let z=0;M>0&&z<=1;z++){let H=x(E,M);I.assert(H.pos<=M);let X=H.pos;M=Math.max(0,X-1)}let L=Ul(M,ml(N.span)),W=N.newLength+(N.span.start-M);return kF(L,W)}function x(E,N){let F=E,M;if(xs(E,W),M){let z=L(M);z.pos>F.pos&&(F=z)}return F;function L(z){for(;;){let H=gX(z);if(H)z=H;else return z}}function W(z){if(!Sl(z))if(z.pos<=N){if(z.pos>=F.pos&&(F=z),N<z.end)return xs(z,W),!0;I.assert(z.end<=N),M=z}else return I.assert(z.pos>N),!0}}function b(E,N,F,M){let L=E.text;if(F&&(I.assert(L.length-F.span.length+F.newLength===N.length),M||I.shouldAssert(3))){let W=L.substr(0,F.span.start),z=N.substr(0,F.span.start);I.assert(W===z);let H=L.substring(ml(F.span),L.length),X=N.substring(ml(zI(F)),N.length);I.assert(H===X)}}function S(E){let N=E.statements,F=0;I.assert(F<N.length);let M=N[F],L=-1;return{currentNode(z){return z!==L&&(M&&M.end===z&&F<N.length-1&&(F++,M=N[F]),(!M||M.pos!==z)&&W(z)),L=z,I.assert(!M||M.pos===z),M}};function W(z){N=void 0,F=-1,M=void 0,xs(E,H,X);return;function H(ne){return z>=ne.pos&&z<ne.end?(xs(ne,H,X),!0):!1}function X(ne){if(z>=ne.pos&&z<ne.end)for(let ae=0;ae<ne.length;ae++){let Y=ne[ae];if(Y){if(Y.pos===z)return N=ne,F=ae,M=Y,!0;if(Y.pos<z&&z<Y.end)return xs(Y,H,X),!0}}return!1}}}e.createSyntaxCursor=S;let P;(E=>{E[E.Value=-1]="Value"})(P||(P={}))})(qY||(qY={}));function Wu(e){return Rz(e)!==void 0}function Rz(e){let t=NP(e,$J,!1);if(t)return t;if(il(e,".ts")){let n=gu(e),i=n.lastIndexOf(".d.");if(i>=0)return n.substring(i)}}function OIt(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,y.resolution_mode_should_be_either_require_or_import)}}function JY(e,t){let n=[];for(let i of vv(t,0)||ce){let s=t.substring(i.pos,i.end);FIt(n,i,s)}e.pragmas=new Map;for(let i of n){if(e.pragmas.has(i.name)){let s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function zY(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{let s=e.referencedFiles,l=e.typeReferenceDirectives,p=e.libReferenceDirectives;Ge(Sh(n),g=>{let{types:m,lib:x,path:b,["resolution-mode"]:S,preserve:P}=g.arguments,E=P==="true"?!0:void 0;if(g.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(m){let N=OIt(S,m.pos,m.end,t);l.push({pos:m.pos,end:m.end,fileName:m.value,...N?{resolutionMode:N}:{},...E?{preserve:E}:{}})}else x?p.push({pos:x.pos,end:x.end,fileName:x.value,...E?{preserve:E}:{}}):b?s.push({pos:b.pos,end:b.end,fileName:b.value,...E?{preserve:E}:{}}):t(g.range.pos,g.range.end-g.range.pos,y.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Dt(Sh(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(let s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,y.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{Ge(Sh(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:I.fail("Unhandled pragma kind")}})}var vye=new Map;function NIt(e){if(vye.has(e))return vye.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return vye.set(e,t),t}var AIt=/^\/\/\/\s*<(\S+)\s.*?\/>/m,IIt=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function FIt(e,t,n){let i=t.kind===2&&AIt.exec(n);if(i){let l=i[1].toLowerCase(),p=fg[l];if(!p||!(p.kind&1))return;if(p.args){let g={};for(let m of p.args){let b=NIt(m.name).exec(n);if(!b&&!m.optional)return;if(b){let S=b[2]||b[3];if(m.captureSpan){let P=t.pos+b.index+b[1].length+1;g[m.name]={value:S,pos:P,end:P+S.length}}else g[m.name]=S}}e.push({name:l,args:{arguments:g,range:t}})}else e.push({name:l,args:{arguments:{},range:t}});return}let s=t.kind===2&&IIt.exec(n);if(s)return yLe(e,t,2,s);if(t.kind===3){let l=/@(\S+)(\s+(?:\S.*)?)?$/gm,p;for(;p=l.exec(n);)yLe(e,t,4,p)}}function yLe(e,t,n,i){if(!i)return;let s=i[1].toLowerCase(),l=fg[s];if(!l||!(l.kind&n))return;let p=i[2],g=MIt(l,p);g!=="fail"&&e.push({name:s,args:{arguments:g,range:t}})}function MIt(e,t){if(!t)return{};if(!e.args)return{};let n=t.trim().split(/\s+/),i={};for(let s=0;s<e.args.length;s++){let l=e.args[s];if(!n[s]&&!l.optional)return"fail";if(l.captureSpan)return I.fail("Capture spans not yet implemented for non-xml pragmas");i[l.name]=n[s]}return i}function VS(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&VS(e.expression,t.expression)}var bye={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},vLe=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),wM=new Map(ci(vLe.entries(),([e,t])=>[""+t,e])),bLe=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],jz=bLe.map(e=>e[0]),WY=new Map(bLe),FE=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:y.Watch_and_Build_Modes,description:y.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:y.Watch_and_Build_Modes,description:y.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:y.Watch_and_Build_Modes,description:y.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:y.Watch_and_Build_Modes,description:y.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:zye},allowConfigDirTemplateSubstitution:!0,category:y.Watch_and_Build_Modes,description:y.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:zye},allowConfigDirTemplateSubstitution:!0,category:y.Watch_and_Build_Modes,description:y.Remove_a_list_of_files_from_the_watch_mode_s_processing}],Lz=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:y.Command_line_Options,description:y.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:y.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:y.Command_line_Options,description:y.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:y.Output_Formatting,description:y.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:y.Compiler_Diagnostics,description:y.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:y.Compiler_Diagnostics,description:y.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:y.Compiler_Diagnostics,description:y.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:y.Output_Formatting,description:y.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:y.Compiler_Diagnostics,description:y.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:y.Compiler_Diagnostics,description:y.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:y.Compiler_Diagnostics,description:y.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:y.FILE_OR_DIRECTORY,category:y.Compiler_Diagnostics,description:y.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:y.DIRECTORY,category:y.Compiler_Diagnostics,description:y.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:y.Projects,description:y.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:y.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.Emit,transpileOptionValue:void 0,description:y.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:y.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.Emit,defaultValueDescription:!1,description:y.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.Emit,description:y.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.Emit,defaultValueDescription:!1,description:y.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:y.Emit,description:y.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:y.Compiler_Diagnostics,description:y.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:y.Emit,description:y.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:y.Watch_and_Build_Modes,description:y.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:y.Command_line_Options,isCommandLineOnly:!0,description:y.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:y.Platform_specific}],UY={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:y.VERSION,showInSimplifiedHelpView:!0,category:y.Language_and_Environment,description:y.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},xye={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:y.KIND,showInSimplifiedHelpView:!0,category:y.Modules,description:y.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Sye=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:y.Command_line_Options,description:y.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:y.Command_line_Options,description:y.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:y.Command_line_Options,description:y.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:y.Command_line_Options,paramType:y.FILE_OR_DIRECTORY,description:y.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:y.Command_line_Options,isCommandLineOnly:!0,description:y.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:y.Command_line_Options,isCommandLineOnly:!0,description:y.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},UY,xye,{name:"lib",type:"list",element:{name:"lib",type:WY,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:y.Language_and_Environment,description:y.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.JavaScript_Support,description:y.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.JavaScript_Support,description:y.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:vLe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:y.KIND,showInSimplifiedHelpView:!0,category:y.Language_and_Environment,description:y.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:y.FILE,showInSimplifiedHelpView:!0,category:y.Emit,description:y.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:y.DIRECTORY,showInSimplifiedHelpView:!0,category:y.Emit,description:y.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:y.LOCATION,category:y.Modules,description:y.Specify_the_root_folder_within_your_source_files,defaultValueDescription:y.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:y.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:y.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:y.FILE,category:y.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:y.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.Emit,defaultValueDescription:!1,description:y.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:y.Emit,description:y.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Backwards_Compatibility,description:y.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Emit,description:y.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:y.Interop_Constraints,description:y.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Interop_Constraints,description:y.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:y.Interop_Constraints,description:y.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:y.Interop_Constraints,description:y.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:y.Language_and_Environment,description:y.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.Type_Checking,description:y.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:y.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:y.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:y.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:y.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:y.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:y.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:y.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:y.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:y.Type_Checking,description:y.Ensure_use_strict_is_always_emitted,defaultValueDescription:y.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:y.Type_Checking,description:y.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:y.STRATEGY,category:y.Modules,description:y.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:y.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:y.Modules,description:y.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:y.Modules,description:y.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:y.Modules,description:y.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:y.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:y.Modules,description:y.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:y.Modules,description:y.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Interop_Constraints,description:y.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:y.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:y.Interop_Constraints,description:y.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:y.Interop_Constraints,description:y.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Modules,description:y.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:y.Modules,description:y.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Modules,description:y.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Modules,description:y.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:y.Modules,description:y.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:y.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:y.Modules,description:y.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:y.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:y.Modules,description:y.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Modules,description:y.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:y.LOCATION,category:y.Emit,description:y.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:y.LOCATION,category:y.Emit,description:y.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Emit,description:y.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Language_and_Environment,description:y.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:y.Language_and_Environment,description:y.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:y.Language_and_Environment,description:y.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:y.Language_and_Environment,description:y.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:y.Language_and_Environment,description:y.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:y.Modules,description:y.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:y.Modules,description:y.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:y.Backwards_Compatibility,paramType:y.FILE,transpileOptionValue:void 0,description:y.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:y.Language_and_Environment,description:y.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:y.Completeness,description:y.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:y.Backwards_Compatibility,description:y.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Emit,description:y.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:y.NEWLINE,category:y.Emit,description:y.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Output_Formatting,description:y.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:y.Language_and_Environment,affectsProgramStructure:!0,description:y.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:y.Modules,description:y.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Emit,description:y.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:y.Editor_Support,description:y.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:y.Projects,description:y.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:y.Projects,description:y.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:y.Projects,description:y.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Backwards_Compatibility,description:y.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Emit,description:y.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Emit,transpileOptionValue:void 0,description:y.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Emit,description:y.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:y.DIRECTORY,category:y.Emit,transpileOptionValue:void 0,description:y.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:y.Completeness,description:y.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Type_Checking,description:y.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Backwards_Compatibility,description:y.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Backwards_Compatibility,description:y.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:y.Interop_Constraints,description:y.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:y.JavaScript_Support,description:y.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:y.Backwards_Compatibility,description:y.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:y.Language_and_Environment,description:y.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:y.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:y.Backwards_Compatibility,description:y.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:y.Backwards_Compatibility,description:y.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:y.Specify_a_list_of_language_service_plugins_to_include,category:y.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:y.Control_what_method_is_used_to_detect_module_format_JS_files,category:y.Language_and_Environment,defaultValueDescription:y.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],xg=[...Lz,...Sye],Tye=xg.filter(e=>!!e.affectsSemanticDiagnostics),wye=xg.filter(e=>!!e.affectsEmit),kye=xg.filter(e=>!!e.affectsDeclarationPath),$Y=xg.filter(e=>!!e.affectsModuleResolution),VY=xg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Cye=xg.filter(e=>!!e.affectsProgramStructure),Pye=xg.filter(e=>ec(e,"transpileOptionValue")),RIt=xg.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),jIt=FE.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Eye=xg.filter(LIt);function LIt(e){return!Ua(e.type)}var Qk={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:y.Command_line_Options,description:y.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},HY=[Qk,{name:"verbose",shortName:"v",category:y.Command_line_Options,description:y.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:y.Command_line_Options,description:y.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:y.Command_line_Options,description:y.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:y.Command_line_Options,description:y.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:y.Command_line_Options,description:y.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],kM=[...Lz,...HY],Bz=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function qz(e){let t=new Map,n=new Map;return Ge(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&n.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:n}}var xLe;function VN(){return xLe||(xLe=qz(xg))}var BIt={diagnostic:y.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:CLe},GY={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function Dye(e){return SLe(e,ll)}function SLe(e,t){let n=Ka(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(y.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function Jz(e,t,n){return o9e(e,(t??"").trim(),n)}function Oye(e,t="",n){if(t=t.trim(),La(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return ME(e,t,n);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Bi(i,s=>ME(e.element,parseInt(s),n));case"string":return Bi(i,s=>ME(e.element,s||"",n));case"boolean":case"object":return I.fail(`List of ${e.element.type} is not yet supported.`);default:return Bi(i,s=>Jz(e.element,s,n))}}function TLe(e){return e.name}function Nye(e,t,n,i,s){var l;let p=(l=t.alternateMode)==null?void 0:l.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(p)return HS(s,i,p!==Qk?t.alternateMode.diagnostic:y.Option_build_must_be_the_first_command_line_argument,e);let g=x0(e,t.optionDeclarations,TLe);return g?HS(s,i,t.unknownDidYouMeanDiagnostic,n||e,g.name):HS(s,i,t.unknownOptionDiagnostic,n||e)}function KY(e,t,n){let i={},s,l=[],p=[];return g(t),{options:i,watchOptions:s,fileNames:l,errors:p};function g(x){let b=0;for(;b<x.length;){let S=x[b];if(b++,S.charCodeAt(0)===64)m(S.slice(1));else if(S.charCodeAt(0)===45){let P=S.slice(S.charCodeAt(1)===45?2:1),E=Iye(e.getOptionsNameMap,P,!0);if(E)b=wLe(x,b,e,E,i,p);else{let N=Iye(ZY.getOptionsNameMap,P,!0);N?b=wLe(x,b,ZY,N,s||(s={}),p):p.push(Nye(P,e,S))}}else l.push(S)}}function m(x){let b=l3(x,n||(E=>Ru.readFile(E)));if(!Ua(b)){p.push(b);return}let S=[],P=0;for(;;){for(;P<b.length&&b.charCodeAt(P)<=32;)P++;if(P>=b.length)break;let E=P;if(b.charCodeAt(E)===34){for(P++;P<b.length&&b.charCodeAt(P)!==34;)P++;P<b.length?(S.push(b.substring(E+1,P)),P++):p.push(ll(y.Unterminated_quoted_string_in_response_file_0,x))}else{for(;b.charCodeAt(P)>32;)P++;S.push(b.substring(E,P))}}g(S)}}function wLe(e,t,n,i,s,l){if(i.isTSConfigOnly){let p=e[t];p==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?p==="false"?(s[i.name]=ME(i,!1,l),t++):(p==="true"&&t++,l.push(ll(y.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(l.push(ll(y.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),p&&!La(p,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&l.push(ll(n.optionTypeMismatchDiagnostic,i.name,eZ(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=ME(i,parseInt(e[t]),l),t++;break;case"boolean":let p=e[t];s[i.name]=ME(i,p!=="false",l),(p==="false"||p==="true")&&t++;break;case"string":s[i.name]=ME(i,e[t]||"",l),t++;break;case"list":let g=Oye(i,e[t],l);s[i.name]=g||[],g&&t++;break;case"listOrElement":I.fail("listOrElement not supported here");break;default:s[i.name]=Jz(i,e[t],l),t++;break}else s[i.name]=void 0,t++;return t}var zz={alternateMode:BIt,getOptionsNameMap:VN,optionDeclarations:xg,unknownOptionDiagnostic:y.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:y.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:y.Compiler_option_0_expects_an_argument};function Aye(e,t){return KY(zz,e,t)}function QY(e,t){return Iye(VN,e,t)}function Iye(e,t,n=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:s}=e();if(n){let l=s.get(t);l!==void 0&&(t=l)}return i.get(t)}var kLe;function CLe(){return kLe||(kLe=qz(kM))}var qIt={diagnostic:y.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:VN},JIt={alternateMode:qIt,getOptionsNameMap:CLe,optionDeclarations:kM,unknownOptionDiagnostic:y.Unknown_build_option_0,unknownDidYouMeanDiagnostic:y.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:y.Build_option_0_requires_a_value_of_type_1};function Fye(e){let{options:t,watchOptions:n,fileNames:i,errors:s}=KY(JIt,e),l=t;return i.length===0&&i.push("."),l.clean&&l.force&&s.push(ll(y.Options_0_and_1_cannot_be_combined,"clean","force")),l.clean&&l.verbose&&s.push(ll(y.Options_0_and_1_cannot_be_combined,"clean","verbose")),l.clean&&l.watch&&s.push(ll(y.Options_0_and_1_cannot_be_combined,"clean","watch")),l.watch&&l.dry&&s.push(ll(y.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:l,watchOptions:n,projects:i,errors:s}}function t_(e,...t){return Js(ll(e,...t).messageText,Ua)}function CM(e,t,n,i,s,l){let p=l3(e,x=>n.readFile(x));if(!Ua(p)){n.onUnRecoverableConfigFileDiagnostic(p);return}let g=TM(e,p),m=n.getCurrentDirectory();return g.path=Ec(e,m,Xu(n.useCaseSensitiveFileNames)),g.resolvedPath=g.path,g.originalFileName=g.fileName,DM(g,n,Qa(Ei(e),m),t,Qa(e,m),void 0,l,i,s)}function PM(e,t){let n=l3(e,t);return Ua(n)?XY(e,n):{config:{},error:n}}function XY(e,t){let n=TM(e,t);return{config:BLe(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function Mye(e,t){let n=l3(e,t);return Ua(n)?TM(e,n):{fileName:e,parseDiagnostics:[n]}}function l3(e,t){let n;try{n=t(e)}catch(i){return ll(y.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?ll(y.Cannot_read_file_0,e):n}function YY(e){return ck(e,TLe)}var PLe={optionDeclarations:Bz,unknownOptionDiagnostic:y.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:y.Unknown_type_acquisition_option_0_Did_you_mean_1},ELe;function DLe(){return ELe||(ELe=qz(FE))}var ZY={getOptionsNameMap:DLe,optionDeclarations:FE,unknownOptionDiagnostic:y.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:y.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:y.Watch_option_0_requires_a_value_of_type_1},OLe;function NLe(){return OLe||(OLe=YY(xg))}var ALe;function ILe(){return ALe||(ALe=YY(FE))}var FLe;function MLe(){return FLe||(FLe=YY(Bz))}var Wz={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:y.File_Management,disallowNullOrUndefined:!0},RLe={name:"compilerOptions",type:"object",elementOptions:NLe(),extraKeyDiagnostics:zz},jLe={name:"watchOptions",type:"object",elementOptions:ILe(),extraKeyDiagnostics:ZY},LLe={name:"typeAcquisition",type:"object",elementOptions:MLe(),extraKeyDiagnostics:PLe},Rye;function zIt(){return Rye===void 0&&(Rye={name:void 0,type:"object",elementOptions:YY([RLe,jLe,LLe,Wz,{name:"references",type:"list",element:{name:"references",type:"object"},category:y.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:y.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:y.File_Management,defaultValueDescription:y.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:y.File_Management,defaultValueDescription:y.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},bye])}),Rye}function BLe(e,t,n){var i;let s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==210){if(t.push(om(e,s,y.The_root_value_of_a_0_file_must_be_an_object,gu(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),kp(s)){let l=Ir(s.elements,So);if(l)return EM(e,l,t,!0,n)}return{}}return EM(e,s,t,!0,n)}function jye(e,t){var n;return EM(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function EM(e,t,n,i,s){if(!t)return i?{}:void 0;return g(t,s?.rootOptions);function l(x,b){var S;let P=i?{}:void 0;for(let E of x.properties){if(E.kind!==303){n.push(om(e,E,y.Property_assignment_expected));continue}E.questionToken&&n.push(om(e,E.questionToken,y.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),m(E.name)||n.push(om(e,E.name,y.String_literal_with_double_quotes_expected));let N=VF(E.name)?void 0:VP(E.name),F=N&&ka(N),M=F?(S=b?.elementOptions)==null?void 0:S.get(F):void 0,L=g(E.initializer,M);typeof F<"u"&&(i&&(P[F]=L),s?.onPropertySet(F,L,E,b,M))}return P}function p(x,b){if(!i){x.forEach(S=>g(S,b));return}return Cn(x.map(S=>g(S,b)),S=>S!==void 0)}function g(x,b){switch(x.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return m(x)||n.push(om(e,x,y.String_literal_with_double_quotes_expected)),x.text;case 9:return Number(x.text);case 224:if(x.operator!==41||x.operand.kind!==9)break;return-Number(x.operand.text);case 210:return l(x,b);case 209:return p(x.elements,b&&b.element)}b?n.push(om(e,x,y.Compiler_option_0_requires_a_value_of_type_1,b.name,eZ(b))):n.push(om(e,x,y.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function m(x){return vo(x)&&eJ(x,e)}}function eZ(e){return e.type==="listOrElement"?`${eZ(e.element)} or Array`:e.type==="list"?"Array":Ua(e.type)?e.type:"string"}function qLe(e,t){if(e){if(OM(t))return!e.disallowNullOrUndefined;if(e.type==="list")return cs(t);if(e.type==="listOrElement")return cs(t)||qLe(e.element,t);let n=Ua(e.type)?e.type:"string";return typeof t===n}return!1}function tZ(e,t,n){var i,s,l;let p=Xu(n.useCaseSensitiveFileNames),g=Dt(Cn(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?$It(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):v1),N=>WO(Qa(t,n.getCurrentDirectory()),Qa(N,n.getCurrentDirectory()),p)),m={configFilePath:Qa(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},x=$z(e.options,m),b=e.watchOptions&&VIt(e.watchOptions),S={compilerOptions:{...Uz(x),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:b&&Uz(b),references:Dt(e.projectReferences,N=>({...N,path:N.originalPath?N.originalPath:"",originalPath:void 0})),files:Re(g)?g:void 0,...(l=e.options.configFile)!=null&&l.configFileSpecs?{include:UIt(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},P=new Set(x.keys()),E={};for(let N in D4)if(!P.has(N)&&WIt(N,P)){let F=D4[N].computeValue(e.options),M=D4[N].computeValue({});F!==M&&(E[N]=D4[N].computeValue(e.options))}return y1(S.compilerOptions,Uz($z(E,m))),S}function WIt(e,t){let n=new Set;return i(e);function i(s){var l;return Jm(n,s)?Pt((l=D4[s])==null?void 0:l.dependencies,p=>t.has(p)||i(p)):!1}}function Uz(e){return Object.fromEntries(e)}function UIt(e){if(Re(e)){if(Re(e)!==1)return e;if(e[0]!==VLe)return e}}function $It(e,t,n,i){if(!t)return v1;let s=JJ(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),l=s.excludePattern&&N1(s.excludePattern,i.useCaseSensitiveFileNames),p=s.includeFilePattern&&N1(s.includeFilePattern,i.useCaseSensitiveFileNames);return p?l?g=>!(p.test(g)&&!l.test(g)):g=>!p.test(g):l?g=>l.test(g):v1}function JLe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return JLe(e.element);default:return e.type}}function rZ(e,t){return Lu(t,(n,i)=>{if(n===e)return i})}function $z(e,t){return zLe(e,VN(),t)}function VIt(e){return zLe(e,DLe())}function zLe(e,{optionsNameMap:t},n){let i=new Map,s=n&&Xu(n.useCaseSensitiveFileNames);for(let l in e)if(ec(e,l)){if(t.has(l)&&(t.get(l).category===y.Command_line_Options||t.get(l).category===y.Output_Formatting))continue;let p=e[l],g=t.get(l.toLowerCase());if(g){I.assert(g.type!=="listOrElement");let m=JLe(g);m?g.type==="list"?i.set(l,p.map(x=>rZ(x,m))):i.set(l,rZ(p,m)):n&&g.isFilePath?i.set(l,WO(n.configFilePath,Qa(p,Ei(n.configFilePath)),s)):n&&g.type==="list"&&g.element.isFilePath?i.set(l,p.map(x=>WO(n.configFilePath,Qa(x,Ei(n.configFilePath)),s))):i.set(l,p)}}return i}function Lye(e,t){let n=WLe(e);return s();function i(l){return Array(l+1).join(" ")}function s(){let l=[],p=i(2);return Sye.forEach(g=>{if(!n.has(g.name))return;let m=n.get(g.name),x=Vye(g);m!==x?l.push(`${p}${g.name}: ${m}`):ec(GY,g.name)&&l.push(`${p}${g.name}: ${x}`)}),l.join(t)+t}}function WLe(e){let t=gI(e,GY);return $z(t)}function Bye(e,t,n){let i=WLe(e);return p();function s(g){return Array(g+1).join(" ")}function l({category:g,name:m,isCommandLineOnly:x}){let b=[y.Command_line_Options,y.Editor_Support,y.Compiler_Diagnostics,y.Backwards_Compatibility,y.Watch_and_Build_Modes,y.Output_Formatting];return!x&&g!==void 0&&(!b.includes(g)||i.has(m))}function p(){let g=new Map;g.set(y.Projects,[]),g.set(y.Language_and_Environment,[]),g.set(y.Modules,[]),g.set(y.JavaScript_Support,[]),g.set(y.Emit,[]),g.set(y.Interop_Constraints,[]),g.set(y.Type_Checking,[]),g.set(y.Completeness,[]);for(let E of xg)if(l(E)){let N=g.get(E.category);N||g.set(E.category,N=[]),N.push(E)}let m=0,x=0,b=[];g.forEach((E,N)=>{b.length!==0&&b.push({value:""}),b.push({value:`/* ${gs(N)} */`});for(let F of E){let M;i.has(F.name)?M=`"${F.name}": ${JSON.stringify(i.get(F.name))}${(x+=1)===i.size?"":","}`:M=`// "${F.name}": ${JSON.stringify(Vye(F))},`,b.push({value:M,description:`/* ${F.description&&gs(F.description)||F.name} */`}),m=Math.max(M.length,m)}});let S=s(2),P=[];P.push("{"),P.push(`${S}"compilerOptions": {`),P.push(`${S}${S}/* ${gs(y.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),P.push("");for(let E of b){let{value:N,description:F=""}=E;P.push(N&&`${S}${S}${N}${F&&s(m-N.length+2)+F}`)}if(t.length){P.push(`${S}},`),P.push(`${S}"files": [`);for(let E=0;E<t.length;E++)P.push(`${S}${S}${JSON.stringify(t[E])}${E===t.length-1?"":","}`);P.push(`${S}]`)}else P.push(`${S}}`);return P.push("}"),P.join(n)+n}}function Vz(e,t){let n={},i=VN().optionsNameMap;for(let s in e)ec(e,s)&&(n[s]=HIt(i.get(s.toLowerCase()),e[s],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function HIt(e,t,n){if(e&&!OM(t)){if(e.type==="list"){let i=t;if(e.element.isFilePath&&i.length)return i.map(n)}else if(e.isFilePath)return n(t);I.assert(e.type!=="listOrElement")}return t}function ULe(e,t,n,i,s,l,p,g,m){return HLe(e,void 0,t,n,i,m,s,l,p,g)}function DM(e,t,n,i,s,l,p,g,m){var x,b;(x=Fn)==null||x.push(Fn.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});let S=HLe(void 0,e,t,n,i,m,s,l,p,g);return(b=Fn)==null||b.pop(),S}function nZ(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function OM(e){return e==null}function $Le(e,t){return Ei(Qa(e,t))}var VLe="**/*";function HLe(e,t,n,i,s={},l,p,g=[],m=[],x){I.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let b=[],S=ZLe(e,t,n,i,p,g,b,x),{raw:P}=S,E=GLe(gI(s,S.options||{}),RIt,i),N=Hz(l&&S.watchOptions?gI(l,S.watchOptions):S.watchOptions||l,i);E.configFilePath=p&&_p(p);let F=Zs(p?$Le(p,i):i),M=L();return t&&(t.configFileSpecs=M),nZ(E,t),{options:E,watchOptions:N,fileNames:W(F),projectReferences:z(F),typeAcquisition:S.typeAcquisition||sZ(),raw:P,errors:b,wildcardDirectories:a4t(M,F,n.useCaseSensitiveFileNames),compileOnSave:!!P.compileOnSave};function L(){let Y=ne("references",ze=>typeof ze=="object","object"),Ee=H(X("files"));if(Ee){let ze=Y==="no-prop"||cs(Y)&&Y.length===0,ge=ec(P,"extends");if(Ee.length===0&&ze&&!ge)if(t){let Me=p||"tsconfig.json",Te=y.The_files_list_in_config_file_0_is_empty,gt=YF(t,"files",xe=>xe.initializer),Tt=HS(t,gt,Te,Me);b.push(Tt)}else ae(y.The_files_list_in_config_file_0_is_empty,p||"tsconfig.json")}let fe=H(X("include")),te=X("exclude"),de=!1,me=H(te);if(te==="no-prop"){let ze=E.outDir,ge=E.declarationDir;(ze||ge)&&(me=Cn([ze,ge],Me=>!!Me))}Ee===void 0&&fe===void 0&&(fe=[VLe],de=!0);let ve,Pe,Oe,ie;fe&&(ve=u9e(fe,b,!0,t,"include"),Oe=Gz(ve,F)||ve),me&&(Pe=u9e(me,b,!1,t,"exclude"),ie=Gz(Pe,F)||Pe);let Ne=Cn(Ee,Ua),it=Gz(Ne,F)||Ne;return{filesSpecs:Ee,includeSpecs:fe,excludeSpecs:me,validatedFilesSpec:it,validatedIncludeSpecs:Oe,validatedExcludeSpecs:ie,validatedFilesSpecBeforeSubstitution:Ne,validatedIncludeSpecsBeforeSubstitution:ve,validatedExcludeSpecsBeforeSubstitution:Pe,isDefaultIncludeSpec:de}}function W(Y){let Ee=u3(M,Y,E,n,m);return YLe(Ee,NM(P),g)&&b.push(XLe(M,p)),Ee}function z(Y){let Ee,fe=ne("references",te=>typeof te=="object","object");if(cs(fe))for(let te of fe)typeof te.path!="string"?ae(y.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Ee||(Ee=[])).push({path:Qa(te.path,Y),originalPath:te.path,prepend:te.prepend,circular:te.circular});return Ee}function H(Y){return cs(Y)?Y:void 0}function X(Y){return ne(Y,Ua,"string")}function ne(Y,Ee,fe){if(ec(P,Y)&&!OM(P[Y]))if(cs(P[Y])){let te=P[Y];return!t&&!sn(te,Ee)&&b.push(ll(y.Compiler_option_0_requires_a_value_of_type_1,Y,fe)),te}else return ae(y.Compiler_option_0_requires_a_value_of_type_1,Y,"Array"),"not-array";return"no-prop"}function ae(Y,...Ee){t||b.push(ll(Y,...Ee))}}function Hz(e,t){return GLe(e,jIt,t)}function GLe(e,t,n){if(!e)return e;let i;for(let l of t)if(e[l.name]!==void 0){let p=e[l.name];switch(l.type){case"string":I.assert(l.isFilePath),iZ(p)&&s(l,QLe(p,n));break;case"list":I.assert(l.element.isFilePath);let g=Gz(p,n);g&&s(l,g);break;case"object":I.assert(l.name==="paths");let m=GIt(p,n);m&&s(l,m);break;default:I.fail("option type not supported")}}return i||e;function s(l,p){(i??(i=y1({},e)))[l.name]=p}}var KLe="${configDir}";function iZ(e){return Ua(e)&&La(e,KLe,!0)}function QLe(e,t){return Qa(e.replace(KLe,"./"),t)}function Gz(e,t){if(!e)return e;let n;return e.forEach((i,s)=>{iZ(i)&&((n??(n=e.slice()))[s]=QLe(i,t))}),n}function GIt(e,t){let n;return rm(e).forEach(s=>{if(!cs(e[s]))return;let l=Gz(e[s],t);l&&((n??(n=y1({},e)))[s]=l)}),n}function KIt(e){return e.code===y.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function XLe({includeSpecs:e,excludeSpecs:t},n){return ll(y.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function YLe(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function aZ(e){return!e.fileNames.length&&ec(e.raw,"references")}function NM(e){return!ec(e,"files")&&!ec(e,"references")}function Kz(e,t,n,i,s){let l=i.length;return YLe(e,s)?i.push(XLe(n,t)):__(i,p=>!KIt(p)),l!==i.length}function QIt(e){return!!e.options}function ZLe(e,t,n,i,s,l,p,g){var m;i=_p(i);let x=Qa(s||"",i);if(l.includes(x))return p.push(ll(y.Circularity_detected_while_resolving_configuration_Colon_0,[...l,x].join(" -> "))),{raw:e||jye(t,p)};let b=e?XIt(e,n,i,s,p):YIt(t,n,i,s,p);if((m=b.options)!=null&&m.paths&&(b.options.pathsBasePath=i),b.extendedConfigPath){l=l.concat([x]);let E={options:{}};Ua(b.extendedConfigPath)?S(E,b.extendedConfigPath):b.extendedConfigPath.forEach(N=>S(E,N)),E.include&&(b.raw.include=E.include),E.exclude&&(b.raw.exclude=E.exclude),E.files&&(b.raw.files=E.files),b.raw.compileOnSave===void 0&&E.compileOnSave&&(b.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=Ka(E.extendedSourceFiles.keys())),b.options=y1(E.options,b.options),b.watchOptions=b.watchOptions&&E.watchOptions?P(E,b.watchOptions):b.watchOptions||E.watchOptions}return b;function S(E,N){let F=ZIt(t,N,n,l,p,g,E);if(F&&QIt(F)){let M=F.raw,L,W=z=>{b.raw[z]||M[z]&&(E[z]=Dt(M[z],H=>iZ(H)||j_(H)?H:gi(L||(L=MI(Ei(N),i,Xu(n.useCaseSensitiveFileNames))),H)))};W("include"),W("exclude"),W("files"),M.compileOnSave!==void 0&&(E.compileOnSave=M.compileOnSave),y1(E.options,F.options),E.watchOptions=E.watchOptions&&F.watchOptions?P(E,F.watchOptions):E.watchOptions||F.watchOptions}}function P(E,N){return E.watchOptionsCopied?y1(E.watchOptions,N):(E.watchOptionsCopied=!0,y1({},E.watchOptions,N))}}function XIt(e,t,n,i,s){ec(e,"excludes")&&s.push(ll(y.Unknown_option_excludes_Did_you_mean_exclude));let l=a9e(e.compilerOptions,n,s,i),p=s9e(e.typeAcquisition,n,s,i),g=t4t(e.watchOptions,n,s);e.compileOnSave=e4t(e,n,s);let m=e.extends||e.extends===""?e9e(e.extends,t,n,i,s):void 0;return{raw:e,options:l,watchOptions:g,typeAcquisition:p,extendedConfigPath:m}}function e9e(e,t,n,i,s,l,p,g){let m,x=i?$Le(i,n):n;if(Ua(e))m=t9e(e,t,x,s,p,g);else if(cs(e)){m=[];for(let b=0;b<e.length;b++){let S=e[b];Ua(S)?m=Zr(m,t9e(S,t,x,s,p?.elements[b],g)):Xk(Wz.element,e,n,s,l,p?.elements[b],g)}}else Xk(Wz,e,n,s,l,p,g);return m}function YIt(e,t,n,i,s){let l=i9e(i),p,g,m,x,b=zIt(),S=BLe(e,s,{rootOptions:b,onPropertySet:P});return p||(p=sZ(i)),x&&S&&S.compilerOptions===void 0&&s.push(om(e,x[0],y._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,VP(x[0]))),{raw:S,options:l,watchOptions:g,typeAcquisition:p,extendedConfigPath:m};function P(E,N,F,M,L){if(L&&L!==Wz&&(N=Xk(L,N,n,s,F,F.initializer,e)),M?.name)if(L){let W;M===RLe?W=l:M===jLe?W=g??(g={}):M===LLe?W=p??(p=sZ(i)):I.fail("Unknown option"),W[L.name]=N}else E&&M?.extraKeyDiagnostics&&(M.elementOptions?s.push(Nye(E,M.extraKeyDiagnostics,void 0,F.name,e)):s.push(om(e,F.name,M.extraKeyDiagnostics.unknownOptionDiagnostic,E)));else M===b&&(L===Wz?m=e9e(N,t,n,i,s,F,F.initializer,e):L||(E==="excludes"&&s.push(om(e,F.name,y.Unknown_option_excludes_Did_you_mean_exclude)),Ir(Sye,W=>W.name===E)&&(x=Zr(x,F.name))))}}function t9e(e,t,n,i,s,l){if(e=_p(e),j_(e)||La(e,"./")||La(e,"../")){let g=Qa(e,n);if(!t.fileExists(g)&&!bc(g,".json")&&(g=`${g}.json`,!t.fileExists(g))){i.push(HS(l,s,y.File_0_not_found,e));return}return g}let p=ave(e,gi(n,"tsconfig.json"),t);if(p.resolvedModule)return p.resolvedModule.resolvedFileName;e===""?i.push(HS(l,s,y.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(HS(l,s,y.File_0_not_found,e))}function ZIt(e,t,n,i,s,l,p){let g=n.useCaseSensitiveFileNames?t:wy(t),m,x,b;if(l&&(m=l.get(g))?{extendedResult:x,extendedConfig:b}=m:(x=Mye(t,S=>n.readFile(S)),x.parseDiagnostics.length||(b=ZLe(void 0,x,n,Ei(t),gu(t),i,s,l)),l&&l.set(g,{extendedResult:x,extendedConfig:b})),e&&((p.extendedSourceFiles??(p.extendedSourceFiles=new Set)).add(x.fileName),x.extendedSourceFiles))for(let S of x.extendedSourceFiles)p.extendedSourceFiles.add(S);if(x.parseDiagnostics.length){s.push(...x.parseDiagnostics);return}return b}function e4t(e,t,n){if(!ec(e,bye.name))return!1;let i=Xk(bye,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function r9e(e,t,n){let i=[];return{options:a9e(e,t,i,n),errors:i}}function n9e(e,t,n){let i=[];return{options:s9e(e,t,i,n),errors:i}}function i9e(e){return e&&gu(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function a9e(e,t,n,i){let s=i9e(i);return qye(NLe(),e,t,s,zz,n),i&&(s.configFilePath=_p(i)),s}function sZ(e){return{enable:!!e&&gu(e)==="jsconfig.json",include:[],exclude:[]}}function s9e(e,t,n,i){let s=sZ(i);return qye(MLe(),e,t,s,PLe,n),s}function t4t(e,t,n){return qye(ILe(),e,t,void 0,ZY,n)}function qye(e,t,n,i,s,l){if(t){for(let p in t){let g=e.get(p);g?(i||(i={}))[g.name]=Xk(g,t[p],n,l):l.push(Nye(p,s))}return i}}function HS(e,t,n,...i){return e&&t?om(e,t,n,...i):ll(n,...i)}function Xk(e,t,n,i,s,l,p){if(e.isCommandLineOnly){i.push(HS(p,s?.name,y.Option_0_can_only_be_specified_on_command_line,e.name));return}if(qLe(e,t)){let g=e.type;if(g==="list"&&cs(t))return c9e(e,t,n,i,s,l,p);if(g==="listOrElement")return cs(t)?c9e(e,t,n,i,s,l,p):Xk(e.element,t,n,i,s,l,p);if(!Ua(e.type))return o9e(e,t,i,l,p);let m=ME(e,t,i,l,p);return OM(m)?m:r4t(e,n,m)}else i.push(HS(p,l,y.Compiler_option_0_requires_a_value_of_type_1,e.name,eZ(e)))}function r4t(e,t,n){return e.isFilePath&&(n=_p(n),n=iZ(n)?n:Qa(n,t),n===""&&(n=".")),n}function ME(e,t,n,i,s){var l;if(OM(t))return;let p=(l=e.extraValidation)==null?void 0:l.call(e,t);if(!p)return t;n.push(HS(s,i,...p))}function o9e(e,t,n,i,s){if(OM(t))return;let l=t.toLowerCase(),p=e.type.get(l);if(p!==void 0)return ME(e,p,n,i,s);n.push(SLe(e,(g,...m)=>HS(s,i,g,...m)))}function c9e(e,t,n,i,s,l,p){return Cn(Dt(t,(g,m)=>Xk(e.element,g,n,i,s,l?.elements[m],p)),g=>e.listPreserveFalsyValues?!0:!!g)}var n4t=/(?:^|\/)\*\*\/?$/,i4t=/^[^*?]*(?=\/[^/]*[*?])/;function u3(e,t,n,i,s=ce){t=Zs(t);let l=Xu(i.useCaseSensitiveFileNames),p=new Map,g=new Map,m=new Map,{validatedFilesSpec:x,validatedIncludeSpecs:b,validatedExcludeSpecs:S}=e,P=N4(n,s),E=$5(n,P);if(x)for(let L of x){let W=Qa(L,t);p.set(l(W),W)}let N;if(b&&b.length>0)for(let L of i.readDirectory(t,js(E),S,b,void 0)){if(il(L,".json")){if(!N){let H=b.filter(ne=>bc(ne,".json")),X=Dt(BJ(H,t,"files"),ne=>`^${ne}$`);N=X?X.map(ne=>N1(ne,i.useCaseSensitiveFileNames)):ce}if(Va(N,H=>H.test(L))!==-1){let H=l(L);!p.has(H)&&!m.has(H)&&m.set(H,L)}continue}if(o4t(L,p,g,P,l))continue;c4t(L,g,P,l);let W=l(L);!p.has(W)&&!g.has(W)&&g.set(W,L)}let F=Ka(p.values()),M=Ka(g.values());return F.concat(M,Ka(m.values()))}function Jye(e,t,n,i,s){let{validatedFilesSpec:l,validatedIncludeSpecs:p,validatedExcludeSpecs:g}=t;if(!Re(p)||!Re(g))return!1;n=Zs(n);let m=Xu(i);if(l){for(let x of l)if(m(Qa(x,n))===e)return!1}return Xz(e,g,i,s,n)}function l9e(e){let t=La(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(bc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function Qz(e,t,n,i){return Xz(e,Cn(t,s=>!l9e(s)),n,i)}function Xz(e,t,n,i,s){let l=O4(t,gi(Zs(i),s),"exclude"),p=l&&N1(l,n);return p?p.test(e)?!0:!zO(e)&&p.test(ju(e)):!1}function u9e(e,t,n,i,s){return e.filter(p=>{if(!Ua(p))return!1;let g=zye(p,n);return g!==void 0&&t.push(l(...g)),g===void 0});function l(p,g){let m=Wq(i,s,g);return HS(i,m,p,g)}}function zye(e,t){if(I.assert(typeof e=="string"),t&&n4t.test(e))return[y.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(l9e(e))return[y.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function a4t({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){let s=O4(t,n,"exclude"),l=s&&new RegExp(s,i?"":"i"),p={},g=new Map;if(e!==void 0){let m=[];for(let x of e){let b=Zs(gi(n,x));if(l&&l.test(b))continue;let S=s4t(b,i);if(S){let{key:P,path:E,flags:N}=S,F=g.get(P),M=F!==void 0?p[F]:void 0;(M===void 0||M<N)&&(p[F!==void 0?F:E]=N,F===void 0&&g.set(P,E),N===1&&m.push(P))}}for(let x in p)if(ec(p,x))for(let b of m){let S=Wye(x,i);S!==b&&am(b,S,n,!i)&&delete p[x]}}return p}function Wye(e,t){return t?e:wy(e)}function s4t(e,t){let n=i4t.exec(e);if(n){let i=e.indexOf("?"),s=e.indexOf("*"),l=e.lastIndexOf(jc);return{key:Wye(n[0],t),path:n[0],flags:i!==-1&&i<l||s!==-1&&s<l?1:0}}if(PX(e.substring(e.lastIndexOf(jc)+1))){let i=T1(e);return{key:Wye(i,t),path:i,flags:1}}}function o4t(e,t,n,i,s){let l=Ge(i,p=>Wl(e,p)?p:void 0);if(!l)return!1;for(let p of l){if(il(e,p)&&(p!==".ts"||!il(e,".d.ts")))return!1;let g=s(I0(e,p));if(t.has(g)||n.has(g)){if(p===".d.ts"&&(il(e,".js")||il(e,".jsx")))continue;return!0}}return!1}function c4t(e,t,n,i){let s=Ge(n,l=>Wl(e,l)?l:void 0);if(s)for(let l=s.length-1;l>=0;l--){let p=s[l];if(il(e,p))return;let g=i(I0(e,p));t.delete(g)}}function Uye(e){let t={};for(let n in e)if(ec(e,n)){let i=QY(n);i!==void 0&&(t[n]=$ye(e[n],i))}return t}function $ye(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!cs(e))return $ye(e,t.element);case"list":let n=t.element;return cs(e)?Bi(e,i=>$ye(i,n)):"";default:return Lu(t.type,(i,s)=>{if(i===e)return s})}}function Vye(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Vye(e.element);case"object":return{};default:let n=h1(e.type.keys());return n!==void 0?n:I.fail("Expected 'option.type' to have entries.")}}function es(e,t,...n){e.trace(cE(t,...n))}function Ex(e,t){return!!e.traceResolution&&t.trace!==void 0}function RE(e,t,n){let i;if(t&&e){let s=e.contents.packageJsonContent;typeof s.name=="string"&&typeof s.version=="string"&&(i={name:s.name,subModuleName:t.path.slice(e.packageDirectory.length+jc.length),version:s.version,peerDependencies:D4t(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function oZ(e){return RE(void 0,e,void 0)}function p9e(e){if(e)return I.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function Yz(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function l4t(e){let t=[];return e&1&&t.push(...U5),e&2&&t.push(...wN),e&4&&t.push(...$J),e&8&&t.push(".json"),t}function Hye(e){if(e)return I.assert(HJ(e.extension)),{fileName:e.path,packageId:e.packageId}}function f9e(e,t,n,i,s,l,p,g,m){if(!p.resultFromCache&&!p.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Hu(e)){let{resolvedFileName:x,originalPath:b}=m9e(t.path,p.host,p.traceEnabled);b&&(t={...t,path:x,originalPath:b})}return _9e(t,n,i,s,l,p.resultFromCache,g,m)}function _9e(e,t,n,i,s,l,p,g){return l?p?.isReadonly?{...l,failedLookupLocations:Gye(l.failedLookupLocations,n),affectingLocations:Gye(l.affectingLocations,i),resolutionDiagnostics:Gye(l.resolutionDiagnostics,s)}:(l.failedLookupLocations=HN(l.failedLookupLocations,n),l.affectingLocations=HN(l.affectingLocations,i),l.resolutionDiagnostics=HN(l.resolutionDiagnostics,s),l):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:p3(n),affectingLocations:p3(i),resolutionDiagnostics:p3(s),alternateResult:g}}function p3(e){return e.length?e:void 0}function HN(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Gye(e,t){return e?.length?t.length?[...e,...t]:e.slice():p3(t)}function Kye(e,t,n,i){if(!ec(e,t)){i.traceEnabled&&es(i.host,y.package_json_does_not_have_a_0_field,t);return}let s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&es(i.host,y.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function cZ(e,t,n,i){let s=Kye(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&es(i.host,y.package_json_had_a_falsy_0_field,t);return}let l=Zs(gi(n,s));return i.traceEnabled&&es(i.host,y.package_json_has_0_field_1_that_references_2,t,s,l),l}function u4t(e,t,n){return cZ(e,"typings",t,n)||cZ(e,"types",t,n)}function p4t(e,t,n){return cZ(e,"tsconfig",t,n)}function f4t(e,t,n){return cZ(e,"main",t,n)}function _4t(e,t){let n=Kye(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&es(t.host,y.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function d4t(e,t){let n=_4t(e,t);if(n===void 0)return;if(t.traceEnabled)for(let p in n)ec(n,p)&&!TI.tryParse(p)&&es(t.host,y.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,p);let i=Zz(n);if(!i){t.traceEnabled&&es(t.host,y.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,le);return}let{version:s,paths:l}=i;if(typeof l!="object"){t.traceEnabled&&es(t.host,y.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof l);return}return i}var Qye;function Zz(e){Qye||(Qye=new F_(ye));for(let t in e){if(!ec(e,t))continue;let n=TI.tryParse(t);if(n!==void 0&&n.test(Qye))return{version:t,paths:e[t]}}}function f3(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=Ei(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return m4t(n)}function m4t(e){let t;return RI(Zs(e),n=>{let i=gi(n,g4t);(t??(t=[])).push(i)}),t}var g4t=gi("node_modules","@types");function d9e(e,t,n){let i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return S0(e,t,!i)===0}function m9e(e,t,n){let i=w9e(e,t,n),s=d9e(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function g9e(e,t,n){let i=bc(e,"/node_modules/@types")||bc(e,"/node_modules/@types/")?j9e(t,n):t;return gi(e,i)}function Xye(e,t,n,i,s,l,p){I.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let g=Ex(n,i);s&&(n=s.commandLine.options);let m=t?Ei(t):void 0,x=m?l?.getFromDirectoryCache(e,p,m,s):void 0;if(!x&&m&&!Hu(e)&&(x=l?.getFromNonRelativeNameCache(e,p,m,s)),x)return g&&(es(i,y.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&es(i,y.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),es(i,y.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,m),X(x)),x;let b=f3(n,i);g&&(t===void 0?b===void 0?es(i,y.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):es(i,y.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,b):b===void 0?es(i,y.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):es(i,y.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,b),s&&es(i,y.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let S=[],P=[],E=Yye(n);p!==void 0&&(E|=30);let N=Xp(n);p===99&&3<=N&&N<=99&&(E|=32);let F=E&8?Dx(n,p):[],M=[],L={compilerOptions:n,host:i,traceEnabled:g,failedLookupLocations:S,affectingLocations:P,packageJsonInfoCache:l,features:E,conditions:F,requestContainingDirectory:m,reportDiagnostic:Y=>void M.push(Y),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},W=ne(),z=!0;W||(W=ae(),z=!1);let H;if(W){let{fileName:Y,packageId:Ee}=W,fe=Y,te;n.preserveSymlinks||({resolvedFileName:fe,originalPath:te}=m9e(Y,i,g)),H={primary:z,resolvedFileName:fe,originalPath:te,packageId:Ee,isExternalLibraryImport:Ox(Y)}}return x={resolvedTypeReferenceDirective:H,failedLookupLocations:p3(S),affectingLocations:p3(P),resolutionDiagnostics:p3(M)},m&&l&&!l.isReadonly&&(l.getOrCreateCacheForDirectory(m,s).set(e,p,x),Hu(e)||l.getOrCreateCacheForNonRelativeName(e,p,s).set(m,x)),g&&X(x),x;function X(Y){var Ee;(Ee=Y.resolvedTypeReferenceDirective)!=null&&Ee.resolvedFileName?Y.resolvedTypeReferenceDirective.packageId?es(i,y.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,Y.resolvedTypeReferenceDirective.resolvedFileName,TS(Y.resolvedTypeReferenceDirective.packageId),Y.resolvedTypeReferenceDirective.primary):es(i,y.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,Y.resolvedTypeReferenceDirective.resolvedFileName,Y.resolvedTypeReferenceDirective.primary):es(i,y.Type_reference_directive_0_was_not_resolved,e)}function ne(){if(b&&b.length)return g&&es(i,y.Resolving_with_primary_search_path_0,b.join(", ")),jr(b,Y=>{let Ee=g9e(Y,e,L),fe=Wg(Y,i);if(!fe&&g&&es(i,y.Directory_0_does_not_exist_skipping_all_lookups_in_it,Y),n.typeRoots){let te=QN(4,Ee,!fe,L);if(te){let de=IM(te.path),me=de?Zk(de,!1,L):void 0;return Hye(RE(me,te,L))}}return Hye(ove(4,Ee,!fe,L))});g&&es(i,y.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ae(){let Y=t&&Ei(t);if(Y!==void 0){let Ee;if(!n.typeRoots||!bc(t,E3))if(g&&es(i,y.Looking_up_in_node_modules_folder_initial_location_0,Y),Hu(e)){let{path:fe}=T9e(Y,e);Ee=fZ(4,fe,!1,L,!0)}else{let fe=I9e(4,e,Y,L,void 0,void 0);Ee=fe&&fe.value}else g&&es(i,y.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Hye(Ee)}else g&&es(i,y.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Yye(e){let t=0;switch(Xp(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function Dx(e,t){let n=Xp(e);if(t===void 0){if(n===100)t=99;else if(n===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),n!==100&&i.push("node"),ya(i,e.customConditions)}function lZ(e,t,n,i,s){let l=d3(s?.getPackageJsonInfoCache(),i,n);return My(i,t,p=>{if(gu(p)!=="node_modules"){let g=gi(p,"node_modules"),m=gi(g,e);return Zk(m,!1,l)}})}function eW(e,t){if(e.types)return e.types;let n=[];if(t.directoryExists&&t.getDirectories){let i=f3(e,t);if(i){for(let s of i)if(t.directoryExists(s))for(let l of t.getDirectories(s)){let p=Zs(l),g=gi(s,p,"package.json");if(!(t.fileExists(g)&&vN(g,t).typings===null)){let x=gu(p);x.charCodeAt(0)!==46&&n.push(x)}}}}return n}function tW(e){return!!e?.contents}function Zye(e){return!!e&&!e.contents}function eve(e){var t;if(e===null||typeof e!="object")return""+e;if(cs(e))return`[${(t=e.map(i=>eve(i)))==null?void 0:t.join(",")}]`;let n="{";for(let i in e)ec(e,i)&&(n+=`${i}: ${eve(e[i])}`);return n+"}"}function uZ(e,t){return t.map(n=>eve(RJ(e,n))).join("|")+`|${e.pathsBasePath}`}function h9e(e,t){let n=new Map,i=new Map,s=new Map;return e&&n.set(e,s),{getMapOfCacheRedirects:l,getOrCreateMapOfCacheRedirects:p,update:g,clear:x,getOwnMap:()=>s};function l(S){return S?m(S.commandLine.options,!1):s}function p(S){return S?m(S.commandLine.options,!0):s}function g(S){e!==S&&(e?s=m(S,!0):n.set(S,s),e=S)}function m(S,P){let E=n.get(S);if(E)return E;let N=b(S);if(E=i.get(N),!E){if(e){let F=b(e);F===N?E=s:i.has(F)||i.set(F,s)}P&&(E??(E=new Map)),E&&i.set(N,E)}return E&&n.set(S,E),E}function x(){let S=e&&t.get(e);s.clear(),n.clear(),t.clear(),i.clear(),e&&(S&&t.set(e,S),n.set(e,s))}function b(S){let P=t.get(S);return P||t.set(S,P=uZ(S,$Y)),P}}function h4t(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:l,getInternalMap:p};function i(g){return n?.get(Ec(g,e,t))}function s(g,m){(n||(n=new Map)).set(Ec(g,e,t),m)}function l(){n=void 0}function p(){return n}}function y9e(e,t,n,i){let s=e.getOrCreateMapOfCacheRedirects(t),l=s.get(n);return l||(l=i(),s.set(n,l)),l}function y4t(e,t,n,i){let s=h9e(n,i);return{getFromDirectoryCache:m,getOrCreateCacheForDirectory:g,clear:l,update:p,directoryToModuleNameMap:s};function l(){s.clear()}function p(x){s.update(x)}function g(x,b){let S=Ec(x,e,t);return y9e(s,b,S,()=>GN())}function m(x,b,S,P){var E,N;let F=Ec(S,e,t);return(N=(E=s.getMapOfCacheRedirects(P))==null?void 0:E.get(F))==null?void 0:N.get(x,b)}}function _3(e,t){return t===void 0?e:`${t}|${e}`}function GN(){let e=new Map,t=new Map,n={get(s,l){return e.get(i(s,l))},set(s,l,p){return e.set(i(s,l),p),n},delete(s,l){return e.delete(i(s,l)),n},has(s,l){return e.has(i(s,l))},forEach(s){return e.forEach((l,p)=>{let[g,m]=t.get(p);return s(l,g,m)})},size(){return e.size}};return n;function i(s,l){let p=_3(s,l);return t.set(p,[s,l]),p}}function v4t(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function b4t(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function x4t(e,t,n,i,s){let l=h9e(n,s);return{getFromNonRelativeNameCache:m,getOrCreateCacheForNonRelativeName:x,clear:p,update:g};function p(){l.clear()}function g(S){l.update(S)}function m(S,P,E,N){var F,M;return I.assert(!Hu(S)),(M=(F=l.getMapOfCacheRedirects(N))==null?void 0:F.get(_3(S,P)))==null?void 0:M.get(E)}function x(S,P,E){return I.assert(!Hu(S)),y9e(l,E,_3(S,P),b)}function b(){let S=new Map;return{get:P,set:E};function P(F){return S.get(Ec(F,e,t))}function E(F,M){let L=Ec(F,e,t);if(S.has(L))return;S.set(L,M);let W=i(M),z=W&&N(L,W),H=L;for(;H!==z;){let X=Ei(H);if(X===H||S.has(X))break;S.set(X,M),H=X}}function N(F,M){let L=Ec(Ei(M),e,t),W=0,z=Math.min(F.length,L.length);for(;W<z&&F.charCodeAt(W)===L.charCodeAt(W);)W++;if(W===F.length&&(L.length===W||L[W]===jc))return F;let H=Lg(F);if(W<H)return;let X=F.lastIndexOf(jc,W-1);if(X!==-1)return F.substr(0,Math.max(X,H))}}}function v9e(e,t,n,i,s,l){l??(l=new Map);let p=y4t(e,t,n,l),g=x4t(e,t,n,s,l);return i??(i=h4t(e,t)),{...i,...p,...g,clear:m,update:b,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:x,optionsToRedirectsKey:l};function m(){x(),i.clear()}function x(){p.clear(),g.clear()}function b(S){p.update(S),g.update(S)}}function KN(e,t,n,i,s){let l=v9e(e,t,n,i,v4t,s);return l.getOrCreateCacheForModuleName=(p,g,m)=>l.getOrCreateCacheForNonRelativeName(p,g,m),l}function rW(e,t,n,i,s){return v9e(e,t,n,i,b4t,s)}function pZ(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function nW(e,t,n,i,s){return Yk(e,t,pZ(n),i,s)}function b9e(e,t,n,i){let s=Ei(t);return n.getFromDirectoryCache(e,i,s,void 0)}function Yk(e,t,n,i,s,l,p){let g=Ex(n,i);l&&(n=l.commandLine.options),g&&(es(i,y.Resolving_module_0_from_1,e,t),l&&es(i,y.Using_compiler_options_of_project_reference_redirect_0,l.sourceFile.fileName));let m=Ei(t),x=s?.getFromDirectoryCache(e,p,m,l);if(x)g&&es(i,y.Resolution_for_module_0_was_found_in_cache_from_location_1,e,m);else{let b=n.moduleResolution;switch(b===void 0?(b=Xp(n),g&&es(i,y.Module_resolution_kind_is_not_specified_using_0,Jr[b])):g&&es(i,y.Explicitly_specified_module_resolution_kind_Colon_0,Jr[b]),b){case 3:x=k4t(e,t,n,i,s,l,p);break;case 99:x=C4t(e,t,n,i,s,l,p);break;case 2:x=ive(e,t,n,i,s,l,p?Dx(n,p):void 0);break;case 1:x=uve(e,t,n,i,s,l);break;case 100:x=nve(e,t,n,i,s,l,p?Dx(n,p):void 0);break;default:return I.fail(`Unexpected moduleResolution: ${b}`)}s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(m,l).set(e,p,x),Hu(e)||s.getOrCreateCacheForNonRelativeName(e,p,l).set(m,x))}return g&&(x.resolvedModule?x.resolvedModule.packageId?es(i,y.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,x.resolvedModule.resolvedFileName,TS(x.resolvedModule.packageId)):es(i,y.Module_name_0_was_successfully_resolved_to_1,e,x.resolvedModule.resolvedFileName):es(i,y.Module_name_0_was_not_resolved,e)),x}function x9e(e,t,n,i,s){let l=S4t(e,t,i,s);return l?l.value:Hu(t)?T4t(e,t,n,i,s):w4t(e,t,i,s)}function S4t(e,t,n,i){let{baseUrl:s,paths:l}=i.compilerOptions;if(l&&!pd(t)){i.traceEnabled&&(s&&es(i.host,y.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),es(i.host,y.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=dJ(i.compilerOptions,i.host),g=G5(l);return cve(e,t,p,l,g,n,!1,i)}}function T4t(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&es(s.host,y.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let l=Zs(gi(n,t)),p,g;for(let m of s.compilerOptions.rootDirs){let x=Zs(m);bc(x,jc)||(x+=jc);let b=La(l,x)&&(g===void 0||g.length<x.length);s.traceEnabled&&es(s.host,y.Checking_if_0_is_the_longest_matching_prefix_for_1_2,x,l,b),b&&(g=x,p=m)}if(g){s.traceEnabled&&es(s.host,y.Longest_matching_prefix_for_0_is_1,l,g);let m=l.substr(g.length);s.traceEnabled&&es(s.host,y.Loading_0_from_the_root_dir_1_candidate_location_2,m,g,l);let x=i(e,l,!Wg(n,s.host),s);if(x)return x;s.traceEnabled&&es(s.host,y.Trying_other_entries_in_rootDirs);for(let b of s.compilerOptions.rootDirs){if(b===p)continue;let S=gi(Zs(b),m);s.traceEnabled&&es(s.host,y.Loading_0_from_the_root_dir_1_candidate_location_2,m,b,S);let P=Ei(S),E=i(e,S,!Wg(P,s.host),s);if(E)return E}s.traceEnabled&&es(s.host,y.Module_resolution_using_rootDirs_has_failed)}}function w4t(e,t,n,i){let{baseUrl:s}=i.compilerOptions;if(!s)return;i.traceEnabled&&es(i.host,y.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t);let l=Zs(gi(s,t));return i.traceEnabled&&es(i.host,y.Resolving_module_name_0_relative_to_base_url_1_2,t,s,l),n(e,l,!Wg(Ei(l),i.host),i)}function tve(e,t,n){let{resolvedModule:i,failedLookupLocations:s}=P4t(e,t,n);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${s?.join(", ")}`);return i.resolvedFileName}var rve=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(rve||{});function k4t(e,t,n,i,s,l,p){return S9e(30,e,t,n,i,s,l,p)}function C4t(e,t,n,i,s,l,p){return S9e(30,e,t,n,i,s,l,p)}function S9e(e,t,n,i,s,l,p,g,m){let x=Ei(n),b=g===99?32:0,S=i.noDtsResolution?3:7;return O2(i)&&(S|=8),AM(e|b,t,x,i,s,l,S,!1,p,m)}function P4t(e,t,n){return AM(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}function nve(e,t,n,i,s,l,p){let g=Ei(t),m=n.noDtsResolution?3:7;return O2(n)&&(m|=8),AM(Yye(n),e,g,n,i,s,m,!1,l,p)}function ive(e,t,n,i,s,l,p,g){let m;return g?m=8:n.noDtsResolution?(m=3,O2(n)&&(m|=8)):m=O2(n)?15:7,AM(p?30:0,e,Ei(t),n,i,s,m,!!g,l,p)}function ave(e,t,n){return AM(30,e,Ei(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function AM(e,t,n,i,s,l,p,g,m,x){var b,S,P,E,N;let F=Ex(i,s),M=[],L=[],W=Xp(i);x??(x=Dx(i,W===100||W===2?void 0:e&32?99:1));let z=[],H={compilerOptions:i,host:s,traceEnabled:F,failedLookupLocations:M,affectingLocations:L,packageJsonInfoCache:l,features:e,conditions:x??ce,requestContainingDirectory:n,reportDiagnostic:Y=>void z.push(Y),isConfigLookup:g,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};F&&TN(W)&&es(s,y.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",H.conditions.map(Y=>`'${Y}'`).join(", "));let X;if(W===2){let Y=p&5,Ee=p&-6;X=Y&&ae(Y,H)||Ee&&ae(Ee,H)||void 0}else X=ae(p,H);let ne;if(H.resolvedPackageDirectory&&!g&&!Hu(t)){let Y=X?.value&&p&5&&!O9e(5,X.value.resolved.extension);if((b=X?.value)!=null&&b.isExternalLibraryImport&&Y&&e&8&&x?.includes("import")){Nx(H,y.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let Ee={...H,features:H.features&-9,reportDiagnostic:Ko},fe=ae(p&5,Ee);(S=fe?.value)!=null&&S.isExternalLibraryImport&&(ne=fe.value.resolved.path)}else if((!X?.value||Y)&&W===2){Nx(H,y.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let Ee={...H.compilerOptions,moduleResolution:100},fe={...H,compilerOptions:Ee,features:30,conditions:Dx(Ee),reportDiagnostic:Ko},te=ae(p&5,fe);(P=te?.value)!=null&&P.isExternalLibraryImport&&(ne=te.value.resolved.path)}}return f9e(t,(E=X?.value)==null?void 0:E.resolved,(N=X?.value)==null?void 0:N.isExternalLibraryImport,M,L,z,H,l,ne);function ae(Y,Ee){let te=x9e(Y,t,n,(de,me,ve,Pe)=>fZ(de,me,ve,Pe,!0),Ee);if(te)return Id({resolved:te,isExternalLibraryImport:Ox(te.path)});if(Hu(t)){let{path:de,parts:me}=T9e(n,t),ve=fZ(Y,de,!1,Ee,!0);return ve&&Id({resolved:ve,isExternalLibraryImport:Ta(me,"node_modules")})}else{if(e&2&&La(t,"#")){let me=I4t(Y,t,n,Ee,l,m);if(me)return me.value&&{value:{resolved:me.value,isExternalLibraryImport:!1}}}if(e&4){let me=A4t(Y,t,n,Ee,l,m);if(me)return me.value&&{value:{resolved:me.value,isExternalLibraryImport:!1}}}if(t.includes(":")){F&&es(s,y.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,Yz(Y));return}F&&es(s,y.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,Yz(Y));let de=I9e(Y,t,n,Ee,l,m);return Y&4&&(de??(de=B9e(t,Ee))),de&&{value:de.value&&{resolved:de.value,isExternalLibraryImport:!0}}}}}function T9e(e,t){let n=gi(e,t),i=jp(n),s=dc(i);return{path:s==="."||s===".."?ju(Zs(n)):Zs(n),parts:i}}function w9e(e,t,n){if(!t.realpath)return e;let i=Zs(t.realpath(e));return n&&es(t,y.Resolving_real_path_for_0_result_1,e,i),i}function fZ(e,t,n,i,s){if(i.traceEnabled&&es(i.host,y.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,Yz(e)),!Yb(t)){if(!n){let p=Ei(t);Wg(p,i.host)||(i.traceEnabled&&es(i.host,y.Directory_0_does_not_exist_skipping_all_lookups_in_it,p),n=!0)}let l=QN(e,t,n,i);if(l){let p=s?IM(l.path):void 0,g=p?Zk(p,!1,i):void 0;return RE(g,l,i)}}if(n||Wg(t,i.host)||(i.traceEnabled&&es(i.host,y.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return ove(e,t,n,i,s)}var Bv="/node_modules/";function Ox(e){return e.includes(Bv)}function IM(e,t){let n=Zs(e),i=n.lastIndexOf(Bv);if(i===-1)return;let s=i+Bv.length,l=k9e(n,s,t);return n.charCodeAt(s)===64&&(l=k9e(n,l,t)),n.slice(0,l)}function k9e(e,t,n){let i=e.indexOf(jc,t+1);return i===-1?n?e.length:t:i}function sve(e,t,n,i){return oZ(QN(e,t,n,i))}function QN(e,t,n,i){let s=C9e(e,t,n,i);if(s)return s;if(!(i.features&32)){let l=P9e(t,e,"",n,i);if(l)return l}}function C9e(e,t,n,i){if(!gu(t).includes("."))return;let l=yf(t);l===t&&(l=t.substring(0,t.lastIndexOf(".")));let p=t.substring(l.length);return i.traceEnabled&&es(i.host,y.File_name_0_has_a_1_extension_stripping_it,t,p),P9e(l,e,p,n,i)}function _Z(e,t,n,i,s){if(e&1&&Wl(t,U5)||e&4&&Wl(t,$J)){let l=dZ(t,i,s),p=TJ(t);return l!==void 0?{path:t,ext:p,resolvedUsingTsExtension:n?!bc(n,p):void 0}:void 0}return s.isConfigLookup&&e===8&&il(t,".json")?dZ(t,i,s)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:C9e(e,t,i,s)}function P9e(e,t,n,i,s){if(!i){let p=Ei(e);p&&(i=!Wg(p,s.host))}switch(n){case".mjs":case".mts":case".d.mts":return t&1&&l(".mts",n===".mts"||n===".d.mts")||t&4&&l(".d.mts",n===".mts"||n===".d.mts")||t&2&&l(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&l(".cts",n===".cts"||n===".d.cts")||t&4&&l(".d.cts",n===".cts"||n===".d.cts")||t&2&&l(".cjs")||void 0;case".json":return t&4&&l(".d.json.ts")||t&8&&l(".json")||void 0;case".tsx":case".jsx":return t&1&&(l(".tsx",n===".tsx")||l(".ts",n===".tsx"))||t&4&&l(".d.ts",n===".tsx")||t&2&&(l(".jsx")||l(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(l(".ts",n===".ts"||n===".d.ts")||l(".tsx",n===".ts"||n===".d.ts"))||t&4&&l(".d.ts",n===".ts"||n===".d.ts")||t&2&&(l(".js")||l(".jsx"))||s.isConfigLookup&&l(".json")||void 0;default:return t&4&&!Wu(e+n)&&l(`.d${n}.ts`)||void 0}function l(p,g){let m=dZ(e+p,i,s);return m===void 0?void 0:{path:m,ext:p,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&g}}}function dZ(e,t,n){var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return E9e(e,t,n);let s=Fv(e)??"",l=s?H5(e,s):e;return Ge(n.compilerOptions.moduleSuffixes,p=>E9e(l+p+s,t,n))}function E9e(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&es(n.host,y.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&es(n.host,y.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function ove(e,t,n,i,s=!0){let l=s?Zk(t,n,i):void 0;return RE(l,gZ(e,t,n,i,l),i)}function mZ(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let l,p=5|(s?2:0),g=Yye(t),m=d3(i?.getPackageJsonInfoCache(),n,t);m.conditions=Dx(t),m.requestContainingDirectory=e.packageDirectory;let x=gZ(p,e.packageDirectory,!1,m,e);if(l=Zr(l,x?.path),g&8&&e.contents.packageJsonContent.exports){let b=zb([Dx(t,99),Dx(t,1)],Rp);for(let S of b){let P={...m,failedLookupLocations:[],conditions:S,host:n},E=E4t(e,e.contents.packageJsonContent.exports,P,p);if(E)for(let N of E)l=Mm(l,N.path)}}return e.contents.resolvedEntrypoints=l||!1}function E4t(e,t,n,i){let s;if(cs(t))for(let p of t)l(p);else if(typeof t=="object"&&t!==null&&aW(t))for(let p in t)l(t[p]);else l(t);return s;function l(p){var g,m;if(typeof p=="string"&&La(p,"./"))if(p.includes("*")&&n.host.readDirectory){if(p.indexOf("*")!==p.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,l4t(i),void 0,[ZB(Rk(p,"**/*"),".*")]).forEach(x=>{s=Mm(s,{path:x,ext:NP(x),resolvedUsingTsExtension:void 0})})}else{let x=jp(p).slice(2);if(x.includes("..")||x.includes(".")||x.includes("node_modules"))return!1;let b=gi(e.packageDirectory,p),S=Qa(b,(m=(g=n.host).getCurrentDirectory)==null?void 0:m.call(g)),P=_Z(i,S,p,!1,n);if(P)return s=Mm(s,P,(E,N)=>E.path===N.path),!0}else if(Array.isArray(p)){for(let x of p)if(l(x))return!0}else if(typeof p=="object"&&p!==null)return Ge(rm(p),x=>{if(x==="default"||Ta(n.conditions,x)||FM(n.conditions,x))return l(p[x]),!0})}}function d3(e,t,n){return{host:t,compilerOptions:n,traceEnabled:Ex(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:ce,requestContainingDirectory:void 0,reportDiagnostic:Ko,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function m3(e,t){return My(t.host,e,n=>Zk(n,!1,t))}function D9e(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=d4t(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function D4t(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=O4t(e,t)||!1),e.contents.peerDependencies||void 0}function O4t(e,t){let n=Kye(e.contents.packageJsonContent,"peerDependencies","object",t);if(n===void 0)return;t.traceEnabled&&es(t.host,y.package_json_has_a_peerDependencies_field);let i=w9e(e.packageDirectory,t.host,t.traceEnabled),s=i.substring(0,i.lastIndexOf("node_modules")+12)+jc,l="";for(let p in n)if(ec(n,p)){let g=Zk(s+p,!1,t);if(g){let m=g.contents.packageJsonContent.version;l+=`+${p}@${m}`,t.traceEnabled&&es(t.host,y.Found_peerDependency_0_with_1_version,p,m)}else t.traceEnabled&&es(t.host,y.Failed_to_find_peerDependency_0,p)}return l}function Zk(e,t,n){var i,s,l,p,g,m;let{host:x,traceEnabled:b}=n,S=gi(e,"package.json");if(t){(i=n.failedLookupLocations)==null||i.push(S);return}let P=(s=n.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(S);if(P!==void 0){if(tW(P))return b&&es(x,y.File_0_exists_according_to_earlier_cached_lookups,S),(l=n.affectingLocations)==null||l.push(S),P.packageDirectory===e?P:{packageDirectory:e,contents:P.contents};P.directoryExists&&b&&es(x,y.File_0_does_not_exist_according_to_earlier_cached_lookups,S),(p=n.failedLookupLocations)==null||p.push(S);return}let E=Wg(e,x);if(E&&x.fileExists(S)){let N=vN(S,x);b&&es(x,y.Found_package_json_at_0,S);let F={packageDirectory:e,contents:{packageJsonContent:N,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(S,F),(g=n.affectingLocations)==null||g.push(S),F}else E&&b&&es(x,y.File_0_does_not_exist,S),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(S,{packageDirectory:e,directoryExists:E}),(m=n.failedLookupLocations)==null||m.push(S)}function gZ(e,t,n,i,s){let l=s&&D9e(s,i),p;s&&d9e(s?.packageDirectory,t,i.host)&&(i.isConfigLookup?p=p4t(s.contents.packageJsonContent,s.packageDirectory,i):p=e&4&&u4t(s.contents.packageJsonContent,s.packageDirectory,i)||e&7&&f4t(s.contents.packageJsonContent,s.packageDirectory,i)||void 0);let g=(P,E,N,F)=>{let M=_Z(P,E,void 0,N,F);if(M)return oZ(M);let L=P===4?5:P,W=F.features,z=F.candidateIsFromPackageJsonField;F.candidateIsFromPackageJsonField=!0,s?.contents.packageJsonContent.type!=="module"&&(F.features&=-33);let H=fZ(L,E,N,F,!1);return F.features=W,F.candidateIsFromPackageJsonField=z,H},m=p?!Wg(Ei(p),i.host):void 0,x=n||!Wg(t,i.host),b=gi(t,i.isConfigLookup?"tsconfig":"index");if(l&&(!p||am(t,p))){let P=Pd(t,p||b,!1);i.traceEnabled&&es(i.host,y.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,l.version,ye,P);let E=G5(l.paths),N=cve(e,P,t,l.paths,E,g,m||x,i);if(N)return p9e(N.value)}let S=p&&p9e(g(e,p,m,i));if(S)return S;if(!(i.features&32))return QN(e,b,x,i)}function O9e(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function iW(e){let t=e.indexOf(jc);return e[0]==="@"&&(t=e.indexOf(jc,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function aW(e){return sn(rm(e),t=>La(t,"."))}function N4t(e){return!Pt(rm(e),t=>La(t,"."))}function A4t(e,t,n,i,s,l){var p,g;let m=Qa(n,(g=(p=i.host).getCurrentDirectory)==null?void 0:g.call(p)),x=m3(m,i);if(!x||!x.contents.packageJsonContent.exports||typeof x.contents.packageJsonContent.name!="string")return;let b=jp(t),S=jp(x.contents.packageJsonContent.name);if(!sn(S,(M,L)=>b[L]===M))return;let P=b.slice(S.length),E=Re(P)?`.${jc}${P.join(jc)}`:".";if(bx(i.compilerOptions)&&!Ox(n))return hZ(x,e,E,i,s,l);let N=e&5,F=e&-6;return hZ(x,N,E,i,s,l)||hZ(x,F,E,i,s,l)}function hZ(e,t,n,i,s,l){if(e.contents.packageJsonContent.exports){if(n==="."){let p;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&N4t(e.contents.packageJsonContent.exports)?p=e.contents.packageJsonContent.exports:ec(e.contents.packageJsonContent.exports,".")&&(p=e.contents.packageJsonContent.exports["."]),p)return A9e(t,i,s,l,n,e,!1)(p,"",!1,".")}else if(aW(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&es(i.host,y.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),Id(void 0);let p=N9e(t,i,s,l,n,e.contents.packageJsonContent.exports,e,!1);if(p)return p}return i.traceEnabled&&es(i.host,y.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),Id(void 0)}}function I4t(e,t,n,i,s,l){var p,g;if(t==="#"||La(t,"#/"))return i.traceEnabled&&es(i.host,y.Invalid_import_specifier_0_has_no_possible_resolutions,t),Id(void 0);let m=Qa(n,(g=(p=i.host).getCurrentDirectory)==null?void 0:g.call(p)),x=m3(m,i);if(!x)return i.traceEnabled&&es(i.host,y.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,m),Id(void 0);if(!x.contents.packageJsonContent.imports)return i.traceEnabled&&es(i.host,y.package_json_scope_0_has_no_imports_defined,x.packageDirectory),Id(void 0);let b=N9e(e,i,s,l,t,x.contents.packageJsonContent.imports,x,!0);return b||(i.traceEnabled&&es(i.host,y.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,x.packageDirectory),Id(void 0))}function yZ(e,t){let n=e.indexOf("*"),i=t.indexOf("*"),s=n===-1?e.length:n+1,l=i===-1?t.length:i+1;return s>l?-1:l>s||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function N9e(e,t,n,i,s,l,p,g){let m=A9e(e,t,n,i,s,p,g);if(!bc(s,jc)&&!s.includes("*")&&ec(l,s)){let S=l[s];return m(S,"",!1,s)}let x=ff(Cn(rm(l),S=>F4t(S)||bc(S,"/")),yZ);for(let S of x)if(t.features&16&&b(S,s)){let P=l[S],E=S.indexOf("*"),N=s.substring(S.substring(0,E).length,s.length-(S.length-1-E));return m(P,N,!0,S)}else if(bc(S,"*")&&La(s,S.substring(0,S.length-1))){let P=l[S],E=s.substring(S.length-1);return m(P,E,!0,S)}else if(La(s,S)){let P=l[S],E=s.substring(S.length);return m(P,E,!1,S)}function b(S,P){if(bc(S,"*"))return!1;let E=S.indexOf("*");return E===-1?!1:La(P,S.substring(0,E))&&bc(P,S.substring(E+1))}}function F4t(e){let t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function A9e(e,t,n,i,s,l,p){return g;function g(m,x,b,S){var P,E;if(typeof m=="string"){if(!b&&x.length>0&&!bc(m,"/"))return t.traceEnabled&&es(t.host,y.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),Id(void 0);if(!La(m,"./")){if(p&&!La(m,"../")&&!La(m,"/")&&!j_(m)){let ae=b?m.replace(/\*/g,x):m+x;Nx(t,y.Using_0_subpath_1_with_target_2,"imports",S,ae),Nx(t,y.Resolving_module_0_from_1,ae,l.packageDirectory+"/");let Y=AM(t.features,ae,l.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i,t.conditions);return(P=t.failedLookupLocations)==null||P.push(...Y.failedLookupLocations??ce),(E=t.affectingLocations)==null||E.push(...Y.affectingLocations??ce),Id(Y.resolvedModule?{path:Y.resolvedModule.resolvedFileName,extension:Y.resolvedModule.extension,packageId:Y.resolvedModule.packageId,originalPath:Y.resolvedModule.originalPath,resolvedUsingTsExtension:Y.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&es(t.host,y.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),Id(void 0)}let W=(pd(m)?jp(m).slice(1):jp(m)).slice(1);if(W.includes("..")||W.includes(".")||W.includes("node_modules"))return t.traceEnabled&&es(t.host,y.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),Id(void 0);let z=gi(l.packageDirectory,m),H=jp(x);if(H.includes("..")||H.includes(".")||H.includes("node_modules"))return t.traceEnabled&&es(t.host,y.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),Id(void 0);t.traceEnabled&&es(t.host,y.Using_0_subpath_1_with_target_2,p?"imports":"exports",S,b?m.replace(/\*/g,x):m+x);let X=N(b?z.replace(/\*/g,x):z+x),ne=M(X,x,gi(l.packageDirectory,"package.json"),p);return ne||Id(RE(l,_Z(e,X,m,!1,t),t))}else if(typeof m=="object"&&m!==null)if(Array.isArray(m)){if(!Re(m))return t.traceEnabled&&es(t.host,y.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),Id(void 0);for(let L of m){let W=g(L,x,b,S);if(W)return W}}else{Nx(t,y.Entering_conditional_exports);for(let L of rm(m))if(L==="default"||t.conditions.includes(L)||FM(t.conditions,L)){Nx(t,y.Matched_0_condition_1,p?"imports":"exports",L);let W=m[L],z=g(W,x,b,S);if(z)return Nx(t,y.Resolved_under_condition_0,L),Nx(t,y.Exiting_conditional_exports),z;Nx(t,y.Failed_to_resolve_under_condition_0,L)}else Nx(t,y.Saw_non_matching_condition_0,L);Nx(t,y.Exiting_conditional_exports);return}else if(m===null)return t.traceEnabled&&es(t.host,y.package_json_scope_0_explicitly_maps_specifier_1_to_null,l.packageDirectory,s),Id(void 0);return t.traceEnabled&&es(t.host,y.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),Id(void 0);function N(L){var W,z;return L===void 0?L:Qa(L,(z=(W=t.host).getCurrentDirectory)==null?void 0:z.call(W))}function F(L,W){return ju(gi(L,W))}function M(L,W,z,H){var X,ne,ae,Y;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!L.includes("/node_modules/")&&(!t.compilerOptions.configFile||am(l.packageDirectory,N(t.compilerOptions.configFile.fileName),!vZ(t)))){let fe=D0({useCaseSensitiveFileNames:()=>vZ(t)}),te=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let de=N(C3(t.compilerOptions,()=>[],((ne=(X=t.host).getCurrentDirectory)==null?void 0:ne.call(X))||"",fe));te.push(de)}else if(t.requestContainingDirectory){let de=N(gi(t.requestContainingDirectory,"index.ts")),me=N(C3(t.compilerOptions,()=>[de,N(z)],((Y=(ae=t.host).getCurrentDirectory)==null?void 0:Y.call(ae))||"",fe));te.push(me);let ve=ju(me);for(;ve&&ve.length>1;){let Pe=jp(ve);Pe.pop();let Oe=vS(Pe);te.unshift(Oe),ve=ju(Oe)}}te.length>1&&t.reportDiagnostic(ll(H?y.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:y.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,W===""?".":W,z));for(let de of te){let me=Ee(de);for(let ve of me)if(am(ve,L,!vZ(t))){let Pe=L.slice(ve.length+1),Oe=gi(de,Pe),ie=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let Ne of ie)if(il(Oe,Ne)){let it=QQ(Oe);for(let ze of it){if(!O9e(e,ze))continue;let ge=mF(Oe,ze,Ne,!vZ(t));if(t.host.fileExists(ge))return Id(RE(l,_Z(e,ge,void 0,!1,t),t))}}}}}return;function Ee(fe){var te,de;let me=t.compilerOptions.configFile?((de=(te=t.host).getCurrentDirectory)==null?void 0:de.call(te))||"":fe,ve=[];return t.compilerOptions.declarationDir&&ve.push(N(F(me,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&ve.push(N(F(me,t.compilerOptions.outDir))),ve}}}}function FM(e,t){if(!e.includes("types")||!La(t,"types@"))return!1;let n=TI.tryParse(t.substring(6));return n?n.test(ye):!1}function I9e(e,t,n,i,s,l){return F9e(e,t,n,i,!1,s,l)}function M4t(e,t,n){return F9e(4,e,t,n,!0,void 0,void 0)}function F9e(e,t,n,i,s,l,p){let g=i.features===0?void 0:i.features&32||i.conditions.includes("import")?99:1,m=e&5,x=e&-6;if(m){Nx(i,y.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Yz(m));let S=b(m);if(S)return S}if(x&&!s)return Nx(i,y.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Yz(x)),b(x);function b(S){return My(i.host,_p(n),P=>{if(gu(P)!=="node_modules"){let E=L9e(l,t,g,P,p,i);return E||Id(M9e(S,t,P,i,s,l,p))}})}}function My(e,t,n){var i;let s=(i=e?.getGlobalTypingsCacheLocation)==null?void 0:i.call(e);return RI(t,l=>{let p=n(l);if(p!==void 0)return p;if(l===s)return!1})||void 0}function M9e(e,t,n,i,s,l,p){let g=gi(n,"node_modules"),m=Wg(g,i.host);if(!m&&i.traceEnabled&&es(i.host,y.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),!s){let x=R9e(e,t,g,m,i,l,p);if(x)return x}if(e&4){let x=gi(g,"@types"),b=m;return m&&!Wg(x,i.host)&&(i.traceEnabled&&es(i.host,y.Directory_0_does_not_exist_skipping_all_lookups_in_it,x),b=!1),R9e(4,j9e(t,i),x,b,i,l,p)}}function R9e(e,t,n,i,s,l,p){var g,m;let x=Zs(gi(n,t)),{packageName:b,rest:S}=iW(t),P=gi(n,b),E,N=Zk(x,!i,s);if(S!==""&&N&&(!(s.features&8)||!ec(((g=E=Zk(P,!i,s))==null?void 0:g.contents.packageJsonContent)??ce,"exports"))){let L=QN(e,x,!i,s);if(L)return oZ(L);let W=gZ(e,x,!i,s,N);return RE(N,W,s)}let F=(L,W,z,H)=>{let X=(S||!(H.features&32))&&QN(L,W,z,H)||gZ(L,W,z,H,N);return!X&&!S&&N&&(N.contents.packageJsonContent.exports===void 0||N.contents.packageJsonContent.exports===null)&&H.features&32&&(X=QN(L,gi(W,"index.js"),z,H)),RE(N,X,H)};if(S!==""&&(N=E??Zk(P,!i,s)),N&&(s.resolvedPackageDirectory=!0),N&&N.contents.packageJsonContent.exports&&s.features&8)return(m=hZ(N,e,gi(".",S),s,l,p))==null?void 0:m.value;let M=S!==""&&N?D9e(N,s):void 0;if(M){s.traceEnabled&&es(s.host,y.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,M.version,ye,S);let L=i&&Wg(P,s.host),W=G5(M.paths),z=cve(e,S,P,M.paths,W,F,!L,s);if(z)return z.value}return F(e,x,!i,s)}function cve(e,t,n,i,s,l,p,g){let m=FX(s,t);if(m){let x=Ua(m)?void 0:ky(m,t),b=Ua(m)?m:vB(m);return g.traceEnabled&&es(g.host,y.Module_name_0_matched_pattern_1,t,b),{value:Ge(i[b],P=>{let E=x?Rk(P,x):P,N=Zs(gi(n,E));g.traceEnabled&&es(g.host,y.Trying_substitution_0_candidate_module_location_Colon_1,P,E);let F=Fv(P);if(F!==void 0){let M=dZ(N,p,g);if(M!==void 0)return oZ({path:M,ext:F,resolvedUsingTsExtension:void 0})}return l(e,N,p||!Wg(Ei(N),g.host),g)})}}}var lve="__";function j9e(e,t){let n=XN(e);return t.traceEnabled&&n!==e&&es(t.host,y.Scoped_package_detected_looking_in_0,n),n}function sW(e){return`@types/${XN(e)}`}function XN(e){if(La(e,"@")){let t=e.replace(jc,lve);if(t!==e)return t.slice(1)}return e}function g3(e){let t=kP(e,"@types/");return t!==e?MM(t):e}function MM(e){return e.includes(lve)?"@"+e.replace(lve,jc):e}function L9e(e,t,n,i,s,l){let p=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(p)return l.traceEnabled&&es(l.host,y.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),l.resultFromCache=p,{value:p.resolvedModule&&{path:p.resolvedModule.resolvedFileName,originalPath:p.resolvedModule.originalPath||!0,extension:p.resolvedModule.extension,packageId:p.resolvedModule.packageId,resolvedUsingTsExtension:p.resolvedModule.resolvedUsingTsExtension}}}function uve(e,t,n,i,s,l){let p=Ex(n,i),g=[],m=[],x=Ei(t),b=[],S={compilerOptions:n,host:i,traceEnabled:p,failedLookupLocations:g,affectingLocations:m,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:x,reportDiagnostic:N=>void b.push(N),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},P=E(5)||E(2|(n.resolveJsonModule?8:0));return f9e(e,P&&P.value,P?.value&&Ox(P.value.path),g,m,b,S,s);function E(N){let F=x9e(N,e,x,sve,S);if(F)return{value:F};if(Hu(e)){let M=Zs(gi(x,e));return Id(sve(N,M,!1,S))}else{let M=My(S.host,x,L=>{let W=L9e(s,e,void 0,L,l,S);if(W)return W;let z=Zs(gi(L,e));return Id(sve(N,z,!1,S))});if(M)return M;if(N&5){let L=M4t(e,x,S);return N&4&&(L??(L=B9e(e,S))),L}}}}function B9e(e,t){if(t.compilerOptions.typeRoots)for(let n of t.compilerOptions.typeRoots){let i=g9e(n,e,t),s=Wg(n,t.host);!s&&t.traceEnabled&&es(t.host,y.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);let l=QN(4,i,!s,t);if(l){let g=IM(l.path),m=g?Zk(g,!1,t):void 0;return Id(RE(m,l,t))}let p=ove(4,i,!s,t);if(p)return Id(p)}}function YN(e,t){return bge(e)||!!t&&Wu(t)}function pve(e,t,n,i,s,l){let p=Ex(n,i);p&&es(i,y.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);let g=[],m=[],x=[],b={compilerOptions:n,host:i,traceEnabled:p,failedLookupLocations:g,affectingLocations:m,packageJsonInfoCache:l,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:P=>void x.push(P),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},S=M9e(4,e,s,b,!1,void 0,void 0);return _9e(S,!0,g,m,x,b.resultFromCache,void 0)}function Id(e){return e!==void 0?{value:e}:void 0}function Nx(e,t,...n){e.traceEnabled&&es(e.host,t,...n)}function vZ(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var fve=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(fve||{});function j0(e,t){return e.body&&!e.body.parent&&(Xo(e.body,e),IS(e.body,!1)),e.body?_ve(e.body,t):1}function _ve(e,t=new Map){let n=Wo(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);let i=R4t(e,t);return t.set(n,i),i}function R4t(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(wS(e))return 2;break;case 272:case 271:if(!Ai(e,32))return 0;break;case 278:let n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===279){let i=0;for(let s of n.exportClause.elements){let l=j4t(s,t);if(l>i&&(i=l),i===1)return i}return i}break;case 268:{let i=0;return xs(e,s=>{let l=_ve(s,t);switch(l){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:I.assertNever(l)}}),i}case 267:return j0(e,t);case 80:if(e.flags&4096)return 0}return 1}function j4t(e,t){let n=e.propertyName||e.name;if(n.kind!==80)return 1;let i=e.parent;for(;i;){if(Cs(i)||Lh(i)||ba(i)){let s=i.statements,l;for(let p of s)if(CF(p,n)){p.parent||(Xo(p,i),IS(p,!1));let g=_ve(p,t);if((l===void 0||g>l)&&(l=g),l===1)return l;p.kind===271&&(l=1)}if(l!==void 0)return l}i=i.parent}return 1}var dve=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(dve||{});function Ry(e,t,n){return I.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var L4t=B4t();function mve(e,t){Qc("beforeBind"),L4t(e,t),Qc("afterBind"),R_("Bind","beforeBind","afterBind")}function B4t(){var e,t,n,i,s,l,p,g,m,x,b,S,P,E,N,F,M,L,W,z,H,X,ne,ae,Y,Ee=!1,fe=0,te,de,me=Ry(1,void 0,void 0),ve=Ry(1,void 0,void 0),Pe=$();return ie;function Oe(U,rt,...Yt){return om(rn(U)||e,U,rt,...Yt)}function ie(U,rt){var Yt,Xr;e=U,t=rt,n=Po(t),Y=Ne(e,rt),de=new Set,fe=0,te=wp.getSymbolConstructor(),I.attachFlowNodeDebugInfo(me),I.attachFlowNodeDebugInfo(ve),e.locals||((Yt=Fn)==null||Yt.push(Fn.Phase.Bind,"bindSourceFile",{path:e.path},!0),an(e),(Xr=Fn)==null||Xr.pop(),e.symbolCount=fe,e.classifiableNames=de,Kc(),Ro()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,l=void 0,p=void 0,g=void 0,m=void 0,b=void 0,x=!1,S=void 0,P=void 0,E=void 0,N=void 0,F=void 0,M=void 0,L=void 0,z=void 0,H=!1,X=!1,ne=!1,Ee=!1,ae=0}function Ne(U,rt){return Bp(rt,"alwaysStrict")&&!U.isDeclarationFile?!0:!!U.externalModuleIndicator}function it(U,rt){return fe++,new te(U,rt)}function ze(U,rt,Yt){U.flags|=Yt,rt.symbol=U,U.declarations=Mm(U.declarations,rt),Yt&1955&&!U.exports&&(U.exports=Qs()),Yt&6240&&!U.members&&(U.members=Qs()),U.constEnumOnlyModule&&U.flags&304&&(U.constEnumOnlyModule=!1),Yt&111551&&_5(U,rt)}function ge(U){if(U.kind===277)return U.isExportEquals?"export=":"default";let rt=ls(U);if(rt){if(df(U)){let Yt=lm(rt);return Oy(U)?"__global":`"${Yt}"`}if(rt.kind===167){let Yt=rt.expression;if(Dd(Yt))return gl(Yt.text);if(oJ(Yt))return to(Yt.operator)+Yt.operand.text;I.fail("Only computed properties with literal names have declaration names")}if(Ca(rt)){let Yt=dp(U);if(!Yt)return;let Xr=Yt.symbol;return T5(Xr,rt.escapedText)}return Hg(rt)?_E(rt):Oh(rt)?g4(rt):void 0}switch(U.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if($l(U)===2)return"export=";I.fail("Unknown binary declaration kind");break;case 317:return XP(U)?"__new":"__call";case 169:return I.assert(U.parent.kind===317,"Impossible parameter parent kind",()=>`parent is: ${I.formatSyntaxKind(U.parent.kind)}, expected JSDocFunctionType`),"arg"+U.parent.parameters.indexOf(U)}}function Me(U){return Gu(U)?Oc(U.name):ka(I.checkDefined(ge(U)))}function Te(U,rt,Yt,Xr,Ya,aa,qa){I.assert(qa||!E0(Yt));let ss=Ai(Yt,2048)||Yp(Yt)&&Dy(Yt.name),Uc=qa?"__computed":ss&&rt?"default":ge(Yt),lo;if(Uc===void 0)lo=it(0,"__missing");else if(lo=U.get(Uc),Xr&2885600&&de.add(Uc),!lo)U.set(Uc,lo=it(0,Uc)),aa&&(lo.isReplaceableByMethod=!0);else{if(aa&&!lo.isReplaceableByMethod)return lo;if(lo.flags&Ya){if(lo.isReplaceableByMethod)U.set(Uc,lo=it(0,Uc));else if(!(Xr&3&&lo.flags&67108864)){Gu(Yt)&&Xo(Yt.name,Yt);let Tu=lo.flags&2?y.Cannot_redeclare_block_scoped_variable_0:y.Duplicate_identifier_0,Z_=!0;(lo.flags&384||Xr&384)&&(Tu=y.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Z_=!1);let vm=!1;Re(lo.declarations)&&(ss||lo.declarations&&lo.declarations.length&&Yt.kind===277&&!Yt.isExportEquals)&&(Tu=y.A_module_cannot_have_multiple_default_exports,Z_=!1,vm=!0);let Zg=[];Wm(Yt)&&Sl(Yt.type)&&Ai(Yt,32)&&lo.flags&2887656&&Zg.push(Oe(Yt,y.Did_you_mean_0,`export type { ${ka(Yt.name.escapedText)} }`));let U0=ls(Yt)||Yt;Ge(lo.declarations,(x_,eh)=>{let Yh=ls(x_)||x_,Km=Z_?Oe(Yh,Tu,Me(x_)):Oe(Yh,Tu);e.bindDiagnostics.push(vm?Hs(Km,Oe(U0,eh===0?y.Another_export_default_is_here:y.and_here)):Km),vm&&Zg.push(Oe(Yh,y.The_first_export_default_is_here))});let Wv=Z_?Oe(U0,Tu,Me(Yt)):Oe(U0,Tu);e.bindDiagnostics.push(Hs(Wv,...Zg)),lo=it(0,Uc)}}}return ze(lo,Yt,Xr),lo.parent?I.assert(lo.parent===rt,"Existing symbol parent should match new one"):lo.parent=rt,lo}function gt(U,rt,Yt){let Xr=!!(bS(U)&32)||Tt(U);if(rt&2097152)return U.kind===281||U.kind===271&&Xr?Te(s.symbol.exports,s.symbol,U,rt,Yt):(I.assertNode(s,Py),Te(s.locals,void 0,U,rt,Yt));if(Bm(U)&&I.assert(jn(U)),!df(U)&&(Xr||s.flags&128)){if(!Py(s)||!s.locals||Ai(U,2048)&&!ge(U))return Te(s.symbol.exports,s.symbol,U,rt,Yt);let Ya=rt&111551?1048576:0,aa=Te(s.locals,void 0,U,Ya,Yt);return aa.exportSymbol=Te(s.symbol.exports,s.symbol,U,rt,Yt),U.localSymbol=aa,aa}else return I.assertNode(s,Py),Te(s.locals,void 0,U,rt,Yt)}function Tt(U){if(U.parent&&cu(U)&&(U=U.parent),!Bm(U))return!1;if(!fM(U)&&U.fullName)return!0;let rt=ls(U);return rt?!!(I5(rt.parent)&&gd(rt.parent)||Ku(rt.parent)&&bS(rt.parent)&32):!1}function xe(U,rt){let Yt=s,Xr=l,Ya=p,aa=X;if(U.kind===219&&U.body.kind!==241&&(X=!0),rt&1?(U.kind!==219&&(l=s),s=p=U,rt&32&&(s.locals=Qs(),Mr(s))):rt&2&&(p=U,rt&32&&(p.locals=void 0)),rt&4){let qa=S,ss=P,Uc=E,lo=N,Tu=L,Z_=z,vm=H,Zg=rt&16&&!Ai(U,1024)&&!U.asteriskToken&&!!v2(U)||U.kind===175;Zg||(S=Ry(2,void 0,void 0),rt&144&&(S.node=U)),N=Zg||U.kind===176||jn(U)&&(U.kind===262||U.kind===218)?pr():void 0,L=void 0,P=void 0,E=void 0,z=void 0,H=!1,qe(U),U.flags&=-5633,!(S.flags&1)&&rt&8&&jm(U.body)&&(U.flags|=512,H&&(U.flags|=1024),U.endFlowNode=S),U.kind===307&&(U.flags|=ae,U.endFlowNode=S),N&&(Gt(N,S),S=Gi(N),(U.kind===176||U.kind===175||jn(U)&&(U.kind===262||U.kind===218))&&(U.returnFlowNode=S)),Zg||(S=qa),P=ss,E=Uc,N=lo,L=Tu,z=Z_,H=vm}else rt&64?(x=!1,qe(U),I.assertNotNode(U,Ye),U.flags=x?U.flags|256:U.flags&-257):qe(U);X=aa,s=Yt,l=Xr,p=Ya}function nt(U){pe(U,rt=>rt.kind===262?an(rt):void 0),pe(U,rt=>rt.kind!==262?an(rt):void 0)}function pe(U,rt=an){U!==void 0&&Ge(U,rt)}function He(U){xs(U,an,pe)}function qe(U){let rt=Ee;if(Ee=!1,Na(U)){pN(U)&&U.flowNode&&(U.flowNode=void 0),He(U),ua(U),Ee=rt;return}switch(U.kind>=243&&U.kind<=259&&(!t.allowUnreachableCode||U.kind===253)&&(U.flowNode=S),U.kind){case 247:no(U);break;case 246:Vr(U);break;case 248:_s(U);break;case 249:case 250:ft(U);break;case 245:Qt(U);break;case 253:case 257:he(U);break;case 252:case 251:Ue(U);break;case 258:pt(U);break;case 255:vt(U);break;case 269:$t(U);break;case 296:Qe(U);break;case 244:Lt(U);break;case 256:Xt(U);break;case 224:We(U);break;case 225:qt(U);break;case 226:if(D1(U)){Ee=rt,ke(U);return}Pe(U);break;case 220:Ke(U);break;case 227:re(U);break;case 260:rr(U);break;case 211:case 212:Pr(U);break;case 213:or(U);break;case 235:zr(U);break;case 346:case 338:case 340:kn(U);break;case 351:yn(U);break;case 307:{nt(U.statements),an(U.endOfFileToken);break}case 241:case 268:nt(U.statements);break;case 208:Le(U);break;case 169:kt(U);break;case 210:case 209:case 303:case 230:Ee=rt;default:He(U);break}ua(U),Ee=rt}function je(U){switch(U.kind){case 80:case 110:return!0;case 211:case 212:return jt(U);case 213:return ar(U);case 217:if(W2(U))return!1;case 235:return je(U.expression);case 226:return nn(U);case 224:return U.operator===54&&je(U.operand);case 221:return je(U.expression)}return!1}function st(U){switch(U.kind){case 80:case 110:case 108:case 236:return!0;case 211:case 217:case 235:return st(U.expression);case 212:return(Dd(U.argumentExpression)||Tc(U.argumentExpression))&&st(U.expression);case 226:return U.operatorToken.kind===28&&st(U.right)||O0(U.operatorToken.kind)&&Qf(U.left)}return!1}function jt(U){return st(U)||Kp(U)&&jt(U.expression)}function ar(U){if(U.arguments){for(let rt of U.arguments)if(jt(rt))return!0}return!!(U.expression.kind===211&&jt(U.expression.expression))}function Or(U,rt){return NN(U)&&Ct(U.expression)&&Ho(rt)}function nn(U){switch(U.operatorToken.kind){case 64:case 76:case 77:case 78:return jt(U.left);case 35:case 36:case 37:case 38:let rt=Qo(U.left),Yt=Qo(U.right);return Ct(rt)||Ct(Yt)||Or(Yt,rt)||Or(rt,Yt)||QI(Yt)&&je(rt)||QI(rt)&&je(Yt);case 104:return Ct(U.left);case 103:return je(U.right);case 28:return je(U.right)}return!1}function Ct(U){switch(U.kind){case 217:return Ct(U.expression);case 226:switch(U.operatorToken.kind){case 64:return Ct(U.left);case 28:return Ct(U.right)}}return jt(U)}function pr(){return Ry(4,void 0,void 0)}function vn(){return Ry(8,void 0,void 0)}function ta(U,rt,Yt){return Ry(1024,{target:U,antecedents:rt},Yt)}function ts(U){U.flags|=U.flags&2048?4096:2048}function Gt(U,rt){!(rt.flags&1)&&!Ta(U.antecedent,rt)&&((U.antecedent||(U.antecedent=[])).push(rt),ts(rt))}function hi(U,rt,Yt){return rt.flags&1?rt:Yt?(Yt.kind===112&&U&64||Yt.kind===97&&U&32)&&!fq(Yt)&&!jK(Yt.parent)?me:je(Yt)?(ts(rt),Ry(U,Yt,rt)):rt:U&32?rt:me}function $a(U,rt,Yt,Xr){return ts(U),Ry(128,{switchStatement:rt,clauseStart:Yt,clauseEnd:Xr},U)}function ui(U,rt,Yt){ts(rt),ne=!0;let Xr=Ry(U,Yt,rt);return L&&Gt(L,Xr),Xr}function Wn(U,rt){return ts(U),ne=!0,Ry(512,rt,U)}function Gi(U){let rt=U.antecedent;return rt?rt.length===1?rt[0]:U:me}function at(U){let rt=U.parent;switch(rt.kind){case 245:case 247:case 246:return rt.expression===U;case 248:case 227:return rt.condition===U}return!1}function It(U){for(;;)if(U.kind===217)U=U.expression;else if(U.kind===224&&U.operator===54)U=U.operand;else return N5(U)}function Cr(U){return iX(Qo(U))}function wn(U){for(;Mf(U.parent)||jS(U.parent)&&U.parent.operator===54;)U=U.parent;return!at(U)&&!It(U.parent)&&!(Kp(U.parent)&&U.parent.expression===U)}function Di(U,rt,Yt,Xr){let Ya=F,aa=M;F=Yt,M=Xr,U(rt),F=Ya,M=aa}function Pi(U,rt,Yt){Di(an,U,rt,Yt),(!U||!Cr(U)&&!It(U)&&!(Kp(U)&&$I(U)))&&(Gt(rt,hi(32,S,U)),Gt(Yt,hi(64,S,U)))}function da(U,rt,Yt){let Xr=P,Ya=E;P=rt,E=Yt,an(U),P=Xr,E=Ya}function ks(U,rt){let Yt=z;for(;Yt&&U.parent.kind===256;)Yt.continueTarget=rt,Yt=Yt.next,U=U.parent;return rt}function no(U){let rt=ks(U,vn()),Yt=pr(),Xr=pr();Gt(rt,S),S=rt,Pi(U.expression,Yt,Xr),S=Gi(Yt),da(U.statement,Xr,rt),Gt(rt,S),S=Gi(Xr)}function Vr(U){let rt=vn(),Yt=ks(U,pr()),Xr=pr();Gt(rt,S),S=rt,da(U.statement,Xr,Yt),Gt(Yt,S),S=Gi(Yt),Pi(U.expression,rt,Xr),S=Gi(Xr)}function _s(U){let rt=ks(U,vn()),Yt=pr(),Xr=pr(),Ya=pr();an(U.initializer),Gt(rt,S),S=rt,Pi(U.condition,Yt,Ya),S=Gi(Yt),da(U.statement,Ya,Xr),Gt(Xr,S),S=Gi(Xr),an(U.incrementor),Gt(rt,S),S=Gi(Ya)}function ft(U){let rt=ks(U,vn()),Yt=pr();an(U.expression),Gt(rt,S),S=rt,U.kind===250&&an(U.awaitModifier),Gt(Yt,S),an(U.initializer),U.initializer.kind!==261&&lr(U.initializer),da(U.statement,Yt,rt),Gt(rt,S),S=Gi(Yt)}function Qt(U){let rt=pr(),Yt=pr(),Xr=pr();Pi(U.expression,rt,Yt),S=Gi(rt),an(U.thenStatement),Gt(Xr,S),S=Gi(Yt),an(U.elseStatement),Gt(Xr,S),S=Gi(Xr)}function he(U){let rt=X;X=!0,an(U.expression),X=rt,U.kind===253&&(H=!0,N&&Gt(N,S)),S=me,ne=!0}function wt(U){for(let rt=z;rt;rt=rt.next)if(rt.name===U)return rt}function oe(U,rt,Yt){let Xr=U.kind===252?rt:Yt;Xr&&(Gt(Xr,S),S=me,ne=!0)}function Ue(U){if(an(U.label),U.label){let rt=wt(U.label.escapedText);rt&&(rt.referenced=!0,oe(U,rt.breakTarget,rt.continueTarget))}else oe(U,P,E)}function pt(U){let rt=N,Yt=L,Xr=pr(),Ya=pr(),aa=pr();if(U.finallyBlock&&(N=Ya),Gt(aa,S),L=aa,an(U.tryBlock),Gt(Xr,S),U.catchClause&&(S=Gi(aa),aa=pr(),Gt(aa,S),L=aa,an(U.catchClause),Gt(Xr,S)),N=rt,L=Yt,U.finallyBlock){let qa=pr();qa.antecedent=ya(ya(Xr.antecedent,aa.antecedent),Ya.antecedent),S=qa,an(U.finallyBlock),S.flags&1?S=me:(N&&Ya.antecedent&&Gt(N,ta(qa,Ya.antecedent,S)),L&&aa.antecedent&&Gt(L,ta(qa,aa.antecedent,S)),S=Xr.antecedent?ta(qa,Xr.antecedent,S):me)}else S=Gi(Xr)}function vt(U){let rt=pr();an(U.expression);let Yt=P,Xr=W;P=rt,W=S,an(U.caseBlock),Gt(rt,S);let Ya=Ge(U.caseBlock.clauses,aa=>aa.kind===297);U.possiblyExhaustive=!Ya&&!rt.antecedent,Ya||Gt(rt,$a(W,U,0,0)),P=Yt,W=Xr,S=Gi(rt)}function $t(U){let rt=U.clauses,Yt=U.parent.expression.kind===112||je(U.parent.expression),Xr=me;for(let Ya=0;Ya<rt.length;Ya++){let aa=Ya;for(;!rt[Ya].statements.length&&Ya+1<rt.length;)Xr===me&&(S=W),an(rt[Ya]),Ya++;let qa=pr();Gt(qa,Yt?$a(W,U.parent,aa,Ya+1):W),Gt(qa,Xr),S=Gi(qa);let ss=rt[Ya];an(ss),Xr=S,!(S.flags&1)&&Ya!==rt.length-1&&t.noFallthroughCasesInSwitch&&(ss.fallthroughFlowNode=S)}}function Qe(U){let rt=S;S=W,an(U.expression),S=rt,pe(U.statements)}function Lt(U){an(U.expression),Rt(U.expression)}function Rt(U){if(U.kind===213){let rt=U;rt.expression.kind!==108&&A5(rt.expression)&&(S=Wn(S,rt))}}function Xt(U){let rt=pr();z={next:z,name:U.label.escapedText,breakTarget:rt,continueTarget:void 0,referenced:!1},an(U.label),an(U.statement),!z.referenced&&!t.allowUnusedLabels&&cn(Tge(t),U.label,y.Unused_label),z=z.next,Gt(rt,S),S=Gi(rt)}function ut(U){U.kind===226&&U.operatorToken.kind===64?lr(U.left):lr(U)}function lr(U){if(st(U))S=ui(16,S,U);else if(U.kind===209)for(let rt of U.elements)rt.kind===230?lr(rt.expression):ut(rt);else if(U.kind===210)for(let rt of U.properties)rt.kind===303?ut(rt.initializer):rt.kind===304?lr(rt.name):rt.kind===305&&lr(rt.expression)}function In(U,rt,Yt){let Xr=pr();U.operatorToken.kind===56||U.operatorToken.kind===77?Pi(U.left,Xr,Yt):Pi(U.left,rt,Xr),S=Gi(Xr),an(U.operatorToken),x4(U.operatorToken.kind)?(Di(an,U.right,rt,Yt),lr(U.left),Gt(rt,hi(32,S,U)),Gt(Yt,hi(64,S,U))):Pi(U.right,rt,Yt)}function We(U){if(U.operator===54){let rt=F;F=M,M=rt,He(U),M=F,F=rt}else He(U),(U.operator===46||U.operator===47)&&lr(U.operand)}function qt(U){He(U),(U.operator===46||U.operator===47)&&lr(U.operand)}function ke(U){Ee?(Ee=!1,an(U.operatorToken),an(U.right),Ee=!0,an(U.left)):(Ee=!0,an(U.left),Ee=!1,an(U.operatorToken),an(U.right)),lr(U.left)}function $(){return Iz(U,rt,Yt,Xr,Ya,void 0);function U(qa,ss){if(ss){ss.stackIndex++,Xo(qa,i);let lo=Y;To(qa);let Tu=i;i=qa,ss.skip=!1,ss.inStrictModeStack[ss.stackIndex]=lo,ss.parentStack[ss.stackIndex]=Tu}else ss={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let Uc=qa.operatorToken.kind;if(bJ(Uc)||x4(Uc)){if(wn(qa)){let lo=pr(),Tu=S,Z_=ne;ne=!1,In(qa,lo,lo),S=ne?Gi(lo):Tu,ne||(ne=Z_)}else In(qa,F,M);ss.skip=!0}return ss}function rt(qa,ss,Uc){if(!ss.skip){let lo=aa(qa);return Uc.operatorToken.kind===28&&Rt(qa),lo}}function Yt(qa,ss,Uc){ss.skip||an(qa)}function Xr(qa,ss,Uc){if(!ss.skip){let lo=aa(qa);return Uc.operatorToken.kind===28&&Rt(qa),lo}}function Ya(qa,ss){if(!ss.skip){let Tu=qa.operatorToken.kind;if(O0(Tu)&&!mx(qa)&&(lr(qa.left),Tu===64&&qa.left.kind===212)){let Z_=qa.left;Ct(Z_.expression)&&(S=ui(256,S,qa))}}let Uc=ss.inStrictModeStack[ss.stackIndex],lo=ss.parentStack[ss.stackIndex];Uc!==void 0&&(Y=Uc),lo!==void 0&&(i=lo),ss.skip=!1,ss.stackIndex--}function aa(qa){if(qa&&Vn(qa)&&!D1(qa))return qa;an(qa)}}function Ke(U){He(U),U.expression.kind===211&&lr(U.expression)}function re(U){let rt=pr(),Yt=pr(),Xr=pr(),Ya=S,aa=ne;ne=!1,Pi(U.condition,rt,Yt),S=Gi(rt),X&&(U.flowNodeWhenTrue=S),an(U.questionToken),an(U.whenTrue),Gt(Xr,S),S=Gi(Yt),X&&(U.flowNodeWhenFalse=S),an(U.colonToken),an(U.whenFalse),Gt(Xr,S),S=ne?Gi(Xr):Ya,ne||(ne=aa)}function Ft(U){let rt=Ju(U)?void 0:U.name;if(Os(rt))for(let Yt of rt.elements)Ft(Yt);else S=ui(16,S,U)}function rr(U){He(U),(U.initializer||bk(U.parent.parent))&&Ft(U)}function Le(U){an(U.dotDotDotToken),an(U.propertyName),dr(U.initializer),an(U.name)}function kt(U){pe(U.modifiers),an(U.dotDotDotToken),an(U.questionToken),an(U.type),dr(U.initializer),an(U.name)}function dr(U){if(!U)return;let rt=S;if(an(U),rt===me||rt===S)return;let Yt=pr();Gt(Yt,rt),Gt(Yt,S),S=Gi(Yt)}function kn(U){an(U.tagName),U.kind!==340&&U.fullName&&(Xo(U.fullName,U),IS(U.fullName,!1)),typeof U.comment!="string"&&pe(U.comment)}function Kr(U){He(U);let rt=PS(U);rt&&rt.kind!==174&&ze(rt.symbol,rt,32)}function yn(U){an(U.tagName),an(U.moduleSpecifier),an(U.attributes),typeof U.comment!="string"&&pe(U.comment)}function yt(U,rt,Yt){Di(an,U,rt,Yt),(!Kp(U)||$I(U))&&(Gt(rt,hi(32,S,U)),Gt(Yt,hi(64,S,U)))}function Bt(U){switch(U.kind){case 211:an(U.questionDotToken),an(U.name);break;case 212:an(U.questionDotToken),an(U.argumentExpression);break;case 213:an(U.questionDotToken),pe(U.typeArguments),pe(U.arguments);break}}function cr(U,rt,Yt){let Xr=UI(U)?pr():void 0;yt(U.expression,Xr||rt,Yt),Xr&&(S=Gi(Xr)),Di(Bt,U,rt,Yt),$I(U)&&(Gt(rt,hi(32,S,U)),Gt(Yt,hi(64,S,U)))}function er(U){if(wn(U)){let rt=pr(),Yt=S,Xr=ne;cr(U,rt,rt),S=ne?Gi(rt):Yt,ne||(ne=Xr)}else cr(U,F,M)}function zr(U){Kp(U)?er(U):He(U)}function Pr(U){Kp(U)?er(U):He(U)}function or(U){if(Kp(U))er(U);else{let rt=Qo(U.expression);rt.kind===218||rt.kind===219?(pe(U.typeArguments),pe(U.arguments),an(U.expression)):(He(U),U.expression.kind===108&&(S=Wn(S,U)))}if(U.expression.kind===211){let rt=U.expression;Ye(rt.name)&&Ct(rt.expression)&&qQ(rt.name)&&(S=ui(256,S,U))}}function Mr(U){g&&(g.nextContainer=U),g=U}function Wr(U,rt,Yt){switch(s.kind){case 267:return gt(U,rt,Yt);case 307:return Sr(U,rt,Yt);case 231:case 263:return $r(U,rt,Yt);case 266:return Te(s.symbol.exports,s.symbol,U,rt,Yt);case 187:case 322:case 210:case 264:case 292:return Te(s.symbol.members,s.symbol,U,rt,Yt);case 184:case 185:case 179:case 180:case 323:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 317:case 175:case 265:case 200:return s.locals&&I.assertNode(s,Py),Te(s.locals,void 0,U,rt,Yt)}}function $r(U,rt,Yt){return Vs(U)?Te(s.symbol.exports,s.symbol,U,rt,Yt):Te(s.symbol.members,s.symbol,U,rt,Yt)}function Sr(U,rt,Yt){return Du(e)?gt(U,rt,Yt):Te(e.locals,void 0,U,rt,Yt)}function ji(U){let rt=ba(U)?U:_i(U.body,Lh);return!!rt&&rt.statements.some(Yt=>tu(Yt)||Gc(Yt))}function Is(U){U.flags&33554432&&!ji(U)?U.flags|=128:U.flags&=-129}function Xs(U){if(Is(U),df(U))if(Ai(U,32)&&ur(U,y.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),uQ(U))Ps(U);else{let rt;if(U.name.kind===11){let{text:Xr}=U.name;rt=uE(Xr),rt===void 0&&ur(U.name,y.Pattern_0_can_have_at_most_one_Asterisk_character,Xr)}let Yt=Wr(U,512,110735);e.patternAmbientModules=Zr(e.patternAmbientModules,rt&&!Ua(rt)?{pattern:rt,symbol:Yt}:void 0)}else{let rt=Ps(U);if(rt!==0){let{symbol:Yt}=U;Yt.constEnumOnlyModule=!(Yt.flags&304)&&rt===2&&Yt.constEnumOnlyModule!==!1}}}function Ps(U){let rt=j0(U),Yt=rt!==0;return Wr(U,Yt?512:1024,Yt?110735:0),rt}function Vl(U){let rt=it(131072,ge(U));ze(rt,U,131072);let Yt=it(2048,"__type");ze(Yt,U,2048),Yt.members=Qs(),Yt.members.set(rt.escapedName,rt)}function pl(U){return us(U,4096,"__object")}function Bl(U){return us(U,4096,"__jsxAttributes")}function la(U,rt,Yt){return Wr(U,rt,Yt)}function us(U,rt,Yt){let Xr=it(rt,Yt);return rt&106508&&(Xr.parent=s.symbol),ze(Xr,U,rt),Xr}function lu(U,rt,Yt){switch(p.kind){case 267:gt(U,rt,Yt);break;case 307:if(q_(s)){gt(U,rt,Yt);break}default:I.assertNode(p,Py),p.locals||(p.locals=Qs(),Mr(p)),Te(p.locals,void 0,U,rt,Yt)}}function Kc(){if(!m)return;let U=s,rt=g,Yt=p,Xr=i,Ya=S;for(let aa of m){let qa=aa.parent.parent;s=Rq(qa)||e,p=Jg(qa)||e,S=Ry(2,void 0,void 0),i=aa,an(aa.typeExpression);let ss=ls(aa);if((fM(aa)||!aa.fullName)&&ss&&I5(ss.parent)){let Uc=gd(ss.parent);if(Uc){qf(e.symbol,ss.parent,Uc,!!Br(ss,Tu=>ai(Tu)&&Tu.name.escapedText==="prototype"),!1);let lo=s;switch(p5(ss.parent)){case 1:case 2:q_(e)?s=e:s=void 0;break;case 4:s=ss.parent.expression;break;case 3:s=ss.parent.expression.name;break;case 5:s=$2(e,ss.parent.expression)?e:ai(ss.parent.expression)?ss.parent.expression.name:ss.parent.expression;break;case 0:return I.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&>(aa,524288,788968),s=lo}}else fM(aa)||!aa.fullName||aa.fullName.kind===80?(i=aa.parent,lu(aa,524288,788968)):an(aa.fullName)}s=U,g=rt,p=Yt,i=Xr,S=Ya}function Ro(){if(b===void 0)return;let U=s,rt=g,Yt=p,Xr=i,Ya=S;for(let aa of b){let qa=S2(aa),ss=qa?Rq(qa):void 0,Uc=qa?Jg(qa):void 0;s=ss||e,p=Uc||e,S=Ry(2,void 0,void 0),i=aa,an(aa.importClause)}s=U,g=rt,p=Yt,i=Xr,S=Ya}function el(U){if(!e.parseDiagnostics.length&&!(U.flags&33554432)&&!(U.flags&16777216)&&!Ime(U)){let rt=mk(U);if(rt===void 0)return;Y&&rt>=119&&rt<=127?e.bindDiagnostics.push(Oe(U,Q_(U),Oc(U))):rt===135?Du(e)&&Vq(U)?e.bindDiagnostics.push(Oe(U,y.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Oc(U))):U.flags&65536&&e.bindDiagnostics.push(Oe(U,y.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Oc(U))):rt===127&&U.flags&16384&&e.bindDiagnostics.push(Oe(U,y.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Oc(U)))}}function Q_(U){return dp(U)?y.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?y.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:y.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function as(U){U.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(Oe(U,y.constructor_is_a_reserved_word,Oc(U))))}function Gs(U){Y&&Qf(U.left)&&O0(U.operatorToken.kind)&&hc(U,U.left)}function qo(U){Y&&U.variableDeclaration&&hc(U,U.variableDeclaration.name)}function jo(U){if(Y&&U.expression.kind===80){let rt=Tk(e,U.expression);e.bindDiagnostics.push(Eu(e,rt.start,rt.length,y.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function fr(U){return Ye(U)&&(U.escapedText==="eval"||U.escapedText==="arguments")}function hc(U,rt){if(rt&&rt.kind===80){let Yt=rt;if(fr(Yt)){let Xr=Tk(e,rt);e.bindDiagnostics.push(Eu(e,Xr.start,Xr.length,uu(U),fi(Yt)))}}}function uu(U){return dp(U)?y.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?y.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:y.Invalid_use_of_0_in_strict_mode}function Cl(U){Y&&!(U.flags&33554432)&&hc(U,U.name)}function hp(U){return dp(U)?y.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?y.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:y.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function tl(U){if(n<2&&p.kind!==307&&p.kind!==267&&!XO(p)){let rt=Tk(e,U);e.bindDiagnostics.push(Eu(e,rt.start,rt.length,hp(U)))}}function Pl(U){Y&&hc(U,U.operand)}function B(U){Y&&(U.operator===46||U.operator===47)&&hc(U,U.operand)}function Xe(U){Y&&ur(U,y.with_statements_are_not_allowed_in_strict_mode)}function Et(U){Y&&Po(t)>=2&&(Ode(U.statement)||Rl(U.statement))&&ur(U.label,y.A_label_is_not_allowed_here)}function ur(U,rt,...Yt){let Xr=Ch(e,U.pos);e.bindDiagnostics.push(Eu(e,Xr.start,Xr.length,rt,...Yt))}function cn(U,rt,Yt){wi(U,rt,rt,Yt)}function wi(U,rt,Yt,Xr){Bn(U,{pos:px(rt,e),end:Yt.end},Xr)}function Bn(U,rt,Yt){let Xr=Eu(e,rt.pos,rt.end-rt.pos,Yt);U?e.bindDiagnostics.push(Xr):e.bindSuggestionDiagnostics=Zr(e.bindSuggestionDiagnostics,{...Xr,category:2})}function an(U){if(!U)return;Xo(U,i),Fn&&(U.tracingPath=e.path);let rt=Y;if(To(U),U.kind>165){let Yt=i;i=U;let Xr=bZ(U);Xr===0?qe(U):xe(U,Xr),i=Yt}else{let Yt=i;U.kind===1&&(i=U),ua(U),i=Yt}Y=rt}function ua(U){if(fd(U))if(jn(U))for(let rt of U.jsDoc)an(rt);else for(let rt of U.jsDoc)Xo(rt,U),IS(rt,!1)}function ma(U){if(!Y)for(let rt of U){if(!Ph(rt))return;if(sc(rt)){Y=!0;return}}}function sc(U){let rt=m2(e,U.expression);return rt==='"use strict"'||rt==="'use strict'"}function To(U){switch(U.kind){case 80:if(U.flags&4096){let qa=U.parent;for(;qa&&!Bm(qa);)qa=qa.parent;lu(qa,524288,788968);break}case 110:return S&&(At(U)||i.kind===304)&&(U.flowNode=S),el(U);case 166:S&&Qq(U)&&(U.flowNode=S);break;case 236:case 108:U.flowNode=S;break;case 81:return as(U);case 211:case 212:let rt=U;S&&st(rt)&&(rt.flowNode=S),wme(rt)&&Kl(rt),jn(rt)&&e.commonJsModuleIndicator&&Ev(rt)&&!oW(p,"module")&&Te(e.locals,void 0,rt.expression,134217729,111550);break;case 226:switch($l(U)){case 1:nr(U);break;case 2:Nn(U);break;case 3:ru(U.left,U);break;case 6:hl(U);break;case 4:Fs(U);break;case 5:let qa=U.left.expression;if(jn(U)&&Ye(qa)){let ss=oW(p,qa.escapedText);if(Hq(ss?.valueDeclaration)){Fs(U);break}}Au(U);break;case 0:break;default:I.fail("Unknown binary expression special property assignment kind")}return Gs(U);case 299:return qo(U);case 220:return jo(U);case 225:return Pl(U);case 224:return B(U);case 254:return Xe(U);case 256:return Et(U);case 197:x=!0;return;case 182:break;case 168:return vi(U);case 169:return xt(U);case 260:return _e(U);case 208:return U.flowNode=S,_e(U);case 172:case 171:return Wc(U);case 303:case 304:return Qr(U,4,0);case 306:return Qr(U,8,900095);case 179:case 180:case 181:return Wr(U,131072,0);case 174:case 173:return Qr(U,8192|(U.questionToken?16777216:0),Lm(U)?0:103359);case 262:return gr(U);case 176:return Wr(U,16384,0);case 177:return Qr(U,32768,46015);case 178:return Qr(U,65536,78783);case 184:case 317:case 323:case 185:return Vl(U);case 187:case 322:case 200:return El(U);case 332:return Kr(U);case 210:return pl(U);case 218:case 219:return yr(U);case 213:switch($l(U)){case 7:return Nu(U);case 8:return $e(U);case 9:return yl(U);case 0:break;default:return I.fail("Unknown call expression assignment declaration kind")}jn(U)&&Xh(U);break;case 231:case 263:return Y=!0,hd(U);case 264:return lu(U,64,788872);case 265:return lu(U,524288,788968);case 266:return zv(U);case 267:return Xs(U);case 292:return Bl(U);case 291:return la(U,4,0);case 271:case 274:case 276:case 281:return Wr(U,2097152,2097152);case 270:return X_(U);case 273:return Ld(U);case 278:return Dp(U);case 277:return Gl(U);case 307:return ma(U.statements),Hl();case 241:if(!XO(U.parent))return;case 268:return ma(U.statements);case 341:if(U.parent.kind===323)return xt(U);if(U.parent.kind!==322)break;case 348:let Ya=U,aa=Ya.isBracketed||Ya.typeExpression&&Ya.typeExpression.type.kind===316?16777220:4;return Wr(Ya,aa,0);case 346:case 338:case 340:return(m||(m=[])).push(U);case 339:return an(U.typeExpression);case 351:return(b||(b=[])).push(U)}}function Wc(U){let rt=Kf(U),Yt=rt?98304:4,Xr=rt?13247:0;return Qr(U,Yt|(U.questionToken?16777216:0),Xr)}function El(U){return us(U,2048,"__type")}function Hl(){if(Is(e),Du(e))Fc();else if(cm(e)){Fc();let U=e.symbol;Te(e.symbol.exports,e.symbol,e,4,-1),e.symbol=U}}function Fc(){us(e,512,`"${yf(e.fileName)}"`)}function Gl(U){if(!s.symbol||!s.symbol.exports)us(U,111551,ge(U));else{let rt=x5(U)?2097152:4,Yt=Te(s.symbol.exports,s.symbol,U,rt,-1);U.isExportEquals&&_5(Yt,U)}}function X_(U){Pt(U.modifiers)&&e.bindDiagnostics.push(Oe(U,y.Modifiers_cannot_appear_here));let rt=ba(U.parent)?Du(U.parent)?U.parent.isDeclarationFile?void 0:y.Global_module_exports_may_only_appear_in_declaration_files:y.Global_module_exports_may_only_appear_in_module_files:y.Global_module_exports_may_only_appear_at_top_level;rt?e.bindDiagnostics.push(Oe(U,rt)):(e.symbol.globalExports=e.symbol.globalExports||Qs(),Te(e.symbol.globalExports,e.symbol,U,2097152,2097152))}function Dp(U){!s.symbol||!s.symbol.exports?us(U,8388608,ge(U)):U.exportClause?Fy(U.exportClause)&&(Xo(U.exportClause,U),Te(s.symbol.exports,s.symbol,U.exportClause,2097152,2097152)):Te(s.symbol.exports,s.symbol,U,8388608,0)}function Ld(U){U.name&&Wr(U,2097152,2097152)}function Bf(U){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=U,e.externalModuleIndicator||Fc()),!0)}function $e(U){if(!Bf(U))return;let rt=xf(U.arguments[0],void 0,(Yt,Xr)=>(Xr&&ze(Xr,Yt,67110400),Xr));rt&&Te(rt.exports,rt,U,1048580,0)}function nr(U){if(!Bf(U))return;let rt=xf(U.left.expression,void 0,(Yt,Xr)=>(Xr&&ze(Xr,Yt,67110400),Xr));if(rt){let Xr=iJ(U.right)&&(Ck(U.left.expression)||Ev(U.left.expression))?2097152:1048580;Xo(U.left,U),Te(rt.exports,rt,U.left,Xr,0)}}function Nn(U){if(!Bf(U))return;let rt=l5(U.right);if(cX(rt)||s===e&&$2(e,rt))return;if(So(rt)&&sn(rt.properties,Jp)){Ge(rt.properties,za);return}let Yt=x5(U)?2097152:1049092,Xr=Te(e.symbol.exports,e.symbol,U,Yt|67108864,0);_5(Xr,U)}function za(U){Te(e.symbol.exports,e.symbol,U,69206016,0)}function Fs(U){if(I.assert(jn(U)),Vn(U)&&ai(U.left)&&Ca(U.left.name)||ai(U)&&Ca(U.name))return;let Yt=mf(U,!1,!1);switch(Yt.kind){case 262:case 218:let Xr=Yt.symbol;if(Vn(Yt.parent)&&Yt.parent.operatorToken.kind===64){let qa=Yt.parent.left;x2(qa)&&yx(qa.expression)&&(Xr=n_(qa.expression.expression,l))}Xr&&Xr.valueDeclaration&&(Xr.members=Xr.members||Qs(),E0(U)?Io(U,Xr,Xr.members):Te(Xr.members,Xr,U,67108868,0),ze(Xr,Xr.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Ya=Yt.parent,aa=Vs(Yt)?Ya.symbol.exports:Ya.symbol.members;E0(U)?Io(U,Ya.symbol,aa):Te(aa,Ya.symbol,U,67108868,0,!0);break;case 307:if(E0(U))break;Yt.commonJsModuleIndicator?Te(Yt.symbol.exports,Yt.symbol,U,1048580,0):Wr(U,1,111550);break;case 267:break;default:I.failBadSyntaxKind(Yt)}}function Io(U,rt,Yt){Te(Yt,rt,U,4,0,!0,!0),Jc(U,rt)}function Jc(U,rt){rt&&(rt.assignmentDeclarationMembers||(rt.assignmentDeclarationMembers=new Map)).set(Wo(U),U)}function Kl(U){U.expression.kind===110?Fs(U):x2(U)&&U.parent.parent.kind===307&&(yx(U.expression)?ru(U,U.parent):Y_(U))}function hl(U){Xo(U.left,U),Xo(U.right,U),Qh(U.left.expression,U.left,!1,!0)}function yl(U){let rt=n_(U.arguments[0].expression);rt&&rt.valueDeclaration&&ze(rt,rt.valueDeclaration,32),Tg(U,rt,!0)}function ru(U,rt){let Yt=U.expression,Xr=Yt.expression;Xo(Xr,Yt),Xo(Yt,U),Xo(U,rt),Qh(Xr,U,!0,!0)}function Nu(U){let rt=n_(U.arguments[0]),Yt=U.parent.parent.kind===307;rt=qf(rt,U.arguments[0],Yt,!1,!1),Tg(U,rt,!1)}function Au(U){var rt;let Yt=n_(U.left.expression,p)||n_(U.left.expression,s);if(!jn(U)&&!kme(Yt))return;let Xr=xN(U.left);if(!(Ye(Xr)&&((rt=oW(s,Xr.escapedText))==null?void 0:rt.flags)&2097152))if(Xo(U.left,U),Xo(U.right,U),Ye(U.left.expression)&&s===e&&$2(e,U.left.expression))nr(U);else if(E0(U)){us(U,67108868,"__computed");let Ya=qf(Yt,U.left.expression,gd(U.left),!1,!1);Jc(U,Ya)}else Y_(Js(U.left,Ek))}function Y_(U){I.assert(!Ye(U)),Xo(U.expression,U),Qh(U.expression,U,!1,!1)}function qf(U,rt,Yt,Xr,Ya){return U?.flags&2097152||(Yt&&!Xr&&(U=xf(rt,U,(ss,Uc,lo)=>{if(Uc)return ze(Uc,ss,67110400),Uc;{let Tu=lo?lo.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Qs());return Te(Tu,lo,ss,67110400,110735)}})),Ya&&U&&U.valueDeclaration&&ze(U,U.valueDeclaration,32)),U}function Tg(U,rt,Yt){if(!rt||!Jv(rt))return;let Xr=Yt?rt.members||(rt.members=Qs()):rt.exports||(rt.exports=Qs()),Ya=0,aa=0;Dc(HP(U))?(Ya=8192,aa=103359):Ls(U)&&Pk(U)&&(Pt(U.arguments[2].properties,qa=>{let ss=ls(qa);return!!ss&&Ye(ss)&&fi(ss)==="set"})&&(Ya|=65540,aa|=78783),Pt(U.arguments[2].properties,qa=>{let ss=ls(qa);return!!ss&&Ye(ss)&&fi(ss)==="get"})&&(Ya|=32772,aa|=46015)),Ya===0&&(Ya=4,aa=0),Te(Xr,rt,U,Ya|67108864,aa&-67108865)}function gd(U){return Vn(U.parent)?Bd(U.parent).parent.kind===307:U.parent.parent.kind===307}function Qh(U,rt,Yt,Xr){let Ya=n_(U,p)||n_(U,s),aa=gd(rt);Ya=qf(Ya,rt.expression,aa,Yt,Xr),Tg(rt,Ya,Yt)}function Jv(U){if(U.flags&1072)return!0;let rt=U.valueDeclaration;if(rt&&Ls(rt))return!!HP(rt);let Yt=rt?Ui(rt)?rt.initializer:Vn(rt)?rt.right:ai(rt)&&Vn(rt.parent)?rt.parent.right:void 0:void 0;if(Yt=Yt&&l5(Yt),Yt){let Xr=yx(Ui(rt)?rt.name:Vn(rt)?rt.left:rt);return!!CS(Vn(Yt)&&(Yt.operatorToken.kind===57||Yt.operatorToken.kind===61)?Yt.right:Yt,Xr)}return!1}function Bd(U){for(;Vn(U.parent);)U=U.parent;return U.parent}function n_(U,rt=s){if(Ye(U))return oW(rt,U.escapedText);{let Yt=n_(U.expression);return Yt&&Yt.exports&&Yt.exports.get(P0(U))}}function xf(U,rt,Yt){if($2(e,U))return e.symbol;if(Ye(U))return Yt(U,n_(U),rt);{let Xr=xf(U.expression,rt,Yt),Ya=u5(U);return Ca(Ya)&&I.fail("unexpected PrivateIdentifier"),Yt(Ya,Xr&&Xr.exports&&Xr.exports.get(P0(U)),Xr)}}function Xh(U){!e.commonJsModuleIndicator&&Xf(U,!1)&&Bf(U)}function hd(U){if(U.kind===263)lu(U,32,899503);else{let Ya=U.name?U.name.escapedText:"__class";us(U,32,Ya),U.name&&de.add(U.name.escapedText)}let{symbol:rt}=U,Yt=it(4194308,"prototype"),Xr=rt.exports.get(Yt.escapedName);Xr&&(U.name&&Xo(U.name,U),e.bindDiagnostics.push(Oe(Xr.declarations[0],y.Duplicate_identifier_0,Ml(Yt)))),rt.exports.set(Yt.escapedName,Yt),Yt.parent=rt}function zv(U){return wS(U)?lu(U,128,899967):lu(U,256,899327)}function _e(U){if(Y&&hc(U,U.name),!Os(U.name)){let rt=U.kind===260?U:U.parent.parent;jn(U)&&b2(rt)&&!xS(U)&&!(bS(U)&32)?Wr(U,2097152,2097152):oQ(U)?lu(U,2,111551):OS(U)?Wr(U,1,111551):Wr(U,1,111550)}}function xt(U){if(!(U.kind===341&&s.kind!==323)&&(Y&&!(U.flags&33554432)&&hc(U,U.name),Os(U.name)?us(U,1,"__"+U.parent.parameters.indexOf(U)):Wr(U,1,111551),L_(U,U.parent))){let rt=U.parent.parent;Te(rt.symbol.members,rt.symbol,U,4|(U.questionToken?16777216:0),0)}}function gr(U){!e.isDeclarationFile&&!(U.flags&33554432)&&m4(U)&&(ae|=4096),Cl(U),Y?(tl(U),lu(U,16,110991)):Wr(U,16,110991)}function yr(U){!e.isDeclarationFile&&!(U.flags&33554432)&&m4(U)&&(ae|=4096),S&&(U.flowNode=S),Cl(U);let rt=U.name?U.name.escapedText:"__function";return us(U,16,rt)}function Qr(U,rt,Yt){return!e.isDeclarationFile&&!(U.flags&33554432)&&m4(U)&&(ae|=4096),S&&zq(U)&&(U.flowNode=S),E0(U)?us(U,rt,"__computed"):Wr(U,rt,Yt)}function Tn(U){let rt=Br(U,Yt=>Yt.parent&&R2(Yt.parent)&&Yt.parent.extendsType===Yt);return rt&&rt.parent}function vi(U){if(Um(U.parent)){let rt=nJ(U.parent);rt?(I.assertNode(rt,Py),rt.locals??(rt.locals=Qs()),Te(rt.locals,void 0,U,262144,526824)):Wr(U,262144,526824)}else if(U.parent.kind===195){let rt=Tn(U.parent);rt?(I.assertNode(rt,Py),rt.locals??(rt.locals=Qs()),Te(rt.locals,void 0,U,262144,526824)):us(U,262144,ge(U))}else Wr(U,262144,526824)}function Ki(U){let rt=j0(U);return rt===1||rt===2&&vx(t)}function Na(U){if(!(S.flags&1))return!1;if(S===me&&(LF(U)&&U.kind!==242||U.kind===263||q9e(U,t)||U.kind===267&&Ki(U))&&(S=ve,!t.allowUnreachableCode)){let Yt=Sge(t)&&!(U.flags&33554432)&&(!Rl(U)||!!(w0(U.declarationList)&7)||U.declarationList.declarations.some(Xr=>!!Xr.initializer));q4t(U,t,(Xr,Ya)=>wi(Yt,Xr,Ya,y.Unreachable_code_detected))}return!0}}function q9e(e,t){return e.kind===266&&(!wS(e)||vx(t))}function q4t(e,t,n){if(fa(e)&&i(e)&&Cs(e.parent)){let{statements:l}=e.parent,p=MX(l,e);gP(p,i,(g,m)=>n(p[g],p[m-1]))}else n(e,e);function i(l){return!jl(l)&&!s(l)&&!(Rl(l)&&!(w0(l)&7)&&l.declarationList.declarations.some(p=>!p.initializer))}function s(l){switch(l.kind){case 264:case 265:return!0;case 267:return j0(l)!==1;case 266:return!q9e(l,t);default:return!1}}}function $2(e,t){let n=0,i=i2();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),Ck(t)||Ev(t))return!0;if(Ye(t)){let s=oW(e,t.escapedText);if(s&&s.valueDeclaration&&Ui(s.valueDeclaration)&&s.valueDeclaration.initializer){let l=s.valueDeclaration.initializer;i.enqueue(l),Yu(l,!0)&&(i.enqueue(l.left),i.enqueue(l.right))}}}return!1}function bZ(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(zq(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Ss(e.parent)||Al(e.parent)?0:34}return 0}function oW(e,t){var n,i,s,l;let p=(i=(n=_i(e,Py))==null?void 0:n.locals)==null?void 0:i.get(t);if(p)return p.exportSymbol??p;if(ba(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(qg(e))return(l=(s=e.symbol)==null?void 0:s.exports)==null?void 0:l.get(t)}function gve(e,t,n,i,s,l,p,g,m,x){return b;function b(S=()=>!0){let P=[],E=[];return{walkType:Ee=>{try{return N(Ee),{visitedTypes:_S(P),visitedSymbols:_S(E)}}finally{wa(P),wa(E)}},walkSymbol:Ee=>{try{return Y(Ee),{visitedTypes:_S(P),visitedSymbols:_S(E)}}finally{wa(P),wa(E)}}};function N(Ee){if(!(!Ee||P[Ee.id]||(P[Ee.id]=Ee,Y(Ee.symbol)))){if(Ee.flags&524288){let te=Ee,de=te.objectFlags;de&4&&F(Ee),de&32&&H(Ee),de&3&&ne(Ee),de&24&&ae(te)}Ee.flags&262144&&M(Ee),Ee.flags&3145728&&L(Ee),Ee.flags&4194304&&W(Ee),Ee.flags&8388608&&z(Ee)}}function F(Ee){N(Ee.target),Ge(x(Ee),N)}function M(Ee){N(g(Ee))}function L(Ee){Ge(Ee.types,N)}function W(Ee){N(Ee.type)}function z(Ee){N(Ee.objectType),N(Ee.indexType),N(Ee.constraint)}function H(Ee){N(Ee.typeParameter),N(Ee.constraintType),N(Ee.templateType),N(Ee.modifiersType)}function X(Ee){let fe=t(Ee);fe&&N(fe.type),Ge(Ee.typeParameters,N);for(let te of Ee.parameters)Y(te);N(e(Ee)),N(n(Ee))}function ne(Ee){ae(Ee),Ge(Ee.typeParameters,N),Ge(i(Ee),N),N(Ee.thisType)}function ae(Ee){let fe=s(Ee);for(let te of fe.indexInfos)N(te.keyType),N(te.type);for(let te of fe.callSignatures)X(te);for(let te of fe.constructSignatures)X(te);for(let te of fe.properties)Y(te)}function Y(Ee){if(!Ee)return!1;let fe=co(Ee);if(E[fe])return!1;if(E[fe]=Ee,!S(Ee))return!0;let te=l(Ee);return N(te),Ee.exports&&Ee.exports.forEach(Y),Ge(Ee.declarations,de=>{if(de.type&&de.type.kind===186){let me=de.type,ve=p(m(me.exprName));Y(ve)}}),!1}}}var L0={};w(L0,{RelativePreference:()=>J9e,countPathComponents:()=>uW,forEachFileNameOfModule:()=>H9e,getLocalModuleSpecifierBetweenFileNames:()=>V4t,getModuleSpecifier:()=>W4t,getModuleSpecifierPreferences:()=>RM,getModuleSpecifiers:()=>U9e,getModuleSpecifiersWithCacheInfo:()=>$9e,getNodeModulesPackageName:()=>U4t,tryGetJSExtensionForFile:()=>SZ,tryGetModuleSpecifiersFromCache:()=>$4t,tryGetRealFileNameForNonJsDeclarationFileName:()=>Y9e,updateModuleSpecifier:()=>z4t});var J4t=im(e=>{try{let t=e.indexOf("/");if(t!==0)return new RegExp(e);let n=e.lastIndexOf("/");if(t===n)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==n;)if(e[t-1]!=="\\")return new RegExp(e);let i=e.substring(n+1).replace(/[^iu]/g,"");return e=e.substring(1,n),new RegExp(e,i)}catch{return}}),J9e=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(J9e||{});function RM({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},i,s,l,p){let g=m();return{excludeRegexes:n,relativePreference:p!==void 0?Hu(p)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:x=>{let b=TZ(l,i,s),S=x!==b?m(x):g,P=Xp(s);if((x??b)===99&&3<=P&&P<=99)return YN(s,l.fileName)?[3,2]:[2];if(Xp(s)===1)return S===2?[2,1]:[1,2];let E=YN(s,l.fileName);switch(S){case 2:return E?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return E?[1,0,3,2]:[1,0,2];case 0:return E?[0,1,3,2]:[0,1,2];default:I.assertNever(S)}}};function m(x){if(p!==void 0){if(Iv(p))return 2;if(bc(p,"/index"))return 1}return Fge(t,x??TZ(l,i,s),s,Pv(l)?l:void 0)}}function z4t(e,t,n,i,s,l,p={}){let g=z9e(e,t,n,i,s,RM({},s,e,t,l),{},p);if(g!==l)return g}function W4t(e,t,n,i,s,l={}){return z9e(e,t,n,i,s,RM({},s,e,t),{},l)}function U4t(e,t,n,i,s,l={}){let p=lW(t.fileName,i),g=G9e(p,n,i,s,e,l);return jr(g,m=>vve(m,p,t,i,e,s,!0,l.overrideImportMode))}function z9e(e,t,n,i,s,l,p,g={}){let m=lW(n,s),x=G9e(m,i,s,p,e,g);return jr(x,b=>vve(b,m,t,s,e,p,void 0,g.overrideImportMode))||hve(i,m,e,s,g.overrideImportMode||TZ(t,s,e),l)}function $4t(e,t,n,i,s={}){let l=W9e(e,t,n,i,s);return l[1]&&{kind:l[0],moduleSpecifiers:l[1],computedWithoutCache:!1}}function W9e(e,t,n,i,s={}){var l;let p=JF(e);if(!p)return ce;let g=(l=n.getModuleSpecifierCache)==null?void 0:l.call(n),m=g?.get(t.path,p.path,i,s);return[m?.kind,m?.moduleSpecifiers,p,m?.modulePaths,g]}function U9e(e,t,n,i,s,l,p={}){return $9e(e,t,n,i,s,l,p,!1).moduleSpecifiers}function $9e(e,t,n,i,s,l,p={},g){let m=!1,x=X4t(e,t);if(x)return{kind:"ambient",moduleSpecifiers:g&&cW(x,l.autoImportSpecifierExcludeRegexes)?ce:[x],computedWithoutCache:m};let[b,S,P,E,N]=W9e(e,i,s,l,p);if(S)return{kind:b,moduleSpecifiers:S,computedWithoutCache:m};if(!P)return{kind:void 0,moduleSpecifiers:ce,computedWithoutCache:m};m=!0,E||(E=K9e(lW(i.fileName,s),P.originalFileName,s,n,p));let F=H4t(E,n,i,s,l,p,g);return N?.set(i.path,P.path,l,p,F.kind,E,F.moduleSpecifiers),F}function V4t(e,t,n,i,s,l={}){let p=lW(e.fileName,i),g=l.overrideImportMode??e.impliedNodeFormat;return hve(t,p,n,i,g,RM(s,i,n,e))}function H4t(e,t,n,i,s,l={},p){let g=lW(n.fileName,i),m=RM(s,i,t,n),x=Pv(n)&&Ge(e,F=>Ge(i.getFileIncludeReasons().get(Ec(F.path,i.getCurrentDirectory(),g.getCanonicalFileName)),M=>{if(M.kind!==3||M.file!==n.path)return;let L=i.getModeForResolutionAtIndex(n,M.index),W=l.overrideImportMode??i.getDefaultResolutionModeForFile(n);if(L!==W&&L!==void 0&&W!==void 0)return;let z=eR(n,M.index).text;return m.relativePreference!==1||!pd(z)?z:void 0}));if(x)return{kind:void 0,moduleSpecifiers:[x],computedWithoutCache:!0};let b=Pt(e,F=>F.isInNodeModules),S,P,E,N;for(let F of e){let M=F.isInNodeModules?vve(F,g,n,i,t,s,void 0,l.overrideImportMode):void 0;if(M&&!(p&&cW(M,m.excludeRegexes))&&(S=Zr(S,M),F.isRedirect))return{kind:"node_modules",moduleSpecifiers:S,computedWithoutCache:!0};let L=hve(F.path,g,t,i,l.overrideImportMode||n.impliedNodeFormat,m,F.isRedirect||!!M);!L||p&&cW(L,m.excludeRegexes)||(F.isRedirect?E=Zr(E,L):yK(L)?Ox(L)?N=Zr(N,L):P=Zr(P,L):(p||!b||F.isInNodeModules)&&(N=Zr(N,L)))}return P?.length?{kind:"paths",moduleSpecifiers:P,computedWithoutCache:!0}:E?.length?{kind:"redirect",moduleSpecifiers:E,computedWithoutCache:!0}:S?.length?{kind:"node_modules",moduleSpecifiers:S,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:N??ce,computedWithoutCache:!0}}function cW(e,t){return Pt(t,n=>{var i;return!!((i=J4t(n))!=null&&i.test(e))})}function lW(e,t){e=Qa(e,t.getCurrentDirectory());let n=Xu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ei(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:n(i)}}function hve(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:l,relativePreference:p,excludeRegexes:g},m){let{baseUrl:x,paths:b,rootDirs:S}=n;if(m&&!b)return;let{sourceDirectory:P,canonicalSourceDirectory:E,getCanonicalFileName:N}=t,F=l(s),M=S&&e3t(S,e,P,N,F,n)||jM(_k(Pd(P,e,N)),F,n);if(!x&&!b&&!q5(n)||p===0)return m?void 0:M;let L=Qa(dJ(n,i)||x,i.getCurrentDirectory()),W=bve(e,L,N);if(!W)return m?void 0:M;let z=m?void 0:Z4t(e,P,n,i,s,r3t(F)),H=m||z===void 0?b&&Q9e(W,b,F,L,N,i,n):void 0;if(m)return H;let X=z??(H===void 0&&x!==void 0?jM(W,F,n):H);if(!X)return M;let ne=cW(M,g),ae=cW(X,g);if(!ne&&ae)return M;if(ne&&!ae||p===1&&!pd(X))return X;if(p===3&&!pd(X)){let Y=n.configFilePath?Ec(Ei(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),Ee=Ec(e,Y,N),fe=La(E,Y),te=La(Ee,Y);if(fe&&!te||!fe&&te)return X;let de=yve(i,Ei(Ee)),me=yve(i,P),ve=!Ak(i);return G4t(de,me,ve)?M:X}return Z9e(X)||uW(M)<uW(X)?M:X}function G4t(e,t,n){return e===t?!0:e===void 0||t===void 0?!1:S0(e,t,n)===0}function uW(e){let t=0;for(let n=La(e,"./")?2:0;n<e.length;n++)e.charCodeAt(n)===47&&t++;return t}function V9e(e,t){return _v(t.isRedirect,e.isRedirect)||V5(e.path,t.path)}function yve(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):My(e,t,n=>e.fileExists(gi(n,"package.json"))?n:void 0)}function H9e(e,t,n,i,s){var l;let p=D0(n),g=n.getCurrentDirectory(),m=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,x=Ec(t,g,p),b=n.redirectTargetsMap.get(x)||ce,P=[...m?[m]:ce,t,...b].map(L=>Qa(L,g)),E=!sn(P,L4);if(!i){let L=Ge(P,W=>!(E&&L4(W))&&s(W,m===W));if(L)return L}let N=(l=n.getSymlinkCache)==null?void 0:l.call(n).getSymlinkedDirectoriesByRealpath(),F=Qa(t,g);return N&&My(n,Ei(F),L=>{let W=N.get(ju(Ec(L,g,p)));if(W)return xK(e,L,p)?!1:Ge(P,z=>{if(!xK(z,L,p))return;let H=Pd(L,z,p);for(let X of W){let ne=Zb(X,H),ae=s(ne,z===m);if(E=!0,ae)return ae}})})||(i?Ge(P,L=>E&&L4(L)?void 0:s(L,L===m)):void 0)}function G9e(e,t,n,i,s,l={}){var p;let g=Ec(e.importingSourceFileName,n.getCurrentDirectory(),D0(n)),m=Ec(t,n.getCurrentDirectory(),D0(n)),x=(p=n.getModuleSpecifierCache)==null?void 0:p.call(n);if(x){let S=x.get(g,m,i,l);if(S?.modulePaths)return S.modulePaths}let b=K9e(e,t,n,s,l);return x&&x.setModulePaths(g,m,i,l,b),b}var K4t=["dependencies","peerDependencies","optionalDependencies"];function Q4t(e){let t;for(let n of K4t){let i=e[n];i&&typeof i=="object"&&(t=ya(t,rm(i)))}return t}function K9e(e,t,n,i,s){var l,p;let g=(l=n.getModuleResolutionCache)==null?void 0:l.call(n),m=(p=n.getSymlinkCache)==null?void 0:p.call(n);if(g&&m&&n.readFile&&!Ox(e.importingSourceFileName)){I.type(n);let P=d3(g.getPackageJsonInfoCache(),n,{}),E=m3(Ei(e.importingSourceFileName),P);if(E){let N=Q4t(E.contents.packageJsonContent);for(let F of N||ce){let M=Yk(F,gi(E.packageDirectory,"package.json"),i,n,g,void 0,s.overrideImportMode);m.setSymlinksFromResolution(M.resolvedModule)}}}let x=new Map,b=!1;H9e(e.importingSourceFileName,t,n,!0,(P,E)=>{let N=Ox(P);x.set(P,{path:e.getCanonicalFileName(P),isRedirect:E,isInNodeModules:N}),b=b||N});let S=[];for(let P=e.canonicalSourceDirectory;x.size!==0;){let E=ju(P),N;x.forEach(({path:M,isRedirect:L,isInNodeModules:W},z)=>{La(M,E)&&((N||(N=[])).push({path:z,isRedirect:L,isInNodeModules:W}),x.delete(z))}),N&&(N.length>1&&N.sort(V9e),S.push(...N));let F=Ei(P);if(F===P)break;P=F}if(x.size){let P=Ka(x.entries(),([E,{isRedirect:N,isInNodeModules:F}])=>({path:E,isRedirect:N,isInNodeModules:F}));P.length>1&&P.sort(V9e),S.push(...P)}return S}function X4t(e,t){var n;let i=(n=e.declarations)==null?void 0:n.find(p=>lQ(p)&&(!h2(p)||!Hu(lm(p.name))));if(i)return i.name.text;let l=Bi(e.declarations,p=>{var g,m,x,b;if(!cu(p))return;let S=F(p);if(!((g=S?.parent)!=null&&g.parent&&Lh(S.parent)&&df(S.parent.parent)&&ba(S.parent.parent.parent)))return;let P=(b=(x=(m=S.parent.parent.symbol.exports)==null?void 0:m.get("export="))==null?void 0:x.valueDeclaration)==null?void 0:b.expression;if(!P)return;let E=t.getSymbolAtLocation(P);if(!E)return;if((E?.flags&2097152?t.getAliasedSymbol(E):E)===p.symbol)return S.parent.parent;function F(M){for(;M.flags&8;)M=M.parent;return M}})[0];if(l)return l.name.text}function Q9e(e,t,n,i,s,l,p){for(let m in t)for(let x of t[m]){let b=Zs(x),S=bve(b,i,s)??b,P=S.indexOf("*"),E=n.map(N=>({ending:N,value:jM(e,[N],p)}));if(Fv(S)&&E.push({ending:void 0,value:e}),P!==-1){let N=S.substring(0,P),F=S.substring(P+1);for(let{ending:M,value:L}of E)if(L.length>=N.length+F.length&&La(L,N)&&bc(L,F)&&g({ending:M,value:L})){let W=L.substring(N.length,L.length-F.length);if(!pd(W))return Rk(m,W)}}else if(Pt(E,N=>N.ending!==0&&S===N.value)||Pt(E,N=>N.ending===0&&S===N.value&&g(N)))return m}function g({ending:m,value:x}){return m!==0||x===jM(e,[m],p,l)}}function pW(e,t,n,i,s,l,p,g,m,x){if(typeof l=="string"){let b=!Ak(t),S=()=>t.getCommonSourceDirectory(),P=m&&XZ(n,e,b,S),E=m&&QZ(n,e,b,S),N=Qa(gi(i,l),void 0),F=Mk(n)?yf(n)+SZ(n,e):void 0,M=x&&Age(n);switch(g){case 0:if(F&&S0(F,N,b)===0||S0(n,N,b)===0||P&&S0(P,N,b)===0||E&&S0(E,N,b)===0)return{moduleFileToTry:s};break;case 1:if(M&&am(n,N,b)){let H=Pd(N,n,!1);return{moduleFileToTry:Qa(gi(gi(s,l),H),void 0)}}if(F&&am(N,F,b)){let H=Pd(N,F,!1);return{moduleFileToTry:Qa(gi(gi(s,l),H),void 0)}}if(!M&&am(N,n,b)){let H=Pd(N,n,!1);return{moduleFileToTry:Qa(gi(gi(s,l),H),void 0)}}if(P&&am(N,P,b)){let H=Pd(N,P,!1);return{moduleFileToTry:gi(s,H)}}if(E&&am(N,E,b)){let H=ZB(Pd(N,E,!1),xZ(E,e));return{moduleFileToTry:gi(s,H)}}break;case 2:let L=N.indexOf("*"),W=N.slice(0,L),z=N.slice(L+1);if(M&&La(n,W,b)&&bc(n,z,b)){let H=n.slice(W.length,n.length-z.length);return{moduleFileToTry:Rk(s,H)}}if(F&&La(F,W,b)&&bc(F,z,b)){let H=F.slice(W.length,F.length-z.length);return{moduleFileToTry:Rk(s,H)}}if(!M&&La(n,W,b)&&bc(n,z,b)){let H=n.slice(W.length,n.length-z.length);return{moduleFileToTry:Rk(s,H)}}if(P&&La(P,W,b)&&bc(P,z,b)){let H=P.slice(W.length,P.length-z.length);return{moduleFileToTry:Rk(s,H)}}if(E&&La(E,W,b)&&bc(E,z,b)){let H=E.slice(W.length,E.length-z.length),X=Rk(s,H),ne=SZ(E,e);return ne?{moduleFileToTry:ZB(X,ne)}:void 0}break}}else{if(Array.isArray(l))return Ge(l,b=>pW(e,t,n,i,s,b,p,g,m,x));if(typeof l=="object"&&l!==null){for(let b of rm(l))if(b==="default"||p.indexOf(b)>=0||FM(p,b)){let S=l[b],P=pW(e,t,n,i,s,S,p,g,m,x);if(P)return P}}}}function Y4t(e,t,n,i,s,l,p){return typeof l=="object"&&l!==null&&!Array.isArray(l)&&aW(l)?Ge(rm(l),g=>{let m=Qa(gi(s,g),void 0),x=bc(g,"/")?1:g.includes("*")?2:0;return pW(e,t,n,i,m,l[g],p,x,!1,!1)}):pW(e,t,n,i,s,l,p,0,!1,!1)}function Z4t(e,t,n,i,s,l){var p,g,m;if(!i.readFile||!q5(n))return;let x=yve(i,t);if(!x)return;let b=gi(x,"package.json"),S=(g=(p=i.getPackageJsonInfoCache)==null?void 0:p.call(i))==null?void 0:g.getPackageJsonInfo(b);if(Zye(S)||!i.fileExists(b))return;let P=S?.contents.packageJsonContent||wJ(i.readFile(b)),E=P?.imports;if(!E)return;let N=Dx(n,s);return(m=Ge(rm(E),F=>{if(!La(F,"#")||F==="#"||La(F,"#/"))return;let M=bc(F,"/")?1:F.includes("*")?2:0;return pW(n,i,e,x,F,E[F],N,M,!0,l)}))==null?void 0:m.moduleFileToTry}function e3t(e,t,n,i,s,l){let p=X9e(t,e,i);if(p===void 0)return;let g=X9e(n,e,i),m=li(g,b=>Dt(p,S=>_k(Pd(b,S,i)))),x=bP(m,V5);if(x)return jM(x,s,l)}function vve({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:i},s,l,p,g,m,x){if(!l.fileExists||!l.readFile)return;let b=YJ(e);if(!b)return;let P=RM(g,l,p,s).getAllowedEndingsInPreferredOrder(),E=e,N=!1;if(!m){let H=b.packageRootIndex,X;for(;;){let{moduleFileToTry:ne,packageRootPath:ae,blockedByExports:Y,verbatimFromExports:Ee}=z(H);if(Xp(p)!==1){if(Y)return;if(Ee)return ne}if(ae){E=ae,N=!0;break}if(X||(X=ne),H=e.indexOf(jc,H+1),H===-1){E=jM(X,P,p,l);break}}}if(t&&!N)return;let F=l.getGlobalTypingsCacheLocation&&l.getGlobalTypingsCacheLocation(),M=n(E.substring(0,b.topLevelNodeModulesIndex));if(!(La(i,M)||F&&La(n(F),M)))return;let L=E.substring(b.topLevelPackageNameIndex+1),W=g3(L);return Xp(p)===1&&W===L?void 0:W;function z(H){var X,ne;let ae=e.substring(0,H),Y=gi(ae,"package.json"),Ee=e,fe=!1,te=(ne=(X=l.getPackageJsonInfoCache)==null?void 0:X.call(l))==null?void 0:ne.getPackageJsonInfo(Y);if(tW(te)||te===void 0&&l.fileExists(Y)){let de=te?.contents.packageJsonContent||wJ(l.readFile(Y)),me=x||TZ(s,l,p);if(B5(p)){let Oe=ae.substring(b.topLevelPackageNameIndex+1),ie=g3(Oe),Ne=Dx(p,me),it=de?.exports?Y4t(p,l,e,ae,ie,de.exports,Ne):void 0;if(it)return{...it,verbatimFromExports:!0};if(de?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let ve=de?.typesVersions?Zz(de.typesVersions):void 0;if(ve){let Oe=e.slice(ae.length+1),ie=Q9e(Oe,ve.paths,P,ae,n,l,p);ie===void 0?fe=!0:Ee=gi(ae,ie)}let Pe=de?.typings||de?.types||de?.main||"index.js";if(Ua(Pe)&&!(fe&&FX(G5(ve.paths),Pe))){let Oe=Ec(Pe,ae,n),ie=n(Ee);if(yf(Oe)===yf(ie))return{packageRootPath:ae,moduleFileToTry:Ee};if(de?.type!=="module"&&!Wl(ie,VJ)&&La(ie,Oe)&&Ei(ie)===T1(Oe)&&yf(gu(ie))==="index")return{packageRootPath:ae,moduleFileToTry:Ee}}}else{let de=n(Ee.substring(b.packageRootIndex+1));if(de==="index.d.ts"||de==="index.js"||de==="index.ts"||de==="index.tsx")return{moduleFileToTry:Ee,packageRootPath:ae}}return{moduleFileToTry:Ee}}}function t3t(e,t){if(!e.fileExists)return;let n=js(N4({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of n){let s=t+i;if(e.fileExists(s))return s}}function X9e(e,t,n){return Bi(t,i=>{let s=bve(e,i,n);return s!==void 0&&Z9e(s)?void 0:s})}function jM(e,t,n,i){if(Wl(e,[".json",".mjs",".cjs"]))return e;let s=yf(e);if(e===s)return e;let l=t.indexOf(2),p=t.indexOf(3);if(Wl(e,[".mts",".cts"])&&p!==-1&&p<l)return e;if(Wl(e,[".d.mts",".mts",".d.cts",".cts"]))return s+xZ(e,n);if(!Wl(e,[".d.ts"])&&Wl(e,[".ts"])&&e.includes(".d."))return Y9e(e);switch(t[0]){case 0:let g=a2(s,"/index");return i&&g!==s&&t3t(i,g)?s:g;case 1:return s;case 2:return s+xZ(e,n);case 3:if(Wu(e)){let m=t.findIndex(x=>x===0||x===1);return m!==-1&&m<l?s:s+xZ(e,n)}return e;default:return I.assertNever(t[0])}}function Y9e(e){let t=gu(e);if(!bc(e,".ts")||!t.includes(".d.")||Wl(t,[".d.ts"]))return;let n=H5(e,".ts"),i=n.substring(n.lastIndexOf("."));return n.substring(0,n.indexOf(".d."))+i}function xZ(e,t){return SZ(e,t)??I.fail(`Extension ${I4(e)} is unsupported:: FileName:: ${e}`)}function SZ(e,t){let n=Fv(e);switch(n){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function bve(e,t,n){let i=IP(t,e,t,n,!1);return j_(i)?void 0:i}function Z9e(e){return La(e,"..")}function TZ(e,t,n){return Pv(e)?t.getDefaultResolutionModeForFile(e):NW(e,n)}function r3t(e){let t=e.indexOf(3);return t>-1&&t<e.indexOf(2)}var xve=/^".+"$/,wZ="(anonymous)",eBe=1,tBe=1,rBe=1,nBe=1,kZ=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(kZ||{}),Sve=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),CZ=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(CZ||{}),PZ=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(PZ||{}),n3t=b1(aBe,a3t),EZ=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),iBe=class{};function i3t(){this.flags=0}function Wo(e){return e.id||(e.id=tBe,tBe++),e.id}function co(e){return e.id||(e.id=eBe,eBe++),e.id}function DZ(e,t){let n=j0(e);return n===1||t&&n===2}function Tve(e){var t=[],n=r=>{t.push(r)},i,s,l=wp.getSymbolConstructor(),p=wp.getTypeConstructor(),g=wp.getSignatureConstructor(),m=0,x=0,b=0,S=0,P=0,E=0,N,F,M=!1,L=Qs(),W=[1],z=e.getCompilerOptions(),H=Po(z),X=hf(z),ne=!!z.experimentalDecorators,ae=J5(z),Y=TX(z),Ee=lE(z),fe=Bp(z,"strictNullChecks"),te=Bp(z,"strictFunctionTypes"),de=Bp(z,"strictBindCallApply"),me=Bp(z,"strictPropertyInitialization"),ve=Bp(z,"strictBuiltinIteratorReturn"),Pe=Bp(z,"noImplicitAny"),Oe=Bp(z,"noImplicitThis"),ie=Bp(z,"useUnknownInCatchVariables"),Ne=z.exactOptionalPropertyTypes,it=!!z.noUncheckedSideEffectImports,ze=RZt(),ge=hnr(),Me=M$(),Te=P1e(z,Me.syntacticBuilderResolver),gt=Xge({evaluateElementAccessExpression:orr,evaluateEntityNameExpression:aat}),Tt=Qs(),xe=fo(4,"undefined");xe.declarations=[];var nt=fo(1536,"globalThis",8);nt.exports=Tt,nt.declarations=[],Tt.set(nt.escapedName,nt);var pe=fo(4,"arguments"),He=fo(4,"require"),qe=z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",je=!z.verbatimModuleSyntax,st,jt,ar=0,Or,nn=0,Ct=VX({compilerOptions:z,requireSymbol:He,argumentsSymbol:pe,globals:Tt,getSymbolOfDeclaration:ei,error:ot,getRequiresScopeChangeCache:Ac,setRequiresScopeChangeCache:pT,lookup:Sf,onPropertyWithInvalidInitializer:fT,onFailedToResolveSymbol:vC,onSuccessfullyResolvedSymbol:uD}),pr=VX({compilerOptions:z,requireSymbol:He,argumentsSymbol:pe,globals:Tt,getSymbolOfDeclaration:ei,error:ot,getRequiresScopeChangeCache:Ac,setRequiresScopeChangeCache:pT,lookup:nYt});let vn={getNodeCount:()=>Qu(e.getSourceFiles(),(r,c)=>r+c.nodeCount,0),getIdentifierCount:()=>Qu(e.getSourceFiles(),(r,c)=>r+c.identifierCount,0),getSymbolCount:()=>Qu(e.getSourceFiles(),(r,c)=>r+c.symbolCount,x),getTypeCount:()=>m,getInstantiationCount:()=>b,getRelationCacheSizes:()=>({assignable:i_.size,identity:td.size,subtype:$v.size,strictSubtype:bm.size}),isUndefinedSymbol:r=>r===xe,isArgumentsSymbol:r=>r===pe,isUnknownSymbol:r=>r===oe,getMergedSymbol:Uo,symbolIsValue:sh,getDiagnostics:_at,getGlobalDiagnostics:Arr,getRecursionIdentity:Tae,getUnmatchedProperties:QCe,getTypeOfSymbolAtLocation:(r,c)=>{let _=ds(c);return _?yQt(r,_):ut},getTypeOfSymbol:An,getSymbolsOfParameterPropertyDeclaration:(r,c)=>{let _=ds(r,Da);return _===void 0?I.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(I.assert(L_(_,_.parent)),yC(_,gl(c)))},getDeclaredTypeOfSymbol:zc,getPropertiesOfType:oc,getPropertyOfType:(r,c)=>io(r,gl(c)),getPrivateIdentifierPropertyOfType:(r,c,_)=>{let h=ds(_);if(!h)return;let v=gl(c),T=FV(v,h);return T?ise(r,T):void 0},getTypeOfPropertyOfType:(r,c)=>fu(r,gl(c)),getIndexInfoOfType:(r,c)=>i0(r,c===0?kt:dr),getIndexInfosOfType:Wp,getIndexInfosOfIndexSymbol:Yie,getSignaturesOfType:Ns,getIndexTypeOfType:(r,c)=>OT(r,c===0?kt:dr),getIndexType:r=>fy(r),getBaseTypes:Fu,getBaseTypeOfLiteralType:i1,getWidenedType:ad,getWidenedLiteralType:RT,fillMissingTypeArguments:hb,getTypeFromTypeNode:r=>{let c=ds(r,Yi);return c?Sa(c):ut},getParameterType:dh,getParameterIdentifierInfoAtPosition:XYt,getPromisedTypeOfPromise:lL,getAwaitedType:r=>GD(r),getReturnTypeOfSignature:Yo,isNullableType:IV,getNullableType:gV,getNonNullableType:a1,getNonOptionalType:Pae,getTypeArguments:$c,typeToTypeNode:Me.typeToTypeNode,typePredicateToTypePredicateNode:Me.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:Me.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Me.signatureToSignatureDeclaration,symbolToEntityName:Me.symbolToEntityName,symbolToExpression:Me.symbolToExpression,symbolToNode:Me.symbolToNode,symbolToTypeParameterDeclarations:Me.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Me.symbolToParameterDeclaration,typeParameterToDeclaration:Me.typeParameterToDeclaration,getSymbolsInScope:(r,c)=>{let _=ds(r);return _?Irr(_,c):[]},getSymbolAtLocation:r=>{let c=ds(r);return c?Em(c,!0):void 0},getIndexInfosAtLocation:r=>{let c=ds(r);return c?Jrr(c):void 0},getShorthandAssignmentValueSymbol:r=>{let c=ds(r);return c?zrr(c):void 0},getExportSpecifierLocalTargetSymbol:r=>{let c=ds(r,Yp);return c?Wrr(c):void 0},getExportSymbolOfSymbol(r){return Uo(r.exportSymbol||r)},getTypeAtLocation:r=>{let c=ds(r);return c?QD(c):ut},getTypeOfAssignmentPattern:r=>{let c=ds(r,XI);return c&&Mse(c)||ut},getPropertySymbolOfDestructuringAssignment:r=>{let c=ds(r,Ye);return c?Urr(c):void 0},signatureToString:(r,c,_,h)=>Sw(r,ds(c),_,h),typeToString:(r,c,_)=>Pn(r,ds(c),_),symbolToString:(r,c,_,h)=>ja(r,ds(c),_,h),typePredicateToString:(r,c,_)=>wT(r,ds(c),_),writeSignature:(r,c,_,h,v)=>Sw(r,ds(c),_,h,v),writeType:(r,c,_,h)=>Pn(r,ds(c),_,h),writeSymbol:(r,c,_,h,v)=>ja(r,ds(c),_,h,v),writeTypePredicate:(r,c,_,h)=>wT(r,ds(c),_,h),getAugmentedPropertiesOfType:qEe,getRootSymbols:xat,getSymbolOfExpando:use,getContextualType:(r,c)=>{let _=ds(r,At);if(_)return c&4?hi(_,()=>Uf(_,c)):Uf(_,c)},getContextualTypeForObjectLiteralElement:r=>{let c=ds(r,k0);return c?CPe(c,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,c)=>{let _=ds(r,_2);return _&&TPe(_,c)},getContextualTypeForJsxAttribute:r=>{let c=ds(r,bq);return c&&Rrt(c,void 0)},isContextSensitive:Hd,getTypeOfPropertyOfContextualType:LT,getFullyQualifiedName:K0,getResolvedSignature:(r,c,_)=>$a(r,c,_,0),getCandidateSignaturesForStringLiteralCompletions:ts,getResolvedSignatureForSignatureHelp:(r,c,_)=>Gt(r,()=>$a(r,c,_,16)),getExpandedParameters:vZe,hasEffectiveRestParameter:nv,containsArgumentsReference:Wke,getConstantValue:r=>{let c=ds(r,Pat);return c?zEe(c):void 0},isValidPropertyAccess:(r,c)=>{let _=ds(r,Tde);return!!_&&sYt(_,gl(c))},isValidPropertyAccessForCompletions:(r,c,_)=>{let h=ds(r,ai);return!!h&&_nt(h,c,_)},getSignatureFromDeclaration:r=>{let c=ds(r,Ss);return c?Vd(c):void 0},isImplementationOfOverload:r=>{let c=ds(r,Ss);return c?kat(c):void 0},getImmediateAliasedSymbol:Xae,getAliasedSymbol:pu,getEmitResolver:Hv,requiresAddingImplicitUndefined:sH,getExportsOfModule:yT,getExportsAndPropertiesOfModule:yD,forEachExportAndPropertyOfModule:vT,getSymbolWalker:gve(IVt,Tm,Yo,Fu,ph,An,sf,Wf,Af,$c),getAmbientModules:air,getJsxIntrinsicTagNamesAt:qXt,isOptionalParameter:r=>{let c=ds(r,Da);return c?Ej(c):!1},tryGetMemberInModuleExports:(r,c)=>vD(gl(r),c),tryGetMemberInModuleExportsAndProperties:(r,c)=>vw(gl(r),c),tryFindAmbientModule:r=>BZe(r,!0),getApparentType:kf,getUnionType:Fi,isTypeAssignableTo:qs,createAnonymousType:rl,createSignature:n0,createSymbol:fo,createIndexInfo:a0,getAnyType:()=>Qe,getStringType:()=>kt,getStringLiteralType:c_,getNumberType:()=>dr,getNumberLiteralType:Dg,getBigIntType:()=>kn,getBigIntLiteralType:nV,getUnknownType:()=>qt,createPromiseType:UV,createArrayType:Up,getElementTypeOfArrayType:mV,getBooleanType:()=>cr,getFalseType:r=>r?Kr:yn,getTrueType:r=>r?yt:Bt,getVoidType:()=>zr,getUndefinedType:()=>ke,getNullType:()=>rr,getESSymbolType:()=>er,getNeverType:()=>Pr,getOptionalType:()=>Ft,getPromiseType:()=>X$(!1),getPromiseLikeType:()=>uet(!1),getAnyAsyncIterableType:()=>{let r=Y$(!1);if(r!==fr)return Z0(r,[Qe,Qe,Qe])},isSymbolAccessible:sy,isArrayType:km,isTupleType:Oo,isArrayLikeType:bb,isEmptyAnonymousObjectType:rv,isTypeInvalidDueToUnionDiscriminant:dVt,getExactOptionalProperties:VGt,getAllPossiblePropertiesOfTypes:mVt,getSuggestedSymbolForNonexistentProperty:qPe,getSuggestedSymbolForNonexistentJSXAttribute:lnt,getSuggestedSymbolForNonexistentSymbol:(r,c,_)=>pnt(r,gl(c),_),getSuggestedSymbolForNonexistentModule:JPe,getSuggestedSymbolForNonexistentClassMember:cnt,getBaseConstraintOfType:Op,getDefaultFromTypeParameter:r=>r&&r.flags&262144?Ew(r):void 0,resolveName(r,c,_,h){return Ct(c,gl(r),_,void 0,!1,h)},getJsxNamespace:r=>ka(yp(r)),getJsxFragmentFactory:r=>{let c=VEe(r);return c&&ka(Af(c).escapedText)},getAccessibleSymbolChain:Hx,getTypePredicateOfSignature:Tm,resolveExternalModuleName:r=>{let c=ds(r,At);return c&&wf(c,c,!0)},resolveExternalModuleSymbol:a_,tryGetThisTypeAt:(r,c,_)=>{let h=ds(r);return h&&vPe(h,c,_)},getTypeArgumentConstraint:r=>{let c=ds(r,Yi);return c&&mer(c)},getSuggestionDiagnostics:(r,c)=>{let _=ds(r,ba)||I.fail("Could not determine parsed source file.");if(kN(_,z,e))return ce;let h;try{return i=c,LEe(_),I.assert(!!(Zn(_).flags&1)),h=ti(h,lT.getDiagnostics(_.fileName)),Nit(fat(_),(v,T,D)=>{!UP(v)&&!pat(T,!!(v.flags&33554432))&&(h||(h=[])).push({...D,category:2})}),h||ce}finally{i=void 0}},runWithCancellationToken:(r,c)=>{try{return i=r,c(vn)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Pg,isDeclarationVisible:X0,isPropertyAccessible:WPe,getTypeOnlyAliasDeclaration:ah,getMemberOverrideModifierStatus:Qtr,isTypeParameterPossiblyReferenced:sV,typeHasCallOrConstructSignatures:Rse,getSymbolFlags:rd,getTypeArgumentsForResolvedSignature:ta};function ta(r){if(r.mapper!==void 0)return tv((r.target||r).typeParameters,r.mapper)}function ts(r,c){let _=new Set,h=[];hi(c,()=>$a(r,h,void 0,0));for(let v of h)_.add(v);h.length=0,Gt(c,()=>$a(r,h,void 0,0));for(let v of h)_.add(v);return Ka(_)}function Gt(r,c){if(r=Br(r,VK),r){let _=[],h=[];for(;r;){let T=Zn(r);if(_.push([T,T.resolvedSignature]),T.resolvedSignature=void 0,xx(r)){let D=Fa(ei(r)),J=D.type;h.push([D,J]),D.type=void 0}r=Br(r.parent,VK)}let v=c();for(let[T,D]of _)T.resolvedSignature=D;for(let[T,D]of h)T.type=D;return v}return c()}function hi(r,c){let _=Br(r,_2);if(_){let v=r;do Zn(v).skipDirectInference=!0,v=v.parent;while(v&&v!==_)}M=!0;let h=Gt(r,c);if(M=!1,_){let v=r;do Zn(v).skipDirectInference=void 0,v=v.parent;while(v&&v!==_)}return h}function $a(r,c,_,h){let v=ds(r,_2);st=_;let T=v?p6(v,c,h):void 0;return st=void 0,T}var ui=new Map,Wn=new Map,Gi=new Map,at=new Map,It=new Map,Cr=new Map,wn=new Map,Di=new Map,Pi=new Map,da=new Map,ks=new Map,no=new Map,Vr=new Map,_s=new Map,ft=new Map,Qt=[],he=new Map,wt=new Set,oe=fo(4,"unknown"),Ue=fo(0,"__resolving__"),pt=new Map,vt=new Map,$t=new Set,Qe=Se(1,"any"),Lt=Se(1,"any",262144,"auto"),Rt=Se(1,"any",void 0,"wildcard"),Xt=Se(1,"any",void 0,"blocked string"),ut=Se(1,"error"),lr=Se(1,"unresolved"),In=Se(1,"any",65536,"non-inferrable"),We=Se(1,"intrinsic"),qt=Se(2,"unknown"),ke=Se(32768,"undefined"),$=fe?ke:Se(32768,"undefined",65536,"widening"),Ke=Se(32768,"undefined",void 0,"missing"),re=Ne?Ke:ke,Ft=Se(32768,"undefined",void 0,"optional"),rr=Se(65536,"null"),Le=fe?rr:Se(65536,"null",65536,"widening"),kt=Se(4,"string"),dr=Se(8,"number"),kn=Se(64,"bigint"),Kr=Se(512,"false",void 0,"fresh"),yn=Se(512,"false"),yt=Se(512,"true",void 0,"fresh"),Bt=Se(512,"true");yt.regularType=Bt,yt.freshType=yt,Bt.regularType=Bt,Bt.freshType=yt,Kr.regularType=yn,Kr.freshType=Kr,yn.regularType=yn,yn.freshType=Kr;var cr=Fi([yn,Bt]),er=Se(4096,"symbol"),zr=Se(16384,"void"),Pr=Se(131072,"never"),or=Se(131072,"never",262144,"silent"),Mr=Se(131072,"never",void 0,"implicit"),Wr=Se(131072,"never",void 0,"unreachable"),$r=Se(67108864,"object"),Sr=Fi([kt,dr]),ji=Fi([kt,dr,er]),Is=Fi([dr,kn]),Xs=Fi([kt,dr,cr,kn,rr,ke]),Ps=FC(["",""],[dr]),Vl=aV(r=>r.flags&262144?yGt(r):r,()=>"(restrictive mapper)"),pl=aV(r=>r.flags&262144?Rt:r,()=>"(permissive mapper)"),Bl=Se(131072,"never",void 0,"unique literal"),la=aV(r=>r.flags&262144?Bl:r,()=>"(unique literal mapper)"),us,lu=aV(r=>(us&&(r===tl||r===Pl||r===B)&&us(!0),r),()=>"(unmeasurable reporter)"),Kc=aV(r=>(us&&(r===tl||r===Pl||r===B)&&us(!1),r),()=>"(unreliable reporter)"),Ro=rl(void 0,L,ce,ce,ce),el=rl(void 0,L,ce,ce,ce);el.objectFlags|=2048;var Q_=rl(void 0,L,ce,ce,ce);Q_.objectFlags|=141440;var as=fo(2048,"__type");as.members=Qs();var Gs=rl(as,L,ce,ce,ce),qo=rl(void 0,L,ce,ce,ce),jo=fe?Fi([ke,rr,qo]):qt,fr=rl(void 0,L,ce,ce,ce);fr.instantiations=new Map;var hc=rl(void 0,L,ce,ce,ce);hc.objectFlags|=262144;var uu=rl(void 0,L,ce,ce,ce),Cl=rl(void 0,L,ce,ce,ce),hp=rl(void 0,L,ce,ce,ce),tl=pa(),Pl=pa();Pl.constraint=tl;var B=pa(),Xe=pa(),Et=pa();Et.constraint=Xe;var ur=Dj(1,"<<unresolved>>",0,Qe),cn=n0(void 0,void 0,void 0,ce,Qe,void 0,0,0),wi=n0(void 0,void 0,void 0,ce,ut,void 0,0,0),Bn=n0(void 0,void 0,void 0,ce,Qe,void 0,0,0),an=n0(void 0,void 0,void 0,ce,or,void 0,0,0),ua=a0(dr,kt,!0),ma=a0(kt,Qe,!1),sc=new Map,To={get yieldType(){return I.fail("Not supported")},get returnType(){return I.fail("Not supported")},get nextType(){return I.fail("Not supported")}},Wc=qT(Qe,Qe,Qe),El={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:QVt,getGlobalIterableType:Y$,getGlobalIterableIteratorType:pet,getGlobalIteratorObjectType:YVt,getGlobalGeneratorType:ZVt,getGlobalBuiltinIteratorTypes:XVt,resolveIterationType:(r,c)=>GD(r,c,y.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:y.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:y.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:y.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Hl={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:eHt,getGlobalIterableType:sae,getGlobalIterableIteratorType:fet,getGlobalIteratorObjectType:rHt,getGlobalGeneratorType:nHt,getGlobalBuiltinIteratorTypes:tHt,resolveIterationType:(r,c)=>r,mustHaveANextMethodDiagnostic:y.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:y.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:y.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Fc,Gl=new Map,X_=new Map,Dp,Ld,Bf,$e,nr,Nn,za,Fs,Io,Jc,Kl,hl,yl,ru,Nu,Au,Y_,qf,Tg,gd,Qh,Jv,Bd,n_,xf,Xh,hd,zv,_e,xt,gr,yr,Qr,Tn,vi,Ki,Na,U,rt,Yt,Xr,Ya,aa,qa,ss,Uc,lo,Tu,Z_,vm,Zg,U0,Wv,x_,eh,Yh,Km,jx,yd,H1,Lx,G1=new Map,tt=0,ht=0,tr=0,Er=!1,hn=0,Gn,ln,Hn,_a=[],rs=[],Ii=[],Ia=0,Es=[],tp=[],qd=[],Jd=0,ed=c_(""),Ly=Dg(0),wg=nV({negative:!1,base10Value:"0"}),By=[],K1=[],qy=[],Q1=0,oT=!1,ow=0,u8=10,aD=[],AA=[],cw=[],IA=[],_C=[],sD=[],lw=[],FA=[],dC=[],oD=[],mC=[],Zh=[],X1=[],$0=[],Jy=[],cT=[],Bx=[],uw=[],pw=[],Y1=0,Jo=y4(),lT=y4(),p8=Wi(),qx,Uv,$v=new Map,bm=new Map,i_=new Map,S_=new Map,td=new Map,wu=new Map,Z1=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",z.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return ynr(),vn;function gC(r){return!ai(r)||!Ye(r.name)||!ai(r.expression)&&!Ye(r.expression)?!1:Ye(r.expression)?fi(r.expression)==="Symbol"&&sf(r.expression)===(r6("Symbol",1160127,void 0)||oe):Ye(r.expression.expression)?fi(r.expression.name)==="Symbol"&&fi(r.expression.expression)==="globalThis"&&sf(r.expression.expression)===nt:!1}function th(r){return r?ft.get(r):void 0}function Jx(r,c){return r&&ft.set(r,c),c}function yp(r){if(r){let c=rn(r);if(c)if(bg(r)){if(c.localJsxFragmentNamespace)return c.localJsxFragmentNamespace;let _=c.pragmas.get("jsxfrag");if(_){let v=cs(_)?_[0]:_;if(c.localJsxFragmentFactory=IE(v.arguments.factory,H),dt(c.localJsxFragmentFactory,T_,Of),c.localJsxFragmentFactory)return c.localJsxFragmentNamespace=Af(c.localJsxFragmentFactory).escapedText}let h=VEe(r);if(h)return c.localJsxFragmentFactory=h,c.localJsxFragmentNamespace=Af(h).escapedText}else{let _=Vv(c);if(_)return c.localJsxNamespace=_}}return qx||(qx="React",z.jsxFactory?(Uv=IE(z.jsxFactory,H),dt(Uv,T_),Uv&&(qx=Af(Uv).escapedText)):z.reactNamespace&&(qx=gl(z.reactNamespace))),Uv||(Uv=j.createQualifiedName(j.createIdentifier(ka(qx)),"createElement")),qx}function Vv(r){if(r.localJsxNamespace)return r.localJsxNamespace;let c=r.pragmas.get("jsx");if(c){let _=cs(c)?c[0]:c;if(r.localJsxFactory=IE(_.arguments.factory,H),dt(r.localJsxFactory,T_,Of),r.localJsxFactory)return r.localJsxNamespace=Af(r.localJsxFactory).escapedText}}function T_(r){return $g(r,-1,-1),Gr(r,T_,void 0)}function Hv(r,c,_){return _||_at(r,c),ge}function Gv(r,c,..._){let h=r?Mn(r,c,..._):ll(c,..._),v=Jo.lookup(h);return v||(Jo.add(h),h)}function zy(r,c,_,...h){let v=ot(c,_,...h);return v.skippedOn=r,v}function fw(r,c,..._){return r?Mn(r,c,..._):ll(c,..._)}function ot(r,c,..._){let h=fw(r,c,..._);return Jo.add(h),h}function eb(r,c){r?Jo.add(c):lT.add({...c,category:2})}function rh(r,c,_,...h){if(c.pos<0||c.end<0){if(!r)return;let v=rn(c);eb(r,"message"in _?Eu(v,0,0,_,...h):hQ(v,_));return}eb(r,"message"in _?Mn(c,_,...h):Cv(rn(c),c,_))}function tb(r,c,_,...h){let v=ot(r,_,...h);if(c){let T=Mn(r,y.Did_you_forget_to_use_await);Hs(v,T)}return v}function cD(r,c){let _=Array.isArray(r)?Ge(r,IK):IK(r);return _&&Hs(c,Mn(_,y.The_declaration_was_marked_as_deprecated_here)),lT.add(c),c}function rb(r){let c=w_(r);return c&&Re(r.declarations)>1?c.flags&64?Pt(r.declarations,V0):sn(r.declarations,V0):!!r.valueDeclaration&&V0(r.valueDeclaration)||Re(r.declarations)&&sn(r.declarations,V0)}function V0(r){return!!(Ww(r)&536870912)}function Wy(r,c,_){let h=Mn(r,y._0_is_deprecated,_);return cD(c,h)}function lD(r,c,_,h){let v=_?Mn(r,y.The_signature_0_of_1_is_deprecated,h,_):Mn(r,y._0_is_deprecated,h);return cD(c,v)}function fo(r,c,_){x++;let h=new l(r|33554432,c);return h.links=new iBe,h.links.checkFlags=_||0,h}function rp(r,c){let _=fo(1,r);return _.links.type=c,_}function Kv(r,c){let _=fo(4,r);return _.links.type=c,_}function Qv(r){let c=0;return r&2&&(c|=111551),r&1&&(c|=111550),r&4&&(c|=0),r&8&&(c|=900095),r&16&&(c|=110991),r&32&&(c|=899503),r&64&&(c|=788872),r&256&&(c|=899327),r&128&&(c|=899967),r&512&&(c|=110735),r&8192&&(c|=103359),r&32768&&(c|=46015),r&65536&&(c|=78783),r&262144&&(c|=526824),r&524288&&(c|=788968),r&2097152&&(c|=2097152),c}function zx(r,c){c.mergeId||(c.mergeId=rBe,rBe++),aD[c.mergeId]=r}function uT(r){let c=fo(r.flags,r.escapedName);return c.declarations=r.declarations?r.declarations.slice():[],c.parent=r.parent,r.valueDeclaration&&(c.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(c.constEnumOnlyModule=!0),r.members&&(c.members=new Map(r.members)),r.exports&&(c.exports=new Map(r.exports)),zx(c,r),c}function ey(r,c,_=!1){if(!(r.flags&Qv(c.flags))||(c.flags|r.flags)&67108864){if(c===r)return r;if(!(r.flags&33554432)){let T=Dl(r);if(T===oe)return c;if(!(T.flags&Qv(c.flags))||(c.flags|T.flags)&67108864)r=uT(T);else return h(r,c),c}c.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!c.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=c.flags,c.valueDeclaration&&_5(r,c.valueDeclaration),ti(r.declarations,c.declarations),c.members&&(r.members||(r.members=Qs()),ty(r.members,c.members,_)),c.exports&&(r.exports||(r.exports=Qs()),ty(r.exports,c.exports,_,r)),_||zx(r,c)}else r.flags&1024?r!==nt&&ot(c.declarations&&ls(c.declarations[0]),y.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ja(r)):h(r,c);return r;function h(T,D){let J=!!(T.flags&384||D.flags&384),V=!!(T.flags&2||D.flags&2),Q=J?y.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:V?y.Cannot_redeclare_block_scoped_variable_0:y.Duplicate_identifier_0,ue=D.declarations&&rn(D.declarations[0]),Fe=T.declarations&&rn(T.declarations[0]),De=e4(ue,z.checkJs),_t=e4(Fe,z.checkJs),Nt=ja(D);if(ue&&Fe&&Fc&&!J&&ue!==Fe){let zt=S0(ue.path,Fe.path)===-1?ue:Fe,Dr=zt===ue?Fe:ue,Tr=A_(Fc,`${zt.path}|${Dr.path}`,()=>({firstFile:zt,secondFile:Dr,conflictingSymbols:new Map})),En=A_(Tr.conflictingSymbols,Nt,()=>({isBlockScoped:V,firstFileLocations:[],secondFileLocations:[]}));De||v(En.firstFileLocations,D),_t||v(En.secondFileLocations,T)}else De||H0(D,Q,Nt,T),_t||H0(T,Q,Nt,D)}function v(T,D){if(D.declarations)for(let J of D.declarations)I_(T,J)}}function H0(r,c,_,h){Ge(r.declarations,v=>{hC(v,c,_,h.declarations)})}function hC(r,c,_,h){let v=(CS(r,!1)?kQ(r):ls(r))||r,T=Gv(v,c,_);for(let D of h||ce){let J=(CS(D,!1)?kQ(D):ls(D))||D;if(J===v)continue;T.relatedInformation=T.relatedInformation||[];let V=Mn(J,y._0_was_also_declared_here,_),Q=Mn(J,y.and_here);Re(T.relatedInformation)>=5||Pt(T.relatedInformation,ue=>E4(ue,Q)===0||E4(ue,V)===0)||Hs(T,Re(T.relatedInformation)?Q:V)}}function nb(r,c){if(!r?.size)return c;if(!c?.size)return r;let _=Qs();return ty(_,r),ty(_,c),_}function ty(r,c,_=!1,h){c.forEach((v,T)=>{let D=r.get(T),J=D?ey(D,v,_):Uo(v);h&&D&&(J.parent=h),r.set(T,J)})}function Uy(r){var c,_,h;let v=r.parent;if(((c=v.symbol.declarations)==null?void 0:c[0])!==v){I.assert(v.symbol.declarations.length>1);return}if(Oy(v))ty(Tt,v.symbol.exports);else{let T=r.parent.parent.flags&33554432?void 0:y.Invalid_module_name_in_augmentation_module_0_cannot_be_found,D=gT(r,r,T,!1,!0);if(!D)return;if(D=a_(D),D.flags&1920)if(Pt(Ld,J=>D===J.symbol)){let J=ey(v.symbol,D,!0);Bf||(Bf=new Map),Bf.set(r.text,J)}else{if((_=D.exports)!=null&&_.get("__export")&&((h=v.symbol.exports)!=null&&h.size)){let J=Eke(D,"resolvedExports");for(let[V,Q]of Ka(v.symbol.exports.entries()))J.has(V)&&!D.exports.has(V)&&ey(J.get(V),Q)}ey(D,v.symbol)}else ot(r,y.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function Wx(){let r=xe.escapedName,c=Tt.get(r);c?Ge(c.declarations,_=>{pE(_)||Jo.add(Mn(_,y.Declaration_name_conflicts_with_built_in_global_identifier_0,ka(r)))}):Tt.set(r,xe)}function Fa(r){if(r.flags&33554432)return r.links;let c=co(r);return AA[c]??(AA[c]=new iBe)}function Zn(r){let c=Wo(r);return cw[c]||(cw[c]=new i3t)}function Sf(r,c,_){if(_){let h=Uo(r.get(c));if(h&&(h.flags&_||h.flags&2097152&&rd(h)&_))return h}}function yC(r,c){let _=r.parent,h=r.parent.parent,v=Sf(_.locals,c,111551),T=Sf(Xy(h.symbol),c,111551);return v&&T?[v,T]:I.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function ry(r,c){let _=rn(r),h=rn(c),v=Jg(r);if(_!==h){if(X&&(_.externalModuleIndicator||h.externalModuleIndicator)||!z.outFile||eE(c)||r.flags&33554432||D(c,r))return!0;let V=e.getSourceFiles();return V.indexOf(_)<=V.indexOf(h)}if(c.flags&16777216||eE(c)||nPe(c))return!0;if(r.pos<=c.pos&&!(is(r)&&e5(c.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===208){let V=DS(c,208);return V?Br(V,Do)!==Br(r,Do)||r.pos<V.pos:ry(DS(r,260),c)}else{if(r.kind===260)return!T(r,c);if(Ri(r)){let V=Br(c,Q=>Q===r?"quit":po(Q)?Q.parent.parent===r:!ne&&qu(Q)&&(Q.parent===r||wl(Q.parent)&&Q.parent.parent===r||DF(Q.parent)&&Q.parent.parent===r||is(Q.parent)&&Q.parent.parent===r||Da(Q.parent)&&Q.parent.parent.parent===r));return V?!ne&&qu(V)?!!Br(c,Q=>Q===V?"quit":Ss(Q)&&!v2(Q)):!1:!0}else{if(is(r))return!J(r,c,!1);if(L_(r,r.parent))return!(Y&&dp(r)===dp(c)&&D(c,r))}}return!0}if(c.parent.kind===281||c.parent.kind===277&&c.parent.isExportEquals||c.kind===277&&c.isExportEquals)return!0;if(D(c,r))return Y&&dp(r)&&(is(r)||L_(r,r.parent))?!J(r,c,!0):!0;return!1;function T(V,Q){switch(V.parent.parent.kind){case 243:case 248:case 250:if(kg(Q,V,v))return!0;break}let ue=V.parent.parent;return bk(ue)&&kg(Q,ue.expression,v)}function D(V,Q){return!!Br(V,ue=>{if(ue===v)return"quit";if(Ss(ue))return!0;if(Al(ue))return Q.pos<V.pos;let Fe=_i(ue.parent,is);if(Fe&&Fe.initializer===ue){if(Vs(ue.parent)){if(Q.kind===174)return!0;if(is(Q)&&dp(V)===dp(Q)){let _t=Q.name;if(Ye(_t)||Ca(_t)){let Nt=An(ei(Q)),zt=Cn(Q.parent.members,Al);if(rrr(_t,Nt,zt,Q.parent.pos,ue.pos))return!0}}}else if(!(Q.kind===172&&!Vs(Q))||dp(V)!==dp(Q))return!0}return!1})}function J(V,Q,ue){return Q.end>V.end?!1:Br(Q,De=>{if(De===V)return"quit";switch(De.kind){case 219:return!0;case 172:return ue&&(is(V)&&De.parent===V.parent||L_(V,V.parent)&&De.parent===V.parent.parent)?"quit":!0;case 241:switch(De.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function Ac(r){return Zn(r).declarationRequiresScopeChange}function pT(r,c){Zn(r).declarationRequiresScopeChange=c}function fT(r,c,_,h){return Y?!1:(r&&!h&&MA(r,c,c)||ot(r,r&&_.type&&SF(_.type,r.pos)?y.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:y.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Oc(_.name),nh(c)),!0)}function vC(r,c,_,h){let v=Ua(c)?c:c.escapedText;n(()=>{if(!r||r.parent.kind!==324&&!MA(r,v,c)&&!Kn(r)&&!ms(r,v,_)&&!_T(r,v)&&!Tf(r,v,_)&&!zn(r,v,_)&&!ib(r,v,_)){let T,D;if(c&&(D=tYt(c),D&&ot(r,h,nh(c),D)),!D&&ow<u8&&(T=pnt(r,v,_),T?.valueDeclaration&&df(T.valueDeclaration)&&Oy(T.valueDeclaration)&&(T=void 0),T)){let V=ja(T),Q=LPe(r,T,!1),ue=_===1920||c&&typeof c!="string"&&Pc(c)?y.Cannot_find_namespace_0_Did_you_mean_1:Q?y.Could_not_find_name_0_Did_you_mean_1:y.Cannot_find_name_0_Did_you_mean_1,Fe=fw(r,ue,nh(c),V);Fe.canonicalHead=ame(h,nh(c)),eb(!Q,Fe),T.valueDeclaration&&Hs(Fe,Mn(T.valueDeclaration,y._0_is_declared_here,V))}!T&&!D&&c&&ot(r,h,nh(c)),ow++}})}function uD(r,c,_,h,v,T){n(()=>{var D;let J=c.escapedName,V=h&&ba(h)&&q_(h);if(r&&(_&2||(_&32||_&384)&&(_&111551)===111551)){let Q=k_(c);(Q.flags&2||Q.flags&32||Q.flags&384)&&$y(Q,r)}if(V&&(_&111551)===111551&&!(r.flags&16777216)){let Q=Uo(c);Re(Q.declarations)&&sn(Q.declarations,ue=>pM(ue)||ba(ue)&&!!ue.symbol.globalExports)&&rh(!z.allowUmdGlobalAccess,r,y._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,ka(J))}if(v&&!T&&(_&111551)===111551){let Q=Uo($ie(c)),ue=Nh(v);Q===ei(v)?ot(r,y.Parameter_0_cannot_reference_itself,Oc(v.name)):Q.valueDeclaration&&Q.valueDeclaration.pos>v.pos&&ue.parent.locals&&Sf(ue.parent.locals,Q.escapedName,_)===Q&&ot(r,y.Parameter_0_cannot_reference_identifier_1_declared_after_it,Oc(v.name),Oc(r))}if(r&&_&111551&&c.flags&2097152&&!(c.flags&111551)&&!AS(r)){let Q=ah(c,111551);if(Q){let ue=Q.kind===281||Q.kind===278||Q.kind===280?y._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:y._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Fe=ka(J);Ux(ot(r,ue,Fe),Q,Fe)}}if(z.isolatedModules&&c&&V&&(_&111551)===111551){let ue=Sf(Tt,J,_)===c&&ba(h)&&h.locals&&Sf(h.locals,J,-111552);if(ue){let Fe=(D=ue.declarations)==null?void 0:D.find(De=>De.kind===276||De.kind===273||De.kind===274||De.kind===271);Fe&&!KO(Fe)&&ot(Fe,y.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ka(J))}}})}function Ux(r,c,_){return c?Hs(r,Mn(c,c.kind===281||c.kind===278||c.kind===280?y._0_was_exported_here:y._0_was_imported_here,_)):r}function nh(r){return Ua(r)?ka(r):Oc(r)}function MA(r,c,_){if(!Ye(r)||r.escapedText!==c||dat(r)||eE(r))return!1;let h=mf(r,!1,!1),v=h;for(;v;){if(Ri(v.parent)){let T=ei(v.parent);if(!T)break;let D=An(T);if(io(D,c))return ot(r,y.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,nh(_),ja(T)),!0;if(v===h&&!Vs(v)){let J=zc(T).thisType;if(io(J,c))return ot(r,y.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,nh(_)),!0}}v=v.parent}return!1}function Kn(r){let c=af(r);return c&&Ol(c,64,!0)?(ot(r,y.Cannot_extend_an_interface_0_Did_you_mean_implements,cl(c)),!0):!1}function af(r){switch(r.kind){case 80:case 211:return r.parent?af(r.parent):void 0;case 233:if(Tc(r.expression))return r.expression;default:return}}function ms(r,c,_){let h=1920|(jn(r)?111551:0);if(_===h){let v=Dl(Ct(r,c,788968&~h,void 0,!1)),T=r.parent;if(v){if(If(T)){I.assert(T.left===r,"Should only be resolving left side of qualified name as a namespace");let D=T.right.escapedText;if(io(zc(v),D))return ot(T,y.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ka(c),ka(D)),!0}return ot(r,y._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,ka(c)),!0}}return!1}function ib(r,c,_){if(_&788584){let h=Dl(Ct(r,c,111127,void 0,!1));if(h&&!(h.flags&1920))return ot(r,y._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,ka(c)),!0}return!1}function bC(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function _T(r,c){return bC(c)&&r.parent.kind===281?(ot(r,y.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,c),!0):!1}function zn(r,c,_){if(_&111551){if(bC(c)){let T=r.parent.parent;if(T&&T.parent&&U_(T)){let D=T.token;T.parent.kind===264&&D===96?ot(r,y.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,ka(c)):Ri(T.parent)&&D===96?ot(r,y.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,ka(c)):Ri(T.parent)&&D===119&&ot(r,y.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,ka(c))}else ot(r,y._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,ka(c));return!0}let h=Dl(Ct(r,c,788544,void 0,!1)),v=h&&rd(h);if(h&&v!==void 0&&!(v&111551)){let T=ka(c);return pD(c)?ot(r,y._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,T):RA(r,h)?ot(r,y._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,T,T==="K"?"P":"K"):ot(r,y._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,T),!0}}return!1}function RA(r,c){let _=Br(r.parent,h=>po(h)||vf(h)?!1:Ff(h)||"quit");if(_&&_.members.length===1){let h=zc(c);return!!(h.flags&1048576)&&aL(h,384,!0)}return!1}function pD(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Tf(r,c,_){if(_&111127){if(Dl(Ct(r,c,1024,void 0,!1)))return ot(r,y.Cannot_use_namespace_0_as_a_value,ka(c)),!0}else if(_&788544&&Dl(Ct(r,c,1536,void 0,!1)))return ot(r,y.Cannot_use_namespace_0_as_a_type,ka(c)),!0;return!1}function $y(r,c){var _;if(I.assert(!!(r.flags&2||r.flags&32||r.flags&384)),r.flags&67108881&&r.flags&32)return;let h=(_=r.declarations)==null?void 0:_.find(v=>oQ(v)||Ri(v)||v.kind===266);if(h===void 0)return I.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(h.flags&33554432)&&!ry(h,c)){let v,T=Oc(ls(h));r.flags&2?v=ot(c,y.Block_scoped_variable_0_used_before_its_declaration,T):r.flags&32?v=ot(c,y.Class_0_used_before_its_declaration,T):r.flags&256?v=ot(c,y.Enum_0_used_before_its_declaration,T):(I.assert(!!(r.flags&128)),zm(z)&&(v=ot(c,y.Enum_0_used_before_its_declaration,T))),v&&Hs(v,Mn(h,y._0_is_declared_here,T))}}function kg(r,c,_){return!!c&&!!Br(r,h=>h===c||(h===_||Ss(h)&&(!v2(h)||eu(h)&3)?"quit":!1))}function ab(r){switch(r.kind){case 271:return r;case 273:return r.parent;case 274:return r.parent.parent;case 276:return r.parent.parent.parent;default:return}}function zd(r){return r.declarations&&Ks(r.declarations,Xv)}function Xv(r){return r.kind===271||r.kind===270||r.kind===273&&!!r.name||r.kind===274||r.kind===280||r.kind===276||r.kind===281||r.kind===277&&x5(r)||Vn(r)&&$l(r)===2&&x5(r)||Lc(r)&&Vn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&vd(r.parent.right)||r.kind===304||r.kind===303&&vd(r.initializer)||r.kind===260&&b2(r)||r.kind===208&&b2(r.parent.parent)}function vd(r){return iJ(r)||Ic(r)&&gy(r)}function ih(r,c){let _=mw(r);if(_){let v=xN(_.expression).arguments[0];return Ye(_.name)?Dl(io(qZe(v),_.name.escapedText)):void 0}if(Ui(r)||r.moduleReference.kind===283){let v=wf(r,wQ(r)||o4(r)),T=a_(v);return Xm(r,v,T,!1),T}let h=kC(r.moduleReference,c);return Qm(r,h),h}function Qm(r,c){if(Xm(r,void 0,c,!1)&&!r.isTypeOnly){let _=ah(ei(r)),h=_.kind===281||_.kind===278,v=h?y.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:y.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,T=h?y._0_was_exported_here:y._0_was_imported_here,D=_.kind===278?"*":fx(_.name);Hs(ot(r.moduleReference,v),Mn(_,T,D))}}function Vy(r,c,_,h){let v=r.exports.get("export="),T=v?io(An(v),c,!0):r.exports.get(c),D=Dl(T,h);return Xm(_,T,D,!1),D}function _w(r){return Gc(r)&&!r.isExportEquals||Ai(r,2048)||Yp(r)||Fy(r)}function sb(r){return Ho(r)?e.getEmitSyntaxForUsageLocation(rn(r),r):void 0}function fD(r,c){return r===99&&c===1}function Yv(r,c){if(100<=X&&X<=199&&sb(r)===99){c??(c=wf(r,r,!0));let h=c&&JF(c);return h&&(cm(h)||Rz(h.fileName)===".d.json.ts")}return!1}function xC(r,c,_,h){let v=r&&sb(h);if(r&&v!==void 0){let T=e.getImpliedNodeFormatForEmit(r);if(v===99&&T===1&&100<=X&&X<=199)return!0;if(v===99&&T===99)return!1}if(!Ee)return!1;if(!r||r.isDeclarationFile){let T=Vy(c,"default",void 0,!0);return!(T&&Pt(T.declarations,_w)||Vy(c,gl("__esModule"),void 0,_))}return Nf(r)?typeof r.externalModuleIndicator!="object"&&!Vy(c,gl("__esModule"),void 0,_):hT(c)}function _D(r,c){let _=wf(r,r.parent.moduleSpecifier);if(_)return $x(_,r,c)}function $x(r,c,_){var h;let v;UF(r)?v=r:v=Vy(r,"default",c,_);let T=(h=r.declarations)==null?void 0:h.find(ba),D=Cg(c);if(!D)return v;let J=Yv(D,r),V=xC(T,r,_,D);if(!v&&!V&&!J)if(hT(r)&&!Ee){let Q=X>=5?"allowSyntheticDefaultImports":"esModuleInterop",Fe=r.exports.get("export=").valueDeclaration,De=ot(c.name,y.Module_0_can_only_be_default_imported_using_the_1_flag,ja(r),Q);Fe&&Hs(De,Mn(Fe,y.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Q))}else vg(c)?dD(r,c):cb(r,r,c,ax(c)&&c.propertyName||c.name);else if(V||J){let Q=a_(r,_)||Dl(r,_);return Xm(c,r,Q,!1),Q}return Xm(c,v,void 0,!1),v}function Cg(r){switch(r.kind){case 273:return r.parent.moduleSpecifier;case 271:return M0(r.moduleReference)?r.moduleReference.expression:void 0;case 274:return r.parent.parent.moduleSpecifier;case 276:return r.parent.parent.parent.moduleSpecifier;case 281:return r.parent.parent.moduleSpecifier;default:return I.assertNever(r)}}function dD(r,c){var _,h,v;if((_=r.exports)!=null&&_.has(c.symbol.escapedName))ot(c.name,y.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ja(r),ja(c.symbol));else{let T=ot(c.name,y.Module_0_has_no_default_export,ja(r)),D=(h=r.exports)==null?void 0:h.get("__export");if(D){let J=(v=D.declarations)==null?void 0:v.find(V=>{var Q,ue;return!!(tu(V)&&V.moduleSpecifier&&((ue=(Q=wf(V,V.moduleSpecifier))==null?void 0:Q.exports)!=null&&ue.has("default")))});J&&Hs(T,Mn(J,y.export_Asterisk_does_not_re_export_a_default))}}}function SC(r,c){let _=r.parent.parent.moduleSpecifier,h=wf(r,_),v=lb(h,_,c,!1);return Xm(r,h,v,!1),v}function ob(r,c){let _=r.parent.moduleSpecifier,h=_&&wf(r,_),v=_&&lb(h,_,c,!1);return Xm(r,h,v,!1),v}function dw(r,c){if(r===oe&&c===oe)return oe;if(r.flags&790504)return r;let _=fo(r.flags|c.flags,r.escapedName);return I.assert(r.declarations||c.declarations),_.declarations=zb(ya(r.declarations,c.declarations),pv),_.parent=r.parent||c.parent,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),c.members&&(_.members=new Map(c.members)),r.exports&&(_.exports=new Map(r.exports)),_}function ny(r,c,_,h){var v;if(r.flags&1536){let T=nd(r).get(c),D=Dl(T,h),J=(v=Fa(r).typeOnlyExportStarMap)==null?void 0:v.get(c);return Xm(_,T,D,!1,J,c),D}}function G0(r,c){if(r.flags&3){let _=r.valueDeclaration.type;if(_)return Dl(io(Sa(_),c))}}function iy(r,c,_=!1){var h;let v=wQ(r)||r.moduleSpecifier,T=wf(r,v),D=!ai(c)&&c.propertyName||c.name;if(!Ye(D)&&D.kind!==11)return;let J=g2(D),Q=lb(T,v,!1,J==="default"&&Ee);if(Q&&(J||D.kind===11)){if(UF(T))return T;let ue;T&&T.exports&&T.exports.get("export=")?ue=io(An(Q),J,!0):ue=G0(Q,J),ue=Dl(ue,_);let Fe=ny(Q,J,c,_);if(Fe===void 0&&J==="default"){let _t=(h=T.declarations)==null?void 0:h.find(ba);(Yv(v,T)||xC(_t,T,_,v))&&(Fe=a_(T,_)||Dl(T,_))}let De=Fe&&ue&&Fe!==ue?dw(ue,Fe):Fe||ue;return ax(c)&&Yv(v,T)&&J!=="default"?ot(D,y.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,mn[X]):De||cb(T,Q,r,D),De}}function cb(r,c,_,h){var v;let T=K0(r,_),D=Oc(h),J=Ye(h)?JPe(h,c):void 0;if(J!==void 0){let V=ja(J),Q=ot(h,y._0_has_no_exported_member_named_1_Did_you_mean_2,T,D,V);J.valueDeclaration&&Hs(Q,Mn(J.valueDeclaration,y._0_is_declared_here,V))}else(v=r.exports)!=null&&v.has("default")?ot(h,y.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,T,D):np(_,h,D,r,T)}function np(r,c,_,h,v){var T,D;let J=(D=(T=_i(h.valueDeclaration,Py))==null?void 0:T.locals)==null?void 0:D.get(g2(c)),V=h.exports;if(J){let Q=V?.get("export=");if(Q)Ud(Q,J)?TC(r,c,_,v):ot(c,y.Module_0_has_no_exported_member_1,v,_);else{let ue=V?Ir(zke(V),De=>!!Ud(De,J)):void 0,Fe=ue?ot(c,y.Module_0_declares_1_locally_but_it_is_exported_as_2,v,_,ja(ue)):ot(c,y.Module_0_declares_1_locally_but_it_is_not_exported,v,_);J.declarations&&Hs(Fe,...Dt(J.declarations,(De,_t)=>Mn(De,_t===0?y._0_is_declared_here:y.and_here,_)))}}else ot(c,y.Module_0_has_no_exported_member_1,v,_)}function TC(r,c,_,h){if(X>=5){let v=Av(z)?y._0_can_only_be_imported_by_using_a_default_import:y._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ot(c,v,_)}else if(jn(r)){let v=Av(z)?y._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:y._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ot(c,v,_)}else{let v=Av(z)?y._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:y._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;ot(c,v,_,_,h)}}function Zv(r,c){if(bf(r)&&Dy(r.propertyName||r.name)){let D=Cg(r),J=D&&wf(r,D);if(J)return $x(J,r,c)}let _=Do(r)?Nh(r):r.parent.parent.parent,h=mw(_),v=iy(_,h||r,c),T=r.propertyName||r.name;return h&&v&&Ye(T)?Dl(io(An(v),T.escapedText),c):(Xm(r,void 0,v,!1),v)}function mw(r){if(Ui(r)&&r.initializer&&ai(r.initializer))return r.initializer}function mD(r,c){if(qg(r.parent)){let _=a_(r.parent.symbol,c);return Xm(r,void 0,_,!1),_}}function Hy(r,c,_){let h=r.propertyName||r.name;if(Dy(h)){let T=Cg(r),D=T&&wf(r,T);if(D)return $x(D,r,!!_)}let v=r.parent.parent.moduleSpecifier?iy(r.parent.parent,r,_):h.kind===11?void 0:Ol(h,c,!1,_);return Xm(r,void 0,v,!1),v}function jA(r,c){let _=Gc(r)?r.expression:r.right,h=gw(_,c);return Xm(r,void 0,h,!1),h}function gw(r,c){if(vu(r))return Nl(r).symbol;if(!Of(r)&&!Tc(r))return;let _=Ol(r,901119,!0,c);return _||(Nl(r),Zn(r).resolvedSymbol)}function LA(r,c){if(Vn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return gw(r.parent.right,c)}function dT(r,c=!1){switch(r.kind){case 271:case 260:return ih(r,c);case 273:return _D(r,c);case 274:return SC(r,c);case 280:return ob(r,c);case 276:case 208:return Zv(r,c);case 281:return Hy(r,901119,c);case 277:case 226:return jA(r,c);case 270:return mD(r,c);case 304:return Ol(r.name,901119,!0,c);case 303:return gw(r.initializer,c);case 212:case 211:return LA(r,c);default:return I.fail()}}function wC(r,c=901119){return r?(r.flags&(2097152|c))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function Dl(r,c){return!c&&wC(r)?pu(r):r}function pu(r){I.assert((r.flags&2097152)!==0,"Should only get Alias here.");let c=Fa(r);if(c.aliasTarget)c.aliasTarget===Ue&&(c.aliasTarget=oe);else{c.aliasTarget=Ue;let _=zd(r);if(!_)return I.fail();let h=dT(_);c.aliasTarget===Ue?c.aliasTarget=h||oe:ot(_,y.Circular_definition_of_import_alias_0,ja(r))}return c.aliasTarget}function BA(r){if(Fa(r).aliasTarget!==Ue)return pu(r)}function rd(r,c,_){let h=c&&ah(r),v=h&&tu(h),T=h&&(v?wf(h.moduleSpecifier,h.moduleSpecifier,!0):pu(h.symbol)),D=v&&T?e0(T):void 0,J=_?0:r.flags,V;for(;r.flags&2097152;){let Q=k_(pu(r));if(!v&&Q===T||D?.get(Q.escapedName)===Q)break;if(Q===oe)return-1;if(Q===r||V?.has(Q))break;Q.flags&2097152&&(V?V.add(Q):V=new Set([r,Q])),J|=Q.flags,r=Q}return J}function Xm(r,c,_,h,v,T){if(!r||ai(r))return!1;let D=ei(r);if(w1(r)){let V=Fa(D);return V.typeOnlyDeclaration=r,!0}if(v){let V=Fa(D);return V.typeOnlyDeclaration=v,D.escapedName!==T&&(V.typeOnlyExportStarName=T),!0}let J=Fa(D);return gD(J,c,h)||gD(J,_,h)}function gD(r,c,_){var h;if(c&&(r.typeOnlyDeclaration===void 0||_&&r.typeOnlyDeclaration===!1)){let v=((h=c.exports)==null?void 0:h.get("export="))??c,T=v.declarations&&Ir(v.declarations,w1);r.typeOnlyDeclaration=T??Fa(v).typeOnlyDeclaration??!1}return!!r.typeOnlyDeclaration}function ah(r,c){var _;if(!(r.flags&2097152))return;let h=Fa(r);if(h.typeOnlyDeclaration===void 0){h.typeOnlyDeclaration=!1;let v=Dl(r);Xm((_=r.declarations)==null?void 0:_[0],zd(r)&&Xae(r),v,!0)}if(c===void 0)return h.typeOnlyDeclaration||void 0;if(h.typeOnlyDeclaration){let v=h.typeOnlyDeclaration.kind===278?Dl(e0(h.typeOnlyDeclaration.symbol.parent).get(h.typeOnlyExportStarName||r.escapedName)):pu(h.typeOnlyDeclaration.symbol);return rd(v)&c?h.typeOnlyDeclaration:void 0}}function kC(r,c){return r.kind===80&&S4(r)&&(r=r.parent),r.kind===80||r.parent.kind===166?Ol(r,1920,!1,c):(I.assert(r.parent.kind===271),Ol(r,901119,!1,c))}function K0(r,c){return r.parent?K0(r.parent,c)+"."+ja(r):ja(r,c,void 0,36)}function qA(r){for(;If(r.parent);)r=r.parent;return r}function CC(r){let c=Af(r),_=Ct(c,c,111551,void 0,!0);if(_){for(;If(c.parent);){let h=An(_);if(_=io(h,c.parent.right.escapedText),!_)return;c=c.parent}return _}}function Ol(r,c,_,h,v){if(Sl(r))return;let T=1920|(jn(r)?c&111551:0),D;if(r.kind===80){let J=c===T||Pc(r)?y.Cannot_find_namespace_0:qtt(Af(r)),V=jn(r)&&!Pc(r)?mT(r,c):void 0;if(D=Uo(Ct(v||r,r,c,_||V?void 0:J,!0,!1)),!D)return Uo(V)}else if(r.kind===166||r.kind===211){let J=r.kind===166?r.left:r.expression,V=r.kind===166?r.right:r.name,Q=Ol(J,T,_,!1,v);if(!Q||Sl(V))return;if(Q===oe)return Q;if(Q.valueDeclaration&&jn(Q.valueDeclaration)&&Xp(z)!==100&&Ui(Q.valueDeclaration)&&Q.valueDeclaration.initializer&&Rnt(Q.valueDeclaration.initializer)){let ue=Q.valueDeclaration.initializer.arguments[0],Fe=wf(ue,ue);if(Fe){let De=a_(Fe);De&&(Q=De)}}if(D=Uo(Sf(nd(Q),V.escapedText,c)),!D&&Q.flags&2097152&&(D=Uo(Sf(nd(pu(Q)),V.escapedText,c))),!D){if(!_){let ue=K0(Q),Fe=Oc(V),De=JPe(V,Q);if(De){ot(V,y._0_has_no_exported_member_named_1_Did_you_mean_2,ue,Fe,ja(De));return}let _t=If(r)&&qA(r);if($e&&c&788968&&_t&&!NN(_t.parent)&&CC(_t)){ot(_t,y._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,B_(_t));return}if(c&1920&&If(r.parent)){let zt=Uo(Sf(nd(Q),V.escapedText,788968));if(zt){ot(r.parent.right,y.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ja(zt),ka(r.parent.right.escapedText));return}}ot(V,y.Namespace_0_has_no_exported_member_1,ue,Fe)}return}}else I.assertNever(r,"Unknown entity name kind.");return!Pc(r)&&Of(r)&&(D.flags&2097152||r.parent.kind===277)&&Xm(FQ(r),D,void 0,!0),D.flags&c||h?D:pu(D)}function mT(r,c){if(nae(r.parent)){let _=JA(r.parent);if(_)return Ct(_,r,c,void 0,!0)}}function JA(r){if(Br(r,v=>YO(v)||v.flags&16777216?Bm(v):"quit"))return;let _=S2(r);if(_&&Zu(_)&&f5(_.expression)){let v=ei(_.expression.left);if(v)return hw(v)}if(_&&Ic(_)&&f5(_.parent)&&Zu(_.parent.parent)){let v=ei(_.parent.left);if(v)return hw(v)}if(_&&(Lm(_)||xu(_))&&Vn(_.parent.parent)&&$l(_.parent.parent)===6){let v=ei(_.parent.parent.left);if(v)return hw(v)}let h=ES(r);if(h&&Ss(h)){let v=ei(h);return v&&v.valueDeclaration}}function hw(r){let c=r.parent.valueDeclaration;return c?(c4(c)?HP(c):xk(c)?l4(c):void 0)||c:void 0}function f8(r){let c=r.valueDeclaration;if(!c||!jn(c)||r.flags&524288||CS(c,!1))return;let _=Ui(c)?l4(c):HP(c);if(_){let h=bd(_);if(h)return XPe(h,r)}}function wf(r,c,_){let v=Xp(z)===1?y.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:y.Cannot_find_module_0_or_its_corresponding_type_declarations;return gT(r,c,_?void 0:v,_)}function gT(r,c,_,h=!1,v=!1){return Ho(c)?yw(r,c.text,_,h?void 0:c,v):void 0}function yw(r,c,_,h,v=!1){var T,D,J,V,Q,ue,Fe,De,_t,Nt,zt;if(h&&La(c,"@types/")){let ri=y.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,os=kP(c,"@types/");ot(h,ri,os,c)}let Dr=BZe(c,!0);if(Dr)return Dr;let Tr=rn(r),En=Ho(r)?r:((T=cu(r)?r:r.parent&&cu(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:T.name)||((D=C0(r)?r:void 0)==null?void 0:D.argument.literal)||(Ui(r)&&r.initializer&&Xf(r.initializer,!0)?r.initializer.arguments[0]:void 0)||((J=Br(r,_d))==null?void 0:J.arguments[0])||((V=Br(r,Df(sl,zh,tu)))==null?void 0:V.moduleSpecifier)||((Q=Br(r,kS))==null?void 0:Q.moduleReference.expression),xn=En&&Ho(En)?e.getModeForUsageLocation(Tr,En):e.getDefaultResolutionModeForFile(Tr),Fr=Xp(z),kr=(ue=e.getResolvedModule(Tr,c,xn))==null?void 0:ue.resolvedModule,Un=h&&kr&&vee(z,kr,Tr),ki=kr&&(!Un||Un===y.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(kr.resolvedFileName);if(ki){if(Un&&ot(h,Un,c,kr.resolvedFileName),kr.resolvedUsingTsExtension&&Wu(c)){let ri=((Fe=Br(r,sl))==null?void 0:Fe.importClause)||Br(r,Df(zu,tu));(h&&ri&&!ri.isTypeOnly||Br(r,_d))&&ot(h,y.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Pa(I.checkDefined(TJ(c))))}else if(kr.resolvedUsingTsExtension&&!YN(z,Tr.fileName)){let ri=((De=Br(r,sl))==null?void 0:De.importClause)||Br(r,Df(zu,tu));if(h&&!(ri?.isTypeOnly||Br(r,jh))){let os=I.checkDefined(TJ(c));ot(h,y.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,os)}}else if(z.rewriteRelativeImportExtensions&&!(r.flags&33554432)&&!Wu(c)&&!C0(r)&&!yde(r)){let ri=m5(c,z);if(!kr.resolvedUsingTsExtension&&ri)ot(h,y.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,WO(Qa(Tr.fileName,e.getCurrentDirectory()),kr.resolvedFileName,D0(e)));else if(kr.resolvedUsingTsExtension&&!ri&&k2(ki,e))ot(h,y.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,NP(c));else if(kr.resolvedUsingTsExtension&&ri){let os=e.getResolvedProjectReferenceToRedirect(ki.path);if(os){let Ms=!e.useCaseSensitiveFileNames(),pc=e.getCommonSourceDirectory(),bs=rC(os.commandLine,Ms),of=Pd(pc,bs,Ms),op=Pd(z.outDir||pc,os.commandLine.options.outDir||bs,Ms);of!==op&&ot(h,y.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(ki.symbol){if(h&&kr.isExternalLibraryImport&&!A4(kr.extension)&&PC(!1,h,Tr,xn,kr,c),h&&(X===100||X===101)){let ri=Tr.impliedNodeFormat===1&&!Br(r,_d)||!!Br(r,zu),os=Br(r,Ms=>jh(Ms)||tu(Ms)||sl(Ms)||zh(Ms));if(ri&&ki.impliedNodeFormat===99&&!Kge(os))if(Br(r,zu))ot(h,y.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,c);else{let Ms,pc=Fv(Tr.fileName);(pc===".ts"||pc===".js"||pc===".tsx"||pc===".jsx")&&(Ms=tQ(Tr));let bs=os?.kind===272&&((_t=os.importClause)!=null&&_t.isTypeOnly)?y.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:os?.kind===205?y.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:y.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;Jo.add(Cv(rn(h),h,vs(Ms,bs,c)))}}return Uo(ki.symbol)}h&&_&&!HX(h)&&ot(h,y.File_0_is_not_a_module,ki.fileName);return}if(Ld){let ri=s2(Ld,os=>os.pattern,c);if(ri){let os=Bf&&Bf.get(c);return Uo(os||ri.symbol)}}if(!h)return;if(kr&&!A4(kr.extension)&&Un===void 0||Un===y.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(v){let ri=y.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;ot(h,ri,c,kr.resolvedFileName)}else PC(Pe&&!!_,h,Tr,xn,kr,c);return}if(_){if(kr){let ri=e.getProjectReferenceRedirect(kr.resolvedFileName);if(ri){ot(h,y.Output_file_0_has_not_been_built_from_source_file_1,ri,kr.resolvedFileName);return}}if(Un)ot(h,Un,c,kr.resolvedFileName);else{let ri=pd(c)&&!zO(c),os=Fr===3||Fr===99;if(!O2(z)&&il(c,".json")&&Fr!==1&&FJ(z))ot(h,y.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,c);else if(xn===99&&os&&ri){let Ms=Qa(c,Ei(Tr.path)),pc=(Nt=Z1.find(([bs,of])=>e.fileExists(Ms+bs)))==null?void 0:Nt[1];pc?ot(h,y.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,c+pc):ot(h,y.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((zt=e.getResolvedModule(Tr,c,xn))!=null&&zt.alternateResult){let Ms=Dq(Tr,e,c,xn,c);rh(!0,h,vs(Ms,_,c))}else ot(h,_,c)}}return;function Pa(ri){let os=H5(c,ri);if(z5(X)||xn===99){let Ms=Wu(c)&&YN(z);return os+(ri===".mts"||ri===".d.mts"?Ms?".mts":".mjs":ri===".cts"||ri===".d.mts"?Ms?".cts":".cjs":Ms?".ts":".js")}return os}}function PC(r,c,_,h,{packageId:v,resolvedFileName:T},D){if(HX(c))return;let J;!Hu(D)&&v&&(J=Dq(_,e,D,h,v.name)),rh(r,c,vs(J,y.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,D,T))}function a_(r,c){if(r?.exports){let _=Dl(r.exports.get("export="),c),h=Ym(Uo(_),Uo(r));return Uo(h)||r}}function Ym(r,c){if(!r||r===oe||r===c||c.exports.size===1||r.flags&2097152)return r;let _=Fa(r);if(_.cjsExportMerged)return _.cjsExportMerged;let h=r.flags&33554432?r:uT(r);return h.flags=h.flags|512,h.exports===void 0&&(h.exports=Qs()),c.exports.forEach((v,T)=>{T!=="export="&&h.exports.set(T,h.exports.has(T)?ey(h.exports.get(T),v):v)}),h===r&&(Fa(h).resolvedExports=void 0,Fa(h).resolvedMembers=void 0),Fa(h).cjsExportMerged=h,_.cjsExportMerged=h}function lb(r,c,_,h){var v;let T=a_(r,_);if(!_&&T){if(!h&&!(T.flags&1539)&&!Zc(T,307)){let J=X>=5?"allowSyntheticDefaultImports":"esModuleInterop";return ot(c,y.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,J),T}let D=c.parent;if(sl(D)&&uN(D)||_d(D)){let J=_d(D)?D.arguments[0]:D.moduleSpecifier,V=An(T),Q=Fnt(V,T,r,J);if(Q)return hD(T,Q,D);let ue=(v=r?.declarations)==null?void 0:v.find(ba),Fe=ue&&fD(sb(J),e.getImpliedNodeFormatForEmit(ue));if(Av(z)||Fe){let De=G$(V,0);if((!De||!De.length)&&(De=G$(V,1)),De&&De.length||io(V,"default",!0)||Fe){let _t=V.flags&3670016?Mnt(V,T,r,J):YPe(T,T.parent);return hD(T,_t,D)}}}}return T}function hD(r,c,_){let h=fo(r.flags,r.escapedName);h.declarations=r.declarations?r.declarations.slice():[],h.parent=r.parent,h.links.target=r,h.links.originatingImport=_,r.valueDeclaration&&(h.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(h.constEnumOnlyModule=!0),r.members&&(h.members=new Map(r.members)),r.exports&&(h.exports=new Map(r.exports));let v=ph(c);return h.links.type=rl(h,v.members,ce,ce,v.indexInfos),h}function hT(r){return r.exports.get("export=")!==void 0}function yT(r){return zke(e0(r))}function yD(r){let c=yT(r),_=a_(r);if(_!==r){let h=An(_);Gy(h)&&ti(c,oc(h))}return c}function vT(r,c){e0(r).forEach((v,T)=>{Ha(T)||c(v,T)});let h=a_(r);if(h!==r){let v=An(h);Gy(v)&&_Vt(v,(T,D)=>{c(T,D)})}}function vD(r,c){let _=e0(c);if(_)return _.get(r)}function vw(r,c){let _=vD(r,c);if(_)return _;let h=a_(c);if(h===c)return;let v=An(h);return Gy(v)?io(v,r):void 0}function Gy(r){return!(r.flags&402784252||oi(r)&1||km(r)||Oo(r))}function nd(r){return r.flags&6256?Eke(r,"resolvedExports"):r.flags&1536?e0(r):r.exports||L}function e0(r){let c=Fa(r);if(!c.resolvedExports){let{exports:_,typeOnlyExportStarMap:h}=bT(r);c.resolvedExports=_,c.typeOnlyExportStarMap=h}return c.resolvedExports}function EC(r,c,_,h){c&&c.forEach((v,T)=>{if(T==="default")return;let D=r.get(T);if(!D)r.set(T,v),_&&h&&_.set(T,{specifierText:cl(h.moduleSpecifier)});else if(_&&h&&D&&Dl(D)!==Dl(v)){let J=_.get(T);J.exportsWithDuplicate?J.exportsWithDuplicate.push(h):J.exportsWithDuplicate=[h]}})}function bT(r){let c=[],_,h=new Set;r=a_(r);let v=T(r)||L;return _&&h.forEach(D=>_.delete(D)),{exports:v,typeOnlyExportStarMap:_};function T(D,J,V){if(!V&&D?.exports&&D.exports.forEach((Fe,De)=>h.add(De)),!(D&&D.exports&&I_(c,D)))return;let Q=new Map(D.exports),ue=D.exports.get("__export");if(ue){let Fe=Qs(),De=new Map;if(ue.declarations)for(let _t of ue.declarations){let Nt=wf(_t,_t.moduleSpecifier),zt=T(Nt,_t,V||_t.isTypeOnly);EC(Fe,zt,De,_t)}De.forEach(({exportsWithDuplicate:_t},Nt)=>{if(!(Nt==="export="||!(_t&&_t.length)||Q.has(Nt)))for(let zt of _t)Jo.add(Mn(zt,y.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,De.get(Nt).specifierText,ka(Nt)))}),EC(Q,Fe)}return J?.isTypeOnly&&(_??(_=new Map),Q.forEach((Fe,De)=>_.set(De,J))),Q}}function Uo(r){let c;return r&&r.mergeId&&(c=aD[r.mergeId])?c:r}function ei(r){return Uo(r.symbol&&$ie(r.symbol))}function bd(r){return qg(r)?ei(r):void 0}function w_(r){return Uo(r.parent&&$ie(r.parent))}function bD(r){var c,_;return(((c=r.valueDeclaration)==null?void 0:c.kind)===219||((_=r.valueDeclaration)==null?void 0:_.kind)===218)&&bd(r.valueDeclaration.parent)||r}function Vx(r,c){let _=rn(c),h=Wo(_),v=Fa(r),T;if(v.extendedContainersByFile&&(T=v.extendedContainersByFile.get(h)))return T;if(_&&_.imports){for(let J of _.imports){if(Pc(J))continue;let V=wf(c,J,!0);!V||!Wd(V,r)||(T=Zr(T,V))}if(Re(T))return(v.extendedContainersByFile||(v.extendedContainersByFile=new Map)).set(h,T),T}if(v.extendedContainers)return v.extendedContainers;let D=e.getSourceFiles();for(let J of D){if(!Du(J))continue;let V=ei(J);Wd(V,r)&&(T=Zr(T,V))}return v.extendedContainers=T||ce}function DC(r,c,_){let h=w_(r);if(h&&!(r.flags&262144))return V(h);let v=Bi(r.declarations,ue=>{if(!df(ue)&&ue.parent){if(xw(ue.parent))return ei(ue.parent);if(Lh(ue.parent)&&ue.parent.parent&&a_(ei(ue.parent.parent))===r)return ei(ue.parent.parent)}if(vu(ue)&&Vn(ue.parent)&&ue.parent.operatorToken.kind===64&&Lc(ue.parent.left)&&Tc(ue.parent.left.expression))return Ev(ue.parent.left)||Ck(ue.parent.left.expression)?ei(rn(ue)):(Nl(ue.parent.left.expression),Zn(ue.parent.left.expression).resolvedSymbol)});if(!Re(v))return;let T=Bi(v,ue=>Wd(ue,r)?ue:void 0),D=[],J=[];for(let ue of T){let[Fe,...De]=V(ue);D=Zr(D,Fe),J=ti(J,De)}return ya(D,J);function V(ue){let Fe=Bi(ue.declarations,Q),De=c&&Vx(r,c),_t=xD(ue,_);if(c&&ue.flags&ay(_)&&Hx(ue,c,1920,!1))return Zr(ya(ya([ue],Fe),De),_t);let Nt=!(ue.flags&ay(_))&&ue.flags&788968&&zc(ue).flags&524288&&_===111551?zf(c,Dr=>Lu(Dr,Tr=>{if(Tr.flags&ay(_)&&An(Tr)===zc(ue))return Tr})):void 0,zt=Nt?[Nt,...Fe,ue]:[...Fe,ue];return zt=Zr(zt,_t),zt=ti(zt,De),zt}function Q(ue){return h&&SD(ue,h)}}function xD(r,c){let _=!!Re(r.declarations)&&ho(r.declarations);if(c&111551&&_&&_.parent&&Ui(_.parent)&&(So(_)&&_===_.parent.initializer||Ff(_)&&_===_.parent.type))return ei(_.parent)}function SD(r,c){let _=PD(r),h=_&&_.exports&&_.exports.get("export=");return h&&Ud(h,c)?_:void 0}function Wd(r,c){if(r===w_(c))return c;let _=r.exports&&r.exports.get("export=");if(_&&Ud(_,c))return r;let h=nd(r),v=h.get(c.escapedName);return v&&Ud(v,c)?v:Lu(h,T=>{if(Ud(T,c))return T})}function Ud(r,c){if(Uo(Dl(Uo(r)))===Uo(Dl(Uo(c))))return r}function k_(r){return Uo(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function sh(r,c){return!!(r.flags&111551||r.flags&2097152&&rd(r,!c)&111551)}function Q0(r){var c;let _=new p(vn,r);return m++,_.id=m,(c=Fn)==null||c.recordType(_),_}function t0(r,c){let _=Q0(r);return _.symbol=c,_}function A(r){return new p(vn,r)}function Se(r,c,_=0,h){Jt(c,h);let v=Q0(r);return v.intrinsicName=c,v.debugIntrinsicName=h,v.objectFlags=_|524288|2097152|33554432|16777216,v}function Jt(r,c){let _=`${r},${c??""}`;$t.has(_)&&I.fail(`Duplicate intrinsic type name ${r}${c?` (${c})`:""}; you may need to pass a name to createIntrinsicType.`),$t.add(_)}function Nr(r,c){let _=t0(524288,c);return _.objectFlags=r,_.members=void 0,_.properties=void 0,_.callSignatures=void 0,_.constructSignatures=void 0,_.indexInfos=void 0,_}function Wi(){return Fi(Ka(Sve.keys(),c_))}function pa(r){return t0(262144,r)}function Ha(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function ps(r){let c;return r.forEach((_,h)=>{Co(_,h)&&(c||(c=[])).push(_)}),c||ce}function Co(r,c){return!Ha(c)&&sh(r)}function Jf(r){let c=ps(r),_=Xie(r);return _?ya(c,[_]):c}function vl(r,c,_,h,v){let T=r;return T.members=c,T.properties=ce,T.callSignatures=_,T.constructSignatures=h,T.indexInfos=v,c!==L&&(T.properties=ps(c)),T}function rl(r,c,_,h,v){return vl(Nr(16,r),c,_,h,v)}function TD(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;let c=Cn(r.constructSignatures,h=>!(h.flags&4));if(r.constructSignatures===c)return r;let _=rl(r.symbol,r.members,r.callSignatures,Pt(c)?c:ce,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=_,_.objectTypeWithoutAbstractConstructSignatures=_,_}function zf(r,c){let _;for(let h=r;h;h=h.parent){if(Py(h)&&h.locals&&!C1(h)&&(_=c(h.locals,void 0,!0,h)))return _;switch(h.kind){case 307:if(!q_(h))break;case 267:let v=ei(h);if(_=c(v?.exports||L,void 0,!0,h))return _;break;case 263:case 231:case 264:let T;if((ei(h).members||L).forEach((D,J)=>{D.flags&788968&&(T||(T=Qs())).set(J,D)}),T&&(_=c(T,void 0,!1,h)))return _;break}}return c(Tt,void 0,!0)}function ay(r){return r===111551?111551:1920}function Hx(r,c,_,h,v=new Map){if(!(r&&!wD(r)))return;let T=Fa(r),D=T.accessibleChainCache||(T.accessibleChainCache=new Map),J=zf(c,(Tr,En,xn,Fr)=>Fr),V=`${h?0:1}|${J?Wo(J):0}|${_}`;if(D.has(V))return D.get(V);let Q=co(r),ue=v.get(Q);ue||v.set(Q,ue=[]);let Fe=zf(c,De);return D.set(V,Fe),Fe;function De(Tr,En,xn){if(!I_(ue,Tr))return;let Fr=zt(Tr,En,xn);return ue.pop(),Fr}function _t(Tr,En){return!xT(Tr,c,En)||!!Hx(Tr.parent,c,ay(En),h,v)}function Nt(Tr,En,xn){return(r===(En||Tr)||Uo(r)===Uo(En||Tr))&&!Pt(Tr.declarations,xw)&&(xn||_t(Uo(Tr),_))}function zt(Tr,En,xn){return Nt(Tr.get(r.escapedName),void 0,En)?[r]:Lu(Tr,kr=>{if(kr.flags&2097152&&kr.escapedName!=="export="&&kr.escapedName!=="default"&&!(EJ(kr)&&c&&Du(rn(c)))&&(!h||Pt(kr.declarations,kS))&&(!xn||!Pt(kr.declarations,bme))&&(En||!Zc(kr,281))){let Un=pu(kr),ki=Dr(kr,Un,En);if(ki)return ki}if(kr.escapedName===r.escapedName&&kr.exportSymbol&&Nt(Uo(kr.exportSymbol),void 0,En))return[r]})||(Tr===Tt?Dr(nt,nt,En):void 0)}function Dr(Tr,En,xn){if(Nt(Tr,En,xn))return[Tr];let Fr=nd(En),kr=Fr&&De(Fr,!0);if(kr&&_t(Tr,ay(_)))return[Tr].concat(kr)}}function xT(r,c,_){let h=!1;return zf(c,v=>{let T=Uo(v.get(r.escapedName));if(!T)return!1;if(T===r)return!0;let D=T.flags&2097152&&!Zc(T,281);return T=D?pu(T):T,(D?rd(T):T.flags)&_?(h=!0,!0):!1}),h}function wD(r){if(r.declarations&&r.declarations.length){for(let c of r.declarations)switch(c.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function kD(r,c){return CD(r,c,788968,!1,!0).accessibility===0}function ub(r,c){return CD(r,c,111551,!1,!0).accessibility===0}function pb(r,c,_){return CD(r,c,_,!1,!1).accessibility===0}function bw(r,c,_,h,v,T){if(!Re(r))return;let D,J=!1;for(let V of r){let Q=Hx(V,c,h,!1);if(Q){D=V;let De=gj(Q[0],v);if(De)return De}if(T&&Pt(V.declarations,xw)){if(v){J=!0;continue}return{accessibility:0}}let ue=DC(V,c,h),Fe=bw(ue,c,_,_===V?ay(h):h,v,T);if(Fe)return Fe}if(J)return{accessibility:0};if(D)return{accessibility:1,errorSymbolName:ja(_,c,h),errorModuleName:D!==_?ja(D,c,1920):void 0}}function sy(r,c,_,h){return CD(r,c,_,h,!0)}function CD(r,c,_,h,v){if(r&&c){let T=bw([r],c,r,_,h,v);if(T)return T;let D=Ge(r.declarations,PD);if(D){let J=PD(c);if(D!==J)return{accessibility:2,errorSymbolName:ja(r,c,_),errorModuleName:ja(D),errorNode:jn(c)?c:void 0}}return{accessibility:1,errorSymbolName:ja(r,c,_)}}return{accessibility:0}}function PD(r){let c=Br(r,mj);return c&&ei(c)}function mj(r){return df(r)||r.kind===307&&q_(r)}function xw(r){return Fq(r)||r.kind===307&&q_(r)}function gj(r,c){let _;if(!sn(Cn(r.declarations,T=>T.kind!==80),h))return;return{accessibility:0,aliasesToMakeVisible:_};function h(T){var D,J;if(!X0(T)){let V=ab(T);if(V&&!Ai(V,32)&&X0(V.parent))return v(T,V);if(Ui(T)&&Rl(T.parent.parent)&&!Ai(T.parent.parent,32)&&X0(T.parent.parent.parent))return v(T,T.parent.parent);if(Mq(T)&&!Ai(T,32)&&X0(T.parent))return v(T,T);if(Do(T)){if(r.flags&2097152&&jn(T)&&((D=T.parent)!=null&&D.parent)&&Ui(T.parent.parent)&&((J=T.parent.parent.parent)!=null&&J.parent)&&Rl(T.parent.parent.parent.parent)&&!Ai(T.parent.parent.parent.parent,32)&&T.parent.parent.parent.parent.parent&&X0(T.parent.parent.parent.parent.parent))return v(T,T.parent.parent.parent.parent);if(r.flags&2){let Q=Br(T,Rl);return Ai(Q,32)?!0:X0(Q.parent)?v(T,Q):!1}}return!1}return!0}function v(T,D){return c&&(Zn(T).isVisible=!0,_=Mm(_,D)),!0}}function _8(r){let c;return r.parent.kind===186||r.parent.kind===233&&!Eh(r.parent)||r.parent.kind===167||r.parent.kind===182&&r.parent.parameterName===r?c=1160127:r.kind===166||r.kind===211||r.parent.kind===271||r.parent.kind===166&&r.parent.left===r||r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r?c=1920:c=788968,c}function ED(r,c,_=!0){let h=_8(r),v=Af(r),T=Ct(c,v.escapedText,h,void 0,!1);return T&&T.flags&262144&&h&788968?{accessibility:0}:!T&&hx(v)&&sy(ei(mf(v,!1,!1)),v,h,!1).accessibility===0?{accessibility:0}:T?gj(T,_)||{accessibility:1,errorSymbolName:cl(v),errorNode:v}:{accessibility:3,errorSymbolName:cl(v),errorNode:v}}function ja(r,c,_,h=4,v){let T=70221824,D=0;h&2&&(T|=128),h&1&&(T|=512),h&8&&(T|=16384),h&32&&(D|=4),h&16&&(D|=1);let J=h&4?Me.symbolToNode:Me.symbolToEntityName;return v?V(v).getText():eN(V);function V(Q){let ue=J(r,_,c,T,D),Fe=c?.kind===307?y0e():G2(),De=c&&rn(c);return Fe.writeNode(4,ue,De,Q),Q}}function Sw(r,c,_=0,h,v){return v?T(v).getText():eN(T);function T(D){let J;_&262144?J=h===1?185:184:J=h===1?180:179;let V=Me.signatureToSignatureDeclaration(r,J,c,OD(_)|70221824|512),Q=ree(),ue=c&&rn(c);return Q.writeNode(4,V,ue,HQ(D)),D}}function Pn(r,c,_=1064960,h=D5("")){let v=z.noErrorTruncation||_&1,T=Me.typeToTypeNode(r,c,OD(_)|70221824|(v?1:0),void 0);if(T===void 0)return I.fail("should always get typenode");let D=r!==lr?G2():h0e(),J=c&&rn(c);D.writeNode(4,T,J,h);let V=h.getText(),Q=v?ZK*2:ZI*2;return Q&&V&&V.length>=Q?V.substr(0,Q-3)+"...":V}function ST(r,c){let _=zA(r.symbol)?Pn(r,r.symbol.valueDeclaration):Pn(r),h=zA(c.symbol)?Pn(c,c.symbol.valueDeclaration):Pn(c);return _===h&&(_=DD(r),h=DD(c)),[_,h]}function DD(r){return Pn(r,void 0,64)}function zA(r){return r&&!!r.valueDeclaration&&At(r.valueDeclaration)&&!Hd(r.valueDeclaration)}function OD(r=0){return r&848330095}function hj(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Sm(r.symbol)||!!(r.flags&524288)&&!!(oi(r)&16777216))}function TT(r){return Sa(r)}function M$(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:aat,isExpandoFunctionDeclaration:Cat,hasLateBindableName:KA,shouldRemoveDeclaration(Ie,be){return!(Ie.internalFlags&8&&Tc(be.name.expression)&&Og(be.name).flags&1)},createRecoveryBoundary(Ie){return En(Ie)},isDefinitelyReferenceToGlobalSymbolObject:gC,getAllAccessorDeclarations:UEe,requiresAddingImplicitUndefined(Ie,be,Kt){var sr;switch(Ie.kind){case 172:case 171:case 348:be??(be=ei(Ie));let Lr=An(be);return!!(be.flags&4&&be.flags&16777216&&fE(Ie)&&((sr=be.links)!=null&&sr.mappedType)&&zGt(Lr));case 169:case 341:return sH(Ie,Kt);default:I.assertNever(Ie)}},isOptionalParameter:Ej,isUndefinedIdentifierExpression(Ie){return I.assert(zg(Ie)),Em(Ie)===xe},isEntityNameVisible(Ie,be,Kt){return ED(be,Ie.enclosingDeclaration,Kt)},serializeExistingTypeNode(Ie,be,Kt){return Dn(Ie,be,!!Kt)},serializeReturnTypeForSignature(Ie,be,Kt){let sr=Ie,Lr=Vd(be);Kt??(Kt=ei(be));let un=sr.enclosingSymbolTypes.get(co(Kt))??Ma(Yo(Lr),sr.mapper);return vL(sr,Lr,un)},serializeTypeOfExpression(Ie,be){let Kt=Ie,sr=Ma(ad(yat(be)),Kt.mapper);return V(sr,Kt)},serializeTypeOfDeclaration(Ie,be,Kt){var sr;let Lr=Ie;Kt??(Kt=ei(be));let un=(sr=Lr.enclosingSymbolTypes)==null?void 0:sr.get(co(Kt));return un===void 0&&(un=Kt.flags&98304&&be.kind===178?Ma(fb(Kt),Lr.mapper):Kt&&!(Kt.flags&133120)?Ma(RT(An(Kt)),Lr.mapper):ut),be&&(Da(be)||Ad(be))&&sH(be,Lr.enclosingDeclaration)&&(un=nS(un)),m6(Kt,Lr,un)},serializeNameOfParameter(Ie,be){return Ms(ei(be),be,Ie)},serializeEntityName(Ie,be){let Kt=Ie,sr=Em(be,!0);if(sr&&ub(sr,Kt.enclosingDeclaration))return du(sr,Kt,1160127)},serializeTypeName(Ie,be,Kt,sr){return qr(Ie,be,Kt,sr)},getJsDocPropertyOverride(Ie,be,Kt){let sr=Ie,Lr=Ye(Kt.name)?Kt.name:Kt.name.right,un=fu(c(sr,be),Lr.escapedText);return un&&Kt.typeExpression&&c(sr,Kt.typeExpression.type)!==un?V(un,sr):void 0},enterNewScope(Ie,be){if(Ss(be)||B1(be)){let Kt=Vd(be);return xn(Ie,be,Kt.parameters,Kt.typeParameters)}else{let Kt=R2(be)?gCe(be):[kw(ei(be.typeParameter))];return xn(Ie,be,void 0,Kt)}},markNodeReuse(Ie,be,Kt){return _(Ie,be,Kt)},trackExistingEntityName(Ie,be){return ir(be,Ie)},trackComputedName(Ie,be){pc(be,Ie.enclosingDeclaration,Ie)},getModuleSpecifierOverride(Ie,be,Kt){let sr=Ie;if(sr.bundled||sr.enclosingFile!==rn(Kt)){let Lr=Kt.text,un=Lr,bn=Zn(be).resolvedSymbol,$i=be.isTypeOf?111551:788968,ra=bn&&sy(bn,sr.enclosingDeclaration,$i,!1).accessibility===0&&bs(bn,sr,$i,!0)[0];if(ra&&JP(ra))Lr=Yr(ra,sr);else{let Ts=HEe(be);Ts&&(Lr=Yr(Ts.symbol,sr))}if(Lr.includes("/node_modules/")&&(sr.encounteredError=!0,sr.tracker.reportLikelyUnsafeImportRequiredError&&sr.tracker.reportLikelyUnsafeImportRequiredError(Lr)),Lr!==un)return Lr}},canReuseTypeNode(Ie,be){return _n(Ie,be)},canReuseTypeNodeAnnotation(Ie,be,Kt,sr,Lr){var un;let bn=Ie;if(bn.enclosingDeclaration===void 0)return!1;sr??(sr=ei(be));let $i=(un=bn.enclosingSymbolTypes)==null?void 0:un.get(co(sr));$i===void 0&&(sr.flags&98304?$i=be.kind===178?fb(sr):g8(sr):Ok(be)?$i=Yo(Vd(be)):$i=An(sr));let ra=TT(Kt);return et(ra)?!0:(Lr&&ra&&(ra=ip(ra,!Da(be))),!!ra&&yL(be,$i,ra)&&iu(Kt,$i))}},typeToTypeNode:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>V(Ie,un)),typePredicateToTypePredicateNode:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>Pa(Ie,un)),serializeTypeForExpression:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>Te.serializeTypeOfExpression(Ie,un)),serializeTypeForDeclaration:(Ie,be,Kt,sr,Lr,un)=>v(Kt,sr,Lr,un,bn=>Te.serializeTypeOfDeclaration(Ie,be,bn)),serializeReturnTypeForSignature:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>Te.serializeReturnTypeForSignature(Ie,ei(Ie),un)),indexInfoToIndexSignatureDeclaration:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>Dr(Ie,un,void 0)),signatureToSignatureDeclaration:(Ie,be,Kt,sr,Lr,un)=>v(Kt,sr,Lr,un,bn=>Tr(Ie,be,bn)),symbolToEntityName:(Ie,be,Kt,sr,Lr,un)=>v(Kt,sr,Lr,un,bn=>Mc(Ie,bn,be,!1)),symbolToExpression:(Ie,be,Kt,sr,Lr,un)=>v(Kt,sr,Lr,un,bn=>du(Ie,bn,be)),symbolToTypeParameterDeclarations:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>op(Ie,un)),symbolToParameterDeclaration:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>os(Ie,un)),typeParameterToDeclaration:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>ki(Ie,un)),symbolTableToDeclarationStatements:(Ie,be,Kt,sr,Lr)=>v(be,Kt,sr,Lr,un=>ni(Ie,un)),symbolToNode:(Ie,be,Kt,sr,Lr,un)=>v(Kt,sr,Lr,un,bn=>h(Ie,bn,be))};function c(Ie,be,Kt){let sr=TT(be);if(!Ie.mapper)return sr;let Lr=Ma(sr,Ie.mapper);return Kt&&Lr!==sr?void 0:Lr}function _(Ie,be,Kt){if((!Pc(be)||!(be.flags&16)||!Ie.enclosingFile||Ie.enclosingFile!==rn(al(be)))&&(be=j.cloneNode(be)),be===Kt||!Kt)return be;let sr=be.original;for(;sr&&sr!==Kt;)sr=sr.original;return sr||ii(be,Kt),Ie.enclosingFile&&Ie.enclosingFile===rn(al(Kt))?Ot(be,Kt):be}function h(Ie,be,Kt){if(be.internalFlags&1){if(Ie.valueDeclaration){let Lr=ls(Ie.valueDeclaration);if(Lr&&po(Lr))return Lr}let sr=Fa(Ie).nameType;if(sr&&sr.flags&9216)return be.enclosingDeclaration=sr.symbol.valueDeclaration,j.createComputedPropertyName(du(sr.symbol,be,Kt))}return du(Ie,be,Kt)}function v(Ie,be,Kt,sr,Lr){let un=sr?.trackSymbol?sr.moduleResolverHost:(Kt||0)&4?s3t(e):void 0,bn={enclosingDeclaration:Ie,enclosingFile:Ie&&rn(Ie),flags:be||0,internalFlags:Kt||0,tracker:void 0,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!z.outFile&&!!Ie&&q_(rn(Ie)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0};bn.tracker=new wve(bn,sr,un);let $i=Lr(bn);return bn.truncating&&bn.flags&1&&bn.tracker.reportTruncationError(),bn.encounteredError?void 0:$i}function T(Ie,be,Kt){let sr=co(be),Lr=Ie.enclosingSymbolTypes.get(sr);return Ie.enclosingSymbolTypes.set(sr,Kt),un;function un(){Lr?Ie.enclosingSymbolTypes.set(sr,Lr):Ie.enclosingSymbolTypes.delete(sr)}}function D(Ie){let be=Ie.flags,Kt=Ie.internalFlags;return sr;function sr(){Ie.flags=be,Ie.internalFlags=Kt}}function J(Ie){return Ie.truncating?Ie.truncating:Ie.truncating=Ie.approximateLength>(Ie.flags&1?ZK:ZI)}function V(Ie,be){let Kt=D(be),sr=Q(Ie,be);return Kt(),sr}function Q(Ie,be){var Kt,sr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Lr=be.flags&8388608;if(be.flags&=-8388609,!Ie){if(!(be.flags&262144)){be.encounteredError=!0;return}return be.approximateLength+=3,j.createKeywordTypeNode(133)}if(be.flags&536870912||(Ie=Eg(Ie)),Ie.flags&1)return Ie.aliasSymbol?j.createTypeReferenceNode(oa(Ie.aliasSymbol),Nt(Ie.aliasTypeArguments,be)):Ie===lr?F2(j.createKeywordTypeNode(133),3,"unresolved"):(be.approximateLength+=3,j.createKeywordTypeNode(Ie===We?141:133));if(Ie.flags&2)return j.createKeywordTypeNode(159);if(Ie.flags&4)return be.approximateLength+=6,j.createKeywordTypeNode(154);if(Ie.flags&8)return be.approximateLength+=6,j.createKeywordTypeNode(150);if(Ie.flags&64)return be.approximateLength+=6,j.createKeywordTypeNode(163);if(Ie.flags&16&&!Ie.aliasSymbol)return be.approximateLength+=7,j.createKeywordTypeNode(136);if(Ie.flags&1056){if(Ie.symbol.flags&8){let Ut=w_(Ie.symbol),Vt=Sn(Ut,be,788968);if(zc(Ut)===Ie)return Vt;let Ar=Ml(Ie.symbol);return m_(Ar,1)?lt(Vt,j.createTypeReferenceNode(Ar,void 0)):jh(Vt)?(Vt.isTypeOf=!0,j.createIndexedAccessTypeNode(Vt,j.createLiteralTypeNode(j.createStringLiteral(Ar)))):W_(Vt)?j.createIndexedAccessTypeNode(j.createTypeQueryNode(Vt.typeName),j.createLiteralTypeNode(j.createStringLiteral(Ar))):I.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Sn(Ie.symbol,be,788968)}if(Ie.flags&128)return be.approximateLength+=Ie.value.length+2,j.createLiteralTypeNode(qn(j.createStringLiteral(Ie.value,!!(be.flags&268435456)),16777216));if(Ie.flags&256){let Ut=Ie.value;return be.approximateLength+=(""+Ut).length,j.createLiteralTypeNode(Ut<0?j.createPrefixUnaryExpression(41,j.createNumericLiteral(-Ut)):j.createNumericLiteral(Ut))}if(Ie.flags&2048)return be.approximateLength+=A2(Ie.value).length+1,j.createLiteralTypeNode(j.createBigIntLiteral(Ie.value));if(Ie.flags&512)return be.approximateLength+=Ie.intrinsicName.length,j.createLiteralTypeNode(Ie.intrinsicName==="true"?j.createTrue():j.createFalse());if(Ie.flags&8192){if(!(be.flags&1048576)){if(ub(Ie.symbol,be.enclosingDeclaration))return be.approximateLength+=6,Sn(Ie.symbol,be,111551);be.tracker.reportInaccessibleUniqueSymbolError&&be.tracker.reportInaccessibleUniqueSymbolError()}return be.approximateLength+=13,j.createTypeOperatorNode(158,j.createKeywordTypeNode(155))}if(Ie.flags&16384)return be.approximateLength+=4,j.createKeywordTypeNode(116);if(Ie.flags&32768)return be.approximateLength+=9,j.createKeywordTypeNode(157);if(Ie.flags&65536)return be.approximateLength+=4,j.createLiteralTypeNode(j.createNull());if(Ie.flags&131072)return be.approximateLength+=5,j.createKeywordTypeNode(146);if(Ie.flags&4096)return be.approximateLength+=6,j.createKeywordTypeNode(155);if(Ie.flags&67108864)return be.approximateLength+=6,j.createKeywordTypeNode(151);if(q4(Ie))return be.flags&4194304&&(!be.encounteredError&&!(be.flags&32768)&&(be.encounteredError=!0),(sr=(Kt=be.tracker).reportInaccessibleThisError)==null||sr.call(Kt)),be.approximateLength+=4,j.createThisTypeNode();if(!Lr&&Ie.aliasSymbol&&(be.flags&16384||kD(Ie.aliasSymbol,be.enclosingDeclaration))){let Ut=Nt(Ie.aliasTypeArguments,be);return Ha(Ie.aliasSymbol.escapedName)&&!(Ie.aliasSymbol.flags&32)?j.createTypeReferenceNode(j.createIdentifier(""),Ut):Re(Ut)===1&&Ie.aliasSymbol===Fs.symbol?j.createArrayTypeNode(Ut[0]):Sn(Ie.aliasSymbol,be,788968,Ut)}let un=oi(Ie);if(un&4)return I.assert(!!(Ie.flags&524288)),Ie.node?bo(Ie,fc):fc(Ie);if(Ie.flags&262144||un&3){if(Ie.flags&262144&&Ta(be.inferTypeParameters,Ie)){be.approximateLength+=Ml(Ie.symbol).length+6;let Vt,Ar=Wf(Ie);if(Ar){let tn=$Ze(Ie,!0);tn&&o0(Ar,tn)||(be.approximateLength+=9,Vt=Ar&&V(Ar,be))}return j.createInferTypeNode(kr(Ie,be,Vt))}if(be.flags&4&&Ie.flags&262144){let Vt=Fo(Ie,be);return be.approximateLength+=fi(Vt).length,j.createTypeReferenceNode(j.createIdentifier(fi(Vt)),void 0)}if(Ie.symbol)return Sn(Ie.symbol,be,788968);let Ut=(Ie===Xe||Ie===Et)&&F&&F.symbol?(Ie===Et?"sub-":"super-")+Ml(F.symbol):"?";return j.createTypeReferenceNode(j.createIdentifier(Ut),void 0)}if(Ie.flags&1048576&&Ie.origin&&(Ie=Ie.origin),Ie.flags&3145728){let Ut=Ie.flags&1048576?R$(Ie.types):Ie.types;if(Re(Ut)===1)return V(Ut[0],be);let Vt=Nt(Ut,be,!0);if(Vt&&Vt.length>0)return Ie.flags&1048576?j.createUnionTypeNode(Vt):j.createIntersectionTypeNode(Vt);!be.encounteredError&&!(be.flags&262144)&&(be.encounteredError=!0);return}if(un&48)return I.assert(!!(Ie.flags&524288)),Lo(Ie);if(Ie.flags&4194304){let Ut=Ie.type;be.approximateLength+=6;let Vt=V(Ut,be);return j.createTypeOperatorNode(143,Vt)}if(Ie.flags&134217728){let Ut=Ie.texts,Vt=Ie.types,Ar=j.createTemplateHead(Ut[0]),tn=j.createNodeArray(Dt(Vt,(Rn,xi)=>j.createTemplateLiteralTypeSpan(V(Rn,be),(xi<Vt.length-1?j.createTemplateMiddle:j.createTemplateTail)(Ut[xi+1]))));return be.approximateLength+=2,j.createTemplateLiteralType(Ar,tn)}if(Ie.flags&268435456){let Ut=V(Ie.type,be);return Sn(Ie.symbol,be,788968,[Ut])}if(Ie.flags&8388608){let Ut=V(Ie.objectType,be),Vt=V(Ie.indexType,be);return be.approximateLength+=2,j.createIndexedAccessTypeNode(Ut,Vt)}if(Ie.flags&16777216)return bo(Ie,Ut=>bn(Ut));if(Ie.flags&33554432){let Ut=V(Ie.baseType,be),Vt=t6(Ie)&&Xke("NoInfer",!1);return Vt?Sn(Vt,be,788968,[Ut]):Ut}return I.fail("Should be unreachable.");function bn(Ut){let Vt=V(Ut.checkType,be);if(be.approximateLength+=15,be.flags&4&&Ut.root.isDistributive&&!(Ut.checkType.flags&262144)){let ha=pa(fo(262144,"T")),Mi=Fo(ha,be),Xn=j.createTypeReferenceNode(Mi);be.approximateLength+=37;let Aa=LC(Ut.root.checkType,ha,Ut.mapper),hs=be.inferTypeParameters;be.inferTypeParameters=Ut.root.inferTypeParameters;let No=V(Ma(Ut.root.extendsType,Aa),be);be.inferTypeParameters=hs;let uo=$i(Ma(c(be,Ut.root.node.trueType),Aa)),nl=$i(Ma(c(be,Ut.root.node.falseType),Aa));return j.createConditionalTypeNode(Vt,j.createInferTypeNode(j.createTypeParameterDeclaration(void 0,j.cloneNode(Xn.typeName))),j.createConditionalTypeNode(j.createTypeReferenceNode(j.cloneNode(Mi)),V(Ut.checkType,be),j.createConditionalTypeNode(Xn,No,uo,nl),j.createKeywordTypeNode(146)),j.createKeywordTypeNode(146))}let Ar=be.inferTypeParameters;be.inferTypeParameters=Ut.root.inferTypeParameters;let tn=V(Ut.extendsType,be);be.inferTypeParameters=Ar;let Rn=$i(eS(Ut)),xi=$i(tS(Ut));return j.createConditionalTypeNode(Vt,tn,Rn,xi)}function $i(Ut){var Vt,Ar,tn;return Ut.flags&1048576?(Vt=be.visitedTypes)!=null&&Vt.has(ap(Ut))?(be.flags&131072||(be.encounteredError=!0,(tn=(Ar=be.tracker)==null?void 0:Ar.reportCyclicStructureError)==null||tn.call(Ar)),ue(be)):bo(Ut,Rn=>V(Rn,be)):V(Ut,be)}function ra(Ut){return!!Rj(Ut)}function Ts(Ut){return!!Ut.target&&ra(Ut.target)&&!ra(Ut)}function Ga(Ut){var Vt;I.assert(!!(Ut.flags&524288));let Ar=Ut.declaration.readonlyToken?j.createToken(Ut.declaration.readonlyToken.kind):void 0,tn=Ut.declaration.questionToken?j.createToken(Ut.declaration.questionToken.kind):void 0,Rn,xi,ha=!XA(Ut)&&!(Cw(Ut).flags&2)&&be.flags&4&&!($d(Ut).flags&262144&&((Vt=Wf($d(Ut)))==null?void 0:Vt.flags)&4194304);if(XA(Ut)){if(Ts(Ut)&&be.flags&4){let uo=pa(fo(262144,"T")),nl=Fo(uo,be);xi=j.createTypeReferenceNode(nl)}Rn=j.createTypeOperatorNode(143,xi||V(Cw(Ut),be))}else if(ha){let uo=pa(fo(262144,"T")),nl=Fo(uo,be);xi=j.createTypeReferenceNode(nl),Rn=xi}else Rn=V($d(Ut),be);let Mi=kr(uh(Ut),be,Rn),Xn=Ut.declaration.nameType?V(mb(Ut),be):void 0,Aa=V(s1(Y0(Ut),!!(Yy(Ut)&4)),be),hs=j.createMappedTypeNode(Ar,Mi,Xn,tn,Aa,void 0);be.approximateLength+=10;let No=qn(hs,1);if(Ts(Ut)&&be.flags&4){let uo=Ma(Wf(c(be,Ut.declaration.typeParameter.constraint.type))||qt,Ut.mapper);return j.createConditionalTypeNode(V(Cw(Ut),be),j.createInferTypeNode(j.createTypeParameterDeclaration(void 0,j.cloneNode(xi.typeName),uo.flags&2?void 0:V(uo,be))),No,j.createKeywordTypeNode(146))}else if(ha)return j.createConditionalTypeNode(V($d(Ut),be),j.createInferTypeNode(j.createTypeParameterDeclaration(void 0,j.cloneNode(xi.typeName),j.createTypeOperatorNode(143,V(Cw(Ut),be)))),No,j.createKeywordTypeNode(146));return No}function Lo(Ut){var Vt,Ar;let tn=Ut.id,Rn=Ut.symbol;if(Rn){if(!!(oi(Ut)&8388608)){let Aa=Ut.node;if(M2(Aa)&&c(be,Aa)===Ut){let hs=Te.tryReuseExistingTypeNode(be,Aa);if(hs)return hs}return(Vt=be.visitedTypes)!=null&&Vt.has(tn)?ue(be):bo(Ut,xo)}let Mi=hj(Ut)?788968:111551;if(gy(Rn.valueDeclaration))return Sn(Rn,be,Mi);if(Rn.flags&32&&!L$(Rn)&&!(Rn.valueDeclaration&&Ri(Rn.valueDeclaration)&&be.flags&2048&&(!bu(Rn.valueDeclaration)||sy(Rn,be.enclosingDeclaration,Mi,!1).accessibility!==0))||Rn.flags&896||xi())return Sn(Rn,be,Mi);if((Ar=be.visitedTypes)!=null&&Ar.has(tn)){let Xn=ND(Ut);return Xn?Sn(Xn,be,788968):ue(be)}else return bo(Ut,xo)}else return xo(Ut);function xi(){var ha;let Mi=!!(Rn.flags&8192)&&Pt(Rn.declarations,Aa=>Vs(Aa)&&!fZe(ls(Aa))),Xn=!!(Rn.flags&16)&&(Rn.parent||Ge(Rn.declarations,Aa=>Aa.parent.kind===307||Aa.parent.kind===268));if(Mi||Xn)return(!!(be.flags&4096)||((ha=be.visitedTypes)==null?void 0:ha.has(tn)))&&(!(be.flags&8)||ub(Rn,be.enclosingDeclaration))}}function bo(Ut,Vt){var Ar,tn,Rn;let xi=Ut.id,ha=oi(Ut)&16&&Ut.symbol&&Ut.symbol.flags&32,Mi=oi(Ut)&4&&Ut.node?"N"+Wo(Ut.node):Ut.flags&16777216?"N"+Wo(Ut.root.node):Ut.symbol?(ha?"+":"")+co(Ut.symbol):void 0;be.visitedTypes||(be.visitedTypes=new Set),Mi&&!be.symbolDepth&&(be.symbolDepth=new Map);let Xn=be.enclosingDeclaration&&Zn(be.enclosingDeclaration),Aa=`${ap(Ut)}|${be.flags}|${be.internalFlags}`;Xn&&(Xn.serializedTypes||(Xn.serializedTypes=new Map));let hs=(Ar=Xn?.serializedTypes)==null?void 0:Ar.get(Aa);if(hs)return(tn=hs.trackedSymbols)==null||tn.forEach(([cf,Cb,g6])=>be.tracker.trackSymbol(cf,Cb,g6)),hs.truncating&&(be.truncating=!0),be.approximateLength+=hs.addedLength,p1(hs.node);let No;if(Mi){if(No=be.symbolDepth.get(Mi)||0,No>10)return ue(be);be.symbolDepth.set(Mi,No+1)}be.visitedTypes.add(xi);let uo=be.trackedSymbols;be.trackedSymbols=void 0;let nl=be.approximateLength,Ng=Vt(Ut),u0=be.approximateLength-nl;return!be.reportedDiagnostic&&!be.encounteredError&&((Rn=Xn?.serializedTypes)==null||Rn.set(Aa,{node:Ng,truncating:be.truncating,addedLength:u0,trackedSymbols:be.trackedSymbols})),be.visitedTypes.delete(xi),Mi&&be.symbolDepth.set(Mi,No),be.trackedSymbols=uo,Ng;function p1(cf){return!Pc(cf)&&ds(cf)===cf?cf:_(be,j.cloneNode(Gr(cf,p1,void 0,kb,p1)),cf)}function kb(cf,Cb,g6,zT,iv){return cf&&cf.length===0?Ot(j.createNodeArray(void 0,cf.hasTrailingComma),cf):dn(cf,Cb,g6,zT,iv)}}function xo(Ut){if(o_(Ut)||Ut.containsError)return Ga(Ut);let Vt=ph(Ut);if(!Vt.properties.length&&!Vt.indexInfos.length){if(!Vt.callSignatures.length&&!Vt.constructSignatures.length)return be.approximateLength+=2,qn(j.createTypeLiteralNode(void 0),1);if(Vt.callSignatures.length===1&&!Vt.constructSignatures.length){let ha=Vt.callSignatures[0];return Tr(ha,184,be)}if(Vt.constructSignatures.length===1&&!Vt.callSignatures.length){let ha=Vt.constructSignatures[0];return Tr(ha,185,be)}}let Ar=Cn(Vt.constructSignatures,ha=>!!(ha.flags&4));if(Pt(Ar)){let ha=Dt(Ar,Xn=>IC(Xn));return Vt.callSignatures.length+(Vt.constructSignatures.length-Ar.length)+Vt.indexInfos.length+(be.flags&2048?Vu(Vt.properties,Xn=>!(Xn.flags&4194304)):Re(Vt.properties))&&ha.push(TD(Vt)),V(_o(ha),be)}let tn=D(be);be.flags|=4194304;let Rn=gn(Vt);tn();let xi=j.createTypeLiteralNode(Rn);return be.approximateLength+=2,qn(xi,be.flags&1024?0:1),xi}function fc(Ut){let Vt=$c(Ut);if(Ut.target===Fs||Ut.target===Io){if(be.flags&2){let Rn=V(Vt[0],be);return j.createTypeReferenceNode(Ut.target===Fs?"Array":"ReadonlyArray",[Rn])}let Ar=V(Vt[0],be),tn=j.createArrayTypeNode(Ar);return Ut.target===Fs?tn:j.createTypeOperatorNode(148,tn)}else if(Ut.target.objectFlags&8){if(Vt=ia(Vt,(Ar,tn)=>s1(Ar,!!(Ut.target.elementFlags[tn]&2))),Vt.length>0){let Ar=yb(Ut),tn=Nt(Vt.slice(0,Ar),be);if(tn){let{labeledElementDeclarations:Rn}=Ut.target;for(let ha=0;ha<tn.length;ha++){let Mi=Ut.target.elementFlags[ha],Xn=Rn?.[ha];Xn?tn[ha]=j.createNamedTupleMember(Mi&12?j.createToken(26):void 0,j.createIdentifier(ka(nEe(Xn))),Mi&2?j.createToken(58):void 0,Mi&4?j.createArrayTypeNode(tn[ha]):tn[ha]):tn[ha]=Mi&12?j.createRestTypeNode(Mi&4?j.createArrayTypeNode(tn[ha]):tn[ha]):Mi&2?j.createOptionalTypeNode(tn[ha]):tn[ha]}let xi=qn(j.createTupleTypeNode(tn),1);return Ut.target.readonly?j.createTypeOperatorNode(148,xi):xi}}if(be.encounteredError||be.flags&524288){let Ar=qn(j.createTupleTypeNode([]),1);return Ut.target.readonly?j.createTypeOperatorNode(148,Ar):Ar}be.encounteredError=!0;return}else{if(be.flags&2048&&Ut.symbol.valueDeclaration&&Ri(Ut.symbol.valueDeclaration)&&!ub(Ut.symbol,be.enclosingDeclaration))return Lo(Ut);{let Ar=Ut.target.outerTypeParameters,tn=0,Rn;if(Ar){let Xn=Ar.length;for(;tn<Xn;){let Aa=tn,hs=VZe(Ar[tn]);do tn++;while(tn<Xn&&VZe(Ar[tn])===hs);if(!dI(Ar,Vt,Aa,tn)){let No=Nt(Vt.slice(Aa,tn),be),uo=D(be);be.flags|=16;let nl=Sn(hs,be,788968,No);uo(),Rn=Rn?lt(Rn,nl):nl}}}let xi;if(Vt.length>0){let Xn=0;if(Ut.target.typeParameters&&(Xn=Math.min(Ut.target.typeParameters.length,Vt.length),(ly(Ut,sae(!1))||ly(Ut,fet(!1))||ly(Ut,Y$(!1))||ly(Ut,pet(!1)))&&(!Ut.node||!W_(Ut.node)||!Ut.node.typeArguments||Ut.node.typeArguments.length<Xn)))for(;Xn>0;){let Aa=Vt[Xn-1],hs=Ut.target.typeParameters[Xn-1],No=Ew(hs);if(!No||!o0(Aa,No))break;Xn--}xi=Nt(Vt.slice(tn,Xn),be)}let ha=D(be);be.flags|=16;let Mi=Sn(Ut.symbol,be,788968,xi);return ha(),Rn?lt(Rn,Mi):Mi}}}function lt(Ut,Vt){if(jh(Ut)){let Ar=Ut.typeArguments,tn=Ut.qualifier;tn&&(Ye(tn)?Ar!==Lk(tn)&&(tn=F1(j.cloneNode(tn),Ar)):Ar!==Lk(tn.right)&&(tn=j.updateQualifiedName(tn,tn.left,F1(j.cloneNode(tn.right),Ar)))),Ar=Vt.typeArguments;let Rn=St(Vt);for(let xi of Rn)tn=tn?j.createQualifiedName(tn,xi):xi;return j.updateImportTypeNode(Ut,Ut.argument,Ut.attributes,tn,Ar,Ut.isTypeOf)}else{let Ar=Ut.typeArguments,tn=Ut.typeName;Ye(tn)?Ar!==Lk(tn)&&(tn=F1(j.cloneNode(tn),Ar)):Ar!==Lk(tn.right)&&(tn=j.updateQualifiedName(tn,tn.left,F1(j.cloneNode(tn.right),Ar))),Ar=Vt.typeArguments;let Rn=St(Vt);for(let xi of Rn)tn=j.createQualifiedName(tn,xi);return j.updateTypeReferenceNode(Ut,tn,Ar)}}function St(Ut){let Vt=Ut.typeName,Ar=[];for(;!Ye(Vt);)Ar.unshift(Vt.right),Vt=Vt.left;return Ar.unshift(Vt),Ar}function xr(Ut,Vt,Ar){if(Ut.components&&sn(Ut.components,Rn=>{var xi;return!!(Rn.name&&po(Rn.name)&&Tc(Rn.name.expression)&&Vt.enclosingDeclaration&&((xi=ED(Rn.name.expression,Vt.enclosingDeclaration,!1))==null?void 0:xi.accessibility)===0)})){let Rn=Cn(Ut.components,xi=>!KA(xi));return Dt(Rn,xi=>(pc(xi.name.expression,Vt.enclosingDeclaration,Vt),_(Vt,j.createPropertySignature(Ut.isReadonly?[j.createModifier(148)]:void 0,xi.name,(vf(xi)||is(xi)||yg(xi)||wl(xi)||Sv(xi)||kh(xi))&&xi.questionToken?j.createToken(58):void 0,Ar||V(An(xi.symbol),Vt)),xi)))}return[Dr(Ut,Vt,Ar)]}function gn(Ut){if(J(be))return be.flags&1?[$4(j.createNotEmittedTypeElement(),3,"elided")]:[j.createPropertySignature(void 0,"...",void 0,void 0)];let Vt=[];for(let Rn of Ut.callSignatures)Vt.push(Tr(Rn,179,be));for(let Rn of Ut.constructSignatures)Rn.flags&4||Vt.push(Tr(Rn,180,be));for(let Rn of Ut.indexInfos)Vt.push(...xr(Rn,be,Ut.objectFlags&1024?ue(be):void 0));let Ar=Ut.properties;if(!Ar)return Vt;let tn=0;for(let Rn of Ar){if(tn++,be.flags&2048){if(Rn.flags&4194304)continue;fm(Rn)&6&&be.tracker.reportPrivateInBaseOfClassExpression&&be.tracker.reportPrivateInBaseOfClassExpression(ka(Rn.escapedName))}if(J(be)&&tn+2<Ar.length-1){if(be.flags&1){let xi=Vt.pop();Vt.push($4(xi,3,`... ${Ar.length-tn} more elided ...`))}else Vt.push(j.createPropertySignature(void 0,`... ${Ar.length-tn} more ...`,void 0,void 0));De(Ar[Ar.length-1],be,Vt);break}De(Rn,be,Vt)}return Vt.length?Vt:void 0}}function ue(Ie){return Ie.approximateLength+=3,Ie.flags&1?F2(j.createKeywordTypeNode(133),3,"elided"):j.createTypeReferenceNode(j.createIdentifier("..."),void 0)}function Fe(Ie,be){var Kt;return!!(Tl(Ie)&8192)&&(Ta(be.reverseMappedStack,Ie)||((Kt=be.reverseMappedStack)==null?void 0:Kt[0])&&!(oi(ao(be.reverseMappedStack).links.propertyType)&16)||Lr());function Lr(){var un;if((((un=be.reverseMappedStack)==null?void 0:un.length)??0)<3)return!1;for(let bn=0;bn<3;bn++)if(be.reverseMappedStack[be.reverseMappedStack.length-1-bn].links.mappedType.symbol!==Ie.links.mappedType.symbol)return!1;return!0}}function De(Ie,be,Kt){var sr;let Lr=!!(Tl(Ie)&8192),un=Fe(Ie,be)?Qe:Xx(Ie),bn=be.enclosingDeclaration;if(be.enclosingDeclaration=void 0,be.tracker.canTrackSymbol&&wj(Ie.escapedName))if(Ie.declarations){let xo=ho(Ie.declarations);if(KA(xo))if(Vn(xo)){let fc=ls(xo);fc&&Nc(fc)&&I5(fc.argumentExpression)&&pc(fc.argumentExpression,bn,be)}else pc(xo.name.expression,bn,be)}else be.tracker.reportNonSerializableProperty(ja(Ie));be.enclosingDeclaration=Ie.valueDeclaration||((sr=Ie.declarations)==null?void 0:sr[0])||bn;let $i=nu(Ie,be);if(be.enclosingDeclaration=bn,be.approximateLength+=Ml(Ie).length+1,Ie.flags&98304){let xo=fb(Ie);if(un!==xo&&!et(un)&&!et(xo)){let fc=Fa(Ie).mapper,lt=Zc(Ie,177),St=Vd(lt);Kt.push(_t(be,Tr(fc?Mw(St,fc):St,177,be,{name:$i}),lt));let xr=Zc(Ie,178),gn=Vd(xr);Kt.push(_t(be,Tr(fc?Mw(gn,fc):gn,178,be,{name:$i}),xr));return}}let ra=Ie.flags&16777216?j.createToken(58):void 0;if(Ie.flags&8208&&!gb(un).length&&!gh(Ie)){let xo=Ns(_u(un,fc=>!(fc.flags&32768)),0);for(let fc of xo){let lt=Tr(fc,173,be,{name:$i,questionToken:ra});Kt.push(bo(lt,fc.declaration||Ie.valueDeclaration))}if(xo.length||!ra)return}let Ts;Fe(Ie,be)?Ts=ue(be):(Lr&&(be.reverseMappedStack||(be.reverseMappedStack=[]),be.reverseMappedStack.push(Ie)),Ts=un?JT(be,void 0,un,Ie):j.createKeywordTypeNode(133),Lr&&be.reverseMappedStack.pop());let Ga=gh(Ie)?[j.createToken(148)]:void 0;Ga&&(be.approximateLength+=9);let Lo=j.createPropertySignature(Ga,$i,ra,Ts);Kt.push(bo(Lo,Ie.valueDeclaration));function bo(xo,fc){var lt;let St=(lt=Ie.declarations)==null?void 0:lt.find(xr=>xr.kind===348);if(St){let xr=EF(St.comment);xr&&FS(xo,[{kind:3,text:`*
|
|
* `+xr.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else fc&&_t(be,xo,fc);return xo}}function _t(Ie,be,Kt){return Ie.enclosingFile&&Ie.enclosingFile===rn(Kt)?yu(be,Kt):be}function Nt(Ie,be,Kt){if(Pt(Ie)){if(J(be))if(Kt){if(Ie.length>2)return[V(Ie[0],be),be.flags&1?F2(j.createKeywordTypeNode(133),3,`... ${Ie.length-2} more elided ...`):j.createTypeReferenceNode(`... ${Ie.length-2} more ...`,void 0),V(Ie[Ie.length-1],be)]}else return[be.flags&1?F2(j.createKeywordTypeNode(133),3,"elided"):j.createTypeReferenceNode("...",void 0)];let Lr=!(be.flags&64)?Zl():void 0,un=[],bn=0;for(let $i of Ie){if(bn++,J(be)&&bn+2<Ie.length-1){un.push(be.flags&1?F2(j.createKeywordTypeNode(133),3,`... ${Ie.length-bn} more elided ...`):j.createTypeReferenceNode(`... ${Ie.length-bn} more ...`,void 0));let Ts=V(Ie[Ie.length-1],be);Ts&&un.push(Ts);break}be.approximateLength+=2;let ra=V($i,be);ra&&(un.push(ra),Lr&&qge(ra)&&Lr.add(ra.typeName.escapedText,[$i,un.length-1]))}if(Lr){let $i=D(be);be.flags|=64,Lr.forEach(ra=>{if(!Jge(ra,([Ts],[Ga])=>zt(Ts,Ga)))for(let[Ts,Ga]of ra)un[Ga]=V(Ts,be)}),$i()}return un}}function zt(Ie,be){return Ie===be||!!Ie.symbol&&Ie.symbol===be.symbol||!!Ie.aliasSymbol&&Ie.aliasSymbol===be.aliasSymbol}function Dr(Ie,be,Kt){let sr=tme(Ie)||"x",Lr=V(Ie.keyType,be),un=j.createParameterDeclaration(void 0,void 0,sr,void 0,Lr,void 0);return Kt||(Kt=V(Ie.type||Qe,be)),!Ie.type&&!(be.flags&2097152)&&(be.encounteredError=!0),be.approximateLength+=sr.length+4,j.createIndexSignature(Ie.isReadonly?[j.createToken(148)]:void 0,[un],Kt)}function Tr(Ie,be,Kt,sr){var Lr;let un,bn,$i=vZe(Ie,!0)[0],ra=xn(Kt,Ie.declaration,$i,Ie.typeParameters,Ie.parameters,Ie.mapper);Kt.approximateLength+=3,Kt.flags&32&&Ie.target&&Ie.mapper&&Ie.target.typeParameters?bn=Ie.target.typeParameters.map(lt=>V(Ma(lt,Ie.mapper),Kt)):un=Ie.typeParameters&&Ie.typeParameters.map(lt=>ki(lt,Kt));let Ts=D(Kt);Kt.flags&=-257;let Ga=(Pt($i,lt=>lt!==$i[$i.length-1]&&!!(Tl(lt)&32768))?Ie.parameters:$i).map(lt=>os(lt,Kt,be===176)),Lo=Kt.flags&33554432?void 0:Fr(Ie,Kt);Lo&&Ga.unshift(Lo),Ts();let bo=Sd(Kt,Ie),xo=sr?.modifiers;if(be===185&&Ie.flags&4){let lt=Ih(xo);xo=j.createModifiersFromModifierFlags(lt|64)}let fc=be===179?j.createCallSignature(un,Ga,bo):be===180?j.createConstructSignature(un,Ga,bo):be===173?j.createMethodSignature(xo,sr?.name??j.createIdentifier(""),sr?.questionToken,un,Ga,bo):be===174?j.createMethodDeclaration(xo,void 0,sr?.name??j.createIdentifier(""),void 0,un,Ga,bo,void 0):be===176?j.createConstructorDeclaration(xo,Ga,void 0):be===177?j.createGetAccessorDeclaration(xo,sr?.name??j.createIdentifier(""),Ga,bo,void 0):be===178?j.createSetAccessorDeclaration(xo,sr?.name??j.createIdentifier(""),Ga,void 0):be===181?j.createIndexSignature(xo,Ga,bo):be===317?j.createJSDocFunctionType(Ga,bo):be===184?j.createFunctionTypeNode(un,Ga,bo??j.createTypeReferenceNode(j.createIdentifier(""))):be===185?j.createConstructorTypeNode(xo,un,Ga,bo??j.createTypeReferenceNode(j.createIdentifier(""))):be===262?j.createFunctionDeclaration(xo,void 0,sr?.name?Js(sr.name,Ye):j.createIdentifier(""),un,Ga,bo,void 0):be===218?j.createFunctionExpression(xo,void 0,sr?.name?Js(sr.name,Ye):j.createIdentifier(""),un,Ga,bo,j.createBlock([])):be===219?j.createArrowFunction(xo,un,Ga,bo,void 0,j.createBlock([])):I.assertNever(be);if(bn&&(fc.typeArguments=j.createNodeArray(bn)),((Lr=Ie.declaration)==null?void 0:Lr.kind)===323&&Ie.declaration.parent.kind===339){let lt=cl(Ie.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(St=>St.replace(/^\s+/," ")).join(`
|
|
`);F2(fc,3,lt,!0)}return ra?.(),fc}function En(Ie){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let be,Kt,sr=!1,Lr=Ie.tracker,un=Ie.trackedSymbols;Ie.trackedSymbols=void 0;let bn=Ie.encounteredError;return Ie.tracker=new wve(Ie,{...Lr.inner,reportCyclicStructureError(){$i(()=>Lr.reportCyclicStructureError())},reportInaccessibleThisError(){$i(()=>Lr.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){$i(()=>Lr.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(Ga){$i(()=>Lr.reportLikelyUnsafeImportRequiredError(Ga))},reportNonSerializableProperty(Ga){$i(()=>Lr.reportNonSerializableProperty(Ga))},reportPrivateInBaseOfClassExpression(Ga){$i(()=>Lr.reportPrivateInBaseOfClassExpression(Ga))},trackSymbol(Ga,Lo,bo){return(be??(be=[])).push([Ga,Lo,bo]),!1},moduleResolverHost:Ie.tracker.moduleResolverHost},Ie.tracker.moduleResolverHost),{startRecoveryScope:ra,finalizeBoundary:Ts,markError:$i,hadError:()=>sr};function $i(Ga){sr=!0,Ga&&(Kt??(Kt=[])).push(Ga)}function ra(){let Ga=be?.length??0,Lo=Kt?.length??0;return()=>{sr=!1,be&&(be.length=Ga),Kt&&(Kt.length=Lo)}}function Ts(){return Ie.tracker=Lr,Ie.trackedSymbols=un,Ie.encounteredError=bn,Kt?.forEach(Ga=>Ga()),sr?!1:(be?.forEach(([Ga,Lo,bo])=>Ie.tracker.trackSymbol(Ga,Lo,bo)),!0)}}function xn(Ie,be,Kt,sr,Lr,un){let bn=xd(Ie),$i,ra,Ts=Ie.enclosingDeclaration,Ga=Ie.mapper;if(un&&(Ie.mapper=un),Ie.enclosingDeclaration&&be){let bo=function(xo,fc){I.assert(Ie.enclosingDeclaration);let lt;Zn(Ie.enclosingDeclaration).fakeScopeForSignatureDeclaration===xo?lt=Ie.enclosingDeclaration:Ie.enclosingDeclaration.parent&&Zn(Ie.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===xo&&(lt=Ie.enclosingDeclaration.parent),I.assertOptionalNode(lt,Cs);let St=lt?.locals??Qs(),xr,gn;if(fc((Ut,Vt)=>{if(lt){let Ar=St.get(Ut);Ar?gn=Zr(gn,{name:Ut,oldSymbol:Ar}):xr=Zr(xr,Ut)}St.set(Ut,Vt)}),lt)return function(){Ge(xr,Vt=>St.delete(Vt)),Ge(gn,Vt=>St.set(Vt.name,Vt.oldSymbol))};{let Ut=j.createBlock(ce);Zn(Ut).fakeScopeForSignatureDeclaration=xo,Ut.locals=St,Xo(Ut,Ie.enclosingDeclaration),Ie.enclosingDeclaration=Ut}};var Lo=bo;$i=Pt(Kt)?bo("params",xo=>{if(Kt)for(let fc=0;fc<Kt.length;fc++){let lt=Kt[fc],St=Lr?.[fc];Lr&&St!==lt?(xo(lt.escapedName,oe),St&&xo(St.escapedName,oe)):Ge(lt.declarations,xr=>{if(Da(xr)&&Os(xr.name))return gn(xr.name),!0;return;function gn(Vt){Ge(Vt.elements,Ar=>{switch(Ar.kind){case 232:return;case 208:return Ut(Ar);default:return I.assertNever(Ar)}})}function Ut(Vt){if(Os(Vt.name))return gn(Vt.name);let Ar=ei(Vt);xo(Ar.escapedName,Ar)}})||xo(lt.escapedName,lt)}}):void 0,Ie.flags&4&&Pt(sr)&&(ra=bo("typeParams",xo=>{for(let fc of sr??ce){let lt=Fo(fc,Ie).escapedText;xo(lt,fc.symbol)}}))}return()=>{$i?.(),ra?.(),bn(),Ie.enclosingDeclaration=Ts,Ie.mapper=Ga}}function Fr(Ie,be){if(Ie.thisParameter)return os(Ie.thisParameter,be);if(Ie.declaration&&jn(Ie.declaration)){let Kt=cq(Ie.declaration);if(Kt&&Kt.typeExpression)return j.createParameterDeclaration(void 0,void 0,"this",void 0,V(c(be,Kt.typeExpression),be))}}function kr(Ie,be,Kt){let sr=D(be);be.flags&=-513;let Lr=j.createModifiersFromModifierFlags(MCe(Ie)),un=Fo(Ie,be),bn=Ew(Ie),$i=bn&&V(bn,be);return sr(),j.createTypeParameterDeclaration(Lr,un,Kt,$i)}function Un(Ie,be,Kt){return be&&c(Kt,be)===Ie&&Te.tryReuseExistingTypeNode(Kt,be)||V(Ie,Kt)}function ki(Ie,be,Kt=Wf(Ie)){let sr=Kt&&Un(Kt,eae(Ie),be);return kr(Ie,be,sr)}function Pa(Ie,be){let Kt=Ie.kind===2||Ie.kind===3?j.createToken(131):void 0,sr=Ie.kind===1||Ie.kind===3?qn(j.createIdentifier(Ie.parameterName),16777216):j.createThisTypeNode(),Lr=Ie.type&&V(Ie.type,be);return j.createTypePredicateNode(Kt,sr,Lr)}function ri(Ie){let be=Zc(Ie,169);if(be)return be;if(!Tv(Ie))return Zc(Ie,341)}function os(Ie,be,Kt){let sr=ri(Ie),Lr=An(Ie),un=JT(be,sr,Lr,Ie),bn=!(be.flags&8192)&&Kt&&sr&&$m(sr)?Dt(u2(sr),j.cloneNode):void 0,ra=sr&&Ey(sr)||Tl(Ie)&32768?j.createToken(26):void 0,Ts=Ms(Ie,sr,be),Lo=sr&&Ej(sr)||Tl(Ie)&16384?j.createToken(58):void 0,bo=j.createParameterDeclaration(bn,ra,Ts,Lo,un,void 0);return be.approximateLength+=Ml(Ie).length+3,bo}function Ms(Ie,be,Kt){return be&&be.name?be.name.kind===80?qn(j.cloneNode(be.name),16777216):be.name.kind===166?qn(j.cloneNode(be.name.right),16777216):sr(be.name):Ml(Ie);function sr(Lr){return un(Lr);function un(bn){Kt.tracker.canTrackSymbol&&po(bn)&&Pke(bn)&&pc(bn.expression,Kt.enclosingDeclaration,Kt);let $i=Gr(bn,un,void 0,void 0,un);return Do($i)&&($i=j.updateBindingElement($i,$i.dotDotDotToken,$i.propertyName,$i.name,void 0)),Pc($i)||($i=j.cloneNode($i)),qn($i,16777217)}}}function pc(Ie,be,Kt){if(!Kt.tracker.canTrackSymbol)return;let sr=Af(Ie),Lr=Ct(be,sr.escapedText,1160127,void 0,!0);if(Lr)Kt.tracker.trackSymbol(Lr,be,111551);else{let un=Ct(sr,sr.escapedText,1160127,void 0,!0);un&&Kt.tracker.trackSymbol(un,be,111551)}}function bs(Ie,be,Kt,sr){return be.tracker.trackSymbol(Ie,be.enclosingDeclaration,Kt),of(Ie,be,Kt,sr)}function of(Ie,be,Kt,sr){let Lr;return!(Ie.flags&262144)&&(be.enclosingDeclaration||be.flags&64)&&!(be.internalFlags&4)?(Lr=I.checkDefined(bn(Ie,Kt,!0)),I.assert(Lr&&Lr.length>0)):Lr=[Ie],Lr;function bn($i,ra,Ts){let Ga=Hx($i,be.enclosingDeclaration,ra,!!(be.flags&128)),Lo;if(!Ga||xT(Ga[0],be.enclosingDeclaration,Ga.length===1?ra:ay(ra))){let xo=DC(Ga?Ga[0]:$i,be.enclosingDeclaration,ra);if(Re(xo)){Lo=xo.map(St=>Pt(St.declarations,xw)?Yr(St,be):void 0);let fc=xo.map((St,xr)=>xr);fc.sort(bo);let lt=fc.map(St=>xo[St]);for(let St of lt){let xr=bn(St,ay(ra),!1);if(xr){if(St.exports&&St.exports.get("export=")&&Ud(St.exports.get("export="),$i)){Ga=xr;break}Ga=xr.concat(Ga||[Wd(St,$i)||$i]);break}}}}if(Ga)return Ga;if(Ts||!($i.flags&6144))return!Ts&&!sr&&Ge($i.declarations,xw)?void 0:[$i];function bo(xo,fc){let lt=Lo[xo],St=Lo[fc];if(lt&&St){let xr=pd(St);return pd(lt)===xr?uW(lt)-uW(St):xr?-1:1}return 0}}}function op(Ie,be){let Kt;return d6(Ie).flags&524384&&(Kt=j.createNodeArray(Dt(Pg(Ie),Lr=>ki(Lr,be)))),Kt}function bl(Ie,be,Kt){var sr;I.assert(Ie&&0<=be&&be<Ie.length);let Lr=Ie[be],un=co(Lr);if((sr=Kt.typeParameterSymbolList)!=null&&sr.has(un))return;Kt.mustCreateTypeParameterSymbolList&&(Kt.mustCreateTypeParameterSymbolList=!1,Kt.typeParameterSymbolList=new Set(Kt.typeParameterSymbolList)),Kt.typeParameterSymbolList.add(un);let bn;if(Kt.flags&512&&be<Ie.length-1){let $i=Lr,ra=Ie[be+1];if(Tl(ra)&1){let Ts=on($i.flags&2097152?pu($i):$i);bn=Nt(Dt(Ts,Ga=>vb(Ga,ra.links.mapper)),Kt)}else bn=op(Lr,Kt)}return bn}function en(Ie){return j2(Ie.objectType)?en(Ie.objectType):Ie}function Yr(Ie,be,Kt){let sr=Zc(Ie,307);if(!sr){let Lo=jr(Ie.declarations,bo=>SD(bo,Ie));Lo&&(sr=Zc(Lo,307))}if(sr&&sr.moduleName!==void 0)return sr.moduleName;if(!sr&&xve.test(Ie.escapedName))return Ie.escapedName.substring(1,Ie.escapedName.length-1);if(!be.enclosingFile||!be.tracker.moduleResolverHost)return xve.test(Ie.escapedName)?Ie.escapedName.substring(1,Ie.escapedName.length-1):rn(pQ(Ie)).fileName;let Lr=al(be.enclosingDeclaration),un=Cme(Lr)?GP(Lr):void 0,bn=be.enclosingFile,$i=Kt||un&&e.getModeForUsageLocation(bn,un)||bn&&e.getDefaultResolutionModeForFile(bn),ra=_3(bn.path,$i),Ts=Fa(Ie),Ga=Ts.specifierCache&&Ts.specifierCache.get(ra);if(!Ga){let Lo=!!z.outFile,{moduleResolverHost:bo}=be.tracker,xo=Lo?{...z,baseUrl:bo.getCommonSourceDirectory()}:z;Ga=ho(U9e(Ie,vn,xo,bn,bo,{importModuleSpecifierPreference:Lo?"non-relative":"project-relative",importModuleSpecifierEnding:Lo?"minimal":$i===99?"js":void 0},{overrideImportMode:Kt})),Ts.specifierCache??(Ts.specifierCache=new Map),Ts.specifierCache.set(ra,Ga)}return Ga}function oa(Ie){let be=j.createIdentifier(ka(Ie.escapedName));return Ie.parent?j.createQualifiedName(oa(Ie.parent),be):be}function Sn(Ie,be,Kt,sr){let Lr=bs(Ie,be,Kt,!(be.flags&16384)),un=Kt===111551;if(Pt(Lr[0].declarations,xw)){let ra=Lr.length>1?$i(Lr,Lr.length-1,1):void 0,Ts=sr||bl(Lr,0,be),Ga=rn(al(be.enclosingDeclaration)),Lo=JF(Lr[0]),bo,xo;if((Xp(z)===3||Xp(z)===99)&&Lo?.impliedNodeFormat===99&&Lo.impliedNodeFormat!==Ga?.impliedNodeFormat&&(bo=Yr(Lr[0],be,99),xo=j.createImportAttributes(j.createNodeArray([j.createImportAttribute(j.createStringLiteral("resolution-mode"),j.createStringLiteral("import"))]))),bo||(bo=Yr(Lr[0],be)),!(be.flags&67108864)&&Xp(z)!==1&&bo.includes("/node_modules/")){let lt=bo;if(Xp(z)===3||Xp(z)===99){let St=Ga?.impliedNodeFormat===99?1:99;bo=Yr(Lr[0],be,St),bo.includes("/node_modules/")?bo=lt:xo=j.createImportAttributes(j.createNodeArray([j.createImportAttribute(j.createStringLiteral("resolution-mode"),j.createStringLiteral(St===99?"import":"require"))]))}xo||(be.encounteredError=!0,be.tracker.reportLikelyUnsafeImportRequiredError&&be.tracker.reportLikelyUnsafeImportRequiredError(lt))}let fc=j.createLiteralTypeNode(j.createStringLiteral(bo));if(be.approximateLength+=bo.length+10,!ra||Of(ra)){if(ra){let lt=Ye(ra)?ra:ra.right;F1(lt,void 0)}return j.createImportTypeNode(fc,xo,ra,Ts,un)}else{let lt=en(ra),St=lt.objectType.typeName;return j.createIndexedAccessTypeNode(j.createImportTypeNode(fc,xo,St,Ts,un),lt.indexType)}}let bn=$i(Lr,Lr.length-1,0);if(j2(bn))return bn;if(un)return j.createTypeQueryNode(bn);{let ra=Ye(bn)?bn:bn.right,Ts=Lk(ra);return F1(ra,void 0),j.createTypeReferenceNode(bn,Ts)}function $i(ra,Ts,Ga){let Lo=Ts===ra.length-1?sr:bl(ra,Ts,be),bo=ra[Ts],xo=ra[Ts-1],fc;if(Ts===0)be.flags|=16777216,fc=kT(bo,be),be.approximateLength+=(fc?fc.length:0)+1,be.flags^=16777216;else if(xo&&nd(xo)){let St=nd(xo);Lu(St,(xr,gn)=>{if(Ud(xr,bo)&&!wj(gn)&&gn!=="export=")return fc=ka(gn),!0})}if(fc===void 0){let St=jr(bo.declarations,ls);if(St&&po(St)&&Of(St.expression)){let xr=$i(ra,Ts-1,Ga);return Of(xr)?j.createIndexedAccessTypeNode(j.createParenthesizedType(j.createTypeQueryNode(xr)),j.createTypeQueryNode(St.expression)):xr}fc=kT(bo,be)}if(be.approximateLength+=fc.length+1,!(be.flags&16)&&xo&&Xy(xo)&&Xy(xo).get(bo.escapedName)&&Ud(Xy(xo).get(bo.escapedName),bo)){let St=$i(ra,Ts-1,Ga);return j2(St)?j.createIndexedAccessTypeNode(St,j.createLiteralTypeNode(j.createStringLiteral(fc))):j.createIndexedAccessTypeNode(j.createTypeReferenceNode(St,Lo),j.createLiteralTypeNode(j.createStringLiteral(fc)))}let lt=qn(j.createIdentifier(fc),16777216);if(Lo&&F1(lt,j.createNodeArray(Lo)),lt.symbol=bo,Ts>Ga){let St=$i(ra,Ts-1,Ga);return Of(St)?j.createQualifiedName(St,lt):I.fail("Impossible construct - an export of an indexed access cannot be reachable")}return lt}}function Za(Ie,be,Kt){let sr=Ct(be.enclosingDeclaration,Ie,788968,void 0,!1);return sr&&sr.flags&262144?sr!==Kt.symbol:!1}function Fo(Ie,be){var Kt,sr,Lr,un;if(be.flags&4&&be.typeParameterNames){let ra=be.typeParameterNames.get(ap(Ie));if(ra)return ra}let bn=Mc(Ie.symbol,be,788968,!0);if(!(bn.kind&80))return j.createIdentifier("(Missing type parameter)");let $i=(sr=(Kt=Ie.symbol)==null?void 0:Kt.declarations)==null?void 0:sr[0];if($i&&Hc($i)&&(bn=_(be,bn,$i.name)),be.flags&4){let ra=bn.escapedText,Ts=((Lr=be.typeParameterNamesByTextNextNameCount)==null?void 0:Lr.get(ra))||0,Ga=ra;for(;(un=be.typeParameterNamesByText)!=null&&un.has(Ga)||Za(Ga,be,Ie);)Ts++,Ga=`${ra}_${Ts}`;if(Ga!==ra){let Lo=Lk(bn);bn=j.createIdentifier(Ga),F1(bn,Lo)}be.mustCreateTypeParametersNamesLookups&&(be.mustCreateTypeParametersNamesLookups=!1,be.typeParameterNames=new Map(be.typeParameterNames),be.typeParameterNamesByTextNextNameCount=new Map(be.typeParameterNamesByTextNextNameCount),be.typeParameterNamesByText=new Set(be.typeParameterNamesByText)),be.typeParameterNamesByTextNextNameCount.set(ra,Ts),be.typeParameterNames.set(ap(Ie),bn),be.typeParameterNamesByText.add(Ga)}return bn}function Mc(Ie,be,Kt,sr){let Lr=bs(Ie,be,Kt);return sr&&Lr.length!==1&&!be.encounteredError&&!(be.flags&65536)&&(be.encounteredError=!0),un(Lr,Lr.length-1);function un(bn,$i){let ra=bl(bn,$i,be),Ts=bn[$i];$i===0&&(be.flags|=16777216);let Ga=kT(Ts,be);$i===0&&(be.flags^=16777216);let Lo=qn(j.createIdentifier(Ga),16777216);return ra&&F1(Lo,j.createNodeArray(ra)),Lo.symbol=Ts,$i>0?j.createQualifiedName(un(bn,$i-1),Lo):Lo}}function du(Ie,be,Kt){let sr=bs(Ie,be,Kt);return Lr(sr,sr.length-1);function Lr(un,bn){let $i=bl(un,bn,be),ra=un[bn];bn===0&&(be.flags|=16777216);let Ts=kT(ra,be);bn===0&&(be.flags^=16777216);let Ga=Ts.charCodeAt(0);if(o5(Ga)&&Pt(ra.declarations,xw))return j.createStringLiteral(Yr(ra,be));if(bn===0||JX(Ts,H)){let Lo=qn(j.createIdentifier(Ts),16777216);return $i&&F1(Lo,j.createNodeArray($i)),Lo.symbol=ra,bn>0?j.createPropertyAccessExpression(Lr(un,bn-1),Lo):Lo}else{Ga===91&&(Ts=Ts.substring(1,Ts.length-1),Ga=Ts.charCodeAt(0));let Lo;if(o5(Ga)&&!(ra.flags&8)?Lo=j.createStringLiteral(qm(Ts).replace(/\\./g,bo=>bo.substring(1)),Ga===39):""+ +Ts===Ts&&(Lo=j.createNumericLiteral(+Ts)),!Lo){let bo=qn(j.createIdentifier(Ts),16777216);$i&&F1(bo,j.createNodeArray($i)),bo.symbol=ra,Lo=bo}return j.createElementAccessExpression(Lr(un,bn-1),Lo)}}}function Mo(Ie){let be=ls(Ie);return be?po(be)?!!(Wa(be.expression).flags&402653316):Nc(be)?!!(Wa(be.argumentExpression).flags&402653316):vo(be):!1}function l_(Ie){let be=ls(Ie);return!!(be&&vo(be)&&(be.singleQuote||!Pc(be)&&La(cl(be,!1),"'")))}function nu(Ie,be){let Kt=!!Re(Ie.declarations)&&sn(Ie.declarations,Mo),sr=!!Re(Ie.declarations)&&sn(Ie.declarations,l_),Lr=!!(Ie.flags&8192),un=fl(Ie,be,sr,Kt,Lr);if(un)return un;let bn=ka(Ie.escapedName);return XJ(bn,Po(z),sr,Kt,Lr)}function fl(Ie,be,Kt,sr,Lr){let un=Fa(Ie).nameType;if(un){if(un.flags&384){let bn=""+un.value;return!m_(bn,Po(z))&&(sr||!Mv(bn))?j.createStringLiteral(bn,!!Kt):Mv(bn)&&La(bn,"-")?j.createComputedPropertyName(j.createPrefixUnaryExpression(41,j.createNumericLiteral(-bn))):XJ(bn,Po(z),Kt,sr,Lr)}if(un.flags&8192)return j.createComputedPropertyName(du(un.symbol,be,111551))}}function xd(Ie){let be=Ie.mustCreateTypeParameterSymbolList,Kt=Ie.mustCreateTypeParametersNamesLookups;Ie.mustCreateTypeParameterSymbolList=!0,Ie.mustCreateTypeParametersNamesLookups=!0;let sr=Ie.typeParameterNames,Lr=Ie.typeParameterNamesByText,un=Ie.typeParameterNamesByTextNextNameCount,bn=Ie.typeParameterSymbolList;return()=>{Ie.typeParameterNames=sr,Ie.typeParameterNamesByText=Lr,Ie.typeParameterNamesByTextNextNameCount=un,Ie.typeParameterSymbolList=bn,Ie.mustCreateTypeParameterSymbolList=be,Ie.mustCreateTypeParametersNamesLookups=Kt}}function Jl(Ie,be){return Ie.declarations&&Ir(Ie.declarations,Kt=>!!Eat(Kt)&&(!be||!!Br(Kt,sr=>sr===be)))}function iu(Ie,be){if(!(oi(be)&4)||!W_(Ie))return!0;iae(Ie);let Kt=Zn(Ie).resolvedSymbol,sr=Kt&&zc(Kt);return!sr||sr!==be.target?!0:Re(Ie.typeArguments)>=Zy(be.target.typeParameters)}function wb(Ie){for(;Zn(Ie).fakeScopeForSignatureDeclaration;)Ie=Ie.parent;return Ie}function m6(Ie,be,Kt){return Kt.flags&8192&&Kt.symbol===Ie&&(!be.enclosingDeclaration||Pt(Ie.declarations,Lr=>rn(Lr)===be.enclosingFile))&&(be.flags|=1048576),V(Kt,be)}function JT(Ie,be,Kt,sr){var Lr;let un,bn=be&&(Da(be)||Ad(be))&&sH(be,Ie.enclosingDeclaration),$i=be??sr.valueDeclaration??Jl(sr)??((Lr=sr.declarations)==null?void 0:Lr[0]);if($i){let ra=T(Ie,sr,Kt);ox($i)?un=Te.serializeTypeOfAccessor($i,sr,Ie):nz($i)&&!Pc($i)&&!(oi(Kt)&196608)&&(un=Te.serializeTypeOfDeclaration($i,sr,Ie)),ra()}return un||(bn&&(Kt=nS(Kt)),un=m6(sr,Ie,Kt)),un??j.createKeywordTypeNode(133)}function yL(Ie,be,Kt){return Kt===be?!0:Ie&&((vf(Ie)||is(Ie))&&Ie.questionToken||Da(Ie)&&Hie(Ie))?Cm(be,524288)===Kt:!1}function Sd(Ie,be){let Kt=Ie.flags&256,sr=D(Ie);Kt&&(Ie.flags&=-257);let Lr,un=Yo(be);if(!(Kt&&Ae(un))){if(be.declaration&&!Pc(be.declaration)){let bn=ei(be.declaration),$i=T(Ie,bn,un);Lr=Te.serializeReturnTypeForSignature(be.declaration,bn,Ie),$i()}Lr||(Lr=vL(Ie,be,un))}return!Lr&&!Kt&&(Lr=j.createKeywordTypeNode(133)),sr(),Lr}function vL(Ie,be,Kt){let sr=Ie.suppressReportInferenceFallback;Ie.suppressReportInferenceFallback=!0;let Lr=Tm(be),un=Lr?Pa(Ie.mapper?Yet(Lr,Ie.mapper):Lr,Ie):V(Kt,Ie);return Ie.suppressReportInferenceFallback=sr,un}function ir(Ie,be,Kt=be.enclosingDeclaration){let sr=!1,Lr=Af(Ie);if(jn(Ie)&&(Ck(Lr)||Ev(Lr.parent)||If(Lr.parent)&&CQ(Lr.parent.left)&&Ck(Lr.parent.right)))return sr=!0,{introducesError:sr,node:Ie};let un=_8(Ie),bn;if(hx(Lr))return bn=ei(mf(Lr,!1,!1)),sy(bn,Lr,un,!1).accessibility!==0&&(sr=!0,be.tracker.reportInaccessibleThisError()),{introducesError:sr,node:$i(Ie)};if(bn=Ol(Lr,un,!0,!0),be.enclosingDeclaration&&!(bn&&bn.flags&262144)){bn=k_(bn);let ra=Ol(Lr,un,!0,!0,be.enclosingDeclaration);if(ra===oe||ra===void 0&&bn!==void 0||ra&&bn&&!Ud(k_(ra),bn))return ra!==oe&&be.tracker.reportInferenceFallback(Ie),sr=!0,{introducesError:sr,node:Ie,sym:bn};bn=ra}if(bn)return bn.flags&1&&bn.valueDeclaration&&(OS(bn.valueDeclaration)||Ad(bn.valueDeclaration))?{introducesError:sr,node:$i(Ie)}:(!(bn.flags&262144)&&!Ny(Ie)&&sy(bn,Kt,un,!1).accessibility!==0?(be.tracker.reportInferenceFallback(Ie),sr=!0):be.tracker.trackSymbol(bn,Kt,un),{introducesError:sr,node:$i(Ie)});return{introducesError:sr,node:Ie};function $i(ra){if(ra===Lr){let Ga=zc(bn),Lo=bn.flags&262144?Fo(Ga,be):j.cloneNode(ra);return Lo.symbol=bn,_(be,qn(Lo,16777216),ra)}let Ts=Gr(ra,Ga=>$i(Ga),void 0);return _(be,Ts,ra)}}function qr(Ie,be,Kt,sr){let Lr=Kt?111551:788968,un=Ol(be,Lr,!0);if(!un)return;let bn=un.flags&2097152?pu(un):un;if(sy(un,Ie.enclosingDeclaration,Lr,!1).accessibility===0)return Sn(bn,Ie,Lr,sr)}function _n(Ie,be){let Kt=c(Ie,be,!0);if(!Kt)return!1;if(jn(be)&&C0(be)){$et(be);let sr=Zn(be).resolvedSymbol;return!sr||!(!be.isTypeOf&&!(sr.flags&788968)||!(Re(be.typeArguments)>=Zy(Pg(sr))))}if(W_(be)){if(_g(be))return!1;let sr=Zn(be).resolvedSymbol;if(!sr)return!1;if(sr.flags&262144){let Lr=zc(sr);return!(Ie.mapper&&vb(Lr,Ie.mapper)!==Lr)}if(i5(be))return iu(be,Kt)&&!eet(be)&&!!(sr.flags&788968)}if(MS(be)&&be.operator===158&&be.type.kind===155){let sr=Ie.enclosingDeclaration&&wb(Ie.enclosingDeclaration);return!!Br(be,Lr=>Lr===sr)}return!0}function Dn(Ie,be,Kt){let sr=c(Ie,be);if(Kt&&!Pm(sr,Lr=>!!(Lr.flags&32768))&&_n(Ie,be)){let Lr=Te.tryReuseExistingTypeNode(Ie,be);if(Lr)return j.createUnionTypeNode([Lr,j.createKeywordTypeNode(157)])}return V(sr,Ie)}function ni(Ie,be){var Kt;let sr=Wse(j.createPropertyDeclaration,174,!0),Lr=Wse((Zt,di,Xi,Vi)=>j.createPropertySignature(Zt,di,Xi,Vi),173,!1),un=be.enclosingDeclaration,bn=[],$i=new Set,ra=[],Ts=be;be={...Ts,usedSymbolNames:new Set(Ts.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Kt=Ts.remappedSymbolReferences)==null?void 0:Kt.entries()),tracker:void 0};let Ga={...Ts.tracker.inner,trackSymbol:(Zt,di,Xi)=>{var Vi,Ci;if((Vi=be.remappedSymbolNames)!=null&&Vi.has(co(Zt)))return!1;if(sy(Zt,di,Xi,!1).accessibility===0){let eo=of(Zt,be,Xi);if(!(Zt.flags&4)){let Rs=eo[0],Ds=rn(Ts.enclosingDeclaration);Pt(Rs.declarations,cc=>rn(cc)===Ds)&&xi(Rs)}}else if((Ci=Ts.tracker.inner)!=null&&Ci.trackSymbol)return Ts.tracker.inner.trackSymbol(Zt,di,Xi);return!1}};be.tracker=new wve(be,Ga,Ts.tracker.moduleResolverHost),Lu(Ie,(Zt,di)=>{let Xi=ka(di);av(Zt,Xi)});let Lo=!be.bundled,bo=Ie.get("export=");return bo&&Ie.size>1&&bo.flags&2098688&&(Ie=Qs(),Ie.set("export=",bo)),Ar(Ie),gn(bn);function xo(Zt){return!!Zt&&Zt.kind===80}function fc(Zt){return Rl(Zt)?Cn(Dt(Zt.declarationList.declarations,ls),xo):Cn([ls(Zt)],xo)}function lt(Zt){let di=Ir(Zt,Gc),Xi=Va(Zt,cu),Vi=Xi!==-1?Zt[Xi]:void 0;if(Vi&&di&&di.isExportEquals&&Ye(di.expression)&&Ye(Vi.name)&&fi(Vi.name)===fi(di.expression)&&Vi.body&&Lh(Vi.body)){let Ci=Cn(Zt,Rs=>!!(gf(Rs)&32)),_c=Vi.name,eo=Vi.body;if(Re(Ci)&&(Vi=j.updateModuleDeclaration(Vi,Vi.modifiers,Vi.name,eo=j.updateModuleBlock(eo,j.createNodeArray([...Vi.body.statements,j.createExportDeclaration(void 0,!1,j.createNamedExports(Dt(li(Ci,Rs=>fc(Rs)),Rs=>j.createExportSpecifier(!1,void 0,Rs))),void 0)]))),Zt=[...Zt.slice(0,Xi),Vi,...Zt.slice(Xi+1)]),!Ir(Zt,Rs=>Rs!==Vi&&CF(Rs,_c))){bn=[];let Rs=!Pt(eo.statements,Ds=>Ai(Ds,32)||Gc(Ds)||tu(Ds));Ge(eo.statements,Ds=>{Mi(Ds,Rs?32:0)}),Zt=[...Cn(Zt,Ds=>Ds!==Vi&&Ds!==di),...bn]}}return Zt}function St(Zt){let di=Cn(Zt,Vi=>tu(Vi)&&!Vi.moduleSpecifier&&!!Vi.exportClause&&hm(Vi.exportClause));Re(di)>1&&(Zt=[...Cn(Zt,Ci=>!tu(Ci)||!!Ci.moduleSpecifier||!Ci.exportClause),j.createExportDeclaration(void 0,!1,j.createNamedExports(li(di,Ci=>Js(Ci.exportClause,hm).elements)),void 0)]);let Xi=Cn(Zt,Vi=>tu(Vi)&&!!Vi.moduleSpecifier&&!!Vi.exportClause&&hm(Vi.exportClause));if(Re(Xi)>1){let Vi=dS(Xi,Ci=>vo(Ci.moduleSpecifier)?">"+Ci.moduleSpecifier.text:">");if(Vi.length!==Xi.length)for(let Ci of Vi)Ci.length>1&&(Zt=[...Cn(Zt,_c=>!Ci.includes(_c)),j.createExportDeclaration(void 0,!1,j.createNamedExports(li(Ci,_c=>Js(_c.exportClause,hm).elements)),Ci[0].moduleSpecifier)])}return Zt}function xr(Zt){let di=Va(Zt,Xi=>tu(Xi)&&!Xi.moduleSpecifier&&!Xi.attributes&&!!Xi.exportClause&&hm(Xi.exportClause));if(di>=0){let Xi=Zt[di],Vi=Bi(Xi.exportClause.elements,Ci=>{if(!Ci.propertyName&&Ci.name.kind!==11){let _c=Ci.name,eo=pI(Zt),Rs=Cn(eo,Ds=>CF(Zt[Ds],_c));if(Re(Rs)&&sn(Rs,Ds=>K5(Zt[Ds]))){for(let Ds of Rs)Zt[Ds]=Ut(Zt[Ds]);return}}return Ci});Re(Vi)?Zt[di]=j.updateExportDeclaration(Xi,Xi.modifiers,Xi.isTypeOnly,j.updateNamedExports(Xi.exportClause,Vi),Xi.moduleSpecifier,Xi.attributes):jg(Zt,di)}return Zt}function gn(Zt){return Zt=lt(Zt),Zt=St(Zt),Zt=xr(Zt),un&&(ba(un)&&q_(un)||cu(un))&&(!Pt(Zt,RF)||!Cde(Zt)&&Pt(Zt,yq))&&Zt.push(_M(j)),Zt}function Ut(Zt){let di=(gf(Zt)|32)&-129;return j.replaceModifiers(Zt,di)}function Vt(Zt){let di=gf(Zt)&-33;return j.replaceModifiers(Zt,di)}function Ar(Zt,di,Xi){di||ra.push(new Map),Zt.forEach(Vi=>{tn(Vi,!1,!!Xi)}),di||(ra[ra.length-1].forEach(Vi=>{tn(Vi,!0,!!Xi)}),ra.pop())}function tn(Zt,di,Xi){oc(An(Zt));let Vi=Uo(Zt);if($i.has(co(Vi)))return;if($i.add(co(Vi)),!di||Re(Zt.declarations)&&Pt(Zt.declarations,_c=>!!Br(_c,eo=>eo===un))){let _c=xd(be);be.tracker.pushErrorFallbackNode(Ir(Zt.declarations,eo=>rn(eo)===be.enclosingFile)),Rn(Zt,di,Xi),be.tracker.popErrorFallbackNode(),_c()}}function Rn(Zt,di,Xi,Vi=Zt.escapedName){var Ci,_c,eo,Rs,Ds,cc;let Rc=ka(Vi),$f=Vi==="default";if(di&&!(be.flags&131072)&&ZP(Rc)&&!$f){be.encounteredError=!0;return}let lf=$f&&!!(Zt.flags&-113||Zt.flags&16&&Re(oc(An(Zt))))&&!(Zt.flags&2097152),bp=!lf&&!di&&ZP(Rc)&&!$f;(lf||bp)&&(di=!0);let _l=(di?0:32)|($f&&!lf?2048:0),cp=Zt.flags&1536&&Zt.flags&7&&Vi!=="export=",Td=cp&&bL(An(Zt),Zt);if((Zt.flags&8208||Td)&&Ng(An(Zt),Zt,av(Zt,Rc),_l),Zt.flags&524288&&Xn(Zt,Rc,_l),Zt.flags&98311&&Vi!=="export="&&!(Zt.flags&4194304)&&!(Zt.flags&32)&&!(Zt.flags&8192)&&!Td)if(Xi)z8(Zt)&&(bp=!1,lf=!1);else{let Ip=An(Zt),tg=av(Zt,Rc);if(Ip.symbol&&Ip.symbol!==Zt&&Ip.symbol.flags&16&&Pt(Ip.symbol.declarations,xx)&&((Ci=Ip.symbol.members)!=null&&Ci.size||(_c=Ip.symbol.exports)!=null&&_c.size))be.remappedSymbolReferences||(be.remappedSymbolReferences=new Map),be.remappedSymbolReferences.set(co(Ip.symbol),Zt),Rn(Ip.symbol,di,Xi,Vi),be.remappedSymbolReferences.delete(co(Ip.symbol));else if(!(Zt.flags&16)&&bL(Ip,Zt))Ng(Ip,Zt,tg,_l);else{let WT=Zt.flags&2?UD(Zt)?2:1:(eo=Zt.parent)!=null&&eo.valueDeclaration&&ba((Rs=Zt.parent)==null?void 0:Rs.valueDeclaration)?2:void 0,p0=lf||!(Zt.flags&4)?tg:cH(tg,Zt),sv=Zt.declarations&&Ir(Zt.declarations,Uw=>Ui(Uw));sv&&mp(sv.parent)&&sv.parent.declarations.length===1&&(sv=sv.parent.parent);let f1=(Ds=Zt.declarations)==null?void 0:Ds.find(ai);if(f1&&Vn(f1.parent)&&Ye(f1.parent.right)&&((cc=Ip.symbol)!=null&&cc.valueDeclaration)&&ba(Ip.symbol.valueDeclaration)){let Uw=tg===f1.parent.right.escapedText?void 0:f1.parent.right;Mi(j.createExportDeclaration(void 0,!1,j.createNamedExports([j.createExportSpecifier(!1,Uw,tg)])),0),be.tracker.trackSymbol(Ip.symbol,be.enclosingDeclaration,111551)}else{let Uw=_(be,j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(p0,void 0,JT(be,void 0,Ip,Zt))],WT)),sv);Mi(Uw,p0!==tg?_l&-33:_l),p0!==tg&&!di&&(Mi(j.createExportDeclaration(void 0,!1,j.createNamedExports([j.createExportSpecifier(!1,p0,tg)])),0),bp=!1,lf=!1)}}}if(Zt.flags&384&&nl(Zt,Rc,_l),Zt.flags&32&&(Zt.flags&4&&Zt.valueDeclaration&&Vn(Zt.valueDeclaration.parent)&&vu(Zt.valueDeclaration.parent.right)?zT(Zt,av(Zt,Rc),_l):Cb(Zt,av(Zt,Rc),_l)),(Zt.flags&1536&&(!cp||No(Zt))||Td)&&uo(Zt,Rc,_l),Zt.flags&64&&!(Zt.flags&32)&&Aa(Zt,Rc,_l),Zt.flags&2097152&&zT(Zt,av(Zt,Rc),_l),Zt.flags&4&&Zt.escapedName==="export="&&z8(Zt),Zt.flags&8388608&&Zt.declarations)for(let Ip of Zt.declarations){let tg=wf(Ip,Ip.moduleSpecifier);tg&&Mi(j.createExportDeclaration(void 0,Ip.isTypeOnly,void 0,j.createStringLiteral(Yr(tg,be))),0)}lf?Mi(j.createExportAssignment(void 0,!1,j.createIdentifier(av(Zt,Rc))),0):bp&&Mi(j.createExportDeclaration(void 0,!1,j.createNamedExports([j.createExportSpecifier(!1,av(Zt,Rc),Rc)])),0)}function xi(Zt){if(Pt(Zt.declarations,OS))return;I.assertIsDefined(ra[ra.length-1]),cH(ka(Zt.escapedName),Zt);let di=!!(Zt.flags&2097152)&&!Pt(Zt.declarations,Xi=>!!Br(Xi,tu)||Fy(Xi)||zu(Xi)&&!M0(Xi.moduleReference));ra[di?0:ra.length-1].set(co(Zt),Zt)}function ha(Zt){return ba(Zt)&&(q_(Zt)||cm(Zt))||df(Zt)&&!Oy(Zt)}function Mi(Zt,di){if($m(Zt)){let Xi=0,Vi=be.enclosingDeclaration&&(Bm(be.enclosingDeclaration)?rn(be.enclosingDeclaration):be.enclosingDeclaration);di&32&&Vi&&(ha(Vi)||cu(Vi))&&K5(Zt)&&(Xi|=32),Lo&&!(Xi&32)&&(!Vi||!(Vi.flags&33554432))&&(B2(Zt)||Rl(Zt)||jl(Zt)||bu(Zt)||cu(Zt))&&(Xi|=128),di&2048&&(bu(Zt)||Cp(Zt)||jl(Zt))&&(Xi|=2048),Xi&&(Zt=j.replaceModifiers(Zt,Xi|gf(Zt)))}bn.push(Zt)}function Xn(Zt,di,Xi){var Vi;let Ci=nZe(Zt),_c=Fa(Zt).typeParameters,eo=Dt(_c,lf=>ki(lf,be)),Rs=(Vi=Zt.declarations)==null?void 0:Vi.find(Bm),Ds=EF(Rs?Rs.comment||Rs.parent.comment:void 0),cc=D(be);be.flags|=8388608;let Rc=be.enclosingDeclaration;be.enclosingDeclaration=Rs;let $f=Rs&&Rs.typeExpression&&JS(Rs.typeExpression)&&Te.tryReuseExistingTypeNode(be,Rs.typeExpression.type)||V(Ci,be);Mi(FS(j.createTypeAliasDeclaration(void 0,av(Zt,di),eo,$f),Ds?[{kind:3,text:`*
|
|
* `+Ds.replace(/\n/g,`
|
|
* `)+`
|
|
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Xi),cc(),be.enclosingDeclaration=Rc}function Aa(Zt,di,Xi){let Vi=Sm(Zt),Ci=Pg(Zt),_c=Dt(Ci,bp=>ki(bp,be)),eo=Fu(Vi),Rs=Re(eo)?_o(eo):void 0,Ds=li(oc(Vi),bp=>Use(bp,Rs)),cc=ZEe(0,Vi,Rs,179),Rc=ZEe(1,Vi,Rs,180),$f=Wat(Vi,Rs),lf=Re(eo)?[j.createHeritageClause(96,Bi(eo,bp=>eDe(bp,111551)))]:void 0;Mi(j.createInterfaceDeclaration(void 0,av(Zt,di),_c,lf,[...$f,...Rc,...cc,...Ds]),Xi)}function hs(Zt){let di=Ka(nd(Zt).values()),Xi=Uo(Zt);if(Xi!==Zt){let Vi=new Set(di);for(let Ci of nd(Xi).values())rd(Dl(Ci))&111551||Vi.add(Ci);di=Ka(Vi)}return Cn(di,Vi=>kb(Vi)&&m_(Vi.escapedName,99))}function No(Zt){return sn(hs(Zt),di=>!(rd(Dl(di))&111551))}function uo(Zt,di,Xi){let Vi=hs(Zt),Ci=Wb(Vi,Rs=>Rs.parent&&Rs.parent===Zt?"real":"merged"),_c=Ci.get("real")||ce,eo=Ci.get("merged")||ce;if(Re(_c)){let Rs=av(Zt,di);p1(_c,Rs,Xi,!!(Zt.flags&67108880))}if(Re(eo)){let Rs=rn(be.enclosingDeclaration),Ds=av(Zt,di),cc=j.createModuleBlock([j.createExportDeclaration(void 0,!1,j.createNamedExports(Bi(Cn(eo,Rc=>Rc.escapedName!=="export="),Rc=>{var $f,lf;let bp=ka(Rc.escapedName),_l=av(Rc,bp),cp=Rc.declarations&&zd(Rc);if(Rs&&(cp?Rs!==rn(cp):!Pt(Rc.declarations,tg=>rn(tg)===Rs))){(lf=($f=be.tracker)==null?void 0:$f.reportNonlocalAugmentation)==null||lf.call($f,Rs,Zt,Rc);return}let Td=cp&&dT(cp,!0);xi(Td||Rc);let Ip=Td?av(Td,ka(Td.escapedName)):_l;return j.createExportSpecifier(!1,bp===Ip?void 0:Ip,bp)})))]);Mi(j.createModuleDeclaration(void 0,j.createIdentifier(Ds),cc,32),0)}}function nl(Zt,di,Xi){Mi(j.createEnumDeclaration(j.createModifiersFromModifierFlags(pEe(Zt)?4096:0),av(Zt,di),Dt(Cn(oc(An(Zt)),Vi=>!!(Vi.flags&8)),Vi=>{let Ci=Vi.declarations&&Vi.declarations[0]&&L1(Vi.declarations[0])?zEe(Vi.declarations[0]):void 0;return j.createEnumMember(ka(Vi.escapedName),Ci===void 0?void 0:typeof Ci=="string"?j.createStringLiteral(Ci):j.createNumericLiteral(Ci))})),Xi)}function Ng(Zt,di,Xi,Vi){let Ci=Ns(Zt,0);for(let _c of Ci){let eo=Tr(_c,262,be,{name:j.createIdentifier(Xi)});Mi(_(be,eo,u0(_c)),Vi)}if(!(di.flags&1536&&di.exports&&di.exports.size)){let _c=Cn(oc(Zt),kb);p1(_c,Xi,Vi,!0)}}function u0(Zt){if(Zt.declaration&&Zt.declaration.parent){if(Vn(Zt.declaration.parent)&&$l(Zt.declaration.parent)===5)return Zt.declaration.parent;if(Ui(Zt.declaration.parent)&&Zt.declaration.parent.parent)return Zt.declaration.parent.parent}return Zt.declaration}function p1(Zt,di,Xi,Vi){if(Re(Zt)){let _c=Wb(Zt,_l=>!Re(_l.declarations)||Pt(_l.declarations,cp=>rn(cp)===rn(be.enclosingDeclaration))?"local":"remote").get("local")||ce,eo=US.createModuleDeclaration(void 0,j.createIdentifier(di),j.createModuleBlock([]),32);Xo(eo,un),eo.locals=Qs(Zt),eo.symbol=Zt[0].parent;let Rs=bn;bn=[];let Ds=Lo;Lo=!1;let cc={...be,enclosingDeclaration:eo},Rc=be;be=cc,Ar(Qs(_c),Vi,!0),be=Rc,Lo=Ds;let $f=bn;bn=Rs;let lf=Dt($f,_l=>Gc(_l)&&!_l.isExportEquals&&Ye(_l.expression)?j.createExportDeclaration(void 0,!1,j.createNamedExports([j.createExportSpecifier(!1,_l.expression,j.createIdentifier("default"))])):_l),bp=sn(lf,_l=>Ai(_l,32))?Dt(lf,Vt):lf;eo=j.updateModuleDeclaration(eo,eo.modifiers,eo.name,j.createModuleBlock(bp)),Mi(eo,Xi)}}function kb(Zt){return!!(Zt.flags&2887656)||!(Zt.flags&4194304||Zt.escapedName==="prototype"||Zt.valueDeclaration&&Vs(Zt.valueDeclaration)&&Ri(Zt.valueDeclaration.parent))}function cf(Zt){let di=Bi(Zt,Xi=>{let Vi=be.enclosingDeclaration;be.enclosingDeclaration=Xi;let Ci=Xi.expression;if(Tc(Ci)){if(Ye(Ci)&&fi(Ci)==="")return _c(void 0);let eo;if({introducesError:eo,node:Ci}=ir(Ci,be),eo)return _c(void 0)}return _c(j.createExpressionWithTypeArguments(Ci,Dt(Xi.typeArguments,eo=>Te.tryReuseExistingTypeNode(be,eo)||V(c(be,eo),be))));function _c(eo){return be.enclosingDeclaration=Vi,eo}});if(di.length===Zt.length)return di}function Cb(Zt,di,Xi){var Vi,Ci;let _c=(Vi=Zt.declarations)==null?void 0:Vi.find(Ri),eo=be.enclosingDeclaration;be.enclosingDeclaration=_c||eo;let Rs=Pg(Zt),Ds=Dt(Rs,hy=>ki(hy,be)),cc=id(Sm(Zt)),Rc=Fu(cc),$f=_c&&_N(_c),lf=$f&&cf($f)||Bi(zp(cc),gir),bp=An(Zt),_l=!!((Ci=bp.symbol)!=null&&Ci.valueDeclaration)&&Ri(bp.symbol.valueDeclaration),cp=_l?Go(bp):Qe,Td=[...Re(Rc)?[j.createHeritageClause(96,Dt(Rc,hy=>mir(hy,cp,di)))]:[],...Re(lf)?[j.createHeritageClause(119,lf)]:[]],Ip=Ztr(cc,Rc,oc(cc)),tg=Cn(Ip,hy=>{let W8=hy.valueDeclaration;return!!W8&&!(Gu(W8)&&Ca(W8.name))}),p0=Pt(Ip,hy=>{let W8=hy.valueDeclaration;return!!W8&&Gu(W8)&&Ca(W8.name)})?[j.createPropertyDeclaration(void 0,j.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:ce,sv=li(tg,hy=>sr(hy,!1,Rc[0])),f1=li(Cn(oc(bp),hy=>!(hy.flags&4194304)&&hy.escapedName!=="prototype"&&!kb(hy)),hy=>sr(hy,!0,cp)),lH=!_l&&!!Zt.valueDeclaration&&jn(Zt.valueDeclaration)&&!Pt(Ns(bp,1))?[j.createConstructorDeclaration(j.createModifiersFromModifierFlags(2),[],void 0)]:ZEe(1,bp,cp,176),hir=Wat(cc,Rc[0]);be.enclosingDeclaration=eo,Mi(_(be,j.createClassDeclaration(void 0,di,Ds,Td,[...hir,...f1,...lH,...sv,...p0]),Zt.declarations&&Cn(Zt.declarations,hy=>bu(hy)||vu(hy))[0]),Xi)}function g6(Zt){return jr(Zt,di=>{if(bf(di)||Yp(di))return fx(di.propertyName||di.name);if(Vn(di)||Gc(di)){let Xi=Gc(di)?di.expression:di.right;if(ai(Xi))return fi(Xi.name)}if(Xv(di)){let Xi=ls(di);if(Xi&&Ye(Xi))return fi(Xi)}})}function zT(Zt,di,Xi){var Vi,Ci,_c,eo,Rs;let Ds=zd(Zt);if(!Ds)return I.fail();let cc=Uo(dT(Ds,!0));if(!cc)return;let Rc=UF(cc)&&g6(Zt.declarations)||ka(cc.escapedName);Rc==="export="&&Ee&&(Rc="default");let $f=av(cc,Rc);switch(xi(cc),Ds.kind){case 208:if(((Ci=(Vi=Ds.parent)==null?void 0:Vi.parent)==null?void 0:Ci.kind)===260){let _l=Yr(cc.parent||cc,be),{propertyName:cp}=Ds;Mi(j.createImportDeclaration(void 0,j.createImportClause(!1,void 0,j.createNamedImports([j.createImportSpecifier(!1,cp&&Ye(cp)?j.createIdentifier(fi(cp)):void 0,j.createIdentifier(di))])),j.createStringLiteral(_l),void 0),0);break}I.failBadSyntaxKind(((_c=Ds.parent)==null?void 0:_c.parent)||Ds,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Rs=(eo=Ds.parent)==null?void 0:eo.parent)==null?void 0:Rs.kind)===226&&iv(ka(Zt.escapedName),$f);break;case 260:if(ai(Ds.initializer)){let _l=Ds.initializer,cp=j.createUniqueName(di),Td=Yr(cc.parent||cc,be);Mi(j.createImportEqualsDeclaration(void 0,!1,cp,j.createExternalModuleReference(j.createStringLiteral(Td))),0),Mi(j.createImportEqualsDeclaration(void 0,!1,j.createIdentifier(di),j.createQualifiedName(cp,_l.name)),Xi);break}case 271:if(cc.escapedName==="export="&&Pt(cc.declarations,_l=>ba(_l)&&cm(_l))){z8(Zt);break}let lf=!(cc.flags&512)&&!Ui(Ds);Mi(j.createImportEqualsDeclaration(void 0,!1,j.createIdentifier(di),lf?Mc(cc,be,-1,!1):j.createExternalModuleReference(j.createStringLiteral(Yr(cc,be)))),lf?Xi:0);break;case 270:Mi(j.createNamespaceExportDeclaration(fi(Ds.name)),0);break;case 273:{let _l=Yr(cc.parent||cc,be),cp=be.bundled?j.createStringLiteral(_l):Ds.parent.moduleSpecifier,Td=sl(Ds.parent)?Ds.parent.attributes:void 0,Ip=zh(Ds.parent);Mi(j.createImportDeclaration(void 0,j.createImportClause(Ip,j.createIdentifier(di),void 0),cp,Td),0);break}case 274:{let _l=Yr(cc.parent||cc,be),cp=be.bundled?j.createStringLiteral(_l):Ds.parent.parent.moduleSpecifier,Td=zh(Ds.parent.parent);Mi(j.createImportDeclaration(void 0,j.createImportClause(Td,void 0,j.createNamespaceImport(j.createIdentifier(di))),cp,Ds.parent.attributes),0);break}case 280:Mi(j.createExportDeclaration(void 0,!1,j.createNamespaceExport(j.createIdentifier(di)),j.createStringLiteral(Yr(cc,be))),0);break;case 276:{let _l=Yr(cc.parent||cc,be),cp=be.bundled?j.createStringLiteral(_l):Ds.parent.parent.parent.moduleSpecifier,Td=zh(Ds.parent.parent.parent);Mi(j.createImportDeclaration(void 0,j.createImportClause(Td,void 0,j.createNamedImports([j.createImportSpecifier(!1,di!==Rc?j.createIdentifier(Rc):void 0,j.createIdentifier(di))])),cp,Ds.parent.parent.parent.attributes),0);break}case 281:let bp=Ds.parent.parent.moduleSpecifier;if(bp){let _l=Ds.propertyName;_l&&Dy(_l)&&(Rc="default")}iv(ka(Zt.escapedName),bp?Rc:$f,bp&&Ho(bp)?j.createStringLiteral(bp.text):void 0);break;case 277:z8(Zt);break;case 226:case 211:case 212:Zt.escapedName==="default"||Zt.escapedName==="export="?z8(Zt):iv(di,$f);break;default:return I.failBadSyntaxKind(Ds,"Unhandled alias declaration kind in symbol serializer!")}}function iv(Zt,di,Xi){Mi(j.createExportDeclaration(void 0,!1,j.createNamedExports([j.createExportSpecifier(!1,Zt!==di?di:void 0,Zt)]),Xi),0)}function z8(Zt){var di;if(Zt.flags&4194304)return!1;let Xi=ka(Zt.escapedName),Vi=Xi==="export=",_c=Vi||Xi==="default",eo=Zt.declarations&&zd(Zt),Rs=eo&&dT(eo,!0);if(Rs&&Re(Rs.declarations)&&Pt(Rs.declarations,Ds=>rn(Ds)===rn(un))){let Ds=eo&&(Gc(eo)||Vn(eo)?MQ(eo):Fme(eo)),cc=Ds&&Tc(Ds)?drr(Ds):void 0,Rc=cc&&Ol(cc,-1,!0,!0,un);(Rc||Rs)&&xi(Rc||Rs);let $f=be.tracker.disableTrackSymbol;if(be.tracker.disableTrackSymbol=!0,_c)bn.push(j.createExportAssignment(void 0,Vi,du(Rs,be,-1)));else if(cc===Ds&&cc)iv(Xi,fi(cc));else if(Ds&&vu(Ds))iv(Xi,av(Rs,Ml(Rs)));else{let lf=cH(Xi,Zt);Mi(j.createImportEqualsDeclaration(void 0,!1,j.createIdentifier(lf),Mc(Rs,be,-1,!1)),0),iv(Xi,lf)}return be.tracker.disableTrackSymbol=$f,!0}else{let Ds=cH(Xi,Zt),cc=ad(An(Uo(Zt)));if(bL(cc,Zt))Ng(cc,Zt,Ds,_c?0:32);else{let Rc=((di=be.enclosingDeclaration)==null?void 0:di.kind)===267&&(!(Zt.flags&98304)||Zt.flags&65536)?1:2,$f=j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(Ds,void 0,JT(be,void 0,cc,Zt))],Rc));Mi($f,Rs&&Rs.flags&4&&Rs.escapedName==="export="?128:Xi===Ds?32:0)}return _c?(bn.push(j.createExportAssignment(void 0,Vi,j.createIdentifier(Ds))),!0):Xi!==Ds?(iv(Xi,Ds),!0):!1}}function bL(Zt,di){var Xi;let Vi=rn(be.enclosingDeclaration);return oi(Zt)&48&&!Pt((Xi=Zt.symbol)==null?void 0:Xi.declarations,Yi)&&!Re(Wp(Zt))&&!hj(Zt)&&!!(Re(Cn(oc(Zt),kb))||Re(Ns(Zt,0)))&&!Re(Ns(Zt,1))&&!Jl(di,un)&&!(Zt.symbol&&Pt(Zt.symbol.declarations,Ci=>rn(Ci)!==Vi))&&!Pt(oc(Zt),Ci=>wj(Ci.escapedName))&&!Pt(oc(Zt),Ci=>Pt(Ci.declarations,_c=>rn(_c)!==Vi))&&sn(oc(Zt),Ci=>m_(Ml(Ci),H)?Ci.flags&98304?Xx(Ci)===fb(Ci):!0:!1)}function Wse(Zt,di,Xi){return function(Ci,_c,eo){var Rs,Ds,cc,Rc,$f,lf;let bp=fm(Ci),_l=!!(bp&2);if(_c&&Ci.flags&2887656)return[];if(Ci.flags&4194304||Ci.escapedName==="constructor"||eo&&io(eo,Ci.escapedName)&&gh(io(eo,Ci.escapedName))===gh(Ci)&&(Ci.flags&16777216)===(io(eo,Ci.escapedName).flags&16777216)&&o0(An(Ci),fu(eo,Ci.escapedName)))return[];let cp=bp&-1025|(_c?256:0),Td=nu(Ci,be),Ip=(Rs=Ci.declarations)==null?void 0:Rs.find(Df(is,ox,Ui,vf,Vn,ai));if(Ci.flags&98304&&Xi){let tg=[];if(Ci.flags&65536){let WT=Ci.declarations&&Ge(Ci.declarations,f1=>{if(f1.kind===178)return f1;if(Ls(f1)&&Pk(f1))return Ge(f1.arguments[2].properties,Uw=>{let lH=ls(Uw);if(lH&&Ye(lH)&&fi(lH)==="set")return Uw})});I.assert(!!WT);let p0=Dc(WT)?Vd(WT).parameters[0]:void 0,sv=(Ds=Ci.declarations)==null?void 0:Ds.find(kh);tg.push(_(be,j.createSetAccessorDeclaration(j.createModifiersFromModifierFlags(cp),Td,[j.createParameterDeclaration(void 0,void 0,p0?Ms(p0,ri(p0),be):"value",void 0,_l?void 0:JT(be,sv,fb(Ci),Ci))],void 0),sv??Ip))}if(Ci.flags&32768){let WT=bp&2,p0=(cc=Ci.declarations)==null?void 0:cc.find(Sv);tg.push(_(be,j.createGetAccessorDeclaration(j.createModifiersFromModifierFlags(cp),Td,[],WT?void 0:JT(be,p0,An(Ci),Ci),void 0),p0??Ip))}return tg}else if(Ci.flags&98311)return _(be,Zt(j.createModifiersFromModifierFlags((gh(Ci)?8:0)|cp),Td,Ci.flags&16777216?j.createToken(58):void 0,_l?void 0:JT(be,(Rc=Ci.declarations)==null?void 0:Rc.find(v_),fb(Ci),Ci),void 0),(($f=Ci.declarations)==null?void 0:$f.find(Df(is,Ui)))||Ip);if(Ci.flags&8208){let tg=An(Ci),WT=Ns(tg,0);if(cp&2)return _(be,Zt(j.createModifiersFromModifierFlags((gh(Ci)?8:0)|cp),Td,Ci.flags&16777216?j.createToken(58):void 0,void 0,void 0),((lf=Ci.declarations)==null?void 0:lf.find(Dc))||WT[0]&&WT[0].declaration||Ci.declarations&&Ci.declarations[0]);let p0=[];for(let sv of WT){let f1=Tr(sv,di,be,{name:Td,questionToken:Ci.flags&16777216?j.createToken(58):void 0,modifiers:cp?j.createModifiersFromModifierFlags(cp):void 0}),Uw=sv.declaration&&f5(sv.declaration.parent)?sv.declaration.parent:sv.declaration;p0.push(_(be,f1,Uw))}return p0}return I.fail(`Unhandled class member kind! ${Ci.__debugFlags||Ci.flags}`)}}function Use(Zt,di){return Lr(Zt,!1,di)}function ZEe(Zt,di,Xi,Vi){let Ci=Ns(di,Zt);if(Zt===1){if(!Xi&&sn(Ci,Rs=>Re(Rs.parameters)===0))return[];if(Xi){let Rs=Ns(Xi,1);if(!Re(Rs)&&sn(Ci,Ds=>Re(Ds.parameters)===0))return[];if(Rs.length===Ci.length){let Ds=!1;for(let cc=0;cc<Rs.length;cc++)if(!_V(Ci[cc],Rs[cc],!1,!1,!0,Lj)){Ds=!0;break}if(!Ds)return[]}}let eo=0;for(let Rs of Ci)Rs.declaration&&(eo|=tE(Rs.declaration,6));if(eo)return[_(be,j.createConstructorDeclaration(j.createModifiersFromModifierFlags(eo),[],void 0),Ci[0].declaration)]}let _c=[];for(let eo of Ci){let Rs=Tr(eo,Vi,be);_c.push(_(be,Rs,eo.declaration))}return _c}function Wat(Zt,di){let Xi=[];for(let Vi of Wp(Zt)){if(di){let Ci=i0(di,Vi.keyType);if(Ci&&o0(Vi.type,Ci.type))continue}Xi.push(Dr(Vi,be,void 0))}return Xi}function mir(Zt,di,Xi){let Vi=eDe(Zt,111551);if(Vi)return Vi;let Ci=cH(`${Xi}_base`),_c=j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(Ci,void 0,V(di,be))],2));return Mi(_c,0),j.createExpressionWithTypeArguments(j.createIdentifier(Ci),void 0)}function eDe(Zt,di){let Xi,Vi;if(Zt.target&&pb(Zt.target.symbol,un,di)?(Xi=Dt($c(Zt),Ci=>V(Ci,be)),Vi=du(Zt.target.symbol,be,788968)):Zt.symbol&&pb(Zt.symbol,un,di)&&(Vi=du(Zt.symbol,be,788968)),Vi)return j.createExpressionWithTypeArguments(Vi,Xi)}function gir(Zt){let di=eDe(Zt,788968);if(di)return di;if(Zt.symbol)return j.createExpressionWithTypeArguments(du(Zt.symbol,be,788968),void 0)}function cH(Zt,di){var Xi,Vi;let Ci=di?co(di):void 0;if(Ci&&be.remappedSymbolNames.has(Ci))return be.remappedSymbolNames.get(Ci);di&&(Zt=Uat(di,Zt));let _c=0,eo=Zt;for(;(Xi=be.usedSymbolNames)!=null&&Xi.has(Zt);)_c++,Zt=`${eo}_${_c}`;return(Vi=be.usedSymbolNames)==null||Vi.add(Zt),Ci&&be.remappedSymbolNames.set(Ci,Zt),Zt}function Uat(Zt,di){if(di==="default"||di==="__class"||di==="__function"){let Xi=D(be);be.flags|=16777216;let Vi=kT(Zt,be);Xi(),di=Vi.length>0&&o5(Vi.charCodeAt(0))?qm(Vi):Vi}return di==="default"?di="_default":di==="export="&&(di="_exports"),di=m_(di,H)&&!ZP(di)?di:"_"+di.replace(/[^a-z0-9]/gi,"_"),di}function av(Zt,di){let Xi=co(Zt);return be.remappedSymbolNames.has(Xi)?be.remappedSymbolNames.get(Xi):(di=Uat(Zt,di),be.remappedSymbolNames.set(Xi,di),di)}}}function wT(r,c,_=16384,h){return h?v(h).getText():eN(v);function v(T){let D=OD(_)|70221824|512,J=Me.typePredicateToTypePredicateNode(r,c,D),V=G2(),Q=c&&rn(c);return V.writeNode(4,J,Q,T),T}}function R$(r){let c=[],_=0;for(let h=0;h<r.length;h++){let v=r[h];if(_|=v.flags,!(v.flags&98304)){if(v.flags&1568){let T=v.flags&512?cr:Uie(v);if(T.flags&1048576){let D=T.types.length;if(h+D<=r.length&&Cf(r[h+D-1])===Cf(T.types[D-1])){c.push(T),h+=D-1;continue}}}c.push(v)}}return _&65536&&c.push(rr),_&32768&&c.push(ke),c||r}function Tw(r){return r===2?"private":r===4?"protected":"public"}function ND(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){let c=v5(r.symbol.declarations[0].parent);if(Wm(c))return ei(c)}}function yj(r){return r&&r.parent&&r.parent.kind===268&&h2(r.parent.parent)}function WA(r){return r.kind===307||df(r)}function ww(r,c){let _=Fa(r).nameType;if(_){if(_.flags&384){let h=""+_.value;return!m_(h,Po(z))&&!Mv(h)?`"${Ay(h,34)}"`:Mv(h)&&La(h,"-")?`[${h}]`:h}if(_.flags&8192)return`[${kT(_.symbol,c)}]`}}function kT(r,c){var _;if((_=c?.remappedSymbolReferences)!=null&&_.has(co(r))&&(r=c.remappedSymbolReferences.get(co(r))),c&&r.escapedName==="default"&&!(c.flags&16384)&&(!(c.flags&16777216)||!r.declarations||c.enclosingDeclaration&&Br(r.declarations[0],WA)!==Br(c.enclosingDeclaration,WA)))return"default";if(r.declarations&&r.declarations.length){let v=jr(r.declarations,D=>ls(D)?D:void 0),T=v&&ls(v);if(v&&T){if(Ls(v)&&Pk(v))return Ml(r);if(po(T)&&!(Tl(r)&4096)){let D=Fa(r).nameType;if(D&&D.flags&384){let J=ww(r,c);if(J!==void 0)return J}}return Oc(T)}if(v||(v=r.declarations[0]),v.parent&&v.parent.kind===260)return Oc(v.parent.name);switch(v.kind){case 231:case 218:case 219:return c&&!c.encounteredError&&!(c.flags&131072)&&(c.encounteredError=!0),v.kind===231?"(Anonymous class)":"(Anonymous function)"}}let h=ww(r,c);return h!==void 0?h:Ml(r)}function X0(r){if(r){let _=Zn(r);return _.isVisible===void 0&&(_.isVisible=!!c()),_.isVisible}return!1;function c(){switch(r.kind){case 338:case 346:case 340:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&ba(r.parent.parent.parent));case 208:return X0(r.parent.parent);case 260:if(Os(r.name)&&!r.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(h2(r))return!0;let _=PT(r);return!(zse(r)&32)&&!(r.kind!==271&&_.kind!==307&&_.flags&33554432)?C1(_):X0(_);case 172:case 171:case 177:case 178:case 174:case 173:if(z_(r,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return X0(r.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;case 277:return!1;default:return!1}}}function CT(r,c){let _;r.kind!==11&&r.parent&&r.parent.kind===277?_=Ct(r,r,2998271,void 0,!1):r.parent.kind===281&&(_=Hy(r.parent,2998271));let h,v;return _&&(v=new Set,v.add(co(_)),T(_.declarations)),h;function T(D){Ge(D,J=>{let V=ab(J)||J;if(c?Zn(J).isVisible=!0:(h=h||[],I_(h,V)),kk(J)){let Q=J.moduleReference,ue=Af(Q),Fe=Ct(J,ue.escapedText,901119,void 0,!1);Fe&&v&&Ty(v,co(Fe))&&T(Fe.declarations)}})}}function oy(r,c){let _=UA(r,c);if(_>=0){let{length:h}=By;for(let v=_;v<h;v++)K1[v]=!1;return!1}return By.push(r),K1.push(!0),qy.push(c),!0}function UA(r,c){for(let _=By.length-1;_>=Q1;_--){if(j$(By[_],qy[_]))return-1;if(By[_]===r&&qy[_]===c)return _}return-1}function j$(r,c){switch(c){case 0:return!!Fa(r).type;case 2:return!!Fa(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 5:return!!r.resolvedTypeArguments;case 6:return!!r.baseTypesResolved;case 7:return!!Fa(r).writeType;case 8:return Zn(r).parameterInitializerContainsUndefined!==void 0}return I.assertNever(c)}function cy(){return By.pop(),qy.pop(),K1.pop()}function PT(r){return Br(Nh(r),c=>{switch(c.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function d8(r){let c=zc(w_(r));return c.typeParameters?Z0(c,Dt(c.typeParameters,_=>Qe)):c}function fu(r,c){let _=io(r,c);return _?An(_):void 0}function se(r,c){var _;let h;return fu(r,c)||(h=(_=RD(r,c))==null?void 0:_.type)&&ip(h,!0,!0)}function Ae(r){return r&&(r.flags&1)!==0}function et(r){return r===ut||!!(r.flags&1&&r.aliasSymbol)}function Wt(r,c){if(c!==0)return oh(r,!1,c);let _=ei(r);return _&&Fa(_).type||oh(r,!1,c)}function vr(r,c,_){if(r=_u(r,V=>!(V.flags&98304)),r.flags&131072)return Ro;if(r.flags&1048576)return ol(r,V=>vr(V,c,_));let h=Fi(Dt(c,e1)),v=[],T=[];for(let V of oc(r)){let Q=LD(V,8576);!qs(Q,h)&&!(fm(V)&6)&&uae(V)?v.push(V):T.push(Q)}if(RC(r)||jC(h)){if(T.length&&(h=Fi([h,...T])),h.flags&131072)return r;let V=cHt();return V?e6(V,[r,h]):ut}let D=Qs();for(let V of v)D.set(V.escapedName,vCe(V,!1));let J=rl(_,D,ce,ce,Wp(r));return J.objectFlags|=4194304,J}function Hr(r){return!!(r.flags&465829888)&&ql(Op(r)||qt,32768)}function bi(r){let c=Pm(r,Hr)?ol(r,_=>_.flags&465829888?py(_):_):r;return Cm(c,524288)}function ga(r,c){let _=Qi(r);return _?c1(_,c):c}function Qi(r){let c=Zi(r);if(c&&pN(c)&&c.flowNode){let _=Ja(r);if(_){let h=Ot(US.createStringLiteral(_),r),v=Qf(c)?c:US.createParenthesizedExpression(c),T=Ot(US.createElementAccessExpression(v,h),r);return Xo(h,T),Xo(T,r),v!==c&&Xo(v,T),T.flowNode=c.flowNode,T}}}function Zi(r){let c=r.parent.parent;switch(c.kind){case 208:case 303:return Qi(c);case 209:return Qi(r.parent);case 260:return c.initializer;case 226:return c.right}}function Ja(r){let c=r.parent;return r.kind===208&&c.kind===206?kc(r.propertyName||r.name):r.kind===303||r.kind===304?kc(r.name):""+c.elements.indexOf(r)}function kc(r){let c=e1(r);return c.flags&384?""+c.value:void 0}function Cc(r){let c=r.dotDotDotToken?32:0,_=Wt(r.parent.parent,c);return _&&zo(r,_,!1)}function zo(r,c,_){if(Ae(c))return c;let h=r.parent;fe&&r.flags&33554432&&OS(r)?c=a1(c):fe&&h.parent.initializer&&!_h(Xtt(h.parent.initializer),65536)&&(c=Cm(c,524288));let v=32|(_||VD(r)?16:0),T;if(h.kind===206)if(r.dotDotDotToken){if(c=Eg(c),c.flags&2||!OV(c))return ot(r,y.Rest_types_may_only_be_created_from_object_types),ut;let D=[];for(let J of h.elements)J.dotDotDotToken||D.push(J.propertyName||J.name);T=vr(c,D,r.symbol)}else{let D=r.propertyName||r.name,J=e1(D),V=C_(c,J,v,D);T=ga(r,V)}else{let D=Sb(65|(r.dotDotDotToken?0:128),c,ke,h),J=h.elements.indexOf(r);if(r.dotDotDotToken){let V=ol(c,Q=>Q.flags&58982400?py(Q):Q);T=E_(V,Oo)?ol(V,Q=>k8(Q,J)):Up(D)}else if(bb(c)){let V=Dg(J),Q=Zx(c,V,v,r.name)||ut;T=ga(r,Q)}else T=D}return r.initializer?hu(MP(r))?fe&&!_h(F8(r,0),16777216)?bi(T):T:dEe(r,Fi([bi(T),F8(r,0)],2)):T}function xm(r){let c=rx(r);if(c)return Sa(c)}function Ky(r){let c=Qo(r,!0);return c.kind===106||c.kind===80&&sf(c)===xe}function Zm(r){let c=Qo(r,!0);return c.kind===209&&c.elements.length===0}function ip(r,c=!1,_=!0){return fe&&_?nS(r,c):r}function oh(r,c,_){if(Ui(r)&&r.parent.parent.kind===249){let D=fy(MPe(Wa(r.parent.parent.expression,_)));return D.flags&4456448?Iet(D):kt}if(Ui(r)&&r.parent.parent.kind===250){let D=r.parent.parent;return tH(D)||Qe}if(Os(r.parent))return Cc(r);let h=is(r)&&!Ah(r)||vf(r)||Vhe(r),v=c&&fE(r),T=ET(r);if(cQ(r))return T?Ae(T)||T===qt?T:ut:ie?qt:Qe;if(T)return ip(T,h,v);if((Pe||jn(r))&&Ui(r)&&!Os(r.name)&&!(zse(r)&32)&&!(r.flags&33554432)){if(!(Ww(r)&6)&&(!r.initializer||Ky(r.initializer)))return Lt;if(r.initializer&&Zm(r.initializer))return Au}if(Da(r)){if(!r.symbol)return;let D=r.parent;if(D.kind===178&&QA(D)){let Q=Zc(ei(r.parent),177);if(Q){let ue=Vd(Q),Fe=QEe(D);return Fe&&r===Fe?(I.assert(!Fe.type),An(ue.thisParameter)):Yo(ue)}}let J=OVt(D,r);if(J)return J;let V=r.symbol.escapedName==="this"?bPe(D):Ert(r);if(V)return ip(V,!1,v)}if(xk(r)&&r.initializer){if(jn(r)&&!Da(r)){let J=Qx(r,ei(r),l4(r));if(J)return J}let D=dEe(r,F8(r,_));return ip(D,h,v)}if(is(r)&&(Pe||jn(r)))if(Pu(r)){let D=Cn(r.parent.members,Al),J=D.length?Kx(r.symbol,D):gf(r)&128?Sae(r.symbol):void 0;return J&&ip(J,!0,v)}else{let D=Y5(r.parent),J=D?AD(r.symbol,D):gf(r)&128?Sae(r.symbol):void 0;return J&&ip(J,!0,v)}if(Jh(r))return yt;if(Os(r.name))return Xa(r.name,!1,!0)}function Gx(r){if(r.valueDeclaration&&Vn(r.valueDeclaration)){let c=Fa(r);return c.isConstructorDeclaredProperty===void 0&&(c.isConstructorDeclaredProperty=!1,c.isConstructorDeclaredProperty=!!$o(r)&&sn(r.declarations,_=>Vn(_)&&Hae(_)&&(_.left.kind!==212||Dd(_.left.argumentExpression))&&!Jn(void 0,_,r,_))),c.isConstructorDeclaredProperty}return!1}function vj(r){let c=r.valueDeclaration;return c&&is(c)&&!hu(c)&&!c.initializer&&(Pe||jn(c))}function $o(r){if(r.declarations)for(let c of r.declarations){let _=mf(c,!1,!1);if(_&&(_.kind===176||gy(_)))return _}}function Iu(r){let c=rn(r.declarations[0]),_=ka(r.escapedName),h=r.declarations.every(T=>jn(T)&&Lc(T)&&Ev(T.expression)),v=h?j.createPropertyAccessExpression(j.createPropertyAccessExpression(j.createIdentifier("module"),j.createIdentifier("exports")),_):j.createPropertyAccessExpression(j.createIdentifier("exports"),_);return h&&Xo(v.expression.expression,v.expression),Xo(v.expression,v),Xo(v,c),v.flowNode=c.endFlowNode,c1(v,Lt,ke)}function Kx(r,c){let _=La(r.escapedName,"__#")?j.createPrivateIdentifier(r.escapedName.split("@")[1]):ka(r.escapedName);for(let h of c){let v=j.createPropertyAccessExpression(j.createThis(),_);Xo(v.expression,v),Xo(v,h),v.flowNode=h.returnFlowNode;let T=$A(v,r);if(Pe&&(T===Lt||T===Au)&&ot(r.valueDeclaration,y.Member_0_implicitly_has_an_1_type,ja(r),Pn(T)),!E_(T,IV))return _L(T)}}function AD(r,c){let _=La(r.escapedName,"__#")?j.createPrivateIdentifier(r.escapedName.split("@")[1]):ka(r.escapedName),h=j.createPropertyAccessExpression(j.createThis(),_);Xo(h.expression,h),Xo(h,c),h.flowNode=c.returnFlowNode;let v=$A(h,r);return Pe&&(v===Lt||v===Au)&&ot(r.valueDeclaration,y.Member_0_implicitly_has_an_1_type,ja(r),Pn(v)),E_(v,IV)?void 0:_L(v)}function $A(r,c){let _=c?.valueDeclaration&&(!vj(c)||gf(c.valueDeclaration)&128)&&Sae(c)||ke;return c1(r,Lt,_)}function s_(r,c){let _=HP(r.valueDeclaration);if(_){let J=jn(_)?xS(_):void 0;return J&&J.typeExpression?Sa(J.typeExpression):r.valueDeclaration&&Qx(r.valueDeclaration,r,_)||RT(Nl(_))}let h,v=!1,T=!1;if(Gx(r)&&(h=AD(r,$o(r))),!h){let J;if(r.declarations){let V;for(let Q of r.declarations){let ue=Vn(Q)||Ls(Q)?Q:Lc(Q)?Vn(Q.parent)?Q.parent:Q:void 0;if(!ue)continue;let Fe=Lc(ue)?p5(ue):$l(ue);(Fe===4||Vn(ue)&&Hae(ue,Fe))&&(G(ue)?v=!0:T=!0),Ls(ue)||(V=Jn(V,ue,r,Q)),V||(J||(J=[])).push(Vn(ue)||Ls(ue)?k(r,c,ue,Fe):Pr)}h=V}if(!h){if(!Re(J))return ut;let V=v&&r.declarations?we(J,r.declarations):void 0;if(T){let ue=Sae(r);ue&&((V||(V=[])).push(ue),v=!0)}let Q=Pt(V,ue=>!!(ue.flags&-98305))?V:J;h=Fi(Q)}}let D=ad(ip(h,!1,T&&!v));return r.valueDeclaration&&jn(r.valueDeclaration)&&_u(D,J=>!!(J.flags&-98305))===Pr?(jT(r.valueDeclaration,Qe),Qe):D}function Qx(r,c,_){var h,v;if(!jn(r)||!_||!So(_)||_.properties.length)return;let T=Qs();for(;Vn(r)||ai(r);){let V=bd(r);(h=V?.exports)!=null&&h.size&&ty(T,V.exports),r=Vn(r)?r.parent:r.parent.parent}let D=bd(r);(v=D?.exports)!=null&&v.size&&ty(T,D.exports);let J=rl(c,T,ce,ce,ce);return J.objectFlags|=4096,J}function Jn(r,c,_,h){var v;let T=hu(c.parent);if(T){let D=ad(Sa(T));if(r)!et(r)&&!et(D)&&!o0(r,D)&&Rit(void 0,r,h,D);else return D}if((v=_.parent)!=null&&v.valueDeclaration){let D=bD(_.parent);if(D.valueDeclaration){let J=hu(D.valueDeclaration);if(J){let V=io(Sa(J),_.escapedName);if(V)return Xx(V)}}}return r}function k(r,c,_,h){if(Ls(_)){if(c)return An(c);let D=Nl(_.arguments[2]),J=fu(D,"value");if(J)return J;let V=fu(D,"get");if(V){let ue=GC(V);if(ue)return Yo(ue)}let Q=fu(D,"set");if(Q){let ue=GC(Q);if(ue)return iEe(ue)}return Qe}if(R(_.left,_.right))return Qe;let v=h===1&&(ai(_.left)||Nc(_.left))&&(Ev(_.left.expression)||Ye(_.left.expression)&&Ck(_.left.expression)),T=c?An(c):v?Cf(Nl(_.right)):RT(Nl(_.right));if(T.flags&524288&&h===2&&r.escapedName==="export="){let D=ph(T),J=Qs();Pq(D.members,J);let V=J.size;c&&!c.exports&&(c.exports=Qs()),(c||r).exports.forEach((ue,Fe)=>{var De;let _t=J.get(Fe);if(_t&&_t!==ue&&!(ue.flags&2097152))if(ue.flags&111551&&_t.flags&111551){if(ue.valueDeclaration&&_t.valueDeclaration&&rn(ue.valueDeclaration)!==rn(_t.valueDeclaration)){let zt=ka(ue.escapedName),Dr=((De=_i(_t.valueDeclaration,Gu))==null?void 0:De.name)||_t.valueDeclaration;Hs(ot(ue.valueDeclaration,y.Duplicate_identifier_0,zt),Mn(Dr,y._0_was_also_declared_here,zt)),Hs(ot(Dr,y.Duplicate_identifier_0,zt),Mn(ue.valueDeclaration,y._0_was_also_declared_here,zt))}let Nt=fo(ue.flags|_t.flags,Fe);Nt.links.type=Fi([An(ue),An(_t)]),Nt.valueDeclaration=_t.valueDeclaration,Nt.declarations=ya(_t.declarations,ue.declarations),J.set(Fe,Nt)}else J.set(Fe,ey(ue,_t));else J.set(Fe,ue)});let Q=rl(V!==J.size?void 0:D.symbol,J,D.callSignatures,D.constructSignatures,D.indexInfos);if(V===J.size&&(T.aliasSymbol&&(Q.aliasSymbol=T.aliasSymbol,Q.aliasTypeArguments=T.aliasTypeArguments),oi(T)&4)){Q.aliasSymbol=T.symbol;let ue=$c(T);Q.aliasTypeArguments=Re(ue)?ue:void 0}return Q.objectFlags|=K$([T])|oi(T)&20608,Q.symbol&&Q.symbol.flags&32&&T===Sm(Q.symbol)&&(Q.objectFlags|=16777216),Q}return wae(T)?(jT(_,Nu),Nu):T}function R(r,c){return ai(r)&&r.expression.kind===110&&NE(c,_=>vp(r,_))}function G(r){let c=mf(r,!1,!1);return c.kind===176||c.kind===262||c.kind===218&&!f5(c.parent)}function we(r,c){return I.assert(r.length===c.length),r.filter((_,h)=>{let v=c[h],T=Vn(v)?v:Vn(v.parent)?v.parent:void 0;return T&&G(T)})}function ct(r,c,_){if(r.initializer){let h=Os(r.name)?Xa(r.name,!0,!1):qt;return ip(cit(r,F8(r,0,h)))}return Os(r.name)?Xa(r.name,c,_):(_&&!ID(r)&&jT(r,Qe),c?In:Qe)}function br(r,c,_){let h=Qs(),v,T=131200;Ge(r.elements,J=>{let V=J.propertyName||J.name;if(J.dotDotDotToken){v=a0(kt,Qe,!1);return}let Q=e1(V);if(!_m(Q)){T|=512;return}let ue=dm(Q),Fe=4|(J.initializer?16777216:0),De=fo(Fe,ue);De.links.type=ct(J,c,_),h.set(De.escapedName,De)});let D=rl(void 0,h,ce,ce,v?[v]:ce);return D.objectFlags|=T,c&&(D.pattern=r,D.objectFlags|=131072),D}function Qn(r,c,_){let h=r.elements,v=dc(h),T=v&&v.kind===208&&v.dotDotDotToken?v:void 0;if(h.length===0||h.length===1&&T)return H>=2?get(Qe):Nu;let D=Dt(h,ue=>Ju(ue)?Qe:ct(ue,c,_)),J=up(h,ue=>!(ue===T||Ju(ue)||VD(ue)),h.length-1)+1,V=Dt(h,(ue,Fe)=>ue===T?4:Fe>=J?2:1),Q=ev(D,V);return c&&(Q=HZe(Q),Q.pattern=r,Q.objectFlags|=131072),Q}function Xa(r,c=!1,_=!1){c&&Es.push(r);let h=r.kind===206?br(r,c,_):Qn(r,c,_);return c&&Es.pop(),h}function rc(r,c){return Qy(oh(r,!0,0),r,c)}function ch(r){let c=Zn(r);if(!c.resolvedType){let _=fo(4096,"__importAttributes"),h=Qs();Ge(r.elements,T=>{let D=fo(4,tz(T));D.parent=_,D.links.type=mrr(T),D.links.target=D,h.set(D.escapedName,D)});let v=rl(_,h,ce,ce,ce);v.objectFlags|=262272,c.resolvedType=v}return c.resolvedType}function r0(r){let c=bd(r),_=GVt(!1);return _&&c&&c===_}function Qy(r,c,_){return r?(r.flags&4096&&r0(c.parent)&&(r=bCe(c)),_&&Aae(c,r),r.flags&8192&&(Do(c)||!c.type)&&r.symbol!==ei(c)&&(r=er),ad(r)):(r=Da(c)&&c.dotDotDotToken?Nu:Qe,_&&(ID(c)||jT(c,r)),r)}function ID(r){let c=Nh(r),_=c.kind===169?c.parent:c;return KV(_)}function ET(r){let c=hu(r);if(c)return Sa(c)}function Jie(r){let c=r.valueDeclaration;return c?(Do(c)&&(c=MP(c)),Da(c)?mae(c.parent):!1):!1}function vke(r){let c=Fa(r);if(!c.type){let _=bke(r);return!c.type&&!Jie(r)&&(c.type=_),_}return c.type}function bke(r){if(r.flags&4194304)return d8(r);if(r===He)return Qe;if(r.flags&134217728&&r.valueDeclaration){let h=ei(rn(r.valueDeclaration)),v=fo(h.flags,"exports");v.declarations=h.declarations?h.declarations.slice():[],v.parent=r,v.links.target=h,h.valueDeclaration&&(v.valueDeclaration=h.valueDeclaration),h.members&&(v.members=new Map(h.members)),h.exports&&(v.exports=new Map(h.exports));let T=Qs();return T.set("exports",v),rl(r,T,ce,ce,ce)}I.assertIsDefined(r.valueDeclaration);let c=r.valueDeclaration;if(ba(c)&&cm(c))return c.statements.length?ad(RT(Wa(c.statements[0].expression))):Ro;if(ox(c))return g8(r);if(!oy(r,0))return r.flags&512&&!(r.flags&67108864)?h8(r):VA(r);let _;if(c.kind===277)_=Qy(ET(c)||Nl(c.expression),c);else if(Vn(c)||jn(c)&&(Ls(c)||(ai(c)||tJ(c))&&Vn(c.parent)))_=s_(r);else if(ai(c)||Nc(c)||Ye(c)||Ho(c)||e_(c)||bu(c)||jl(c)||wl(c)&&!Lm(c)||yg(c)||ba(c)){if(r.flags&9136)return h8(r);_=Vn(c.parent)?s_(r):ET(c)||Qe}else if(xu(c))_=ET(c)||lit(c);else if(Jh(c))_=ET(c)||Wrt(c);else if(Jp(c))_=ET(c)||R8(c.name,0);else if(Lm(c))_=ET(c)||uit(c,0);else if(Da(c)||is(c)||vf(c)||Ui(c)||Do(c)||HI(c))_=rc(c,!0);else if(B2(c))_=h8(r);else if(L1(c))_=B$(r);else return I.fail("Unhandled declaration kind! "+I.formatSyntaxKind(c.kind)+" for "+I.formatSymbol(r));return cy()?_:r.flags&512&&!(r.flags&67108864)?h8(r):VA(r)}function OC(r){if(r)switch(r.kind){case 177:return dd(r);case 178:return eX(r);case 172:return I.assert(Ah(r)),hu(r)}}function m8(r){let c=OC(r);return c&&Sa(c)}function xke(r){let c=QEe(r);return c&&c.symbol}function Ske(r){return NT(Vd(r))}function g8(r){let c=Fa(r);if(!c.type){if(!oy(r,0))return ut;let _=Zc(r,177),h=Zc(r,178),v=_i(Zc(r,172),Kf),T=_&&jn(_)&&xm(_)||m8(_)||m8(h)||m8(v)||_&&_.body&&fse(_)||v&&rc(v,!0);T||(h&&!KV(h)?rh(Pe,h,y.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ja(r)):_&&!KV(_)?rh(Pe,_,y.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ja(r)):v&&!KV(v)&&rh(Pe,v,y.Member_0_implicitly_has_an_1_type,ja(r),"any"),T=Qe),cy()||(OC(_)?ot(_,y._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ja(r)):OC(h)||OC(v)?ot(h,y._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ja(r)):_&&Pe&&ot(_,y._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ja(r)),T=Qe),c.type??(c.type=T)}return c.type}function zie(r){let c=Fa(r);if(!c.writeType){if(!oy(r,7))return ut;let _=Zc(r,178)??_i(Zc(r,172),Kf),h=m8(_);cy()||(OC(_)&&ot(_,y._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ja(r)),h=Qe),c.writeType??(c.writeType=h||g8(r))}return c.writeType}function L$(r){let c=Go(Sm(r));return c.flags&8650752?c:c.flags&2097152?Ir(c.types,_=>!!(_.flags&8650752)):void 0}function h8(r){let c=Fa(r),_=c;if(!c.type){let h=r.valueDeclaration&&use(r.valueDeclaration,!1);if(h){let v=XPe(r,h);v&&(r=v,c=v.links)}_.type=c.type=FD(r)}return c.type}function FD(r){let c=r.valueDeclaration;if(r.flags&1536&&UF(r))return Qe;if(c&&(c.kind===226||Lc(c)&&c.parent.kind===226))return s_(r);if(r.flags&512&&c&&ba(c)&&c.commonJsModuleIndicator){let h=a_(r);if(h!==r){if(!oy(r,0))return ut;let v=Uo(r.exports.get("export=")),T=s_(v,v===h?void 0:h);return cy()?T:VA(r)}}let _=Nr(16,r);if(r.flags&32){let h=L$(r);return h?_o([_,h]):_}else return fe&&r.flags&16777216?nS(_,!0):_}function B$(r){let c=Fa(r);return c.type||(c.type=sZe(r))}function Tke(r){let c=Fa(r);if(!c.type){if(!oy(r,0))return ut;let _=pu(r),h=r.declarations&&dT(zd(r),!0),v=jr(h?.declarations,T=>Gc(T)?ET(T):void 0);if(c.type??(c.type=h?.declarations&&Ise(h.declarations)&&r.declarations.length?Iu(h):Ise(r.declarations)?Lt:v||(rd(_)&111551?An(_):ut)),!cy())return VA(h??r),c.type??(c.type=ut)}return c.type}function wke(r){let c=Fa(r);return c.type||(c.type=Ma(An(c.target),c.mapper))}function q$(r){let c=Fa(r);return c.writeType||(c.writeType=Ma(fb(c.target),c.mapper))}function VA(r){let c=r.valueDeclaration;if(c){if(hu(c))return ot(r.valueDeclaration,y._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ja(r)),ut;Pe&&(c.kind!==169||c.initializer)&&ot(r.valueDeclaration,y._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ja(r))}else if(r.flags&2097152){let _=zd(r);_&&ot(_,y.Circular_definition_of_import_alias_0,ja(r))}return Qe}function J$(r){let c=Fa(r);return c.type||(I.assertIsDefined(c.deferralParent),I.assertIsDefined(c.deferralConstituents),c.type=c.deferralParent.flags&1048576?Fi(c.deferralConstituents):_o(c.deferralConstituents)),c.type}function kke(r){let c=Fa(r);return!c.writeType&&c.deferralWriteConstituents&&(I.assertIsDefined(c.deferralParent),I.assertIsDefined(c.deferralConstituents),c.writeType=c.deferralParent.flags&1048576?Fi(c.deferralWriteConstituents):_o(c.deferralWriteConstituents)),c.writeType}function fb(r){let c=Tl(r);return r.flags&4?c&2?c&65536?kke(r)||J$(r):r.links.writeType||r.links.type:s1(An(r),!!(r.flags&16777216)):r.flags&98304?c&1?q$(r):zie(r):An(r)}function An(r){let c=Tl(r);return c&65536?J$(r):c&1?wke(r):c&262144?pVt(r):c&8192?OKt(r):r.flags&7?vke(r):r.flags&9136?h8(r):r.flags&8?B$(r):r.flags&98304?g8(r):r.flags&2097152?Tke(r):ut}function Xx(r){return s1(An(r),!!(r.flags&16777216))}function bj(r,c){if(r===void 0||!(oi(r)&4))return!1;for(let _ of c)if(r.target===_)return!0;return!1}function ly(r,c){return r!==void 0&&c!==void 0&&(oi(r)&4)!==0&&r.target===c}function HA(r){return oi(r)&4?r.target:r}function GA(r,c){return _(r);function _(h){if(oi(h)&7){let v=HA(h);return v===c||Pt(Fu(v),_)}else if(h.flags&2097152)return Pt(h.types,_);return!1}}function xj(r,c){for(let _ of c)r=Mm(r,kw(ei(_)));return r}function _b(r,c){for(;;){if(r=r.parent,r&&Vn(r)){let h=$l(r);if(h===6||h===3){let v=ei(r.left);v&&v.parent&&!Br(v.parent.valueDeclaration,T=>r===T)&&(r=v.parent.valueDeclaration)}}if(!r)return;let _=r.kind;switch(_){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{let v=_b(r,c);if((_===218||_===219||Lm(r))&&Hd(r)){let J=Yl(Ns(An(ei(r)),0));if(J&&J.typeParameters)return[...v||ce,...J.typeParameters]}if(_===200)return Zr(v,kw(ei(r.typeParameter)));if(_===194)return ya(v,gCe(r));let T=xj(v,nx(r)),D=c&&(_===263||_===231||_===264||gy(r))&&Sm(ei(r)).thisType;return D?Zr(T,D):T}case 341:let h=y5(r);h&&(r=h.valueDeclaration);break;case 320:{let v=_b(r,c);return r.tags?xj(v,li(r.tags,T=>Um(T)?T.typeParameters:void 0)):v}}}}function Wie(r){var c;let _=r.flags&32||r.flags&16?r.valueDeclaration:(c=r.declarations)==null?void 0:c.find(h=>{if(h.kind===264)return!0;if(h.kind!==260)return!1;let v=h.initializer;return!!v&&(v.kind===218||v.kind===219)});return I.assert(!!_,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),_b(_)}function Pg(r){if(!r.declarations)return;let c;for(let _ of r.declarations)(_.kind===264||_.kind===263||_.kind===231||gy(_)||g5(_))&&(c=xj(c,nx(_)));return c}function on(r){return ya(Wie(r),Pg(r))}function pi(r){let c=Ns(r,1);if(c.length===1){let _=c[0];if(!_.typeParameters&&_.parameters.length===1&&ef(_)){let h=JV(_.parameters[0]);return Ae(h)||mV(h)===Qe}}return!1}function yi(r){if(Ns(r,1).length>0)return!0;if(r.flags&8650752){let c=Op(r);return!!c&&pi(c)}return!1}function na(r){let c=A0(r.symbol);return c&&Dh(c)}function sa(r,c,_){let h=Re(c),v=jn(_);return Cn(Ns(r,1),T=>(v||h>=Zy(T.typeParameters))&&h<=Re(T.typeParameters))}function Vo(r,c,_){let h=sa(r,c,_),v=Dt(c,Sa);return ia(h,T=>Pt(T.typeParameters)?Oj(T,v,jn(_)):T)}function Go(r){if(!r.resolvedBaseConstructorType){let c=A0(r.symbol),_=c&&Dh(c),h=na(r);if(!h)return r.resolvedBaseConstructorType=ke;if(!oy(r,1))return ut;let v=Wa(h.expression);if(_&&h!==_&&(I.assert(!_.typeArguments),Wa(_.expression)),v.flags&2621440&&ph(v),!cy())return ot(r.symbol.valueDeclaration,y._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ja(r.symbol)),r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=ut);if(!(v.flags&1)&&v!==Le&&!yi(v)){let T=ot(h.expression,y.Type_0_is_not_a_constructor_function_type,Pn(v));if(v.flags&262144){let D=S8(v),J=qt;if(D){let V=Ns(D,1);V[0]&&(J=Yo(V[0]))}v.symbol.declarations&&Hs(T,Mn(v.symbol.declarations[0],y.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ja(v.symbol),Pn(J)))}return r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=ut)}r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=v)}return r.resolvedBaseConstructorType}function zp(r){let c=ce;if(r.symbol.declarations)for(let _ of r.symbol.declarations){let h=_N(_);if(h)for(let v of h){let T=Sa(v);et(T)||(c===ce?c=[T]:c.push(T))}}return c}function uy(r,c){ot(r,y.Type_0_recursively_references_itself_as_a_base_type,Pn(c,void 0,2))}function Fu(r){if(!r.baseTypesResolved){if(oy(r,6)&&(r.objectFlags&8?r.resolvedBaseTypes=[lh(r)]:r.symbol.flags&96?(r.symbol.flags&32&&db(r),r.symbol.flags&64&&Tj(r)):I.fail("type must be class or interface"),!cy()&&r.symbol.declarations))for(let c of r.symbol.declarations)(c.kind===263||c.kind===264)&&uy(c,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function lh(r){let c=ia(r.typeParameters,(_,h)=>r.elementFlags[h]&8?C_(_,dr):_);return Up(Fi(c||ce),r.readonly)}function db(r){r.resolvedBaseTypes=YK;let c=kf(Go(r));if(!(c.flags&2621441))return r.resolvedBaseTypes=ce;let _=na(r),h,v=c.symbol?zc(c.symbol):void 0;if(c.symbol&&c.symbol.flags&32&&Sj(v))h=GZe(_,c.symbol);else if(c.flags&1)h=c;else{let D=Vo(c,_.typeArguments,_);if(!D.length)return ot(_.expression,y.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=ce;h=Yo(D[0])}if(et(h))return r.resolvedBaseTypes=ce;let T=Eg(h);if(!DT(T)){let D=Lke(void 0,h),J=vs(D,y.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Pn(T));return Jo.add(Cv(rn(_.expression),_.expression,J)),r.resolvedBaseTypes=ce}return r===T||GA(T,r)?(ot(r.symbol.valueDeclaration,y.Type_0_recursively_references_itself_as_a_base_type,Pn(r,void 0,2)),r.resolvedBaseTypes=ce):(r.resolvedBaseTypes===YK&&(r.members=void 0),r.resolvedBaseTypes=[T])}function Sj(r){let c=r.outerTypeParameters;if(c){let _=c.length-1,h=$c(r);return c[_].symbol!==h[_].symbol}return!0}function DT(r){if(r.flags&262144){let c=Op(r);if(c)return DT(c)}return!!(r.flags&67633153&&!o_(r)||r.flags&2097152&&sn(r.types,DT))}function Tj(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||ce,r.symbol.declarations){for(let c of r.symbol.declarations)if(c.kind===264&&d4(c))for(let _ of d4(c)){let h=Eg(Sa(_));et(h)||(DT(h)?r!==h&&!GA(h,r)?r.resolvedBaseTypes===ce?r.resolvedBaseTypes=[h]:r.resolvedBaseTypes.push(h):uy(c,r):ot(_,y.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function q$t(r){if(!r.declarations)return!0;for(let c of r.declarations)if(c.kind===264){if(c.flags&256)return!1;let _=d4(c);if(_){for(let h of _)if(Tc(h.expression)){let v=Ol(h.expression,788968,!0);if(!v||!(v.flags&64)||Sm(v).thisType)return!1}}}return!0}function Sm(r){let c=Fa(r),_=c;if(!c.declaredType){let h=r.flags&32?1:2,v=XPe(r,r.valueDeclaration&&BYt(r.valueDeclaration));v&&(r=v,c=v.links);let T=_.declaredType=c.declaredType=Nr(h,r),D=Wie(r),J=Pg(r);(D||J||h===1||!q$t(r))&&(T.objectFlags|=4,T.typeParameters=ya(D,J),T.outerTypeParameters=D,T.localTypeParameters=J,T.instantiations=new Map,T.instantiations.set(eg(T.typeParameters),T),T.target=T,T.resolvedTypeArguments=T.typeParameters,T.thisType=pa(r),T.thisType.isThisType=!0,T.thisType.constraint=T)}return c.declaredType}function nZe(r){var c;let _=Fa(r);if(!_.declaredType){if(!oy(r,2))return ut;let h=I.checkDefined((c=r.declarations)==null?void 0:c.find(g5),"Type alias symbol with no valid declaration found"),v=Bm(h)?h.typeExpression:h.type,T=v?Sa(v):ut;if(cy()){let D=Pg(r);D&&(_.typeParameters=D,_.instantiations=new Map,_.instantiations.set(eg(D),T)),T===We&&r.escapedName==="BuiltinIteratorReturn"&&(T=eCe())}else T=ut,h.kind===340?ot(h.typeExpression.type,y.Type_alias_0_circularly_references_itself,ja(r)):ot(Gu(h)&&h.name||h,y.Type_alias_0_circularly_references_itself,ja(r));_.declaredType??(_.declaredType=T)}return _.declaredType}function Uie(r){return r.flags&1056&&r.symbol.flags&8?zc(w_(r.symbol)):r}function iZe(r){let c=Fa(r);if(!c.declaredType){let _=[];if(r.declarations){for(let v of r.declarations)if(v.kind===266){for(let T of v.members)if(QA(T)){let D=ei(T),J=QC(T).value,V=JD(J!==void 0?uGt(J,co(r),D):aZe(D));Fa(D).declaredType=V,_.push(Cf(V))}}}let h=_.length?Fi(_,1,r,void 0):aZe(r);h.flags&1048576&&(h.flags|=1024,h.symbol=r),c.declaredType=h}return c.declaredType}function aZe(r){let c=t0(32,r),_=t0(32,r);return c.regularType=c,c.freshType=_,_.regularType=c,_.freshType=_,c}function sZe(r){let c=Fa(r);if(!c.declaredType){let _=iZe(w_(r));c.declaredType||(c.declaredType=_)}return c.declaredType}function kw(r){let c=Fa(r);return c.declaredType||(c.declaredType=pa(r))}function J$t(r){let c=Fa(r);return c.declaredType||(c.declaredType=zc(pu(r)))}function zc(r){return oZe(r)||ut}function oZe(r){if(r.flags&96)return Sm(r);if(r.flags&524288)return nZe(r);if(r.flags&262144)return kw(r);if(r.flags&384)return iZe(r);if(r.flags&8)return sZe(r);if(r.flags&2097152)return J$t(r)}function z$(r){switch(r.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return z$(r.elementType);case 183:return!r.typeArguments||r.typeArguments.every(z$)}return!1}function z$t(r){let c=GO(r);return!c||z$(c)}function cZe(r){let c=hu(r);return c?z$(c):!k1(r)}function W$t(r){let c=dd(r),_=nx(r);return(r.kind===176||!!c&&z$(c))&&r.parameters.every(cZe)&&_.every(z$t)}function U$t(r){if(r.declarations&&r.declarations.length===1){let c=r.declarations[0];if(c)switch(c.kind){case 172:case 171:return cZe(c);case 174:case 173:case 176:case 177:case 178:return W$t(c)}}return!1}function lZe(r,c,_){let h=Qs();for(let v of r)h.set(v.escapedName,_&&U$t(v)?v:wCe(v,c));return h}function uZe(r,c){for(let _ of c){if(pZe(_))continue;let h=r.get(_.escapedName);(!h||h.valueDeclaration&&Vn(h.valueDeclaration)&&!Gx(h)&&!gme(h.valueDeclaration))&&(r.set(_.escapedName,_),r.set(_.escapedName,_))}}function pZe(r){return!!r.valueDeclaration&&_f(r.valueDeclaration)&&Vs(r.valueDeclaration)}function Cke(r){if(!r.declaredProperties){let c=r.symbol,_=Xy(c);r.declaredProperties=ps(_),r.declaredCallSignatures=ce,r.declaredConstructSignatures=ce,r.declaredIndexInfos=ce,r.declaredCallSignatures=Dw(_.get("__call")),r.declaredConstructSignatures=Dw(_.get("__new")),r.declaredIndexInfos=UZe(c)}return r}function Pke(r){return _Ze(r)&&_m(po(r)?Og(r):Nl(r.argumentExpression))}function fZe(r){return _Ze(r)&&$$t(po(r)?Og(r):Nl(r.argumentExpression))}function _Ze(r){if(!po(r)&&!Nc(r))return!1;let c=po(r)?r.expression:r.argumentExpression;return Tc(c)}function $$t(r){return qs(r,ji)}function wj(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function KA(r){let c=ls(r);return!!c&&Pke(c)}function dZe(r){let c=ls(r);return!!c&&fZe(c)}function QA(r){return!E0(r)||KA(r)}function mZe(r){return cJ(r)&&!Pke(r)}function V$t(r,c,_){I.assert(!!(Tl(r)&4096),"Expected a late-bound symbol."),r.flags|=_,Fa(c.symbol).lateSymbol=r,r.declarations?c.symbol.isReplaceableByMethod||r.declarations.push(c):r.declarations=[c],_&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==c.kind)&&(r.valueDeclaration=c)}function gZe(r,c,_,h){I.assert(!!h.symbol,"The member is expected to have a symbol.");let v=Zn(h);if(!v.resolvedSymbol){v.resolvedSymbol=h.symbol;let T=Vn(h)?h.left:h.name,D=Nc(T)?Nl(T.argumentExpression):Og(T);if(_m(D)){let J=dm(D),V=h.symbol.flags,Q=_.get(J);Q||_.set(J,Q=fo(0,J,4096));let ue=c&&c.get(J);if(!(r.flags&32)&&Q.flags&Qv(V)){let Fe=ue?ya(ue.declarations,Q.declarations):Q.declarations,De=!(D.flags&8192)&&ka(J)||Oc(T);Ge(Fe,_t=>ot(ls(_t)||_t,y.Property_0_was_also_declared_here,De)),ot(T||h,y.Duplicate_property_0,De),Q=fo(0,J,4096)}return Q.links.nameType=D,V$t(Q,h,V),Q.parent?I.assert(Q.parent===r,"Existing symbol parent should match new one"):Q.parent=r,v.resolvedSymbol=Q}}return v.resolvedSymbol}function H$t(r,c,_,h){let v=_.get("__index");if(!v){let T=c?.get("__index");T?(v=uT(T),v.links.checkFlags|=4096):v=fo(0,"__index",4096),_.set("__index",v)}v.declarations?h.symbol.isReplaceableByMethod||v.declarations.push(h):v.declarations=[h]}function Eke(r,c){let _=Fa(r);if(!_[c]){let h=c==="resolvedExports",v=h?r.flags&1536?bT(r).exports:r.exports:r.members;_[c]=v||L;let T=Qs();for(let V of r.declarations||ce){let Q=lme(V);if(Q)for(let ue of Q)h===Pu(ue)&&(KA(ue)?gZe(r,v,T,ue):dZe(ue)&&H$t(r,v,T,ue))}let D=bD(r).assignmentDeclarationMembers;if(D){let V=Ka(D.values());for(let Q of V){let ue=$l(Q),Fe=ue===3||Vn(Q)&&Hae(Q,ue)||ue===9||ue===6;h===!Fe&&KA(Q)&&gZe(r,v,T,Q)}}let J=nb(v,T);if(r.flags&33554432&&_.cjsExportMerged&&r.declarations)for(let V of r.declarations){let Q=Fa(V.symbol)[c];if(!J){J=Q;continue}Q&&Q.forEach((ue,Fe)=>{let De=J.get(Fe);if(!De)J.set(Fe,ue);else{if(De===ue)return;J.set(Fe,ey(De,ue))}})}_[c]=J||L}return _[c]}function Xy(r){return r.flags&6256?Eke(r,"resolvedMembers"):r.members||L}function $ie(r){if(r.flags&106500&&r.escapedName==="__computed"){let c=Fa(r);if(!c.lateSymbol&&Pt(r.declarations,KA)){let _=Uo(r.parent);Pt(r.declarations,Pu)?nd(_):Xy(_)}return c.lateSymbol||(c.lateSymbol=r)}return r}function id(r,c,_){if(oi(r)&4){let h=r.target,v=$c(r);return Re(h.typeParameters)===Re(v)?Z0(h,ya(v,[c||h.thisType])):r}else if(r.flags&2097152){let h=ia(r.types,v=>id(v,c,_));return h!==r.types?_o(h):r}return _?kf(r):r}function hZe(r,c,_,h){let v,T,D,J,V;dI(_,h,0,_.length)?(T=c.symbol?Xy(c.symbol):Qs(c.declaredProperties),D=c.declaredCallSignatures,J=c.declaredConstructSignatures,V=c.declaredIndexInfos):(v=P_(_,h),T=lZe(c.declaredProperties,v,_.length===1),D=fae(c.declaredCallSignatures,v),J=fae(c.declaredConstructSignatures,v),V=Qet(c.declaredIndexInfos,v));let Q=Fu(c);if(Q.length){if(c.symbol&&T===Xy(c.symbol)){let Fe=Qs(c.declaredProperties),De=Qie(c.symbol);De&&Fe.set("__index",De),T=Fe}vl(r,T,D,J,V);let ue=dc(h);for(let Fe of Q){let De=ue?id(Ma(Fe,v),ue):Fe;uZe(T,oc(De)),D=ya(D,Ns(De,0)),J=ya(J,Ns(De,1));let _t=De!==Qe?Wp(De):[ma];V=ya(V,Cn(_t,Nt=>!b8(V,Nt.keyType)))}}vl(r,T,D,J,V)}function G$t(r){hZe(r,Cke(r),ce,ce)}function K$t(r){let c=Cke(r.target),_=ya(c.typeParameters,[c.thisType]),h=$c(r),v=h.length===_.length?h:ya(h,[r]);hZe(r,c,_,v)}function n0(r,c,_,h,v,T,D,J){let V=new g(vn,J);return V.declaration=r,V.typeParameters=c,V.parameters=h,V.thisParameter=_,V.resolvedReturnType=v,V.resolvedTypePredicate=T,V.minArgumentCount=D,V.resolvedMinArgumentCount=void 0,V.target=void 0,V.mapper=void 0,V.compositeSignatures=void 0,V.compositeKind=void 0,V}function kj(r){let c=n0(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&167);return c.target=r.target,c.mapper=r.mapper,c.compositeSignatures=r.compositeSignatures,c.compositeKind=r.compositeKind,c}function yZe(r,c){let _=kj(r);return _.compositeSignatures=c,_.compositeKind=1048576,_.target=void 0,_.mapper=void 0,_}function Q$t(r,c){if((r.flags&24)===c)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});let _=c===8?"inner":"outer";return r.optionalCallSignatureCache[_]||(r.optionalCallSignatureCache[_]=X$t(r,c))}function X$t(r,c){I.assert(c===8||c===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let _=kj(r);return _.flags|=c,_}function vZe(r,c){if(ef(r)){let v=r.parameters.length-1,T=r.parameters[v],D=An(T);if(Oo(D))return[_(D,v,T)];if(!c&&D.flags&1048576&&sn(D.types,Oo))return Dt(D.types,J=>_(J,v,T))}return[r.parameters];function _(v,T,D){let J=$c(v),V=h(v,D),Q=Dt(J,(ue,Fe)=>{let De=V&&V[Fe]?V[Fe]:I8(r,T+Fe,v),_t=v.target.elementFlags[Fe],Nt=_t&12?32768:_t&2?16384:0,zt=fo(1,De,Nt);return zt.links.type=_t&4?Up(ue):ue,zt});return ya(r.parameters.slice(0,T),Q)}function h(v,T){let D=Dt(v.target.labeledElementDeclarations,(J,V)=>nEe(J,V,v.target.elementFlags[V],T));if(D){let J=[],V=new Set;for(let ue=0;ue<D.length;ue++){let Fe=D[ue];Ty(V,Fe)||J.push(ue)}let Q=new Map;for(let ue of J){let Fe=Q.get(D[ue])??1,De;for(;!Ty(V,De=`${D[ue]}_${Fe}`);)Fe++;D[ue]=De,Q.set(D[ue],Fe+1)}}return D}}function Y$t(r){let c=Go(r),_=Ns(c,1),h=A0(r.symbol),v=!!h&&Ai(h,64);if(_.length===0)return[n0(void 0,r.localTypeParameters,void 0,ce,r,void 0,0,v?4:0)];let T=na(r),D=jn(T),J=Q$(T),V=Re(J),Q=[];for(let ue of _){let Fe=Zy(ue.typeParameters),De=Re(ue.typeParameters);if(D||V>=Fe&&V<=De){let _t=De?Kie(ue,hb(J,ue.typeParameters,Fe,D)):kj(ue);_t.typeParameters=r.localTypeParameters,_t.resolvedReturnType=r,_t.flags=v?_t.flags|4:_t.flags&-5,Q.push(_t)}}return Q}function Vie(r,c,_,h,v){for(let T of r)if(_V(T,c,_,h,v,_?EGt:Lj))return T}function Z$t(r,c,_){if(c.typeParameters){if(_>0)return;for(let v=1;v<r.length;v++)if(!Vie(r[v],c,!1,!1,!1))return;return[c]}let h;for(let v=0;v<r.length;v++){let T=v===_?c:Vie(r[v],c,!1,!1,!0)||Vie(r[v],c,!0,!1,!0);if(!T)return;h=Mm(h,T)}return h}function Dke(r){let c,_;for(let h=0;h<r.length;h++){if(r[h].length===0)return ce;r[h].length>1&&(_=_===void 0?h:-1);for(let v of r[h])if(!c||!Vie(c,v,!1,!1,!0)){let T=Z$t(r,v,h);if(T){let D=v;if(T.length>1){let J=v.thisParameter,V=Ge(T,Q=>Q.thisParameter);if(V){let Q=_o(Bi(T,ue=>ue.thisParameter&&An(ue.thisParameter)));J=qC(V,Q)}D=yZe(v,T),D.thisParameter=J}(c||(c=[])).push(D)}}}if(!Re(c)&&_!==-1){let h=r[_!==void 0?_:0],v=h.slice();for(let T of r)if(T!==h){let D=T[0];if(I.assert(!!D,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),v=D.typeParameters&&Pt(v,J=>!!J.typeParameters&&!bZe(D.typeParameters,J.typeParameters))?void 0:Dt(v,J=>rVt(J,D)),!v)break}c=v}return c||ce}function bZe(r,c){if(Re(r)!==Re(c))return!1;if(!r||!c)return!0;let _=P_(c,r);for(let h=0;h<r.length;h++){let v=r[h],T=c[h];if(v!==T&&!o0(S8(v)||qt,Ma(S8(T)||qt,_)))return!1}return!0}function eVt(r,c,_){if(!r||!c)return r||c;let h=_o([An(r),Ma(An(c),_)]);return qC(r,h)}function tVt(r,c,_){let h=D_(r),v=D_(c),T=h>=v?r:c,D=T===r?c:r,J=T===r?h:v,V=nv(r)||nv(c),Q=V&&!nv(T),ue=new Array(J+(Q?1:0));for(let Fe=0;Fe<J;Fe++){let De=Jw(T,Fe);T===c&&(De=Ma(De,_));let _t=Jw(D,Fe)||qt;D===c&&(_t=Ma(_t,_));let Nt=_o([De,_t]),zt=V&&!Q&&Fe===J-1,Dr=Fe>=mh(T)&&Fe>=mh(D),Tr=Fe>=h?void 0:I8(r,Fe),En=Fe>=v?void 0:I8(c,Fe),xn=Tr===En?Tr:Tr?En?void 0:Tr:En,Fr=fo(1|(Dr&&!zt?16777216:0),xn||`arg${Fe}`,zt?32768:Dr?16384:0);Fr.links.type=zt?Up(Nt):Nt,ue[Fe]=Fr}if(Q){let Fe=fo(1,"args",32768);Fe.links.type=Up(dh(D,J)),D===c&&(Fe.links.type=Ma(Fe.links.type,_)),ue[J]=Fe}return ue}function rVt(r,c){let _=r.typeParameters||c.typeParameters,h;r.typeParameters&&c.typeParameters&&(h=P_(c.typeParameters,r.typeParameters));let v=(r.flags|c.flags)&166,T=r.declaration,D=tVt(r,c,h),J=dc(D);J&&Tl(J)&32768&&(v|=1);let V=eVt(r.thisParameter,c.thisParameter,h),Q=Math.max(r.minArgumentCount,c.minArgumentCount),ue=n0(T,_,V,D,void 0,void 0,Q,v);return ue.compositeKind=1048576,ue.compositeSignatures=ya(r.compositeKind!==2097152&&r.compositeSignatures||[r],[c]),h?ue.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?Fw(r.mapper,h):h:r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures&&(ue.mapper=r.mapper),ue}function xZe(r){let c=Wp(r[0]);if(c){let _=[];for(let h of c){let v=h.keyType;sn(r,T=>!!i0(T,v))&&_.push(a0(v,Fi(Dt(r,T=>OT(T,v))),Pt(r,T=>i0(T,v).isReadonly)))}return _}return ce}function nVt(r){let c=Dke(Dt(r.types,v=>v===nr?[wi]:Ns(v,0))),_=Dke(Dt(r.types,v=>Ns(v,1))),h=xZe(r.types);vl(r,L,c,_,h)}function W$(r,c){return r?c?_o([r,c]):r:c}function SZe(r){let c=Vu(r,h=>Ns(h,1).length>0),_=Dt(r,pi);if(c>0&&c===Vu(_,h=>h)){let h=_.indexOf(!0);_[h]=!1}return _}function iVt(r,c,_,h){let v=[];for(let T=0;T<c.length;T++)T===h?v.push(r):_[T]&&v.push(Yo(Ns(c[T],1)[0]));return _o(v)}function aVt(r){let c,_,h,v=r.types,T=SZe(v),D=Vu(T,J=>J);for(let J=0;J<v.length;J++){let V=r.types[J];if(!T[J]){let Q=Ns(V,1);Q.length&&D>0&&(Q=Dt(Q,ue=>{let Fe=kj(ue);return Fe.resolvedReturnType=iVt(Yo(ue),v,T,J),Fe})),_=TZe(_,Q)}c=TZe(c,Ns(V,0)),h=Qu(Wp(V),(Q,ue)=>wZe(Q,ue,!1),h)}vl(r,L,c||ce,_||ce,h||ce)}function TZe(r,c){for(let _ of c)(!r||sn(r,h=>!_V(h,_,!1,!1,!1,Lj)))&&(r=Zr(r,_));return r}function wZe(r,c,_){if(r)for(let h=0;h<r.length;h++){let v=r[h];if(v.keyType===c.keyType)return r[h]=a0(v.keyType,_?Fi([v.type,c.type]):_o([v.type,c.type]),_?v.isReadonly||c.isReadonly:v.isReadonly&&c.isReadonly),r}return Zr(r,c)}function sVt(r){if(r.target){vl(r,L,ce,ce,ce);let D=lZe(gb(r.target),r.mapper,!1),J=fae(Ns(r.target,0),r.mapper),V=fae(Ns(r.target,1),r.mapper),Q=Qet(Wp(r.target),r.mapper);vl(r,D,J,V,Q);return}let c=Uo(r.symbol);if(c.flags&2048){vl(r,L,ce,ce,ce);let D=Xy(c),J=Dw(D.get("__call")),V=Dw(D.get("__new")),Q=UZe(c);vl(r,D,J,V,Q);return}let _=nd(c),h;if(c===nt){let D=new Map;_.forEach(J=>{var V;!(J.flags&418)&&!(J.flags&512&&((V=J.declarations)!=null&&V.length)&&sn(J.declarations,df))&&D.set(J.escapedName,J)}),_=D}let v;if(vl(r,_,ce,ce,ce),c.flags&32){let D=Sm(c),J=Go(D);J.flags&11272192?(_=Qs(Jf(_)),uZe(_,oc(J))):J===Qe&&(v=ma)}let T=Xie(_);if(T?h=Yie(T,Ka(_.values())):(v&&(h=Zr(h,v)),c.flags&384&&(zc(c).flags&32||Pt(r.properties,D=>!!(An(D).flags&296)))&&(h=Zr(h,ua))),vl(r,_,ce,ce,h||ce),c.flags&8208&&(r.callSignatures=Dw(c)),c.flags&32){let D=Sm(c),J=c.members?Dw(c.members.get("__constructor")):ce;c.flags&16&&(J=ti(J.slice(),Bi(r.callSignatures,V=>gy(V.declaration)?n0(V.declaration,V.typeParameters,V.thisParameter,V.parameters,D,void 0,V.minArgumentCount,V.flags&167):void 0))),J.length||(J=Y$t(D)),r.constructSignatures=J}}function oVt(r,c,_){return Ma(r,P_([c.indexType,c.objectType],[Dg(0),ev([_])]))}function cVt(r){let c=$d(r.mappedType);if(!(c.flags&1048576||c.flags&2097152))return;let _=c.flags&1048576?c.origin:c;if(!_||!(_.flags&2097152))return;let h=_o(_.types.filter(v=>v!==r.constraintType));return h!==Pr?h:void 0}function lVt(r){let c=i0(r.source,kt),_=Yy(r.mappedType),h=!(_&1),v=_&4?0:16777216,T=c?[a0(kt,Fae(c.type,r.mappedType,r.constraintType)||qt,h&&c.isReadonly)]:ce,D=Qs(),J=cVt(r);for(let V of oc(r.source)){if(J){let Fe=LD(V,8576);if(!qs(Fe,J))continue}let Q=8192|(h&&gh(V)?8:0),ue=fo(4|V.flags&v,V.escapedName,Q);if(ue.declarations=V.declarations,ue.links.nameType=Fa(V).nameType,ue.links.propertyType=An(V),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){let Fe=r.constraintType.type.objectType,De=oVt(r.mappedType,r.constraintType.type,Fe);ue.links.mappedType=De,ue.links.constraintType=fy(Fe)}else ue.links.mappedType=r.mappedType,ue.links.constraintType=r.constraintType;D.set(V.escapedName,ue)}vl(r,D,ce,ce,T)}function U$(r){if(r.flags&4194304){let c=kf(r.type);return rS(c)?bet(c):fy(c)}if(r.flags&16777216){if(r.root.isDistributive){let c=r.checkType,_=U$(c);if(_!==c)return kCe(r,LC(r.root.checkType,_,r.mapper),!1)}return r}if(r.flags&1048576)return ol(r,U$,!0);if(r.flags&2097152){let c=r.types;return c.length===2&&c[0].flags&76&&c[1]===Gs?r:_o(ia(r.types,U$))}return r}function Oke(r){return Tl(r)&4096}function Nke(r,c,_,h){for(let v of oc(r))h(LD(v,c));if(r.flags&1)h(kt);else for(let v of Wp(r))(!_||v.keyType.flags&134217732)&&h(v.keyType)}function uVt(r){let c=Qs(),_;vl(r,L,ce,ce,ce);let h=uh(r),v=$d(r),T=r.target||r,D=mb(T),J=Cj(T)!==2,V=Y0(T),Q=kf(Cw(r)),ue=Yy(r);XA(r)?Nke(Q,8576,!1,De):UC(U$(v),De),vl(r,c,ce,ce,_||ce);function De(Nt){let zt=D?Ma(D,Mj(r.mapper,h,Nt)):Nt;UC(zt,Dr=>_t(Nt,Dr))}function _t(Nt,zt){if(_m(zt)){let Dr=dm(zt),Tr=c.get(Dr);if(Tr)Tr.links.nameType=Fi([Tr.links.nameType,zt]),Tr.links.keyType=Fi([Tr.links.keyType,Nt]);else{let En=_m(Nt)?io(Q,dm(Nt)):void 0,xn=!!(ue&4||!(ue&8)&&En&&En.flags&16777216),Fr=!!(ue&1||!(ue&2)&&En&&gh(En)),kr=fe&&!xn&&En&&En.flags&16777216,Un=En?Oke(En):0,ki=fo(4|(xn?16777216:0),Dr,Un|262144|(Fr?8:0)|(kr?524288:0));ki.links.mappedType=r,ki.links.nameType=zt,ki.links.keyType=Nt,En&&(ki.links.syntheticOrigin=En,ki.declarations=J?En.declarations:void 0),c.set(Dr,ki)}}else if(Zie(zt)||zt.flags&33){let Dr=zt.flags&5?kt:zt.flags&40?dr:zt,Tr=Ma(V,Mj(r.mapper,h,Nt)),En=Pj(Q,zt),xn=!!(ue&1||!(ue&2)&&En?.isReadonly),Fr=a0(Dr,Tr,xn);_=wZe(_,Fr,!0)}}}function pVt(r){var c;if(!r.links.type){let _=r.links.mappedType;if(!oy(r,0))return _.containsError=!0,ut;let h=Y0(_.target||_),v=Mj(_.mapper,uh(_),r.links.keyType),T=Ma(h,v),D=fe&&r.flags&16777216&&!ql(T,49152)?nS(T,!0):r.links.checkFlags&524288?Dae(T):T;cy()||(ot(N,y.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ja(r),Pn(_)),D=ut),(c=r.links).type??(c.type=D)}return r.links.type}function uh(r){return r.typeParameter||(r.typeParameter=kw(ei(r.declaration.typeParameter)))}function $d(r){return r.constraintType||(r.constraintType=Wf(uh(r))||ut)}function mb(r){return r.declaration.nameType?r.nameType||(r.nameType=Ma(Sa(r.declaration.nameType),r.mapper)):void 0}function Y0(r){return r.templateType||(r.templateType=r.declaration.type?Ma(ip(Sa(r.declaration.type),!0,!!(Yy(r)&4)),r.mapper):ut)}function kZe(r){return GO(r.declaration.typeParameter)}function XA(r){let c=kZe(r);return c.kind===198&&c.operator===143}function Cw(r){if(!r.modifiersType)if(XA(r))r.modifiersType=Ma(Sa(kZe(r).type),r.mapper);else{let c=dCe(r.declaration),_=$d(c),h=_&&_.flags&262144?Wf(_):_;r.modifiersType=h&&h.flags&4194304?Ma(h.type,r.mapper):qt}return r.modifiersType}function Yy(r){let c=r.declaration;return(c.readonlyToken?c.readonlyToken.kind===41?2:1:0)|(c.questionToken?c.questionToken.kind===41?8:4:0)}function CZe(r){let c=Yy(r);return c&8?-1:c&4?1:0}function y8(r){if(oi(r)&32)return CZe(r)||y8(Cw(r));if(r.flags&2097152){let c=y8(r.types[0]);return sn(r.types,(_,h)=>h===0||y8(_)===c)?c:0}return 0}function fVt(r){return!!(oi(r)&32&&Yy(r)&4)}function o_(r){if(oi(r)&32){let c=$d(r);if(jC(c))return!0;let _=mb(r);if(_&&jC(Ma(_,Iw(uh(r),c))))return!0}return!1}function Cj(r){let c=mb(r);return c?qs(c,uh(r))?1:2:0}function ph(r){return r.members||(r.flags&524288?r.objectFlags&4?K$t(r):r.objectFlags&3?G$t(r):r.objectFlags&1024?lVt(r):r.objectFlags&16?sVt(r):r.objectFlags&32?uVt(r):I.fail("Unhandled object type "+I.formatObjectFlags(r.objectFlags)):r.flags&1048576?nVt(r):r.flags&2097152?aVt(r):I.fail("Unhandled type "+I.formatTypeFlags(r.flags))),r}function gb(r){return r.flags&524288?ph(r).properties:ce}function Pw(r,c){if(r.flags&524288){let h=ph(r).members.get(c);if(h&&sh(h))return h}}function $$(r){if(!r.resolvedProperties){let c=Qs();for(let _ of r.types){for(let h of oc(_))if(!c.has(h.escapedName)){let v=H$(r,h.escapedName,!!(r.flags&2097152));v&&c.set(h.escapedName,v)}if(r.flags&1048576&&Wp(_).length===0)break}r.resolvedProperties=ps(c)}return r.resolvedProperties}function oc(r){return r=v8(r),r.flags&3145728?$$(r):gb(r)}function _Vt(r,c){r=v8(r),r.flags&3670016&&ph(r).members.forEach((_,h)=>{Co(_,h)&&c(_,h)})}function dVt(r,c){return c.properties.some(h=>{let v=h.name&&(Hg(h.name)?c_(X5(h.name)):e1(h.name)),T=v&&_m(v)?dm(v):void 0,D=T===void 0?void 0:fu(r,T);return!!D&&Jj(D)&&!qs(QD(h),D)})}function mVt(r){let c=Fi(r);if(!(c.flags&1048576))return qEe(c);let _=Qs();for(let h of r)for(let{escapedName:v}of qEe(h))if(!_.has(v)){let T=IZe(c,v);T&&_.set(v,T)}return Ka(_.values())}function NC(r){return r.flags&262144?Wf(r):r.flags&8388608?hVt(r):r.flags&16777216?DZe(r):Op(r)}function Wf(r){return V$(r)?S8(r):void 0}function gVt(r,c){let _=Rj(r);return!!_&&AC(_,c)}function AC(r,c=0){var _;return c<5&&!!(r&&(r.flags&262144&&Pt((_=r.symbol)==null?void 0:_.declarations,h=>Ai(h,4096))||r.flags&3145728&&Pt(r.types,h=>AC(h,c))||r.flags&8388608&&AC(r.objectType,c+1)||r.flags&16777216&&AC(DZe(r),c+1)||r.flags&33554432&&AC(r.baseType,c)||oi(r)&32&&gVt(r,c)||rS(r)&&Va(Ow(r),(h,v)=>!!(r.target.elementFlags[v]&8)&&AC(h,c))>=0))}function hVt(r){return V$(r)?yVt(r):void 0}function Ake(r){let c=t1(r,!1);return c!==r?c:NC(r)}function yVt(r){if(Rke(r))return cae(r.objectType,r.indexType);let c=Ake(r.indexType);if(c&&c!==r.indexType){let h=Zx(r.objectType,c,r.accessFlags);if(h)return h}let _=Ake(r.objectType);if(_&&_!==r.objectType)return Zx(_,r.indexType,r.accessFlags)}function Ike(r){if(!r.resolvedDefaultConstraint){let c=aGt(r),_=tS(r);r.resolvedDefaultConstraint=Ae(c)?_:Ae(_)?c:Fi([c,_])}return r.resolvedDefaultConstraint}function PZe(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){let c=t1(r.checkType,!1),_=c===r.checkType?NC(c):c;if(_&&_!==r.checkType){let h=kCe(r,LC(r.root.checkType,_,r.mapper),!0);if(!(h.flags&131072))return r.resolvedConstraintOfDistributive=h,h}}r.resolvedConstraintOfDistributive=!1}function EZe(r){return PZe(r)||Ike(r)}function DZe(r){return V$(r)?EZe(r):void 0}function vVt(r,c){let _,h=!1;for(let v of r)if(v.flags&465829888){let T=NC(v);for(;T&&T.flags&21233664;)T=NC(T);T&&(_=Zr(_,T),c&&(_=Zr(_,v)))}else(v.flags&469892092||rv(v))&&(h=!0);if(_&&(c||h)){if(h)for(let v of r)(v.flags&469892092||rv(v))&&(_=Zr(_,v));return uV(_o(_,2),!1)}}function Op(r){if(r.flags&464781312||rS(r)){let c=Fke(r);return c!==uu&&c!==Cl?c:void 0}return r.flags&4194304?ji:void 0}function py(r){return Op(r)||r}function V$(r){return Fke(r)!==Cl}function Fke(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;let c=[];return r.resolvedBaseConstraint=_(r);function _(T){if(!T.immediateBaseConstraint){if(!oy(T,4))return Cl;let D,J=Tae(T);if((c.length<10||c.length<50&&!Ta(c,J))&&(c.push(J),D=v(t1(T,!1)),c.pop()),!cy()){if(T.flags&262144){let V=eae(T);if(V){let Q=ot(V,y.Type_parameter_0_has_a_circular_constraint,Pn(T));N&&!T2(V,N)&&!T2(N,V)&&Hs(Q,Mn(N,y.Circularity_originates_in_type_at_this_location))}}D=Cl}T.immediateBaseConstraint??(T.immediateBaseConstraint=D||uu)}return T.immediateBaseConstraint}function h(T){let D=_(T);return D!==uu&&D!==Cl?D:void 0}function v(T){if(T.flags&262144){let D=S8(T);return T.isThisType||!D?D:h(D)}if(T.flags&3145728){let D=T.types,J=[],V=!1;for(let Q of D){let ue=h(Q);ue?(ue!==Q&&(V=!0),J.push(ue)):V=!0}return V?T.flags&1048576&&J.length===D.length?Fi(J):T.flags&2097152&&J.length?_o(J):void 0:T}if(T.flags&4194304)return ji;if(T.flags&134217728){let D=T.types,J=Bi(D,h);return J.length===D.length?FC(T.texts,J):kt}if(T.flags&268435456){let D=h(T.type);return D&&D!==T.type?BD(T.symbol,D):kt}if(T.flags&8388608){if(Rke(T))return h(cae(T.objectType,T.indexType));let D=h(T.objectType),J=h(T.indexType),V=D&&J&&Zx(D,J,T.accessFlags);return V&&h(V)}if(T.flags&16777216){let D=EZe(T);return D&&h(D)}if(T.flags&33554432)return h(Kke(T));if(rS(T)){let D=Dt(Ow(T),(J,V)=>{let Q=J.flags&262144&&T.target.elementFlags[V]&8&&h(J)||J;return Q!==J&&E_(Q,ue=>MT(ue)&&!rS(ue))?Q:J});return ev(D,T.target.elementFlags,T.target.readonly,T.target.labeledElementDeclarations)}return T}}function bVt(r,c){if(r===c)return r.resolvedApparentType||(r.resolvedApparentType=id(r,c,!0));let _=`I${ap(r)},${ap(c)}`;return th(_)??Jx(_,id(r,c,!0))}function Mke(r){if(r.default)r.default===hp&&(r.default=Cl);else if(r.target){let c=Mke(r.target);r.default=c?Ma(c,r.mapper):uu}else{r.default=hp;let c=r.symbol&&Ge(r.symbol.declarations,h=>Hc(h)&&h.default),_=c?Sa(c):uu;r.default===hp&&(r.default=_)}return r.default}function Ew(r){let c=Mke(r);return c!==uu&&c!==Cl?c:void 0}function xVt(r){return Mke(r)!==Cl}function OZe(r){return!!(r.symbol&&Ge(r.symbol.declarations,c=>Hc(c)&&c.default))}function NZe(r){return r.resolvedApparentType||(r.resolvedApparentType=SVt(r))}function SVt(r){let c=r.target??r,_=Rj(c);if(_&&!c.declaration.nameType){let h=Cw(r),v=o_(h)?NZe(h):Op(h);if(v&&E_(v,T=>MT(T)||AZe(T)))return Ma(c,LC(_,v,r.mapper))}return r}function AZe(r){return!!(r.flags&2097152)&&sn(r.types,MT)}function Rke(r){let c;return!!(r.flags&8388608&&oi(c=r.objectType)&32&&!o_(c)&&jC(r.indexType)&&!(Yy(c)&8)&&!c.declaration.nameType)}function kf(r){let c=r.flags&465829888?Op(r)||qt:r,_=oi(c);return _&32?NZe(c):_&4&&c!==r?id(c,r):c.flags&2097152?bVt(c,r):c.flags&402653316?Jc:c.flags&296?Kl:c.flags&2112?lHt():c.flags&528?hl:c.flags&12288?cet():c.flags&67108864?Ro:c.flags&4194304?ji:c.flags&2&&!fe?Ro:c}function v8(r){return Eg(kf(Eg(r)))}function IZe(r,c,_){var h,v,T;let D,J,V,Q=r.flags&1048576,ue,Fe=4,De=Q?0:8,_t=!1;for(let ki of r.types){let Pa=kf(ki);if(!(et(Pa)||Pa.flags&131072)){let ri=io(Pa,c,_),os=ri?fm(ri):0;if(ri){if(ri.flags&106500&&(ue??(ue=Q?0:16777216),Q?ue|=ri.flags&16777216:ue&=ri.flags),!D)D=ri;else if(ri!==D)if((d6(ri)||ri)===(d6(D)||D)&&RCe(D,ri,(pc,bs)=>pc===bs?-1:0)===-1)_t=!!D.parent&&!!Re(Pg(D.parent));else{J||(J=new Map,J.set(co(D),D));let pc=co(ri);J.has(pc)||J.set(pc,ri)}Q&&gh(ri)?De|=8:!Q&&!gh(ri)&&(De&=-9),De|=(os&6?0:256)|(os&4?512:0)|(os&2?1024:0)|(os&256?2048:0),IPe(ri)||(Fe=2)}else if(Q){let Ms=!wj(c)&&RD(Pa,c);Ms?(De|=32|(Ms.isReadonly?8:0),V=Zr(V,Oo(Pa)?Cae(Pa)||ke:Ms.type)):xb(Pa)&&!(oi(Pa)&2097152)?(De|=32,V=Zr(V,ke)):De|=16}}}if(!D||Q&&(J||De&48)&&De&1536&&!(J&&TVt(J.values())))return;if(!J&&!(De&16)&&!V)if(_t){let ki=(h=_i(D,Tv))==null?void 0:h.links,Pa=qC(D,ki?.type);return Pa.parent=(T=(v=D.valueDeclaration)==null?void 0:v.symbol)==null?void 0:T.parent,Pa.links.containingType=r,Pa.links.mapper=ki?.mapper,Pa.links.writeType=fb(D),Pa}else return D;let Nt=J?Ka(J.values()):[D],zt,Dr,Tr,En=[],xn,Fr,kr=!1;for(let ki of Nt){Fr?ki.valueDeclaration&&ki.valueDeclaration!==Fr&&(kr=!0):Fr=ki.valueDeclaration,zt=ti(zt,ki.declarations);let Pa=An(ki);Dr||(Dr=Pa,Tr=Fa(ki).nameType);let ri=fb(ki);(xn||ri!==Pa)&&(xn=Zr(xn||En.slice(),ri)),Pa!==Dr&&(De|=64),(Jj(Pa)||MC(Pa))&&(De|=128),Pa.flags&131072&&Pa!==Bl&&(De|=131072),En.push(Pa)}ti(En,V);let Un=fo(4|(ue??0),c,Fe|De);return Un.links.containingType=r,!kr&&Fr&&(Un.valueDeclaration=Fr,Fr.symbol.parent&&(Un.parent=Fr.symbol.parent)),Un.declarations=zt,Un.links.nameType=Tr,En.length>2?(Un.links.checkFlags|=65536,Un.links.deferralParent=r,Un.links.deferralConstituents=En,Un.links.deferralWriteConstituents=xn):(Un.links.type=Q?Fi(En):_o(En),xn&&(Un.links.writeType=Q?Fi(xn):_o(xn))),Un}function FZe(r,c,_){var h,v,T;let D=_?(h=r.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:h.get(c):(v=r.propertyCache)==null?void 0:v.get(c);return D||(D=IZe(r,c,_),D&&((_?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=Qs()):r.propertyCache||(r.propertyCache=Qs())).set(c,D),_&&!(Tl(D)&48)&&!((T=r.propertyCache)!=null&&T.get(c))&&(r.propertyCache||(r.propertyCache=Qs())).set(c,D))),D}function TVt(r){let c;for(let _ of r){if(!_.declarations)return;if(!c){c=new Set(_.declarations);continue}if(c.forEach(h=>{Ta(_.declarations,h)||c.delete(h)}),c.size===0)return}return c}function H$(r,c,_){let h=FZe(r,c,_);return h&&!(Tl(h)&16)?h:void 0}function Eg(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=wVt(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(Pt($$(r),kVt)?33554432:0)),r.objectFlags&33554432?Pr:r):r}function wVt(r){let c=ia(r.types,Eg);if(c===r.types)return r;let _=Fi(c);return _.flags&1048576&&(_.resolvedReducedType=_),_}function kVt(r){return MZe(r)||RZe(r)}function MZe(r){return!(r.flags&16777216)&&(Tl(r)&131264)===192&&!!(An(r).flags&131072)}function RZe(r){return!r.valueDeclaration&&!!(Tl(r)&1024)}function jke(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&Pt(r.types,jke)||r.flags&2097152&&CVt(r))}function CVt(r){let c=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=Ma(r,la));return Eg(c)!==c}function Lke(r,c){if(c.flags&2097152&&oi(c)&33554432){let _=Ir($$(c),MZe);if(_)return vs(r,y.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Pn(c,void 0,536870912),ja(_));let h=Ir($$(c),RZe);if(h)return vs(r,y.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Pn(c,void 0,536870912),ja(h))}return r}function io(r,c,_,h){var v,T;if(r=v8(r),r.flags&524288){let D=ph(r),J=D.members.get(c);if(J&&!h&&((v=r.symbol)==null?void 0:v.flags)&512&&((T=Fa(r.symbol).typeOnlyExportStarMap)!=null&&T.has(c)))return;if(J&&sh(J,h))return J;if(_)return;let V=D===hc?nr:D.callSignatures.length?Nn:D.constructSignatures.length?za:void 0;if(V){let Q=Pw(V,c);if(Q)return Q}return Pw($e,c)}if(r.flags&2097152){let D=H$(r,c,!0);return D||(_?void 0:H$(r,c,_))}if(r.flags&1048576)return H$(r,c,_)}function G$(r,c){if(r.flags&3670016){let _=ph(r);return c===0?_.callSignatures:_.constructSignatures}return ce}function Ns(r,c){let _=G$(v8(r),c);if(c===0&&!Re(_)&&r.flags&1048576){if(r.arrayFallbackSignatures)return r.arrayFallbackSignatures;let h;if(E_(r,v=>{var T;return!!((T=v.symbol)!=null&&T.parent)&&PVt(v.symbol.parent)&&(h?h===v.symbol.escapedName:(h=v.symbol.escapedName,!0))})){let v=ol(r,D=>vb((jZe(D.symbol.parent)?Io:Fs).typeParameters[0],D.mapper)),T=Up(v,Pm(r,D=>jZe(D.symbol.parent)));return r.arrayFallbackSignatures=Ns(fu(T,h),c)}r.arrayFallbackSignatures=_}return _}function PVt(r){return!r||!Fs.symbol||!Io.symbol?!1:!!Ud(r,Fs.symbol)||!!Ud(r,Io.symbol)}function jZe(r){return!r||!Io.symbol?!1:!!Ud(r,Io.symbol)}function b8(r,c){return Ir(r,_=>_.keyType===c)}function Bke(r,c){let _,h,v;for(let T of r)T.keyType===kt?_=T:MD(c,T.keyType)&&(h?(v||(v=[h])).push(T):h=T);return v?a0(qt,_o(Dt(v,T=>T.type)),Qu(v,(T,D)=>T&&D.isReadonly,!0)):h||(_&&MD(c,kt)?_:void 0)}function MD(r,c){return qs(r,c)||c===kt&&qs(r,dr)||c===dr&&(r===Ps||!!(r.flags&128)&&Mv(r.value))}function qke(r){return r.flags&3670016?ph(r).indexInfos:ce}function Wp(r){return qke(v8(r))}function i0(r,c){return b8(Wp(r),c)}function OT(r,c){var _;return(_=i0(r,c))==null?void 0:_.type}function Jke(r,c){return Wp(r).filter(_=>MD(c,_.keyType))}function Pj(r,c){return Bke(Wp(r),c)}function RD(r,c){return Pj(r,wj(c)?er:c_(ka(c)))}function LZe(r){var c;let _;for(let h of nx(r))_=Mm(_,kw(h.symbol));return _?.length?_:jl(r)?(c=x8(r))==null?void 0:c.typeParameters:void 0}function zke(r){let c=[];return r.forEach((_,h)=>{Ha(h)||c.push(_)}),c}function BZe(r,c){if(Hu(r))return;let _=Sf(Tt,'"'+r+'"',512);return _&&c?Uo(_):_}function Hie(r){return QP(r)||Q5(r)||Da(r)&&ZJ(r)}function Ej(r){if(Hie(r))return!0;if(!Da(r))return!1;if(r.initializer){let _=Vd(r.parent),h=r.parent.parameters.indexOf(r);return I.assert(h>=0),h>=mh(_,3)}let c=v2(r.parent);return c?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=cse(c).length:!1}function EVt(r){return is(r)&&!Ah(r)&&r.questionToken}function Dj(r,c,_,h){return{kind:r,parameterName:c,parameterIndex:_,type:h}}function Zy(r){let c=0;if(r)for(let _=0;_<r.length;_++)OZe(r[_])||(c=_+1);return c}function hb(r,c,_,h){let v=Re(c);if(!v)return[];let T=Re(r);if(h||T>=_&&T<=v){let D=r?r.slice():[];for(let V=T;V<v;V++)D[V]=ut;let J=tPe(h);for(let V=T;V<v;V++){let Q=Ew(c[V]);h&&Q&&(o0(Q,qt)||o0(Q,Ro))&&(Q=Qe),D[V]=Q?Ma(Q,P_(c,D)):J}return D.length=c.length,D}return r&&r.slice()}function Vd(r){let c=Zn(r);if(!c.resolvedSignature){let _=[],h=0,v=0,T,D=jn(r)?cq(r):void 0,J=!1,V=v2(r),Q=XP(r);!V&&jn(r)&&Ok(r)&&!sde(r)&&!rx(r)&&(h|=32);for(let Nt=Q?1:0;Nt<r.parameters.length;Nt++){let zt=r.parameters[Nt];if(jn(zt)&&TY(zt)){D=zt;continue}let Dr=zt.symbol,Tr=Ad(zt)?zt.typeExpression&&zt.typeExpression.type:zt.type;Dr&&Dr.flags&4&&!Os(zt.name)&&(Dr=Ct(zt,Dr.escapedName,111551,void 0,!1)),Nt===0&&Dr.escapedName==="this"?(J=!0,T=zt.symbol):_.push(Dr),Tr&&Tr.kind===201&&(h|=2),Hie(zt)||Da(zt)&&zt.initializer||Ey(zt)||V&&_.length>V.arguments.length&&!Tr||(v=_.length)}if((r.kind===177||r.kind===178)&&QA(r)&&(!J||!T)){let Nt=r.kind===177?178:177,zt=Zc(ei(r),Nt);zt&&(T=xke(zt))}D&&D.typeExpression&&(T=qC(fo(1,"this"),Sa(D.typeExpression)));let Fe=B1(r)?ES(r):r,De=Fe&&ul(Fe)?Sm(Uo(Fe.parent.symbol)):void 0,_t=De?De.localTypeParameters:LZe(r);(XK(r)||jn(r)&&DVt(r,_))&&(h|=1),(DN(r)&&Ai(r,64)||ul(r)&&Ai(r.parent,64))&&(h|=4),c.resolvedSignature=n0(r,_t,T,_,void 0,void 0,v,h)}return c.resolvedSignature}function DVt(r,c){if(B1(r)||!Wke(r))return!1;let _=dc(r.parameters),h=_?HO(_):SS(r).filter(Ad),v=jr(h,D=>D.typeExpression&&Tz(D.typeExpression.type)?D.typeExpression.type:void 0),T=fo(3,"args",32768);return v?T.links.type=Up(Sa(v.type)):(T.links.checkFlags|=65536,T.links.deferralParent=Pr,T.links.deferralConstituents=[Nu],T.links.deferralWriteConstituents=[Nu]),v&&c.pop(),c.push(T),!0}function x8(r){if(!(jn(r)&&Dc(r)))return;let c=xS(r);return c?.typeExpression&&GC(Sa(c.typeExpression))}function OVt(r,c){let _=x8(r);if(!_)return;let h=r.parameters.indexOf(c);return c.dotDotDotToken?zV(_,h):dh(_,h)}function NVt(r){let c=x8(r);return c&&Yo(c)}function Wke(r){let c=Zn(r);return c.containsArgumentsReference===void 0&&(c.flags&512?c.containsArgumentsReference=!0:c.containsArgumentsReference=_(r.body)),c.containsArgumentsReference;function _(h){if(!h)return!1;switch(h.kind){case 80:return h.escapedText===pe.escapedName&&gL(h)===pe;case 172:case 174:case 177:case 178:return h.name.kind===167&&_(h.name);case 211:case 212:return _(h.expression);case 303:return _(h.initializer);default:return!JQ(h)&&!Eh(h)&&!!xs(h,_)}}}function Dw(r){if(!r||!r.declarations)return ce;let c=[];for(let _=0;_<r.declarations.length;_++){let h=r.declarations[_];if(Ss(h)){if(_>0&&h.body){let v=r.declarations[_-1];if(h.parent===v.parent&&h.kind===v.kind&&h.pos===v.end)continue}if(jn(h)&&h.jsDoc){let v=NQ(h);if(Re(v)){for(let T of v){let D=T.typeExpression;D.type===void 0&&!ul(h)&&jT(D,Qe),c.push(Vd(D))}continue}}c.push(!xx(h)&&!Lm(h)&&x8(h)||Vd(h))}}return c}function qZe(r){let c=wf(r,r);if(c){let _=a_(c);if(_)return An(_)}return Qe}function NT(r){if(r.thisParameter)return An(r.thisParameter)}function Tm(r){if(!r.resolvedTypePredicate){if(r.target){let c=Tm(r.target);r.resolvedTypePredicate=c?Yet(c,r.mapper):ur}else if(r.compositeSignatures)r.resolvedTypePredicate=FHt(r.compositeSignatures,r.compositeKind)||ur;else{let c=r.declaration&&dd(r.declaration),_;if(!c){let h=x8(r.declaration);h&&r!==h&&(_=Tm(h))}if(c||_)r.resolvedTypePredicate=c&&SE(c)?AVt(c,r):_||ur;else if(r.declaration&&Dc(r.declaration)&&(!r.resolvedReturnType||r.resolvedReturnType.flags&16)&&D_(r)>0){let{declaration:h}=r;r.resolvedTypePredicate=ur,r.resolvedTypePredicate=hZt(h)||ur}else r.resolvedTypePredicate=ur}I.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===ur?void 0:r.resolvedTypePredicate}function AVt(r,c){let _=r.parameterName,h=r.type&&Sa(r.type);return _.kind===197?Dj(r.assertsModifier?2:0,void 0,void 0,h):Dj(r.assertsModifier?3:1,_.escapedText,Va(c.parameters,v=>v.escapedName===_.escapedText),h)}function JZe(r,c,_){return c!==2097152?Fi(r,_):_o(r)}function Yo(r){if(!r.resolvedReturnType){if(!oy(r,3))return ut;let c=r.target?Ma(Yo(r.target),r.mapper):r.compositeSignatures?Ma(JZe(Dt(r.compositeSignatures,Yo),r.compositeKind,2),r.mapper):YA(r.declaration)||(Sl(r.declaration.body)?Qe:fse(r.declaration));if(r.flags&8?c=Ett(c):r.flags&16&&(c=nS(c)),!cy()){if(r.declaration){let _=dd(r.declaration);if(_)ot(_,y.Return_type_annotation_circularly_references_itself);else if(Pe){let h=r.declaration,v=ls(h);v?ot(v,y._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Oc(v)):ot(h,y.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}c=Qe}r.resolvedReturnType??(r.resolvedReturnType=c)}return r.resolvedReturnType}function YA(r){if(r.kind===176)return Sm(Uo(r.parent.symbol));let c=dd(r);if(B1(r)){let _=fN(r);if(_&&ul(_.parent)&&!c)return Sm(Uo(_.parent.parent.symbol))}if(XP(r))return Sa(r.parameters[0].type);if(c)return Sa(c);if(r.kind===177&&QA(r)){let _=jn(r)&&xm(r);if(_)return _;let h=Zc(ei(r),178),v=m8(h);if(v)return v}return NVt(r)}function Gie(r){return r.compositeSignatures&&Pt(r.compositeSignatures,Gie)||!r.resolvedReturnType&&UA(r,3)>=0}function IVt(r){return zZe(r)||Qe}function zZe(r){if(ef(r)){let c=An(r.parameters[r.parameters.length-1]),_=Oo(c)?Cae(c):c;return _&&OT(_,dr)}}function Oj(r,c,_,h){let v=Uke(r,hb(c,r.typeParameters,Zy(r.typeParameters),_));if(h){let T=ynt(Yo(v));if(T){let D=kj(T);D.typeParameters=h;let J=kj(v);return J.resolvedReturnType=IC(D),J}}return v}function Uke(r,c){let _=r.instantiations||(r.instantiations=new Map),h=eg(c),v=_.get(h);return v||_.set(h,v=Kie(r,c)),v}function Kie(r,c){return Mw(r,FVt(r,c),!0)}function WZe(r){return ia(r.typeParameters,c=>c.mapper?Ma(c,c.mapper):c)}function FVt(r,c){return P_(WZe(r),c)}function Nj(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=MVt(r)):r}function MVt(r){return Mw(r,Xet(r.typeParameters),!0)}function RVt(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=jVt(r)):r}function jVt(r){return Oj(r,Dt(r.typeParameters,c=>c.target&&!Wf(c.target)?c.target:c),jn(r.declaration))}function LVt(r){return r.typeParameters?r.implementationSignatureCache||(r.implementationSignatureCache=BVt(r)):r}function BVt(r){return r.typeParameters?Mw(r,P_([],[])):r}function qVt(r){let c=r.typeParameters;if(c){if(r.baseSignatureCache)return r.baseSignatureCache;let _=Xet(c),h=P_(c,Dt(c,T=>Wf(T)||qt)),v=Dt(c,T=>Ma(T,h)||qt);for(let T=0;T<c.length-1;T++)v=tv(v,h);return v=tv(v,_),r.baseSignatureCache=Mw(r,P_(c,v),!0)}return r}function IC(r,c){var _;if(!r.isolatedSignatureType){let h=(_=r.declaration)==null?void 0:_.kind,v=h===void 0||h===176||h===180||h===185,T=Nr(134217744,fo(16,"__function"));r.declaration&&!Pc(r.declaration)&&(T.symbol.declarations=[r.declaration],T.symbol.valueDeclaration=r.declaration),c||(c=r.declaration&&_b(r.declaration,!0)),T.outerTypeParameters=c,T.members=L,T.properties=ce,T.callSignatures=v?ce:[r],T.constructSignatures=v?[r]:ce,T.indexInfos=ce,r.isolatedSignatureType=T}return r.isolatedSignatureType}function Qie(r){return r.members?Xie(Xy(r)):void 0}function Xie(r){return r.get("__index")}function a0(r,c,_,h,v){return{keyType:r,type:c,isReadonly:_,declaration:h,components:v}}function UZe(r){let c=Qie(r);return c?Yie(c,Ka(Xy(r).values())):ce}function Yie(r,c=r.parent?Ka(Xy(r.parent).values()):void 0){if(r.declarations){let _=[],h=!1,v=!0,T=!1,D=!0,J=!1,V=!0,Q=[];for(let Fe of r.declarations)if(wx(Fe)){if(Fe.parameters.length===1){let De=Fe.parameters[0];De.type&&UC(Sa(De.type),_t=>{Zie(_t)&&!b8(_,_t)&&_.push(a0(_t,Fe.type?Sa(Fe.type):Qe,z_(Fe,8),Fe))})}}else if(dZe(Fe)){let De=Vn(Fe)?Fe.left:Fe.name,_t=Nc(De)?Nl(De.argumentExpression):Og(De);if(b8(_,_t))continue;qs(_t,ji)&&(qs(_t,dr)?(h=!0,Ik(Fe)||(v=!1)):qs(_t,er)?(T=!0,Ik(Fe)||(D=!1)):(J=!0,Ik(Fe)||(V=!1)),Q.push(Fe.symbol))}let ue=ya(Q,Cn(c,Fe=>Fe!==r));return J&&!b8(_,kt)&&_.push(Yj(V,0,ue,kt)),h&&!b8(_,dr)&&_.push(Yj(v,0,ue,dr)),T&&!b8(_,er)&&_.push(Yj(D,0,ue,er)),_}return ce}function Zie(r){return!!(r.flags&4108)||MC(r)||!!(r.flags&2097152)&&!IT(r)&&Pt(r.types,Zie)}function eae(r){return Bi(Cn(r.symbol&&r.symbol.declarations,Hc),GO)[0]}function $Ze(r,c){var _;let h;if((_=r.symbol)!=null&&_.declarations){for(let v of r.symbol.declarations)if(v.parent.kind===195){let[T=v.parent,D]=Ame(v.parent.parent);if(D.kind===183&&!c){let J=D,V=vEe(J);if(V){let Q=J.typeArguments.indexOf(T);if(Q<V.length){let ue=Wf(V[Q]);if(ue){let Fe=SCe(V,V.map((_t,Nt)=>()=>_er(J,V,Nt))),De=Ma(ue,Fe);De!==r&&(h=Zr(h,De))}}}}else if(D.kind===169&&D.dotDotDotToken||D.kind===191||D.kind===202&&D.dotDotDotToken)h=Zr(h,Up(qt));else if(D.kind===204)h=Zr(h,kt);else if(D.kind===168&&D.parent.kind===200)h=Zr(h,ji);else if(D.kind===200&&D.type&&Qo(D.type)===v.parent&&D.parent.kind===194&&D.parent.extendsType===D&&D.parent.checkType.kind===200&&D.parent.checkType.type){let J=D.parent.checkType,V=Sa(J.type);h=Zr(h,Ma(V,Iw(kw(ei(J.typeParameter)),J.typeParameter.constraint?Sa(J.typeParameter.constraint):ji)))}}}return h&&_o(h)}function S8(r){if(!r.constraint)if(r.target){let c=Wf(r.target);r.constraint=c?Ma(c,r.mapper):uu}else{let c=eae(r);if(!c)r.constraint=$Ze(r)||uu;else{let _=Sa(c);_.flags&1&&!et(_)&&(_=c.parent.parent.kind===200?ji:qt),r.constraint=_}}return r.constraint===uu?void 0:r.constraint}function VZe(r){let c=Zc(r.symbol,168),_=Um(c.parent)?nJ(c.parent):c.parent;return _&&bd(_)}function eg(r){let c="";if(r){let _=r.length,h=0;for(;h<_;){let v=r[h].id,T=1;for(;h+T<_&&r[h+T].id===v+T;)T++;c.length&&(c+=","),c+=v,T>1&&(c+=":"+T),h+=T}}return c}function jD(r,c){return r?`@${co(r)}`+(c?`:${eg(c)}`:""):""}function K$(r,c){let _=0;for(let h of r)(c===void 0||!(h.flags&c))&&(_|=oi(h));return _&458752}function ZA(r,c){return Pt(c)&&r===fr?qt:Z0(r,c)}function Z0(r,c){let _=eg(c),h=r.instantiations.get(_);return h||(h=Nr(4,r.symbol),r.instantiations.set(_,h),h.objectFlags|=c?K$(c):0,h.target=r,h.resolvedTypeArguments=c),h}function HZe(r){let c=t0(r.flags,r.symbol);return c.objectFlags=r.objectFlags,c.target=r.target,c.resolvedTypeArguments=r.resolvedTypeArguments,c}function $ke(r,c,_,h,v){if(!h){h=qD(c);let D=n6(h);v=_?tv(D,_):D}let T=Nr(4,r.symbol);return T.target=r,T.node=c,T.mapper=_,T.aliasSymbol=h,T.aliasTypeArguments=v,T}function $c(r){var c,_;if(!r.resolvedTypeArguments){if(!oy(r,5))return ya(r.target.outerTypeParameters,(c=r.target.localTypeParameters)==null?void 0:c.map(()=>ut))||ce;let h=r.node,v=h?h.kind===183?ya(r.target.outerTypeParameters,vse(h,r.target.localTypeParameters)):h.kind===188?[Sa(h.elementType)]:Dt(h.elements,Sa):ce;cy()?r.resolvedTypeArguments??(r.resolvedTypeArguments=r.mapper?tv(v,r.mapper):v):(r.resolvedTypeArguments??(r.resolvedTypeArguments=ya(r.target.outerTypeParameters,((_=r.target.localTypeParameters)==null?void 0:_.map(()=>ut))||ce)),ot(r.node||N,r.target.symbol?y.Type_arguments_for_0_circularly_reference_themselves:y.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&ja(r.target.symbol)))}return r.resolvedTypeArguments}function yb(r){return Re(r.target.typeParameters)}function GZe(r,c){let _=zc(Uo(c)),h=_.localTypeParameters;if(h){let v=Re(r.typeArguments),T=Zy(h),D=jn(r);if(!(!Pe&&D)&&(v<T||v>h.length)){let Q=D&&F0(r)&&!DE(r.parent),ue=T===h.length?Q?y.Expected_0_type_arguments_provide_these_with_an_extends_tag:y.Generic_type_0_requires_1_type_argument_s:Q?y.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:y.Generic_type_0_requires_between_1_and_2_type_arguments,Fe=Pn(_,void 0,2);if(ot(r,ue,Fe,T,h.length),!D)return ut}if(r.kind===183&&yet(r,Re(r.typeArguments)!==h.length))return $ke(_,r,void 0);let V=ya(_.outerTypeParameters,hb(Q$(r),h,T,D));return Z0(_,V)}return AT(r,c)?_:ut}function e6(r,c,_,h){let v=zc(r);if(v===We){let Q=EZ.get(r.escapedName);if(Q!==void 0&&c&&c.length===1)return Q===4?Vke(c[0]):BD(r,c[0])}let T=Fa(r),D=T.typeParameters,J=eg(c)+jD(_,h),V=T.instantiations.get(J);return V||T.instantiations.set(J,V=ttt(v,P_(D,hb(c,D,Zy(D),jn(r.valueDeclaration))),_,h)),V}function JVt(r,c){if(Tl(c)&1048576){let v=Q$(r),T=jD(c,v),D=vt.get(T);return D||(D=Se(1,"error",void 0,`alias ${T}`),D.aliasSymbol=c,D.aliasTypeArguments=v,vt.set(T,D)),D}let _=zc(c),h=Fa(c).typeParameters;if(h){let v=Re(r.typeArguments),T=Zy(h);if(v<T||v>h.length)return ot(r,T===h.length?y.Generic_type_0_requires_1_type_argument_s:y.Generic_type_0_requires_between_1_and_2_type_arguments,ja(c),T,h.length),ut;let D=qD(r),J=D&&(KZe(c)||!KZe(D))?D:void 0,V;if(J)V=n6(J);else if(wq(r)){let Q=T8(r,2097152,!0);if(Q&&Q!==oe){let ue=pu(Q);ue&&ue.flags&524288&&(J=ue,V=Q$(r)||(h?[]:void 0))}}return e6(c,Q$(r),J,V)}return AT(r,c)?_:ut}function KZe(r){var c;let _=(c=r.declarations)==null?void 0:c.find(g5);return!!(_&&Ed(_))}function zVt(r){switch(r.kind){case 183:return r.typeName;case 233:let c=r.expression;if(Tc(c))return c}}function QZe(r){return r.parent?`${QZe(r.parent)}.${r.escapedName}`:r.escapedName}function tae(r){let _=(r.kind===166?r.right:r.kind===211?r.name:r).escapedText;if(_){let h=r.kind===166?tae(r.left):r.kind===211?tae(r.expression):void 0,v=h?`${QZe(h)}.${_}`:_,T=pt.get(v);return T||(pt.set(v,T=fo(524288,_,1048576)),T.parent=h,T.links.declaredType=lr),T}return oe}function T8(r,c,_){let h=zVt(r);if(!h)return oe;let v=Ol(h,c,_);return v&&v!==oe?v:_?oe:tae(h)}function rae(r,c){if(c===oe)return ut;if(c=f8(c)||c,c.flags&96)return GZe(r,c);if(c.flags&524288)return JVt(r,c);let _=oZe(c);if(_)return AT(r,c)?Cf(_):ut;if(c.flags&111551&&nae(r)){let h=WVt(r,c);return h||(T8(r,788968),An(c))}return ut}function WVt(r,c){let _=Zn(r);if(!_.resolvedJSDocType){let h=An(c),v=h;if(c.valueDeclaration){let T=r.kind===205&&r.qualifier;h.symbol&&h.symbol!==c&&T&&(v=rae(r,h.symbol))}_.resolvedJSDocType=v}return _.resolvedJSDocType}function Vke(r){return Hke(r)?XZe(r,qt):r}function Hke(r){return!!(r.flags&3145728&&Pt(r.types,Hke)||r.flags&33554432&&!t6(r)&&Hke(r.baseType)||r.flags&524288&&!rv(r)||r.flags&432275456&&!MC(r))}function t6(r){return!!(r.flags&33554432&&r.constraint.flags&2)}function Gke(r,c){return c.flags&3||c===r||r.flags&1?r:XZe(r,c)}function XZe(r,c){let _=`${ap(r)}>${ap(c)}`,h=no.get(_);if(h)return h;let v=Q0(33554432);return v.baseType=r,v.constraint=c,no.set(_,v),v}function Kke(r){return t6(r)?r.baseType:_o([r.constraint,r.baseType])}function YZe(r){return r.kind===189&&r.elements.length===1}function ZZe(r,c,_){return YZe(c)&&YZe(_)?ZZe(r,c.elements[0],_.elements[0]):r1(Sa(c))===r1(r)?Sa(_):void 0}function UVt(r,c){let _,h=!0;for(;c&&!fa(c)&&c.kind!==320;){let v=c.parent;if(v.kind===169&&(h=!h),(h||r.flags&8650752)&&v.kind===194&&c===v.trueType){let T=ZZe(r,v.checkType,v.extendsType);T&&(_=Zr(_,T))}else if(r.flags&262144&&v.kind===200&&!v.nameType&&c===v.type){let T=Sa(v);if(uh(T)===r1(r)){let D=Rj(T);if(D){let J=Wf(D);J&&E_(J,MT)&&(_=Zr(_,Fi([dr,Ps])))}}}c=v}return _?Gke(r,_o(_)):r}function nae(r){return!!(r.flags&16777216)&&(r.kind===183||r.kind===205)}function AT(r,c){return r.typeArguments?(ot(r,y.Type_0_is_not_generic,c?ja(c):r.typeName?Oc(r.typeName):wZ),!1):!0}function eet(r){if(Ye(r.typeName)){let c=r.typeArguments;switch(r.typeName.escapedText){case"String":return AT(r),kt;case"Number":return AT(r),dr;case"BigInt":return AT(r),kn;case"Boolean":return AT(r),cr;case"Void":return AT(r),zr;case"Undefined":return AT(r),ke;case"Null":return AT(r),rr;case"Function":case"function":return AT(r),nr;case"array":return(!c||!c.length)&&!Pe?Nu:void 0;case"promise":return(!c||!c.length)&&!Pe?UV(Qe):void 0;case"Object":if(c&&c.length===2){if(Zq(r)){let _=Sa(c[0]),h=Sa(c[1]),v=_===kt||_===dr?[a0(_,h,!1)]:ce;return rl(void 0,L,ce,ce,v)}return Qe}return AT(r),Pe?void 0:Qe}}}function $Vt(r){let c=Sa(r.type);return fe?gV(c,65536):c}function iae(r){let c=Zn(r);if(!c.resolvedType){if(_g(r)&&d2(r.parent))return c.resolvedSymbol=oe,c.resolvedType=Nl(r.parent.expression);let _,h,v=788968;nae(r)&&(h=eet(r),h||(_=T8(r,v,!0),_===oe?_=T8(r,v|111551):T8(r,v),h=rae(r,_))),h||(_=T8(r,v),h=rae(r,_)),c.resolvedSymbol=_,c.resolvedType=h}return c.resolvedType}function Q$(r){return Dt(r.typeArguments,Sa)}function tet(r){let c=Zn(r);if(!c.resolvedType){let _=Bnt(r);c.resolvedType=Cf(ad(_))}return c.resolvedType}function ret(r,c){function _(v){let T=v.declarations;if(T)for(let D of T)switch(D.kind){case 263:case 264:case 266:return D}}if(!r)return c?fr:Ro;let h=zc(r);return h.flags&524288?Re(h.typeParameters)!==c?(ot(_(r),y.Global_type_0_must_have_1_type_parameter_s,Ml(r),c),c?fr:Ro):h:(ot(_(r),y.Global_type_0_must_be_a_class_or_interface_type,Ml(r)),c?fr:Ro)}function Qke(r,c){return r6(r,111551,c?y.Cannot_find_global_value_0:void 0)}function Xke(r,c){return r6(r,788968,c?y.Cannot_find_global_type_0:void 0)}function aae(r,c,_){let h=r6(r,788968,_?y.Cannot_find_global_type_0:void 0);if(h&&(zc(h),Re(Fa(h).typeParameters)!==c)){let v=h.declarations&&Ir(h.declarations,Wm);ot(v,y.Global_type_0_must_have_1_type_parameter_s,Ml(h),c);return}return h}function r6(r,c,_){return Ct(void 0,r,c,_,!1,!1)}function Fl(r,c,_){let h=Xke(r,_);return h||_?ret(h,c):void 0}function net(r,c){let _;for(let h of r)_=Zr(_,Fl(h,c,!1));return _??ce}function VVt(){return Jv||(Jv=Fl("TypedPropertyDescriptor",1,!0)||fr)}function HVt(){return Xr||(Xr=Fl("TemplateStringsArray",0,!0)||Ro)}function iet(){return Ya||(Ya=Fl("ImportMeta",0,!0)||Ro)}function aet(){if(!aa){let r=fo(0,"ImportMetaExpression"),c=iet(),_=fo(4,"meta",8);_.parent=r,_.links.type=c;let h=Qs([_]);r.members=h,aa=rl(r,h,ce,ce,ce)}return aa}function set(r){return qa||(qa=Fl("ImportCallOptions",0,r))||Ro}function Yke(r){return ss||(ss=Fl("ImportAttributes",0,r))||Ro}function oet(r){return Tg||(Tg=Qke("Symbol",r))}function GVt(r){return gd||(gd=Xke("SymbolConstructor",r))}function cet(){return Qh||(Qh=Fl("Symbol",0,!1))||Ro}function X$(r){return Bd||(Bd=Fl("Promise",1,r))||fr}function uet(r){return n_||(n_=Fl("PromiseLike",1,r))||fr}function Zke(r){return xf||(xf=Qke("Promise",r))}function KVt(r){return Xh||(Xh=Fl("PromiseConstructorLike",0,r))||Ro}function Y$(r){return Tn||(Tn=Fl("AsyncIterable",3,r))||fr}function QVt(r){return vi||(vi=Fl("AsyncIterator",3,r))||fr}function pet(r){return Ki||(Ki=Fl("AsyncIterableIterator",3,r))||fr}function XVt(){return U??(U=net(["ReadableStreamAsyncIterator"],1))}function YVt(r){return rt||(rt=Fl("AsyncIteratorObject",3,r))||fr}function ZVt(r){return Yt||(Yt=Fl("AsyncGenerator",3,r))||fr}function sae(r){return hd||(hd=Fl("Iterable",3,r))||fr}function eHt(r){return zv||(zv=Fl("Iterator",3,r))||fr}function fet(r){return _e||(_e=Fl("IterableIterator",3,r))||fr}function eCe(){return ve?ke:Qe}function tHt(){return Na??(Na=net(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function rHt(r){return xt||(xt=Fl("IteratorObject",3,r))||fr}function nHt(r){return gr||(gr=Fl("Generator",3,r))||fr}function iHt(r){return yr||(yr=Fl("IteratorYieldResult",1,r))||fr}function aHt(r){return Qr||(Qr=Fl("IteratorReturnResult",1,r))||fr}function _et(r){return Uc||(Uc=Fl("Disposable",0,r))||Ro}function sHt(r){return lo||(lo=Fl("AsyncDisposable",0,r))||Ro}function det(r,c=0){let _=r6(r,788968,void 0);return _&&ret(_,c)}function oHt(){return Tu||(Tu=aae("Extract",2,!0)||oe),Tu===oe?void 0:Tu}function cHt(){return Z_||(Z_=aae("Omit",2,!0)||oe),Z_===oe?void 0:Z_}function tCe(r){return vm||(vm=aae("Awaited",1,r)||(r?oe:void 0)),vm===oe?void 0:vm}function lHt(){return Zg||(Zg=Fl("BigInt",0,!1))||Ro}function uHt(r){return x_??(x_=Fl("ClassDecoratorContext",1,r))??fr}function pHt(r){return eh??(eh=Fl("ClassMethodDecoratorContext",2,r))??fr}function fHt(r){return Yh??(Yh=Fl("ClassGetterDecoratorContext",2,r))??fr}function _Ht(r){return Km??(Km=Fl("ClassSetterDecoratorContext",2,r))??fr}function dHt(r){return jx??(jx=Fl("ClassAccessorDecoratorContext",2,r))??fr}function mHt(r){return yd??(yd=Fl("ClassAccessorDecoratorTarget",2,r))??fr}function gHt(r){return H1??(H1=Fl("ClassAccessorDecoratorResult",2,r))??fr}function hHt(r){return Lx??(Lx=Fl("ClassFieldDecoratorContext",2,r))??fr}function yHt(){return U0||(U0=Qke("NaN",!1))}function vHt(){return Wv||(Wv=aae("Record",2,!0)||oe),Wv===oe?void 0:Wv}function w8(r,c){return r!==fr?Z0(r,c):Ro}function met(r){return w8(VVt(),[r])}function get(r){return w8(sae(!0),[r,zr,ke])}function Up(r,c){return w8(c?Io:Fs,[r])}function rCe(r){switch(r.kind){case 190:return 2;case 191:return het(r);case 202:return r.questionToken?2:r.dotDotDotToken?het(r):1;default:return 1}}function het(r){return iV(r.type)?4:8}function bHt(r){let c=THt(r.parent);if(iV(r))return c?Io:Fs;let h=Dt(r.elements,rCe);return nCe(h,c,Dt(r.elements,xHt))}function xHt(r){return ON(r)||Da(r)?r:void 0}function yet(r,c){return!!qD(r)||vet(r)&&(r.kind===188?Yx(r.elementType):r.kind===189?Pt(r.elements,Yx):c||Pt(r.typeArguments,Yx))}function vet(r){let c=r.parent;switch(c.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return vet(c);case 265:return!0}return!1}function Yx(r){switch(r.kind){case 183:return nae(r)||!!(T8(r,788968).flags&524288);case 186:return!0;case 198:return r.operator!==158&&Yx(r.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return Yx(r.type);case 191:return r.type.kind!==188||Yx(r.type.elementType);case 192:case 193:return Pt(r.types,Yx);case 199:return Yx(r.objectType)||Yx(r.indexType);case 194:return Yx(r.checkType)||Yx(r.extendsType)||Yx(r.trueType)||Yx(r.falseType)}return!1}function SHt(r){let c=Zn(r);if(!c.resolvedType){let _=bHt(r);if(_===fr)c.resolvedType=Ro;else if(!(r.kind===189&&Pt(r.elements,h=>!!(rCe(h)&8)))&&yet(r))c.resolvedType=r.kind===189&&r.elements.length===0?_:$ke(_,r,void 0);else{let h=r.kind===188?[Sa(r.elementType)]:Dt(r.elements,Sa);c.resolvedType=iCe(_,h)}}return c.resolvedType}function THt(r){return MS(r)&&r.operator===148}function ev(r,c,_=!1,h=[]){let v=nCe(c||Dt(r,T=>1),_,h);return v===fr?Ro:r.length?iCe(v,r):v}function nCe(r,c,_){if(r.length===1&&r[0]&4)return c?Io:Fs;let h=Dt(r,T=>T&1?"#":T&2?"?":T&4?".":"*").join()+(c?"R":"")+(Pt(_,T=>!!T)?","+Dt(_,T=>T?Wo(T):"_").join(","):""),v=ui.get(h);return v||ui.set(h,v=wHt(r,c,_)),v}function wHt(r,c,_){let h=r.length,v=Vu(r,Fe=>!!(Fe&9)),T,D=[],J=0;if(h){T=new Array(h);for(let Fe=0;Fe<h;Fe++){let De=T[Fe]=pa(),_t=r[Fe];if(J|=_t,!(J&12)){let Nt=fo(4|(_t&2?16777216:0),""+Fe,c?8:0);Nt.links.tupleLabelDeclaration=_?.[Fe],Nt.links.type=De,D.push(Nt)}}}let V=D.length,Q=fo(4,"length",c?8:0);if(J&12)Q.links.type=dr;else{let Fe=[];for(let De=v;De<=h;De++)Fe.push(Dg(De));Q.links.type=Fi(Fe)}D.push(Q);let ue=Nr(12);return ue.typeParameters=T,ue.outerTypeParameters=void 0,ue.localTypeParameters=T,ue.instantiations=new Map,ue.instantiations.set(eg(ue.typeParameters),ue),ue.target=ue,ue.resolvedTypeArguments=ue.typeParameters,ue.thisType=pa(),ue.thisType.isThisType=!0,ue.thisType.constraint=ue,ue.declaredProperties=D,ue.declaredCallSignatures=ce,ue.declaredConstructSignatures=ce,ue.declaredIndexInfos=ce,ue.elementFlags=r,ue.minLength=v,ue.fixedLength=V,ue.hasRestElement=!!(J&12),ue.combinedFlags=J,ue.readonly=c,ue.labeledElementDeclarations=_,ue}function iCe(r,c){return r.objectFlags&8?aCe(r,c):Z0(r,c)}function aCe(r,c){var _,h,v,T;if(!(r.combinedFlags&14))return Z0(r,c);if(r.combinedFlags&8){let Nt=Va(c,(zt,Dr)=>!!(r.elementFlags[Dr]&8&&zt.flags&1179648));if(Nt>=0)return eV(Dt(c,(zt,Dr)=>r.elementFlags[Dr]&8?zt:qt))?ol(c[Nt],zt=>aCe(r,EO(c,Nt,zt))):ut}let D=[],J=[],V=[],Q=-1,ue=-1,Fe=-1;for(let Nt=0;Nt<c.length;Nt++){let zt=c[Nt],Dr=r.elementFlags[Nt];if(Dr&8)if(zt.flags&1)_t(zt,4,(_=r.labeledElementDeclarations)==null?void 0:_[Nt]);else if(zt.flags&58982400||o_(zt))_t(zt,8,(h=r.labeledElementDeclarations)==null?void 0:h[Nt]);else if(Oo(zt)){let Tr=Ow(zt);if(Tr.length+D.length>=1e4)return ot(N,Eh(N)?y.Type_produces_a_tuple_type_that_is_too_large_to_represent:y.Expression_produces_a_tuple_type_that_is_too_large_to_represent),ut;Ge(Tr,(En,xn)=>{var Fr;return _t(En,zt.target.elementFlags[xn],(Fr=zt.target.labeledElementDeclarations)==null?void 0:Fr[xn])})}else _t(bb(zt)&&OT(zt,dr)||ut,4,(v=r.labeledElementDeclarations)==null?void 0:v[Nt]);else _t(zt,Dr,(T=r.labeledElementDeclarations)==null?void 0:T[Nt])}for(let Nt=0;Nt<Q;Nt++)J[Nt]&2&&(J[Nt]=1);ue>=0&&ue<Fe&&(D[ue]=Fi(ia(D.slice(ue,Fe+1),(Nt,zt)=>J[ue+zt]&8?C_(Nt,dr):Nt)),D.splice(ue+1,Fe-ue),J.splice(ue+1,Fe-ue),V.splice(ue+1,Fe-ue));let De=nCe(J,r.readonly,V);return De===fr?Ro:J.length?Z0(De,D):De;function _t(Nt,zt,Dr){zt&1&&(Q=J.length),zt&4&&ue<0&&(ue=J.length),zt&6&&(Fe=J.length),D.push(zt&2?ip(Nt,!0):Nt),J.push(zt),V.push(Dr)}}function k8(r,c,_=0){let h=r.target,v=yb(r)-_;return c>h.fixedLength?uKt(r)||ev(ce):ev($c(r).slice(c,v),h.elementFlags.slice(c,v),!1,h.labeledElementDeclarations&&h.labeledElementDeclarations.slice(c,v))}function bet(r){return Fi(Zr(mI(r.target.fixedLength,c=>c_(""+c)),fy(r.target.readonly?Io:Fs)))}function kHt(r,c){let _=Va(r.elementFlags,h=>!(h&c));return _>=0?_:r.elementFlags.length}function Aj(r,c){return r.elementFlags.length-up(r.elementFlags,_=>!(_&c))-1}function sCe(r){return r.fixedLength+Aj(r,3)}function Ow(r){let c=$c(r),_=yb(r);return c.length===_?c:c.slice(0,_)}function CHt(r){return ip(Sa(r.type),!0)}function ap(r){return r.id}function s0(r,c){return tm(r,c,ap,mc)>=0}function Z$(r,c){let _=tm(r,c,ap,mc);return _<0?(r.splice(~_,0,c),!0):!1}function PHt(r,c,_){let h=_.flags;if(!(h&131072))if(c|=h&473694207,h&465829888&&(c|=33554432),h&2097152&&oi(_)&67108864&&(c|=536870912),_===Rt&&(c|=8388608),et(_)&&(c|=1073741824),!fe&&h&98304)oi(_)&65536||(c|=4194304);else{let v=r.length,T=v&&_.id>r[v-1].id?~v:tm(r,_,ap,mc);T<0&&r.splice(~T,0,_)}return c}function xet(r,c,_){let h;for(let v of _)v!==h&&(c=v.flags&1048576?xet(r,c|(IHt(v)?1048576:0),v.types):PHt(r,c,v),h=v);return c}function EHt(r,c){var _;if(r.length<2)return r;let h=eg(r),v=Vr.get(h);if(v)return v;let T=c&&Pt(r,Q=>!!(Q.flags&524288)&&!o_(Q)&&DCe(ph(Q))),D=r.length,J=D,V=0;for(;J>0;){J--;let Q=r[J];if(T||Q.flags&469499904){if(Q.flags&262144&&py(Q).flags&1048576){_y(Q,Fi(Dt(r,De=>De===Q?Pr:De)),bm)&&jg(r,J);continue}let ue=Q.flags&61603840?Ir(oc(Q),De=>fh(An(De))):void 0,Fe=ue&&Cf(An(ue));for(let De of r)if(Q!==De){if(V===1e5&&V/(D-J)*D>1e6){(_=Fn)==null||_.instant(Fn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(Nt=>Nt.id)}),ot(N,y.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(V++,ue&&De.flags&61603840){let _t=fu(De,ue.escapedName);if(_t&&fh(_t)&&Cf(_t)!==Fe)continue}if(_y(Q,De,bm)&&(!(oi(HA(Q))&1)||!(oi(HA(De))&1)||FT(Q,De))){jg(r,J);break}}}}return Vr.set(h,r),r}function DHt(r,c,_){let h=r.length;for(;h>0;){h--;let v=r[h],T=v.flags;(T&402653312&&c&4||T&256&&c&8||T&2048&&c&64||T&8192&&c&4096||_&&T&32768&&c&16384||Aw(v)&&s0(r,v.regularType))&&jg(r,h)}}function OHt(r){let c=Cn(r,MC);if(c.length){let _=r.length;for(;_>0;){_--;let h=r[_];h.flags&128&&Pt(c,v=>NHt(h,v))&&jg(r,_)}}}function NHt(r,c){return c.flags&134217728?Rae(r,c):Mae(r,c)}function AHt(r){let c=[];for(let _ of r)if(_.flags&2097152&&oi(_)&67108864){let h=_.types[0].flags&8650752?0:1;I_(c,_.types[h])}for(let _ of c){let h=[];for(let T of r)if(T.flags&2097152&&oi(T)&67108864){let D=T.types[0].flags&8650752?0:1;T.types[D]===_&&Z$(h,T.types[1-D])}let v=Op(_);if(E_(v,T=>s0(h,T))){let T=r.length;for(;T>0;){T--;let D=r[T];if(D.flags&2097152&&oi(D)&67108864){let J=D.types[0].flags&8650752?0:1;D.types[J]===_&&s0(h,D.types[1-J])&&jg(r,T)}}Z$(r,_)}}}function IHt(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function Tet(r,c){for(let _ of c)if(_.flags&1048576){let h=_.origin;_.aliasSymbol||h&&!(h.flags&1048576)?I_(r,_):h&&h.flags&1048576&&Tet(r,h.types)}}function oCe(r,c){let _=A(r);return _.types=c,_}function Fi(r,c=1,_,h,v){if(r.length===0)return Pr;if(r.length===1)return r[0];if(r.length===2&&!v&&(r[0].flags&1048576||r[1].flags&1048576)){let T=c===0?"N":c===2?"S":"L",D=r[0].id<r[1].id?0:1,J=r[D].id+T+r[1-D].id+jD(_,h),V=Gi.get(J);return V||(V=wet(r,c,_,h,void 0),Gi.set(J,V)),V}return wet(r,c,_,h,v)}function wet(r,c,_,h,v){let T=[],D=xet(T,0,r);if(c!==0){if(D&3)return D&1?D&8388608?Rt:D&1073741824?ut:Qe:qt;if(D&32768&&T.length>=2&&T[0]===ke&&T[1]===Ke&&jg(T,1),(D&402664352||D&16384&&D&32768)&&DHt(T,D,!!(c&2)),D&128&&D&402653184&&OHt(T),D&536870912&&AHt(T),c===2&&(T=EHt(T,!!(D&524288)),!T))return ut;if(T.length===0)return D&65536?D&4194304?rr:Le:D&32768?D&4194304?ke:$:Pr}if(!v&&D&1048576){let V=[];Tet(V,r);let Q=[];for(let Fe of T)Pt(V,De=>s0(De.types,Fe))||Q.push(Fe);if(!_&&V.length===1&&Q.length===0)return V[0];if(Qu(V,(Fe,De)=>Fe+De.types.length,0)+Q.length===T.length){for(let Fe of V)Z$(Q,Fe);v=oCe(1048576,Q)}}let J=(D&36323331?0:32768)|(D&2097152?16777216:0);return lCe(T,J,_,h,v)}function FHt(r,c){let _,h=[];for(let T of r){let D=Tm(T);if(D){if(D.kind!==0&&D.kind!==1||_&&!cCe(_,D))return;_=D,h.push(D.type)}else{let J=c!==2097152?Yo(T):void 0;if(J!==Kr&&J!==yn)return}}if(!_)return;let v=JZe(h,c);return Dj(_.kind,_.parameterName,_.parameterIndex,v)}function cCe(r,c){return r.kind===c.kind&&r.parameterIndex===c.parameterIndex}function lCe(r,c,_,h,v){if(r.length===0)return Pr;if(r.length===1)return r[0];let D=(v?v.flags&1048576?`|${eg(v.types)}`:v.flags&2097152?`&${eg(v.types)}`:`#${v.type.id}|${eg(r)}`:eg(r))+jD(_,h),J=Wn.get(D);return J||(J=Q0(1048576),J.objectFlags=c|K$(r,98304),J.types=r,J.origin=v,J.aliasSymbol=_,J.aliasTypeArguments=h,r.length===2&&r[0].flags&512&&r[1].flags&512&&(J.flags|=16,J.intrinsicName="boolean"),Wn.set(D,J)),J}function MHt(r){let c=Zn(r);if(!c.resolvedType){let _=qD(r);c.resolvedType=Fi(Dt(r.types,Sa),1,_,n6(_))}return c.resolvedType}function RHt(r,c,_){let h=_.flags;return h&2097152?ket(r,c,_.types):(rv(_)?c&16777216||(c|=16777216,r.set(_.id.toString(),_)):(h&3?(_===Rt&&(c|=8388608),et(_)&&(c|=1073741824)):(fe||!(h&98304))&&(_===Ke&&(c|=262144,_=ke),r.has(_.id.toString())||(_.flags&109472&&c&109472&&(c|=67108864),r.set(_.id.toString(),_))),c|=h&473694207),c)}function ket(r,c,_){for(let h of _)c=RHt(r,c,Cf(h));return c}function jHt(r,c){let _=r.length;for(;_>0;){_--;let h=r[_];(h.flags&4&&c&402653312||h.flags&8&&c&256||h.flags&64&&c&2048||h.flags&4096&&c&8192||h.flags&16384&&c&32768||rv(h)&&c&470302716)&&jg(r,_)}}function LHt(r,c){for(let _ of r)if(!s0(_.types,c)){if(c===Ke)return s0(_.types,ke);if(c===ke)return s0(_.types,Ke);let h=c.flags&128?kt:c.flags&288?dr:c.flags&2048?kn:c.flags&8192?er:void 0;if(!h||!s0(_.types,h))return!1}return!0}function BHt(r){let c=r.length,_=Cn(r,h=>!!(h.flags&128));for(;c>0;){c--;let h=r[c];if(h.flags&402653184){for(let v of _)if(Rw(v,h)){jg(r,c);break}else if(MC(h))return!0}}return!1}function Cet(r,c){for(let _=0;_<r.length;_++)r[_]=_u(r[_],h=>!(h.flags&c))}function qHt(r){let c,_=Va(r,D=>!!(oi(D)&32768));if(_<0)return!1;let h=_+1;for(;h<r.length;){let D=r[h];oi(D)&32768?((c||(c=[r[_]])).push(D),jg(r,h)):h++}if(!c)return!1;let v=[],T=[];for(let D of c)for(let J of D.types)if(Z$(v,J)&&LHt(c,J)){if(J===ke&&T.length&&T[0]===Ke)continue;if(J===Ke&&T.length&&T[0]===ke){T[0]=Ke;continue}Z$(T,J)}return r[_]=lCe(T,32768),!0}function JHt(r,c,_,h){let v=Q0(2097152);return v.objectFlags=c|K$(r,98304),v.types=r,v.aliasSymbol=_,v.aliasTypeArguments=h,v}function _o(r,c=0,_,h){let v=new Map,T=ket(v,0,r),D=Ka(v.values()),J=0;if(T&131072)return Ta(D,or)?or:Pr;if(fe&&T&98304&&T&84410368||T&67108864&&T&402783228||T&402653316&&T&67238776||T&296&&T&469891796||T&2112&&T&469889980||T&12288&&T&469879804||T&49152&&T&469842940||T&402653184&&T&128&&BHt(D))return Pr;if(T&1)return T&8388608?Rt:T&1073741824?ut:Qe;if(!fe&&T&98304)return T&16777216?Pr:T&32768?ke:rr;if((T&4&&T&402653312||T&8&&T&256||T&64&&T&2048||T&4096&&T&8192||T&16384&&T&32768||T&16777216&&T&470302716)&&(c&1||jHt(D,T)),T&262144&&(D[D.indexOf(ke)]=Ke),D.length===0)return qt;if(D.length===1)return D[0];if(D.length===2&&!(c&2)){let ue=D[0].flags&8650752?0:1,Fe=D[ue],De=D[1-ue];if(Fe.flags&8650752&&(De.flags&469893116&&!jet(De)||T&16777216)){let _t=Op(Fe);if(_t&&E_(_t,Nt=>!!(Nt.flags&469893116)||rv(Nt))){if(oV(_t,De))return Fe;if(!(_t.flags&1048576&&Pm(_t,Nt=>oV(Nt,De)))&&!oV(De,_t))return Pr;J=67108864}}}let V=eg(D)+(c&2?"*":jD(_,h)),Q=at.get(V);if(!Q){if(T&1048576)if(qHt(D))Q=_o(D,c,_,h);else if(sn(D,ue=>!!(ue.flags&1048576&&ue.types[0].flags&32768))){let ue=Pt(D,Wj)?Ke:ke;Cet(D,32768),Q=Fi([_o(D,c),ue],1,_,h)}else if(sn(D,ue=>!!(ue.flags&1048576&&(ue.types[0].flags&65536||ue.types[1].flags&65536))))Cet(D,65536),Q=Fi([_o(D,c),rr],1,_,h);else if(D.length>=3&&r.length>2){let ue=Math.floor(D.length/2);Q=_o([_o(D.slice(0,ue),c),_o(D.slice(ue),c)],c,_,h)}else{if(!eV(D))return ut;let ue=zHt(D,c),Fe=Pt(ue,De=>!!(De.flags&2097152))&&uCe(ue)>uCe(D)?oCe(2097152,D):void 0;Q=Fi(ue,1,_,h,Fe)}else Q=JHt(D,J,_,h);at.set(V,Q)}return Q}function Pet(r){return Qu(r,(c,_)=>_.flags&1048576?c*_.types.length:_.flags&131072?0:c,1)}function eV(r){var c;let _=Pet(r);return _>=1e5?((c=Fn)==null||c.instant(Fn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(h=>h.id),size:_}),ot(N,y.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function zHt(r,c){let _=Pet(r),h=[];for(let v=0;v<_;v++){let T=r.slice(),D=v;for(let V=r.length-1;V>=0;V--)if(r[V].flags&1048576){let Q=r[V].types,ue=Q.length;T[V]=Q[D%ue],D=Math.floor(D/ue)}let J=_o(T,c);J.flags&131072||h.push(J)}return h}function Eet(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?Eet(r.origin):uCe(r.types)}function uCe(r){return Qu(r,(c,_)=>c+Eet(_),0)}function WHt(r){let c=Zn(r);if(!c.resolvedType){let _=qD(r),h=Dt(r.types,Sa),v=h.length===2?h.indexOf(Gs):-1,T=v>=0?h[1-v]:qt,D=!!(T.flags&76||T.flags&134217728&&MC(T));c.resolvedType=_o(h,D?1:0,_,n6(_))}return c.resolvedType}function Det(r,c){let _=Q0(4194304);return _.type=r,_.indexFlags=c,_}function UHt(r){let c=A(4194304);return c.type=r,c}function Oet(r,c){return c&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=Det(r,1)):r.resolvedIndexType||(r.resolvedIndexType=Det(r,0))}function Net(r,c){let _=uh(r),h=$d(r),v=mb(r.target||r);if(!v&&!(c&2))return h;let T=[];if(jC(h)){if(XA(r))return Oet(r,c);UC(h,J)}else if(XA(r)){let V=kf(Cw(r));Nke(V,8576,!!(c&1),J)}else UC(U$(h),J);let D=c&2?_u(Fi(T),V=>!(V.flags&5)):Fi(T);if(D.flags&1048576&&h.flags&1048576&&eg(D.types)===eg(h.types))return h;return D;function J(V){let Q=v?Ma(v,Mj(r.mapper,_,V)):V;T.push(Q===kt?Sr:Q)}}function $Ht(r){let c=uh(r);return _(mb(r)||c);function _(h){return h.flags&470810623?!0:h.flags&16777216?h.root.isDistributive&&h.checkType===c:h.flags&137363456?sn(h.types,_):h.flags&8388608?_(h.objectType)&&_(h.indexType):h.flags&33554432?_(h.baseType)&&_(h.constraint):h.flags&268435456?_(h.type):!1}}function e1(r){if(Ca(r))return Pr;if(e_(r))return Cf(Wa(r));if(po(r))return Cf(Og(r));let c=Nk(r);return c!==void 0?c_(ka(c)):At(r)?Cf(Wa(r)):Pr}function LD(r,c,_){if(_||!(fm(r)&6)){let h=Fa($ie(r)).nameType;if(!h){let v=ls(r.valueDeclaration);h=r.escapedName==="default"?c_("default"):v&&e1(v)||(w5(r)?void 0:c_(Ml(r)))}if(h&&h.flags&c)return h}return Pr}function Aet(r,c){return!!(r.flags&c||r.flags&2097152&&Pt(r.types,_=>Aet(_,c)))}function VHt(r,c,_){let h=_&&(oi(r)&7||r.aliasSymbol)?UHt(r):void 0,v=Dt(oc(r),D=>LD(D,c)),T=Dt(Wp(r),D=>D!==ua&&Aet(D.keyType,c)?D.keyType===kt&&c&8?Sr:D.keyType:Pr);return Fi(ya(v,T),1,void 0,void 0,h)}function pCe(r,c=0){return!!(r.flags&58982400||rS(r)||o_(r)&&(!$Ht(r)||Cj(r)===2)||r.flags&1048576&&!(c&4)&&jke(r)||r.flags&2097152&&ql(r,465829888)&&Pt(r.types,rv))}function fy(r,c=0){return r=Eg(r),t6(r)?Vke(fy(r.baseType,c)):pCe(r,c)?Oet(r,c):r.flags&1048576?_o(Dt(r.types,_=>fy(_,c))):r.flags&2097152?Fi(Dt(r.types,_=>fy(_,c))):oi(r)&32?Net(r,c):r===Rt?Rt:r.flags&2?Pr:r.flags&131073?ji:VHt(r,(c&2?128:402653316)|(c&1?0:12584),c===0)}function Iet(r){let c=oHt();return c?e6(c,[r,kt]):kt}function HHt(r){let c=Iet(fy(r));return c.flags&131072?kt:c}function GHt(r){let c=Zn(r);if(!c.resolvedType)switch(r.operator){case 143:c.resolvedType=fy(Sa(r.type));break;case 158:c.resolvedType=r.type.kind===155?bCe(v5(r.parent)):ut;break;case 148:c.resolvedType=Sa(r.type);break;default:I.assertNever(r.operator)}return c.resolvedType}function KHt(r){let c=Zn(r);return c.resolvedType||(c.resolvedType=FC([r.head.text,...Dt(r.templateSpans,_=>_.literal.text)],Dt(r.templateSpans,_=>Sa(_.type)))),c.resolvedType}function FC(r,c){let _=Va(c,Q=>!!(Q.flags&1179648));if(_>=0)return eV(c)?ol(c[_],Q=>FC(r,EO(c,_,Q))):ut;if(Ta(c,Rt))return Rt;let h=[],v=[],T=r[0];if(!V(r,c))return kt;if(h.length===0)return c_(T);if(v.push(T),sn(v,Q=>Q==="")){if(sn(h,Q=>!!(Q.flags&4)))return kt;if(h.length===1&&MC(h[0]))return h[0]}let D=`${eg(h)}|${Dt(v,Q=>Q.length).join(",")}|${v.join("")}`,J=da.get(D);return J||da.set(D,J=XHt(v,h)),J;function V(Q,ue){for(let Fe=0;Fe<ue.length;Fe++){let De=ue[Fe];if(De.flags&101248)T+=QHt(De)||"",T+=Q[Fe+1];else if(De.flags&134217728){if(T+=De.texts[0],!V(De.texts,De.types))return!1;T+=Q[Fe+1]}else if(jC(De)||tV(De))h.push(De),v.push(T),T=Q[Fe+1];else return!1}return!0}}function QHt(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?A2(r.value):r.flags&98816?r.intrinsicName:void 0}function XHt(r,c){let _=Q0(134217728);return _.texts=r,_.types=c,_}function BD(r,c){return c.flags&1179648?ol(c,_=>BD(r,_)):c.flags&128?c_(Fet(r,c.value)):c.flags&134217728?FC(...YHt(r,c.texts,c.types)):c.flags&268435456&&r===c.symbol?c:c.flags&268435461||jC(c)?Met(r,c):tV(c)?Met(r,FC(["",""],[c])):c}function Fet(r,c){switch(EZ.get(r.escapedName)){case 0:return c.toUpperCase();case 1:return c.toLowerCase();case 2:return c.charAt(0).toUpperCase()+c.slice(1);case 3:return c.charAt(0).toLowerCase()+c.slice(1)}return c}function YHt(r,c,_){switch(EZ.get(r.escapedName)){case 0:return[c.map(h=>h.toUpperCase()),_.map(h=>BD(r,h))];case 1:return[c.map(h=>h.toLowerCase()),_.map(h=>BD(r,h))];case 2:return[c[0]===""?c:[c[0].charAt(0).toUpperCase()+c[0].slice(1),...c.slice(1)],c[0]===""?[BD(r,_[0]),..._.slice(1)]:_];case 3:return[c[0]===""?c:[c[0].charAt(0).toLowerCase()+c[0].slice(1),...c.slice(1)],c[0]===""?[BD(r,_[0]),..._.slice(1)]:_]}return[c,_]}function Met(r,c){let _=`${co(r)},${ap(c)}`,h=ks.get(_);return h||ks.set(_,h=ZHt(r,c)),h}function ZHt(r,c){let _=t0(268435456,r);return _.type=c,_}function eGt(r,c,_,h,v){let T=Q0(8388608);return T.objectType=r,T.indexType=c,T.accessFlags=_,T.aliasSymbol=h,T.aliasTypeArguments=v,T}function Ij(r){if(Pe)return!1;if(oi(r)&4096)return!0;if(r.flags&1048576)return sn(r.types,Ij);if(r.flags&2097152)return Pt(r.types,Ij);if(r.flags&465829888){let c=Fke(r);return c!==r&&Ij(c)}return!1}function oae(r,c){return _m(r)?dm(r):c&&su(c)?Nk(c):void 0}function fCe(r,c){if(c.flags&8208){let _=Br(r.parent,h=>!Lc(h))||r.parent;return _2(_)?wh(_)&&Ye(r)&&$tt(_,r):sn(c.declarations,h=>!Ss(h)||V0(h))}return!0}function Ret(r,c,_,h,v,T){let D=v&&v.kind===212?v:void 0,J=v&&Ca(v)?void 0:oae(_,v);if(J!==void 0){if(T&256)return LT(c,J)||Qe;let Q=io(c,J);if(Q){if(T&64&&v&&Q.declarations&&rb(Q)&&fCe(v,Q)){let Fe=D?.argumentExpression??(j2(v)?v.indexType:v);Wy(Fe,Q.declarations,J)}if(D){if(RV(Q,D,fnt(D.expression,c.symbol)),eit(D,Q,dx(D))){ot(D.argumentExpression,y.Cannot_assign_to_0_because_it_is_a_read_only_property,ja(Q));return}if(T&8&&(Zn(v).resolvedSymbol=Q),int(D,Q))return Lt}let ue=T&4?fb(Q):An(Q);return D&&dx(D)!==1?c1(D,ue):v&&j2(v)&&Wj(ue)?Fi([ue,ke]):ue}if(E_(c,Oo)&&Mv(J)){let ue=+J;if(v&&E_(c,Fe=>!(Fe.target.combinedFlags&12))&&!(T&16)){let Fe=_Ce(v);if(Oo(c)){if(ue<0)return ot(Fe,y.A_tuple_type_cannot_be_indexed_with_a_negative_value),ke;ot(Fe,y.Tuple_type_0_of_length_1_has_no_element_at_index_2,Pn(c),yb(c),ka(J))}else ot(Fe,y.Property_0_does_not_exist_on_type_1,ka(J),Pn(c))}if(ue>=0)return V(i0(c,dr)),ktt(c,ue,T&1?Ke:void 0)}}if(!(_.flags&98304)&&Np(_,402665900)){if(c.flags&131073)return c;let Q=Pj(c,_)||i0(c,kt);if(Q){if(T&2&&Q.keyType!==dr){D&&(T&4?ot(D,y.Type_0_is_generic_and_can_only_be_indexed_for_reading,Pn(r)):ot(D,y.Type_0_cannot_be_used_to_index_type_1,Pn(_),Pn(r)));return}if(v&&Q.keyType===kt&&!Np(_,12)){let ue=_Ce(v);return ot(ue,y.Type_0_cannot_be_used_as_an_index_type,Pn(_)),T&1?Fi([Q.type,Ke]):Q.type}return V(Q),T&1&&!(c.symbol&&c.symbol.flags&384&&_.symbol&&_.flags&1024&&w_(_.symbol)===c.symbol)?Fi([Q.type,Ke]):Q.type}if(_.flags&131072)return Pr;if(Ij(c))return Qe;if(D&&!mse(c)){if(xb(c)){if(Pe&&_.flags&384)return Jo.add(Mn(D,y.Property_0_does_not_exist_on_type_1,_.value,Pn(c))),ke;if(_.flags&12){let ue=Dt(c.properties,Fe=>An(Fe));return Fi(Zr(ue,ke))}}if(c.symbol===nt&&J!==void 0&&nt.exports.has(J)&&nt.exports.get(J).flags&418)ot(D,y.Property_0_does_not_exist_on_type_1,ka(J),Pn(c));else if(Pe&&!(T&128))if(J!==void 0&&ont(J,c)){let ue=Pn(c);ot(D,y.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,J,ue,ue+"["+cl(D.argumentExpression)+"]")}else if(OT(c,dr))ot(D.argumentExpression,y.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let ue;if(J!==void 0&&(ue=unt(J,c)))ue!==void 0&&ot(D.argumentExpression,y.Property_0_does_not_exist_on_type_1_Did_you_mean_2,J,Pn(c),ue);else{let Fe=iYt(c,D,_);if(Fe!==void 0)ot(D,y.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Pn(c),Fe);else{let De;if(_.flags&1024)De=vs(void 0,y.Property_0_does_not_exist_on_type_1,"["+Pn(_)+"]",Pn(c));else if(_.flags&8192){let _t=K0(_.symbol,D);De=vs(void 0,y.Property_0_does_not_exist_on_type_1,"["+_t+"]",Pn(c))}else _.flags&128||_.flags&256?De=vs(void 0,y.Property_0_does_not_exist_on_type_1,_.value,Pn(c)):_.flags&12&&(De=vs(void 0,y.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Pn(_),Pn(c)));De=vs(De,y.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Pn(h),Pn(c)),Jo.add(Cv(rn(D),D,De))}}}return}}if(T&16&&xb(c))return ke;if(Ij(c))return Qe;if(v){let Q=_Ce(v);if(Q.kind!==10&&_.flags&384)ot(Q,y.Property_0_does_not_exist_on_type_1,""+_.value,Pn(c));else if(_.flags&12)ot(Q,y.Type_0_has_no_matching_index_signature_for_type_1,Pn(c),Pn(_));else{let ue=Q.kind===10?"bigint":Pn(_);ot(Q,y.Type_0_cannot_be_used_as_an_index_type,ue)}}if(Ae(_))return _;return;function V(Q){Q&&Q.isReadonly&&D&&(mx(D)||IQ(D))&&ot(D,y.Index_signature_in_type_0_only_permits_reading,Pn(c))}}function _Ce(r){return r.kind===212?r.argumentExpression:r.kind===199?r.indexType:r.kind===167?r.expression:r}function tV(r){if(r.flags&2097152){let c=!1;for(let _ of r.types)if(_.flags&101248||tV(_))c=!0;else if(!(_.flags&524288))return!1;return c}return!!(r.flags&77)||MC(r)}function MC(r){return!!(r.flags&134217728)&&sn(r.types,tV)||!!(r.flags&268435456)&&tV(r.type)}function jet(r){return!!(r.flags&402653184)&&!MC(r)}function IT(r){return!!Fj(r)}function RC(r){return!!(Fj(r)&4194304)}function jC(r){return!!(Fj(r)&8388608)}function Fj(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|Qu(r.types,(c,_)=>c|Fj(_),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|Fj(r.baseType)|Fj(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||o_(r)||rS(r)?4194304:0)|(r.flags&63176704||jet(r)?8388608:0)}function t1(r,c){return r.flags&8388608?rGt(r,c):r.flags&16777216?nGt(r,c):r}function Let(r,c,_){if(r.flags&1048576||r.flags&2097152&&!pCe(r)){let h=Dt(r.types,v=>t1(C_(v,c),_));return r.flags&2097152||_?_o(h):Fi(h)}}function tGt(r,c,_){if(c.flags&1048576){let h=Dt(c.types,v=>t1(C_(r,v),_));return _?_o(h):Fi(h)}}function rGt(r,c){let _=c?"simplifiedForWriting":"simplifiedForReading";if(r[_])return r[_]===Cl?r:r[_];r[_]=Cl;let h=t1(r.objectType,c),v=t1(r.indexType,c),T=tGt(h,v,c);if(T)return r[_]=T;if(!(v.flags&465829888)){let D=Let(h,v,c);if(D)return r[_]=D}if(rS(h)&&v.flags&296){let D=E8(h,v.flags&8?0:h.target.fixedLength,0,c);if(D)return r[_]=D}return o_(h)&&Cj(h)!==2?r[_]=ol(cae(h,r.indexType),D=>t1(D,c)):r[_]=r}function nGt(r,c){let _=r.checkType,h=r.extendsType,v=eS(r),T=tS(r);if(T.flags&131072&&r1(v)===r1(_)){if(_.flags&1||qs(BC(_),BC(h)))return t1(v,c);if(Bet(_,h))return Pr}else if(v.flags&131072&&r1(T)===r1(_)){if(!(_.flags&1)&&qs(BC(_),BC(h)))return Pr;if(_.flags&1||Bet(_,h))return t1(T,c)}return r}function Bet(r,c){return!!(Fi([W$(r,c),Pr]).flags&131072)}function cae(r,c){let _=P_([uh(r)],[c]),h=Fw(r.mapper,_),v=Ma(Y0(r.target||r),h),T=CZe(r)>0||(IT(r)?y8(Cw(r))>0:iGt(r,c));return ip(v,!0,T)}function iGt(r,c){let _=Op(c);return!!_&&Pt(oc(r),h=>!!(h.flags&16777216)&&qs(LD(h,8576),_))}function C_(r,c,_=0,h,v,T){return Zx(r,c,_,h,v,T)||(h?ut:qt)}function qet(r,c){return E_(r,_=>{if(_.flags&384){let h=dm(_);if(Mv(h)){let v=+h;return v>=0&&v<c}}return!1})}function Zx(r,c,_=0,h,v,T){if(r===Rt||c===Rt)return Rt;if(r=Eg(r),utt(r)&&!(c.flags&98304)&&Np(c,12)&&(c=kt),z.noUncheckedIndexedAccess&&_&32&&(_|=1),jC(c)||(h&&h.kind!==199?rS(r)&&!qet(c,sCe(r.target)):RC(r)&&!(Oo(r)&&qet(c,sCe(r.target)))||jke(r))){if(r.flags&3)return r;let J=_&1,V=r.id+","+c.id+","+J+jD(v,T),Q=Pi.get(V);return Q||Pi.set(V,Q=eGt(r,c,J,v,T)),Q}let D=v8(r);if(c.flags&1048576&&!(c.flags&16)){let J=[],V=!1;for(let Q of c.types){let ue=Ret(r,D,Q,c,h,_|(V?128:0));if(ue)J.push(ue);else if(h)V=!0;else return}return V?void 0:_&4?_o(J,0,v,T):Fi(J,1,v,T)}return Ret(r,D,c,c,h,_|8|64)}function Jet(r){let c=Zn(r);if(!c.resolvedType){let _=Sa(r.objectType),h=Sa(r.indexType),v=qD(r);c.resolvedType=C_(_,h,0,r,v,n6(v))}return c.resolvedType}function dCe(r){let c=Zn(r);if(!c.resolvedType){let _=Nr(32,r.symbol);_.declaration=r,_.aliasSymbol=qD(r),_.aliasTypeArguments=n6(_.aliasSymbol),c.resolvedType=_,$d(_)}return c.resolvedType}function r1(r){return r.flags&33554432?r1(r.baseType):r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?C_(r1(r.objectType),r1(r.indexType)):r}function zet(r){return TE(r)&&Re(r.elements)>0&&!Pt(r.elements,c=>gz(c)||hz(c)||ON(c)&&!!(c.questionToken||c.dotDotDotToken))}function Wet(r,c){return IT(r)||c&&Oo(r)&&Pt(Ow(r),IT)}function mCe(r,c,_,h,v){let T,D,J=0;for(;;){if(J===1e3)return ot(N,y.Type_instantiation_is_excessively_deep_and_possibly_infinite),ut;let Q=Ma(r1(r.checkType),c),ue=Ma(r.extendsType,c);if(Q===ut||ue===ut)return ut;if(Q===Rt||ue===Rt)return Rt;let Fe=p4(r.node.checkType),De=p4(r.node.extendsType),_t=zet(Fe)&&zet(De)&&Re(Fe.elements)===Re(De.elements),Nt=Wet(Q,_t),zt;if(r.inferTypeParameters){let Tr=$j(r.inferTypeParameters,void 0,0);c&&(Tr.nonFixingMapper=Fw(Tr.nonFixingMapper,c)),Nt||o1(Tr.inferences,Q,ue,1536),zt=c?Fw(Tr.mapper,c):Tr.mapper}let Dr=zt?Ma(r.extendsType,zt):ue;if(!Nt&&!Wet(Dr,_t)){if(!(Dr.flags&3)&&(Q.flags&1||!qs(jj(Q),jj(Dr)))){(Q.flags&1||_&&!(Dr.flags&131072)&&Pm(jj(Dr),En=>qs(En,jj(Q))))&&(D||(D=[])).push(Ma(Sa(r.node.trueType),zt||c));let Tr=Sa(r.node.falseType);if(Tr.flags&16777216){let En=Tr.root;if(En.node.parent===r.node&&(!En.isDistributive||En.checkType===r.checkType)){r=En;continue}if(V(Tr,c))continue}T=Ma(Tr,c);break}if(Dr.flags&3||qs(BC(Q),BC(Dr))){let Tr=Sa(r.node.trueType),En=zt||c;if(V(Tr,En))continue;T=Ma(Tr,En);break}}T=Q0(16777216),T.root=r,T.checkType=Ma(r.checkType,c),T.extendsType=Ma(r.extendsType,c),T.mapper=c,T.combinedMapper=zt,T.aliasSymbol=h||r.aliasSymbol,T.aliasTypeArguments=h?v:tv(r.aliasTypeArguments,c);break}return D?Fi(Zr(D,T)):T;function V(Q,ue){if(Q.flags&16777216&&ue){let Fe=Q.root;if(Fe.outerTypeParameters){let De=Fw(Q.mapper,ue),_t=Dt(Fe.outerTypeParameters,Dr=>vb(Dr,De)),Nt=P_(Fe.outerTypeParameters,_t),zt=Fe.isDistributive?vb(Fe.checkType,Nt):void 0;if(!zt||zt===Fe.checkType||!(zt.flags&1179648))return r=Fe,c=Nt,h=void 0,v=void 0,Fe.aliasSymbol&&J++,!0}}return!1}}function eS(r){return r.resolvedTrueType||(r.resolvedTrueType=Ma(Sa(r.root.node.trueType),r.mapper))}function tS(r){return r.resolvedFalseType||(r.resolvedFalseType=Ma(Sa(r.root.node.falseType),r.mapper))}function aGt(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?Ma(Sa(r.root.node.trueType),r.combinedMapper):eS(r))}function gCe(r){let c;return r.locals&&r.locals.forEach(_=>{_.flags&262144&&(c=Zr(c,zc(_)))}),c}function sGt(r){return r.isDistributive&&(sV(r.checkType,r.node.trueType)||sV(r.checkType,r.node.falseType))}function oGt(r){let c=Zn(r);if(!c.resolvedType){let _=Sa(r.checkType),h=qD(r),v=n6(h),T=_b(r,!0),D=v?T:Cn(T,V=>sV(V,r)),J={node:r,checkType:_,extendsType:Sa(r.extendsType),isDistributive:!!(_.flags&262144),inferTypeParameters:gCe(r),outerTypeParameters:D,instantiations:void 0,aliasSymbol:h,aliasTypeArguments:v};c.resolvedType=mCe(J,void 0,!1),D&&(J.instantiations=new Map,J.instantiations.set(eg(D),c.resolvedType))}return c.resolvedType}function cGt(r){let c=Zn(r);return c.resolvedType||(c.resolvedType=kw(ei(r.typeParameter))),c.resolvedType}function Uet(r){return Ye(r)?[r]:Zr(Uet(r.left),r.right)}function $et(r){var c;let _=Zn(r);if(!_.resolvedType){if(!C0(r))return ot(r.argument,y.String_literal_expected),_.resolvedSymbol=oe,_.resolvedType=ut;let h=r.isTypeOf?111551:r.flags&16777216?900095:788968,v=wf(r,r.argument.literal);if(!v)return _.resolvedSymbol=oe,_.resolvedType=ut;let T=!!((c=v.exports)!=null&&c.get("export=")),D=a_(v,!1);if(Sl(r.qualifier))if(D.flags&h)_.resolvedType=Vet(r,_,D,h);else{let J=h===111551?y.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:y.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;ot(r,J,r.argument.literal.text),_.resolvedSymbol=oe,_.resolvedType=ut}else{let J=Uet(r.qualifier),V=D,Q;for(;Q=J.shift();){let ue=J.length?1920:h,Fe=Uo(Dl(V)),De=r.isTypeOf||jn(r)&&T?io(An(Fe),Q.escapedText,!1,!0):void 0,Nt=(r.isTypeOf?void 0:Sf(nd(Fe),Q.escapedText,ue))??De;if(!Nt)return ot(Q,y.Namespace_0_has_no_exported_member_1,K0(V),Oc(Q)),_.resolvedType=ut;Zn(Q).resolvedSymbol=Nt,Zn(Q.parent).resolvedSymbol=Nt,V=Nt}_.resolvedType=Vet(r,_,V,h)}}return _.resolvedType}function Vet(r,c,_,h){let v=Dl(_);return c.resolvedSymbol=v,h===111551?qnt(An(_),r):rae(r,v)}function Het(r){let c=Zn(r);if(!c.resolvedType){let _=qD(r);if(!r.symbol||Xy(r.symbol).size===0&&!_)c.resolvedType=Gs;else{let h=Nr(16,r.symbol);h.aliasSymbol=_,h.aliasTypeArguments=n6(_),Hk(r)&&r.isArrayType&&(h=Up(h)),c.resolvedType=h}}return c.resolvedType}function qD(r){let c=r.parent;for(;Jk(c)||JS(c)||MS(c)&&c.operator===148;)c=c.parent;return g5(c)?ei(c):void 0}function n6(r){return r?Pg(r):void 0}function lae(r){return!!(r.flags&524288)&&!o_(r)}function hCe(r){return n1(r)||!!(r.flags&474058748)}function yCe(r,c){if(!(r.flags&1048576))return r;if(sn(r.types,hCe))return Ir(r.types,n1)||Ro;let _=Ir(r.types,T=>!hCe(T));if(!_||Ir(r.types,T=>T!==_&&!hCe(T)))return r;return v(_);function v(T){let D=Qs();for(let V of oc(T))if(!(fm(V)&6)){if(uae(V)){let Q=V.flags&65536&&!(V.flags&32768),Fe=fo(16777220,V.escapedName,Oke(V)|(c?8:0));Fe.links.type=Q?ke:ip(An(V),!0),Fe.declarations=V.declarations,Fe.links.nameType=Fa(V).nameType,Fe.links.syntheticOrigin=V,D.set(V.escapedName,Fe)}}let J=rl(T.symbol,D,ce,ce,Wp(T));return J.objectFlags|=131200,J}}function Nw(r,c,_,h,v){if(r.flags&1||c.flags&1)return Qe;if(r.flags&2||c.flags&2)return qt;if(r.flags&131072)return c;if(c.flags&131072)return r;if(r=yCe(r,v),r.flags&1048576)return eV([r,c])?ol(r,Q=>Nw(Q,c,_,h,v)):ut;if(c=yCe(c,v),c.flags&1048576)return eV([r,c])?ol(c,Q=>Nw(r,Q,_,h,v)):ut;if(c.flags&473960444)return r;if(RC(r)||RC(c)){if(n1(r))return c;if(r.flags&2097152){let Q=r.types,ue=Q[Q.length-1];if(lae(ue)&&lae(c))return _o(ya(Q.slice(0,Q.length-1),[Nw(ue,c,_,h,v)]))}return _o([r,c])}let T=Qs(),D=new Set,J=r===Ro?Wp(c):xZe([r,c]);for(let Q of oc(c))fm(Q)&6?D.add(Q.escapedName):uae(Q)&&T.set(Q.escapedName,vCe(Q,v));for(let Q of oc(r))if(!(D.has(Q.escapedName)||!uae(Q)))if(T.has(Q.escapedName)){let ue=T.get(Q.escapedName),Fe=An(ue);if(ue.flags&16777216){let De=ya(Q.declarations,ue.declarations),_t=4|Q.flags&16777216,Nt=fo(_t,Q.escapedName),zt=An(Q),Dr=Dae(zt),Tr=Dae(Fe);Nt.links.type=Dr===Tr?zt:Fi([zt,Tr],2),Nt.links.leftSpread=Q,Nt.links.rightSpread=ue,Nt.declarations=De,Nt.links.nameType=Fa(Q).nameType,T.set(Q.escapedName,Nt)}}else T.set(Q.escapedName,vCe(Q,v));let V=rl(_,T,ce,ce,ia(J,Q=>lGt(Q,v)));return V.objectFlags|=2228352|h,V}function uae(r){var c;return!Pt(r.declarations,_f)&&(!(r.flags&106496)||!((c=r.declarations)!=null&&c.some(_=>Ri(_.parent))))}function vCe(r,c){let _=r.flags&65536&&!(r.flags&32768);if(!_&&c===gh(r))return r;let h=4|r.flags&16777216,v=fo(h,r.escapedName,Oke(r)|(c?8:0));return v.links.type=_?ke:An(r),v.declarations=r.declarations,v.links.nameType=Fa(r).nameType,v.links.syntheticOrigin=r,v}function lGt(r,c){return r.isReadonly!==c?a0(r.keyType,r.type,c,r.declaration,r.components):r}function rV(r,c,_,h){let v=t0(r,_);return v.value=c,v.regularType=h||v,v}function JD(r){if(r.flags&2976){if(!r.freshType){let c=rV(r.flags,r.value,r.symbol,r);c.freshType=c,r.freshType=c}return r.freshType}return r}function Cf(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=ol(r,Cf)):r}function Aw(r){return!!(r.flags&2976)&&r.freshType===r}function c_(r){let c;return It.get(r)||(It.set(r,c=rV(128,r)),c)}function Dg(r){let c;return Cr.get(r)||(Cr.set(r,c=rV(256,r)),c)}function nV(r){let c,_=A2(r);return wn.get(_)||(wn.set(_,c=rV(2048,r)),c)}function uGt(r,c,_){let h,v=`${c}${typeof r=="string"?"@":"#"}${r}`,T=1024|(typeof r=="string"?128:256);return Di.get(v)||(Di.set(v,h=rV(T,r,_)),h)}function pGt(r){if(r.literal.kind===106)return rr;let c=Zn(r);return c.resolvedType||(c.resolvedType=Cf(Wa(r.literal))),c.resolvedType}function fGt(r){let c=t0(8192,r);return c.escapedName=`__@${c.symbol.escapedName}@${co(c.symbol)}`,c}function bCe(r){if(jn(r)&&JS(r)){let c=S2(r);c&&(r=YP(c)||c)}if(pme(r)){let c=Jq(r)?bd(r.left):bd(r);if(c){let _=Fa(c);return _.uniqueESSymbolType||(_.uniqueESSymbolType=fGt(c))}}return er}function _Gt(r){let c=mf(r,!1,!1),_=c&&c.parent;if(_&&(Ri(_)||_.kind===264)&&!Vs(c)&&(!ul(c)||T2(r,c.body)))return Sm(ei(_)).thisType;if(_&&So(_)&&Vn(_.parent)&&$l(_.parent)===6)return Sm(bd(_.parent.left).parent).thisType;let h=r.flags&16777216?PS(r):void 0;return h&&Ic(h)&&Vn(h.parent)&&$l(h.parent)===3?Sm(bd(h.parent.left).parent).thisType:gy(c)&&T2(r,c.body)?Sm(ei(c)).thisType:(ot(r,y.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ut)}function xCe(r){let c=Zn(r);return c.resolvedType||(c.resolvedType=_Gt(r)),c.resolvedType}function Get(r){return Sa(iV(r.type)||r.type)}function iV(r){switch(r.kind){case 196:return iV(r.type);case 189:if(r.elements.length===1&&(r=r.elements[0],r.kind===191||r.kind===202&&r.dotDotDotToken))return iV(r.type);break;case 188:return r.elementType}}function dGt(r){let c=Zn(r);return c.resolvedType||(c.resolvedType=r.dotDotDotToken?Get(r):ip(Sa(r.type),!0,!!r.questionToken))}function Sa(r){return UVt(Ket(r),r)}function Ket(r){switch(r.kind){case 133:case 312:case 313:return Qe;case 159:return qt;case 154:return kt;case 150:return dr;case 163:return kn;case 136:return cr;case 155:return er;case 116:return zr;case 157:return ke;case 106:return rr;case 146:return Pr;case 151:return r.flags&524288&&!Pe?Qe:$r;case 141:return We;case 197:case 110:return xCe(r);case 201:return pGt(r);case 183:return iae(r);case 182:return r.assertsModifier?zr:cr;case 233:return iae(r);case 186:return tet(r);case 188:case 189:return SHt(r);case 190:return CHt(r);case 192:return MHt(r);case 193:return WHt(r);case 314:return $Vt(r);case 316:return ip(Sa(r.type));case 202:return dGt(r);case 196:case 315:case 309:return Sa(r.type);case 191:return Get(r);case 318:return Crr(r);case 184:case 185:case 187:case 322:case 317:case 323:return Het(r);case 198:return GHt(r);case 199:return Jet(r);case 200:return dCe(r);case 194:return oGt(r);case 195:return cGt(r);case 203:return KHt(r);case 205:return $et(r);case 80:case 166:case 211:let c=Em(r);return c?zc(c):ut;default:return ut}}function pae(r,c,_){if(r&&r.length)for(let h=0;h<r.length;h++){let v=r[h],T=_(v,c);if(v!==T){let D=h===0?[]:r.slice(0,h);for(D.push(T),h++;h<r.length;h++)D.push(_(r[h],c));return D}}return r}function tv(r,c){return pae(r,c,Ma)}function fae(r,c){return pae(r,c,Mw)}function Qet(r,c){return pae(r,c,CGt)}function P_(r,c){return r.length===1?Iw(r[0],c?c[0]:Qe):mGt(r,c)}function vb(r,c){switch(c.kind){case 0:return r===c.source?c.target:r;case 1:{let h=c.sources,v=c.targets;for(let T=0;T<h.length;T++)if(r===h[T])return v?v[T]:Qe;return r}case 2:{let h=c.sources,v=c.targets;for(let T=0;T<h.length;T++)if(r===h[T])return v[T]();return r}case 3:return c.func(r);case 4:case 5:let _=vb(r,c.mapper1);return _!==r&&c.kind===4?Ma(_,c.mapper2):vb(_,c.mapper2)}}function Iw(r,c){return I.attachDebugPrototypeIfDebug({kind:0,source:r,target:c})}function mGt(r,c){return I.attachDebugPrototypeIfDebug({kind:1,sources:r,targets:c})}function aV(r,c){return I.attachDebugPrototypeIfDebug({kind:3,func:r,debugInfo:I.isDebugging?c:void 0})}function SCe(r,c){return I.attachDebugPrototypeIfDebug({kind:2,sources:r,targets:c})}function _ae(r,c,_){return I.attachDebugPrototypeIfDebug({kind:r,mapper1:c,mapper2:_})}function Xet(r){return P_(r,void 0)}function gGt(r,c){let _=r.inferences.slice(c);return P_(Dt(_,h=>h.typeParameter),Dt(_,()=>qt))}function Fw(r,c){return r?_ae(4,r,c):c}function hGt(r,c){return r?_ae(5,r,c):c}function LC(r,c,_){return _?_ae(5,Iw(r,c),_):Iw(r,c)}function Mj(r,c,_){return r?_ae(5,r,Iw(c,_)):Iw(c,_)}function yGt(r){return!r.constraint&&!eae(r)||r.constraint===uu?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=pa(r.symbol),r.restrictiveInstantiation.constraint=uu,r.restrictiveInstantiation)}function TCe(r){let c=pa(r.symbol);return c.target=r,c}function Yet(r,c){return Dj(r.kind,r.parameterName,r.parameterIndex,Ma(r.type,c))}function Mw(r,c,_){let h;if(r.typeParameters&&!_){h=Dt(r.typeParameters,TCe),c=Fw(P_(r.typeParameters,h),c);for(let T of h)T.mapper=c}let v=n0(r.declaration,h,r.thisParameter&&wCe(r.thisParameter,c),pae(r.parameters,c,wCe),void 0,void 0,r.minArgumentCount,r.flags&167);return v.target=r,v.mapper=c,v}function wCe(r,c){let _=Fa(r);if(_.type&&!iS(_.type)&&(!(r.flags&65536)||_.writeType&&!iS(_.writeType)))return r;Tl(r)&1&&(r=_.target,c=Fw(_.mapper,c));let h=fo(r.flags,r.escapedName,1|Tl(r)&53256);return h.declarations=r.declarations,h.parent=r.parent,h.links.target=r,h.links.mapper=c,r.valueDeclaration&&(h.valueDeclaration=r.valueDeclaration),_.nameType&&(h.links.nameType=_.nameType),h}function vGt(r,c,_,h){let v=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],T=Zn(v),D=r.objectFlags&4?T.resolvedType:r.objectFlags&64?r.target:r,J=r.objectFlags&134217728?r.outerTypeParameters:T.outerTypeParameters;if(!J){let V=_b(v,!0);if(gy(v)){let ue=LZe(v);V=ti(V,ue)}J=V||ce;let Q=r.objectFlags&8388612?[v]:r.symbol.declarations;J=(D.objectFlags&8388612||D.symbol.flags&8192||D.symbol.flags&2048)&&!D.aliasTypeArguments?Cn(J,ue=>Pt(Q,Fe=>sV(ue,Fe))):J,T.outerTypeParameters=J}if(J.length){let V=Fw(r.mapper,c),Q=Dt(J,Nt=>vb(Nt,V)),ue=_||r.aliasSymbol,Fe=_?h:tv(r.aliasTypeArguments,c),De=(r.objectFlags&134217728?"S":"")+eg(Q)+jD(ue,Fe);D.instantiations||(D.instantiations=new Map,D.instantiations.set(eg(J)+jD(D.aliasSymbol,D.aliasTypeArguments),D));let _t=D.instantiations.get(De);if(!_t){if(r.objectFlags&134217728)return _t=dae(r,c),D.instantiations.set(De,_t),_t;let Nt=P_(J,Q);_t=D.objectFlags&4?$ke(r.target,r.node,Nt,ue,Fe):D.objectFlags&32?xGt(D,Nt,ue,Fe):dae(D,Nt,ue,Fe),D.instantiations.set(De,_t);let zt=oi(_t);if(_t.flags&3899393&&!(zt&524288)){let Dr=Pt(Q,iS);oi(_t)&524288||(zt&52?_t.objectFlags|=524288|(Dr?1048576:0):_t.objectFlags|=Dr?0:524288)}}return _t}return r}function bGt(r){return!(r.parent.kind===183&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===205&&r.parent.typeArguments&&r===r.parent.qualifier)}function sV(r,c){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){let h=r.symbol.declarations[0].parent;for(let v=c;v!==h;v=v.parent)if(!v||v.kind===241||v.kind===194&&xs(v.extendsType,_))return!0;return _(c)}return!0;function _(h){switch(h.kind){case 197:return!!r.isThisType;case 80:return!r.isThisType&&Eh(h)&&bGt(h)&&Ket(h)===r;case 186:let v=h.exprName,T=Af(v);if(!hx(T)){let D=sf(T),J=r.symbol.declarations[0],V=J.kind===168?J.parent:r.isThisType?J:void 0;if(D.declarations&&V)return Pt(D.declarations,Q=>T2(Q,V))||Pt(h.typeArguments,_)}return!0;case 174:case 173:return!h.type&&!!h.body||Pt(h.typeParameters,_)||Pt(h.parameters,_)||!!h.type&&_(h.type)}return!!xs(h,_)}}function Rj(r){let c=$d(r);if(c.flags&4194304){let _=r1(c.type);if(_.flags&262144)return _}}function xGt(r,c,_,h){let v=Rj(r);if(v){let D=Ma(v,c);if(v!==D)return trt(Eg(D),T,_,h)}return Ma($d(r),c)===Rt?Rt:dae(r,c,_,h);function T(D){if(D.flags&61603843&&D!==Rt&&!et(D)){if(!r.declaration.nameType){let J;if(km(D)||D.flags&1&&UA(v,4)<0&&(J=Wf(v))&&E_(J,MT))return TGt(D,r,LC(v,D,c));if(Oo(D))return SGt(D,r,v,c);if(AZe(D))return _o(Dt(D.types,T))}return dae(r,LC(v,D,c))}return D}}function Zet(r,c){return c&1?!0:c&2?!1:r}function SGt(r,c,_,h){let v=r.target.elementFlags,T=r.target.fixedLength,D=T?LC(_,r,h):h,J=Dt(Ow(r),(Fe,De)=>{let _t=v[De];return De<T?ett(c,c_(""+De),!!(_t&2),D):_t&8?Ma(c,LC(_,Fe,h)):mV(Ma(c,LC(_,Up(Fe),h)))??qt}),V=Yy(c),Q=V&4?Dt(v,Fe=>Fe&1?2:Fe):V&8?Dt(v,Fe=>Fe&2?1:Fe):v,ue=Zet(r.target.readonly,Yy(c));return Ta(J,ut)?ut:ev(J,Q,ue,r.target.labeledElementDeclarations)}function TGt(r,c,_){let h=ett(c,dr,!0,_);return et(h)?ut:Up(h,Zet(C8(r),Yy(c)))}function ett(r,c,_,h){let v=Mj(h,uh(r),c),T=Ma(Y0(r.target||r),v),D=Yy(r);return fe&&D&4&&!ql(T,49152)?nS(T,!0):fe&&D&8&&_?Cm(T,524288):T}function dae(r,c,_,h){I.assert(r.symbol,"anonymous type must have symbol to be instantiated");let v=Nr(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){v.declaration=r.declaration;let T=uh(r),D=TCe(T);v.typeParameter=D,c=Fw(Iw(T,D),c),D.mapper=c}return r.objectFlags&8388608&&(v.node=r.node),r.objectFlags&134217728&&(v.outerTypeParameters=r.outerTypeParameters),v.target=r,v.mapper=c,v.aliasSymbol=_||r.aliasSymbol,v.aliasTypeArguments=_?h:tv(r.aliasTypeArguments,c),v.objectFlags|=v.aliasTypeArguments?K$(v.aliasTypeArguments):0,v}function kCe(r,c,_,h,v){let T=r.root;if(T.outerTypeParameters){let D=Dt(T.outerTypeParameters,Q=>vb(Q,c)),J=(_?"C":"")+eg(D)+jD(h,v),V=T.instantiations.get(J);if(!V){let Q=P_(T.outerTypeParameters,D),ue=T.checkType,Fe=T.isDistributive?Eg(vb(ue,Q)):void 0;V=Fe&&ue!==Fe&&Fe.flags&1179648?trt(Fe,De=>mCe(T,LC(ue,De,Q),_),h,v):mCe(T,Q,_,h,v),T.instantiations.set(J,V)}return V}return r}function Ma(r,c){return r&&c?ttt(r,c,void 0,void 0):r}function ttt(r,c,_,h){var v;if(!iS(r))return r;if(P===100||S>=5e6)return(v=Fn)==null||v.instant(Fn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:P,instantiationCount:S}),ot(N,y.Type_instantiation_is_excessively_deep_and_possibly_infinite),ut;b++,S++,P++;let T=wGt(r,c,_,h);return P--,T}function wGt(r,c,_,h){let v=r.flags;if(v&262144)return vb(r,c);if(v&524288){let T=r.objectFlags;if(T&52){if(T&4&&!r.node){let D=r.resolvedTypeArguments,J=tv(D,c);return J!==D?iCe(r.target,J):r}return T&1024?kGt(r,c):vGt(r,c,_,h)}return r}if(v&3145728){let T=r.flags&1048576?r.origin:void 0,D=T&&T.flags&3145728?T.types:r.types,J=tv(D,c);if(J===D&&_===r.aliasSymbol)return r;let V=_||r.aliasSymbol,Q=_?h:tv(r.aliasTypeArguments,c);return v&2097152||T&&T.flags&2097152?_o(J,0,V,Q):Fi(J,1,V,Q)}if(v&4194304)return fy(Ma(r.type,c));if(v&134217728)return FC(r.texts,tv(r.types,c));if(v&268435456)return BD(r.symbol,Ma(r.type,c));if(v&8388608){let T=_||r.aliasSymbol,D=_?h:tv(r.aliasTypeArguments,c);return C_(Ma(r.objectType,c),Ma(r.indexType,c),r.accessFlags,void 0,T,D)}if(v&16777216)return kCe(r,Fw(r.mapper,c),!1,_,h);if(v&33554432){let T=Ma(r.baseType,c);if(t6(r))return Vke(T);let D=Ma(r.constraint,c);return T.flags&8650752&&IT(D)?Gke(T,D):D.flags&3||qs(BC(T),BC(D))?T:T.flags&8650752?Gke(T,D):_o([D,T])}return r}function kGt(r,c){let _=Ma(r.mappedType,c);if(!(oi(_)&32))return r;let h=Ma(r.constraintType,c);if(!(h.flags&4194304))return r;let v=Itt(Ma(r.source,c),_,h);return v||r}function jj(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=Ma(r,pl))}function BC(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=Ma(r,Vl),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function CGt(r,c){return a0(r.keyType,Ma(r.type,c),r.isReadonly,r.declaration,r.components)}function Hd(r){switch(I.assert(r.kind!==174||Lm(r)),r.kind){case 218:case 219:case 174:case 262:return rtt(r);case 210:return Pt(r.properties,Hd);case 209:return Pt(r.elements,Hd);case 227:return Hd(r.whenTrue)||Hd(r.whenFalse);case 226:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(Hd(r.left)||Hd(r.right));case 303:return Hd(r.initializer);case 217:return Hd(r.expression);case 292:return Pt(r.properties,Hd)||Vg(r.parent)&&Pt(r.parent.parent.children,Hd);case 291:{let{initializer:c}=r;return!!c&&Hd(c)}case 294:{let{expression:c}=r;return!!c&&Hd(c)}}return!1}function rtt(r){return QJ(r)||PGt(r)}function PGt(r){return r.typeParameters||dd(r)||!r.body?!1:r.body.kind!==241?Hd(r.body):!!_x(r.body,c=>!!c.expression&&Hd(c.expression))}function mae(r){return(xx(r)||Lm(r))&&rtt(r)}function ntt(r){if(r.flags&524288){let c=ph(r);if(c.constructSignatures.length||c.callSignatures.length){let _=Nr(16,r.symbol);return _.members=c.members,_.properties=c.properties,_.callSignatures=ce,_.constructSignatures=ce,_.indexInfos=ce,_}}else if(r.flags&2097152)return _o(Dt(r.types,ntt));return r}function o0(r,c){return _y(r,c,td)}function Lj(r,c){return _y(r,c,td)?-1:0}function CCe(r,c){return _y(r,c,i_)?-1:0}function EGt(r,c){return _y(r,c,$v)?-1:0}function Rw(r,c){return _y(r,c,$v)}function oV(r,c){return _y(r,c,bm)}function qs(r,c){return _y(r,c,i_)}function FT(r,c){return r.flags&1048576?sn(r.types,_=>FT(_,c)):c.flags&1048576?Pt(c.types,_=>FT(r,_)):r.flags&2097152?Pt(r.types,_=>FT(_,c)):r.flags&58982400?FT(Op(r)||qt,c):rv(c)?!!(r.flags&67633152):c===$e?!!(r.flags&67633152)&&!rv(r):c===nr?!!(r.flags&524288)&&sPe(r):GA(r,HA(c))||km(c)&&!C8(c)&&FT(r,Io)}function gae(r,c){return _y(r,c,S_)}function cV(r,c){return gae(r,c)||gae(c,r)}function $p(r,c,_,h,v,T){return wm(r,c,i_,_,h,v,T)}function jw(r,c,_,h,v,T){return PCe(r,c,i_,_,h,v,T,void 0)}function PCe(r,c,_,h,v,T,D,J){return _y(r,c,_)?!0:!h||!Bj(v,r,c,_,T,D,J)?wm(r,c,_,h,T,D,J):!1}function itt(r){return!!(r.flags&16777216||r.flags&2097152&&Pt(r.types,itt))}function Bj(r,c,_,h,v,T,D){if(!r||itt(_))return!1;if(!wm(c,_,h,void 0)&&DGt(r,c,_,h,v,T,D))return!0;switch(r.kind){case 234:if(!$X(r))break;case 294:case 217:return Bj(r.expression,c,_,h,v,T,D);case 226:switch(r.operatorToken.kind){case 64:case 28:return Bj(r.right,c,_,h,v,T,D)}break;case 210:return jGt(r,c,_,h,T,D);case 209:return MGt(r,c,_,h,T,D);case 292:return FGt(r,c,_,h,T,D);case 219:return OGt(r,c,_,h,T,D)}return!1}function DGt(r,c,_,h,v,T,D){let J=Ns(c,0),V=Ns(c,1);for(let Q of[V,J])if(Pt(Q,ue=>{let Fe=Yo(ue);return!(Fe.flags&131073)&&wm(Fe,_,h,void 0)})){let ue=D||{};$p(c,_,r,v,T,ue);let Fe=ue.errors[ue.errors.length-1];return Hs(Fe,Mn(r,Q===V?y.Did_you_mean_to_use_new_with_this_expression:y.Did_you_mean_to_call_this_expression)),!0}return!1}function OGt(r,c,_,h,v,T){if(Cs(r.body)||Pt(r.parameters,Tq))return!1;let D=GC(c);if(!D)return!1;let J=Ns(_,0);if(!Re(J))return!1;let V=r.body,Q=Yo(D),ue=Fi(Dt(J,Yo));if(!wm(Q,ue,h,void 0)){let Fe=V&&Bj(V,Q,ue,h,void 0,v,T);if(Fe)return Fe;let De=T||{};if(wm(Q,ue,h,V,void 0,v,De),De.errors)return _.symbol&&Re(_.symbol.declarations)&&Hs(De.errors[De.errors.length-1],Mn(_.symbol.declarations[0],y.The_expected_type_comes_from_the_return_type_of_this_signature)),!(eu(r)&2)&&!fu(Q,"then")&&wm(UV(Q),ue,h,void 0)&&Hs(De.errors[De.errors.length-1],Mn(r,y.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function att(r,c,_){let h=Zx(c,_);if(h)return h;if(c.flags&1048576){let v=_tt(r,c);if(v)return Zx(v,_)}}function stt(r,c){DV(r,c,!1);let _=R8(r,1);return Qj(),_}function lV(r,c,_,h,v,T){let D=!1;for(let J of r){let{errorNode:V,innerExpression:Q,nameType:ue,errorMessage:Fe}=J,De=att(c,_,ue);if(!De||De.flags&8388608)continue;let _t=Zx(c,ue);if(!_t)continue;let Nt=oae(ue,void 0);if(!wm(_t,De,h,void 0)){let zt=Q&&Bj(Q,_t,De,h,void 0,v,T);if(D=!0,!zt){let Dr=T||{},Tr=Q?stt(Q,_t):_t;if(Ne&&yae(Tr,De)){let En=Mn(V,y.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Pn(Tr),Pn(De));Jo.add(En),Dr.errors=[En]}else{let En=!!(Nt&&(io(_,Nt)||oe).flags&16777216),xn=!!(Nt&&(io(c,Nt)||oe).flags&16777216);De=s1(De,En),_t=s1(_t,En&&xn),wm(Tr,De,h,V,Fe,v,Dr)&&Tr!==_t&&wm(_t,De,h,V,Fe,v,Dr)}if(Dr.errors){let En=Dr.errors[Dr.errors.length-1],xn=_m(ue)?dm(ue):void 0,Fr=xn!==void 0?io(_,xn):void 0,kr=!1;if(!Fr){let Un=Pj(_,ue);Un&&Un.declaration&&!rn(Un.declaration).hasNoDefaultLib&&(kr=!0,Hs(En,Mn(Un.declaration,y.The_expected_type_comes_from_this_index_signature)))}if(!kr&&(Fr&&Re(Fr.declarations)||_.symbol&&Re(_.symbol.declarations))){let Un=Fr&&Re(Fr.declarations)?Fr.declarations[0]:_.symbol.declarations[0];rn(Un).hasNoDefaultLib||Hs(En,Mn(Un,y.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,xn&&!(ue.flags&8192)?ka(xn):Pn(ue),Pn(_)))}}}}}return D}function NGt(r,c,_,h,v,T){let D=_u(_,kae),J=_u(_,ue=>!kae(ue)),V=J!==Pr?DEe(13,0,J,void 0):void 0,Q=!1;for(let ue=r.next();!ue.done;ue=r.next()){let{errorNode:Fe,innerExpression:De,nameType:_t,errorMessage:Nt}=ue.value,zt=V,Dr=D!==Pr?att(c,D,_t):void 0;if(Dr&&!(Dr.flags&8388608)&&(zt=V?Fi([V,Dr]):Dr),!zt)continue;let Tr=Zx(c,_t);if(!Tr)continue;let En=oae(_t,void 0);if(!wm(Tr,zt,h,void 0)){let xn=De&&Bj(De,Tr,zt,h,void 0,v,T);if(Q=!0,!xn){let Fr=T||{},kr=De?stt(De,Tr):Tr;if(Ne&&yae(kr,zt)){let Un=Mn(Fe,y.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Pn(kr),Pn(zt));Jo.add(Un),Fr.errors=[Un]}else{let Un=!!(En&&(io(D,En)||oe).flags&16777216),ki=!!(En&&(io(c,En)||oe).flags&16777216);zt=s1(zt,Un),Tr=s1(Tr,Un&&ki),wm(kr,zt,h,Fe,Nt,v,Fr)&&kr!==Tr&&wm(Tr,zt,h,Fe,Nt,v,Fr)}}}}return Q}function*AGt(r){if(Re(r.properties))for(let c of r.properties)EE(c)||OPe(X5(c.name))||(yield{errorNode:c.name,innerExpression:c.initializer,nameType:c_(X5(c.name))})}function*IGt(r,c){if(!Re(r.children))return;let _=0;for(let h=0;h<r.children.length;h++){let v=r.children[h],T=Dg(h-_),D=ott(v,T,c);D?yield D:_++}}function ott(r,c,_){switch(r.kind){case 294:return{errorNode:r,innerExpression:r.expression,nameType:c};case 12:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:c,errorMessage:_()};case 284:case 285:case 288:return{errorNode:r,innerExpression:r,nameType:c};default:return I.assertNever(r,"Found invalid jsx child")}}function FGt(r,c,_,h,v,T){let D=lV(AGt(r),c,_,h,v,T),J;if(Vg(r.parent)&&qh(r.parent.parent)){let Q=r.parent.parent,ue=NV(VC(r)),Fe=ue===void 0?"children":ka(ue),De=c_(Fe),_t=C_(_,De),Nt=mN(Q.children);if(!Re(Nt))return D;let zt=Re(Nt)>1,Dr,Tr;if(sae(!1)!==fr){let xn=get(Qe);Dr=_u(_t,Fr=>qs(Fr,xn)),Tr=_u(_t,Fr=>!qs(Fr,xn))}else Dr=_u(_t,kae),Tr=_u(_t,xn=>!kae(xn));if(zt){if(Dr!==Pr){let xn=ev(Yae(Q,0)),Fr=IGt(Q,V);D=NGt(Fr,xn,Dr,h,v,T)||D}else if(!_y(C_(c,De),_t,h)){D=!0;let xn=ot(Q.openingElement.tagName,y.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Fe,Pn(_t));T&&T.skipLogging&&(T.errors||(T.errors=[])).push(xn)}}else if(Tr!==Pr){let xn=Nt[0],Fr=ott(xn,De,V);Fr&&(D=lV(function*(){yield Fr}(),c,_,h,v,T)||D)}else if(!_y(C_(c,De),_t,h)){D=!0;let xn=ot(Q.openingElement.tagName,y.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Fe,Pn(_t));T&&T.skipLogging&&(T.errors||(T.errors=[])).push(xn)}}return D;function V(){if(!J){let Q=cl(r.parent.tagName),ue=NV(VC(r)),Fe=ue===void 0?"children":ka(ue),De=C_(_,c_(Fe)),_t=y._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;J={..._t,key:"!!ALREADY FORMATTED!!",message:cE(_t,Q,Fe,Pn(De))}}return J}}function*ctt(r,c){let _=Re(r.elements);if(_)for(let h=0;h<_;h++){if(P8(c)&&!io(c,""+h))continue;let v=r.elements[h];if(Ju(v))continue;let T=Dg(h),D=ose(v);yield{errorNode:D,innerExpression:D,nameType:T}}}function MGt(r,c,_,h,v,T){if(_.flags&402915324)return!1;if(P8(c))return lV(ctt(r,_),c,_,h,v,T);DV(r,_,!1);let D=qrt(r,1,!0);return Qj(),P8(D)?lV(ctt(r,_),D,_,h,v,T):!1}function*RGt(r){if(Re(r.properties))for(let c of r.properties){if(Lv(c))continue;let _=LD(ei(c),8576);if(!(!_||_.flags&131072))switch(c.kind){case 178:case 177:case 174:case 304:yield{errorNode:c.name,innerExpression:void 0,nameType:_};break;case 303:yield{errorNode:c.name,innerExpression:c.initializer,nameType:_,errorMessage:VF(c.name)?y.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:I.assertNever(c)}}}function jGt(r,c,_,h,v,T){return _.flags&402915324?!1:lV(RGt(r),c,_,h,v,T)}function ltt(r,c,_,h,v){return wm(r,c,S_,_,h,v)}function LGt(r,c,_){return ECe(r,c,_?4:0,!1,void 0,void 0,CCe,void 0)!==0}function hae(r){if(!r.typeParameters&&(!r.thisParameter||Ae(JV(r.thisParameter)))&&r.parameters.length===1&&ef(r)){let c=JV(r.parameters[0]);return!!((km(c)?$c(c)[0]:c).flags&131073&&Yo(r).flags&3)}return!1}function ECe(r,c,_,h,v,T,D,J){if(r===c||!(_&16&&hae(r))&&hae(c))return-1;if(_&16&&hae(r)&&!hae(c))return 0;let V=D_(c);if(!nv(c)&&(_&8?nv(r)||D_(r)>V:mh(r)>V))return h&&!(_&8)&&v(y.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,mh(r),V),0;r.typeParameters&&r.typeParameters!==c.typeParameters&&(c=RVt(c),r=vnt(r,c,void 0,D));let ue=D_(r),Fe=nL(r),De=nL(c);(Fe||De)&&Ma(Fe||De,J);let _t=c.declaration?c.declaration.kind:0,Nt=!(_&3)&&te&&_t!==174&&_t!==173&&_t!==176,zt=-1,Dr=NT(r);if(Dr&&Dr!==zr){let xn=NT(c);if(xn){let Fr=!Nt&&D(Dr,xn,!1)||D(xn,Dr,h);if(!Fr)return h&&v(y.The_this_types_of_each_signature_are_incompatible),0;zt&=Fr}}let Tr=Fe||De?Math.min(ue,V):Math.max(ue,V),En=Fe||De?Tr-1:-1;for(let xn=0;xn<Tr;xn++){let Fr=xn===En?Unt(r,xn):Jw(r,xn),kr=xn===En?Unt(c,xn):Jw(c,xn);if(Fr&&kr&&(Fr!==kr||_&8)){let Un=_&3||hnt(r,xn)?void 0:GC(a1(Fr)),ki=_&3||hnt(c,xn)?void 0:GC(a1(kr)),ri=Un&&ki&&!Tm(Un)&&!Tm(ki)&&a6(Fr,50331648)===a6(kr,50331648)?ECe(ki,Un,_&8|(Nt?2:1),h,v,T,D,J):!(_&3)&&!Nt&&D(Fr,kr,!1)||D(kr,Fr,h);if(ri&&_&8&&xn>=mh(r)&&xn<mh(c)&&D(Fr,kr,!1)&&(ri=0),!ri)return h&&v(y.Types_of_parameters_0_and_1_are_incompatible,ka(I8(r,xn)),ka(I8(c,xn))),0;zt&=ri}}if(!(_&4)){let xn=Gie(c)?Qe:c.declaration&&gy(c.declaration)?Sm(Uo(c.declaration.symbol)):Yo(c);if(xn===zr||xn===Qe)return zt;let Fr=Gie(r)?Qe:r.declaration&&gy(r.declaration)?Sm(Uo(r.declaration.symbol)):Yo(r),kr=Tm(c);if(kr){let Un=Tm(r);if(Un)zt&=BGt(Un,kr,h,v,D);else if(_me(kr)||dme(kr))return h&&v(y.Signature_0_must_be_a_type_predicate,Sw(r)),0}else zt&=_&1&&D(xn,Fr,!1)||D(Fr,xn,h),!zt&&h&&T&&T(Fr,xn)}return zt}function BGt(r,c,_,h,v){if(r.kind!==c.kind)return _&&(h(y.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),h(y.Type_predicate_0_is_not_assignable_to_1,wT(r),wT(c))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==c.parameterIndex)return _&&(h(y.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,c.parameterName),h(y.Type_predicate_0_is_not_assignable_to_1,wT(r),wT(c))),0;let T=r.type===c.type?-1:r.type&&c.type?v(r.type,c.type,_):0;return T===0&&_&&h(y.Type_predicate_0_is_not_assignable_to_1,wT(r),wT(c)),T}function qGt(r,c){let _=Nj(r),h=Nj(c),v=Yo(_),T=Yo(h);return T===zr||_y(T,v,i_)||_y(v,T,i_)?LGt(_,h,!0):!1}function DCe(r){return r!==hc&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function n1(r){return r.flags&524288?!o_(r)&&DCe(ph(r)):r.flags&67108864?!0:r.flags&1048576?Pt(r.types,n1):r.flags&2097152?sn(r.types,n1):!1}function rv(r){return!!(oi(r)&16&&(r.members&&DCe(r)||r.symbol&&r.symbol.flags&2048&&Xy(r.symbol).size===0))}function JGt(r){if(fe&&r.flags&1048576){if(!(r.objectFlags&33554432)){let c=r.types;r.objectFlags|=33554432|(c.length>=3&&c[0].flags&32768&&c[1].flags&65536&&Pt(c,rv)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function i6(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function zGt(r){let c=r.flags&1048576?r.types[0]:r;return!!(c.flags&32768)&&c!==Ke}function utt(r){return r.flags&524288&&!o_(r)&&oc(r).length===0&&Wp(r).length===1&&!!i0(r,kt)||r.flags&3145728&&sn(r.types,utt)||!1}function OCe(r,c,_){let h=r.flags&8?w_(r):r,v=c.flags&8?w_(c):c;if(h===v)return!0;if(h.escapedName!==v.escapedName||!(h.flags&256)||!(v.flags&256))return!1;let T=co(h)+","+co(v),D=wu.get(T);if(D!==void 0&&!(D&2&&_))return!!(D&1);let J=An(v);for(let V of oc(An(h)))if(V.flags&8){let Q=io(J,V.escapedName);if(!Q||!(Q.flags&8))return _&&_(y.Property_0_is_missing_in_type_1,Ml(V),Pn(zc(v),void 0,64)),wu.set(T,2),!1;let ue=QC(Zc(V,306)).value,Fe=QC(Zc(Q,306)).value;if(ue!==Fe){let De=typeof ue=="string",_t=typeof Fe=="string";if(ue!==void 0&&Fe!==void 0){if(_){let Nt=De?`"${Ay(ue)}"`:ue,zt=_t?`"${Ay(Fe)}"`:Fe;_(y.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Ml(v),Ml(Q),zt,Nt)}return wu.set(T,2),!1}if(De||_t){if(_){let Nt=ue??Fe;I.assert(typeof Nt=="string");let zt=`"${Ay(Nt)}"`;_(y.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Ml(v),Ml(Q),zt)}return wu.set(T,2),!1}}}return wu.set(T,1),!0}function qj(r,c,_,h){let v=r.flags,T=c.flags;return T&1||v&131072||r===Rt||T&2&&!(_===bm&&v&1)?!0:T&131072?!1:!!(v&402653316&&T&4||v&128&&v&1024&&T&128&&!(T&1024)&&r.value===c.value||v&296&&T&8||v&256&&v&1024&&T&256&&!(T&1024)&&r.value===c.value||v&2112&&T&64||v&528&&T&16||v&12288&&T&4096||v&32&&T&32&&r.symbol.escapedName===c.symbol.escapedName&&OCe(r.symbol,c.symbol,h)||v&1024&&T&1024&&(v&1048576&&T&1048576&&OCe(r.symbol,c.symbol,h)||v&2944&&T&2944&&r.value===c.value&&OCe(r.symbol,c.symbol,h))||v&32768&&(!fe&&!(T&3145728)||T&49152)||v&65536&&(!fe&&!(T&3145728)||T&65536)||v&524288&&T&67108864&&!(_===bm&&rv(r)&&!(oi(r)&8192))||(_===i_||_===S_)&&(v&1||v&8&&(T&32||T&256&&T&1024)||v&256&&!(v&1024)&&(T&32||T&256&&T&1024&&r.value===c.value)||JGt(c)))}function _y(r,c,_){if(Aw(r)&&(r=r.regularType),Aw(c)&&(c=c.regularType),r===c)return!0;if(_!==td){if(_===S_&&!(c.flags&131072)&&qj(c,r,_)||qj(r,c,_))return!0}else if(!((r.flags|c.flags)&61865984)){if(r.flags!==c.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&c.flags&524288){let h=_.get(xae(r,c,0,_,!1));if(h!==void 0)return!!(h&1)}return r.flags&469499904||c.flags&469499904?wm(r,c,_,void 0):!1}function ptt(r,c){return oi(r)&2048&&OPe(c.escapedName)}function uV(r,c){for(;;){let _=Aw(r)?r.regularType:rS(r)?$Gt(r,c):oi(r)&4?r.node?Z0(r.target,$c(r)):LCe(r)||r:r.flags&3145728?WGt(r,c):r.flags&33554432?c?r.baseType:Kke(r):r.flags&25165824?t1(r,c):r;if(_===r)return _;r=_}}function WGt(r,c){let _=Eg(r);if(_!==r)return _;if(r.flags&2097152&&UGt(r)){let h=ia(r.types,v=>uV(v,c));if(h!==r.types)return _o(h)}return r}function UGt(r){let c=!1,_=!1;for(let h of r.types)if(c||(c=!!(h.flags&465829888)),_||(_=!!(h.flags&98304)||rv(h)),c&&_)return!0;return!1}function $Gt(r,c){let _=Ow(r),h=ia(_,v=>v.flags&25165824?t1(v,c):v);return _!==h?aCe(r.target,h):r}function wm(r,c,_,h,v,T,D){var J;let V,Q,ue,Fe,De,_t,Nt=0,zt=0,Dr=0,Tr=0,En=!1,xn=0,Fr=0,kr,Un,ki=16e6-_.size>>3;I.assert(_!==td||!h,"no error reporting in identity checking");let Pa=Sn(r,c,3,!!h,v);if(Un&&pc(),En){let lt=xae(r,c,0,_,!1);_.set(lt,2|(ki<=0?32:64)),(J=Fn)==null||J.instant(Fn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:c.id,depth:zt,targetDepth:Dr});let St=ki<=0?y.Excessive_complexity_comparing_types_0_and_1:y.Excessive_stack_depth_comparing_types_0_and_1,xr=ot(h||N,St,Pn(r),Pn(c));D&&(D.errors||(D.errors=[])).push(xr)}else if(V){if(T){let xr=T();xr&&(yge(xr,V),V=xr)}let lt;if(v&&h&&!Pa&&r.symbol){let xr=Fa(r.symbol);if(xr.originatingImport&&!_d(xr.originatingImport)&&wm(An(xr.target),c,_,void 0)){let Ut=Mn(xr.originatingImport,y.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);lt=Zr(lt,Ut)}}let St=Cv(rn(h),h,V,lt);Q&&Hs(St,...Q),D&&(D.errors||(D.errors=[])).push(St),(!D||!D.skipLogging)&&Jo.add(St)}return h&&D&&D.skipLogging&&Pa===0&&I.assert(!!D.errors,"missed opportunity to interact with error."),Pa!==0;function ri(lt){V=lt.errorInfo,kr=lt.lastSkippedInfo,Un=lt.incompatibleStack,xn=lt.overrideNextErrorInfo,Fr=lt.skipParentCounter,Q=lt.relatedInfo}function os(){return{errorInfo:V,lastSkippedInfo:kr,incompatibleStack:Un?.slice(),overrideNextErrorInfo:xn,skipParentCounter:Fr,relatedInfo:Q?.slice()}}function Ms(lt,...St){xn++,kr=void 0,(Un||(Un=[])).push([lt,...St])}function pc(){let lt=Un||[];Un=void 0;let St=kr;if(kr=void 0,lt.length===1){bs(...lt[0]),St&&bl(void 0,...St);return}let xr="",gn=[];for(;lt.length;){let[Ut,...Vt]=lt.pop();switch(Ut.code){case y.Types_of_property_0_are_incompatible.code:{xr.indexOf("new ")===0&&(xr=`(${xr})`);let Ar=""+Vt[0];xr.length===0?xr=`${Ar}`:m_(Ar,Po(z))?xr=`${xr}.${Ar}`:Ar[0]==="["&&Ar[Ar.length-1]==="]"?xr=`${xr}${Ar}`:xr=`${xr}[${Ar}]`;break}case y.Call_signature_return_types_0_and_1_are_incompatible.code:case y.Construct_signature_return_types_0_and_1_are_incompatible.code:case y.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case y.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(xr.length===0){let Ar=Ut;Ut.code===y.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Ar=y.Call_signature_return_types_0_and_1_are_incompatible:Ut.code===y.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Ar=y.Construct_signature_return_types_0_and_1_are_incompatible),gn.unshift([Ar,Vt[0],Vt[1]])}else{let Ar=Ut.code===y.Construct_signature_return_types_0_and_1_are_incompatible.code||Ut.code===y.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",tn=Ut.code===y.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Ut.code===y.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";xr=`${Ar}${xr}(${tn})`}break}case y.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{gn.unshift([y.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Vt[0],Vt[1]]);break}case y.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{gn.unshift([y.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Vt[0],Vt[1],Vt[2]]);break}default:return I.fail(`Unhandled Diagnostic: ${Ut.code}`)}}xr?bs(xr[xr.length-1]===")"?y.The_types_returned_by_0_are_incompatible_between_these_types:y.The_types_of_0_are_incompatible_between_these_types,xr):gn.shift();for(let[Ut,...Vt]of gn){let Ar=Ut.elidedInCompatabilityPyramid;Ut.elidedInCompatabilityPyramid=!1,bs(Ut,...Vt),Ut.elidedInCompatabilityPyramid=Ar}St&&bl(void 0,...St)}function bs(lt,...St){I.assert(!!h),Un&&pc(),!lt.elidedInCompatabilityPyramid&&(Fr===0?V=vs(V,lt,...St):Fr--)}function of(lt,...St){bs(lt,...St),Fr++}function op(lt){I.assert(!!V),Q?Q.push(lt):Q=[lt]}function bl(lt,St,xr){Un&&pc();let[gn,Ut]=ST(St,xr),Vt=St,Ar=gn;if(!(xr.flags&131072)&&Jj(St)&&!NCe(xr)&&(Vt=i1(St),I.assert(!qs(Vt,xr),"generalized source shouldn't be assignable"),Ar=DD(Vt)),(xr.flags&8388608&&!(St.flags&8388608)?xr.objectType.flags:xr.flags)&262144&&xr!==Xe&&xr!==Et){let Rn=Op(xr),xi;Rn&&(qs(Vt,Rn)||(xi=qs(St,Rn)))?bs(y._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,xi?gn:Ar,Ut,Pn(Rn)):(V=void 0,bs(y._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Ut,Ar))}if(lt)lt===y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ne&&ftt(St,xr).length&&(lt=y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(_===S_)lt=y.Type_0_is_not_comparable_to_type_1;else if(gn===Ut)lt=y.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ne&&ftt(St,xr).length)lt=y.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(St.flags&128&&xr.flags&1048576){let Rn=aYt(St,xr);if(Rn){bs(y.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Ar,Ut,Pn(Rn));return}}lt=y.Type_0_is_not_assignable_to_type_1}bs(lt,Ar,Ut)}function en(lt,St){let xr=zA(lt.symbol)?Pn(lt,lt.symbol.valueDeclaration):Pn(lt),gn=zA(St.symbol)?Pn(St,St.symbol.valueDeclaration):Pn(St);(Jc===lt&&kt===St||Kl===lt&&dr===St||hl===lt&&cr===St||cet()===lt&&er===St)&&bs(y._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,gn,xr)}function Yr(lt,St,xr){return Oo(lt)?lt.target.readonly&&dV(St)?(xr&&bs(y.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Pn(lt),Pn(St)),!1):MT(St):C8(lt)&&dV(St)?(xr&&bs(y.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Pn(lt),Pn(St)),!1):Oo(St)?km(lt):!0}function oa(lt,St,xr){return Sn(lt,St,3,xr)}function Sn(lt,St,xr=3,gn=!1,Ut,Vt=0){if(lt===St)return-1;if(lt.flags&524288&&St.flags&402784252)return _===S_&&!(St.flags&131072)&&qj(St,lt,_)||qj(lt,St,_,gn?bs:void 0)?-1:(gn&&Za(lt,St,lt,St,Ut),0);let Ar=uV(lt,!1),tn=uV(St,!0);if(Ar===tn)return-1;if(_===td)return Ar.flags!==tn.flags?0:Ar.flags&67358815?-1:(Fo(Ar,tn),JT(Ar,tn,!1,0,xr));if(Ar.flags&262144&&NC(Ar)===tn)return-1;if(Ar.flags&470302716&&tn.flags&1048576){let Rn=tn.types,xi=Rn.length===2&&Rn[0].flags&98304?Rn[1]:Rn.length===3&&Rn[0].flags&98304&&Rn[1].flags&98304?Rn[2]:void 0;if(xi&&!(xi.flags&98304)&&(tn=uV(xi,!0),Ar===tn))return-1}if(_===S_&&!(tn.flags&131072)&&qj(tn,Ar,_)||qj(Ar,tn,_,gn?bs:void 0))return-1;if(Ar.flags&469499904||tn.flags&469499904){if(!(Vt&2)&&xb(Ar)&&oi(Ar)&8192&&du(Ar,tn,gn))return gn&&bl(Ut,Ar,St.aliasSymbol?St:tn),0;let xi=(_!==S_||fh(Ar))&&!(Vt&2)&&Ar.flags&405405692&&Ar!==$e&&tn.flags&2621440&&ICe(tn)&&(oc(Ar).length>0||Rse(Ar)),ha=!!(oi(Ar)&2048);if(xi&&!HGt(Ar,tn,ha)){if(gn){let Aa=Pn(lt.aliasSymbol?lt:Ar),hs=Pn(St.aliasSymbol?St:tn),No=Ns(Ar,0),uo=Ns(Ar,1);No.length>0&&Sn(Yo(No[0]),tn,1,!1)||uo.length>0&&Sn(Yo(uo[0]),tn,1,!1)?bs(y.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Aa,hs):bs(y.Type_0_has_no_properties_in_common_with_type_1,Aa,hs)}return 0}Fo(Ar,tn);let Xn=Ar.flags&1048576&&Ar.types.length<4&&!(tn.flags&1048576)||tn.flags&1048576&&tn.types.length<4&&!(Ar.flags&469499904)?l_(Ar,tn,gn,Vt):JT(Ar,tn,gn,Vt,xr);if(Xn)return Xn}return gn&&Za(lt,St,Ar,tn,Ut),0}function Za(lt,St,xr,gn,Ut){var Vt,Ar;let tn=!!LCe(lt),Rn=!!LCe(St);xr=lt.aliasSymbol||tn?lt:xr,gn=St.aliasSymbol||Rn?St:gn;let xi=xn>0;if(xi&&xn--,xr.flags&524288&&gn.flags&524288){let ha=V;Yr(xr,gn,!0),V!==ha&&(xi=!!V)}if(xr.flags&524288&&gn.flags&402784252)en(xr,gn);else if(xr.symbol&&xr.flags&524288&&$e===xr)bs(y.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(oi(xr)&2048&&gn.flags&2097152){let ha=gn.types,Mi=qw(Fd.IntrinsicAttributes,h),Xn=qw(Fd.IntrinsicClassAttributes,h);if(!et(Mi)&&!et(Xn)&&(Ta(ha,Mi)||Ta(ha,Xn)))return}else V=Lke(V,St);if(!Ut&&xi){let ha=os();bl(Ut,xr,gn);let Mi;V&&V!==ha.errorInfo&&(Mi={code:V.code,messageText:V.messageText}),ri(ha),Mi&&V&&(V.canonicalHead=Mi),kr=[xr,gn];return}if(bl(Ut,xr,gn),xr.flags&262144&&((Ar=(Vt=xr.symbol)==null?void 0:Vt.declarations)!=null&&Ar[0])&&!NC(xr)){let ha=TCe(xr);if(ha.constraint=Ma(gn,Iw(xr,ha)),V$(ha)){let Mi=Pn(gn,xr.symbol.declarations[0]);op(Mn(xr.symbol.declarations[0],y.This_type_parameter_might_need_an_extends_0_constraint,Mi))}}}function Fo(lt,St){if(Fn&<.flags&3145728&&St.flags&3145728){let xr=lt,gn=St;if(xr.objectFlags&gn.objectFlags&32768)return;let Ut=xr.types.length,Vt=gn.types.length;Ut*Vt>1e6&&Fn.instant(Fn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:lt.id,sourceSize:Ut,targetId:St.id,targetSize:Vt,pos:h?.pos,end:h?.end})}}function Mc(lt,St){return Fi(Qu(lt,(gn,Ut)=>{var Vt;Ut=kf(Ut);let Ar=Ut.flags&3145728?H$(Ut,St):Pw(Ut,St),tn=Ar&&An(Ar)||((Vt=RD(Ut,St))==null?void 0:Vt.type)||ke;return Zr(gn,tn)},void 0)||ce)}function du(lt,St,xr){var gn;if(!Zj(St)||!Pe&&oi(St)&4096)return!1;let Ut=!!(oi(lt)&2048);if((_===i_||_===S_)&&(O8($e,St)||!Ut&&n1(St)))return!1;let Vt=St,Ar;St.flags&1048576&&(Vt=zat(lt,St,Sn)||fir(St),Ar=Vt.flags&1048576?Vt.types:[Vt]);for(let tn of oc(lt))if(Mo(tn,lt.symbol)&&!ptt(lt,tn)){if(!tse(Vt,tn.escapedName,Ut)){if(xr){let Rn=_u(Vt,Zj);if(!h)return I.fail();if(J2(h)||Qp(h)||Qp(h.parent)){tn.valueDeclaration&&Jh(tn.valueDeclaration)&&rn(h)===rn(tn.valueDeclaration.name)&&(h=tn.valueDeclaration.name);let xi=ja(tn),ha=lnt(xi,Rn),Mi=ha?ja(ha):void 0;Mi?bs(y.Property_0_does_not_exist_on_type_1_Did_you_mean_2,xi,Pn(Rn),Mi):bs(y.Property_0_does_not_exist_on_type_1,xi,Pn(Rn))}else{let xi=((gn=lt.symbol)==null?void 0:gn.declarations)&&Yl(lt.symbol.declarations),ha;if(tn.valueDeclaration&&Br(tn.valueDeclaration,Mi=>Mi===xi)&&rn(xi)===rn(h)){let Mi=tn.valueDeclaration;I.assertNode(Mi,k0);let Xn=Mi.name;h=Xn,Ye(Xn)&&(ha=unt(Xn,Rn))}ha!==void 0?of(y.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ja(tn),Pn(Rn),ha):of(y.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ja(tn),Pn(Rn))}}return!0}if(Ar&&!Sn(An(tn),Mc(Ar,tn.escapedName),3,xr))return xr&&Ms(y.Types_of_property_0_are_incompatible,ja(tn)),!0}return!1}function Mo(lt,St){return lt.valueDeclaration&&St.valueDeclaration&<.valueDeclaration.parent===St.valueDeclaration}function l_(lt,St,xr,gn){if(lt.flags&1048576){if(St.flags&1048576){let Ut=lt.origin;if(Ut&&Ut.flags&2097152&&St.aliasSymbol&&Ta(Ut.types,St))return-1;let Vt=St.origin;if(Vt&&Vt.flags&1048576&<.aliasSymbol&&Ta(Vt.types,lt))return-1}return _===S_?Jl(lt,St,xr&&!(lt.flags&402784252),gn):wb(lt,St,xr&&!(lt.flags&402784252),gn)}if(St.flags&1048576)return fl(Uj(lt),St,xr&&!(lt.flags&402784252)&&!(St.flags&402784252),gn);if(St.flags&2097152)return xd(lt,St,xr,2);if(_===S_&&St.flags&402784252){let Ut=ia(lt.types,Vt=>Vt.flags&465829888?Op(Vt)||qt:Vt);if(Ut!==lt.types){if(lt=_o(Ut),lt.flags&131072)return 0;if(!(lt.flags&2097152))return Sn(lt,St,1,!1)||Sn(St,lt,1,!1)}}return Jl(lt,St,!1,1)}function nu(lt,St){let xr=-1,gn=lt.types;for(let Ut of gn){let Vt=fl(Ut,St,!1,0);if(!Vt)return 0;xr&=Vt}return xr}function fl(lt,St,xr,gn){let Ut=St.types;if(St.flags&1048576){if(s0(Ut,lt))return-1;if(_!==S_&&oi(St)&32768&&!(lt.flags&1024)&&(lt.flags&2688||(_===$v||_===bm)&<.flags&256)){let Ar=lt===lt.regularType?lt.freshType:lt.regularType,tn=lt.flags&128?kt:lt.flags&256?dr:lt.flags&2048?kn:void 0;return tn&&s0(Ut,tn)||Ar&&s0(Ut,Ar)?-1:0}let Vt=Wtt(St,lt);if(Vt){let Ar=Sn(lt,Vt,2,!1,void 0,gn);if(Ar)return Ar}}for(let Vt of Ut){let Ar=Sn(lt,Vt,2,!1,void 0,gn);if(Ar)return Ar}if(xr){let Vt=_tt(lt,St,Sn);Vt&&Sn(lt,Vt,2,!0,void 0,gn)}return 0}function xd(lt,St,xr,gn){let Ut=-1,Vt=St.types;for(let Ar of Vt){let tn=Sn(lt,Ar,2,xr,void 0,gn);if(!tn)return 0;Ut&=tn}return Ut}function Jl(lt,St,xr,gn){let Ut=lt.types;if(lt.flags&1048576&&s0(Ut,St))return-1;let Vt=Ut.length;for(let Ar=0;Ar<Vt;Ar++){let tn=Sn(Ut[Ar],St,1,xr&&Ar===Vt-1,void 0,gn);if(tn)return tn}return 0}function iu(lt,St){return lt.flags&1048576&&St.flags&1048576&&!(lt.types[0].flags&32768)&&St.types[0].flags&32768?N8(St,-32769):St}function wb(lt,St,xr,gn){let Ut=-1,Vt=lt.types,Ar=iu(lt,St);for(let tn=0;tn<Vt.length;tn++){let Rn=Vt[tn];if(Ar.flags&1048576&&Vt.length>=Ar.types.length&&Vt.length%Ar.types.length===0){let ha=Sn(Rn,Ar.types[tn%Ar.types.length],3,!1,void 0,gn);if(ha){Ut&=ha;continue}}let xi=Sn(Rn,St,1,xr,void 0,gn);if(!xi)return 0;Ut&=xi}return Ut}function m6(lt=ce,St=ce,xr=ce,gn,Ut){if(lt.length!==St.length&&_===td)return 0;let Vt=lt.length<=St.length?lt.length:St.length,Ar=-1;for(let tn=0;tn<Vt;tn++){let Rn=tn<xr.length?xr[tn]:1,xi=Rn&7;if(xi!==4){let ha=lt[tn],Mi=St[tn],Xn=-1;if(Rn&8?Xn=_===td?Sn(ha,Mi,3,!1):Lj(ha,Mi):xi===1?Xn=Sn(ha,Mi,3,gn,void 0,Ut):xi===2?Xn=Sn(Mi,ha,3,gn,void 0,Ut):xi===3?(Xn=Sn(Mi,ha,3,!1),Xn||(Xn=Sn(ha,Mi,3,gn,void 0,Ut))):(Xn=Sn(ha,Mi,3,gn,void 0,Ut),Xn&&(Xn&=Sn(Mi,ha,3,gn,void 0,Ut))),!Xn)return 0;Ar&=Xn}}return Ar}function JT(lt,St,xr,gn,Ut){var Vt,Ar,tn;if(En)return 0;let Rn=xae(lt,St,gn,_,!1),xi=_.get(Rn);if(xi!==void 0&&!(xr&&xi&2&&!(xi&96))){if(us){let uo=xi&24;uo&8&&Ma(lt,Kc),uo&16&&Ma(lt,lu)}if(xr&&xi&96){let uo=xi&32?y.Excessive_complexity_comparing_types_0_and_1:y.Excessive_stack_depth_comparing_types_0_and_1;bs(uo,Pn(lt),Pn(St)),xn++}return xi&1?-1:0}if(ki<=0)return En=!0,0;if(!ue)ue=[],Fe=new Set,De=[],_t=[];else{if(Fe.has(Rn))return 3;let uo=Rn.startsWith("*")?xae(lt,St,gn,_,!0):void 0;if(uo&&Fe.has(uo))return 3;if(zt===100||Dr===100)return En=!0,0}let ha=Nt;ue[Nt]=Rn,Fe.add(Rn),Nt++;let Mi=Tr;Ut&1&&(De[zt]=lt,zt++,!(Tr&1)&&WD(lt,De,zt)&&(Tr|=1)),Ut&2&&(_t[Dr]=St,Dr++,!(Tr&2)&&WD(St,_t,Dr)&&(Tr|=2));let Xn,Aa=0;us&&(Xn=us,us=uo=>(Aa|=uo?16:8,Xn(uo)));let hs;return Tr===3?((Vt=Fn)==null||Vt.instant(Fn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:lt.id,sourceIdStack:De.map(uo=>uo.id),targetId:St.id,targetIdStack:_t.map(uo=>uo.id),depth:zt,targetDepth:Dr}),hs=3):((Ar=Fn)==null||Ar.push(Fn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:lt.id,targetId:St.id}),hs=yL(lt,St,xr,gn),(tn=Fn)==null||tn.pop()),us&&(us=Xn),Ut&1&&zt--,Ut&2&&Dr--,Tr=Mi,hs?(hs===-1||zt===0&&Dr===0)&&No(hs===-1||hs===3):(_.set(Rn,2|Aa),ki--,No(!1)),hs;function No(uo){for(let nl=ha;nl<Nt;nl++)Fe.delete(ue[nl]),uo&&(_.set(ue[nl],1|Aa),ki--);Nt=ha}}function yL(lt,St,xr,gn){let Ut=os(),Vt=vL(lt,St,xr,gn,Ut);if(_!==td){if(!Vt&&(lt.flags&2097152||lt.flags&262144&&St.flags&1048576)){let Ar=vVt(lt.flags&2097152?lt.types:[lt],!!(St.flags&1048576));Ar&&E_(Ar,tn=>tn!==lt)&&(Vt=Sn(Ar,St,1,!1,void 0,gn))}Vt&&!(gn&2)&&St.flags&2097152&&!RC(St)&<.flags&2621440?(Vt&=be(lt,St,xr,void 0,!1,0),Vt&&xb(lt)&&oi(lt)&8192&&(Vt&=Lo(lt,St,!1,xr,0))):Vt&&lae(St)&&!MT(St)&<.flags&2097152&&kf(lt).flags&3670016&&!Pt(lt.types,Ar=>Ar===St||!!(oi(Ar)&262144))&&(Vt&=be(lt,St,xr,void 0,!0,gn))}return Vt&&ri(Ut),Vt}function Sd(lt,St){let xr=kf(Cw(St)),gn=[];return Nke(xr,8576,!1,Ut=>void gn.push(Ma(lt,Mj(St.mapper,uh(St),Ut)))),Fi(gn)}function vL(lt,St,xr,gn,Ut){let Vt,Ar,tn=!1,Rn=lt.flags,xi=St.flags;if(_===td){if(Rn&3145728){let Xn=nu(lt,St);return Xn&&(Xn&=nu(St,lt)),Xn}if(Rn&4194304)return Sn(lt.type,St.type,3,!1);if(Rn&8388608&&(Vt=Sn(lt.objectType,St.objectType,3,!1))&&(Vt&=Sn(lt.indexType,St.indexType,3,!1))||Rn&16777216&<.root.isDistributive===St.root.isDistributive&&(Vt=Sn(lt.checkType,St.checkType,3,!1))&&(Vt&=Sn(lt.extendsType,St.extendsType,3,!1))&&(Vt&=Sn(eS(lt),eS(St),3,!1))&&(Vt&=Sn(tS(lt),tS(St),3,!1))||Rn&33554432&&(Vt=Sn(lt.baseType,St.baseType,3,!1))&&(Vt&=Sn(lt.constraint,St.constraint,3,!1)))return Vt;if(!(Rn&524288))return 0}else if(Rn&3145728||xi&3145728){if(Vt=l_(lt,St,xr,gn))return Vt;if(!(Rn&465829888||Rn&524288&&xi&1048576||Rn&2097152&&xi&467402752))return 0}if(Rn&17301504&<.aliasSymbol&<.aliasTypeArguments&<.aliasSymbol===St.aliasSymbol&&!(vae(lt)||vae(St))){let Xn=dtt(lt.aliasSymbol);if(Xn===ce)return 1;let Aa=Fa(lt.aliasSymbol).typeParameters,hs=Zy(Aa),No=hb(lt.aliasTypeArguments,Aa,hs,jn(lt.aliasSymbol.valueDeclaration)),uo=hb(St.aliasTypeArguments,Aa,hs,jn(lt.aliasSymbol.valueDeclaration)),nl=Mi(No,uo,Xn,gn);if(nl!==void 0)return nl}if(wtt(lt)&&!lt.target.readonly&&(Vt=Sn($c(lt)[0],St,1))||wtt(St)&&(St.target.readonly||dV(Op(lt)||lt))&&(Vt=Sn(lt,$c(St)[0],2)))return Vt;if(xi&262144){if(oi(lt)&32&&!lt.declaration.nameType&&Sn(fy(St),$d(lt),3)&&!(Yy(lt)&4)){let Xn=Y0(lt),Aa=C_(St,uh(lt));if(Vt=Sn(Xn,Aa,3,xr))return Vt}if(_===S_&&Rn&262144){let Xn=Wf(lt);if(Xn)for(;Xn&&Pm(Xn,Aa=>!!(Aa.flags&262144));){if(Vt=Sn(Xn,St,1,!1))return Vt;Xn=Wf(Xn)}return 0}}else if(xi&4194304){let Xn=St.type;if(Rn&4194304&&(Vt=Sn(Xn,lt.type,3,!1)))return Vt;if(Oo(Xn)){if(Vt=Sn(lt,bet(Xn),2,xr))return Vt}else{let Aa=Ake(Xn);if(Aa){if(Sn(lt,fy(Aa,St.indexFlags|4),2,xr)===-1)return-1}else if(o_(Xn)){let hs=mb(Xn),No=$d(Xn),uo;if(hs&&XA(Xn)){let nl=Sd(hs,Xn);uo=Fi([nl,hs])}else uo=hs||No;if(Sn(lt,uo,2,xr)===-1)return-1}}}else if(xi&8388608){if(Rn&8388608){if((Vt=Sn(lt.objectType,St.objectType,3,xr))&&(Vt&=Sn(lt.indexType,St.indexType,3,xr)),Vt)return Vt;xr&&(Ar=V)}if(_===i_||_===S_){let Xn=St.objectType,Aa=St.indexType,hs=Op(Xn)||Xn,No=Op(Aa)||Aa;if(!RC(hs)&&!jC(No)){let uo=4|(hs!==Xn?2:0),nl=Zx(hs,No,uo);if(nl){if(xr&&Ar&&ri(Ut),Vt=Sn(lt,nl,2,xr,void 0,gn))return Vt;xr&&Ar&&V&&(V=ha([Ar])<=ha([V])?Ar:V)}}}xr&&(Ar=void 0)}else if(o_(St)&&_!==td){let Xn=!!St.declaration.nameType,Aa=Y0(St),hs=Yy(St);if(!(hs&8)){if(!Xn&&Aa.flags&8388608&&Aa.objectType===lt&&Aa.indexType===uh(St))return-1;if(!o_(lt)){let No=Xn?mb(St):$d(St),uo=fy(lt,2),nl=hs&4,Ng=nl?W$(No,uo):void 0;if(nl?!(Ng.flags&131072):Sn(No,uo,3)){let u0=Y0(St),p1=uh(St),kb=N8(u0,-98305);if(!Xn&&kb.flags&8388608&&kb.indexType===p1){if(Vt=Sn(lt,kb.objectType,2,xr))return Vt}else{let cf=Xn?Ng||No:Ng?_o([Ng,p1]):p1,Cb=C_(lt,cf);if(Vt=Sn(Cb,u0,3,xr))return Vt}}Ar=V,ri(Ut)}}}else if(xi&16777216){if(WD(St,_t,Dr,10))return 3;let Xn=St;if(!Xn.root.inferTypeParameters&&!sGt(Xn.root)&&!(lt.flags&16777216&<.root===Xn.root)){let Aa=!qs(jj(Xn.checkType),jj(Xn.extendsType)),hs=!Aa&&qs(BC(Xn.checkType),BC(Xn.extendsType));if((Vt=Aa?-1:Sn(lt,eS(Xn),2,!1,void 0,gn))&&(Vt&=hs?-1:Sn(lt,tS(Xn),2,!1,void 0,gn),Vt))return Vt}}else if(xi&134217728){if(Rn&134217728){if(_===S_)return FKt(lt,St)?0:-1;Ma(lt,lu)}if(Rae(lt,St))return-1}else if(St.flags&268435456&&!(lt.flags&268435456)&&Mae(lt,St))return-1;if(Rn&8650752){if(!(Rn&8388608&&xi&8388608)){let Xn=NC(lt)||qt;if(Vt=Sn(Xn,St,1,!1,void 0,gn))return Vt;if(Vt=Sn(id(Xn,lt),St,1,xr&&Xn!==qt&&!(xi&Rn&262144),void 0,gn))return Vt;if(Rke(lt)){let Aa=NC(lt.indexType);if(Aa&&(Vt=Sn(C_(lt.objectType,Aa),St,1,xr)))return Vt}}}else if(Rn&4194304){let Xn=pCe(lt.type,lt.indexFlags)&&oi(lt.type)&32;if(Vt=Sn(ji,St,1,xr&&!Xn))return Vt;if(Xn){let Aa=lt.type,hs=mb(Aa),No=hs&&XA(Aa)?Sd(hs,Aa):hs||$d(Aa);if(Vt=Sn(No,St,1,xr))return Vt}}else if(Rn&134217728&&!(xi&524288)){if(!(xi&134217728)){let Xn=Op(lt);if(Xn&&Xn!==lt&&(Vt=Sn(Xn,St,1,xr)))return Vt}}else if(Rn&268435456)if(xi&268435456){if(lt.symbol!==St.symbol)return 0;if(Vt=Sn(lt.type,St.type,3,xr))return Vt}else{let Xn=Op(lt);if(Xn&&(Vt=Sn(Xn,St,1,xr)))return Vt}else if(Rn&16777216){if(WD(lt,De,zt,10))return 3;if(xi&16777216){let hs=lt.root.inferTypeParameters,No=lt.extendsType,uo;if(hs){let nl=$j(hs,void 0,0,oa);o1(nl.inferences,St.extendsType,No,1536),No=Ma(No,nl.mapper),uo=nl.mapper}if(o0(No,St.extendsType)&&(Sn(lt.checkType,St.checkType,3)||Sn(St.checkType,lt.checkType,3))&&((Vt=Sn(Ma(eS(lt),uo),eS(St),3,xr))&&(Vt&=Sn(tS(lt),tS(St),3,xr)),Vt))return Vt}let Xn=Ike(lt);if(Xn&&(Vt=Sn(Xn,St,1,xr)))return Vt;let Aa=!(xi&16777216)&&V$(lt)?PZe(lt):void 0;if(Aa&&(ri(Ut),Vt=Sn(Aa,St,1,xr)))return Vt}else{if(_!==$v&&_!==bm&&fVt(St)&&n1(lt))return-1;if(o_(St))return o_(lt)&&(Vt=ir(lt,St,xr))?Vt:0;let Xn=!!(Rn&402784252);if(_!==td)lt=kf(lt),Rn=lt.flags;else if(o_(lt))return 0;if(oi(lt)&4&&oi(St)&4&<.target===St.target&&!Oo(lt)&&!(vae(lt)||vae(St))){if(wae(lt))return-1;let Aa=FCe(lt.target);if(Aa===ce)return 1;let hs=Mi($c(lt),$c(St),Aa,gn);if(hs!==void 0)return hs}else{if(C8(St)?E_(lt,MT):km(St)&&E_(lt,Aa=>Oo(Aa)&&!Aa.target.readonly))return _!==td?Sn(OT(lt,dr)||Qe,OT(St,dr)||Qe,3,xr):0;if(rS(lt)&&Oo(St)&&!rS(St)){let Aa=py(lt);if(Aa!==lt)return Sn(Aa,St,1,xr)}else if((_===$v||_===bm)&&n1(St)&&oi(St)&8192&&!n1(lt))return 0}if(Rn&2621440&&xi&524288){let Aa=xr&&V===Ut.errorInfo&&!Xn;if(Vt=be(lt,St,Aa,void 0,!1,gn),Vt&&(Vt&=sr(lt,St,0,Aa,gn),Vt&&(Vt&=sr(lt,St,1,Aa,gn),Vt&&(Vt&=Lo(lt,St,Xn,Aa,gn)))),tn&&Vt)V=Ar||V||Ut.errorInfo;else if(Vt)return Vt}if(Rn&2621440&&xi&1048576){let Aa=N8(St,36175872);if(Aa.flags&1048576){let hs=qr(lt,Aa);if(hs)return hs}}}return 0;function ha(Xn){return Xn?Qu(Xn,(Aa,hs)=>Aa+1+ha(hs.next),0):0}function Mi(Xn,Aa,hs,No){if(Vt=m6(Xn,Aa,hs,xr,No))return Vt;if(Pt(hs,nl=>!!(nl&24))){Ar=void 0,ri(Ut);return}let uo=Aa&&GGt(Aa,hs);if(tn=!uo,hs!==ce&&!uo){if(tn&&!(xr&&Pt(hs,nl=>(nl&7)===0)))return 0;Ar=V,ri(Ut)}}}function ir(lt,St,xr){if(_===S_||(_===td?Yy(lt)===Yy(St):y8(lt)<=y8(St))){let Ut,Vt=$d(St),Ar=Ma($d(lt),y8(lt)<0?Kc:lu);if(Ut=Sn(Vt,Ar,3,xr)){let tn=P_([uh(lt)],[uh(St)]);if(Ma(mb(lt),tn)===Ma(mb(St),tn))return Ut&Sn(Ma(Y0(lt),tn),Y0(St),3,xr)}}return 0}function qr(lt,St){var xr;let gn=oc(lt),Ut=ztt(gn,St);if(!Ut)return 0;let Vt=1;for(let Mi of Ut)if(Vt*=lQt(Xx(Mi)),Vt>25)return(xr=Fn)==null||xr.instant(Fn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:lt.id,targetId:St.id,numCombinations:Vt}),0;let Ar=new Array(Ut.length),tn=new Set;for(let Mi=0;Mi<Ut.length;Mi++){let Xn=Ut[Mi],Aa=Xx(Xn);Ar[Mi]=Aa.flags&1048576?Aa.types:[Aa],tn.add(Xn.escapedName)}let Rn=CP(Ar),xi=[];for(let Mi of Rn){let Xn=!1;e:for(let Aa of St.types){for(let hs=0;hs<Ut.length;hs++){let No=Ut[hs],uo=io(Aa,No.escapedName);if(!uo)continue e;if(No===uo)continue;if(!ni(lt,St,No,uo,Ng=>Mi[hs],!1,0,fe||_===S_))continue e}I_(xi,Aa,pv),Xn=!0}if(!Xn)return 0}let ha=-1;for(let Mi of xi)if(ha&=be(lt,Mi,!1,tn,!1,0),ha&&(ha&=sr(lt,Mi,0,!1,0),ha&&(ha&=sr(lt,Mi,1,!1,0),ha&&!(Oo(lt)&&Oo(Mi))&&(ha&=Lo(lt,Mi,!1,!1,0)))),!ha)return ha;return ha}function _n(lt,St){if(!St||lt.length===0)return lt;let xr;for(let gn=0;gn<lt.length;gn++)St.has(lt[gn].escapedName)?xr||(xr=lt.slice(0,gn)):xr&&xr.push(lt[gn]);return xr||lt}function Dn(lt,St,xr,gn,Ut){let Vt=fe&&!!(Tl(St)&48),Ar=ip(Xx(St),!1,Vt),tn=xr(lt);return Sn(tn,Ar,3,gn,void 0,Ut)}function ni(lt,St,xr,gn,Ut,Vt,Ar,tn){let Rn=fm(xr),xi=fm(gn);if(Rn&2||xi&2){if(xr.valueDeclaration!==gn.valueDeclaration)return Vt&&(Rn&2&&xi&2?bs(y.Types_have_separate_declarations_of_a_private_property_0,ja(gn)):bs(y.Property_0_is_private_in_type_1_but_not_in_type_2,ja(gn),Pn(Rn&2?lt:St),Pn(Rn&2?St:lt))),0}else if(xi&4){if(!ZGt(xr,gn))return Vt&&bs(y.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ja(gn),Pn(zD(xr)||lt),Pn(zD(gn)||St)),0}else if(Rn&4)return Vt&&bs(y.Property_0_is_protected_in_type_1_but_public_in_type_2,ja(gn),Pn(lt),Pn(St)),0;if(_===bm&&gh(xr)&&!gh(gn))return 0;let ha=Dn(xr,gn,Ut,Vt,Ar);return ha?!tn&&xr.flags&16777216&&gn.flags&106500&&!(gn.flags&16777216)?(Vt&&bs(y.Property_0_is_optional_in_type_1_but_required_in_type_2,ja(gn),Pn(lt),Pn(St)),0):ha:(Vt&&Ms(y.Types_of_property_0_are_incompatible,ja(gn)),0)}function Ie(lt,St,xr,gn){let Ut=!1;if(xr.valueDeclaration&&Gu(xr.valueDeclaration)&&Ca(xr.valueDeclaration.name)&<.symbol&<.symbol.flags&32){let Ar=xr.valueDeclaration.name.escapedText,tn=T5(lt.symbol,Ar);if(tn&&io(lt,tn)){let Rn=j.getDeclarationName(lt.symbol.valueDeclaration),xi=j.getDeclarationName(St.symbol.valueDeclaration);bs(y.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,nh(Ar),nh(Rn.escapedText===""?wZ:Rn),nh(xi.escapedText===""?wZ:xi));return}}let Vt=Ka(QCe(lt,St,gn,!1));if((!v||v.code!==y.Class_0_incorrectly_implements_interface_1.code&&v.code!==y.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Ut=!0),Vt.length===1){let Ar=ja(xr,void 0,0,20);bs(y.Property_0_is_missing_in_type_1_but_required_in_type_2,Ar,...ST(lt,St)),Re(xr.declarations)&&op(Mn(xr.declarations[0],y._0_is_declared_here,Ar)),Ut&&V&&xn++}else Yr(lt,St,!1)&&(Vt.length>5?bs(y.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Pn(lt),Pn(St),Dt(Vt.slice(0,4),Ar=>ja(Ar)).join(", "),Vt.length-4):bs(y.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Pn(lt),Pn(St),Dt(Vt,Ar=>ja(Ar)).join(", ")),Ut&&V&&xn++)}function be(lt,St,xr,gn,Ut,Vt){if(_===td)return Kt(lt,St,gn);let Ar=-1;if(Oo(St)){if(MT(lt)){if(!St.target.readonly&&(C8(lt)||Oo(lt)&<.target.readonly))return 0;let Mi=yb(lt),Xn=yb(St),Aa=Oo(lt)?lt.target.combinedFlags&4:4,hs=!!(St.target.combinedFlags&12),No=Oo(lt)?lt.target.minLength:0,uo=St.target.minLength;if(!Aa&&Mi<uo)return xr&&bs(y.Source_has_0_element_s_but_target_requires_1,Mi,uo),0;if(!hs&&Xn<No)return xr&&bs(y.Source_has_0_element_s_but_target_allows_only_1,No,Xn),0;if(!hs&&(Aa||Xn<Mi))return xr&&(No<uo?bs(y.Target_requires_0_element_s_but_source_may_have_fewer,uo):bs(y.Target_allows_only_0_element_s_but_source_may_have_more,Xn)),0;let nl=$c(lt),Ng=$c(St),u0=kHt(St.target,11),p1=Aj(St.target,11),kb=!!gn;for(let cf=0;cf<Mi;cf++){let Cb=Oo(lt)?lt.target.elementFlags[cf]:4,g6=Mi-1-cf,zT=hs&&cf>=u0?Xn-1-Math.min(g6,p1):cf,iv=St.target.elementFlags[zT];if(iv&8&&!(Cb&8))return xr&&bs(y.Source_provides_no_match_for_variadic_element_at_position_0_in_target,zT),0;if(Cb&8&&!(iv&12))return xr&&bs(y.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,cf,zT),0;if(iv&1&&!(Cb&1))return xr&&bs(y.Source_provides_no_match_for_required_element_at_position_0_in_target,zT),0;if(kb&&((Cb&12||iv&12)&&(kb=!1),kb&&gn?.has(""+cf)))continue;let z8=s1(nl[cf],!!(Cb&iv&2)),bL=Ng[zT],Wse=Cb&8&&iv&4?Up(bL):s1(bL,!!(iv&2)),Use=Sn(z8,Wse,3,xr,void 0,Vt);if(!Use)return xr&&(Xn>1||Mi>1)&&(hs&&cf>=u0&&g6>=p1&&u0!==Mi-p1-1?Ms(y.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,u0,Mi-p1-1,zT):Ms(y.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,cf,zT)),0;Ar&=Use}return Ar}if(St.target.combinedFlags&12)return 0}let tn=(_===$v||_===bm)&&!xb(lt)&&!wae(lt)&&!Oo(lt),Rn=XCe(lt,St,tn,!1);if(Rn)return xr&&Lr(lt,St)&&Ie(lt,St,Rn,tn),0;if(xb(St)){for(let Mi of _n(oc(lt),gn))if(!Pw(St,Mi.escapedName)&&!(An(Mi).flags&32768))return xr&&bs(y.Property_0_does_not_exist_on_type_1,ja(Mi),Pn(St)),0}let xi=oc(St),ha=Oo(lt)&&Oo(St);for(let Mi of _n(xi,gn)){let Xn=Mi.escapedName;if(!(Mi.flags&4194304)&&(!ha||Mv(Xn)||Xn==="length")&&(!Ut||Mi.flags&16777216)){let Aa=io(lt,Xn);if(Aa&&Aa!==Mi){let hs=ni(lt,St,Aa,Mi,Xx,xr,Vt,_===S_);if(!hs)return 0;Ar&=hs}}}return Ar}function Kt(lt,St,xr){if(!(lt.flags&524288&&St.flags&524288))return 0;let gn=_n(gb(lt),xr),Ut=_n(gb(St),xr);if(gn.length!==Ut.length)return 0;let Vt=-1;for(let Ar of gn){let tn=Pw(St,Ar.escapedName);if(!tn)return 0;let Rn=RCe(Ar,tn,Sn);if(!Rn)return 0;Vt&=Rn}return Vt}function sr(lt,St,xr,gn,Ut){var Vt,Ar;if(_===td)return ra(lt,St,xr);if(St===hc||lt===hc)return-1;let tn=lt.symbol&&gy(lt.symbol.valueDeclaration),Rn=St.symbol&&gy(St.symbol.valueDeclaration),xi=Ns(lt,tn&&xr===1?0:xr),ha=Ns(St,Rn&&xr===1?0:xr);if(xr===1&&xi.length&&ha.length){let No=!!(xi[0].flags&4),uo=!!(ha[0].flags&4);if(No&&!uo)return gn&&bs(y.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!fc(xi[0],ha[0],gn))return 0}let Mi=-1,Xn=xr===1?bn:un,Aa=oi(lt),hs=oi(St);if(Aa&64&&hs&64&<.symbol===St.symbol||Aa&4&&hs&4&<.target===St.target){I.assertEqual(xi.length,ha.length);for(let No=0;No<ha.length;No++){let uo=$i(xi[No],ha[No],!0,gn,Ut,Xn(xi[No],ha[No]));if(!uo)return 0;Mi&=uo}}else if(xi.length===1&&ha.length===1){let No=_===S_,uo=ho(xi),nl=ho(ha);if(Mi=$i(uo,nl,No,gn,Ut,Xn(uo,nl)),!Mi&&gn&&xr===1&&Aa&hs&&(((Vt=nl.declaration)==null?void 0:Vt.kind)===176||((Ar=uo.declaration)==null?void 0:Ar.kind)===176)){let Ng=u0=>Sw(u0,void 0,262144,xr);return bs(y.Type_0_is_not_assignable_to_type_1,Ng(uo),Ng(nl)),bs(y.Types_of_construct_signatures_are_incompatible),Mi}}else e:for(let No of ha){let uo=os(),nl=gn;for(let Ng of xi){let u0=$i(Ng,No,!0,nl,Ut,Xn(Ng,No));if(u0){Mi&=u0,ri(uo);continue e}nl=!1}return nl&&bs(y.Type_0_provides_no_match_for_the_signature_1,Pn(lt),Sw(No,void 0,void 0,xr)),0}return Mi}function Lr(lt,St){let xr=G$(lt,0),gn=G$(lt,1),Ut=gb(lt);return(xr.length||gn.length)&&!Ut.length?!!(Ns(St,0).length&&xr.length||Ns(St,1).length&&gn.length):!0}function un(lt,St){return lt.parameters.length===0&&St.parameters.length===0?(xr,gn)=>Ms(y.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Pn(xr),Pn(gn)):(xr,gn)=>Ms(y.Call_signature_return_types_0_and_1_are_incompatible,Pn(xr),Pn(gn))}function bn(lt,St){return lt.parameters.length===0&&St.parameters.length===0?(xr,gn)=>Ms(y.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Pn(xr),Pn(gn)):(xr,gn)=>Ms(y.Construct_signature_return_types_0_and_1_are_incompatible,Pn(xr),Pn(gn))}function $i(lt,St,xr,gn,Ut,Vt){let Ar=_===$v?16:_===bm?24:0;return ECe(xr?Nj(lt):lt,xr?Nj(St):St,Ar,gn,bs,Vt,tn,lu);function tn(Rn,xi,ha){return Sn(Rn,xi,3,ha,void 0,Ut)}}function ra(lt,St,xr){let gn=Ns(lt,xr),Ut=Ns(St,xr);if(gn.length!==Ut.length)return 0;let Vt=-1;for(let Ar=0;Ar<gn.length;Ar++){let tn=_V(gn[Ar],Ut[Ar],!1,!1,!1,Sn);if(!tn)return 0;Vt&=tn}return Vt}function Ts(lt,St,xr,gn){let Ut=-1,Vt=St.keyType,Ar=lt.flags&2097152?$$(lt):gb(lt);for(let tn of Ar)if(!ptt(lt,tn)&&MD(LD(tn,8576),Vt)){let Rn=Xx(tn),xi=Ne||Rn.flags&32768||Vt===dr||!(tn.flags&16777216)?Rn:Cm(Rn,524288),ha=Sn(xi,St.type,3,xr,void 0,gn);if(!ha)return xr&&bs(y.Property_0_is_incompatible_with_index_signature,ja(tn)),0;Ut&=ha}for(let tn of Wp(lt))if(MD(tn.keyType,Vt)){let Rn=Ga(tn,St,xr,gn);if(!Rn)return 0;Ut&=Rn}return Ut}function Ga(lt,St,xr,gn){let Ut=Sn(lt.type,St.type,3,xr,void 0,gn);return!Ut&&xr&&(lt.keyType===St.keyType?bs(y._0_index_signatures_are_incompatible,Pn(lt.keyType)):bs(y._0_and_1_index_signatures_are_incompatible,Pn(lt.keyType),Pn(St.keyType))),Ut}function Lo(lt,St,xr,gn,Ut){if(_===td)return xo(lt,St);let Vt=Wp(St),Ar=Pt(Vt,Rn=>Rn.keyType===kt),tn=-1;for(let Rn of Vt){let xi=_!==bm&&!xr&&Ar&&Rn.type.flags&1?-1:o_(lt)&&Ar?Sn(Y0(lt),Rn.type,3,gn):bo(lt,Rn,gn,Ut);if(!xi)return 0;tn&=xi}return tn}function bo(lt,St,xr,gn){let Ut=Pj(lt,St.keyType);return Ut?Ga(Ut,St,xr,gn):!(gn&1)&&(_!==bm||oi(lt)&8192)&&Oae(lt)?Ts(lt,St,xr,gn):(xr&&bs(y.Index_signature_for_type_0_is_missing_in_type_1,Pn(St.keyType),Pn(lt)),0)}function xo(lt,St){let xr=Wp(lt),gn=Wp(St);if(xr.length!==gn.length)return 0;for(let Ut of gn){let Vt=i0(lt,Ut.keyType);if(!(Vt&&Sn(Vt.type,Ut.type,3)&&Vt.isReadonly===Ut.isReadonly))return 0}return-1}function fc(lt,St,xr){if(!lt.declaration||!St.declaration)return!0;let gn=tE(lt.declaration,6),Ut=tE(St.declaration,6);return Ut===2||Ut===4&&gn!==2||Ut!==4&&!gn?!0:(xr&&bs(y.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Tw(gn),Tw(Ut)),!1)}}function NCe(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!Ge(r.types,NCe);if(r.flags&465829888){let c=NC(r);if(c&&c!==r)return NCe(c)}return fh(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function ftt(r,c){return Oo(r)&&Oo(c)?ce:oc(c).filter(_=>yae(fu(r,_.escapedName),An(_)))}function yae(r,c){return!!r&&!!c&&ql(r,32768)&&!!Wj(c)}function VGt(r){return oc(r).filter(c=>Wj(An(c)))}function _tt(r,c,_=CCe){return zat(r,c,_)||cir(r,c)||lir(r,c)||uir(r,c)||pir(r,c)}function ACe(r,c,_){let h=r.types,v=h.map(D=>D.flags&402784252?0:-1);for(let[D,J]of c){let V=!1;for(let Q=0;Q<h.length;Q++)if(v[Q]){let ue=se(h[Q],J);ue&&Pm(D(),Fe=>!!_(Fe,ue))?V=!0:v[Q]=3}for(let Q=0;Q<h.length;Q++)v[Q]===3&&(v[Q]=V?0:-1)}let T=Ta(v,0)?Fi(h.filter((D,J)=>v[J]),0):r;return T.flags&131072?r:T}function ICe(r){if(r.flags&524288){let c=ph(r);return c.callSignatures.length===0&&c.constructSignatures.length===0&&c.indexInfos.length===0&&c.properties.length>0&&sn(c.properties,_=>!!(_.flags&16777216))}return r.flags&33554432?ICe(r.baseType):r.flags&2097152?sn(r.types,ICe):!1}function HGt(r,c,_){for(let h of oc(r))if(tse(c,h.escapedName,_))return!0;return!1}function FCe(r){return r===Fs||r===Io||r.objectFlags&8?W:mtt(r.symbol,r.typeParameters)}function dtt(r){return mtt(r,Fa(r).typeParameters)}function mtt(r,c=ce){var _,h;let v=Fa(r);if(!v.variances){(_=Fn)==null||_.push(Fn.Phase.CheckTypes,"getVariancesWorker",{arity:c.length,id:ap(zc(r))});let T=oT,D=Q1;oT||(oT=!0,Q1=By.length),v.variances=ce;let J=[];for(let V of c){let Q=MCe(V),ue=Q&16384?Q&8192?0:1:Q&8192?2:void 0;if(ue===void 0){let Fe=!1,De=!1,_t=us;us=Dr=>Dr?De=!0:Fe=!0;let Nt=pV(r,V,tl),zt=pV(r,V,Pl);ue=(qs(zt,Nt)?1:0)|(qs(Nt,zt)?2:0),ue===3&&qs(pV(r,V,B),Nt)&&(ue=4),us=_t,(Fe||De)&&(Fe&&(ue|=8),De&&(ue|=16))}J.push(ue)}T||(oT=!1,Q1=D),v.variances=J,(h=Fn)==null||h.pop({variances:J.map(I.formatVariance)})}return v.variances}function pV(r,c,_){let h=Iw(c,_),v=zc(r);if(et(v))return v;let T=r.flags&524288?e6(r,tv(Fa(r).typeParameters,h)):Z0(v,tv(v.typeParameters,h));return wt.add(ap(T)),T}function vae(r){return wt.has(ap(r))}function MCe(r){var c;return Qu((c=r.symbol)==null?void 0:c.declarations,(_,h)=>_|gf(h),0)&28672}function GGt(r,c){for(let _=0;_<c.length;_++)if((c[_]&7)===1&&r[_].flags&16384)return!0;return!1}function KGt(r){return r.flags&262144&&!Wf(r)}function QGt(r){return!!(oi(r)&4)&&!r.node}function bae(r){return QGt(r)&&Pt($c(r),c=>!!(c.flags&262144)||bae(c))}function XGt(r,c,_,h){let v=[],T="",D=V(r,0),J=V(c,0);return`${T}${D},${J}${_}`;function V(Q,ue=0){let Fe=""+Q.target.id;for(let De of $c(Q)){if(De.flags&262144){if(h||KGt(De)){let _t=v.indexOf(De);_t<0&&(_t=v.length,v.push(De)),Fe+="="+_t;continue}T="*"}else if(ue<4&&bae(De)){Fe+="<"+V(De,ue+1)+">";continue}Fe+="-"+De.id}return Fe}}function xae(r,c,_,h,v){if(h===td&&r.id>c.id){let D=r;r=c,c=D}let T=_?":"+_:"";return bae(r)&&bae(c)?XGt(r,c,T,v):`${r.id},${c.id}${T}`}function fV(r,c){if(Tl(r)&6){for(let _ of r.links.containingType.types){let h=io(_,r.escapedName),v=h&&fV(h,c);if(v)return v}return}return c(r)}function zD(r){return r.parent&&r.parent.flags&32?zc(w_(r)):void 0}function Sae(r){let c=zD(r),_=c&&Fu(c)[0];return _&&fu(_,r.escapedName)}function YGt(r,c){return fV(r,_=>{let h=zD(_);return h?GA(h,c):!1})}function ZGt(r,c){return!fV(c,_=>fm(_)&4?!YGt(r,zD(_)):!1)}function gtt(r,c,_){return fV(c,h=>fm(h,_)&4?!GA(r,zD(h)):!1)?void 0:r}function WD(r,c,_,h=3){if(_>=h){if((oi(r)&96)===96&&(r=htt(r)),r.flags&2097152)return Pt(r.types,J=>WD(J,c,_,h));let v=Tae(r),T=0,D=0;for(let J=0;J<_;J++){let V=c[J];if(ytt(V,v)){if(V.id>=D&&(T++,T>=h))return!0;D=V.id}}}return!1}function htt(r){let c;for(;(oi(r)&96)===96&&(c=Cw(r))&&(c.symbol||c.flags&2097152&&Pt(c.types,_=>!!_.symbol));)r=c;return r}function ytt(r,c){return(oi(r)&96)===96&&(r=htt(r)),r.flags&2097152?Pt(r.types,_=>ytt(_,c)):Tae(r)===c}function Tae(r){if(r.flags&524288&&!ZCe(r)){if(oi(r)&4&&r.node)return r.node;if(r.symbol&&!(oi(r)&16&&r.symbol.flags&32))return r.symbol;if(Oo(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function eKt(r,c){return RCe(r,c,Lj)!==0}function RCe(r,c,_){if(r===c)return-1;let h=fm(r)&6,v=fm(c)&6;if(h!==v)return 0;if(h){if(d6(r)!==d6(c))return 0}else if((r.flags&16777216)!==(c.flags&16777216))return 0;return gh(r)!==gh(c)?0:_(An(r),An(c))}function tKt(r,c,_){let h=D_(r),v=D_(c),T=mh(r),D=mh(c),J=nv(r),V=nv(c);return!!(h===v&&T===D&&J===V||_&&T<=D)}function _V(r,c,_,h,v,T){if(r===c)return-1;if(!tKt(r,c,_)||Re(r.typeParameters)!==Re(c.typeParameters))return 0;if(c.typeParameters){let V=P_(r.typeParameters,c.typeParameters);for(let Q=0;Q<c.typeParameters.length;Q++){let ue=r.typeParameters[Q],Fe=c.typeParameters[Q];if(!(ue===Fe||T(Ma(S8(ue),V)||qt,S8(Fe)||qt)&&T(Ma(Ew(ue),V)||qt,Ew(Fe)||qt)))return 0}r=Mw(r,V,!0)}let D=-1;if(!h){let V=NT(r);if(V){let Q=NT(c);if(Q){let ue=T(V,Q);if(!ue)return 0;D&=ue}}}let J=D_(c);for(let V=0;V<J;V++){let Q=dh(r,V),ue=dh(c,V),Fe=T(ue,Q);if(!Fe)return 0;D&=Fe}if(!v){let V=Tm(r),Q=Tm(c);D&=V||Q?rKt(V,Q,T):T(Yo(r),Yo(c))}return D}function rKt(r,c,_){return r&&c&&cCe(r,c)?r.type===c.type?-1:r.type&&c.type?_(r.type,c.type):0:0}function nKt(r){let c;for(let _ of r)if(!(_.flags&131072)){let h=i1(_);if(c??(c=h),h===_||h!==c)return!1}return!0}function vtt(r){return Qu(r,(c,_)=>c|(_.flags&1048576?vtt(_.types):_.flags),0)}function iKt(r){if(r.length===1)return r[0];let c=fe?ia(r,h=>_u(h,v=>!(v.flags&98304))):r,_=nKt(c)?Fi(c):Qu(c,(h,v)=>Rw(h,v)?v:h);return c===r?_:gV(_,vtt(r)&98304)}function aKt(r){return Qu(r,(c,_)=>Rw(_,c)?_:c)}function km(r){return!!(oi(r)&4)&&(r.target===Fs||r.target===Io)}function C8(r){return!!(oi(r)&4)&&r.target===Io}function MT(r){return km(r)||Oo(r)}function dV(r){return km(r)&&!C8(r)||Oo(r)&&!r.target.readonly}function mV(r){return km(r)?$c(r)[0]:void 0}function bb(r){return km(r)||!(r.flags&98304)&&qs(r,Y_)}function jCe(r){return dV(r)||!(r.flags&98305)&&qs(r,Nu)}function LCe(r){if(!(oi(r)&4)||!(oi(r.target)&3))return;if(oi(r)&33554432)return oi(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;let c=r.target;if(oi(c)&1){let v=na(c);if(v&&v.expression.kind!==80&&v.expression.kind!==211)return}let _=Fu(c);if(_.length!==1||Xy(r.symbol).size)return;let h=Re(c.typeParameters)?Ma(_[0],P_(c.typeParameters,$c(r).slice(0,c.typeParameters.length))):_[0];return Re($c(r))>Re(c.typeParameters)&&(h=id(h,ao($c(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=h}function btt(r){return fe?r===Mr:r===$}function wae(r){let c=mV(r);return!!c&&btt(c)}function P8(r){let c;return Oo(r)||!!io(r,"0")||bb(r)&&!!(c=fu(r,"length"))&&E_(c,_=>!!(_.flags&256))}function kae(r){return bb(r)||P8(r)}function xtt(r,c){let _=fu(r,""+c);if(_)return _;if(E_(r,Oo))return ktt(r,c,z.noUncheckedIndexedAccess?ke:void 0)}function sKt(r){return!(r.flags&240544)}function fh(r){return!!(r.flags&109472)}function Stt(r){let c=py(r);return c.flags&2097152?Pt(c.types,fh):fh(c)}function oKt(r){return r.flags&2097152&&Ir(r.types,fh)||r}function Jj(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:sn(r.types,fh):fh(r)}function i1(r){return r.flags&1056?Uie(r):r.flags&402653312?kt:r.flags&256?dr:r.flags&2048?kn:r.flags&512?cr:r.flags&1048576?cKt(r):r}function cKt(r){let c=`B${ap(r)}`;return th(c)??Jx(c,ol(r,i1))}function BCe(r){return r.flags&402653312?kt:r.flags&288?dr:r.flags&2048?kn:r.flags&512?cr:r.flags&1048576?ol(r,BCe):r}function RT(r){return r.flags&1056&&Aw(r)?Uie(r):r.flags&128&&Aw(r)?kt:r.flags&256&&Aw(r)?dr:r.flags&2048&&Aw(r)?kn:r.flags&512&&Aw(r)?cr:r.flags&1048576?ol(r,RT):r}function Ttt(r){return r.flags&8192?er:r.flags&1048576?ol(r,Ttt):r}function qCe(r,c){return hse(r,c)||(r=Ttt(RT(r))),Cf(r)}function lKt(r,c,_){if(r&&fh(r)){let h=c?_?lL(c):c:void 0;r=qCe(r,h)}return r}function JCe(r,c,_,h){if(r&&fh(r)){let v=c?Tb(_,c,h):void 0;r=qCe(r,v)}return r}function Oo(r){return!!(oi(r)&4&&r.target.objectFlags&8)}function rS(r){return Oo(r)&&!!(r.target.combinedFlags&8)}function wtt(r){return rS(r)&&r.target.elementFlags.length===1}function Cae(r){return E8(r,r.target.fixedLength)}function ktt(r,c,_){return ol(r,h=>{let v=h,T=Cae(v);return T?_&&c>=sCe(v.target)?Fi([T,_]):T:ke})}function uKt(r){let c=Cae(r);return c&&Up(c)}function E8(r,c,_=0,h=!1,v=!1){let T=yb(r)-_;if(c<T){let D=$c(r),J=[];for(let V=c;V<T;V++){let Q=D[V];J.push(r.target.elementFlags[V]&8?C_(Q,dr):Q)}return h?_o(J):Fi(J,v?0:1)}}function pKt(r,c){return yb(r)===yb(c)&&sn(r.target.elementFlags,(_,h)=>(_&12)===(c.target.elementFlags[h]&12))}function Ctt({value:r}){return r.base10Value==="0"}function Ptt(r){return _u(r,c=>_h(c,4194304))}function fKt(r){return ol(r,_Kt)}function _Kt(r){return r.flags&4?ed:r.flags&8?Ly:r.flags&64?wg:r===yn||r===Kr||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&Ctt(r)?r:Pr}function gV(r,c){let _=c&~r.flags&98304;return _===0?r:Fi(_===32768?[r,ke]:_===65536?[r,rr]:[r,ke,rr])}function nS(r,c=!1){I.assert(fe);let _=c?re:ke;return r===_||r.flags&1048576&&r.types[0]===_?r:Fi([r,_])}function dKt(r){return qf||(qf=r6("NonNullable",524288,void 0)||oe),qf!==oe?e6(qf,[r]):_o([r,Ro])}function a1(r){return fe?WC(r,2097152):r}function Ett(r){return fe?Fi([r,Ft]):r}function Pae(r){return fe?Lae(r,Ft):r}function Eae(r,c,_){return _?$I(c)?nS(r):Ett(r):r}function zj(r,c){return fq(c)?a1(r):Kp(c)?Pae(r):r}function s1(r,c){return Ne&&c?Lae(r,Ke):r}function Wj(r){return r===Ke||!!(r.flags&1048576)&&r.types[0]===Ke}function Dae(r){return Ne?Lae(r,Ke):Cm(r,524288)}function mKt(r,c){return(r.flags&524)!==0&&(c.flags&28)!==0}function Oae(r){let c=oi(r);return r.flags&2097152?sn(r.types,Oae):!!(r.symbol&&r.symbol.flags&7040&&!(r.symbol.flags&32)&&!Rse(r))||!!(c&4194304)||!!(c&1024&&Oae(r.source))}function qC(r,c){let _=fo(r.flags,r.escapedName,Tl(r)&8);_.declarations=r.declarations,_.parent=r.parent,_.links.type=c,_.links.target=r,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration);let h=Fa(r).nameType;return h&&(_.links.nameType=h),_}function gKt(r,c){let _=Qs();for(let h of gb(r)){let v=An(h),T=c(v);_.set(h.escapedName,T===v?h:qC(h,T))}return _}function Uj(r){if(!(xb(r)&&oi(r)&8192))return r;let c=r.regularType;if(c)return c;let _=r,h=gKt(r,Uj),v=rl(_.symbol,h,_.callSignatures,_.constructSignatures,_.indexInfos);return v.flags=_.flags,v.objectFlags|=_.objectFlags&-8193,r.regularType=v,v}function Dtt(r,c,_){return{parent:r,propertyName:c,siblings:_,resolvedProperties:void 0}}function Ott(r){if(!r.siblings){let c=[];for(let _ of Ott(r.parent))if(xb(_)){let h=Pw(_,r.propertyName);h&&UC(An(h),v=>{c.push(v)})}r.siblings=c}return r.siblings}function hKt(r){if(!r.resolvedProperties){let c=new Map;for(let _ of Ott(r))if(xb(_)&&!(oi(_)&2097152))for(let h of oc(_))c.set(h.escapedName,h);r.resolvedProperties=Ka(c.values())}return r.resolvedProperties}function yKt(r,c){if(!(r.flags&4))return r;let _=An(r),h=c&&Dtt(c,r.escapedName,void 0),v=zCe(_,h);return v===_?r:qC(r,v)}function vKt(r){let c=he.get(r.escapedName);if(c)return c;let _=qC(r,re);return _.flags|=16777216,he.set(r.escapedName,_),_}function bKt(r,c){let _=Qs();for(let v of gb(r))_.set(v.escapedName,yKt(v,c));if(c)for(let v of hKt(c))_.has(v.escapedName)||_.set(v.escapedName,vKt(v));let h=rl(r.symbol,_,ce,ce,ia(Wp(r),v=>a0(v.keyType,ad(v.type),v.isReadonly,v.declaration,v.components)));return h.objectFlags|=oi(r)&266240,h}function ad(r){return zCe(r,void 0)}function zCe(r,c){if(oi(r)&196608){if(c===void 0&&r.widened)return r.widened;let _;if(r.flags&98305)_=Qe;else if(xb(r))_=bKt(r,c);else if(r.flags&1048576){let h=c||Dtt(void 0,void 0,r.types),v=ia(r.types,T=>T.flags&98304?T:zCe(T,h));_=Fi(v,Pt(v,n1)?2:1)}else r.flags&2097152?_=_o(ia(r.types,ad)):MT(r)&&(_=Z0(r.target,ia($c(r),ad)));return _&&c===void 0&&(r.widened=_),_||r}return r}function Nae(r){var c;let _=!1;if(oi(r)&65536){if(r.flags&1048576)if(Pt(r.types,n1))_=!0;else for(let h of r.types)_||(_=Nae(h));else if(MT(r))for(let h of $c(r))_||(_=Nae(h));else if(xb(r))for(let h of gb(r)){let v=An(h);if(oi(v)&65536&&(_=Nae(v),!_)){let T=(c=h.declarations)==null?void 0:c.find(D=>{var J;return((J=D.symbol.valueDeclaration)==null?void 0:J.parent)===r.symbol.valueDeclaration});T&&(ot(T,y.Object_literal_s_property_0_implicitly_has_an_1_type,ja(h),Pn(ad(v))),_=!0)}}}return _}function jT(r,c,_){let h=Pn(ad(c));if(jn(r)&&!F4(rn(r),z))return;let v;switch(r.kind){case 226:case 172:case 171:v=Pe?y.Member_0_implicitly_has_an_1_type:y.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let T=r;if(Ye(T.name)){let D=mk(T.name);if((xE(T.parent)||yg(T.parent)||Iy(T.parent))&&T.parent.parameters.includes(T)&&(Ct(T,T.name.escapedText,788968,void 0,!0)||D&&hX(D))){let J="arg"+T.parent.parameters.indexOf(T),V=Oc(T.name)+(T.dotDotDotToken?"[]":"");rh(Pe,r,y.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,J,V);return}}v=r.dotDotDotToken?Pe?y.Rest_parameter_0_implicitly_has_an_any_type:y.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Pe?y.Parameter_0_implicitly_has_an_1_type:y.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(v=y.Binding_element_0_implicitly_has_an_1_type,!Pe)return;break;case 317:ot(r,y.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,h);return;case 323:Pe&&BN(r.parent)&&ot(r.parent.tagName,y.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,h);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Pe&&!r.name){_===3?ot(r,y.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,h):ot(r,y.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,h);return}v=Pe?_===3?y._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:y._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:y._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Pe&&ot(r,y.Mapped_object_type_implicitly_has_an_any_template_type);return;default:v=Pe?y.Variable_0_implicitly_has_an_1_type:y.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}rh(Pe,r,v,Oc(ls(r)),h)}function xKt(r,c){let _=DPe(r);if(!_)return!0;let h=Yo(_),v=eu(r);switch(c){case 1:return v&1?h=Tb(1,h,!!(v&2))??h:v&2&&(h=l1(h)??h),IT(h);case 3:let T=Tb(0,h,!!(v&2));return!!T&&IT(T);case 2:let D=Tb(2,h,!!(v&2));return!!D&&IT(D)}return!1}function Aae(r,c,_){n(()=>{Pe&&oi(c)&65536&&(!_||Dc(r)&&xKt(r,_))&&(Nae(c)||jT(r,c,_))})}function WCe(r,c,_){let h=D_(r),v=D_(c),T=rL(r),D=rL(c),J=D?v-1:v,V=T?J:Math.min(h,J),Q=NT(r);if(Q){let ue=NT(c);ue&&_(Q,ue)}for(let ue=0;ue<V;ue++)_(dh(r,ue),dh(c,ue));D&&_(zV(r,V,AC(D)&&!Pm(D,jCe)),D)}function UCe(r,c,_){let h=Tm(c);if(h){let T=Tm(r);if(T&&cCe(T,h)&&T.type&&h.type){_(T.type,h.type);return}}let v=Yo(c);iS(v)&&_(Yo(r),v)}function $j(r,c,_,h){return $Ce(r.map(HCe),c,_,h||CCe)}function SKt(r,c=0){return r&&$Ce(Dt(r.inferences,Ntt),r.signature,r.flags|c,r.compareTypes)}function $Ce(r,c,_,h){let v={inferences:r,signature:c,flags:_,compareTypes:h,mapper:Kc,nonFixingMapper:Kc};return v.mapper=TKt(v),v.nonFixingMapper=wKt(v),v}function TKt(r){return SCe(Dt(r.inferences,c=>c.typeParameter),Dt(r.inferences,(c,_)=>()=>(c.isFixed||(kKt(r),Iae(r.inferences),c.isFixed=!0),ePe(r,_))))}function wKt(r){return SCe(Dt(r.inferences,c=>c.typeParameter),Dt(r.inferences,(c,_)=>()=>ePe(r,_)))}function Iae(r){for(let c of r)c.isFixed||(c.inferredType=void 0)}function VCe(r,c,_){(r.intraExpressionInferenceSites??(r.intraExpressionInferenceSites=[])).push({node:c,type:_})}function kKt(r){if(r.intraExpressionInferenceSites){for(let{node:c,type:_}of r.intraExpressionInferenceSites){let h=c.kind===174?Mrt(c,2):Uf(c,2);h&&o1(r.inferences,_,h)}r.intraExpressionInferenceSites=void 0}}function HCe(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Ntt(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function CKt(r){let c=Cn(r.inferences,_6);return c.length?$Ce(Dt(c,Ntt),r.signature,r.flags,r.compareTypes):void 0}function GCe(r){return r&&r.mapper}function iS(r){let c=oi(r);if(c&524288)return!!(c&1048576);let _=!!(r.flags&465829888||r.flags&524288&&!Att(r)&&(c&4&&(r.node||Pt($c(r),iS))||c&134217728&&Re(r.outerTypeParameters)||c&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||c&12583968)||r.flags&3145728&&!(r.flags&1024)&&!Att(r)&&Pt(r.types,iS));return r.flags&3899393&&(r.objectFlags|=524288|(_?1048576:0)),_}function Att(r){if(r.aliasSymbol&&!r.aliasTypeArguments){let c=Zc(r.aliasSymbol,265);return!!(c&&Br(c.parent,_=>_.kind===307?!0:_.kind===267?!1:"quit"))}return!1}function Vj(r,c,_=0){return!!(r===c||r.flags&3145728&&Pt(r.types,h=>Vj(h,c,_))||_<3&&r.flags&16777216&&(Vj(eS(r),c,_+1)||Vj(tS(r),c,_+1)))}function PKt(r,c){let _=Tm(r);return _?!!_.type&&Vj(_.type,c):Vj(Yo(r),c)}function EKt(r){let c=Qs();UC(r,h=>{if(!(h.flags&128))return;let v=gl(h.value),T=fo(4,v);T.links.type=Qe,h.symbol&&(T.declarations=h.symbol.declarations,T.valueDeclaration=h.symbol.valueDeclaration),c.set(v,T)});let _=r.flags&4?[a0(kt,Ro,!1)]:ce;return rl(void 0,c,ce,ce,_)}function Itt(r,c,_){let h=r.id+","+c.id+","+_.id;if(X_.has(h))return X_.get(h);let v=DKt(r,c,_);return X_.set(h,v),v}function KCe(r){return!(oi(r)&262144)||xb(r)&&Pt(oc(r),c=>KCe(An(c)))||Oo(r)&&Pt(Ow(r),KCe)}function DKt(r,c,_){if(!(i0(r,kt)||oc(r).length!==0&&KCe(r)))return;if(km(r)){let v=Fae($c(r)[0],c,_);return v?Up(v,C8(r)):void 0}if(Oo(r)){let v=Dt(Ow(r),D=>Fae(D,c,_));if(!sn(v,D=>!!D))return;let T=Yy(c)&4?ia(r.target.elementFlags,D=>D&2?1:D):r.target.elementFlags;return ev(v,T,r.target.readonly,r.target.labeledElementDeclarations)}let h=Nr(1040,void 0);return h.source=r,h.mappedType=c,h.constraintType=_,h}function OKt(r){let c=Fa(r);return c.type||(c.type=Fae(r.links.propertyType,r.links.mappedType,r.links.constraintType)||qt),c.type}function NKt(r,c,_){let h=C_(_.type,uh(c)),v=Y0(c),T=HCe(h);return o1([T],r,v),Ftt(T)||qt}function Fae(r,c,_){let h=r.id+","+c.id+","+_.id;if(Gl.has(h))return Gl.get(h)||qt;uw.push(r),pw.push(c);let v=Y1;WD(r,uw,uw.length,2)&&(Y1|=1),WD(c,pw,pw.length,2)&&(Y1|=2);let T;return Y1!==3&&(T=NKt(r,c,_)),uw.pop(),pw.pop(),Y1=v,Gl.set(h,T),T}function*QCe(r,c,_,h){let v=oc(c);for(let T of v)if(!pZe(T)&&(_||!(T.flags&16777216||Tl(T)&48))){let D=io(r,T.escapedName);if(!D)yield T;else if(h){let J=An(T);if(J.flags&109472){let V=An(D);V.flags&1||Cf(V)===Cf(J)||(yield T)}}}}function XCe(r,c,_,h){return h1(QCe(r,c,_,h))}function AKt(r,c){return!(c.target.combinedFlags&8)&&c.target.minLength>r.target.minLength||!(c.target.combinedFlags&12)&&(!!(r.target.combinedFlags&12)||c.target.fixedLength<r.target.fixedLength)}function IKt(r,c){return Oo(r)&&Oo(c)?AKt(r,c):!!XCe(r,c,!1,!0)&&!!XCe(c,r,!1,!1)}function Ftt(r){return r.candidates?Fi(r.candidates,2):r.contraCandidates?_o(r.contraCandidates):void 0}function YCe(r){return!!Zn(r).skipDirectInference}function Mtt(r){return!!(r.symbol&&Pt(r.symbol.declarations,YCe))}function FKt(r,c){let _=r.texts[0],h=c.texts[0],v=r.texts[r.texts.length-1],T=c.texts[c.texts.length-1],D=Math.min(_.length,h.length),J=Math.min(v.length,T.length);return _.slice(0,D)!==h.slice(0,D)||v.slice(v.length-J)!==T.slice(T.length-J)}function Rtt(r,c){if(r==="")return!1;let _=+r;return isFinite(_)&&(!c||""+_===r)}function MKt(r){return nV(LX(r))}function Mae(r,c){if(c.flags&1)return!0;if(c.flags&134217732)return qs(r,c);if(c.flags&268435456){let _=[];for(;c.flags&268435456;)_.unshift(c.symbol),c=c.type;return Qu(_,(v,T)=>BD(T,v),r)===r&&Mae(r,c)}return!1}function jtt(r,c){if(c.flags&2097152)return sn(c.types,_=>_===Gs||jtt(r,_));if(c.flags&4||qs(r,c))return!0;if(r.flags&128){let _=r.value;return!!(c.flags&8&&Rtt(_,!1)||c.flags&64&&KJ(_,!1)||c.flags&98816&&_===c.intrinsicName||c.flags&268435456&&Mae(c_(_),c)||c.flags&134217728&&Rae(r,c))}if(r.flags&134217728){let _=r.texts;return _.length===2&&_[0]===""&&_[1]===""&&qs(r.types[0],c)}return!1}function Ltt(r,c){return r.flags&128?Btt([r.value],ce,c):r.flags&134217728?Rp(r.texts,c.texts)?Dt(r.types,(_,h)=>qs(py(_),py(c.types[h]))?_:RKt(_)):Btt(r.texts,r.types,c):void 0}function Rae(r,c){let _=Ltt(r,c);return!!_&&sn(_,(h,v)=>jtt(h,c.types[v]))}function RKt(r){return r.flags&402653317?r:FC(["",""],[r])}function Btt(r,c,_){let h=r.length-1,v=r[0],T=r[h],D=_.texts,J=D.length-1,V=D[0],Q=D[J];if(h===0&&v.length<V.length+Q.length||!v.startsWith(V)||!T.endsWith(Q))return;let ue=T.slice(0,T.length-Q.length),Fe=[],De=0,_t=V.length;for(let Dr=1;Dr<J;Dr++){let Tr=D[Dr];if(Tr.length>0){let En=De,xn=_t;for(;xn=Nt(En).indexOf(Tr,xn),!(xn>=0);){if(En++,En===r.length)return;xn=0}zt(En,xn),_t+=Tr.length}else if(_t<Nt(De).length)zt(De,_t+1);else if(De<h)zt(De+1,0);else return}return zt(h,Nt(h).length),Fe;function Nt(Dr){return Dr<h?r[Dr]:ue}function zt(Dr,Tr){let En=Dr===De?c_(Nt(Dr).slice(_t,Tr)):FC([r[De].slice(_t),...r.slice(De+1,Dr),Nt(Dr).slice(0,Tr)],c.slice(De,Dr));Fe.push(En),De=Dr,_t=Tr}}function jKt(r,c){return Oo(c)&&xtt(c,0)===C_(r,Dg(0))&&!fu(c,"1")}function o1(r,c,_,h=0,v=!1){let T=!1,D,J=2048,V,Q,ue,Fe=0;De(c,_);function De(en,Yr){if(!(!iS(Yr)||t6(Yr))){if(en===Rt||en===Xt){let oa=D;D=en,De(Yr,Yr),D=oa;return}if(en.aliasSymbol&&en.aliasSymbol===Yr.aliasSymbol){if(en.aliasTypeArguments){let oa=Fa(en.aliasSymbol).typeParameters,Sn=Zy(oa),Za=hb(en.aliasTypeArguments,oa,Sn,jn(en.aliasSymbol.valueDeclaration)),Fo=hb(Yr.aliasTypeArguments,oa,Sn,jn(en.aliasSymbol.valueDeclaration));En(Za,Fo,dtt(en.aliasSymbol))}return}if(en===Yr&&en.flags&3145728){for(let oa of en.types)De(oa,oa);return}if(Yr.flags&1048576){let[oa,Sn]=Tr(en.flags&1048576?en.types:[en],Yr.types,LKt),[Za,Fo]=Tr(oa,Sn,BKt);if(Fo.length===0)return;if(Yr=Fi(Fo),Za.length===0){_t(en,Yr,1);return}en=Fi(Za)}else if(Yr.flags&2097152&&!sn(Yr.types,lae)&&!(en.flags&1048576)){let[oa,Sn]=Tr(en.flags&2097152?en.types:[en],Yr.types,o0);if(oa.length===0||Sn.length===0)return;en=_o(oa),Yr=_o(Sn)}if(Yr.flags&41943040){if(t6(Yr))return;Yr=r1(Yr)}if(Yr.flags&8650752){if(Mtt(en))return;let oa=kr(Yr);if(oa){if(oi(en)&262144||en===In)return;if(!oa.isFixed){let Za=D||en;if(Za===Xt)return;if((oa.priority===void 0||h<oa.priority)&&(oa.candidates=void 0,oa.contraCandidates=void 0,oa.topLevel=!0,oa.priority=h),h===oa.priority){if(jKt(oa.typeParameter,Za))return;v&&!T?Ta(oa.contraCandidates,Za)||(oa.contraCandidates=Zr(oa.contraCandidates,Za),Iae(r)):Ta(oa.candidates,Za)||(oa.candidates=Zr(oa.candidates,Za),Iae(r))}!(h&128)&&Yr.flags&262144&&oa.topLevel&&!Vj(_,Yr)&&(oa.topLevel=!1,Iae(r))}J=Math.min(J,h);return}let Sn=t1(Yr,!1);if(Sn!==Yr)De(en,Sn);else if(Yr.flags&8388608){let Za=t1(Yr.indexType,!1);if(Za.flags&465829888){let Fo=Let(t1(Yr.objectType,!1),Za,!1);Fo&&Fo!==Yr&&De(en,Fo)}}}if(oi(en)&4&&oi(Yr)&4&&(en.target===Yr.target||km(en)&&km(Yr))&&!(en.node&&Yr.node))En($c(en),$c(Yr),FCe(en.target));else if(en.flags&4194304&&Yr.flags&4194304)xn(en.type,Yr.type);else if((Jj(en)||en.flags&4)&&Yr.flags&4194304){let oa=EKt(en);Nt(oa,Yr.type,256)}else if(en.flags&8388608&&Yr.flags&8388608)De(en.objectType,Yr.objectType),De(en.indexType,Yr.indexType);else if(en.flags&268435456&&Yr.flags&268435456)en.symbol===Yr.symbol&&De(en.type,Yr.type);else if(en.flags&33554432)De(en.baseType,Yr),_t(Kke(en),Yr,4);else if(Yr.flags&16777216)Dr(en,Yr,ri);else if(Yr.flags&3145728)ki(en,Yr.types,Yr.flags);else if(en.flags&1048576){let oa=en.types;for(let Sn of oa)De(Sn,Yr)}else if(Yr.flags&134217728)os(en,Yr);else{if(en=Eg(en),o_(en)&&o_(Yr)&&Dr(en,Yr,Ms),!(h&512&&en.flags&467927040)){let oa=kf(en);if(oa!==en&&!(oa.flags&2621440))return De(oa,Yr);en=oa}en.flags&2621440&&Dr(en,Yr,pc)}}}function _t(en,Yr,oa){let Sn=h;h|=oa,De(en,Yr),h=Sn}function Nt(en,Yr,oa){let Sn=h;h|=oa,xn(en,Yr),h=Sn}function zt(en,Yr,oa,Sn){let Za=h;h|=Sn,ki(en,Yr,oa),h=Za}function Dr(en,Yr,oa){let Sn=en.id+","+Yr.id,Za=V&&V.get(Sn);if(Za!==void 0){J=Math.min(J,Za);return}(V||(V=new Map)).set(Sn,-1);let Fo=J;J=2048;let Mc=Fe;(Q??(Q=[])).push(en),(ue??(ue=[])).push(Yr),WD(en,Q,Q.length,2)&&(Fe|=1),WD(Yr,ue,ue.length,2)&&(Fe|=2),Fe!==3?oa(en,Yr):J=-1,ue.pop(),Q.pop(),Fe=Mc,V.set(Sn,J),J=Math.min(J,Fo)}function Tr(en,Yr,oa){let Sn,Za;for(let Fo of Yr)for(let Mc of en)oa(Mc,Fo)&&(De(Mc,Fo),Sn=Mm(Sn,Mc),Za=Mm(Za,Fo));return[Sn?Cn(en,Fo=>!Ta(Sn,Fo)):en,Za?Cn(Yr,Fo=>!Ta(Za,Fo)):Yr]}function En(en,Yr,oa){let Sn=en.length<Yr.length?en.length:Yr.length;for(let Za=0;Za<Sn;Za++)Za<oa.length&&(oa[Za]&7)===2?xn(en[Za],Yr[Za]):De(en[Za],Yr[Za])}function xn(en,Yr){v=!v,De(en,Yr),v=!v}function Fr(en,Yr){te||h&1024?xn(en,Yr):De(en,Yr)}function kr(en){if(en.flags&8650752){for(let Yr of r)if(en===Yr.typeParameter)return Yr}}function Un(en){let Yr;for(let oa of en){let Sn=oa.flags&2097152&&Ir(oa.types,Za=>!!kr(Za));if(!Sn||Yr&&Sn!==Yr)return;Yr=Sn}return Yr}function ki(en,Yr,oa){let Sn=0;if(oa&1048576){let Za,Fo=en.flags&1048576?en.types:[en],Mc=new Array(Fo.length),du=!1;for(let Mo of Yr)if(kr(Mo))Za=Mo,Sn++;else for(let l_=0;l_<Fo.length;l_++){let nu=J;J=2048,De(Fo[l_],Mo),J===h&&(Mc[l_]=!0),du=du||J===-1,J=Math.min(J,nu)}if(Sn===0){let Mo=Un(Yr);Mo&&_t(en,Mo,1);return}if(Sn===1&&!du){let Mo=li(Fo,(l_,nu)=>Mc[nu]?void 0:l_);if(Mo.length){De(Fi(Mo),Za);return}}}else for(let Za of Yr)kr(Za)?Sn++:De(en,Za);if(oa&2097152?Sn===1:Sn>0)for(let Za of Yr)kr(Za)&&_t(en,Za,1)}function Pa(en,Yr,oa){if(oa.flags&1048576||oa.flags&2097152){let Sn=!1;for(let Za of oa.types)Sn=Pa(en,Yr,Za)||Sn;return Sn}if(oa.flags&4194304){let Sn=kr(oa.type);if(Sn&&!Sn.isFixed&&!Mtt(en)){let Za=Itt(en,Yr,oa);Za&&_t(Za,Sn.typeParameter,oi(en)&262144?16:8)}return!0}if(oa.flags&262144){_t(fy(en,en.pattern?2:0),oa,32);let Sn=NC(oa);if(Sn&&Pa(en,Yr,Sn))return!0;let Za=Dt(oc(en),An),Fo=Dt(Wp(en),Mc=>Mc!==ua?Mc.type:Pr);return De(Fi(ya(Za,Fo)),Y0(Yr)),!0}return!1}function ri(en,Yr){if(en.flags&16777216)De(en.checkType,Yr.checkType),De(en.extendsType,Yr.extendsType),De(eS(en),eS(Yr)),De(tS(en),tS(Yr));else{let oa=[eS(Yr),tS(Yr)];zt(en,oa,Yr.flags,v?64:0)}}function os(en,Yr){let oa=Ltt(en,Yr),Sn=Yr.types;if(oa||sn(Yr.texts,Za=>Za.length===0))for(let Za=0;Za<Sn.length;Za++){let Fo=oa?oa[Za]:Pr,Mc=Sn[Za];if(Fo.flags&128&&Mc.flags&8650752){let du=kr(Mc),Mo=du?Op(du.typeParameter):void 0;if(Mo&&!Ae(Mo)){let l_=Mo.flags&1048576?Mo.types:[Mo],nu=Qu(l_,(fl,xd)=>fl|xd.flags,0);if(!(nu&4)){let fl=Fo.value;nu&296&&!Rtt(fl,!0)&&(nu&=-297),nu&2112&&!KJ(fl,!0)&&(nu&=-2113);let xd=Qu(l_,(Jl,iu)=>iu.flags&nu?Jl.flags&4?Jl:iu.flags&4?Fo:Jl.flags&134217728?Jl:iu.flags&134217728&&Rae(Fo,iu)?Fo:Jl.flags&268435456?Jl:iu.flags&268435456&&fl===Fet(iu.symbol,fl)?Fo:Jl.flags&128?Jl:iu.flags&128&&iu.value===fl?iu:Jl.flags&8?Jl:iu.flags&8?Dg(+fl):Jl.flags&32?Jl:iu.flags&32?Dg(+fl):Jl.flags&256?Jl:iu.flags&256&&iu.value===+fl?iu:Jl.flags&64?Jl:iu.flags&64?MKt(fl):Jl.flags&2048?Jl:iu.flags&2048&&A2(iu.value)===fl?iu:Jl.flags&16?Jl:iu.flags&16?fl==="true"?yt:fl==="false"?Kr:cr:Jl.flags&512?Jl:iu.flags&512&&iu.intrinsicName===fl?iu:Jl.flags&32768?Jl:iu.flags&32768&&iu.intrinsicName===fl?iu:Jl.flags&65536?Jl:iu.flags&65536&&iu.intrinsicName===fl?iu:Jl:Jl,Pr);if(!(xd.flags&131072)){De(xd,Mc);continue}}}}De(Fo,Mc)}}function Ms(en,Yr){De($d(en),$d(Yr)),De(Y0(en),Y0(Yr));let oa=mb(en),Sn=mb(Yr);oa&&Sn&&De(oa,Sn)}function pc(en,Yr){var oa,Sn;if(oi(en)&4&&oi(Yr)&4&&(en.target===Yr.target||km(en)&&km(Yr))){En($c(en),$c(Yr),FCe(en.target));return}if(o_(en)&&o_(Yr)&&Ms(en,Yr),oi(Yr)&32&&!Yr.declaration.nameType){let Za=$d(Yr);if(Pa(en,Yr,Za))return}if(!IKt(en,Yr)){if(MT(en)){if(Oo(Yr)){let Za=yb(en),Fo=yb(Yr),Mc=$c(Yr),du=Yr.target.elementFlags;if(Oo(en)&&pKt(en,Yr)){for(let nu=0;nu<Fo;nu++)De($c(en)[nu],Mc[nu]);return}let Mo=Oo(en)?Math.min(en.target.fixedLength,Yr.target.fixedLength):0,l_=Math.min(Oo(en)?Aj(en.target,3):0,Yr.target.combinedFlags&12?Aj(Yr.target,3):0);for(let nu=0;nu<Mo;nu++)De($c(en)[nu],Mc[nu]);if(!Oo(en)||Za-Mo-l_===1&&en.target.elementFlags[Mo]&4){let nu=$c(en)[Mo];for(let fl=Mo;fl<Fo-l_;fl++)De(du[fl]&8?Up(nu):nu,Mc[fl])}else{let nu=Fo-Mo-l_;if(nu===2){if(du[Mo]&du[Mo+1]&8){let fl=kr(Mc[Mo]);fl&&fl.impliedArity!==void 0&&(De(k8(en,Mo,l_+Za-fl.impliedArity),Mc[Mo]),De(k8(en,Mo+fl.impliedArity,l_),Mc[Mo+1]))}else if(du[Mo]&8&&du[Mo+1]&4){let fl=(oa=kr(Mc[Mo]))==null?void 0:oa.typeParameter,xd=fl&&Op(fl);if(xd&&Oo(xd)&&!(xd.target.combinedFlags&12)){let Jl=xd.target.fixedLength;De(k8(en,Mo,Za-(Mo+Jl)),Mc[Mo]),De(E8(en,Mo+Jl,l_),Mc[Mo+1])}}else if(du[Mo]&4&&du[Mo+1]&8){let fl=(Sn=kr(Mc[Mo+1]))==null?void 0:Sn.typeParameter,xd=fl&&Op(fl);if(xd&&Oo(xd)&&!(xd.target.combinedFlags&12)){let Jl=xd.target.fixedLength,iu=Za-Aj(Yr.target,3),wb=iu-Jl,m6=ev($c(en).slice(wb,iu),en.target.elementFlags.slice(wb,iu),!1,en.target.labeledElementDeclarations&&en.target.labeledElementDeclarations.slice(wb,iu));De(E8(en,Mo,l_+Jl),Mc[Mo]),De(m6,Mc[Mo+1])}}}else if(nu===1&&du[Mo]&8){let fl=Yr.target.elementFlags[Fo-1]&2,xd=k8(en,Mo,l_);_t(xd,Mc[Mo],fl?2:0)}else if(nu===1&&du[Mo]&4){let fl=E8(en,Mo,l_);fl&&De(fl,Mc[Mo])}}for(let nu=0;nu<l_;nu++)De($c(en)[Za-nu-1],Mc[Fo-nu-1]);return}if(km(Yr)){bl(en,Yr);return}}bs(en,Yr),of(en,Yr,0),of(en,Yr,1),bl(en,Yr)}}function bs(en,Yr){let oa=gb(Yr);for(let Sn of oa){let Za=io(en,Sn.escapedName);Za&&!Pt(Za.declarations,YCe)&&De(s1(An(Za),!!(Za.flags&16777216)),s1(An(Sn),!!(Sn.flags&16777216)))}}function of(en,Yr,oa){let Sn=Ns(en,oa),Za=Sn.length;if(Za>0){let Fo=Ns(Yr,oa),Mc=Fo.length;for(let du=0;du<Mc;du++){let Mo=Math.max(Za-Mc+du,0);op(qVt(Sn[Mo]),Nj(Fo[du]))}}}function op(en,Yr){if(!(en.flags&64)){let oa=T,Sn=Yr.declaration?Yr.declaration.kind:0;T=T||Sn===174||Sn===173||Sn===176,WCe(en,Yr,Fr),T=oa}UCe(en,Yr,De)}function bl(en,Yr){let oa=oi(en)&oi(Yr)&32?8:0,Sn=Wp(Yr);if(Oae(en))for(let Za of Sn){let Fo=[];for(let Mc of oc(en))if(MD(LD(Mc,8576),Za.keyType)){let du=An(Mc);Fo.push(Mc.flags&16777216?Dae(du):du)}for(let Mc of Wp(en))MD(Mc.keyType,Za.keyType)&&Fo.push(Mc.type);Fo.length&&_t(Fi(Fo),Za.type,oa)}for(let Za of Sn){let Fo=Pj(en,Za.keyType);Fo&&_t(Fo.type,Za.type,oa)}}}function LKt(r,c){return c===Ke?r===c:o0(r,c)||!!(c.flags&4&&r.flags&128||c.flags&8&&r.flags&256)}function BKt(r,c){return!!(r.flags&524288&&c.flags&524288&&r.symbol&&r.symbol===c.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===c.aliasSymbol)}function qKt(r){let c=Wf(r);return!!c&&ql(c.flags&16777216?Ike(c):c,406978556)}function xb(r){return!!(oi(r)&128)}function ZCe(r){return!!(oi(r)&16512)}function JKt(r){if(r.length>1){let c=Cn(r,ZCe);if(c.length){let _=Fi(c,2);return ya(Cn(r,h=>!ZCe(h)),[_])}}return r}function zKt(r){return r.priority&416?_o(r.contraCandidates):aKt(r.contraCandidates)}function WKt(r,c){let _=JKt(r.candidates),h=qKt(r.typeParameter)||AC(r.typeParameter),v=!h&&r.topLevel&&(r.isFixed||!PKt(c,r.typeParameter)),T=h?ia(_,Cf):v?ia(_,RT):_,D=r.priority&416?Fi(T,2):iKt(T);return ad(D)}function ePe(r,c){let _=r.inferences[c];if(!_.inferredType){let h,v;if(r.signature){let D=_.candidates?WKt(_,r.signature):void 0,J=_.contraCandidates?zKt(_):void 0;if(D||J){let V=D&&(!J||!(D.flags&131073)&&Pt(_.contraCandidates,Q=>qs(D,Q))&&sn(r.inferences,Q=>Q!==_&&Wf(Q.typeParameter)!==_.typeParameter||sn(Q.candidates,ue=>qs(ue,D))));h=V?D:J,v=V?J:D}else if(r.flags&1)h=or;else{let V=Ew(_.typeParameter);V&&(h=Ma(V,hGt(gGt(r,c),r.nonFixingMapper)))}}else h=Ftt(_);_.inferredType=h||tPe(!!(r.flags&2));let T=Wf(_.typeParameter);if(T){let D=Ma(T,r.nonFixingMapper);(!h||!r.compareTypes(h,id(D,h)))&&(_.inferredType=v&&r.compareTypes(v,id(D,v))?v:D)}}return _.inferredType}function tPe(r){return r?Qe:qt}function rPe(r){let c=[];for(let _=0;_<r.inferences.length;_++)c.push(ePe(r,_));return c}function qtt(r){switch(r.escapedText){case"document":case"console":return y.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return z.types?y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return z.types?y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return z.types?y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return z.types?y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return y.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(Ls(r.parent))return y.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return r.parent.kind===304?y.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:y.Cannot_find_name_0}}function sf(r){let c=Zn(r);return c.resolvedSymbol||(c.resolvedSymbol=!Sl(r)&&Ct(r,r,1160127,qtt(r),!PJ(r),!1)||oe),c.resolvedSymbol}function nPe(r){return!!(r.flags&33554432||Br(r,c=>Cp(c)||Wm(c)||Ff(c)))}function hV(r,c,_,h){switch(r.kind){case 80:if(!P2(r)){let D=sf(r);return D!==oe?`${h?Wo(h):"-1"}|${ap(c)}|${ap(_)}|${co(D)}`:void 0}case 110:return`0|${h?Wo(h):"-1"}|${ap(c)}|${ap(_)}`;case 235:case 217:return hV(r.expression,c,_,h);case 166:let v=hV(r.left,c,_,h);return v&&`${v}.${r.right.escapedText}`;case 211:case 212:let T=JC(r);if(T!==void 0){let D=hV(r.expression,c,_,h);return D&&`${D}.${T}`}if(Nc(r)&&Ye(r.argumentExpression)){let D=sf(r.argumentExpression);if(UD(D)||Kj(D)&&!Gj(D)){let J=hV(r.expression,c,_,h);return J&&`${J}.@${co(D)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Wo(r)}#${ap(c)}`}}function vp(r,c){switch(c.kind){case 217:case 235:return vp(r,c.expression);case 226:return Yu(c)&&vp(r,c.left)||Vn(c)&&c.operatorToken.kind===28&&vp(r,c.right)}switch(r.kind){case 236:return c.kind===236&&r.keywordToken===c.keywordToken&&r.name.escapedText===c.name.escapedText;case 80:case 81:return P2(r)?c.kind===110:c.kind===80&&sf(r)===sf(c)||(Ui(c)||Do(c))&&k_(sf(r))===ei(c);case 110:return c.kind===110;case 108:return c.kind===108;case 235:case 217:case 238:return vp(r.expression,c);case 211:case 212:let _=JC(r);if(_!==void 0){let h=Lc(c)?JC(c):void 0;if(h!==void 0)return h===_&&vp(r.expression,c.expression)}if(Nc(r)&&Nc(c)&&Ye(r.argumentExpression)&&Ye(c.argumentExpression)){let h=sf(r.argumentExpression);if(h===sf(c.argumentExpression)&&(UD(h)||Kj(h)&&!Gj(h)))return vp(r.expression,c.expression)}break;case 166:return Lc(c)&&r.right.escapedText===JC(c)&&vp(r.left,c.expression);case 226:return Vn(r)&&r.operatorToken.kind===28&&vp(r.right,c)}return!1}function JC(r){if(ai(r))return r.name.escapedText;if(Nc(r))return UKt(r);if(Do(r)){let c=Ja(r);return c?gl(c):void 0}if(Da(r))return""+r.parent.parameters.indexOf(r)}function iPe(r){return r.flags&8192?r.escapedName:r.flags&384?gl(""+r.value):void 0}function UKt(r){return Dd(r.argumentExpression)?gl(r.argumentExpression.text):Tc(r.argumentExpression)?$Kt(r.argumentExpression):void 0}function $Kt(r){let c=Ol(r,111551,!0);if(!c||!(UD(c)||c.flags&8))return;let _=c.valueDeclaration;if(_===void 0)return;let h=ET(_);if(h){let v=iPe(h);if(v!==void 0)return v}if(xk(_)&&ry(_,r)){let v=c5(_);if(v){let T=Os(_.parent)?Cc(_):Ap(v);return T&&iPe(T)}if(L1(_))return VP(_.name)}}function Jtt(r,c){for(;Lc(r);)if(r=r.expression,vp(r,c))return!0;return!1}function zC(r,c){for(;Kp(r);)if(r=r.expression,vp(r,c))return!0;return!1}function D8(r,c){if(r&&r.flags&1048576){let _=FZe(r,c);if(_&&Tl(_)&2)return _.links.isDiscriminantProperty===void 0&&(_.links.isDiscriminantProperty=(_.links.checkFlags&192)===192&&!IT(An(_))),!!_.links.isDiscriminantProperty}return!1}function ztt(r,c){let _;for(let h of r)if(D8(c,h.escapedName)){if(_){_.push(h);continue}_=[h]}return _}function VKt(r,c){let _=new Map,h=0;for(let v of r)if(v.flags&61603840){let T=fu(v,c);if(T){if(!Jj(T))return;let D=!1;UC(T,J=>{let V=ap(Cf(J)),Q=_.get(V);Q?Q!==qt&&(_.set(V,qt),D=!0):_.set(V,v)}),D||h++}}return h>=10&&h*2>=r.length?_:void 0}function yV(r){let c=r.types;if(!(c.length<10||oi(r)&32768||Vu(c,_=>!!(_.flags&59506688))<10)){if(r.keyPropertyName===void 0){let _=Ge(c,v=>v.flags&59506688?Ge(oc(v),T=>fh(An(T))?T.escapedName:void 0):void 0),h=_&&VKt(c,_);r.keyPropertyName=h?_:"",r.constituentMap=h}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function vV(r,c){var _;let h=(_=r.constituentMap)==null?void 0:_.get(ap(Cf(c)));return h!==qt?h:void 0}function Wtt(r,c){let _=yV(r),h=_&&fu(c,_);return h&&vV(r,h)}function HKt(r,c){let _=yV(r),h=_&&Ir(c.properties,T=>T.symbol&&T.kind===303&&T.symbol.escapedName===_&&EV(T.initializer)),v=h&&GV(h.initializer);return v&&vV(r,v)}function Utt(r,c){return vp(r,c)||Jtt(r,c)}function $tt(r,c){if(r.arguments){for(let _ of r.arguments)if(Utt(c,_)||zC(_,c))return!0}return!!(r.expression.kind===211&&Utt(c,r.expression.expression))}function aPe(r){return r.id<=0&&(r.id=nBe,nBe++),r.id}function GKt(r,c){if(!(r.flags&1048576))return qs(r,c);for(let _ of r.types)if(qs(_,c))return!0;return!1}function KKt(r,c){if(r===c)return r;if(c.flags&131072)return c;let _=`A${ap(r)},${ap(c)}`;return th(_)??Jx(_,QKt(r,c))}function QKt(r,c){let _=_u(r,v=>GKt(c,v)),h=c.flags&512&&Aw(c)?ol(_,JD):_;return qs(c,h)?h:r}function sPe(r){if(oi(r)&256)return!1;let c=ph(r);return!!(c.callSignatures.length||c.constructSignatures.length||c.members.get("bind")&&Rw(r,nr))}function a6(r,c){return oPe(r,c)&c}function _h(r,c){return a6(r,c)!==0}function oPe(r,c){r.flags&467927040&&(r=Op(r)||qt);let _=r.flags;if(_&268435460)return fe?16317953:16776705;if(_&134217856){let h=_&128&&r.value==="";return fe?h?12123649:7929345:h?12582401:16776705}if(_&40)return fe?16317698:16776450;if(_&256){let h=r.value===0;return fe?h?12123394:7929090:h?12582146:16776450}if(_&64)return fe?16317188:16775940;if(_&2048){let h=Ctt(r);return fe?h?12122884:7928580:h?12581636:16775940}return _&16?fe?16316168:16774920:_&528?fe?r===Kr||r===yn?12121864:7927560:r===Kr||r===yn?12580616:16774920:_&524288?c&(fe?83427327:83886079)?oi(r)&16&&n1(r)?fe?83427327:83886079:sPe(r)?fe?7880640:16728e3:fe?7888800:16736160:0:_&16384?9830144:_&32768?26607360:_&65536?42917664:_&12288?fe?7925520:16772880:_&67108864?fe?7888800:16736160:_&131072?0:_&1048576?Qu(r.types,(h,v)=>h|oPe(v,c),0):_&2097152?XKt(r,c):83886079}function XKt(r,c){let _=ql(r,402784252),h=0,v=134217727;for(let T of r.types)if(!(_&&T.flags&524288)){let D=oPe(T,c);h|=D,v&=D}return h&8256|v&134209471}function Cm(r,c){return _u(r,_=>_h(_,c))}function WC(r,c){let _=cPe(Cm(fe&&r.flags&2?jo:r,c));if(fe)switch(c){case 524288:return Vtt(_,65536,131072,33554432,rr);case 1048576:return Vtt(_,131072,65536,16777216,ke);case 2097152:case 4194304:return ol(_,h=>_h(h,262144)?dKt(h):h)}return _}function Vtt(r,c,_,h,v){let T=a6(r,50528256);if(!(T&c))return r;let D=Fi([Ro,v]);return ol(r,J=>_h(J,c)?_o([J,!(T&h)&&_h(J,_)?D:Ro]):J)}function cPe(r){return r===jo?qt:r}function lPe(r,c){return c?Fi([bi(r),Ap(c)]):r}function Htt(r,c){var _;let h=e1(c);if(!_m(h))return ut;let v=dm(h);return fu(r,v)||Hj((_=RD(r,v))==null?void 0:_.type)||ut}function Gtt(r,c){return E_(r,P8)&&xtt(r,c)||Hj(Sb(65,r,ke,void 0))||ut}function Hj(r){return r&&(z.noUncheckedIndexedAccess?Fi([r,Ke]):r)}function Ktt(r){return Up(Sb(65,r,ke,void 0)||ut)}function YKt(r){return r.parent.kind===209&&uPe(r.parent)||r.parent.kind===303&&uPe(r.parent.parent)?lPe(bV(r),r.right):Ap(r.right)}function uPe(r){return r.parent.kind===226&&r.parent.left===r||r.parent.kind===250&&r.parent.initializer===r}function ZKt(r,c){return Gtt(bV(r),r.elements.indexOf(c))}function eQt(r){return Ktt(bV(r.parent))}function Qtt(r){return Htt(bV(r.parent),r.name)}function tQt(r){return lPe(Qtt(r),r.objectAssignmentInitializer)}function bV(r){let{parent:c}=r;switch(c.kind){case 249:return kt;case 250:return tH(c)||ut;case 226:return YKt(c);case 220:return ke;case 209:return ZKt(c,r);case 230:return eQt(c);case 303:return Qtt(c);case 304:return tQt(c)}return ut}function rQt(r){let c=r.parent,_=Ytt(c.parent),h=c.kind===206?Htt(_,r.propertyName||r.name):r.dotDotDotToken?Ktt(_):Gtt(_,c.elements.indexOf(r));return lPe(h,r.initializer)}function Xtt(r){return Zn(r).resolvedType||Ap(r)}function nQt(r){return r.initializer?Xtt(r.initializer):r.parent.parent.kind===249?kt:r.parent.parent.kind===250&&tH(r.parent.parent)||ut}function Ytt(r){return r.kind===260?nQt(r):rQt(r)}function iQt(r){return r.kind===260&&r.initializer&&Zm(r.initializer)||r.kind!==208&&r.parent.kind===226&&Zm(r.parent.right)}function Lw(r){switch(r.kind){case 217:return Lw(r.expression);case 226:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return Lw(r.left);case 28:return Lw(r.right)}}return r}function Ztt(r){let{parent:c}=r;return c.kind===217||c.kind===226&&c.operatorToken.kind===64&&c.left===r||c.kind===226&&c.operatorToken.kind===28&&c.right===r?Ztt(c):r}function aQt(r){return r.kind===296?Cf(Ap(r.expression)):Pr}function jae(r){let c=Zn(r);if(!c.switchTypes){c.switchTypes=[];for(let _ of r.caseBlock.clauses)c.switchTypes.push(aQt(_))}return c.switchTypes}function ert(r){if(Pt(r.caseBlock.clauses,_=>_.kind===296&&!Ho(_.expression)))return;let c=[];for(let _ of r.caseBlock.clauses){let h=_.kind===296?_.expression.text:void 0;c.push(h&&!Ta(c,h)?h:void 0)}return c}function sQt(r,c){return r.flags&1048576?!Ge(r.types,_=>!Ta(c,_)):Ta(c,r)}function O8(r,c){return!!(r===c||r.flags&131072||c.flags&1048576&&oQt(r,c))}function oQt(r,c){if(r.flags&1048576){for(let _ of r.types)if(!s0(c.types,_))return!1;return!0}return r.flags&1056&&Uie(r)===c?!0:s0(c.types,r)}function UC(r,c){return r.flags&1048576?Ge(r.types,c):c(r)}function Pm(r,c){return r.flags&1048576?Pt(r.types,c):c(r)}function E_(r,c){return r.flags&1048576?sn(r.types,c):c(r)}function cQt(r,c){return r.flags&3145728?sn(r.types,c):c(r)}function _u(r,c){if(r.flags&1048576){let _=r.types,h=Cn(_,c);if(h===_)return r;let v=r.origin,T;if(v&&v.flags&1048576){let D=v.types,J=Cn(D,V=>!!(V.flags&1048576)||c(V));if(D.length-J.length===_.length-h.length){if(J.length===1)return J[0];T=oCe(1048576,J)}}return lCe(h,r.objectFlags&16809984,void 0,void 0,T)}return r.flags&131072||c(r)?r:Pr}function Lae(r,c){return _u(r,_=>_!==c)}function lQt(r){return r.flags&1048576?r.types.length:1}function ol(r,c,_){if(r.flags&131072)return r;if(!(r.flags&1048576))return c(r);let h=r.origin,v=h&&h.flags&1048576?h.types:r.types,T,D=!1;for(let J of v){let V=J.flags&1048576?ol(J,c,_):c(J);D||(D=J!==V),V&&(T?T.push(V):T=[V])}return D?T&&Fi(T,_?0:1):r}function trt(r,c,_,h){return r.flags&1048576&&_?Fi(Dt(r.types,c),1,_,h):ol(r,c)}function N8(r,c){return _u(r,_=>(_.flags&c)!==0)}function rrt(r,c){return ql(r,134217804)&&ql(c,402655616)?ol(r,_=>_.flags&4?N8(c,402653316):MC(_)&&!ql(c,402653188)?N8(c,128):_.flags&8?N8(c,264):_.flags&64?N8(c,2112):_):r}function s6(r){return r.flags===0}function $C(r){return r.flags===0?r.type:r}function o6(r,c){return c?{flags:0,type:r.flags&131072?or:r}:r}function uQt(r){let c=Nr(256);return c.elementType=r,c}function pPe(r){return Qt[r.id]||(Qt[r.id]=uQt(r))}function nrt(r,c){let _=Uj(i1(GV(c)));return O8(_,r.elementType)?r:pPe(Fi([r.elementType,_]))}function pQt(r){return r.flags&131072?Au:Up(r.flags&1048576?Fi(r.types,2):r)}function fQt(r){return r.finalArrayType||(r.finalArrayType=pQt(r.elementType))}function xV(r){return oi(r)&256?fQt(r):r}function _Qt(r){return oi(r)&256?r.elementType:Pr}function dQt(r){let c=!1;for(let _ of r)if(!(_.flags&131072)){if(!(oi(_)&256))return!1;c=!0}return c}function irt(r){let c=Ztt(r),_=c.parent,h=ai(_)&&(_.name.escapedText==="length"||_.parent.kind===213&&Ye(_.name)&&qQ(_.name)),v=_.kind===212&&_.expression===c&&_.parent.kind===226&&_.parent.operatorToken.kind===64&&_.parent.left===_&&!mx(_.parent)&&Np(Ap(_.argumentExpression),296);return h||v}function mQt(r){return(Ui(r)||is(r)||vf(r)||Da(r))&&!!(hu(r)||jn(r)&&k1(r)&&r.initializer&&xx(r.initializer)&&dd(r.initializer))}function Bae(r,c){if(r=Dl(r),r.flags&8752)return An(r);if(r.flags&7){if(Tl(r)&262144){let h=r.links.syntheticOrigin;if(h&&Bae(h))return An(r)}let _=r.valueDeclaration;if(_){if(mQt(_))return An(r);if(Ui(_)&&_.parent.parent.kind===250){let h=_.parent.parent,v=SV(h.expression,void 0);if(v){let T=h.awaitModifier?15:13;return Sb(T,v,ke,void 0)}}c&&Hs(c,Mn(_,y._0_needs_an_explicit_type_annotation,ja(r)))}}}function SV(r,c){if(!(r.flags&67108864))switch(r.kind){case 80:let _=k_(sf(r));return Bae(_,c);case 110:return RQt(r);case 108:return $ae(r);case 211:{let h=SV(r.expression,c);if(h){let v=r.name,T;if(Ca(v)){if(!h.symbol)return;T=io(h,T5(h.symbol,v.escapedText))}else T=io(h,v.escapedText);return T&&Bae(T,c)}return}case 217:return SV(r.expression,c)}}function TV(r){let c=Zn(r),_=c.effectsSignature;if(_===void 0){let h;if(Vn(r)){let D=l6(r.right);h=fEe(D)}else r.parent.kind===244?h=SV(r.expression,void 0):r.expression.kind!==108&&(Kp(r)?h=dy(zj(Wa(r.expression),r.expression),r.expression):h=l6(r.expression));let v=Ns(h&&kf(h)||qt,0),T=v.length===1&&!v[0].typeParameters?v[0]:Pt(v,art)?p6(r):void 0;_=c.effectsSignature=T&&art(T)?T:wi}return _===wi?void 0:_}function art(r){return!!(Tm(r)||r.declaration&&(YA(r.declaration)||qt).flags&131072)}function gQt(r,c){if(r.kind===1||r.kind===3)return c.arguments[r.parameterIndex];let _=Qo(c.expression);return Lc(_)?Qo(_.expression):void 0}function hQt(r){let c=Br(r,WK),_=rn(r),h=Ch(_,c.statements.pos);Jo.add(Eu(_,h.start,h.length,y.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function wV(r){let c=qae(r,!1);return Gn=r,ln=c,c}function kV(r){let c=Qo(r,!0);return c.kind===97||c.kind===226&&(c.operatorToken.kind===56&&(kV(c.left)||kV(c.right))||c.operatorToken.kind===57&&kV(c.left)&&kV(c.right))}function qae(r,c){for(;;){if(r===Gn)return ln;let _=r.flags;if(_&4096){if(!c){let h=aPe(r),v=oD[h];return v!==void 0?v:oD[h]=qae(r,!0)}c=!1}if(_&368)r=r.antecedent;else if(_&512){let h=TV(r.node);if(h){let v=Tm(h);if(v&&v.kind===3&&!v.type){let T=r.node.arguments[v.parameterIndex];if(T&&kV(T))return!1}if(Yo(h).flags&131072)return!1}r=r.antecedent}else{if(_&4)return Pt(r.antecedent,h=>qae(h,!1));if(_&8){let h=r.antecedent;if(h===void 0||h.length===0)return!1;r=h[0]}else if(_&128){let h=r.node;if(h.clauseStart===h.clauseEnd&&Xnt(h.switchStatement))return!1;r=r.antecedent}else if(_&1024){Gn=void 0;let h=r.node.target,v=h.antecedent;h.antecedent=r.node.antecedents;let T=qae(r.antecedent,!1);return h.antecedent=v,T}else return!(_&1)}}}function Jae(r,c){for(;;){let _=r.flags;if(_&4096){if(!c){let h=aPe(r),v=mC[h];return v!==void 0?v:mC[h]=Jae(r,!0)}c=!1}if(_&496)r=r.antecedent;else if(_&512){if(r.node.expression.kind===108)return!0;r=r.antecedent}else{if(_&4)return sn(r.antecedent,h=>Jae(h,!1));if(_&8)r=r.antecedent[0];else if(_&1024){let h=r.node.target,v=h.antecedent;h.antecedent=r.node.antecedents;let T=Jae(r.antecedent,!1);return h.antecedent=v,T}else return!!(_&1)}}}function fPe(r){switch(r.kind){case 110:return!0;case 80:if(!P2(r)){let _=sf(r);return UD(_)||Kj(_)&&!Gj(_)||!!_.valueDeclaration&&Ic(_.valueDeclaration)}break;case 211:case 212:return fPe(r.expression)&&gh(Zn(r).resolvedSymbol||oe);case 206:case 207:let c=Nh(r.parent);return Da(c)||$ge(c)?!_Pe(c):Ui(c)&&hL(c)}return!1}function c1(r,c,_=c,h,v=(T=>(T=_i(r,pN))==null?void 0:T.flowNode)()){let T,D=!1,J=0;if(Er)return ut;if(!v)return c;hn++;let V=tr,Q=$C(De(v));tr=V;let ue=oi(Q)&256&&irt(r)?Au:xV(Q);if(ue===Wr||r.parent&&r.parent.kind===235&&!(ue.flags&131072)&&Cm(ue,2097152).flags&131072)return c;return ue;function Fe(){return D?T:(D=!0,T=hV(r,c,_,h))}function De(ir){var qr;if(J===2e3)return(qr=Fn)==null||qr.instant(Fn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ir.id}),Er=!0,hQt(r),ut;J++;let _n;for(;;){let Dn=ir.flags;if(Dn&4096){for(let Ie=V;Ie<tr;Ie++)if(FA[Ie]===ir)return J--,dC[Ie];_n=ir}let ni;if(Dn&16){if(ni=Nt(ir),!ni){ir=ir.antecedent;continue}}else if(Dn&512){if(ni=Dr(ir),!ni){ir=ir.antecedent;continue}}else if(Dn&96)ni=En(ir);else if(Dn&128)ni=xn(ir);else if(Dn&12){if(ir.antecedent.length===1){ir=ir.antecedent[0];continue}ni=Dn&4?Fr(ir):kr(ir)}else if(Dn&256){if(ni=Tr(ir),!ni){ir=ir.antecedent;continue}}else if(Dn&1024){let Ie=ir.node.target,be=Ie.antecedent;Ie.antecedent=ir.node.antecedents,ni=De(ir.antecedent),Ie.antecedent=be}else if(Dn&2){let Ie=ir.node;if(Ie&&Ie!==h&&r.kind!==211&&r.kind!==212&&!(r.kind===110&&Ie.kind!==219)){ir=Ie.flowNode;continue}ni=_}else ni=_L(c);return _n&&(FA[tr]=_n,dC[tr]=ni,tr++),J--,ni}}function _t(ir){let qr=ir.node;return dPe(qr.kind===260||qr.kind===208?Ytt(qr):bV(qr),r)}function Nt(ir){let qr=ir.node;if(vp(r,qr)){if(!wV(ir))return Wr;if(dx(qr)===2){let Dn=De(ir.antecedent);return o6(i1($C(Dn)),s6(Dn))}if(c===Lt||c===Au){if(iQt(qr))return pPe(Pr);let Dn=RT(_t(ir));return qs(Dn,c)?Dn:Nu}let _n=AQ(qr)?i1(c):c;return _n.flags&1048576?KKt(_n,_t(ir)):_n}if(Jtt(r,qr)){if(!wV(ir))return Wr;if(Ui(qr)&&(jn(qr)||hL(qr))){let _n=l4(qr);if(_n&&(_n.kind===218||_n.kind===219))return De(ir.antecedent)}return c}if(Ui(qr)&&qr.parent.parent.kind===249&&(vp(r,qr.parent.parent.expression)||zC(qr.parent.parent.expression,r)))return MPe(xV($C(De(ir.antecedent))))}function zt(ir,qr){let _n=Qo(qr,!0);if(_n.kind===97)return Wr;if(_n.kind===226){if(_n.operatorToken.kind===56)return zt(zt(ir,_n.left),_n.right);if(_n.operatorToken.kind===57)return Fi([zt(ir,_n.left),zt(ir,_n.right)])}return Sd(ir,_n,!0)}function Dr(ir){let qr=TV(ir.node);if(qr){let _n=Tm(qr);if(_n&&(_n.kind===2||_n.kind===3)){let Dn=De(ir.antecedent),ni=xV($C(Dn)),Ie=_n.type?yL(ni,_n,ir.node,!0):_n.kind===3&&_n.parameterIndex>=0&&_n.parameterIndex<ir.node.arguments.length?zt(ni,ir.node.arguments[_n.parameterIndex]):ni;return Ie===ni?Dn:o6(Ie,s6(Dn))}if(Yo(qr).flags&131072)return Wr}}function Tr(ir){if(c===Lt||c===Au){let qr=ir.node,_n=qr.kind===213?qr.expression.expression:qr.left.expression;if(vp(r,Lw(_n))){let Dn=De(ir.antecedent),ni=$C(Dn);if(oi(ni)&256){let Ie=ni;if(qr.kind===213)for(let be of qr.arguments)Ie=nrt(Ie,be);else{let be=GV(qr.left.argumentExpression);Np(be,296)&&(Ie=nrt(Ie,qr.right))}return Ie===ni?Dn:o6(Ie,s6(Dn))}return Dn}}}function En(ir){let qr=De(ir.antecedent),_n=$C(qr);if(_n.flags&131072)return qr;let Dn=(ir.flags&32)!==0,ni=xV(_n),Ie=Sd(ni,ir.node,Dn);return Ie===ni?qr:o6(Ie,s6(qr))}function xn(ir){let qr=Qo(ir.node.switchStatement.expression),_n=De(ir.antecedent),Dn=$C(_n);if(vp(r,qr))Dn=Mc(Dn,ir.node);else if(qr.kind===221&&vp(r,qr.expression))Dn=l_(Dn,ir.node);else if(qr.kind===112)Dn=nu(Dn,ir.node);else{fe&&(zC(qr,r)?Dn=Fo(Dn,ir.node,Ie=>!(Ie.flags&163840)):qr.kind===221&&zC(qr.expression,r)&&(Dn=Fo(Dn,ir.node,Ie=>!(Ie.flags&131072||Ie.flags&128&&Ie.value==="undefined"))));let ni=Pa(qr,Dn);ni&&(Dn=Ms(Dn,ni,ir.node))}return o6(Dn,s6(_n))}function Fr(ir){let qr=[],_n=!1,Dn=!1,ni;for(let Ie of ir.antecedent){if(!ni&&Ie.flags&128&&Ie.node.clauseStart===Ie.node.clauseEnd){ni=Ie;continue}let be=De(Ie),Kt=$C(be);if(Kt===c&&c===_)return Kt;I_(qr,Kt),O8(Kt,_)||(_n=!0),s6(be)&&(Dn=!0)}if(ni){let Ie=De(ni),be=$C(Ie);if(!(be.flags&131072)&&!Ta(qr,be)&&!Xnt(ni.node.switchStatement)){if(be===c&&c===_)return be;qr.push(be),O8(be,_)||(_n=!0),s6(Ie)&&(Dn=!0)}}return o6(Un(qr,_n?2:1),Dn)}function kr(ir){let qr=aPe(ir),_n=IA[qr]||(IA[qr]=new Map),Dn=Fe();if(!Dn)return c;let ni=_n.get(Dn);if(ni)return ni;for(let Lr=tt;Lr<ht;Lr++)if(_C[Lr]===ir&&sD[Lr]===Dn&&lw[Lr].length)return o6(Un(lw[Lr],1),!0);let Ie=[],be=!1,Kt;for(let Lr of ir.antecedent){let un;if(!Kt)un=Kt=De(Lr);else{_C[ht]=ir,sD[ht]=Dn,lw[ht]=Ie,ht++;let $i=Hn;Hn=void 0,un=De(Lr),Hn=$i,ht--;let ra=_n.get(Dn);if(ra)return ra}let bn=$C(un);if(I_(Ie,bn),O8(bn,_)||(be=!0),bn===c)break}let sr=Un(Ie,be?2:1);return s6(Kt)?o6(sr,!0):(_n.set(Dn,sr),sr)}function Un(ir,qr){if(dQt(ir))return pPe(Fi(Dt(ir,_Qt)));let _n=cPe(Fi(ia(ir,xV),qr));return _n!==c&&_n.flags&c.flags&1048576&&Rp(_n.types,c.types)?c:_n}function ki(ir){if(Os(r)||xx(r)||Lm(r)){if(Ye(ir)){let _n=sf(ir).valueDeclaration;if(_n&&(Do(_n)||Da(_n))&&r===_n.parent&&!_n.initializer&&!_n.dotDotDotToken)return _n}}else if(Lc(ir)){if(vp(r,ir.expression))return ir}else if(Ye(ir)){let qr=sf(ir);if(UD(qr)){let _n=qr.valueDeclaration;if(Ui(_n)&&!_n.type&&_n.initializer&&Lc(_n.initializer)&&vp(r,_n.initializer.expression))return _n.initializer;if(Do(_n)&&!_n.initializer){let Dn=_n.parent.parent;if(Ui(Dn)&&!Dn.type&&Dn.initializer&&(Ye(Dn.initializer)||Lc(Dn.initializer))&&vp(r,Dn.initializer))return _n}}}}function Pa(ir,qr){if(c.flags&1048576||qr.flags&1048576){let _n=ki(ir);if(_n){let Dn=JC(_n);if(Dn){let ni=c.flags&1048576&&O8(qr,c)?c:qr;if(D8(ni,Dn))return _n}}}}function ri(ir,qr,_n){let Dn=JC(qr);if(Dn===void 0)return ir;let ni=Kp(qr),Ie=fe&&(ni||Hge(qr))&&ql(ir,98304),be=fu(Ie?Cm(ir,2097152):ir,Dn);if(!be)return ir;be=Ie&&ni?nS(be):be;let Kt=_n(be);return _u(ir,sr=>{let Lr=se(sr,Dn)||qt;return!(Lr.flags&131072)&&!(Kt.flags&131072)&&cV(Kt,Lr)})}function os(ir,qr,_n,Dn,ni){if((_n===37||_n===38)&&ir.flags&1048576){let Ie=yV(ir);if(Ie&&Ie===JC(qr)){let be=vV(ir,Ap(Dn));if(be)return _n===(ni?37:38)?be:fh(fu(be,Ie)||qt)?Lae(ir,be):ir}}return ri(ir,qr,Ie=>oa(Ie,_n,Dn,ni))}function Ms(ir,qr,_n){if(_n.clauseStart<_n.clauseEnd&&ir.flags&1048576&&yV(ir)===JC(qr)){let Dn=jae(_n.switchStatement).slice(_n.clauseStart,_n.clauseEnd),ni=Fi(Dt(Dn,Ie=>vV(ir,Ie)||qt));if(ni!==qt)return ni}return ri(ir,qr,Dn=>Mc(Dn,_n))}function pc(ir,qr,_n){if(vp(r,qr))return WC(ir,_n?4194304:8388608);fe&&_n&&zC(qr,r)&&(ir=WC(ir,2097152));let Dn=Pa(qr,ir);return Dn?ri(ir,Dn,ni=>Cm(ni,_n?4194304:8388608)):ir}function bs(ir,qr,_n){let Dn=io(ir,qr);return Dn?!!(Dn.flags&16777216||Tl(Dn)&48)||_n:!!RD(ir,qr)||!_n}function of(ir,qr,_n){let Dn=dm(qr);if(Pm(ir,Ie=>bs(Ie,Dn,!0)))return _u(ir,Ie=>bs(Ie,Dn,_n));if(_n){let Ie=vHt();if(Ie)return _o([ir,e6(Ie,[qr,qt])])}return ir}function op(ir,qr,_n,Dn,ni){return ni=ni!==(_n.kind===112)!=(Dn!==38&&Dn!==36),Sd(ir,qr,ni)}function bl(ir,qr,_n){switch(qr.operatorToken.kind){case 64:case 76:case 77:case 78:return pc(Sd(ir,qr.right,_n),qr.left,_n);case 35:case 36:case 37:case 38:let Dn=qr.operatorToken.kind,ni=Lw(qr.left),Ie=Lw(qr.right);if(ni.kind===221&&Ho(Ie))return Sn(ir,ni,Dn,Ie,_n);if(Ie.kind===221&&Ho(ni))return Sn(ir,Ie,Dn,ni,_n);if(vp(r,ni))return oa(ir,Dn,Ie,_n);if(vp(r,Ie))return oa(ir,Dn,ni,_n);fe&&(zC(ni,r)?ir=Yr(ir,Dn,Ie,_n):zC(Ie,r)&&(ir=Yr(ir,Dn,ni,_n)));let be=Pa(ni,ir);if(be)return os(ir,be,Dn,Ie,_n);let Kt=Pa(Ie,ir);if(Kt)return os(ir,Kt,Dn,ni,_n);if(fl(ni))return xd(ir,Dn,Ie,_n);if(fl(Ie))return xd(ir,Dn,ni,_n);if(QI(Ie)&&!Lc(ni))return op(ir,ni,Ie,Dn,_n);if(QI(ni)&&!Lc(Ie))return op(ir,Ie,ni,Dn,_n);break;case 104:return Jl(ir,qr,_n);case 103:if(Ca(qr.left))return en(ir,qr,_n);let sr=Lw(qr.right);if(Wj(ir)&&Lc(r)&&vp(r.expression,sr)){let Lr=Ap(qr.left);if(_m(Lr)&&JC(r)===dm(Lr))return Cm(ir,_n?524288:65536)}if(vp(r,sr)){let Lr=Ap(qr.left);if(_m(Lr))return of(ir,Lr,_n)}break;case 28:return Sd(ir,qr.right,_n);case 56:return _n?Sd(Sd(ir,qr.left,!0),qr.right,!0):Fi([Sd(ir,qr.left,!1),Sd(ir,qr.right,!1)]);case 57:return _n?Fi([Sd(ir,qr.left,!0),Sd(ir,qr.right,!0)]):Sd(Sd(ir,qr.left,!1),qr.right,!1)}return ir}function en(ir,qr,_n){let Dn=Lw(qr.right);if(!vp(r,Dn))return ir;I.assertNode(qr.left,Ca);let ni=nse(qr.left);if(ni===void 0)return ir;let Ie=ni.parent,be=Pu(I.checkDefined(ni.valueDeclaration,"should always have a declaration"))?An(Ie):zc(Ie);return wb(ir,be,_n,!0)}function Yr(ir,qr,_n,Dn){let ni=qr===35||qr===37,Ie=qr===35||qr===36?98304:32768,be=Ap(_n);return ni!==Dn&&E_(be,sr=>!!(sr.flags&Ie))||ni===Dn&&E_(be,sr=>!(sr.flags&(3|Ie)))?WC(ir,2097152):ir}function oa(ir,qr,_n,Dn){if(ir.flags&1)return ir;(qr===36||qr===38)&&(Dn=!Dn);let ni=Ap(_n),Ie=qr===35||qr===36;if(ni.flags&98304){if(!fe)return ir;let be=Ie?Dn?262144:2097152:ni.flags&65536?Dn?131072:1048576:Dn?65536:524288;return WC(ir,be)}if(Dn){if(!Ie&&(ir.flags&2||Pm(ir,rv))){if(ni.flags&469893116||rv(ni))return ni;if(ni.flags&524288)return $r}let be=_u(ir,Kt=>cV(Kt,ni)||Ie&&mKt(Kt,ni));return rrt(be,ni)}return fh(ni)?_u(ir,be=>!(Stt(be)&&cV(be,ni))):ir}function Sn(ir,qr,_n,Dn,ni){(_n===36||_n===38)&&(ni=!ni);let Ie=Lw(qr.expression);if(!vp(r,Ie)){fe&&zC(Ie,r)&&ni===(Dn.text!=="undefined")&&(ir=WC(ir,2097152));let be=Pa(Ie,ir);return be?ri(ir,be,Kt=>Za(Kt,Dn,ni)):ir}return Za(ir,Dn,ni)}function Za(ir,qr,_n){return _n?du(ir,qr.text):WC(ir,Sve.get(qr.text)||32768)}function Fo(ir,{switchStatement:qr,clauseStart:_n,clauseEnd:Dn},ni){return _n!==Dn&&sn(jae(qr).slice(_n,Dn),ni)?Cm(ir,2097152):ir}function Mc(ir,{switchStatement:qr,clauseStart:_n,clauseEnd:Dn}){let ni=jae(qr);if(!ni.length)return ir;let Ie=ni.slice(_n,Dn),be=_n===Dn||Ta(Ie,Pr);if(ir.flags&2&&!be){let un;for(let bn=0;bn<Ie.length;bn+=1){let $i=Ie[bn];if($i.flags&469893116)un!==void 0&&un.push($i);else if($i.flags&524288)un===void 0&&(un=Ie.slice(0,bn)),un.push($r);else return ir}return Fi(un===void 0?Ie:un)}let Kt=Fi(Ie),sr=Kt.flags&131072?Pr:rrt(_u(ir,un=>cV(Kt,un)),Kt);if(!be)return sr;let Lr=_u(ir,un=>!(Stt(un)&&Ta(ni,un.flags&32768?ke:Cf(oKt(un)))));return sr.flags&131072?Lr:Fi([sr,Lr])}function du(ir,qr){switch(qr){case"string":return Mo(ir,kt,1);case"number":return Mo(ir,dr,2);case"bigint":return Mo(ir,kn,4);case"boolean":return Mo(ir,cr,8);case"symbol":return Mo(ir,er,16);case"object":return ir.flags&1?ir:Fi([Mo(ir,$r,32),Mo(ir,rr,131072)]);case"function":return ir.flags&1?ir:Mo(ir,nr,64);case"undefined":return Mo(ir,ke,65536)}return Mo(ir,$r,128)}function Mo(ir,qr,_n){return ol(ir,Dn=>_y(Dn,qr,bm)?_h(Dn,_n)?Dn:Pr:Rw(qr,Dn)?qr:_h(Dn,_n)?_o([Dn,qr]):Pr)}function l_(ir,{switchStatement:qr,clauseStart:_n,clauseEnd:Dn}){let ni=ert(qr);if(!ni)return ir;let Ie=Va(qr.caseBlock.clauses,sr=>sr.kind===297);if(_n===Dn||Ie>=_n&&Ie<Dn){let sr=Qnt(_n,Dn,ni);return _u(ir,Lr=>a6(Lr,sr)===sr)}let Kt=ni.slice(_n,Dn);return Fi(Dt(Kt,sr=>sr?du(ir,sr):Pr))}function nu(ir,{switchStatement:qr,clauseStart:_n,clauseEnd:Dn}){let ni=Va(qr.caseBlock.clauses,Kt=>Kt.kind===297),Ie=_n===Dn||ni>=_n&&ni<Dn;for(let Kt=0;Kt<_n;Kt++){let sr=qr.caseBlock.clauses[Kt];sr.kind===296&&(ir=Sd(ir,sr.expression,!1))}if(Ie){for(let Kt=Dn;Kt<qr.caseBlock.clauses.length;Kt++){let sr=qr.caseBlock.clauses[Kt];sr.kind===296&&(ir=Sd(ir,sr.expression,!1))}return ir}let be=qr.caseBlock.clauses.slice(_n,Dn);return Fi(Dt(be,Kt=>Kt.kind===296?Sd(ir,Kt.expression,!0):Pr))}function fl(ir){return(ai(ir)&&fi(ir.name)==="constructor"||Nc(ir)&&Ho(ir.argumentExpression)&&ir.argumentExpression.text==="constructor")&&vp(r,ir.expression)}function xd(ir,qr,_n,Dn){if(Dn?qr!==35&&qr!==37:qr!==36&&qr!==38)return ir;let ni=Ap(_n);if(!WEe(ni)&&!yi(ni))return ir;let Ie=io(ni,"prototype");if(!Ie)return ir;let be=An(Ie),Kt=Ae(be)?void 0:be;if(!Kt||Kt===$e||Kt===nr)return ir;if(Ae(ir))return Kt;return _u(ir,Lr=>sr(Lr,Kt));function sr(Lr,un){return Lr.flags&524288&&oi(Lr)&1||un.flags&524288&&oi(un)&1?Lr.symbol===un.symbol:Rw(Lr,un)}}function Jl(ir,qr,_n){let Dn=Lw(qr.left);if(!vp(r,Dn))return _n&&fe&&zC(Dn,r)?WC(ir,2097152):ir;let ni=qr.right,Ie=Ap(ni);if(!FT(Ie,$e))return ir;let be=TV(qr),Kt=be&&Tm(be);if(Kt&&Kt.kind===1&&Kt.parameterIndex===0)return wb(ir,Kt.type,_n,!0);if(!FT(Ie,nr))return ir;let sr=ol(Ie,iu);return Ae(ir)&&(sr===$e||sr===nr)||!_n&&!(sr.flags&524288&&!rv(sr))?ir:wb(ir,sr,_n,!0)}function iu(ir){let qr=fu(ir,"prototype");if(qr&&!Ae(qr))return qr;let _n=Ns(ir,1);return _n.length?Fi(Dt(_n,Dn=>Yo(Nj(Dn)))):Ro}function wb(ir,qr,_n,Dn){let ni=ir.flags&1048576?`N${ap(ir)},${ap(qr)},${(_n?1:0)|(Dn?2:0)}`:void 0;return th(ni)??Jx(ni,m6(ir,qr,_n,Dn))}function m6(ir,qr,_n,Dn){if(!_n){if(ir===qr)return Pr;if(Dn)return _u(ir,sr=>!FT(sr,qr));ir=ir.flags&2?jo:ir;let Kt=wb(ir,qr,!0,!1);return cPe(_u(ir,sr=>!O8(sr,Kt)))}if(ir.flags&3||ir===qr)return qr;let ni=Dn?FT:Rw,Ie=ir.flags&1048576?yV(ir):void 0,be=ol(qr,Kt=>{let sr=Ie&&fu(Kt,Ie),Lr=sr&&vV(ir,sr),un=ol(Lr||ir,Dn?bn=>FT(bn,Kt)?bn:FT(Kt,bn)?Kt:Pr:bn=>oV(bn,Kt)?bn:oV(Kt,bn)?Kt:Rw(bn,Kt)?bn:Rw(Kt,bn)?Kt:Pr);return un.flags&131072?ol(ir,bn=>ql(bn,465829888)&&ni(Kt,Op(bn)||qt)?_o([bn,Kt]):Pr):un});return be.flags&131072?Rw(qr,ir)?qr:qs(ir,qr)?ir:qs(qr,ir)?qr:_o([ir,qr]):be}function JT(ir,qr,_n){if($tt(qr,r)){let Dn=_n||!gk(qr)?TV(qr):void 0,ni=Dn&&Tm(Dn);if(ni&&(ni.kind===0||ni.kind===1))return yL(ir,ni,qr,_n)}if(Wj(ir)&&Lc(r)&&ai(qr.expression)){let Dn=qr.expression;if(vp(r.expression,Lw(Dn.expression))&&Ye(Dn.name)&&Dn.name.escapedText==="hasOwnProperty"&&qr.arguments.length===1){let ni=qr.arguments[0];if(Ho(ni)&&JC(r)===gl(ni.text))return Cm(ir,_n?524288:65536)}}return ir}function yL(ir,qr,_n,Dn){if(qr.type&&!(Ae(ir)&&(qr.type===$e||qr.type===nr))){let ni=gQt(qr,_n);if(ni){if(vp(r,ni))return wb(ir,qr.type,Dn,!1);fe&&zC(ni,r)&&(Dn&&!_h(qr.type,65536)||!Dn&&E_(qr.type,IV))&&(ir=WC(ir,2097152));let Ie=Pa(ni,ir);if(Ie)return ri(ir,Ie,be=>wb(be,qr.type,Dn,!1))}}return ir}function Sd(ir,qr,_n){if(fq(qr)||Vn(qr.parent)&&(qr.parent.operatorToken.kind===61||qr.parent.operatorToken.kind===78)&&qr.parent.left===qr)return vL(ir,qr,_n);switch(qr.kind){case 80:if(!vp(r,qr)&&E<5){let Dn=sf(qr);if(UD(Dn)){let ni=Dn.valueDeclaration;if(ni&&Ui(ni)&&!ni.type&&ni.initializer&&fPe(r)){E++;let Ie=Sd(ir,ni.initializer,_n);return E--,Ie}}}case 110:case 108:case 211:case 212:return pc(ir,qr,_n);case 213:return JT(ir,qr,_n);case 217:case 235:case 238:return Sd(ir,qr.expression,_n);case 226:return bl(ir,qr,_n);case 224:if(qr.operator===54)return Sd(ir,qr.operand,!_n);break}return ir}function vL(ir,qr,_n){if(vp(r,qr))return WC(ir,_n?2097152:262144);let Dn=Pa(qr,ir);return Dn?ri(ir,Dn,ni=>Cm(ni,_n?2097152:262144)):ir}}function yQt(r,c){if(r=k_(r),(c.kind===80||c.kind===81)&&(S4(c)&&(c=c.parent),zg(c)&&(!mx(c)||iE(c)))){let _=Pae(iE(c)&&c.kind===211?rse(c,void 0,!0):Ap(c));if(k_(Zn(c).resolvedSymbol)===r)return _}return Ny(c)&&kh(c.parent)&&OC(c.parent)?zie(c.parent.symbol):oX(c)&&iE(c.parent)?fb(r):Xx(r)}function A8(r){return Br(r.parent,c=>Ss(c)&&!v2(c)||c.kind===268||c.kind===307||c.kind===172)}function vQt(r){return(r.lastAssignmentPos!==void 0||Gj(r)&&r.lastAssignmentPos!==void 0)&&r.lastAssignmentPos<0}function Gj(r){return!srt(r,void 0)}function srt(r,c){let _=Br(r.valueDeclaration,zae);if(!_)return!1;let h=Zn(_);return h.flags&131072||(h.flags|=131072,bQt(_)||crt(_)),!r.lastAssignmentPos||c&&Math.abs(r.lastAssignmentPos)<c.pos}function _Pe(r){return I.assert(Ui(r)||Da(r)),ort(r.name)}function ort(r){return r.kind===80?Gj(ei(r.parent)):Pt(r.elements,c=>c.kind!==232&&ort(c.name))}function bQt(r){return!!Br(r.parent,c=>zae(c)&&!!(Zn(c).flags&131072))}function zae(r){return Dc(r)||ba(r)}function crt(r){switch(r.kind){case 80:let c=dx(r);if(c!==0){let v=sf(r),T=c===1||v.lastAssignmentPos!==void 0&&v.lastAssignmentPos<0;if(Kj(v)){if(v.lastAssignmentPos===void 0||Math.abs(v.lastAssignmentPos)!==Number.MAX_VALUE){let D=Br(r,zae),J=Br(v.valueDeclaration,zae);v.lastAssignmentPos=D===J?xQt(r,v.valueDeclaration):Number.MAX_VALUE}T&&v.lastAssignmentPos>0&&(v.lastAssignmentPos*=-1)}}return;case 281:let _=r.parent.parent,h=r.propertyName||r.name;if(!r.isTypeOnly&&!_.isTypeOnly&&!_.moduleSpecifier&&h.kind!==11){let v=Ol(h,111551,!0,!0);if(v&&Kj(v)){let T=v.lastAssignmentPos!==void 0&&v.lastAssignmentPos<0?-1:1;v.lastAssignmentPos=T*Number.MAX_VALUE}}return;case 264:case 265:case 266:return}Yi(r)||xs(r,crt)}function xQt(r,c){let _=r.pos;for(;r&&r.pos>c.pos;){switch(r.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:_=r.end}r=r.parent}return _}function UD(r){return r.flags&3&&(APe(r)&6)!==0}function Kj(r){let c=r.valueDeclaration&&Nh(r.valueDeclaration);return!!c&&(Da(c)||Ui(c)&&(z2(c.parent)||lrt(c)))}function lrt(r){return!!(r.parent.flags&1)&&!(bS(r)&32||r.parent.parent.kind===243&&C1(r.parent.parent.parent))}function SQt(r){let c=Zn(r);if(c.parameterInitializerContainsUndefined===void 0){if(!oy(r,8))return VA(r.symbol),!0;let _=!!_h(F8(r,0),16777216);if(!cy())return VA(r.symbol),!0;c.parameterInitializerContainsUndefined??(c.parameterInitializerContainsUndefined=_)}return c.parameterInitializerContainsUndefined}function TQt(r,c){return fe&&c.kind===169&&c.initializer&&_h(r,16777216)&&!SQt(c)?Cm(r,524288):r}function wQt(r,c){let _=c.parent;return _.kind===211||_.kind===166||_.kind===213&&_.expression===c||_.kind===214&&_.expression===c||_.kind===212&&_.expression===c&&!(Pm(r,prt)&&jC(Ap(_.argumentExpression)))}function urt(r){return r.flags&2097152?Pt(r.types,urt):!!(r.flags&465829888&&py(r).flags&1146880)}function prt(r){return r.flags&2097152?Pt(r.types,prt):!!(r.flags&465829888&&!ql(py(r),98304))}function kQt(r,c){let _=(Ye(r)||ai(r)||Nc(r))&&!((Vg(r.parent)||Vk(r.parent))&&r.parent.tagName===r)&&(c&&c&32?Uf(r,8):Uf(r,void 0));return _&&!IT(_)}function dPe(r,c,_){return t6(r)&&(r=r.baseType),!(_&&_&2)&&Pm(r,urt)&&(wQt(r,c)||kQt(c,_))?ol(r,py):r}function frt(r){return!!Br(r,c=>{let _=c.parent;return _===void 0?"quit":Gc(_)?_.expression===c&&Tc(c):Yp(_)?_.name===c||_.propertyName===c:!1})}function $D(r,c,_,h){if(je&&!(r.flags&33554432&&!vf(r)&&!is(r)))switch(c){case 1:return Wae(r);case 2:return _rt(r,_,h);case 3:return drt(r);case 4:return mPe(r);case 5:return mrt(r);case 6:return grt(r);case 7:return hrt(r);case 8:return yrt(r);case 0:{if(Ye(r)&&(zg(r)||Jp(r.parent)||zu(r.parent)&&r.parent.moduleReference===r)&&Srt(r)){if(MF(r.parent)&&(ai(r.parent)?r.parent.expression:r.parent.left)!==r)return;Wae(r);return}if(MF(r)){let v=r;for(;MF(v);){if(Eh(v))return;v=v.parent}return _rt(r)}return Gc(r)?drt(r):Qp(r)||bg(r)?mPe(r):zu(r)?kk(r)||Dse(r)?grt(r):void 0:Yp(r)?hrt(r):((Dc(r)||yg(r))&&mrt(r),!z.emitDecoratorMetadata||!U2(r)||!Od(r)||!r.modifiers||!r5(ne,r,r.parent,r.parent.parent)?void 0:yrt(r))}default:I.assertNever(c,`Unhandled reference hint: ${c}`)}}function Wae(r){let c=sf(r);c&&c!==pe&&c!==oe&&!P2(r)&&CV(c,r)}function _rt(r,c,_){let h=ai(r)?r.expression:r.left;if(hx(h)||!Ye(h))return;let v=sf(h);if(!v||v===oe)return;if(zm(z)||vx(z)&&frt(r)){CV(v,r);return}let T=_||Nl(h);if(Ae(T)||T===or){CV(v,r);return}let D=c;if(!D&&!_){let J=ai(r)?r.name:r.right,V=Ca(J)&&FV(J.escapedText,J),Q=dx(r),ue=kf(Q!==0||RPe(r)?ad(T):T);D=Ca(J)?V&&ise(ue,V)||void 0:io(ue,J.escapedText)}D&&(mL(D)||D.flags&8&&r.parent.kind===306)||CV(v,r)}function drt(r){if(Ye(r.expression)){let c=r.expression,_=k_(Ol(c,-1,!0,!0,r));_&&CV(_,c)}}function mPe(r){if(!ese(r)){let c=Jo&&z.jsx===2?y.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,_=yp(r),h=Qp(r)?r.tagName:r,v=z.jsx!==1&&z.jsx!==3,T;if(bg(r)&&_==="null"||(T=Ct(h,_,v?111551:111167,c,!0)),T&&(T.isReferenced=-1,je&&T.flags&2097152&&!ah(T)&&Uae(T)),bg(r)){let D=rn(r),J=$Ee(D);if(J){let V=Af(J).escapedText;Ct(h,V,v?111551:111167,c,!0)}}}}function mrt(r){if(H<2&&eu(r)&2){let c=dd(r);CQt(c)}}function grt(r){Ai(r,32)&&vrt(r)}function hrt(r){if(!r.parent.parent.moduleSpecifier&&!r.isTypeOnly&&!r.parent.parent.isTypeOnly){let c=r.propertyName||r.name;if(c.kind===11)return;let _=Ct(c,c.escapedText,2998271,void 0,!0);if(!(_&&(_===xe||_===nt||_.declarations&&C1(PT(_.declarations[0]))))){let h=_&&(_.flags&2097152?pu(_):_);(!h||rd(h)&111551)&&(vrt(r),Wae(c))}return}}function yrt(r){if(z.emitDecoratorMetadata){let c=Ir(r.modifiers,qu);if(!c)return;switch($u(c,16),r.kind){case 263:let _=Dv(r);if(_)for(let D of _.parameters)c6(Sse(D));break;case 177:case 178:let h=r.kind===177?178:177,v=Zc(ei(r),h);c6(OC(r)||v&&OC(v));break;case 174:for(let D of r.parameters)c6(Sse(D));c6(dd(r));break;case 172:c6(hu(r));break;case 169:c6(Sse(r));let T=r.parent;for(let D of T.parameters)c6(Sse(D));c6(dd(T));break}}}function CV(r,c){if(je&&wC(r,111551)&&!eE(c)){let _=pu(r);rd(r,!0)&1160127&&(zm(z)||vx(z)&&frt(c)||!mL(k_(_)))&&Uae(r)}}function Uae(r){I.assert(je);let c=Fa(r);if(!c.referenced){c.referenced=!0;let _=zd(r);if(!_)return I.fail();if(kk(_)&&rd(Dl(r))&111551){let h=Af(_.moduleReference);Wae(h)}}}function vrt(r){let c=ei(r),_=pu(c);_&&(_===oe||rd(c,!0)&111551&&!mL(_))&&Uae(c)}function brt(r,c){if(!r)return;let _=Af(r),h=(r.kind===80?788968:1920)|2097152,v=Ct(_,_.escapedText,h,void 0,!0);if(v&&v.flags&2097152){if(je&&sh(v)&&!mL(pu(v))&&!ah(v))Uae(v);else if(c&&zm(z)&&hf(z)>=5&&!sh(v)&&!Pt(v.declarations,w1)){let T=ot(r,y.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),D=Ir(v.declarations||ce,Xv);D&&Hs(T,Mn(D,y._0_was_imported_here,fi(_)))}}}function CQt(r){brt(r&&t5(r),!1)}function c6(r){let c=SEe(r);c&&Of(c)&&brt(c,!0)}function PQt(r,c){var _;let h=An(r),v=r.valueDeclaration;if(v){if(Do(v)&&!v.initializer&&!v.dotDotDotToken&&v.parent.elements.length>=2){let T=v.parent.parent,D=Nh(T);if(D.kind===260&&Ww(D)&6||D.kind===169){let J=Zn(T);if(!(J.flags&4194304)){J.flags|=4194304;let V=Wt(T,0),Q=V&&ol(V,py);if(J.flags&=-4194305,Q&&Q.flags&1048576&&!(D.kind===169&&_Pe(D))){let ue=v.parent,Fe=c1(ue,Q,Q,void 0,c.flowNode);return Fe.flags&131072?Pr:zo(v,Fe,!0)}}}}if(Da(v)&&!v.type&&!v.initializer&&!v.dotDotDotToken){let T=v.parent;if(T.parameters.length>=2&&mae(T)){let D=Xj(T);if(D&&D.parameters.length===1&&ef(D)){let J=v8(Ma(An(D.parameters[0]),(_=Bw(T))==null?void 0:_.nonFixingMapper));if(J.flags&1048576&&E_(J,Oo)&&!Pt(T.parameters,_Pe)){let V=c1(T,J,J,void 0,c.flowNode),Q=T.parameters.indexOf(v)-(C2(T)?1:0);return C_(V,Dg(Q))}}}}}return h}function xrt(r,c){if(P2(r))return;if(c===pe){if(BPe(r)){ot(r,y.arguments_cannot_be_referenced_in_property_initializers);return}let T=Ed(r);if(T)for(H<2&&(T.kind===219?ot(r,y.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Ai(T,1024)&&ot(r,y.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Zn(T).flags|=512;T&&Bc(T);)T=Ed(T),T&&(Zn(T).flags|=512);return}let _=k_(c),h=MEe(_,r);rb(h)&&fCe(r,h)&&h.declarations&&Wy(r,h.declarations,r.escapedText);let v=_.valueDeclaration;if(v&&_.flags&32&&Ri(v)&&v.name!==r){let T=mf(r,!1,!1);for(;T.kind!==307&&T.parent!==v;)T=mf(T,!1,!1);T.kind!==307&&(Zn(v).flags|=262144,Zn(T).flags|=262144,Zn(r).flags|=536870912)}AQt(r,c)}function EQt(r,c){if(P2(r))return PV(r);let _=sf(r);if(_===oe)return ut;if(xrt(r,_),_===pe)return BPe(r)?ut:An(_);Srt(r)&&$D(r,1);let h=k_(_),v=h.valueDeclaration,T=v;if(v&&v.kind===208&&Ta(Es,v.parent)&&Br(r,kr=>kr===v.parent))return In;let D=PQt(h,r),J=dx(r);if(J){if(!(h.flags&3)&&!(jn(r)&&h.flags&512)){let kr=h.flags&384?y.Cannot_assign_to_0_because_it_is_an_enum:h.flags&32?y.Cannot_assign_to_0_because_it_is_a_class:h.flags&1536?y.Cannot_assign_to_0_because_it_is_a_namespace:h.flags&16?y.Cannot_assign_to_0_because_it_is_a_function:h.flags&2097152?y.Cannot_assign_to_0_because_it_is_an_import:y.Cannot_assign_to_0_because_it_is_not_a_variable;return ot(r,kr,ja(_)),ut}if(gh(h))return h.flags&3?ot(r,y.Cannot_assign_to_0_because_it_is_a_constant,ja(_)):ot(r,y.Cannot_assign_to_0_because_it_is_a_read_only_property,ja(_)),ut}let V=h.flags&2097152;if(h.flags&3){if(J===1)return AQ(r)?i1(D):D}else if(V)v=zd(_);else return D;if(!v)return D;D=dPe(D,r,c);let Q=Nh(v).kind===169,ue=A8(v),Fe=A8(r),De=Fe!==ue,_t=r.parent&&r.parent.parent&&Lv(r.parent)&&uPe(r.parent.parent),Nt=_.flags&134217728,zt=D===Lt||D===Au,Dr=zt&&r.parent.kind===235;for(;Fe!==ue&&(Fe.kind===218||Fe.kind===219||zq(Fe))&&(UD(h)&&D!==Au||Kj(h)&&srt(h,r));)Fe=A8(Fe);let Tr=T&&Ui(T)&&!T.initializer&&!T.exclamationToken&&lrt(T)&&!vQt(_),En=Q||V||De&&!Tr||_t||Nt||DQt(r,v)||D!==Lt&&D!==Au&&(!fe||(D.flags&16387)!==0||eE(r)||nPe(r)||r.parent.kind===281)||r.parent.kind===235||v.kind===260&&v.exclamationToken||v.flags&33554432,xn=Dr?ke:En?Q?TQt(D,v):D:zt?ke:nS(D),Fr=Dr?a1(c1(r,D,xn,Fe)):c1(r,D,xn,Fe);if(!irt(r)&&(D===Lt||D===Au)){if(Fr===Lt||Fr===Au)return Pe&&(ot(ls(v),y.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ja(_),Pn(Fr)),ot(r,y.Variable_0_implicitly_has_an_1_type,ja(_),Pn(Fr))),_L(Fr)}else if(!En&&!i6(D)&&i6(Fr))return ot(r,y.Variable_0_is_used_before_being_assigned,ja(_)),D;return J?i1(Fr):Fr}function DQt(r,c){if(Do(c)){let _=Br(r,Do);return _&&Nh(_)===Nh(c)}}function Srt(r){var c;let _=r.parent;if(_){if(ai(_)&&_.expression===r||Yp(_)&&_.isTypeOnly)return!1;let h=(c=_.parent)==null?void 0:c.parent;if(h&&tu(h)&&h.isTypeOnly)return!1}return!0}function OQt(r,c){return!!Br(r,_=>_===c?"quit":Ss(_)||_.parent&&is(_.parent)&&!Pu(_.parent)&&_.parent.initializer===_)}function NQt(r,c){return Br(r,_=>_===c?"quit":_===c.initializer||_===c.condition||_===c.incrementor||_===c.statement)}function gPe(r){return Br(r,c=>!c||JQ(c)?"quit":cx(c,!1))}function AQt(r,c){if(H>=2||!(c.flags&34)||!c.valueDeclaration||ba(c.valueDeclaration)||c.valueDeclaration.parent.kind===299)return;let _=Jg(c.valueDeclaration),h=OQt(r,_),v=gPe(_);if(v){if(h){let T=!0;if(BS(_)){let D=DS(c.valueDeclaration,261);if(D&&D.parent===_){let J=NQt(r.parent,_);if(J){let V=Zn(J);V.flags|=8192;let Q=V.capturedBlockScopeBindings||(V.capturedBlockScopeBindings=[]);I_(Q,c),J===_.initializer&&(T=!1)}}}T&&(Zn(v).flags|=4096)}if(BS(_)){let T=DS(c.valueDeclaration,261);T&&T.parent===_&&FQt(r,_)&&(Zn(c.valueDeclaration).flags|=65536)}Zn(c.valueDeclaration).flags|=32768}h&&(Zn(c.valueDeclaration).flags|=16384)}function IQt(r,c){let _=Zn(r);return!!_&&Ta(_.capturedBlockScopeBindings,ei(c))}function FQt(r,c){let _=r;for(;_.parent.kind===217;)_=_.parent;let h=!1;if(mx(_))h=!0;else if(_.parent.kind===224||_.parent.kind===225){let v=_.parent;h=v.operator===46||v.operator===47}return h?!!Br(_,v=>v===c?"quit":v===c.statement):!1}function hPe(r,c){if(Zn(r).flags|=2,c.kind===172||c.kind===176){let _=c.parent;Zn(_).flags|=4}else Zn(c).flags|=4}function Trt(r){return wk(r)?r:Ss(r)?void 0:xs(r,Trt)}function yPe(r){let c=ei(r),_=zc(c);return Go(_)===Le}function wrt(r,c,_){let h=c.parent;w2(h)&&!yPe(h)&&pN(r)&&r.flowNode&&!Jae(r.flowNode,!1)&&ot(r,_)}function MQt(r,c){is(c)&&Pu(c)&&ne&&c.initializer&&SF(c.initializer,r.pos)&&Od(c.parent)&&ot(r,y.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function PV(r){let c=eE(r),_=mf(r,!0,!0),h=!1,v=!1;for(_.kind===176&&wrt(r,_,y.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(_.kind===219&&(_=mf(_,!1,!v),h=!0),_.kind===167){_=mf(_,!h,!1),v=!0;continue}break}if(MQt(r,_),v)ot(r,y.this_cannot_be_referenced_in_a_computed_property_name);else switch(_.kind){case 267:ot(r,y.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:ot(r,y.this_cannot_be_referenced_in_current_location);break}!c&&h&&H<2&&hPe(r,_);let T=vPe(r,!0,_);if(Oe){let D=An(nt);if(T===D&&h)ot(r,y.The_containing_arrow_function_captures_the_global_value_of_this);else if(!T){let J=ot(r,y.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!ba(_)){let V=vPe(_);V&&V!==D&&Hs(J,Mn(_,y.An_outer_value_of_this_is_shadowed_by_this_container))}}}return T||Qe}function vPe(r,c=!0,_=mf(r,!1,!1)){let h=jn(r);if(Ss(_)&&(!SPe(r)||C2(_))){let v=Ske(_)||h&&LQt(_);if(!v){let T=jQt(_);if(h&&T){let D=Wa(T).symbol;D&&D.members&&D.flags&16&&(v=zc(D).thisType)}else gy(_)&&(v=zc(Uo(_.symbol)).thisType);v||(v=bPe(_))}if(v)return c1(r,v)}if(Ri(_.parent)){let v=ei(_.parent),T=Vs(_)?An(v):zc(v).thisType;return c1(r,T)}if(ba(_))if(_.commonJsModuleIndicator){let v=ei(_);return v&&An(v)}else{if(_.externalModuleIndicator)return ke;if(c)return An(nt)}}function RQt(r){let c=mf(r,!1,!1);if(Ss(c)){let _=Vd(c);if(_.thisParameter)return Bae(_.thisParameter)}if(Ri(c.parent)){let _=ei(c.parent);return Vs(c)?An(_):zc(_).thisType}}function jQt(r){if(r.kind===218&&Vn(r.parent)&&$l(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===174&&r.parent.kind===210&&Vn(r.parent.parent)&&$l(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===218&&r.parent.kind===303&&r.parent.parent.kind===210&&Vn(r.parent.parent.parent)&&$l(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===218&&xu(r.parent)&&Ye(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&So(r.parent.parent)&&Ls(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&$l(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(wl(r)&&Ye(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&So(r.parent)&&Ls(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&$l(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function LQt(r){let c=cq(r);if(c&&c.typeExpression)return Sa(c.typeExpression);let _=x8(r);if(_)return NT(_)}function BQt(r,c){return!!Br(r,_=>Dc(_)?"quit":_.kind===169&&_.parent===c)}function $ae(r){let c=r.parent.kind===213&&r.parent.expression===r,_=ZF(r,!0),h=_,v=!1,T=!1;if(!c){for(;h&&h.kind===219;)Ai(h,1024)&&(T=!0),h=ZF(h,!0),v=H<2;h&&Ai(h,1024)&&(T=!0)}let D=0;if(!h||!ue(h)){let Fe=Br(r,De=>De===h?"quit":De.kind===167);return Fe&&Fe.kind===167?ot(r,y.super_cannot_be_referenced_in_a_computed_property_name):c?ot(r,y.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!h||!h.parent||!(Ri(h.parent)||h.parent.kind===210)?ot(r,y.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):ot(r,y.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ut}if(!c&&_.kind===176&&wrt(r,h,y.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Vs(h)||c?(D=32,!c&&H>=2&&H<=8&&(is(h)||Al(h))&&eme(r.parent,Fe=>{(!ba(Fe)||q_(Fe))&&(Zn(Fe).flags|=2097152)})):D=16,Zn(r).flags|=D,h.kind===174&&T&&(g_(r.parent)&&mx(r.parent)?Zn(h).flags|=256:Zn(h).flags|=128),v&&hPe(r.parent,h),h.parent.kind===210)return H<2?(ot(r,y.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ut):Qe;let J=h.parent;if(!w2(J))return ot(r,y.super_can_only_be_referenced_in_a_derived_class),ut;if(yPe(J))return c?ut:Le;let V=zc(ei(J)),Q=V&&Fu(V)[0];if(!Q)return ut;if(h.kind===176&&BQt(r,h))return ot(r,y.super_cannot_be_referenced_in_constructor_arguments),ut;return D===32?Go(V):id(Q,V.thisType);function ue(Fe){return c?Fe.kind===176:Ri(Fe.parent)||Fe.parent.kind===210?Vs(Fe)?Fe.kind===174||Fe.kind===173||Fe.kind===177||Fe.kind===178||Fe.kind===172||Fe.kind===175:Fe.kind===174||Fe.kind===173||Fe.kind===177||Fe.kind===178||Fe.kind===172||Fe.kind===171||Fe.kind===176:!1}}function krt(r){return(r.kind===174||r.kind===177||r.kind===178)&&r.parent.kind===210?r.parent:r.kind===218&&r.parent.kind===303?r.parent.parent:void 0}function Crt(r){return oi(r)&4&&r.target===ru?$c(r)[0]:void 0}function qQt(r){return ol(r,c=>c.flags&2097152?Ge(c.types,Crt):Crt(c))}function Prt(r,c){let _=r,h=c;for(;h;){let v=qQt(h);if(v)return v;if(_.parent.kind!==303)break;_=_.parent.parent,h=BT(_,void 0)}}function bPe(r){if(r.kind===219)return;if(mae(r)){let _=Xj(r);if(_){let h=_.thisParameter;if(h)return An(h)}}let c=jn(r);if(Oe||c){let _=krt(r);if(_){let v=BT(_,void 0),T=Prt(_,v);return T?Ma(T,GCe(Bw(_))):ad(v?a1(v):Nl(_))}let h=gg(r.parent);if(Yu(h)){let v=h.left;if(Lc(v)){let{expression:T}=v;if(c&&Ye(T)){let D=rn(h);if(D.commonJsModuleIndicator&&sf(T)===D.symbol)return}return ad(Nl(T))}}}}function Ert(r){let c=r.parent;if(!mae(c))return;let _=v2(c);if(_&&_.arguments){let v=cse(_),T=c.parameters.indexOf(r);if(r.dotDotDotToken)return HPe(v,T,v.length,Qe,void 0,0);let D=Zn(_),J=D.resolvedSignature;D.resolvedSignature=cn;let V=T<v.length?RT(Wa(v[T])):r.initializer?void 0:$;return D.resolvedSignature=J,V}let h=Xj(c);if(h){let v=c.parameters.indexOf(r)-(C2(c)?1:0);return r.dotDotDotToken&&dc(c.parameters)===r?zV(h,v):Jw(h,v)}}function xPe(r,c){let _=hu(r)||(jn(r)?ez(r):void 0);if(_)return Sa(_);switch(r.kind){case 169:return Ert(r);case 208:return JQt(r,c);case 172:if(Vs(r))return zQt(r,c)}}function JQt(r,c){let _=r.parent.parent,h=r.propertyName||r.name,v=xPe(_,c)||_.kind!==208&&_.initializer&&F8(_,r.dotDotDotToken?32:0);if(!v||Os(h)||VF(h))return;if(_.name.kind===207){let D=tN(r.parent.elements,r);return D<0?void 0:PPe(v,D)}let T=e1(h);if(_m(T)){let D=dm(T);return fu(v,D)}}function zQt(r,c){let _=At(r.parent)&&Uf(r.parent,c);if(_)return LT(_,ei(r).escapedName)}function WQt(r,c){let _=r.parent;if(k1(_)&&r===_.initializer){let h=xPe(_,c);if(h)return h;if(!(c&8)&&Os(_.name)&&_.name.elements.length>0)return Xa(_.name,!0,!1)}}function UQt(r,c){let _=Ed(r);if(_){let h=Vae(_,c);if(h){let v=eu(_);if(v&1){let T=(v&2)!==0;h.flags&1048576&&(h=_u(h,J=>!!Tb(1,J,T)));let D=Tb(1,h,(v&2)!==0);if(!D)return;h=D}if(v&2){let T=ol(h,l1);return T&&Fi([T,Gnt(T)])}return h}}}function $Qt(r,c){let _=Uf(r,c);if(_){let h=l1(_);return h&&Fi([h,Gnt(h)])}}function VQt(r,c){let _=Ed(r);if(_){let h=eu(_),v=Vae(_,c);if(v){let T=(h&2)!==0;if(!r.asteriskToken&&v.flags&1048576&&(v=_u(v,D=>!!Tb(1,D,T))),r.asteriskToken){let D=IEe(v,T),J=D?.yieldType??or,V=Uf(r,c)??or,Q=D?.nextType??qt,ue=_se(J,V,Q,!1);if(T){let Fe=_se(J,V,Q,!0);return Fi([ue,Fe])}return ue}return Tb(0,v,T)}}}function SPe(r){let c=!1;for(;r.parent&&!Ss(r.parent);){if(Da(r.parent)&&(c||r.parent.initializer===r))return!0;Do(r.parent)&&r.parent.initializer===r&&(c=!0),r=r.parent}return!1}function Drt(r,c){let _=!!(eu(c)&2),h=Vae(c,void 0);if(h)return Tb(r,h,_)||void 0}function Vae(r,c){let _=YA(r);if(_)return _;let h=DPe(r);if(h&&!Gie(h)){let T=Yo(h),D=eu(r);return D&1?_u(T,J=>!!(J.flags&58998787)||hEe(J,D,void 0)):D&2?_u(T,J=>!!(J.flags&58998787)||!!j8(J)):T}let v=v2(r);if(v)return Uf(v,c)}function Ort(r,c){let h=cse(r).indexOf(c);return h===-1?void 0:TPe(r,h)}function TPe(r,c){if(_d(r))return c===0?kt:c===1?set(!1):Qe;let _=Zn(r).resolvedSignature===Bn?Bn:p6(r);if(Qp(r)&&c===0)return Qae(_,r);let h=_.parameters.length-1;return ef(_)&&c>=h?C_(An(_.parameters[h]),Dg(c-h),256):dh(_,c)}function HQt(r){let c=oEe(r);return c?IC(c):void 0}function GQt(r,c){if(r.parent.kind===215)return Ort(r.parent,c)}function KQt(r,c){let _=r.parent,{left:h,operatorToken:v,right:T}=_;switch(v.kind){case 64:case 77:case 76:case 78:return r===T?XQt(_):void 0;case 57:case 61:let D=Uf(_,c);return r===T&&(D&&D.pattern||!D&&!Sme(_))?Ap(h):D;case 56:case 28:return r===T?Uf(_,c):void 0;default:return}}function QQt(r){if(qg(r)&&r.symbol)return r.symbol;if(Ye(r))return sf(r);if(ai(r)){let _=Ap(r.expression);return Ca(r.name)?c(_,r.name):io(_,r.name.escapedText)}if(Nc(r)){let _=Nl(r.argumentExpression);if(!_m(_))return;let h=Ap(r.expression);return io(h,dm(_))}return;function c(_,h){let v=FV(h.escapedText,h);return v&&ise(_,v)}}function XQt(r){var c,_;let h=$l(r);switch(h){case 0:case 4:let v=QQt(r.left),T=v&&v.valueDeclaration;if(T&&(is(T)||vf(T))){let V=hu(T);return V&&Ma(Sa(V),Fa(v).mapper)||(is(T)?T.initializer&&Ap(r.left):void 0)}return h===0?Ap(r.left):Nrt(r);case 5:if(Hae(r,h))return Nrt(r);if(!qg(r.left)||!r.left.symbol)return Ap(r.left);{let V=r.left.symbol.valueDeclaration;if(!V)return;let Q=Js(r.left,Lc),ue=hu(V);if(ue)return Sa(ue);if(Ye(Q.expression)){let Fe=Q.expression,De=Ct(Fe,Fe.escapedText,111551,void 0,!0);if(De){let _t=De.valueDeclaration&&hu(De.valueDeclaration);if(_t){let Nt=P0(Q);if(Nt!==void 0)return LT(Sa(_t),Nt)}return}}return jn(V)||V===r.left?void 0:Ap(r.left)}case 1:case 6:case 3:case 2:let D;h!==2&&(D=qg(r.left)?(c=r.left.symbol)==null?void 0:c.valueDeclaration:void 0),D||(D=(_=r.symbol)==null?void 0:_.valueDeclaration);let J=D&&hu(D);return J?Sa(J):void 0;case 7:case 8:case 9:return I.fail("Does not apply");default:return I.assertNever(h)}}function Hae(r,c=$l(r)){if(c===4)return!0;if(!jn(r)||c!==5||!Ye(r.left.expression))return!1;let _=r.left.expression.escapedText,h=Ct(r.left,_,111551,void 0,!0,!0);return Hq(h?.valueDeclaration)}function Nrt(r){if(!r.symbol)return Ap(r.left);if(r.symbol.valueDeclaration){let v=hu(r.symbol.valueDeclaration);if(v){let T=Sa(v);if(T)return T}}let c=Js(r.left,Lc);if(!Lm(mf(c.expression,!1,!1)))return;let _=PV(c.expression),h=P0(c);return h!==void 0&<(_,h)||void 0}function YQt(r){return!!(Tl(r)&262144&&!r.links.type&&UA(r,0)>=0)}function wPe(r,c){if(r.flags&16777216){let _=r;return!!(Eg(eS(_)).flags&131072)&&r1(tS(_))===r1(_.checkType)&&qs(c,_.extendsType)}return r.flags&2097152?Pt(r.types,_=>wPe(_,c)):!1}function LT(r,c,_){return ol(r,h=>{if(h.flags&2097152){let v,T,D=!1;for(let J of h.types){if(!(J.flags&524288))continue;if(o_(J)&&Cj(J)!==2){let Q=Art(J,c,_);v=kPe(v,Q);continue}let V=Irt(J,c);if(!V){D||(T=Zr(T,J));continue}D=!0,T=void 0,v=kPe(v,V)}if(T)for(let J of T){let V=Frt(J,c,_);v=kPe(v,V)}return v?v.length===1?v[0]:_o(v):void 0}if(h.flags&524288)return o_(h)&&Cj(h)!==2?Art(h,c,_):Irt(h,c)??Frt(h,c,_)},!0)}function kPe(r,c){return c?Zr(r,c.flags&1?qt:c):r}function Art(r,c,_){let h=_||c_(ka(c)),v=$d(r);if(r.nameType&&wPe(r.nameType,h)||wPe(v,h))return;let T=Op(v)||v;if(qs(h,T))return cae(r,h)}function Irt(r,c){let _=io(r,c);if(!(!_||YQt(_)))return s1(An(_),!!(_.flags&16777216))}function Frt(r,c,_){var h;if(Oo(r)&&Mv(c)&&+c>=0){let v=E8(r,r.target.fixedLength,0,!1,!0);if(v)return v}return(h=Bke(qke(r),_||c_(ka(c))))==null?void 0:h.type}function Mrt(r,c){if(I.assert(Lm(r)),!(r.flags&67108864))return CPe(r,c)}function CPe(r,c){let _=r.parent,h=xu(r)&&xPe(r,c);if(h)return h;let v=BT(_,c);if(v){if(QA(r)){let T=ei(r);return LT(v,T.escapedName,Fa(T).nameType)}if(E0(r)){let T=ls(r);if(T&&po(T)){let D=Wa(T.expression),J=_m(D)&<(v,dm(D));if(J)return J}}if(r.name){let T=e1(r.name);return ol(v,D=>{var J;return(J=Bke(qke(D),T))==null?void 0:J.type},!0)}}}function ZQt(r){let c,_;for(let h=0;h<r.length;h++)gm(r[h])&&(c??(c=h),_=h);return{first:c,last:_}}function PPe(r,c,_,h,v){return r&&ol(r,T=>{if(Oo(T)){if((h===void 0||c<h)&&c<T.target.fixedLength)return s1($c(T)[c],!!T.target.elementFlags[c]);let D=_!==void 0&&(v===void 0||c>v)?_-c:0,J=D>0&&T.target.combinedFlags&12?Aj(T.target,3):0;return D>0&&D<=J?$c(T)[yb(T)-D]:E8(T,h===void 0?T.target.fixedLength:Math.min(T.target.fixedLength,h),_===void 0||v===void 0?J:Math.min(J,_-v),!1,!0)}return(!h||c<h)&<(T,""+c)||EEe(1,T,ke,void 0,!1)},!0)}function eXt(r,c){let _=r.parent;return r===_.whenTrue||r===_.whenFalse?Uf(_,c):void 0}function tXt(r,c,_){let h=BT(r.openingElement.attributes,_),v=NV(VC(r));if(!(h&&!Ae(h)&&v&&v!==""))return;let T=mN(r.children),D=T.indexOf(c),J=LT(h,v);return J&&(T.length===1?J:ol(J,V=>bb(V)?C_(V,Dg(D)):V,!0))}function rXt(r,c){let _=r.parent;return bq(_)?Uf(r,c):qh(_)?tXt(_,r,c):void 0}function Rrt(r,c){if(Jh(r)){let _=BT(r.parent,c);return!_||Ae(_)?void 0:LT(_,J4(r.name))}else return Uf(r.parent,c)}function EV(r){switch(r.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return EV(r.expression);case 294:return!r.expression||EV(r.expression)}return!1}function nXt(r,c){let _=`D${Wo(r)},${ap(c)}`;return th(_)??Jx(_,HKt(c,r)??ACe(c,ya(Dt(Cn(r.properties,h=>h.symbol?h.kind===303?EV(h.initializer)&&D8(c,h.symbol.escapedName):h.kind===304?D8(c,h.symbol.escapedName):!1:!1),h=>[()=>GV(h.kind===303?h.initializer:h.name),h.symbol.escapedName]),Dt(Cn(oc(c),h=>{var v;return!!(h.flags&16777216)&&!!((v=r?.symbol)!=null&&v.members)&&!r.symbol.members.has(h.escapedName)&&D8(c,h.escapedName)}),h=>[()=>ke,h.escapedName])),qs))}function iXt(r,c){let _=`D${Wo(r)},${ap(c)}`,h=th(_);if(h)return h;let v=NV(VC(r));return Jx(_,ACe(c,ya(Dt(Cn(r.properties,T=>!!T.symbol&&T.kind===291&&D8(c,T.symbol.escapedName)&&(!T.initializer||EV(T.initializer))),T=>[T.initializer?()=>GV(T.initializer):()=>yt,T.symbol.escapedName]),Dt(Cn(oc(c),T=>{var D;if(!(T.flags&16777216)||!((D=r?.symbol)!=null&&D.members))return!1;let J=r.parent.parent;return T.escapedName===v&&qh(J)&&mN(J.children).length?!1:!r.symbol.members.has(T.escapedName)&&D8(c,T.escapedName)}),T=>[()=>ke,T.escapedName])),qs))}function BT(r,c){let _=Lm(r)?Mrt(r,c):Uf(r,c),h=Gae(_,r,c);if(h&&!(c&&c&2&&h.flags&8650752)){let v=ol(h,T=>oi(T)&32?T:kf(T),!0);return v.flags&1048576&&So(r)?nXt(r,v):v.flags&1048576&&J2(r)?iXt(r,v):v}}function Gae(r,c,_){if(r&&ql(r,465829888)){let h=Bw(c);if(h&&_&1&&Pt(h.inferences,HZt))return Kae(r,h.nonFixingMapper);if(h?.returnMapper){let v=Kae(r,h.returnMapper);return v.flags&1048576&&s0(v.types,yn)&&s0(v.types,Bt)?_u(v,T=>T!==yn&&T!==Bt):v}}return r}function Kae(r,c){return r.flags&465829888?Ma(r,c):r.flags&1048576?Fi(Dt(r.types,_=>Kae(_,c)),0):r.flags&2097152?_o(Dt(r.types,_=>Kae(_,c))):r}function Uf(r,c){var _;if(r.flags&67108864)return;let h=Lrt(r,!c);if(h>=0)return rs[h];let{parent:v}=r;switch(v.kind){case 260:case 169:case 172:case 171:case 208:return WQt(r,c);case 219:case 253:return UQt(r,c);case 229:return VQt(v,c);case 223:return $Qt(v,c);case 213:case 214:return Ort(v,r);case 170:return HQt(v);case 216:case 234:return _g(v.type)?Uf(v,c):Sa(v.type);case 226:return KQt(r,c);case 303:case 304:return CPe(v,c);case 305:return Uf(v.parent,c);case 209:{let T=v,D=BT(T,c),J=tN(T.elements,r),V=(_=Zn(T)).spreadIndices??(_.spreadIndices=ZQt(T.elements));return PPe(D,J,T.elements.length,V.first,V.last)}case 227:return eXt(r,c);case 239:return I.assert(v.parent.kind===228),GQt(v.parent,r);case 217:{if(jn(v)){if(zX(v))return Sa(WX(v));let T=xS(v);if(T&&!_g(T.typeExpression.type))return Sa(T.typeExpression.type)}return Uf(v,c)}case 235:return Uf(v,c);case 238:return Sa(v.type);case 277:return ET(v);case 294:return rXt(v,c);case 291:case 293:return Rrt(v,c);case 286:case 285:return cXt(v,c);case 301:return oXt(v)}}function jrt(r){DV(r,Uf(r,void 0),!0)}function DV(r,c,_){_a[Ia]=r,rs[Ia]=c,Ii[Ia]=_,Ia++}function Qj(){Ia--}function Lrt(r,c){for(let _=Ia-1;_>=0;_--)if(r===_a[_]&&(c||!Ii[_]))return _;return-1}function aXt(r,c){tp[Jd]=r,qd[Jd]=c,Jd++}function sXt(){Jd--}function Bw(r){for(let c=Jd-1;c>=0;c--)if(T2(r,tp[c]))return qd[c]}function oXt(r){return LT(Yke(!1),tz(r))}function cXt(r,c){if(Vg(r)&&c!==4){let _=Lrt(r.parent,!c);if(_>=0)return rs[_]}return TPe(r,0)}function Qae(r,c){return bg(c)||Snt(c)!==0?lXt(r,c):fXt(r,c)}function lXt(r,c){let _=aEe(r,qt);_=Brt(c,VC(c),_);let h=qw(Fd.IntrinsicAttributes,c);return et(h)||(_=W$(h,_)),_}function uXt(r,c){if(r.compositeSignatures){let h=[];for(let v of r.compositeSignatures){let T=Yo(v);if(Ae(T))return T;let D=fu(T,c);if(!D)return;h.push(D)}return _o(h)}let _=Yo(r);return Ae(_)?_:fu(_,c)}function pXt(r){if(bg(r))return Ant(r);if(HD(r.tagName)){let _=Krt(r),h=lse(r,_);return IC(h)}let c=Nl(r.tagName);if(c.flags&128){let _=Grt(c,r);if(!_)return ut;let h=lse(r,_);return IC(h)}return c}function Brt(r,c,_){let h=MXt(c);if(h){let v=pXt(r),T=Yrt(h,jn(r),v,_);if(T)return T}return _}function fXt(r,c){let _=VC(c),h=jXt(_),v=h===void 0?aEe(r,qt):h===""?Yo(r):uXt(r,h);if(!v)return h&&Re(c.attributes.properties)&&ot(c,y.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,ka(h)),qt;if(v=Brt(c,_,v),Ae(v))return v;{let T=v,D=qw(Fd.IntrinsicClassAttributes,c);if(!et(D)){let V=Pg(D.symbol),Q=Yo(r),ue;if(V){let Fe=hb([Q],V,Zy(V),jn(c));ue=Ma(D,P_(V,Fe))}else ue=D;T=W$(ue,T)}let J=qw(Fd.IntrinsicAttributes,c);return et(J)||(T=W$(J,T)),T}}function _Xt(r){return Bp(z,"noImplicitAny")?Qu(r,(c,_)=>c===_||!c?c:bZe(c.typeParameters,_.typeParameters)?gXt(c,_):void 0):void 0}function dXt(r,c,_){if(!r||!c)return r||c;let h=Fi([An(r),Ma(An(c),_)]);return qC(r,h)}function mXt(r,c,_){let h=D_(r),v=D_(c),T=h>=v?r:c,D=T===r?c:r,J=T===r?h:v,V=nv(r)||nv(c),Q=V&&!nv(T),ue=new Array(J+(Q?1:0));for(let Fe=0;Fe<J;Fe++){let De=Jw(T,Fe);T===c&&(De=Ma(De,_));let _t=Jw(D,Fe)||qt;D===c&&(_t=Ma(_t,_));let Nt=Fi([De,_t]),zt=V&&!Q&&Fe===J-1,Dr=Fe>=mh(T)&&Fe>=mh(D),Tr=Fe>=h?void 0:I8(r,Fe),En=Fe>=v?void 0:I8(c,Fe),xn=Tr===En?Tr:Tr?En?void 0:Tr:En,Fr=fo(1|(Dr&&!zt?16777216:0),xn||`arg${Fe}`,zt?32768:Dr?16384:0);Fr.links.type=zt?Up(Nt):Nt,ue[Fe]=Fr}if(Q){let Fe=fo(1,"args",32768);Fe.links.type=Up(dh(D,J)),D===c&&(Fe.links.type=Ma(Fe.links.type,_)),ue[J]=Fe}return ue}function gXt(r,c){let _=r.typeParameters||c.typeParameters,h;r.typeParameters&&c.typeParameters&&(h=P_(c.typeParameters,r.typeParameters));let v=(r.flags|c.flags)&166,T=r.declaration,D=mXt(r,c,h),J=dc(D);J&&Tl(J)&32768&&(v|=1);let V=dXt(r.thisParameter,c.thisParameter,h),Q=Math.max(r.minArgumentCount,c.minArgumentCount),ue=n0(T,_,V,D,void 0,void 0,Q,v);return ue.compositeKind=2097152,ue.compositeSignatures=ya(r.compositeKind===2097152&&r.compositeSignatures||[r],[c]),h&&(ue.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?Fw(r.mapper,h):h),ue}function EPe(r,c){let _=Ns(r,0),h=Cn(_,v=>!hXt(v,c));return h.length===1?h[0]:_Xt(h)}function hXt(r,c){let _=0;for(;_<c.parameters.length;_++){let h=c.parameters[_];if(h.initializer||h.questionToken||h.dotDotDotToken||ZJ(h))break}return c.parameters.length&&gx(c.parameters[0])&&_--,!nv(r)&&D_(r)<_}function DPe(r){return xx(r)||Lm(r)?Xj(r):void 0}function Xj(r){I.assert(r.kind!==174||Lm(r));let c=x8(r);if(c)return c;let _=BT(r,1);if(!_)return;if(!(_.flags&1048576))return EPe(_,r);let h,v=_.types;for(let T of v){let D=EPe(T,r);if(D)if(!h)h=[D];else if(_V(h[0],D,!1,!0,!0,Lj))h.push(D);else return}if(h)return h.length===1?h[0]:yZe(h[0],h)}function yXt(r){let c=rn(r);if(!sS(c)&&!r.isUnterminated){let _;s??(s=bv(99,!0)),s.setScriptTarget(c.languageVersion),s.setLanguageVariant(c.languageVariant),s.setOnError((h,v,T)=>{let D=s.getTokenEnd();if(h.category===3&&_&&D===_.start&&v===_.length){let J=sE(c.fileName,c.text,D,v,h,T);Hs(_,J)}else(!_||D!==_.start)&&(_=Eu(c,D,v,h,T),Jo.add(_))}),s.setText(c.text,r.pos,r.end-r.pos);try{return s.scan(),I.assert(s.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!_}finally{s.setText(""),s.setOnError(void 0)}}return!1}function vXt(r){let c=Zn(r);return c.flags&1||(c.flags|=1,n(()=>yXt(r))),yl}function bXt(r,c){H<Us.SpreadElements&&$u(r,z.downlevelIteration?1536:1024);let _=Wa(r.expression,c);return Sb(33,_,ke,r.expression)}function xXt(r){return r.isSpread?C_(r.type,dr):r.type}function VD(r){return r.kind===208&&!!r.initializer||r.kind===303&&VD(r.initializer)||r.kind===304&&!!r.objectAssignmentInitializer||r.kind===226&&r.operatorToken.kind===64}function SXt(r){let c=gg(r.parent);return gm(c)&&wh(c.parent)}function qrt(r,c,_){let h=r.elements,v=h.length,T=[],D=[];jrt(r);let J=mx(r),V=M8(r),Q=BT(r,void 0),ue=SXt(r)||!!Q&&Pm(Q,De=>P8(De)||o_(De)&&!De.nameType&&!!Rj(De.target||De)),Fe=!1;for(let De=0;De<v;De++){let _t=h[De];if(_t.kind===230){H<Us.SpreadElements&&$u(_t,z.downlevelIteration?1536:1024);let Nt=Wa(_t.expression,c,_);if(bb(Nt))T.push(Nt),D.push(8);else if(J){let zt=OT(Nt,dr)||EEe(65,Nt,ke,void 0,!1)||qt;T.push(zt),D.push(4)}else T.push(Sb(33,Nt,ke,_t.expression)),D.push(4)}else if(Ne&&_t.kind===232)Fe=!0,T.push(re),D.push(2);else{let Nt=R8(_t,c,_);if(T.push(ip(Nt,!0,Fe)),D.push(Fe?2:1),ue&&c&&c&2&&!(c&4)&&Hd(_t)){let zt=Bw(r);I.assert(zt),VCe(zt,_t,Nt)}}}return Qj(),J?ev(T,D):Jrt(_||V||ue?ev(T,D,V&&!(Q&&Pm(Q,jCe))):Up(T.length?Fi(ia(T,(De,_t)=>D[_t]&8?Zx(De,dr)||Qe:De),2):fe?Mr:$,V))}function Jrt(r){if(!(oi(r)&4))return r;let c=r.literalType;return c||(c=r.literalType=HZe(r),c.objectFlags|=147456),c}function TXt(r){switch(r.kind){case 167:return wXt(r);case 80:return Mv(r.escapedText);case 9:case 11:return Mv(r.text);default:return!1}}function wXt(r){return Np(Og(r),296)}function Og(r){let c=Zn(r.expression);if(!c.resolvedType){if((Ff(r.parent.parent)||Ri(r.parent.parent)||Cp(r.parent.parent))&&Vn(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==177&&r.parent.kind!==178)return c.resolvedType=ut;if(c.resolvedType=Wa(r.expression),is(r.parent)&&!Pu(r.parent)&&vu(r.parent.parent)){let _=Jg(r.parent.parent),h=gPe(_);h&&(Zn(h).flags|=4096,Zn(r).flags|=32768,Zn(r.parent.parent).flags|=32768)}(c.resolvedType.flags&98304||!Np(c.resolvedType,402665900)&&!qs(c.resolvedType,ji))&&ot(r,y.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return c.resolvedType}function kXt(r){var c;let _=(c=r.declarations)==null?void 0:c[0];return Mv(r.escapedName)||_&&Gu(_)&&TXt(_.name)}function zrt(r){var c;let _=(c=r.declarations)==null?void 0:c[0];return w5(r)||_&&Gu(_)&&po(_.name)&&Np(Og(_.name),4096)}function CXt(r){var c;let _=(c=r.declarations)==null?void 0:c[0];return _&&Gu(_)&&po(_.name)}function Yj(r,c,_,h){var v;let T=[],D;for(let V=c;V<_.length;V++){let Q=_[V];(h===kt&&!zrt(Q)||h===dr&&kXt(Q)||h===er&&zrt(Q))&&(T.push(An(_[V])),CXt(_[V])&&(D=Zr(D,(v=_[V].declarations)==null?void 0:v[0])))}let J=T.length?Fi(T,2):ke;return a0(h,J,r,void 0,D)}function Xae(r){I.assert((r.flags&2097152)!==0,"Should only get Alias here.");let c=Fa(r);if(!c.immediateTarget){let _=zd(r);if(!_)return I.fail();c.immediateTarget=dT(_,!0)}return c.immediateTarget}function PXt(r,c=0){let _=mx(r);jnr(r,_);let h=fe?Qs():void 0,v=Qs(),T=[],D=Ro;jrt(r);let J=BT(r,void 0),V=J&&J.pattern&&(J.pattern.kind===206||J.pattern.kind===210),Q=M8(r),ue=Q?8:0,Fe=jn(r)&&!Xq(r),De=Fe?FK(r):void 0,_t=!J&&Fe&&!De,Nt=8192,zt=!1,Dr=!1,Tr=!1,En=!1;for(let kr of r.properties)kr.name&&po(kr.name)&&Og(kr.name);let xn=0;for(let kr of r.properties){let Un=ei(kr),ki=kr.name&&kr.name.kind===167?Og(kr.name):void 0;if(kr.kind===303||kr.kind===304||Lm(kr)){let Pa=kr.kind===303?lit(kr,c):kr.kind===304?R8(!_&&kr.objectAssignmentInitializer?kr.objectAssignmentInitializer:kr.name,c):uit(kr,c);if(Fe){let Ms=xm(kr);Ms?($p(Pa,Ms,kr),Pa=Ms):De&&De.typeExpression&&$p(Pa,Sa(De.typeExpression),kr)}Nt|=oi(Pa)&458752;let ri=ki&&_m(ki)?ki:void 0,os=ri?fo(4|Un.flags,dm(ri),ue|4096):fo(4|Un.flags,Un.escapedName,ue);if(ri&&(os.links.nameType=ri),_&&VD(kr))os.flags|=16777216;else if(V&&!(oi(J)&512)){let Ms=io(J,Un.escapedName);Ms?os.flags|=Ms.flags&16777216:i0(J,kt)||ot(kr.name,y.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ja(Un),Pn(J))}if(os.declarations=Un.declarations,os.parent=Un.parent,Un.valueDeclaration&&(os.valueDeclaration=Un.valueDeclaration),os.links.type=Pa,os.links.target=Un,Un=os,h?.set(os.escapedName,os),J&&c&2&&!(c&4)&&(kr.kind===303||kr.kind===174)&&Hd(kr)){let Ms=Bw(r);I.assert(Ms);let pc=kr.kind===303?kr.initializer:kr;VCe(Ms,pc,Pa)}}else if(kr.kind===305){H<Us.ObjectAssign&&$u(kr,2),T.length>0&&(D=Nw(D,Fr(),r.symbol,Nt,Q),T=[],v=Qs(),Dr=!1,Tr=!1,En=!1);let Pa=Eg(Wa(kr.expression,c&2));if(OV(Pa)){let ri=yCe(Pa,Q);if(h&&$rt(ri,h,kr),xn=T.length,et(D))continue;D=Nw(D,ri,r.symbol,Nt,Q)}else ot(kr,y.Spread_types_may_only_be_created_from_object_types),D=ut;continue}else I.assert(kr.kind===177||kr.kind===178),KD(kr);ki&&!(ki.flags&8576)?qs(ki,ji)&&(qs(ki,dr)?Tr=!0:qs(ki,er)?En=!0:Dr=!0,_&&(zt=!0)):v.set(Un.escapedName,Un),T.push(Un)}if(Qj(),et(D))return ut;if(D!==Ro)return T.length>0&&(D=Nw(D,Fr(),r.symbol,Nt,Q),T=[],v=Qs(),Dr=!1,Tr=!1),ol(D,kr=>kr===Ro?Fr():kr);return Fr();function Fr(){let kr=[],Un=M8(r);Dr&&kr.push(Yj(Un,xn,T,kt)),Tr&&kr.push(Yj(Un,xn,T,dr)),En&&kr.push(Yj(Un,xn,T,er));let ki=rl(r.symbol,v,ce,ce,kr);return ki.objectFlags|=Nt|128|131072,_t&&(ki.objectFlags|=4096),zt&&(ki.objectFlags|=512),_&&(ki.pattern=r),ki}}function OV(r){let c=Ptt(ol(r,py));return!!(c.flags&126615553||c.flags&3145728&&sn(c.types,OV))}function EXt(r){NPe(r)}function DXt(r,c){return KD(r),AV(r)||Qe}function OXt(r){NPe(r.openingElement),HD(r.closingElement.tagName)?Zae(r.closingElement):Wa(r.closingElement.tagName),Yae(r)}function NXt(r,c){return KD(r),AV(r)||Qe}function AXt(r){NPe(r.openingFragment);let c=rn(r);jJ(z)&&(z.jsxFactory||c.pragmas.has("jsx"))&&!z.jsxFragmentFactory&&!c.pragmas.has("jsxfrag")&&ot(r,z.jsxFactory?y.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:y.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Yae(r);let _=AV(r);return et(_)?Qe:_}function OPe(r){return r.includes("-")}function HD(r){return Ye(r)&&gN(r.escapedText)||Hg(r)}function Wrt(r,c){return r.initializer?R8(r.initializer,c):yt}function Urt(r,c=0){let _=fe?Qs():void 0,h=Qs(),v=el,T=!1,D,J=!1,V=2048,Q=NV(VC(r)),ue=bg(r),Fe,De=r;if(!ue){let zt=r.attributes;Fe=zt.symbol,De=zt;let Dr=Uf(zt,0);for(let Tr of zt.properties){let En=Tr.symbol;if(Jh(Tr)){let xn=Wrt(Tr,c);V|=oi(xn)&458752;let Fr=fo(4|En.flags,En.escapedName);if(Fr.declarations=En.declarations,Fr.parent=En.parent,En.valueDeclaration&&(Fr.valueDeclaration=En.valueDeclaration),Fr.links.type=xn,Fr.links.target=En,h.set(Fr.escapedName,Fr),_?.set(Fr.escapedName,Fr),J4(Tr.name)===Q&&(J=!0),Dr){let kr=io(Dr,En.escapedName);kr&&kr.declarations&&rb(kr)&&Ye(Tr.name)&&Wy(Tr.name,kr.declarations,Tr.name.escapedText)}if(Dr&&c&2&&!(c&4)&&Hd(Tr)){let kr=Bw(zt);I.assert(kr);let Un=Tr.initializer.expression;VCe(kr,Un,xn)}}else{I.assert(Tr.kind===293),h.size>0&&(v=Nw(v,Nt(),zt.symbol,V,!1),h=Qs());let xn=Eg(Wa(Tr.expression,c&2));Ae(xn)&&(T=!0),OV(xn)?(v=Nw(v,xn,zt.symbol,V,!1),_&&$rt(xn,_,Tr)):(ot(Tr.expression,y.Spread_types_may_only_be_created_from_object_types),D=D?_o([D,xn]):xn)}}T||h.size>0&&(v=Nw(v,Nt(),zt.symbol,V,!1))}let _t=r.parent;if((qh(_t)&&_t.openingElement===r||qS(_t)&&_t.openingFragment===r)&&mN(_t.children).length>0){let zt=Yae(_t,c);if(!T&&Q&&Q!==""){J&&ot(De,y._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,ka(Q));let Dr=Vg(r)?BT(r.attributes,void 0):void 0,Tr=Dr&<(Dr,Q),En=fo(4,Q);En.links.type=zt.length===1?zt[0]:Tr&&Pm(Tr,P8)?ev(zt):Up(Fi(zt)),En.valueDeclaration=j.createPropertySignature(void 0,ka(Q),void 0,void 0),Xo(En.valueDeclaration,De),En.valueDeclaration.symbol=En;let xn=Qs();xn.set(Q,En),v=Nw(v,rl(Fe,xn,ce,ce,ce),Fe,V,!1)}}if(T)return Qe;if(D&&v!==el)return _o([D,v]);return D||(v===el?Nt():v);function Nt(){return V|=8192,IXt(V,Fe,h)}}function IXt(r,c,_){let h=rl(c,_,ce,ce,ce);return h.objectFlags|=r|8192|128|131072,h}function Yae(r,c){let _=[];for(let h of r.children)if(h.kind===12)h.containsOnlyTriviaWhiteSpaces||_.push(kt);else{if(h.kind===294&&!h.expression)continue;_.push(R8(h,c))}return _}function $rt(r,c,_){for(let h of oc(r))if(!(h.flags&16777216)){let v=c.get(h.escapedName);if(v){let T=ot(v.valueDeclaration,y._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,ka(v.escapedName));Hs(T,Mn(_,y.This_spread_always_overwrites_this_property))}}}function FXt(r,c){return Urt(r.parent,c)}function qw(r,c){let _=VC(c),h=_&&nd(_),v=h&&Sf(h,r,788968);return v?zc(v):ut}function Zae(r){let c=Zn(r);if(!c.resolvedSymbol){let _=qw(Fd.IntrinsicElements,r);if(et(_))return Pe&&ot(r,y.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,ka(Fd.IntrinsicElements)),c.resolvedSymbol=oe;{if(!Ye(r.tagName)&&!Hg(r.tagName))return I.fail();let h=Hg(r.tagName)?_E(r.tagName):r.tagName.escapedText,v=io(_,h);if(v)return c.jsxFlags|=1,c.resolvedSymbol=v;let T=hat(_,c_(ka(h)));return T?(c.jsxFlags|=2,c.resolvedSymbol=T):se(_,h)?(c.jsxFlags|=2,c.resolvedSymbol=_.symbol):(ot(r,y.Property_0_does_not_exist_on_type_1,UX(r.tagName),"JSX."+Fd.IntrinsicElements),c.resolvedSymbol=oe)}}return c.resolvedSymbol}function ese(r){let c=r&&rn(r),_=c&&Zn(c);if(_&&_.jsxImplicitImportContainer===!1)return;if(_&&_.jsxImplicitImportContainer)return _.jsxImplicitImportContainer;let h=LJ(W5(z,c),z);if(!h)return;let T=Xp(z)===1?y.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:y.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,D=_ir(c,h),J=yw(D||r,h,T,r),V=J&&J!==oe?Uo(Dl(J)):void 0;return _&&(_.jsxImplicitImportContainer=V||!1),V}function VC(r){let c=r&&Zn(r);if(c&&c.jsxNamespace)return c.jsxNamespace;if(!c||c.jsxNamespace!==!1){let h=ese(r);if(!h||h===oe){let v=yp(r);h=Ct(r,v,1920,void 0,!1)}if(h){let v=Dl(Sf(nd(Dl(h)),Fd.JSX,1920));if(v&&v!==oe)return c&&(c.jsxNamespace=v),v}c&&(c.jsxNamespace=!1)}let _=Dl(r6(Fd.JSX,1920,void 0));if(_!==oe)return _}function Vrt(r,c){let _=c&&Sf(c.exports,r,788968),h=_&&zc(_),v=h&&oc(h);if(v){if(v.length===0)return"";if(v.length===1)return v[0].escapedName;v.length>1&&_.declarations&&ot(_.declarations[0],y.The_global_type_JSX_0_may_not_have_more_than_one_property,ka(r))}}function MXt(r){return r&&Sf(r.exports,Fd.LibraryManagedAttributes,788968)}function RXt(r){return r&&Sf(r.exports,Fd.ElementType,788968)}function jXt(r){return Vrt(Fd.ElementAttributesPropertyNameContainer,r)}function NV(r){return z.jsx===4||z.jsx===5?"children":Vrt(Fd.ElementChildrenAttributeNameContainer,r)}function Hrt(r,c){if(r.flags&4)return[cn];if(r.flags&128){let v=Grt(r,c);return v?[lse(c,v)]:(ot(c,y.Property_0_does_not_exist_on_type_1,r.value,"JSX."+Fd.IntrinsicElements),ce)}let _=kf(r),h=Ns(_,1);return h.length===0&&(h=Ns(_,0)),h.length===0&&_.flags&1048576&&(h=Dke(Dt(_.types,v=>Hrt(v,c)))),h}function Grt(r,c){let _=qw(Fd.IntrinsicElements,c);if(!et(_)){let h=r.value,v=io(_,gl(h));if(v)return An(v);let T=OT(_,kt);return T||void 0}return Qe}function LXt(r,c,_){if(r===1){let v=Xrt(_);v&&wm(c,v,i_,_.tagName,y.Its_return_type_0_is_not_a_valid_JSX_element,h)}else if(r===0){let v=Qrt(_);v&&wm(c,v,i_,_.tagName,y.Its_instance_type_0_is_not_a_valid_JSX_element,h)}else{let v=Xrt(_),T=Qrt(_);if(!v||!T)return;let D=Fi([v,T]);wm(c,D,i_,_.tagName,y.Its_element_type_0_is_not_a_valid_JSX_element,h)}function h(){let v=cl(_.tagName);return vs(void 0,y._0_cannot_be_used_as_a_JSX_component,v)}}function Krt(r){var c;I.assert(HD(r.tagName));let _=Zn(r);if(!_.resolvedJsxElementAttributesType){let h=Zae(r);if(_.jsxFlags&1)return _.resolvedJsxElementAttributesType=An(h)||ut;if(_.jsxFlags&2){let v=Hg(r.tagName)?_E(r.tagName):r.tagName.escapedText;return _.resolvedJsxElementAttributesType=((c=RD(qw(Fd.IntrinsicElements,r),v))==null?void 0:c.type)||ut}else return _.resolvedJsxElementAttributesType=ut}return _.resolvedJsxElementAttributesType}function Qrt(r){let c=qw(Fd.ElementClass,r);if(!et(c))return c}function AV(r){return qw(Fd.Element,r)}function Xrt(r){let c=AV(r);if(c)return Fi([c,rr])}function BXt(r){let c=VC(r);if(!c)return;let _=RXt(c);if(!_)return;let h=Yrt(_,jn(r));if(!(!h||et(h)))return h}function Yrt(r,c,..._){let h=zc(r);if(r.flags&524288){let v=Fa(r).typeParameters;if(Re(v)>=_.length){let T=hb(_,v,_.length,c);return Re(T)===0?h:e6(r,T)}}if(Re(h.typeParameters)>=_.length){let v=hb(_,h.typeParameters,_.length,c);return Z0(h,v)}}function qXt(r){let c=qw(Fd.IntrinsicElements,r);return c?oc(c):ce}function JXt(r){(z.jsx||0)===0&&ot(r,y.Cannot_use_JSX_unless_the_jsx_flag_is_provided),AV(r)===void 0&&Pe&&ot(r,y.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function NPe(r){let c=Qp(r);c&&Lnr(r),JXt(r),mPe(r);let _=p6(r);if(pse(_,r),c){let h=r,v=BXt(h);if(v!==void 0){let T=h.tagName,D=HD(T)?c_(UX(T)):Wa(T);wm(D,v,i_,T,y.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let J=cl(T);return vs(void 0,y._0_cannot_be_used_as_a_JSX_component,J)})}else LXt(Snt(h),Yo(_),h)}}function tse(r,c,_){if(r.flags&524288&&(Pw(r,c)||RD(r,c)||wj(c)&&i0(r,kt)||_&&OPe(c)))return!0;if(r.flags&33554432)return tse(r.baseType,c,_);if(r.flags&3145728&&Zj(r)){for(let h of r.types)if(tse(h,c,_))return!0}return!1}function Zj(r){return!!(r.flags&524288&&!(oi(r)&512)||r.flags&67108864||r.flags&33554432&&Zj(r.baseType)||r.flags&1048576&&Pt(r.types,Zj)||r.flags&2097152&&sn(r.types,Zj))}function zXt(r,c){if(qnr(r),r.expression){let _=Wa(r.expression,c);return r.dotDotDotToken&&_!==Qe&&!km(_)&&ot(r,y.JSX_spread_child_must_be_an_array_type),_}else return ut}function APe(r){return r.valueDeclaration?Ww(r.valueDeclaration):0}function IPe(r){if(r.flags&8192||Tl(r)&4)return!0;if(jn(r.valueDeclaration)){let c=r.valueDeclaration.parent;return c&&Vn(c)&&$l(c)===3}}function FPe(r,c,_,h,v,T=!0){let D=T?r.kind===166?r.right:r.kind===205?r:r.kind===208&&r.propertyName?r.propertyName:r.name:void 0;return Zrt(r,c,_,h,v,D)}function Zrt(r,c,_,h,v,T){var D;let J=fm(v,_);if(c){if(H<2&&ent(v))return T&&ot(T,y.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(J&64)return T&&ot(T,y.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ja(v),Pn(zD(v))),!1;if(!(J&256)&&((D=v.declarations)!=null&&D.some(bde)))return T&&ot(T,y.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ja(v)),!1}if(J&64&&ent(v)&&(e5(r)||vme(r)||Nd(r.parent)&&Hq(r.parent.parent))){let Q=A0(w_(v));if(Q&&Rrr(r))return T&&ot(T,y.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ja(v),lm(Q.name)),!1}if(!(J&6))return!0;if(J&2){let Q=A0(w_(v));return BEe(r,Q)?!0:(T&&ot(T,y.Property_0_is_private_and_only_accessible_within_class_1,ja(v),Pn(zD(v))),!1)}if(c)return!0;let V=mat(r,Q=>{let ue=zc(ei(Q));return gtt(ue,v,_)});return!V&&(V=WXt(r),V=V&>t(V,v,_),J&256||!V)?(T&&ot(T,y.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ja(v),Pn(zD(v)||h)),!1):J&256?!0:(h.flags&262144&&(h=h.isThisType?Wf(h):Op(h)),!h||!GA(h,V)?(T&&ot(T,y.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ja(v),Pn(V),Pn(h)),!1):!0)}function WXt(r){let c=UXt(r),_=c?.type&&Sa(c.type);if(_)_.flags&262144&&(_=Wf(_));else{let h=mf(r,!1,!1);Ss(h)&&(_=bPe(h))}if(_&&oi(_)&7)return HA(_)}function UXt(r){let c=mf(r,!1,!1);return c&&Ss(c)?C2(c):void 0}function ent(r){return!!fV(r,c=>!(c.flags&8192))}function l6(r){return dy(Wa(r),r)}function IV(r){return _h(r,50331648)}function MPe(r){return IV(r)?a1(r):r}function $Xt(r,c){let _=Tc(r)?B_(r):void 0;if(r.kind===106){ot(r,y.The_value_0_cannot_be_used_here,"null");return}if(_!==void 0&&_.length<100){if(Ye(r)&&_==="undefined"){ot(r,y.The_value_0_cannot_be_used_here,"undefined");return}ot(r,c&16777216?c&33554432?y._0_is_possibly_null_or_undefined:y._0_is_possibly_undefined:y._0_is_possibly_null,_)}else ot(r,c&16777216?c&33554432?y.Object_is_possibly_null_or_undefined:y.Object_is_possibly_undefined:y.Object_is_possibly_null)}function VXt(r,c){ot(r,c&16777216?c&33554432?y.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:y.Cannot_invoke_an_object_which_is_possibly_undefined:y.Cannot_invoke_an_object_which_is_possibly_null)}function tnt(r,c,_){if(fe&&r.flags&2){if(Tc(c)){let v=B_(c);if(v.length<100)return ot(c,y._0_is_of_type_unknown,v),ut}return ot(c,y.Object_is_of_type_unknown),ut}let h=a6(r,50331648);if(h&50331648){_(c,h);let v=a1(r);return v.flags&229376?ut:v}return r}function dy(r,c){return tnt(r,c,$Xt)}function rnt(r,c){let _=dy(r,c);if(_.flags&16384){if(Tc(c)){let h=B_(c);if(Ye(c)&&h==="undefined")return ot(c,y.The_value_0_cannot_be_used_here,h),_;if(h.length<100)return ot(c,y._0_is_possibly_undefined,h),_}ot(c,y.Object_is_possibly_undefined)}return _}function rse(r,c,_){return r.flags&64?HXt(r,c):jPe(r,r.expression,l6(r.expression),r.name,c,_)}function HXt(r,c){let _=Wa(r.expression),h=zj(_,r.expression);return Eae(jPe(r,r.expression,dy(h,r.expression),r.name,c),r,h!==_)}function nnt(r,c){let _=Qq(r)&&hx(r.left)?dy(PV(r.left),r.left):l6(r.left);return jPe(r,r.left,_,r.right,c)}function RPe(r){for(;r.parent.kind===217;)r=r.parent;return wh(r.parent)&&r.parent.expression===r}function FV(r,c){for(let _=$q(c);_;_=dp(_)){let{symbol:h}=_,v=T5(h,r),T=h.members&&h.members.get(v)||h.exports&&h.exports.get(v);if(T)return T}}function GXt(r){if(!dp(r))return Ur(r,y.Private_identifiers_are_not_allowed_outside_class_bodies);if(!bz(r.parent)){if(!zg(r))return Ur(r,y.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let c=Vn(r.parent)&&r.parent.operatorToken.kind===103;if(!nse(r)&&!c)return Ur(r,y.Cannot_find_name_0,fi(r))}return!1}function KXt(r){GXt(r);let c=nse(r);return c&&RV(c,void 0,!1),Qe}function nse(r){if(!zg(r))return;let c=Zn(r);return c.resolvedSymbol===void 0&&(c.resolvedSymbol=FV(r.escapedText,r)),c.resolvedSymbol}function ise(r,c){return io(r,c.escapedName)}function QXt(r,c,_){let h,v=oc(r);v&&Ge(v,D=>{let J=D.valueDeclaration;if(J&&Gu(J)&&Ca(J.name)&&J.name.escapedText===c.escapedText)return h=D,!0});let T=nh(c);if(h){let D=I.checkDefined(h.valueDeclaration),J=I.checkDefined(dp(D));if(_?.valueDeclaration){let V=_.valueDeclaration,Q=dp(V);if(I.assert(!!Q),Br(Q,ue=>J===ue)){let ue=ot(c,y.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,T,Pn(r));return Hs(ue,Mn(V,y.The_shadowing_declaration_of_0_is_defined_here,T),Mn(D,y.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,T)),!0}}return ot(c,y.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,T,nh(J.name||wZ)),!0}return!1}function int(r,c){return(Gx(c)||e5(r)&&vj(c))&&mf(r,!0,!1)===$o(c)}function jPe(r,c,_,h,v,T){let D=Zn(c).resolvedSymbol,J=dx(r),V=kf(J!==0||RPe(r)?ad(_):_),Q=Ae(V)||V===or,ue;if(Ca(h)){(H<Us.PrivateNamesAndClassStaticBlocks||H<Us.ClassAndClassElementDecorators||!ae)&&(J!==0&&$u(r,1048576),J!==1&&$u(r,524288));let De=FV(h.escapedText,h);if(J&&De&&De.valueDeclaration&&wl(De.valueDeclaration)&&Ur(h,y.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,fi(h)),Q){if(De)return et(V)?ut:V;if($q(h)===void 0)return Ur(h,y.Private_identifiers_are_not_allowed_outside_class_bodies),Qe}if(ue=De&&ise(_,De),ue===void 0){if(QXt(_,h,De))return ut;let _t=$q(h);_t&&e4(rn(_t),z.checkJs)&&Ur(h,y.Private_field_0_must_be_declared_in_an_enclosing_class,fi(h))}else ue.flags&65536&&!(ue.flags&32768)&&J!==1&&ot(r,y.Private_accessor_was_defined_without_a_getter)}else{if(Q)return Ye(c)&&D&&$D(r,2,void 0,_),et(V)?ut:V;ue=io(V,h.escapedText,mse(V),r.kind===166)}$D(r,2,ue,_);let Fe;if(ue){let De=MEe(ue,h);if(rb(De)&&fCe(r,De)&&De.declarations&&Wy(h,De.declarations,h.escapedText),XXt(ue,r,h),RV(ue,r,fnt(c,D)),Zn(r).resolvedSymbol=ue,FPe(r,c.kind===108,iE(r),V,ue),eit(r,ue,J))return ot(h,y.Cannot_assign_to_0_because_it_is_a_read_only_property,fi(h)),ut;Fe=int(r,ue)?Lt:T||PJ(r)?fb(ue):An(ue)}else{let De=!Ca(h)&&(J===0||!RC(_)||q4(_))?RD(V,h.escapedText):void 0;if(!(De&&De.type)){let _t=LPe(r,_.symbol,!0);return!_t&&Ij(_)?Qe:_.symbol===nt?(nt.exports.has(h.escapedText)&&nt.exports.get(h.escapedText).flags&418?ot(h,y.Property_0_does_not_exist_on_type_1,ka(h.escapedText),Pn(_)):Pe&&ot(h,y.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Pn(_)),Qe):(h.escapedText&&!Kn(r)&&snt(h,q4(_)?V:_,_t),ut)}De.isReadonly&&(mx(r)||IQ(r))&&ot(r,y.Index_signature_in_type_0_only_permits_reading,Pn(V)),Fe=De.type,z.noUncheckedIndexedAccess&&dx(r)!==1&&(Fe=Fi([Fe,Ke])),z.noPropertyAccessFromIndexSignature&&ai(r)&&ot(h,y.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,ka(h.escapedText)),De.declaration&&V0(De.declaration)&&Wy(h,[De.declaration],h.escapedText)}return ant(r,ue,Fe,h,v)}function LPe(r,c,_){var h;let v=rn(r);if(v&&z.checkJs===void 0&&v.checkJsDirective===void 0&&(v.scriptKind===1||v.scriptKind===2)){let T=Ge(c?.declarations,rn),D=!c?.valueDeclaration||!Ri(c.valueDeclaration)||((h=c.valueDeclaration.heritageClauses)==null?void 0:h.length)||P1(!1,c.valueDeclaration);return!(v!==T&&T&&C1(T))&&!(_&&c&&c.flags&32&&D)&&!(r&&_&&ai(r)&&r.expression.kind===110&&D)}return!1}function ant(r,c,_,h,v){let T=dx(r);if(T===1)return s1(_,!!(c&&c.flags&16777216));if(c&&!(c.flags&98311)&&!(c.flags&8192&&_.flags&1048576)&&!Ise(c.declarations))return _;if(_===Lt)return $A(r,c);_=dPe(_,r,v);let D=!1;if(fe&&me&&Lc(r)&&r.expression.kind===110){let V=c&&c.valueDeclaration;if(V&&rat(V)&&!Vs(V)){let Q=A8(r);Q.kind===176&&Q.parent===V.parent&&!(V.flags&33554432)&&(D=!0)}}else fe&&c&&c.valueDeclaration&&ai(c.valueDeclaration)&&p5(c.valueDeclaration)&&A8(r)===A8(c.valueDeclaration)&&(D=!0);let J=c1(r,_,D?nS(_):_);return D&&!i6(_)&&i6(J)?(ot(h,y.Property_0_is_used_before_being_assigned,ja(c)),_):T?i1(J):J}function XXt(r,c,_){let{valueDeclaration:h}=r;if(!h||rn(c).isDeclarationFile)return;let v,T=fi(_);BPe(c)&&!EVt(h)&&!(Lc(c)&&Lc(c.expression))&&!ry(h,_)&&!(wl(h)&&zse(h)&256)&&(ae||!YXt(r))?v=ot(_,y.Property_0_is_used_before_its_initialization,T):h.kind===263&&c.parent.kind!==183&&!(h.flags&33554432)&&!ry(h,_)&&(v=ot(_,y.Class_0_used_before_its_declaration,T)),v&&Hs(v,Mn(h,y._0_is_declared_here,T))}function BPe(r){return!!Br(r,c=>{switch(c.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Cs(c.parent)&&Al(c.parent.parent)?!0:"quit";default:return zg(c)?!1:"quit"}})}function YXt(r){if(!(r.parent.flags&32))return!1;let c=An(r.parent);for(;;){if(c=c.symbol&&ZXt(c),!c)return!1;let _=io(c,r.escapedName);if(_&&_.valueDeclaration)return!0}}function ZXt(r){let c=Fu(r);if(c.length!==0)return _o(c)}function snt(r,c,_){let h=Zn(r),v=h.nonExistentPropCheckCache||(h.nonExistentPropCheckCache=new Set),T=`${ap(c)}|${_}`;if(v.has(T))return;v.add(T);let D,J;if(!Ca(r)&&c.flags&1048576&&!(c.flags&402784252)){for(let Q of c.types)if(!io(Q,r.escapedText)&&!RD(Q,r.escapedText)){D=vs(D,y.Property_0_does_not_exist_on_type_1,Oc(r),Pn(Q));break}}if(ont(r.escapedText,c)){let Q=Oc(r),ue=Pn(c);D=vs(D,y.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Q,ue,ue+"."+Q)}else{let Q=lL(c);if(Q&&io(Q,r.escapedText))D=vs(D,y.Property_0_does_not_exist_on_type_1,Oc(r),Pn(c)),J=Mn(r,y.Did_you_forget_to_use_await);else{let ue=Oc(r),Fe=Pn(c),De=rYt(ue,c);if(De!==void 0)D=vs(D,y.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,ue,Fe,De);else{let _t=qPe(r,c);if(_t!==void 0){let Nt=Ml(_t),zt=_?y.Property_0_may_not_exist_on_type_1_Did_you_mean_2:y.Property_0_does_not_exist_on_type_1_Did_you_mean_2;D=vs(D,zt,ue,Fe,Nt),J=_t.valueDeclaration&&Mn(_t.valueDeclaration,y._0_is_declared_here,Nt)}else{let Nt=eYt(c)?y.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:y.Property_0_does_not_exist_on_type_1;D=vs(Lke(D,c),Nt,ue,Fe)}}}}let V=Cv(rn(r),r,D);J&&Hs(V,J),eb(!_||D.code!==y.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,V)}function eYt(r){return z.lib&&!z.lib.includes("dom")&&cQt(r,c=>c.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(ka(c.symbol.escapedName)))&&n1(r)}function ont(r,c){let _=c.symbol&&io(An(c.symbol),r);return _!==void 0&&!!_.valueDeclaration&&Vs(_.valueDeclaration)}function tYt(r){let c=nh(r),h=sQ().get(c);return h&&U7(h.keys())}function rYt(r,c){let _=kf(c).symbol;if(!_)return;let h=Ml(_),T=sQ().get(h);if(T){for(let[D,J]of T)if(Ta(J,r))return D}}function cnt(r,c){return MV(r,oc(c),106500)}function qPe(r,c){let _=oc(c);if(typeof r!="string"){let h=r.parent;ai(h)&&(_=Cn(_,v=>_nt(h,c,v))),r=fi(r)}return MV(r,_,111551)}function lnt(r,c){let _=Ua(r)?r:fi(r),h=oc(c);return(_==="for"?Ir(h,T=>Ml(T)==="htmlFor"):_==="class"?Ir(h,T=>Ml(T)==="className"):void 0)??MV(_,h,111551)}function unt(r,c){let _=qPe(r,c);return _&&Ml(_)}function nYt(r,c,_){let h=Sf(r,c,_);if(h)return h;let v;return r===Tt?v=Bi(["string","number","boolean","object","bigint","symbol"],D=>r.has(D.charAt(0).toUpperCase()+D.slice(1))?fo(524288,D):void 0).concat(Ka(r.values())):v=Ka(r.values()),MV(ka(c),v,_)}function pnt(r,c,_){return I.assert(c!==void 0,"outername should always be defined"),pr(r,c,_,void 0,!1,!1)}function JPe(r,c){return c.exports&&MV(fi(r),yT(c),2623475)}function iYt(r,c,_){function h(D){let J=Pw(r,D);if(J){let V=GC(An(J));return!!V&&mh(V)>=1&&qs(_,dh(V,0))}return!1}let v=mx(c)?"set":"get";if(!h(v))return;let T=F5(c.expression);return T===void 0?T=v:T+="."+v,T}function aYt(r,c){let _=c.types.filter(h=>!!(h.flags&128));return x0(r.value,_,h=>h.value)}function MV(r,c,_){return x0(r,c,h);function h(v){let T=Ml(v);if(!La(T,'"')){if(v.flags&_)return T;if(v.flags&2097152){let D=BA(v);if(D&&D.flags&_)return T}}}}function RV(r,c,_){let h=r&&r.flags&106500&&r.valueDeclaration;if(!h)return;let v=z_(h,2),T=r.valueDeclaration&&Gu(r.valueDeclaration)&&Ca(r.valueDeclaration.name);if(!(!v&&!T)&&!(c&&PJ(c)&&!(r.flags&65536))){if(_){let D=Br(c,Dc);if(D&&D.symbol===r)return}(Tl(r)&1?Fa(r).target:r).isReferenced=-1}}function fnt(r,c){return r.kind===110||!!c&&Tc(r)&&c===sf(Af(r))}function sYt(r,c){switch(r.kind){case 211:return zPe(r,r.expression.kind===108,c,ad(Wa(r.expression)));case 166:return zPe(r,!1,c,ad(Wa(r.left)));case 205:return zPe(r,!1,c,Sa(r))}}function _nt(r,c,_){return WPe(r,r.kind===211&&r.expression.kind===108,!1,c,_)}function zPe(r,c,_,h){if(Ae(h))return!0;let v=io(h,_);return!!v&&WPe(r,c,!1,h,v)}function WPe(r,c,_,h,v){if(Ae(h))return!0;if(v.valueDeclaration&&_f(v.valueDeclaration)){let T=dp(v.valueDeclaration);return!Kp(r)&&!!Br(r,D=>D===T)}return Zrt(r,c,_,h,v)}function oYt(r){let c=r.initializer;if(c.kind===261){let _=c.declarations[0];if(_&&!Os(_.name))return ei(_)}else if(c.kind===80)return sf(c)}function cYt(r){return Wp(r).length===1&&!!i0(r,dr)}function lYt(r){let c=Qo(r);if(c.kind===80){let _=sf(c);if(_.flags&3){let h=r,v=r.parent;for(;v;){if(v.kind===249&&h===v.statement&&oYt(v)===_&&cYt(Ap(v.expression)))return!0;h=v,v=v.parent}}}return!1}function uYt(r,c){return r.flags&64?pYt(r,c):dnt(r,l6(r.expression),c)}function pYt(r,c){let _=Wa(r.expression),h=zj(_,r.expression);return Eae(dnt(r,dy(h,r.expression),c),r,h!==_)}function dnt(r,c,_){let h=dx(r)!==0||RPe(r)?ad(c):c,v=r.argumentExpression,T=Wa(v);if(et(h)||h===or)return h;if(mse(h)&&!Ho(v))return ot(v,y.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ut;let D=lYt(v)?dr:T,J=dx(r),V;J===0?V=32:(V=4|(RC(h)&&!q4(h)?2:0),J===2&&(V|=32));let Q=Zx(h,D,V,r)||ut;return Tit(ant(r,Zn(r).resolvedSymbol,Q,v,_),r)}function mnt(r){return wh(r)||RS(r)||Qp(r)}function HC(r){return mnt(r)&&Ge(r.typeArguments,wo),r.kind===215?Wa(r.template):Qp(r)?Wa(r.attributes):Vn(r)?Wa(r.left):wh(r)&&Ge(r.arguments,c=>{Wa(c)}),cn}function my(r){return HC(r),wi}function fYt(r,c,_){let h,v,T=0,D,J=-1,V;I.assert(!c.length);for(let Q of r){let ue=Q.declaration&&ei(Q.declaration),Fe=Q.declaration&&Q.declaration.parent;!v||ue===v?h&&Fe===h?D=D+1:(h=Fe,D=T):(D=T=c.length,h=Fe),v=ue,cBe(Q)?(J++,V=J,T++):V=D,c.splice(V,0,_?Q$t(Q,_):Q)}}function ase(r){return!!r&&(r.kind===230||r.kind===237&&r.isSpread)}function UPe(r){return Va(r,ase)}function gnt(r){return!!(r.flags&16384)}function _Yt(r){return!!(r.flags&49155)}function sse(r,c,_,h=!1){if(bg(r))return!0;let v,T=!1,D=D_(_),J=mh(_);if(r.kind===215)if(v=c.length,r.template.kind===228){let V=ao(r.template.templateSpans);T=Sl(V.literal)||!!V.literal.isUnterminated}else{let V=r.template;I.assert(V.kind===15),T=!!V.isUnterminated}else if(r.kind===170)v=wnt(r,_);else if(r.kind===226)v=1;else if(Qp(r)){if(T=r.attributes.end===r.end,T)return!0;v=J===0?c.length:1,D=c.length===0?D:1,J=Math.min(J,1)}else if(r.arguments){v=h?c.length+1:c.length,T=r.arguments.end===r.end;let V=UPe(c);if(V>=0)return V>=mh(_)&&(nv(_)||V<D_(_))}else return I.assert(r.kind===214),mh(_)===0;if(!nv(_)&&v>D)return!1;if(T||v>=J)return!0;for(let V=v;V<J;V++){let Q=dh(_,V);if(_u(Q,jn(r)&&!fe?_Yt:gnt).flags&131072)return!1}return!0}function $Pe(r,c){let _=Re(r.typeParameters),h=Zy(r.typeParameters);return!Pt(c)||c.length>=h&&c.length<=_}function hnt(r,c){let _;return!!(r.target&&(_=Jw(r.target,c))&&IT(_))}function GC(r){return eL(r,0,!1)}function ynt(r){return eL(r,0,!1)||eL(r,1,!1)}function eL(r,c,_){if(r.flags&524288){let h=ph(r);if(_||h.properties.length===0&&h.indexInfos.length===0){if(c===0&&h.callSignatures.length===1&&h.constructSignatures.length===0)return h.callSignatures[0];if(c===1&&h.constructSignatures.length===1&&h.callSignatures.length===0)return h.constructSignatures[0]}}}function vnt(r,c,_,h){let v=$j(WZe(r),r,0,h),T=rL(c),D=_&&(T&&T.flags&262144?_.nonFixingMapper:_.mapper),J=D?Mw(c,D):c;return WCe(J,r,(V,Q)=>{o1(v.inferences,V,Q)}),_||UCe(c,r,(V,Q)=>{o1(v.inferences,V,Q,128)}),Oj(r,rPe(v),jn(c.declaration))}function dYt(r,c,_,h){let v=Qae(c,r),T=f6(r.attributes,v,h,_);return o1(h.inferences,T,v),rPe(h)}function bnt(r){if(!r)return zr;let c=Wa(r);return tge(r)?c:UI(r.parent)?a1(c):Kp(r.parent)?Pae(c):c}function VPe(r,c,_,h,v){if(Qp(r))return dYt(r,c,h,v);if(r.kind!==170&&r.kind!==226){let V=sn(c.typeParameters,ue=>!!Ew(ue)),Q=Uf(r,V?8:0);if(Q){let ue=Yo(c);if(iS(ue)){let Fe=Bw(r);if(!(!V&&Uf(r,8)!==Q)){let zt=GCe(SKt(Fe,1)),Dr=Ma(Q,zt),Tr=GC(Dr),En=Tr&&Tr.typeParameters?IC(Uke(Tr,Tr.typeParameters)):Dr;o1(v.inferences,En,ue,128)}let _t=$j(c.typeParameters,c,v.flags),Nt=Ma(Q,Fe&&Fe.returnMapper);o1(_t.inferences,Nt,ue),v.returnMapper=Pt(_t.inferences,_6)?GCe(CKt(_t)):void 0}}}let T=nL(c),D=T?Math.min(D_(c)-1,_.length):_.length;if(T&&T.flags&262144){let V=Ir(v.inferences,Q=>Q.typeParameter===T);V&&(V.impliedArity=Va(_,ase,D)<0?_.length-D:void 0)}let J=NT(c);if(J&&iS(J)){let V=Tnt(r);o1(v.inferences,bnt(V),J)}for(let V=0;V<D;V++){let Q=_[V];if(Q.kind!==232){let ue=dh(c,V);if(iS(ue)){let Fe=f6(Q,ue,v,h);o1(v.inferences,Fe,ue)}}}if(T&&iS(T)){let V=HPe(_,D,_.length,T,v,h);o1(v.inferences,V,T)}return rPe(v)}function xnt(r){return r.flags&1048576?ol(r,xnt):r.flags&1||dV(Op(r)||r)?r:Oo(r)?ev(Ow(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):ev([r],[8])}function HPe(r,c,_,h,v,T){let D=AC(h);if(c>=_-1){let ue=r[_-1];if(ase(ue)){let Fe=ue.kind===237?ue.type:f6(ue.expression,h,v,T);return bb(Fe)?xnt(Fe):Up(Sb(33,Fe,ke,ue.kind===230?ue.expression:ue),D)}}let J=[],V=[],Q=[];for(let ue=c;ue<_;ue++){let Fe=r[ue];if(ase(Fe)){let De=Fe.kind===237?Fe.type:Wa(Fe.expression);bb(De)?(J.push(De),V.push(8)):(J.push(Sb(33,De,ke,Fe.kind===230?Fe.expression:Fe)),V.push(4))}else{let De=Oo(h)?PPe(h,ue-c,_-c)||qt:C_(h,Dg(ue-c),256),_t=f6(Fe,De,v,T),Nt=D||ql(De,406978556);J.push(Nt?Cf(_t):RT(_t)),V.push(1)}Fe.kind===237&&Fe.tupleNameSource?Q.push(Fe.tupleNameSource):Q.push(void 0)}return ev(J,V,D&&!Pm(h,jCe),Q)}function GPe(r,c,_,h){let v=jn(r.declaration),T=r.typeParameters,D=hb(Dt(c,Sa),T,Zy(T),v),J;for(let V=0;V<c.length;V++){I.assert(T[V]!==void 0,"Should not call checkTypeArguments with too many type arguments");let Q=Wf(T[V]);if(Q){let ue=_&&h?()=>vs(void 0,y.Type_0_does_not_satisfy_the_constraint_1):void 0,Fe=h||y.Type_0_does_not_satisfy_the_constraint_1;J||(J=P_(T,D));let De=D[V];if(!$p(De,id(Ma(Q,J),De),_?c[V]:void 0,Fe,ue))return}}return D}function Snt(r){if(HD(r.tagName))return 2;let c=kf(Wa(r.tagName));return Re(Ns(c,1))?0:Re(Ns(c,0))?1:2}function mYt(r,c,_,h,v,T,D){let J=Qae(c,r),V=bg(r)?Urt(r):f6(r.attributes,J,void 0,h),Q=h&4?Uj(V):V;return ue()&&PCe(Q,J,_,v?bg(r)?r:r.tagName:void 0,bg(r)?void 0:r.attributes,void 0,T,D);function ue(){var Fe;if(ese(r))return!0;let De=(Vg(r)||Vk(r))&&!(HD(r.tagName)||Hg(r.tagName))?Wa(r.tagName):void 0;if(!De)return!0;let _t=Ns(De,0);if(!Re(_t))return!0;let Nt=$Ee(r);if(!Nt)return!0;let zt=Ol(Nt,111551,!0,!1,r);if(!zt)return!0;let Dr=An(zt),Tr=Ns(Dr,0);if(!Re(Tr))return!0;let En=!1,xn=0;for(let kr of Tr){let Un=dh(kr,0),ki=Ns(Un,0);if(Re(ki))for(let Pa of ki){if(En=!0,nv(Pa))return!0;let ri=D_(Pa);ri>xn&&(xn=ri)}}if(!En)return!0;let Fr=1/0;for(let kr of _t){let Un=mh(kr);Un<Fr&&(Fr=Un)}if(Fr<=xn)return!0;if(v){let kr=r.tagName,Un=Mn(kr,y.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,B_(kr),Fr,B_(Nt),xn),ki=(Fe=Em(kr))==null?void 0:Fe.valueDeclaration;ki&&Hs(Un,Mn(ki,y._0_is_declared_here,B_(kr))),D&&D.skipLogging&&(D.errors||(D.errors=[])).push(Un),D.skipLogging||Jo.add(Un)}return!1}}function ose(r){let c=jn(r)?-2147483615:33;return Ll(r,c)}function jV(r,c,_,h,v,T,D,J){let V={errors:void 0,skipLogging:!0};if(Fde(r))return mYt(r,_,h,v,T,D,V)?void 0:(I.assert(!T||!!V.errors,"jsx should have errors when reporting errors"),V.errors||ce);let Q=NT(_);if(Q&&Q!==zr&&!(L2(r)||Ls(r)&&g_(r.expression))){let Nt=Tnt(r),zt=bnt(Nt),Dr=T?Nt||r:void 0,Tr=y.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!wm(zt,Q,h,Dr,Tr,D,V))return I.assert(!T||!!V.errors,"this parameter should have errors when reporting errors"),V.errors||ce}let ue=y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Fe=nL(_),De=Fe?Math.min(D_(_)-1,c.length):c.length;for(let Nt=0;Nt<De;Nt++){let zt=c[Nt];if(zt.kind!==232){let Dr=dh(_,Nt),Tr=f6(zt,Dr,void 0,v),En=v&4?Uj(Tr):Tr,xn=J?Ma(En,J.nonFixingMapper):En,Fr=ose(zt);if(!PCe(xn,Dr,h,T?Fr:void 0,Fr,ue,D,V))return I.assert(!T||!!V.errors,"parameter should have errors when reporting errors"),_t(zt,xn,Dr),V.errors||ce}}if(Fe){let Nt=HPe(c,De,c.length,Fe,void 0,v),zt=c.length-De,Dr=T?zt===0?r:zt===1?ose(c[De]):$g(tL(r,Nt),c[De].pos,c[c.length-1].end):void 0;if(!wm(Nt,Fe,h,Dr,ue,void 0,V))return I.assert(!T||!!V.errors,"rest parameter should have errors when reporting errors"),_t(Dr,Nt,Fe),V.errors||ce}return;function _t(Nt,zt,Dr){if(Nt&&T&&V.errors&&V.errors.length){if(j8(Dr))return;let Tr=j8(zt);Tr&&_y(Tr,Dr,h)&&Hs(V.errors[0],Mn(Nt,y.Did_you_forget_to_use_await))}}}function Tnt(r){if(r.kind===226)return r.right;let c=r.kind===213?r.expression:r.kind===215?r.tag:r.kind===170&&!ne?r.expression:void 0;if(c){let _=Ll(c);if(Lc(_))return _.expression}}function tL(r,c,_,h){let v=US.createSyntheticExpression(c,_,h);return Ot(v,r),Xo(v,r),v}function cse(r){if(bg(r))return[tL(r,Q_)];if(r.kind===215){let h=r.template,v=[tL(h,HVt())];return h.kind===228&&Ge(h.templateSpans,T=>{v.push(T.expression)}),v}if(r.kind===170)return gYt(r);if(r.kind===226)return[r.left];if(Qp(r))return r.attributes.properties.length>0||Vg(r)&&r.parent.children.length>0?[r.attributes]:ce;let c=r.arguments||ce,_=UPe(c);if(_>=0){let h=c.slice(0,_);for(let v=_;v<c.length;v++){let T=c[v],D=T.kind===230&&(ht?Wa(T.expression):Nl(T.expression));D&&Oo(D)?Ge(Ow(D),(J,V)=>{var Q;let ue=D.target.elementFlags[V],Fe=tL(T,ue&4?Up(J):J,!!(ue&12),(Q=D.target.labeledElementDeclarations)==null?void 0:Q[V]);h.push(Fe)}):h.push(T)}return h}return c}function gYt(r){let c=r.expression,_=oEe(r);if(_){let h=[];for(let v of _.parameters){let T=An(v);h.push(tL(c,T))}return h}return I.fail()}function wnt(r,c){return z.experimentalDecorators?hYt(r,c):Math.min(Math.max(D_(c),1),2)}function hYt(r,c){switch(r.parent.kind){case 263:case 231:return 1;case 172:return Ah(r.parent)?3:2;case 174:case 177:case 178:return c.parameters.length<=2?2:3;case 169:return 3;default:return I.fail()}}function knt(r){let c=rn(r),{start:_,length:h}=Tk(c,ai(r.expression)?r.expression.name:r.expression);return{start:_,length:h,sourceFile:c}}function LV(r,c,..._){if(Ls(r)){let{sourceFile:h,start:v,length:T}=knt(r);return"message"in c?Eu(h,v,T,c,..._):hQ(h,c)}else return"message"in c?Mn(r,c,..._):Cv(rn(r),r,c)}function yYt(r){return wh(r)?ai(r.expression)?r.expression.name:r.expression:RS(r)?ai(r.tag)?r.tag.name:r.tag:Qp(r)?r.tagName:r}function vYt(r){if(!Ls(r)||!Ye(r.expression))return!1;let c=Ct(r.expression,r.expression.escapedText,111551,void 0,!1),_=c?.valueDeclaration;if(!_||!Da(_)||!xx(_.parent)||!L2(_.parent.parent)||!Ye(_.parent.parent.expression))return!1;let h=Zke(!1);return h?Em(_.parent.parent.expression,!0)===h:!1}function Cnt(r,c,_,h){var v;let T=UPe(_);if(T>-1)return Mn(_[T],y.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let D=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,V=Number.NEGATIVE_INFINITY,Q=Number.POSITIVE_INFINITY,ue;for(let zt of c){let Dr=mh(zt),Tr=D_(zt);Dr<D&&(D=Dr,ue=zt),J=Math.max(J,Tr),Dr<_.length&&Dr>V&&(V=Dr),_.length<Tr&&Tr<Q&&(Q=Tr)}let Fe=Pt(c,nv),De=Fe?D:D<J?D+"-"+J:D,_t=!Fe&&De===1&&_.length===0&&vYt(r);if(_t&&jn(r))return LV(r,y.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);let Nt=qu(r)?Fe?y.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:y.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Fe?y.Expected_at_least_0_arguments_but_got_1:_t?y.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:y.Expected_0_arguments_but_got_1;if(D<_.length&&_.length<J){if(h){let zt=vs(void 0,y.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,_.length,V,Q);return zt=vs(zt,h),LV(r,zt)}return LV(r,y.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,_.length,V,Q)}else if(_.length<D){let zt;if(h){let Tr=vs(void 0,Nt,De,_.length);Tr=vs(Tr,h),zt=LV(r,Tr)}else zt=LV(r,Nt,De,_.length);let Dr=(v=ue?.declaration)==null?void 0:v.parameters[ue.thisParameter?_.length+1:_.length];if(Dr){let Tr=Os(Dr.name)?[y.An_argument_matching_this_binding_pattern_was_not_provided]:Ey(Dr)?[y.Arguments_for_the_rest_parameter_0_were_not_provided,fi(Af(Dr.name))]:[y.An_argument_for_0_was_not_provided,Dr.name?fi(Af(Dr.name)):_.length],En=Mn(Dr,...Tr);return Hs(zt,En)}return zt}else{let zt=j.createNodeArray(_.slice(J)),Dr=ho(zt).pos,Tr=ao(zt).end;if(Tr===Dr&&Tr++,$g(zt,Dr,Tr),h){let En=vs(void 0,Nt,De,_.length);return En=vs(En,h),HF(rn(r),zt,En)}return nN(rn(r),zt,Nt,De,_.length)}}function bYt(r,c,_,h){let v=_.length;if(c.length===1){let J=c[0],V=Zy(J.typeParameters),Q=Re(J.typeParameters);if(h){let ue=vs(void 0,y.Expected_0_type_arguments_but_got_1,V<Q?V+"-"+Q:V,v);return ue=vs(ue,h),HF(rn(r),_,ue)}return nN(rn(r),_,y.Expected_0_type_arguments_but_got_1,V<Q?V+"-"+Q:V,v)}let T=-1/0,D=1/0;for(let J of c){let V=Zy(J.typeParameters),Q=Re(J.typeParameters);V>v?D=Math.min(D,V):Q<v&&(T=Math.max(T,Q))}if(T!==-1/0&&D!==1/0){if(h){let J=vs(void 0,y.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,v,T,D);return J=vs(J,h),HF(rn(r),_,J)}return nN(rn(r),_,y.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,v,T,D)}if(h){let J=vs(void 0,y.Expected_0_type_arguments_but_got_1,T===-1/0?D:T,v);return J=vs(J,h),HF(rn(r),_,J)}return nN(rn(r),_,y.Expected_0_type_arguments_but_got_1,T===-1/0?D:T,v)}function u6(r,c,_,h,v,T){let D=r.kind===215,J=r.kind===170,V=Qp(r),Q=bg(r),ue=r.kind===226,Fe=!M&&!_,De,_t,Nt,zt,Dr=0,Tr=[],En;!J&&!ue&&!wk(r)&&!Q&&(En=r.typeArguments,(D||V||r.expression.kind!==108)&&Ge(En,wo)),Tr=_||[],fYt(c,Tr,v),Q||I.assert(Tr.length,"Revert #54442 and add a testcase with whatever triggered this");let xn=cse(r),Fr=Tr.length===1&&!Tr[0].typeParameters;!J&&!Fr&&Pt(xn,Hd)&&(Dr=4);let kr=!!(h&16)&&r.kind===213&&r.arguments.hasTrailingComma;Tr.length>1&&(zt=Pa(Tr,$v,Fr,kr)),zt||(zt=Pa(Tr,i_,Fr,kr));let Un=Zn(r);if(Un.resolvedSignature!==Bn&&!_)return I.assert(Un.resolvedSignature),Un.resolvedSignature;if(zt)return zt;if(zt=xYt(r,Tr,xn,!!_,h),Un.resolvedSignature=zt,Fe){if(!T&&ue&&(T=y.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),De)if(De.length===1||De.length>3){let ri=De[De.length-1],os;De.length>3&&(os=vs(os,y.The_last_overload_gave_the_following_error),os=vs(os,y.No_overload_matches_this_call)),T&&(os=vs(os,T));let Ms=jV(r,xn,ri,i_,0,!0,()=>os,void 0);if(Ms)for(let pc of Ms)ri.declaration&&De.length>3&&Hs(pc,Mn(ri.declaration,y.The_last_overload_is_declared_here)),ki(ri,pc),Jo.add(pc);else I.fail("No error for last overload signature")}else{let ri=[],os=0,Ms=Number.MAX_VALUE,pc=0,bs=0;for(let Yr of De){let Sn=jV(r,xn,Yr,i_,0,!0,()=>vs(void 0,y.Overload_0_of_1_2_gave_the_following_error,bs+1,Tr.length,Sw(Yr)),void 0);Sn?(Sn.length<=Ms&&(Ms=Sn.length,pc=bs),os=Math.max(os,Sn.length),ri.push(Sn)):I.fail("No error for 3 or fewer overload signatures"),bs++}let of=os>1?ri[pc]:js(ri);I.assert(of.length>0,"No errors reported for 3 or fewer overload signatures");let op=vs(Dt(of,nme),y.No_overload_matches_this_call);T&&(op=vs(op,T));let bl=[...li(of,Yr=>Yr.relatedInformation)],en;if(sn(of,Yr=>Yr.start===of[0].start&&Yr.length===of[0].length&&Yr.file===of[0].file)){let{file:Yr,start:oa,length:Sn}=of[0];en={file:Yr,start:oa,length:Sn,code:op.code,category:op.category,messageText:op,relatedInformation:bl}}else en=Cv(rn(r),yYt(r),op,bl);ki(De[0],en),Jo.add(en)}else if(_t)Jo.add(Cnt(r,[_t],xn,T));else if(Nt)GPe(Nt,r.typeArguments,!0,T);else if(!Q){let ri=Cn(c,os=>$Pe(os,En));ri.length===0?Jo.add(bYt(r,c,En,T)):Jo.add(Cnt(r,ri,xn,T))}}return zt;function ki(ri,os){var Ms,pc;let bs=De,of=_t,op=Nt,bl=((pc=(Ms=ri.declaration)==null?void 0:Ms.symbol)==null?void 0:pc.declarations)||ce,Yr=bl.length>1?Ir(bl,oa=>Dc(oa)&&jm(oa.body)):void 0;if(Yr){let oa=Vd(Yr),Sn=!oa.typeParameters;Pa([oa],i_,Sn)&&Hs(os,Mn(Yr,y.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}De=bs,_t=of,Nt=op}function Pa(ri,os,Ms,pc=!1){var bs,of;if(De=void 0,_t=void 0,Nt=void 0,Ms){let op=ri[0];if(Pt(En)||!sse(r,xn,op,pc))return;if(jV(r,xn,op,os,0,!1,void 0,void 0)){De=[op];return}return op}for(let op=0;op<ri.length;op++){let bl=ri[op];if(!$Pe(bl,En)||!sse(r,xn,bl,pc))continue;let en,Yr;if(bl.typeParameters){let Sn=((of=(bs=bl.typeParameters[0].symbol.declarations)==null?void 0:bs[0])==null?void 0:of.parent)||(bl.declaration&&ul(bl.declaration)?bl.declaration.parent:bl.declaration);Sn&&Br(r,Fo=>Fo===Sn)&&(bl=LVt(bl));let Za;if(Pt(En)){if(Za=GPe(bl,En,!1),!Za){Nt=bl;continue}}else Yr=$j(bl.typeParameters,bl,jn(r)?2:0),Za=tv(VPe(r,bl,xn,Dr|8,Yr),Yr.nonFixingMapper),Dr|=Yr.flags&4?8:0;if(en=Oj(bl,Za,jn(bl.declaration),Yr&&Yr.inferredTypeParameters),nL(bl)&&!sse(r,xn,en,pc)){_t=en;continue}}else en=bl;if(jV(r,xn,en,os,Dr,!1,void 0,Yr)){(De||(De=[])).push(en);continue}if(Dr){if(Dr=0,Yr){let oa=tv(VPe(r,bl,xn,Dr,Yr),Yr.mapper);if(en=Oj(bl,oa,jn(bl.declaration),Yr.inferredTypeParameters),nL(bl)&&!sse(r,xn,en,pc)){_t=en;continue}}if(jV(r,xn,en,os,Dr,!1,void 0,Yr)){(De||(De=[])).push(en);continue}}return ri[op]=en,en}}}function xYt(r,c,_,h,v){return I.assert(c.length>0),KD(r),h||c.length===1||c.some(T=>!!T.typeParameters)?wYt(r,c,_,v):SYt(c)}function SYt(r){let c=Bi(r,V=>V.thisParameter),_;c.length&&(_=Pnt(c,c.map(JV)));let{min:h,max:v}=jge(r,TYt),T=[];for(let V=0;V<v;V++){let Q=Bi(r,ue=>ef(ue)?V<ue.parameters.length-1?ue.parameters[V]:ao(ue.parameters):V<ue.parameters.length?ue.parameters[V]:void 0);I.assert(Q.length!==0),T.push(Pnt(Q,Bi(r,ue=>Jw(ue,V))))}let D=Bi(r,V=>ef(V)?ao(V.parameters):void 0),J=128;if(D.length!==0){let V=Up(Fi(Bi(r,zZe),2));T.push(Ent(D,V)),J|=1}return r.some(cBe)&&(J|=2),n0(r[0].declaration,void 0,_,T,_o(r.map(Yo)),void 0,h,J)}function TYt(r){let c=r.parameters.length;return ef(r)?c-1:c}function Pnt(r,c){return Ent(r,Fi(c,2))}function Ent(r,c){return qC(ho(r),c)}function wYt(r,c,_,h){let v=PYt(c,st===void 0?_.length:st),T=c[v],{typeParameters:D}=T;if(!D)return T;let J=mnt(r)?r.typeArguments:void 0,V=J?Kie(T,kYt(J,D,jn(r))):CYt(r,D,T,_,h);return c[v]=V,V}function kYt(r,c,_){let h=r.map(QD);for(;h.length>c.length;)h.pop();for(;h.length<c.length;)h.push(Ew(c[h.length])||Wf(c[h.length])||tPe(_));return h}function CYt(r,c,_,h,v){let T=$j(c,_,jn(r)?2:0),D=VPe(r,_,h,v|4|8,T);return Kie(_,D)}function PYt(r,c){let _=-1,h=-1;for(let v=0;v<r.length;v++){let T=r[v],D=D_(T);if(nv(T)||D>=c)return v;D>h&&(h=D,_=v)}return _}function EYt(r,c,_){if(r.expression.kind===108){let V=$ae(r.expression);if(Ae(V)){for(let Q of r.arguments)Wa(Q);return cn}if(!et(V)){let Q=Dh(dp(r));if(Q){let ue=Vo(V,Q.typeArguments,Q);return u6(r,ue,c,_,0)}}return HC(r)}let h,v=Wa(r.expression);if(gk(r)){let V=zj(v,r.expression);h=V===v?0:$I(r)?16:8,v=V}else h=0;if(v=tnt(v,r.expression,VXt),v===or)return an;let T=kf(v);if(et(T))return my(r);let D=Ns(T,0),J=Ns(T,1).length;if(BV(v,T,D.length,J))return!et(v)&&r.typeArguments&&ot(r,y.Untyped_function_calls_may_not_accept_type_arguments),HC(r);if(!D.length){if(J)ot(r,y.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Pn(v));else{let V;if(r.arguments.length===1){let Q=rn(r).text;Gp(Q.charCodeAt(yo(Q,r.expression.end,!0)-1))&&(V=Mn(r.expression,y.Are_you_missing_a_semicolon))}QPe(r.expression,T,0,V)}return my(r)}return _&8&&!r.typeArguments&&D.some(DYt)?(fit(r,_),Bn):D.some(V=>jn(V.declaration)&&!!AK(V.declaration))?(ot(r,y.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Pn(v)),my(r)):u6(r,D,c,_,h)}function DYt(r){return!!(r.typeParameters&&WEe(Yo(r)))}function BV(r,c,_,h){return Ae(r)||Ae(c)&&!!(r.flags&262144)||!_&&!h&&!(c.flags&1048576)&&!(Eg(c).flags&131072)&&qs(r,nr)}function OYt(r,c,_){let h=l6(r.expression);if(h===or)return an;if(h=kf(h),et(h))return my(r);if(Ae(h))return r.typeArguments&&ot(r,y.Untyped_function_calls_may_not_accept_type_arguments),HC(r);let v=Ns(h,1);if(v.length){if(!NYt(r,v[0]))return my(r);if(Dnt(v,J=>!!(J.flags&4)))return ot(r,y.Cannot_create_an_instance_of_an_abstract_class),my(r);let D=h.symbol&&A0(h.symbol);return D&&Ai(D,64)?(ot(r,y.Cannot_create_an_instance_of_an_abstract_class),my(r)):u6(r,v,c,_,0)}let T=Ns(h,0);if(T.length){let D=u6(r,T,c,_,0);return Pe||(D.declaration&&!gy(D.declaration)&&Yo(D)!==zr&&ot(r,y.Only_a_void_function_can_be_called_with_the_new_keyword),NT(D)===zr&&ot(r,y.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),D}return QPe(r.expression,h,1),my(r)}function Dnt(r,c){return cs(r)?Pt(r,_=>Dnt(_,c)):r.compositeKind===1048576?Pt(r.compositeSignatures,c):c(r)}function KPe(r,c){let _=Fu(c);if(!Re(_))return!1;let h=_[0];if(h.flags&2097152){let v=h.types,T=SZe(v),D=0;for(let J of h.types){if(!T[D]&&oi(J)&3&&(J.symbol===r||KPe(r,J)))return!0;D++}return!1}return h.symbol===r?!0:KPe(r,h)}function NYt(r,c){if(!c||!c.declaration)return!0;let _=c.declaration,h=tE(_,6);if(!h||_.kind!==176)return!0;let v=A0(_.parent.symbol),T=zc(_.parent.symbol);if(!BEe(r,v)){let D=dp(r);if(D&&h&4){let J=QD(D);if(KPe(_.parent.symbol,J))return!0}return h&2&&ot(r,y.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Pn(T)),h&4&&ot(r,y.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Pn(T)),!1}return!0}function Ont(r,c,_){let h,v=_===0,T=GD(c),D=T&&Ns(T,_).length>0;if(c.flags&1048576){let V=c.types,Q=!1;for(let ue of V)if(Ns(ue,_).length!==0){if(Q=!0,h)break}else if(h||(h=vs(h,v?y.Type_0_has_no_call_signatures:y.Type_0_has_no_construct_signatures,Pn(ue)),h=vs(h,v?y.Not_all_constituents_of_type_0_are_callable:y.Not_all_constituents_of_type_0_are_constructable,Pn(c))),Q)break;Q||(h=vs(void 0,v?y.No_constituent_of_type_0_is_callable:y.No_constituent_of_type_0_is_constructable,Pn(c))),h||(h=vs(h,v?y.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:y.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Pn(c)))}else h=vs(h,v?y.Type_0_has_no_call_signatures:y.Type_0_has_no_construct_signatures,Pn(c));let J=v?y.This_expression_is_not_callable:y.This_expression_is_not_constructable;if(Ls(r.parent)&&r.parent.arguments.length===0){let{resolvedSymbol:V}=Zn(r);V&&V.flags&32768&&(J=y.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:vs(h,J),relatedMessage:D?y.Did_you_forget_to_use_await:void 0}}function QPe(r,c,_,h){let{messageChain:v,relatedMessage:T}=Ont(r,c,_),D=Cv(rn(r),r,v);if(T&&Hs(D,Mn(r,T)),Ls(r.parent)){let{start:J,length:V}=knt(r.parent);D.start=J,D.length=V}Jo.add(D),Nnt(c,_,h?Hs(D,h):D)}function Nnt(r,c,_){if(!r.symbol)return;let h=Fa(r.symbol).originatingImport;if(h&&!_d(h)){let v=Ns(An(Fa(r.symbol).target),c);if(!v||!v.length)return;Hs(_,Mn(h,y.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function AYt(r,c,_){let h=Wa(r.tag),v=kf(h);if(et(v))return my(r);let T=Ns(v,0),D=Ns(v,1).length;if(BV(h,v,T.length,D))return HC(r);if(!T.length){if(kp(r.parent)){let J=Mn(r.tag,y.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Jo.add(J),my(r)}return QPe(r.tag,v,0),my(r)}return u6(r,T,c,_,0)}function IYt(r){switch(r.parent.kind){case 263:case 231:return y.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return y.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return y.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return y.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return I.fail()}}function FYt(r,c,_){let h=Wa(r.expression),v=kf(h);if(et(v))return my(r);let T=Ns(v,0),D=Ns(v,1).length;if(BV(h,v,T.length,D))return HC(r);if(jYt(r,T)&&!Mf(r.expression)){let V=cl(r.expression,!1);return ot(r,y._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,V),my(r)}let J=IYt(r);if(!T.length){let V=Ont(r.expression,v,0),Q=vs(V.messageChain,J),ue=Cv(rn(r.expression),r.expression,Q);return V.relatedMessage&&Hs(ue,Mn(r.expression,V.relatedMessage)),Jo.add(ue),Nnt(v,0,ue),my(r)}return u6(r,T,c,_,0,J)}function lse(r,c){let _=VC(r),h=_&&nd(_),v=h&&Sf(h,Fd.Element,788968),T=v&&Me.symbolToEntityName(v,788968,r),D=j.createFunctionTypeNode(void 0,[j.createParameterDeclaration(void 0,void 0,"props",void 0,Me.typeToTypeNode(c,r))],T?j.createTypeReferenceNode(T,void 0):j.createKeywordTypeNode(133)),J=fo(1,"props");return J.links.type=c,n0(D,void 0,void 0,[J],v?zc(v):ut,void 0,1,0)}function Ant(r){let c=Zn(rn(r));if(c.jsxFragmentType!==void 0)return c.jsxFragmentType;let _=yp(r);if(!((z.jsx===2||z.jsxFragmentFactory!==void 0)&&_!=="null"))return c.jsxFragmentType=Qe;let v=z.jsx!==1&&z.jsx!==3,T=Jo?y.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,D=ese(r)??Ct(r,_,v?111551:111167,T,!0);if(D===void 0)return c.jsxFragmentType=ut;if(D.escapedName===OZ.Fragment)return c.jsxFragmentType=An(D);let J=D.flags&2097152?pu(D):D,V=D&&nd(J),Q=V&&Sf(V,OZ.Fragment,2),ue=Q&&An(Q);return c.jsxFragmentType=ue===void 0?ut:ue}function MYt(r,c,_){let h=bg(r),v;if(h)v=Ant(r);else{if(HD(r.tagName)){let J=Krt(r),V=lse(r,J);return jw(f6(r.attributes,Qae(V,r),void 0,0),J,r.tagName,r.attributes),Re(r.typeArguments)&&(Ge(r.typeArguments,wo),Jo.add(nN(rn(r),r.typeArguments,y.Expected_0_type_arguments_but_got_1,0,Re(r.typeArguments)))),V}v=Wa(r.tagName)}let T=kf(v);if(et(T))return my(r);let D=Hrt(v,r);return BV(v,T,D.length,0)?HC(r):D.length===0?(h?ot(r,y.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,cl(r)):ot(r.tagName,y.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,cl(r.tagName)),my(r)):u6(r,D,c,_,0)}function RYt(r,c,_){let h=Wa(r.right);if(!Ae(h)){let v=fEe(h);if(v){let T=kf(v);if(et(T))return my(r);let D=Ns(T,0),J=Ns(T,1);if(BV(v,T,D.length,J.length))return HC(r);if(D.length)return u6(r,D,c,_,0)}else if(!(Rse(h)||Rw(h,nr)))return ot(r.right,y.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),my(r)}return cn}function jYt(r,c){return c.length&&sn(c,_=>_.minArgumentCount===0&&!ef(_)&&_.parameters.length<wnt(r,_))}function LYt(r,c,_){switch(r.kind){case 213:return EYt(r,c,_);case 214:return OYt(r,c,_);case 215:return AYt(r,c,_);case 170:return FYt(r,c,_);case 289:case 286:case 285:return MYt(r,c,_);case 226:return RYt(r,c,_)}I.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function p6(r,c,_){let h=Zn(r),v=h.resolvedSignature;if(v&&v!==Bn&&!c)return v;let T=Q1;v||(Q1=By.length),h.resolvedSignature=Bn;let D=LYt(r,c,_||0);return Q1=T,D!==Bn&&(h.resolvedSignature=tt===ht?D:v),D}function gy(r){var c;if(!r||!jn(r))return!1;let _=jl(r)||Ic(r)?r:(Ui(r)||xu(r))&&r.initializer&&Ic(r.initializer)?r.initializer:void 0;if(_){if(AK(r))return!0;if(xu(gg(_.parent)))return!1;let h=ei(_);return!!((c=h?.members)!=null&&c.size)}return!1}function XPe(r,c){var _,h;if(c){let v=Fa(c);if(!v.inferredClassSymbol||!v.inferredClassSymbol.has(co(r))){let T=Tv(r)?r:uT(r);return T.exports=T.exports||Qs(),T.members=T.members||Qs(),T.flags|=c.flags&32,(_=c.exports)!=null&&_.size&&ty(T.exports,c.exports),(h=c.members)!=null&&h.size&&ty(T.members,c.members),(v.inferredClassSymbol||(v.inferredClassSymbol=new Map)).set(co(T),T),T}return v.inferredClassSymbol.get(co(r))}}function BYt(r){var c;let _=r&&use(r,!0),h=(c=_?.exports)==null?void 0:c.get("prototype"),v=h?.valueDeclaration&&qYt(h.valueDeclaration);return v?ei(v):void 0}function use(r,c){if(!r.parent)return;let _,h;if(Ui(r.parent)&&r.parent.initializer===r){if(!jn(r)&&!(hL(r.parent)&&Dc(r)))return;_=r.parent.name,h=r.parent}else if(Vn(r.parent)){let v=r.parent,T=r.parent.operatorToken.kind;if(T===64&&(c||v.right===r))_=v.left,h=_;else if((T===57||T===61)&&(Ui(v.parent)&&v.parent.initializer===v?(_=v.parent.name,h=v.parent):Vn(v.parent)&&v.parent.operatorToken.kind===64&&(c||v.parent.right===v)&&(_=v.parent.left,h=_),!_||!Ek(_)||!lN(_,v.left)))return}else c&&jl(r)&&(_=r.name,h=r);if(!(!h||!_||!c&&!CS(r,yx(_))))return bd(h)}function qYt(r){if(!r.parent)return!1;let c=r.parent;for(;c&&c.kind===211;)c=c.parent;if(c&&Vn(c)&&yx(c.left)&&c.operatorToken.kind===64){let _=EQ(c);return So(_)&&_}}function JYt(r,c){var _,h,v;oH(r,r.typeArguments);let T=p6(r,void 0,c);if(T===Bn)return or;if(pse(T,r),r.expression.kind===108)return zr;if(r.kind===214){let J=T.declaration;if(J&&J.kind!==176&&J.kind!==180&&J.kind!==185&&!(B1(J)&&((h=(_=fN(J))==null?void 0:_.parent)==null?void 0:h.kind)===176)&&!XP(J)&&!gy(J))return Pe&&ot(r,y.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Qe}if(jn(r)&&Rnt(r))return qZe(r.arguments[0]);let D=Yo(T);if(D.flags&12288&&Int(r))return bCe(gg(r.parent));if(r.kind===213&&!r.questionDotToken&&r.parent.kind===244&&D.flags&16384&&Tm(T)){if(!A5(r.expression))ot(r.expression,y.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!TV(r)){let J=ot(r.expression,y.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);SV(r.expression,J)}}if(jn(r)){let J=use(r,!1);if((v=J?.exports)!=null&&v.size){let V=rl(J,J.exports,ce,ce,ce);return V.objectFlags|=4096,_o([D,V])}}return D}function pse(r,c){if(!(r.flags&128)&&r.declaration&&r.declaration.flags&536870912){let _=qV(c),h=F5(Gq(c));lD(_,r.declaration,h,Sw(r))}}function qV(r){switch(r=Qo(r),r.kind){case 213:case 170:case 214:return qV(r.expression);case 215:return qV(r.tag);case 286:case 285:return qV(r.tagName);case 212:return r.argumentExpression;case 211:return r.name;case 183:let c=r;return If(c.typeName)?c.typeName.right:c;default:return r}}function Int(r){if(!Ls(r))return!1;let c=r.expression;if(ai(c)&&c.name.escapedText==="for"&&(c=c.expression),!Ye(c)||c.escapedText!=="Symbol")return!1;let _=oet(!1);return _?_===Ct(c,"Symbol",111551,void 0,!1):!1}function zYt(r){if(oir(r),r.arguments.length===0)return $V(r,Qe);let c=r.arguments[0],_=Nl(c),h=r.arguments.length>1?Nl(r.arguments[1]):void 0;for(let T=2;T<r.arguments.length;++T)Nl(r.arguments[T]);if((_.flags&32768||_.flags&65536||!qs(_,kt))&&ot(c,y.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Pn(_)),h){let T=set(!0);T!==Ro&&$p(h,gV(T,32768),r.arguments[1])}let v=wf(r,c);if(v){let T=lb(v,c,!0,!1);if(T)return $V(r,Fnt(An(T),T,v,c)||Mnt(An(T),T,v,c))}return $V(r,Qe)}function YPe(r,c,_){let h=Qs(),v=fo(2097152,"default");return v.parent=c,v.links.nameType=c_("default"),v.links.aliasTarget=Dl(r),h.set("default",v),rl(_,h,ce,ce,ce)}function Fnt(r,c,_,h){if(Yv(h)&&r&&!et(r)){let T=r;if(!T.defaultOnlyType){let D=YPe(c,_);T.defaultOnlyType=D}return T.defaultOnlyType}}function Mnt(r,c,_,h){var v;if(Ee&&r&&!et(r)){let T=r;if(!T.syntheticType){let D=(v=_.declarations)==null?void 0:v.find(ba);if(xC(D,_,!1,h)){let V=fo(2048,"__type"),Q=YPe(c,_,V);V.links.type=Q,T.syntheticType=OV(r)?Nw(r,Q,V,0,!1):Q}else T.syntheticType=r}return T.syntheticType}return r}function Rnt(r){if(!Xf(r,!0))return!1;if(!Ye(r.expression))return I.fail();let c=Ct(r.expression,r.expression.escapedText,111551,void 0,!0);if(c===He)return!0;if(c.flags&2097152)return!1;let _=c.flags&16?262:c.flags&3?260:0;if(_!==0){let h=Zc(c,_);return!!h&&!!(h.flags&33554432)}return!1}function WYt(r){Fnr(r)||oH(r,r.typeArguments),H<Us.TaggedTemplates&&$u(r,262144);let c=p6(r);return pse(c,r),Yo(c)}function UYt(r,c){if(r.kind===216){let _=rn(r);if(_&&Wl(_.fileName,[".cts",".mts"])&&Ur(r,y.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead),z.erasableSyntaxOnly){let h=yo(_.text,r.pos),v=r.expression.pos;Jo.add(Eu(_,h,v-h,y.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled))}}return jnt(r,c)}function ZPe(r){switch(r.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return ZPe(r.expression);case 224:let c=r.operator,_=r.operand;return c===41&&(_.kind===9||_.kind===10)||c===40&&_.kind===9;case 211:case 212:let h=Qo(r.expression),v=Tc(h)?Ol(h,111551,!0):void 0;return!!(v&&v.flags&384)}return!1}function jnt(r,c){let{type:_,expression:h}=Lnt(r),v=Wa(h,c);if(_g(_))return ZPe(h)||ot(h,y.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Cf(v);let T=Zn(r);return T.assertionExpressionType=v,wo(_),KD(r),Sa(_)}function Lnt(r){let c,_;switch(r.kind){case 234:case 216:c=r.type,_=r.expression;break;case 217:c=JN(r),_=r.expression;break}return{type:c,expression:_}}function $Yt(r){let{type:c}=Lnt(r),_=Mf(r)?c:r,h=Zn(r);I.assertIsDefined(h.assertionExpressionType);let v=Uj(i1(h.assertionExpressionType)),T=Sa(c);et(T)||n(()=>{let D=ad(v);gae(T,D)||ltt(v,T,_,y.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function VYt(r){let c=Wa(r.expression),_=zj(c,r.expression);return Eae(a1(_),r,_!==c)}function HYt(r){return r.flags&64?VYt(r):a1(Wa(r.expression))}function Bnt(r){if(Nat(r),Ge(r.typeArguments,wo),r.kind===233){let _=gg(r.parent);_.kind===226&&_.operatorToken.kind===104&&T2(r,_.right)&&ot(r,y.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let c=r.kind===233?Wa(r.expression):hx(r.exprName)?PV(r.exprName):Wa(r.exprName);return qnt(c,r)}function qnt(r,c){let _=c.typeArguments;if(r===or||et(r)||!Pt(_))return r;let h=Zn(c);if(h.instantiationExpressionTypes||(h.instantiationExpressionTypes=new Map),h.instantiationExpressionTypes.has(r.id))return h.instantiationExpressionTypes.get(r.id);let v=!1,T,D=V(r);h.instantiationExpressionTypes.set(r.id,D);let J=v?T:r;return J&&Jo.add(nN(rn(c),_,y.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Pn(J))),D;function V(ue){let Fe=!1,De=!1,_t=Nt(ue);return v||(v=De),Fe&&!De&&(T??(T=ue)),_t;function Nt(zt){if(zt.flags&524288){let Dr=ph(zt),Tr=Q(Dr.callSignatures),En=Q(Dr.constructSignatures);if(Fe||(Fe=Dr.callSignatures.length!==0||Dr.constructSignatures.length!==0),De||(De=Tr.length!==0||En.length!==0),Tr!==Dr.callSignatures||En!==Dr.constructSignatures){let xn=rl(fo(0,"__instantiationExpression"),Dr.members,Tr,En,Dr.indexInfos);return xn.objectFlags|=8388608,xn.node=c,xn}}else if(zt.flags&58982400){let Dr=Op(zt);if(Dr){let Tr=Nt(Dr);if(Tr!==Dr)return Tr}}else{if(zt.flags&1048576)return ol(zt,V);if(zt.flags&2097152)return _o(ia(zt.types,Nt))}return zt}}function Q(ue){let Fe=Cn(ue,De=>!!De.typeParameters&&$Pe(De,_));return ia(Fe,De=>{let _t=GPe(De,_,!0);return _t?Oj(De,_t,jn(De.declaration)):De})}}function GYt(r){return wo(r.type),eEe(r.expression,r.type)}function eEe(r,c,_){let h=Wa(r,_),v=Sa(c);if(et(v))return v;let T=Br(c.parent,D=>D.kind===238||D.kind===350);return jw(h,v,T,r,y.Type_0_does_not_satisfy_the_expected_type_1),h}function KYt(r){return Qnr(r),r.keywordToken===105?tEe(r):r.keywordToken===102?QYt(r):I.assertNever(r.keywordToken)}function Jnt(r){switch(r.keywordToken){case 102:return aet();case 105:let c=tEe(r);return et(c)?ut:_Zt(c);default:I.assertNever(r.keywordToken)}}function tEe(r){let c=yme(r);if(c)if(c.kind===176){let _=ei(c.parent);return An(_)}else{let _=ei(c);return An(_)}else return ot(r,y.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ut}function QYt(r){100<=X&&X<=199?rn(r).impliedNodeFormat!==99&&ot(r,y.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):X<6&&X!==4&&ot(r,y.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext);let c=rn(r);return I.assert(!!(c.flags&8388608),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?iet():ut}function JV(r){let c=r.valueDeclaration;return ip(An(r),!1,!!c&&(k1(c)||fE(c)))}function rEe(r,c,_){switch(r.name.kind){case 80:{let h=r.name.escapedText;return r.dotDotDotToken?_&12?h:`${h}_${c}`:_&3?h:`${h}_n`}case 207:{if(r.dotDotDotToken){let h=r.name.elements,v=_i(dc(h),Do),T=h.length-(v?.dotDotDotToken?1:0);if(c<T){let D=h[c];if(Do(D))return rEe(D,c,_)}else if(v?.dotDotDotToken)return rEe(v,c-T,_)}break}}return`arg_${c}`}function nEe(r,c=0,_=3,h){if(!r){let v=_i(h?.valueDeclaration,Da);return v?rEe(v,c,_):`${h?.escapedName??"arg"}_${c}`}return I.assert(Ye(r.name)),r.name.escapedText}function I8(r,c,_){var h;let v=r.parameters.length-(ef(r)?1:0);if(c<v)return r.parameters[c].escapedName;let T=r.parameters[v]||oe,D=_||An(T);if(Oo(D)){let J=D.target,V=c-v,Q=(h=J.labeledElementDeclarations)==null?void 0:h[V],ue=J.elementFlags[V];return nEe(Q,V,ue,T)}return T.escapedName}function XYt(r,c){var _;if(((_=r.declaration)==null?void 0:_.kind)===317)return;let h=r.parameters.length-(ef(r)?1:0);if(c<h){let J=r.parameters[c],V=znt(J);return V?{parameter:V,parameterName:J.escapedName,isRestParameter:!1}:void 0}let v=r.parameters[h]||oe,T=znt(v);if(!T)return;let D=An(v);if(Oo(D)){let J=D.target.labeledElementDeclarations,V=c-h,Q=J?.[V],ue=!!Q?.dotDotDotToken;return Q?(I.assert(Ye(Q.name)),{parameter:Q.name,parameterName:Q.name.escapedText,isRestParameter:ue}):void 0}if(c===h)return{parameter:T,parameterName:v.escapedName,isRestParameter:!0}}function znt(r){return r.valueDeclaration&&Da(r.valueDeclaration)&&Ye(r.valueDeclaration.name)&&r.valueDeclaration.name}function Wnt(r){return r.kind===202||Da(r)&&r.name&&Ye(r.name)}function YYt(r,c){let _=r.parameters.length-(ef(r)?1:0);if(c<_){let T=r.parameters[c].valueDeclaration;return T&&Wnt(T)?T:void 0}let h=r.parameters[_]||oe,v=An(h);if(Oo(v)){let T=v.target.labeledElementDeclarations,D=c-_;return T&&T[D]}return h.valueDeclaration&&Wnt(h.valueDeclaration)?h.valueDeclaration:void 0}function dh(r,c){return Jw(r,c)||Qe}function Jw(r,c){let _=r.parameters.length-(ef(r)?1:0);if(c<_)return JV(r.parameters[c]);if(ef(r)){let h=An(r.parameters[_]),v=c-_;if(!Oo(h)||h.target.combinedFlags&12||v<h.target.fixedLength)return C_(h,Dg(v))}}function zV(r,c,_){let h=D_(r),v=mh(r),T=rL(r);if(T&&c>=h-1)return c===h-1?T:Up(C_(T,dr));let D=[],J=[],V=[];for(let Q=c;Q<h;Q++)!T||Q<h-1?(D.push(dh(r,Q)),J.push(Q<v?1:2)):(D.push(T),J.push(8)),V.push(YYt(r,Q));return ev(D,J,_,V)}function Unt(r,c){let _=zV(r,c),h=_&&mV(_);return h&&Ae(h)?Qe:_}function D_(r){let c=r.parameters.length;if(ef(r)){let _=An(r.parameters[c-1]);if(Oo(_))return c+_.target.fixedLength-(_.target.combinedFlags&12?0:1)}return c}function mh(r,c){let _=c&1,h=c&2;if(h||r.resolvedMinArgumentCount===void 0){let v;if(ef(r)){let T=An(r.parameters[r.parameters.length-1]);if(Oo(T)){let D=Va(T.target.elementFlags,V=>!(V&1)),J=D<0?T.target.fixedLength:D;J>0&&(v=r.parameters.length-1+J)}}if(v===void 0){if(!_&&r.flags&32)return 0;v=r.minArgumentCount}if(h)return v;for(let T=v-1;T>=0;T--){let D=dh(r,T);if(_u(D,gnt).flags&131072)break;v=T}r.resolvedMinArgumentCount=v}return r.resolvedMinArgumentCount}function nv(r){if(ef(r)){let c=An(r.parameters[r.parameters.length-1]);return!Oo(c)||!!(c.target.combinedFlags&12)}return!1}function rL(r){if(ef(r)){let c=An(r.parameters[r.parameters.length-1]);if(!Oo(c))return Ae(c)?Nu:c;if(c.target.combinedFlags&12)return k8(c,c.target.fixedLength)}}function nL(r){let c=rL(r);return c&&!km(c)&&!Ae(c)?c:void 0}function iEe(r){return aEe(r,Pr)}function aEe(r,c){return r.parameters.length>0?dh(r,0):c}function $nt(r,c,_){let h=r.parameters.length-(ef(r)?1:0);for(let v=0;v<h;v++){let T=r.parameters[v].valueDeclaration,D=hu(T);if(D){let J=ip(Sa(D),!1,fE(T)),V=dh(c,v);o1(_.inferences,J,V)}}}function ZYt(r,c){if(c.typeParameters)if(!r.typeParameters)r.typeParameters=c.typeParameters;else return;if(c.thisParameter){let h=r.thisParameter;(!h||h.valueDeclaration&&!h.valueDeclaration.type)&&(h||(r.thisParameter=qC(c.thisParameter,void 0)),WV(r.thisParameter,An(c.thisParameter)))}let _=r.parameters.length-(ef(r)?1:0);for(let h=0;h<_;h++){let v=r.parameters[h],T=v.valueDeclaration;if(!hu(T)){let D=Jw(c,h);if(D&&T.initializer){let J=F8(T,0);!qs(J,D)&&qs(D,J=dEe(T,J))&&(D=J)}WV(v,D)}}if(ef(r)){let h=ao(r.parameters);if(h.valueDeclaration?!hu(h.valueDeclaration):Tl(h)&65536){let v=zV(c,_);WV(h,v)}}}function eZt(r){r.thisParameter&&WV(r.thisParameter);for(let c of r.parameters)WV(c)}function WV(r,c){let _=Fa(r);if(_.type)c&&I.assertEqual(_.type,c,"Parameter symbol already has a cached type which differs from newly assigned type");else{let h=r.valueDeclaration;_.type=ip(c||(h?rc(h,!0):An(r)),!1,!!h&&!h.initializer&&fE(h)),h&&h.name.kind!==80&&(_.type===qt&&(_.type=Xa(h.name)),Vnt(h.name,_.type))}}function Vnt(r,c){for(let _ of r.elements)if(!Ju(_)){let h=zo(_,c,!1);_.name.kind===80?Fa(ei(_)).type=h:Vnt(_.name,h)}}function tZt(r){return ZA(uHt(!0),[r])}function rZt(r,c){return ZA(pHt(!0),[r,c])}function nZt(r,c){return ZA(fHt(!0),[r,c])}function iZt(r,c){return ZA(_Ht(!0),[r,c])}function aZt(r,c){return ZA(dHt(!0),[r,c])}function sZt(r,c){return ZA(hHt(!0),[r,c])}function oZt(r,c,_){let h=`${c?"p":"P"}${_?"s":"S"}${r.id}`,v=_s.get(h);if(!v){let T=Qs();T.set("name",Kv("name",r)),T.set("private",Kv("private",c?yt:Kr)),T.set("static",Kv("static",_?yt:Kr)),v=rl(void 0,T,ce,ce,ce),_s.set(h,v)}return v}function Hnt(r,c,_){let h=Pu(r),v=Ca(r.name),T=v?c_(fi(r.name)):e1(r.name),D=wl(r)?rZt(c,_):mm(r)?nZt(c,_):v_(r)?iZt(c,_):Kf(r)?aZt(c,_):is(r)?sZt(c,_):I.failBadSyntaxKind(r),J=oZt(T,v,h);return _o([D,J])}function cZt(r,c){return ZA(mHt(!0),[r,c])}function lZt(r,c){return ZA(gHt(!0),[r,c])}function uZt(r,c){let _=rp("this",r),h=rp("value",c);return xEe(void 0,_,[h],c,void 0,1)}function sEe(r,c,_){let h=rp("target",r),v=rp("context",c),T=Fi([_,zr]);return uL(void 0,void 0,[h,v],T)}function pZt(r){let{parent:c}=r,_=Zn(c);if(!_.decoratorSignature)switch(_.decoratorSignature=cn,c.kind){case 263:case 231:{let v=An(ei(c)),T=tZt(v);_.decoratorSignature=sEe(v,T,v);break}case 174:case 177:case 178:{let h=c;if(!Ri(h.parent))break;let v=wl(h)?IC(Vd(h)):QD(h),T=Pu(h)?An(ei(h.parent)):Sm(ei(h.parent)),D=mm(h)?Cit(v):v_(h)?Pit(v):v,J=Hnt(h,T,v),V=mm(h)?Cit(v):v_(h)?Pit(v):v;_.decoratorSignature=sEe(D,J,V);break}case 172:{let h=c;if(!Ri(h.parent))break;let v=QD(h),T=Pu(h)?An(ei(h.parent)):Sm(ei(h.parent)),D=Ah(h)?cZt(T,v):ke,J=Hnt(h,T,v),V=Ah(h)?lZt(T,v):uZt(T,v);_.decoratorSignature=sEe(D,J,V);break}}return _.decoratorSignature===cn?void 0:_.decoratorSignature}function fZt(r){let{parent:c}=r,_=Zn(c);if(!_.decoratorSignature)switch(_.decoratorSignature=cn,c.kind){case 263:case 231:{let v=An(ei(c)),T=rp("target",v);_.decoratorSignature=uL(void 0,void 0,[T],Fi([v,zr]));break}case 169:{let h=c;if(!ul(h.parent)&&!(wl(h.parent)||v_(h.parent)&&Ri(h.parent.parent))||C2(h.parent)===h)break;let v=C2(h.parent)?h.parent.parameters.indexOf(h)-1:h.parent.parameters.indexOf(h);I.assert(v>=0);let T=ul(h.parent)?An(ei(h.parent.parent)):vat(h.parent),D=ul(h.parent)?ke:bat(h.parent),J=Dg(v),V=rp("target",T),Q=rp("propertyKey",D),ue=rp("parameterIndex",J);_.decoratorSignature=uL(void 0,void 0,[V,Q,ue],zr);break}case 174:case 177:case 178:case 172:{let h=c;if(!Ri(h.parent))break;let v=vat(h),T=rp("target",v),D=bat(h),J=rp("propertyKey",D),V=is(h)?zr:met(QD(h));if(!is(c)||Ah(c)){let ue=met(QD(h)),Fe=rp("descriptor",ue);_.decoratorSignature=uL(void 0,void 0,[T,J,Fe],Fi([V,zr]))}else _.decoratorSignature=uL(void 0,void 0,[T,J],Fi([V,zr]));break}}return _.decoratorSignature===cn?void 0:_.decoratorSignature}function oEe(r){return ne?fZt(r):pZt(r)}function UV(r){let c=X$(!0);return c!==fr?(r=l1(L8(r))||qt,Z0(c,[r])):qt}function Gnt(r){let c=uet(!0);return c!==fr?(r=l1(L8(r))||qt,Z0(c,[r])):qt}function $V(r,c){let _=UV(c);return _===qt?(ot(r,_d(r)?y.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:y.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ut):(Zke(!0)||ot(r,_d(r)?y.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:y.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),_)}function _Zt(r){let c=fo(0,"NewTargetExpression"),_=fo(4,"target",8);_.parent=c,_.links.type=r;let h=Qs([_]);return c.members=h,rl(c,h,ce,ce,ce)}function fse(r,c){if(!r.body)return ut;let _=eu(r),h=(_&2)!==0,v=(_&1)!==0,T,D,J,V=zr;if(r.body.kind!==241)T=Nl(r.body,c&&c&-9),h&&(T=L8(QV(T,!1,r,y.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(v){let Q=Ynt(r,c);Q?Q.length>0&&(T=Fi(Q,2)):V=Pr;let{yieldTypes:ue,nextTypes:Fe}=dZt(r,c);D=Pt(ue)?Fi(ue,2):void 0,J=Pt(Fe)?_o(Fe):void 0}else{let Q=Ynt(r,c);if(!Q)return _&2?$V(r,Pr):Pr;if(Q.length===0){let ue=Vae(r,void 0),Fe=ue&&(rH(ue,_)||zr).flags&32768?ke:zr;return _&2?$V(r,Fe):Fe}T=Fi(Q,2)}if(T||D||J){if(D&&Aae(r,D,3),T&&Aae(r,T,1),J&&Aae(r,J,2),T&&fh(T)||D&&fh(D)||J&&fh(J)){let Q=DPe(r),ue=Q?Q===Vd(r)?v?void 0:T:Gae(Yo(Q),r,void 0):void 0;v?(D=JCe(D,ue,0,h),T=JCe(T,ue,1,h),J=JCe(J,ue,2,h)):T=lKt(T,ue,h)}D&&(D=ad(D)),T&&(T=ad(T)),J&&(J=ad(J))}return v?_se(D||Pr,T||V,J||Drt(2,r)||qt,h):h?UV(T||V):T||V}function _se(r,c,_,h){let v=h?El:Hl,T=v.getGlobalGeneratorType(!1);if(r=v.resolveIterationType(r,void 0)||qt,c=v.resolveIterationType(c,void 0)||qt,T===fr){let D=v.getGlobalIterableIteratorType(!1);return D!==fr?w8(D,[r,c,_]):(v.getGlobalIterableIteratorType(!0),Ro)}return w8(T,[r,c,_])}function dZt(r,c){let _=[],h=[],v=(eu(r)&2)!==0;return cme(r.body,T=>{let D=T.expression?Wa(T.expression,c):$;I_(_,Knt(T,D,Qe,v));let J;if(T.asteriskToken){let V=Cse(D,v?19:17,T.expression);J=V&&V.nextType}else J=Uf(T,void 0);J&&I_(h,J)}),{yieldTypes:_,nextTypes:h}}function Knt(r,c,_,h){let v=r.expression||r,T=r.asteriskToken?Sb(h?19:17,c,_,v):c;return h?GD(T,v,r.asteriskToken?y.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:y.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):T}function Qnt(r,c,_){let h=0;for(let v=0;v<_.length;v++){let T=v<r||v>=c?_[v]:void 0;h|=T!==void 0?Sve.get(T)||32768:0}return h}function Xnt(r){let c=Zn(r);if(c.isExhaustive===void 0){c.isExhaustive=0;let _=mZt(r);c.isExhaustive===0&&(c.isExhaustive=_)}else c.isExhaustive===0&&(c.isExhaustive=!1);return c.isExhaustive}function mZt(r){if(r.expression.kind===221){let h=ert(r);if(!h)return!1;let v=py(Nl(r.expression.expression)),T=Qnt(0,0,h);return v.flags&3?(556800&T)===556800:!Pm(v,D=>a6(D,T)===T)}let c=py(Nl(r.expression));if(!Jj(c))return!1;let _=jae(r);return!_.length||Pt(_,sKt)?!1:sQt(ol(c,Cf),_)}function cEe(r){return r.endFlowNode&&wV(r.endFlowNode)}function Ynt(r,c){let _=eu(r),h=[],v=cEe(r),T=!1;if(_x(r.body,D=>{let J=D.expression;if(J){if(J=Qo(J,!0),_&2&&J.kind===223&&(J=Qo(J.expression,!0)),J.kind===213&&J.expression.kind===80&&Nl(J.expression).symbol===Uo(r.symbol)&&(!xx(r.symbol.valueDeclaration)||fPe(J.expression))){T=!0;return}let V=Nl(J,c&&c&-9);_&2&&(V=L8(QV(V,!1,r,y.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),V.flags&131072&&(T=!0),I_(h,V)}else v=!0}),!(h.length===0&&!v&&(T||gZt(r))))return fe&&h.length&&v&&!(gy(r)&&h.some(D=>D.symbol===r.symbol))&&I_(h,ke),h}function gZt(r){switch(r.kind){case 218:case 219:return!0;case 174:return r.parent.kind===210;default:return!1}}function hZt(r){switch(r.kind){case 176:case 177:case 178:return}if(eu(r)!==0)return;let _;if(r.body&&r.body.kind!==241)_=r.body;else if(_x(r.body,v=>{if(_||!v.expression)return!0;_=v.expression})||!_||cEe(r))return;return yZt(r,_)}function yZt(r,c){if(c=Qo(c,!0),!!(Nl(c).flags&16))return Ge(r.parameters,(h,v)=>{let T=An(h.symbol);if(!T||T.flags&16||!Ye(h.name)||Gj(h.symbol)||Ey(h))return;let D=vZt(r,c,h,T);if(D)return Dj(1,ka(h.name.escapedText),v,D)})}function vZt(r,c,_,h){let v=pN(c)&&c.flowNode||c.parent.kind===253&&c.parent.flowNode||Ry(2,void 0,void 0),T=Ry(32,c,v),D=c1(_.name,h,h,r,T);if(D===h)return;let J=Ry(64,c,v);return c1(_.name,h,D,r,J).flags&131072?D:void 0}function lEe(r,c){n(_);return;function _(){let h=eu(r),v=c&&rH(c,h);if(v&&(ql(v,16384)||v.flags&32769)||r.kind===173||Sl(r.body)||r.body.kind!==241||!cEe(r))return;let T=r.flags&1024,D=dd(r)||r;if(v&&v.flags&131072)ot(D,y.A_function_returning_never_cannot_have_a_reachable_end_point);else if(v&&!T)ot(D,y.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(v&&fe&&!qs(ke,v))ot(D,y.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(z.noImplicitReturns){if(!v){if(!T)return;let J=Yo(Vd(r));if(Vit(r,J))return}ot(D,y.Not_all_code_paths_return_a_value)}}}function Znt(r,c){if(I.assert(r.kind!==174||Lm(r)),KD(r),Ic(r)&&B8(r,r.name),c&&c&4&&Hd(r)){if(!dd(r)&&!QJ(r)){let h=Xj(r);if(h&&iS(Yo(h))){let v=Zn(r);if(v.contextFreeType)return v.contextFreeType;let T=fse(r,c),D=n0(void 0,void 0,void 0,ce,T,void 0,0,64),J=rl(r.symbol,L,[D],ce,ce);return J.objectFlags|=262144,v.contextFreeType=J}}return hc}return!Bse(r)&&r.kind===218&&GEe(r),bZt(r,c),An(ei(r))}function bZt(r,c){let _=Zn(r);if(!(_.flags&64)){let h=Xj(r);if(!(_.flags&64)){_.flags|=64;let v=Yl(Ns(An(ei(r)),0));if(!v)return;if(Hd(r))if(h){let T=Bw(r),D;if(c&&c&2){$nt(v,h,T);let J=rL(h);J&&J.flags&262144&&(D=Mw(h,T.nonFixingMapper))}D||(D=T?Mw(h,T.mapper):h),ZYt(v,D)}else eZt(v);else if(h&&!r.typeParameters&&h.parameters.length>r.parameters.length){let T=Bw(r);c&&c&2&&$nt(v,h,T)}if(h&&!YA(r)&&!v.resolvedReturnType){let T=fse(r,c);v.resolvedReturnType||(v.resolvedReturnType=T)}sL(r)}}}function xZt(r){I.assert(r.kind!==174||Lm(r));let c=eu(r),_=YA(r);if(lEe(r,_),r.body)if(dd(r)||Yo(Vd(r)),r.body.kind===241)wo(r.body);else{let h=Wa(r.body),v=_&&rH(_,c);v&&Pse(r,v,r.body,r.body,h)}}function dse(r,c,_,h=!1){if(!qs(c,Is)){let v=h&&j8(c);return tb(r,!!v&&qs(v,Is),_),!1}return!0}function SZt(r){if(!Ls(r)||!Pk(r))return!1;let c=Nl(r.arguments[2]);if(fu(c,"value")){let v=io(c,"writable"),T=v&&An(v);if(!T||T===Kr||T===yn)return!0;if(v&&v.valueDeclaration&&xu(v.valueDeclaration)){let D=v.valueDeclaration.initializer,J=Wa(D);if(J===Kr||J===yn)return!0}return!1}return!io(c,"set")}function gh(r){return!!(Tl(r)&8||r.flags&4&&fm(r)&8||r.flags&3&&APe(r)&6||r.flags&98304&&!(r.flags&65536)||r.flags&8||Pt(r.declarations,SZt))}function eit(r,c,_){var h,v;if(_===0)return!1;if(gh(c)){if(c.flags&4&&Lc(r)&&r.expression.kind===110){let T=A8(r);if(!(T&&(T.kind===176||gy(T))))return!0;if(c.valueDeclaration){let D=Vn(c.valueDeclaration),J=T.parent===c.valueDeclaration.parent,V=T===c.valueDeclaration.parent,Q=D&&((h=c.parent)==null?void 0:h.valueDeclaration)===T.parent,ue=D&&((v=c.parent)==null?void 0:v.valueDeclaration)===T;return!(J||V||Q||ue)}}return!0}if(Lc(r)){let T=Qo(r.expression);if(T.kind===80){let D=Zn(T).resolvedSymbol;if(D.flags&2097152){let J=zd(D);return!!J&&J.kind===274}}}return!1}function iL(r,c,_){let h=Ll(r,39);return h.kind!==80&&!Lc(h)?(ot(r,c),!1):h.flags&64?(ot(r,_),!1):!0}function TZt(r){Wa(r.expression);let c=Qo(r.expression);if(!Lc(c))return ot(c,y.The_operand_of_a_delete_operator_must_be_a_property_reference),cr;ai(c)&&Ca(c.name)&&ot(c,y.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let _=Zn(c),h=k_(_.resolvedSymbol);return h&&(gh(h)?ot(c,y.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):wZt(c,h)),cr}function wZt(r,c){let _=An(c);fe&&!(_.flags&131075)&&!(Ne?c.flags&16777216:_h(_,16777216))&&ot(r,y.The_operand_of_a_delete_operator_must_be_optional)}function kZt(r){return Wa(r.expression),p8}function CZt(r){return KD(r),$}function tit(r){let c=!1,_=Uq(r);if(_&&Al(_)){let h=kx(r)?y.await_expression_cannot_be_used_inside_a_class_static_block:y.await_using_statements_cannot_be_used_inside_a_class_static_block;ot(r,h),c=!0}else if(!(r.flags&65536))if(Vq(r)){let h=rn(r);if(!sS(h)){let v;if(!rN(h,z)){v??(v=Ch(h,r.pos));let T=kx(r)?y.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:y.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,D=Eu(h,v.start,v.length,T);Jo.add(D),c=!0}switch(X){case 100:case 101:case 199:if(h.impliedNodeFormat===1){v??(v=Ch(h,r.pos)),Jo.add(Eu(h,v.start,v.length,y.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),c=!0;break}case 7:case 99:case 200:case 4:if(H>=4)break;default:v??(v=Ch(h,r.pos));let T=kx(r)?y.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:y.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Jo.add(Eu(h,v.start,v.length,T)),c=!0;break}}}else{let h=rn(r);if(!sS(h)){let v=Ch(h,r.pos),T=kx(r)?y.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:y.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,D=Eu(h,v.start,v.length,T);if(_&&_.kind!==176&&!(eu(_)&2)){let J=Mn(_,y.Did_you_mean_to_mark_this_function_as_async);Hs(D,J)}Jo.add(D),c=!0}}return kx(r)&&SPe(r)&&(ot(r,y.await_expressions_cannot_be_used_in_a_parameter_initializer),c=!0),c}function PZt(r){n(()=>tit(r));let c=Wa(r.expression),_=QV(c,!0,r,y.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return _===c&&!et(_)&&!(c.flags&3)&&eb(!1,Mn(r,y.await_has_no_effect_on_the_type_of_this_expression)),_}function EZt(r){let c=Wa(r.operand);if(c===or)return or;switch(r.operand.kind){case 9:switch(r.operator){case 41:return JD(Dg(-r.operand.text));case 40:return JD(Dg(+r.operand.text))}break;case 10:if(r.operator===41)return JD(nV({negative:!0,base10Value:R4(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return dy(c,r.operand),VV(c,12288)&&ot(r.operand,y.The_0_operator_cannot_be_applied_to_type_symbol,to(r.operator)),r.operator===40?(VV(c,2112)&&ot(r.operand,y.Operator_0_cannot_be_applied_to_type_1,to(r.operator),Pn(i1(c))),dr):uEe(c);case 54:CEe(c,r.operand);let _=a6(c,12582912);return _===4194304?Kr:_===8388608?yt:cr;case 46:case 47:return dse(r.operand,dy(c,r.operand),y.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&iL(r.operand,y.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,y.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),uEe(c)}return ut}function DZt(r){let c=Wa(r.operand);return c===or?or:(dse(r.operand,dy(c,r.operand),y.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&iL(r.operand,y.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,y.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),uEe(c))}function uEe(r){return ql(r,2112)?Np(r,3)||ql(r,296)?Is:kn:dr}function VV(r,c){if(ql(r,c))return!0;let _=py(r);return!!_&&ql(_,c)}function ql(r,c){if(r.flags&c)return!0;if(r.flags&3145728){let _=r.types;for(let h of _)if(ql(h,c))return!0}return!1}function Np(r,c,_){return r.flags&c?!0:_&&r.flags&114691?!1:!!(c&296)&&qs(r,dr)||!!(c&2112)&&qs(r,kn)||!!(c&402653316)&&qs(r,kt)||!!(c&528)&&qs(r,cr)||!!(c&16384)&&qs(r,zr)||!!(c&131072)&&qs(r,Pr)||!!(c&65536)&&qs(r,rr)||!!(c&32768)&&qs(r,ke)||!!(c&4096)&&qs(r,er)||!!(c&67108864)&&qs(r,$r)}function aL(r,c,_){return r.flags&1048576?sn(r.types,h=>aL(h,c,_)):Np(r,c,_)}function mse(r){return!!(oi(r)&16)&&!!r.symbol&&pEe(r.symbol)}function pEe(r){return(r.flags&128)!==0}function fEe(r){let c=zit("hasInstance");if(aL(r,67108864)){let _=io(r,c);if(_){let h=An(_);if(h&&Ns(h,0).length!==0)return h}}}function OZt(r,c,_,h,v){if(_===or||h===or)return or;!Ae(_)&&aL(_,402784252)&&ot(r,y.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),I.assert(SJ(r.parent));let T=p6(r.parent,void 0,v);if(T===Bn)return or;let D=Yo(T);return $p(D,cr,c,y.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),cr}function NZt(r){return Pm(r,c=>c===qo||!!(c.flags&2097152)&&rv(py(c)))}function AZt(r,c,_,h){if(_===or||h===or)return or;if(Ca(r)){if((H<Us.PrivateNamesAndClassStaticBlocks||H<Us.ClassAndClassElementDecorators||!ae)&&$u(r,2097152),!Zn(r).resolvedSymbol&&dp(r)){let v=LPe(r,h.symbol,!0);snt(r,h,v)}}else $p(dy(_,r),ji,r);return $p(dy(h,c),$r,c)&&NZt(h)&&ot(c,y.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Pn(h)),cr}function IZt(r,c,_){let h=r.properties;if(fe&&h.length===0)return dy(c,r);for(let v=0;v<h.length;v++)rit(r,c,v,h,_);return c}function rit(r,c,_,h,v=!1){let T=r.properties,D=T[_];if(D.kind===303||D.kind===304){let J=D.name,V=e1(J);if(_m(V)){let Fe=dm(V),De=io(c,Fe);De&&(RV(De,D,v),FPe(D,!1,!0,c,De))}let Q=C_(c,V,32|(VD(D)?16:0),J),ue=ga(D,Q);return KC(D.kind===304?D:D.initializer,ue)}else if(D.kind===305)if(_<T.length-1)ot(D,y.A_rest_element_must_be_last_in_a_destructuring_pattern);else{H<Us.ObjectSpreadRest&&$u(D,4);let J=[];if(h)for(let Q of h)Lv(Q)||J.push(Q.name);let V=vr(c,J,c.symbol);return YD(h,y.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),KC(D.expression,V)}else ot(D,y.Property_assignment_expected)}function FZt(r,c,_){let h=r.elements;H<Us.DestructuringAssignment&&z.downlevelIteration&&$u(r,512);let v=Sb(193,c,ke,r)||ut,T=z.noUncheckedIndexedAccess?void 0:v;for(let D=0;D<h.length;D++){let J=v;r.elements[D].kind===230&&(J=T=T??(Sb(65,c,ke,r)||ut)),nit(r,c,D,J,_)}return c}function nit(r,c,_,h,v){let T=r.elements,D=T[_];if(D.kind!==232){if(D.kind!==230){let J=Dg(_);if(bb(c)){let V=32|(VD(D)?16:0),Q=Zx(c,J,V,tL(D,J))||ut,ue=VD(D)?Cm(Q,524288):Q,Fe=ga(D,ue);return KC(D,Fe,v)}return KC(D,h,v)}if(_<T.length-1)ot(D,y.A_rest_element_must_be_last_in_a_destructuring_pattern);else{let J=D.expression;if(J.kind===226&&J.operatorToken.kind===64)ot(J.operatorToken,y.A_rest_element_cannot_have_an_initializer);else{YD(r.elements,y.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);let V=E_(c,Oo)?ol(c,Q=>k8(Q,_)):Up(h);return KC(J,V,v)}}}}function KC(r,c,_,h){let v;if(r.kind===304){let T=r;T.objectAssignmentInitializer&&(fe&&!_h(Wa(T.objectAssignmentInitializer),16777216)&&(c=Cm(c,524288)),LZt(T.name,T.equalsToken,T.objectAssignmentInitializer,_)),v=r.name}else v=r;return v.kind===226&&v.operatorToken.kind===64&&(ze(v,_),v=v.left,fe&&(c=Cm(c,524288))),v.kind===210?IZt(v,c,h):v.kind===209?FZt(v,c,_):MZt(v,c,_)}function MZt(r,c,_){let h=Wa(r,_),v=r.parent.kind===305?y.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:y.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,T=r.parent.kind===305?y.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:y.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return iL(r,v,T)&&jw(c,h,r,r),QO(r)&&$u(r.parent,1048576),c}function HV(r){switch(r=Qo(r),r.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return HV(r.whenTrue)&&HV(r.whenFalse);case 226:return O0(r.operatorToken.kind)?!1:HV(r.left)&&HV(r.right);case 224:case 225:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function _Ee(r,c){return(c.flags&98304)!==0||gae(r,c)}function RZt(){let r=Iz(c,_,h,v,T,D);return(De,_t)=>{let Nt=r(De,_t);return I.assertIsDefined(Nt),Nt};function c(De,_t,Nt){return _t?(_t.stackIndex++,_t.skip=!1,Q(_t,void 0),Fe(_t,void 0)):_t={checkMode:Nt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},jn(De)&&HP(De)?(_t.skip=!0,Fe(_t,Wa(De.right,Nt)),_t):(jZt(De),De.operatorToken.kind===64&&(De.left.kind===210||De.left.kind===209)&&(_t.skip=!0,Fe(_t,KC(De.left,Wa(De.right,Nt),Nt,De.right.kind===110))),_t)}function _(De,_t,Nt){if(!_t.skip)return J(_t,De)}function h(De,_t,Nt){if(!_t.skip){let zt=ue(_t);I.assertIsDefined(zt),Q(_t,zt),Fe(_t,void 0);let Dr=De.kind;if(bJ(Dr)){let Tr=Nt.parent;for(;Tr.kind===217||N5(Tr);)Tr=Tr.parent;(Dr===56||LS(Tr))&&kEe(Nt.left,zt,LS(Tr)?Tr.thenStatement:void 0),O5(Dr)&&CEe(zt,Nt.left)}}}function v(De,_t,Nt){if(!_t.skip)return J(_t,De)}function T(De,_t){let Nt;if(_t.skip)Nt=ue(_t);else{let zt=V(_t);I.assertIsDefined(zt);let Dr=ue(_t);I.assertIsDefined(Dr),Nt=iit(De.left,De.operatorToken,De.right,zt,Dr,_t.checkMode,De)}return _t.skip=!1,Q(_t,void 0),Fe(_t,void 0),_t.stackIndex--,Nt}function D(De,_t,Nt){return Fe(De,_t),De}function J(De,_t){if(Vn(_t))return _t;Fe(De,Wa(_t,De.checkMode))}function V(De){return De.typeStack[De.stackIndex]}function Q(De,_t){De.typeStack[De.stackIndex]=_t}function ue(De){return De.typeStack[De.stackIndex+1]}function Fe(De,_t){De.typeStack[De.stackIndex+1]=_t}}function jZt(r){let{left:c,operatorToken:_,right:h}=r;if(_.kind===61){Vn(c)&&(c.operatorToken.kind===57||c.operatorToken.kind===56)&&Ur(c,y._0_and_1_operations_cannot_be_mixed_without_parentheses,to(c.operatorToken.kind),to(_.kind)),Vn(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===56)&&Ur(h,y._0_and_1_operations_cannot_be_mixed_without_parentheses,to(h.operatorToken.kind),to(_.kind));let v=Ll(c,63),T=gse(v);T!==3&&(r.parent.kind===226?ot(v,y.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):T===1?ot(v,y.This_expression_is_always_nullish):ot(v,y.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}function gse(r){switch(r=Ll(r),r.kind){case 223:case 213:case 215:case 212:case 236:case 214:case 211:case 229:case 110:return 3;case 226:switch(r.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return gse(r.right)}return 2;case 227:return gse(r.whenTrue)|gse(r.whenFalse);case 106:return 1;case 80:return sf(r)===xe?1:3}return 2}function LZt(r,c,_,h,v){let T=c.kind;if(T===64&&(r.kind===210||r.kind===209))return KC(r,Wa(_,h),h,_.kind===110);let D;O5(T)?D=dL(r,h):D=Wa(r,h);let J=Wa(_,h);return iit(r,c,_,D,J,h,v)}function iit(r,c,_,h,v,T,D){let J=c.kind;switch(J){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(h===or||v===or)return or;h=dy(h,r),v=dy(v,_);let Fr;if(h.flags&528&&v.flags&528&&(Fr=De(c.kind))!==void 0)return ot(D||c,y.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,to(c.kind),to(Fr)),dr;{let ki=dse(r,h,y.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Pa=dse(_,v,y.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),ri;if(Np(h,3)&&Np(v,3)||!(ql(h,2112)||ql(v,2112)))ri=dr;else if(V(h,v)){switch(J){case 50:case 73:Dr();break;case 43:case 68:H<3&&ot(D,y.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ri=kn}else Dr(V),ri=ut;if(ki&&Pa)switch(_t(ri),J){case 48:case 71:case 49:case 72:case 50:case 73:let os=gt(_);typeof os.value=="number"&&Math.abs(os.value)>=32&&rh(L1(gg(_.parent.parent)),D||c,y.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,cl(r),to(J),os.value%32);break;default:break}return ri}case 40:case 65:if(h===or||v===or)return or;!Np(h,402653316)&&!Np(v,402653316)&&(h=dy(h,r),v=dy(v,_));let kr;return Np(h,296,!0)&&Np(v,296,!0)?kr=dr:Np(h,2112,!0)&&Np(v,2112,!0)?kr=kn:Np(h,402653316,!0)||Np(v,402653316,!0)?kr=kt:(Ae(h)||Ae(v))&&(kr=et(h)||et(v)?ut:Qe),kr&&!Fe(J)?kr:kr?(J===65&&_t(kr),kr):(Dr((Pa,ri)=>Np(Pa,402655727)&&Np(ri,402655727)),Qe);case 30:case 32:case 33:case 34:return Fe(J)&&(h=BCe(dy(h,r)),v=BCe(dy(v,_)),zt((ki,Pa)=>{if(Ae(ki)||Ae(Pa))return!0;let ri=qs(ki,Is),os=qs(Pa,Is);return ri&&os||!ri&&!os&&cV(ki,Pa)})),cr;case 35:case 36:case 37:case 38:if(!(T&&T&64)){if((qK(r)||qK(_))&&(!jn(r)||J===37||J===38)){let ki=J===35||J===37;ot(D,y.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,ki?"false":"true")}En(D,J,r,_),zt((ki,Pa)=>_Ee(ki,Pa)||_Ee(Pa,ki))}return cr;case 104:return OZt(r,_,h,v,T);case 103:return AZt(r,_,h,v);case 56:case 77:{let ki=_h(h,4194304)?Fi([fKt(fe?h:i1(v)),v]):h;return J===77&&_t(v),ki}case 57:case 76:{let ki=_h(h,8388608)?Fi([a1(Ptt(h)),v],2):h;return J===76&&_t(v),ki}case 61:case 78:{let ki=_h(h,262144)?Fi([a1(h),v],2):h;return J===78&&_t(v),ki}case 64:let Un=Vn(r.parent)?$l(r.parent):0;return Q(Un,v),Nt(Un)?((!(v.flags&524288)||Un!==2&&Un!==6&&!n1(v)&&!sPe(v)&&!(oi(v)&1))&&_t(v),h):(_t(v),v);case 28:if(!z.allowUnreachableCode&&HV(r)&&!ue(r.parent)){let ki=rn(r),Pa=ki.text,ri=yo(Pa,r.pos);ki.parseDiagnostics.some(Ms=>Ms.code!==y.JSX_expressions_must_have_one_parent_element.code?!1:CK(Ms,ri))||ot(r,y.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return v;default:return I.fail()}function V(Fr,kr){return Np(Fr,2112)&&Np(kr,2112)}function Q(Fr,kr){if(Fr===2)for(let Un of gb(kr)){let ki=An(Un);if(ki.symbol&&ki.symbol.flags&32){let Pa=Un.escapedName,ri=Ct(Un.valueDeclaration,Pa,788968,void 0,!1);ri?.declarations&&ri.declarations.some(Gk)&&(H0(ri,y.Duplicate_identifier_0,ka(Pa),Un),H0(Un,y.Duplicate_identifier_0,ka(Pa),ri))}}}function ue(Fr){return Fr.parent.kind===217&&e_(Fr.left)&&Fr.left.text==="0"&&(Ls(Fr.parent.parent)&&Fr.parent.parent.expression===Fr.parent||Fr.parent.parent.kind===215)&&(Lc(Fr.right)||Ye(Fr.right)&&Fr.right.escapedText==="eval")}function Fe(Fr){let kr=VV(h,12288)?r:VV(v,12288)?_:void 0;return kr?(ot(kr,y.The_0_operator_cannot_be_applied_to_type_symbol,to(Fr)),!1):!0}function De(Fr){switch(Fr){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function _t(Fr){O0(J)&&n(kr);function kr(){let Un=h;if(v3(c.kind)&&r.kind===211&&(Un=rse(r,void 0,!0)),iL(r,y.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let ki;if(Ne&&ai(r)&&ql(Fr,32768)){let Pa=fu(Ap(r.expression),r.name.escapedText);yae(Fr,Pa)&&(ki=y.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}jw(Fr,Un,r,_,ki)}}}function Nt(Fr){var kr;switch(Fr){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Un=bd(r),ki=HP(_);return!!ki&&So(ki)&&!!((kr=Un?.exports)!=null&&kr.size);default:return!1}}function zt(Fr){return Fr(h,v)?!1:(Dr(Fr),!0)}function Dr(Fr){let kr=!1,Un=D||c;if(Fr){let Ms=l1(h),pc=l1(v);kr=!(Ms===h&&pc===v)&&!!(Ms&&pc)&&Fr(Ms,pc)}let ki=h,Pa=v;!kr&&Fr&&([ki,Pa]=BZt(h,v,Fr));let[ri,os]=ST(ki,Pa);Tr(Un,kr,ri,os)||tb(Un,kr,y.Operator_0_cannot_be_applied_to_types_1_and_2,to(c.kind),ri,os)}function Tr(Fr,kr,Un,ki){switch(c.kind){case 37:case 35:case 38:case 36:return tb(Fr,kr,y.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Un,ki);default:return}}function En(Fr,kr,Un,ki){let Pa=xn(Qo(Un)),ri=xn(Qo(ki));if(Pa||ri){let os=ot(Fr,y.This_condition_will_always_return_0,to(kr===37||kr===35?97:112));if(Pa&&ri)return;let Ms=kr===38||kr===36?to(54):"",pc=Pa?ki:Un,bs=Qo(pc);Hs(os,Mn(pc,y.Did_you_mean_0,`${Ms}Number.isNaN(${Tc(bs)?B_(bs):"..."})`))}}function xn(Fr){if(Ye(Fr)&&Fr.escapedText==="NaN"){let kr=yHt();return!!kr&&kr===sf(Fr)}return!1}}function BZt(r,c,_){let h=r,v=c,T=i1(r),D=i1(c);return _(T,D)||(h=T,v=D),[h,v]}function qZt(r){n(Fe);let c=Ed(r);if(!c)return Qe;let _=eu(c);if(!(_&1))return Qe;let h=(_&2)!==0;r.asteriskToken&&(h&&H<Us.AsyncGenerators&&$u(r,26624),!h&&H<Us.Generators&&z.downlevelIteration&&$u(r,256));let v=YA(c);v&&v.flags&1048576&&(v=_u(v,De=>hEe(De,_,void 0)));let T=v&&IEe(v,h),D=T&&T.yieldType||Qe,J=T&&T.nextType||Qe,V=r.expression?Wa(r.expression):$,Q=Knt(r,V,J,h);if(v&&Q&&jw(Q,D,r.expression||r,r.expression),r.asteriskToken)return DEe(h?19:17,1,V,r.expression)||Qe;if(v)return Tb(2,v,h)||Qe;let ue=Drt(2,c);return ue||(ue=Qe,n(()=>{if(Pe&&!Wge(r)){let De=Uf(r,void 0);(!De||Ae(De))&&ot(r,y.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),ue;function Fe(){r.flags&16384||sp(r,y.A_yield_expression_is_only_allowed_in_a_generator_body),SPe(r)&&ot(r,y.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function JZt(r,c){let _=dL(r.condition,c);kEe(r.condition,_,r.whenTrue);let h=Wa(r.whenTrue,c),v=Wa(r.whenFalse,c);return Fi([h,v],2)}function ait(r){let c=r.parent;return Mf(c)&&ait(c)||Nc(c)&&c.argumentExpression===r}function zZt(r){let c=[r.head.text],_=[];for(let v of r.templateSpans){let T=Wa(v.expression);VV(T,12288)&&ot(v.expression,y.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),c.push(v.literal.text),_.push(qs(T,Xs)?T:kt)}let h=r.parent.kind!==215&>(r).value;return h?JD(c_(h)):M8(r)||ait(r)||Pm(Uf(r,void 0)||qt,WZt)?FC(c,_):kt}function WZt(r){return!!(r.flags&134217856||r.flags&58982400&&ql(Op(r)||qt,402653316))}function UZt(r){return J2(r)&&!Vk(r.parent)?r.parent.parent:r}function f6(r,c,_,h){let v=UZt(r);DV(v,c,!1),aXt(v,_);let T=Wa(r,h|1|(_?2:0));_&&_.intraExpressionInferenceSites&&(_.intraExpressionInferenceSites=void 0);let D=ql(T,2944)&&hse(T,Gae(c,r,void 0))?Cf(T):T;return sXt(),Qj(),D}function Nl(r,c){if(c)return Wa(r,c);let _=Zn(r);if(!_.resolvedType){let h=tt,v=Hn;tt=ht,Hn=void 0,_.resolvedType=Wa(r,c),Hn=v,tt=h}return _.resolvedType}function sit(r){return r=Qo(r,!0),r.kind===216||r.kind===234||W2(r)}function F8(r,c,_){let h=c5(r);if(jn(r)){let T=ez(r);if(T)return eEe(h,T,c)}let v=gEe(h)||(_?f6(h,_,void 0,c||0):Nl(h,c));if(Da(Do(r)?MP(r):r)){if(r.name.kind===206&&xb(v))return $Zt(v,r.name);if(r.name.kind===207&&Oo(v))return VZt(v,r.name)}return v}function $Zt(r,c){let _;for(let T of c.elements)if(T.initializer){let D=oit(T);D&&!io(r,D)&&(_=Zr(_,T))}if(!_)return r;let h=Qs();for(let T of gb(r))h.set(T.escapedName,T);for(let T of _){let D=fo(16777220,oit(T));D.links.type=ct(T,!1,!1),h.set(D.escapedName,D)}let v=rl(r.symbol,h,ce,ce,Wp(r));return v.objectFlags=r.objectFlags,v}function oit(r){let c=e1(r.propertyName||r.name);return _m(c)?dm(c):void 0}function VZt(r,c){if(r.target.combinedFlags&12||yb(r)>=c.elements.length)return r;let _=c.elements,h=Ow(r).slice(),v=r.target.elementFlags.slice();for(let T=yb(r);T<_.length;T++){let D=_[T];(T<_.length-1||!(D.kind===208&&D.dotDotDotToken))&&(h.push(!Ju(D)&&VD(D)?ct(D,!1,!1):Qe),v.push(2),!Ju(D)&&!VD(D)&&jT(D,Qe))}return ev(h,v,r.target.readonly)}function dEe(r,c){let _=cit(r,c);if(jn(r)){if(btt(_))return jT(r,Qe),Qe;if(wae(_))return jT(r,Nu),Nu}return _}function cit(r,c){return Ww(r)&6||GF(r)?c:RT(c)}function hse(r,c){if(c){if(c.flags&3145728){let _=c.types;return Pt(_,h=>hse(r,h))}if(c.flags&58982400){let _=Op(c)||qt;return ql(_,4)&&ql(r,128)||ql(_,8)&&ql(r,256)||ql(_,64)&&ql(r,2048)||ql(_,4096)&&ql(r,8192)||hse(r,_)}return!!(c.flags&406847616&&ql(r,128)||c.flags&256&&ql(r,256)||c.flags&2048&&ql(r,2048)||c.flags&512&&ql(r,512)||c.flags&8192&&ql(r,8192))}return!1}function M8(r){let c=r.parent;return d2(c)&&_g(c.type)||W2(c)&&_g(JN(c))||ZPe(r)&&AC(Uf(r,0))||(Mf(c)||kp(c)||gm(c))&&M8(c)||(xu(c)||Jp(c)||FN(c))&&M8(c.parent)}function R8(r,c,_){let h=Wa(r,c,_);return M8(r)||ume(r)?Cf(h):sit(r)?h:qCe(h,Gae(Uf(r,void 0),r,void 0))}function lit(r,c){return r.name.kind===167&&Og(r.name),R8(r.initializer,c)}function uit(r,c){Fat(r),r.name.kind===167&&Og(r.name);let _=Znt(r,c);return pit(r,_,c)}function pit(r,c,_){if(_&&_&10){let h=eL(c,0,!0),v=eL(c,1,!0),T=h||v;if(T&&T.typeParameters){let D=BT(r,2);if(D){let J=eL(a1(D),h?0:1,!1);if(J&&!J.typeParameters){if(_&8)return fit(r,_),hc;let V=Bw(r),Q=V.signature&&Yo(V.signature),ue=Q&&ynt(Q);if(ue&&!ue.typeParameters&&!sn(V.inferences,_6)){let Fe=QZt(V,T.typeParameters),De=Uke(T,Fe),_t=Dt(V.inferences,Nt=>HCe(Nt.typeParameter));if(WCe(De,J,(Nt,zt)=>{o1(_t,Nt,zt,0,!0)}),Pt(_t,_6)&&(UCe(De,J,(Nt,zt)=>{o1(_t,Nt,zt)}),!GZt(V.inferences,_t)))return KZt(V.inferences,_t),V.inferredTypeParameters=ya(V.inferredTypeParameters,Fe),IC(De)}return IC(vnt(T,J,V),li(qd,Fe=>Fe&&Dt(Fe.inferences,De=>De.typeParameter)).slice())}}}}return c}function fit(r,c){if(c&2){let _=Bw(r);_.flags|=4}}function _6(r){return!!(r.candidates||r.contraCandidates)}function HZt(r){return!!(r.candidates||r.contraCandidates||OZe(r.typeParameter))}function GZt(r,c){for(let _=0;_<r.length;_++)if(_6(r[_])&&_6(c[_]))return!0;return!1}function KZt(r,c){for(let _=0;_<r.length;_++)!_6(r[_])&&_6(c[_])&&(r[_]=c[_])}function QZt(r,c){let _=[],h,v;for(let T of c){let D=T.symbol.escapedName;if(mEe(r.inferredTypeParameters,D)||mEe(_,D)){let J=XZt(ya(r.inferredTypeParameters,_),D),V=fo(262144,J),Q=pa(V);Q.target=T,h=Zr(h,T),v=Zr(v,Q),_.push(Q)}else _.push(T)}if(v){let T=P_(h,v);for(let D of v)D.mapper=T}return _}function mEe(r,c){return Pt(r,_=>_.symbol.escapedName===c)}function XZt(r,c){let _=c.length;for(;_>1&&c.charCodeAt(_-1)>=48&&c.charCodeAt(_-1)<=57;)_--;let h=c.slice(0,_);for(let v=1;;v++){let T=h+v;if(!mEe(r,T))return T}}function _it(r){let c=GC(r);if(c&&!c.typeParameters)return Yo(c)}function YZt(r){let c=Wa(r.expression),_=zj(c,r.expression),h=_it(c);return h&&Eae(h,r,_!==c)}function Ap(r){let c=gEe(r);if(c)return c;if(r.flags&268435456&&Hn){let v=Hn[Wo(r)];if(v)return v}let _=hn,h=Wa(r,64);if(hn!==_){let v=Hn||(Hn=[]);v[Wo(r)]=h,zge(r,r.flags|268435456)}return h}function gEe(r){let c=Qo(r,!0);if(W2(c)){let _=JN(c);if(!_g(_))return Sa(_)}if(c=Qo(r),kx(c)){let _=gEe(c.expression);return _?GD(_):void 0}if(Ls(c)&&c.expression.kind!==108&&!Xf(c,!0)&&!Int(c))return gk(c)?YZt(c):_it(l6(c.expression));if(d2(c)&&!_g(c.type))return Sa(c.type);if(hk(r)||QI(r))return Wa(r)}function GV(r){let c=Zn(r);if(c.contextFreeType)return c.contextFreeType;DV(r,Qe,!1);let _=c.contextFreeType=Wa(r,4);return Qj(),_}function Wa(r,c,_){var h,v;(h=Fn)==null||h.push(Fn.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let T=N;N=r,S=0;let D=ter(r,c,_),J=pit(r,D,c);return mse(J)&&ZZt(r,J),N=T,(v=Fn)==null||v.pop(),J}function ZZt(r,c){let _=r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r||(r.kind===80||r.kind===166)&&Fse(r)||r.parent.kind===186&&r.parent.exprName===r||r.parent.kind===281;if(_||ot(r,y.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),z.isolatedModules||z.verbatimModuleSyntax&&_&&!Ct(r,Af(r),2097152,void 0,!1,!0)){I.assert(!!(c.symbol.flags&128));let h=c.symbol.valueDeclaration,v=e.getRedirectReferenceForResolutionFromSourceOfProject(rn(h).resolvedPath);h.flags&33554432&&!AS(r)&&(!v||!vx(v.commandLine.options))&&ot(r,y.Cannot_access_ambient_const_enums_when_0_is_enabled,qe)}}function eer(r,c){if(fd(r)){if(zX(r))return eEe(r.expression,WX(r),c);if(W2(r))return jnt(r,c)}return Wa(r.expression,c)}function ter(r,c,_){let h=r.kind;if(i)switch(h){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(h){case 80:return EQt(r,c);case 81:return KXt(r);case 110:return PV(r);case 108:return $ae(r);case 106:return Le;case 15:case 11:return YCe(r)?Xt:JD(c_(r.text));case 9:return qat(r),JD(Dg(+r.text));case 10:return nir(r),JD(nV({negative:!1,base10Value:R4(r.text)}));case 112:return yt;case 97:return Kr;case 228:return zZt(r);case 14:return vXt(r);case 209:return qrt(r,c,_);case 210:return PXt(r,c);case 211:return rse(r,c);case 166:return nnt(r,c);case 212:return uYt(r,c);case 213:if(r.expression.kind===102)return zYt(r);case 214:return JYt(r,c);case 215:return WYt(r);case 217:return eer(r,c);case 231:return $tr(r);case 218:case 219:return Znt(r,c);case 221:return kZt(r);case 216:case 234:return UYt(r,c);case 235:return HYt(r);case 233:return Bnt(r);case 238:return GYt(r);case 236:return KYt(r);case 220:return TZt(r);case 222:return CZt(r);case 223:return PZt(r);case 224:return EZt(r);case 225:return DZt(r);case 226:return ze(r,c);case 227:return JZt(r,c);case 230:return bXt(r,c);case 232:return $;case 229:return qZt(r);case 237:return xXt(r);case 294:return zXt(r,c);case 284:return NXt(r,c);case 285:return DXt(r,c);case 288:return AXt(r);case 292:return FXt(r,c);case 286:I.fail("Shouldn't ever directly check a JsxOpeningElement")}return ut}function dit(r){l0(r),r.expression&&sp(r.expression,y.Type_expected),wo(r.constraint),wo(r.default);let c=kw(ei(r));Op(c),xVt(c)||ot(r.default,y.Type_parameter_0_has_a_circular_default,Pn(c));let _=Wf(c),h=Ew(c);_&&h&&$p(h,id(Ma(_,Iw(c,h)),h),r.default,y.Type_0_does_not_satisfy_the_constraint_1),KD(r),n(()=>q8(r.name,y.Type_parameter_name_cannot_be_0))}function rer(r){var c,_;if(Cp(r.parent)||Ri(r.parent)||Wm(r.parent)){let h=kw(ei(r)),v=MCe(h)&24576;if(v){let T=ei(r.parent);if(Wm(r.parent)&&!(oi(zc(T))&48))ot(r,y.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(v===8192||v===16384){(c=Fn)==null||c.push(Fn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:ap(zc(T)),id:ap(h)});let D=pV(T,h,v===16384?Et:Xe),J=pV(T,h,v===16384?Xe:Et),V=h;F=h,$p(D,J,r,y.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),F=V,(_=Fn)==null||_.pop()}}}}function mit(r){l0(r),eH(r);let c=Ed(r);Ai(r,31)&&(z.erasableSyntaxOnly&&ot(r,y.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),c.kind===176&&jm(c.body)||ot(r,y.A_parameter_property_is_only_allowed_in_a_constructor_implementation),c.kind===176&&Ye(r.name)&&r.name.escapedText==="constructor"&&ot(r.name,y.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&fE(r)&&Os(r.name)&&c.body&&ot(r,y.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&Ye(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(c.parameters.indexOf(r)!==0&&ot(r,y.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(c.kind===176||c.kind===180||c.kind===185)&&ot(r,y.A_constructor_cannot_have_a_this_parameter),c.kind===219&&ot(r,y.An_arrow_function_cannot_have_a_this_parameter),(c.kind===177||c.kind===178)&&ot(r,y.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!Os(r.name)&&!qs(Eg(An(r.symbol)),Y_)&&ot(r,y.A_rest_parameter_must_be_of_an_array_type)}function ner(r){let c=ier(r);if(!c){ot(r,y.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let _=Vd(c),h=Tm(_);if(!h)return;wo(r.type);let{parameterName:v}=r;if(h.kind!==0&&h.kind!==2){if(h.parameterIndex>=0){if(ef(_)&&h.parameterIndex===_.parameters.length-1)ot(v,y.A_type_predicate_cannot_reference_a_rest_parameter);else if(h.type){let T=()=>vs(void 0,y.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);$p(h.type,An(_.parameters[h.parameterIndex]),r.type,void 0,T)}}else if(v){let T=!1;for(let{name:D}of c.parameters)if(Os(D)&&git(D,v,h.parameterName)){T=!0;break}T||ot(r.parameterName,y.Cannot_find_parameter_0,h.parameterName)}}}function ier(r){switch(r.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let c=r.parent;if(r===c.type)return c}}function git(r,c,_){for(let h of r.elements){if(Ju(h))continue;let v=h.name;if(v.kind===80&&v.escapedText===_)return ot(c,y.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,_),!0;if((v.kind===207||v.kind===206)&&git(v,c,_))return!0}}function sL(r){r.kind===181?Anr(r):(r.kind===184||r.kind===262||r.kind===185||r.kind===179||r.kind===176||r.kind===180)&&Bse(r);let c=eu(r);c&4||((c&3)===3&&H<Us.AsyncGenerators&&$u(r,6144),(c&3)===2&&H<Us.AsyncFunctions&&$u(r,64),c&3&&H<Us.Generators&&$u(r,128)),nH(nx(r)),ztr(r),Ge(r.parameters,mit),r.type&&wo(r.type),n(_);function _(){ntr(r);let h=dd(r),v=h;if(jn(r)){let T=xS(r);if(T&&T.typeExpression&&W_(T.typeExpression.type)){let D=GC(Sa(T.typeExpression));D&&D.declaration&&(h=dd(D.declaration),v=T.typeExpression.type)}}if(Pe&&!h)switch(r.kind){case 180:ot(r,y.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:ot(r,y.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(h&&v){let T=eu(r);if((T&5)===1){let D=Sa(h);D===zr?ot(v,y.A_generator_cannot_have_a_void_type_annotation):hEe(D,T,v)}else(T&3)===2&&Mer(r,h,v)}r.kind!==181&&r.kind!==317&&aS(r)}}function hEe(r,c,_){let h=Tb(0,r,(c&2)!==0)||Qe,v=Tb(1,r,(c&2)!==0)||h,T=Tb(2,r,(c&2)!==0)||qt,D=_se(h,v,T,!!(c&2));return $p(D,r,_)}function aer(r){let c=new Map,_=new Map,h=new Map;for(let T of r.members)if(T.kind===176)for(let D of T.parameters)L_(D,T)&&!Os(D.name)&&v(c,D.name,D.name.escapedText,3);else{let D=Vs(T),J=T.name;if(!J)continue;let V=Ca(J),Q=V&&D?16:0,ue=V?h:D?_:c,Fe=J&&YEe(J);if(Fe)switch(T.kind){case 177:v(ue,J,Fe,1|Q);break;case 178:v(ue,J,Fe,2|Q);break;case 172:v(ue,J,Fe,3|Q);break;case 174:v(ue,J,Fe,8|Q);break}}function v(T,D,J,V){let Q=T.get(J);if(Q)if((Q&16)!==(V&16))ot(D,y.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,cl(D));else{let ue=!!(Q&8),Fe=!!(V&8);ue||Fe?ue!==Fe&&ot(D,y.Duplicate_identifier_0,cl(D)):Q&V&-17?ot(D,y.Duplicate_identifier_0,cl(D)):T.set(J,Q|V)}else T.set(J,V)}}function ser(r){for(let c of r.members){let _=c.name;if(Vs(c)&&_){let v=YEe(_);switch(v){case"name":case"length":case"caller":case"arguments":if(ae)break;case"prototype":let T=y.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,D=kT(ei(r));ot(_,T,v,D);break}}}}function hit(r){let c=new Map;for(let _ of r.members)if(_.kind===171){let h,v=_.name;switch(v.kind){case 11:case 9:h=v.text;break;case 80:h=fi(v);break;default:continue}c.get(h)?(ot(ls(_.symbol.valueDeclaration),y.Duplicate_identifier_0,h),ot(_.name,y.Duplicate_identifier_0,h)):c.set(h,!0)}}function yEe(r){if(r.kind===264){let _=ei(r);if(_.declarations&&_.declarations.length>0&&_.declarations[0]!==r)return}let c=Qie(ei(r));if(c?.declarations){let _=new Map;for(let h of c.declarations)wx(h)&&h.parameters.length===1&&h.parameters[0].type&&UC(Sa(h.parameters[0].type),v=>{let T=_.get(ap(v));T?T.declarations.push(h):_.set(ap(v),{type:v,declarations:[h]})});_.forEach(h=>{if(h.declarations.length>1)for(let v of h.declarations)ot(v,y.Duplicate_index_signature_for_type_0,Pn(h.type))})}}function yit(r){!l0(r)&&!eir(r)&&qse(r.name),eH(r),yse(r),Ai(r,64)&&r.kind===172&&r.initializer&&ot(r,y.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Oc(r.name))}function oer(r){return Ca(r.name)&&ot(r,y.Private_identifiers_are_not_allowed_outside_class_bodies),yit(r)}function cer(r){Fat(r)||qse(r.name),wl(r)&&r.asteriskToken&&Ye(r.name)&&fi(r.name)==="constructor"&&ot(r.name,y.Class_constructor_may_not_be_a_generator),Oit(r),Ai(r,64)&&r.kind===174&&r.body&&ot(r,y.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Oc(r.name)),Ca(r.name)&&!dp(r)&&ot(r,y.Private_identifiers_are_not_allowed_outside_class_bodies),yse(r)}function yse(r){if(Ca(r.name)&&(H<Us.PrivateNamesAndClassStaticBlocks||H<Us.ClassAndClassElementDecorators||!ae)){for(let c=Jg(r);c;c=Jg(c))Zn(c).flags|=1048576;if(vu(r.parent)){let c=gPe(r.parent);c&&(Zn(r.name).flags|=32768,Zn(c).flags|=4096)}}}function ler(r){l0(r),xs(r,wo)}function uer(r){sL(r),Ynr(r)||Znr(r),wo(r.body);let c=ei(r),_=Zc(c,r.kind);if(r===_&&bse(c),Sl(r.body))return;n(v);return;function h(T){return _f(T)?!0:T.kind===172&&!Vs(T)&&!!T.initializer}function v(){let T=r.parent;if(w2(T)){hPe(r.parent,T);let D=yPe(T),J=Trt(r.body);if(J){if(D&&ot(J,y.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Y&&(Pt(r.parent.members,h)||Pt(r.parameters,Q=>Ai(Q,31))))if(!per(J,r.body))ot(J,y.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let Q;for(let ue of r.body.statements){if(Zu(ue)&&wk(Ll(ue.expression))){Q=ue;break}if(vit(ue))break}Q===void 0&&ot(r,y.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else D||ot(r,y.Constructors_for_derived_classes_must_contain_a_super_call)}}}function per(r,c){let _=gg(r.parent);return Zu(_)&&_.parent===c}function vit(r){return r.kind===108||r.kind===110?!0:hme(r)?!1:!!xs(r,vit)}function bit(r){Ye(r.name)&&fi(r.name)==="constructor"&&Ri(r.parent)&&ot(r.name,y.Class_constructor_may_not_be_an_accessor),n(c),wo(r.body),yse(r);function c(){if(!Bse(r)&&!Jnr(r)&&qse(r.name),XV(r),sL(r),r.kind===177&&!(r.flags&33554432)&&jm(r.body)&&r.flags&512&&(r.flags&1024||ot(r.name,y.A_get_accessor_must_return_a_value)),r.name.kind===167&&Og(r.name),QA(r)){let h=ei(r),v=Zc(h,177),T=Zc(h,178);if(v&&T&&!(XD(v)&1)){Zn(v).flags|=1;let D=gf(v),J=gf(T);(D&64)!==(J&64)&&(ot(v.name,y.Accessors_must_both_be_abstract_or_non_abstract),ot(T.name,y.Accessors_must_both_be_abstract_or_non_abstract)),(D&4&&!(J&6)||D&2&&!(J&2))&&(ot(v.name,y.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),ot(T.name,y.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let _=g8(ei(r));r.kind===177&&lEe(r,_)}}function fer(r){XV(r)}function _er(r,c,_){return r.typeArguments&&_<r.typeArguments.length?Sa(r.typeArguments[_]):vse(r,c)[_]}function vse(r,c){return hb(Dt(r.typeArguments,Sa),c,Zy(c),jn(r))}function xit(r,c){let _,h,v=!0;for(let T=0;T<c.length;T++){let D=Wf(c[T]);D&&(_||(_=vse(r,c),h=P_(c,_)),v=v&&$p(_[T],Ma(D,h),r.typeArguments[T],y.Type_0_does_not_satisfy_the_constraint_1))}return v}function der(r,c){if(!et(r))return c.flags&524288&&Fa(c).typeParameters||(oi(r)&4?r.target.localTypeParameters:void 0)}function vEe(r){let c=Sa(r);if(!et(c)){let _=Zn(r).resolvedSymbol;if(_)return der(c,_)}}function bEe(r){if(oH(r,r.typeArguments),r.kind===183&&!jn(r)&&!i5(r)&&r.typeArguments&&r.typeName.end!==r.typeArguments.pos){let c=rn(r);sme(c,r.typeName.end)===25&&zw(r,yo(c.text,r.typeName.end),1,y.JSDoc_types_can_only_be_used_inside_documentation_comments)}Ge(r.typeArguments,wo),Sit(r)}function Sit(r){let c=Sa(r);if(!et(c)){r.typeArguments&&n(()=>{let h=vEe(r);h&&xit(r,h)});let _=Zn(r).resolvedSymbol;_&&Pt(_.declarations,h=>pE(h)&&!!(h.flags&536870912))&&Wy(qV(r),_.declarations,_.escapedName)}}function mer(r){let c=_i(r.parent,wq);if(!c)return;let _=vEe(c);if(!_)return;let h=Wf(_[c.typeArguments.indexOf(r)]);return h&&Ma(h,P_(_,vse(c,_)))}function ger(r){tet(r)}function her(r){Ge(r.members,wo),n(c);function c(){let _=Het(r);Ese(_,_.symbol),yEe(r),hit(r)}}function yer(r){wo(r.elementType)}function ver(r){let c=!1,_=!1;for(let h of r.elements){let v=rCe(h);if(v&8){let T=Sa(h.type);if(!bb(T)){ot(h,y.A_rest_element_type_must_be_an_array_type);break}(km(T)||Oo(T)&&T.target.combinedFlags&4)&&(v|=4)}if(v&4){if(_){Ur(h,y.A_rest_element_cannot_follow_another_rest_element);break}_=!0}else if(v&2){if(_){Ur(h,y.An_optional_element_cannot_follow_a_rest_element);break}c=!0}else if(v&1&&c){Ur(h,y.A_required_element_cannot_follow_an_optional_element);break}}Ge(r.elements,wo),Sa(r)}function ber(r){Ge(r.types,wo),Sa(r)}function Tit(r,c){if(!(r.flags&8388608))return r;let _=r.objectType,h=r.indexType,v=o_(_)&&Cj(_)===2?Net(_,0):fy(_,0),T=!!i0(_,dr);if(E_(h,D=>qs(D,v)||T&&MD(D,dr)))return c.kind===212&&mx(c)&&oi(_)&32&&Yy(_)&1&&ot(c,y.Index_signature_in_type_0_only_permits_reading,Pn(_)),r;if(RC(_)){let D=oae(h,c);if(D){let J=UC(kf(_),V=>io(V,D));if(J&&fm(J)&6)return ot(c,y.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,ka(D)),ut}}return ot(c,y.Type_0_cannot_be_used_to_index_type_1,Pn(h),Pn(_)),ut}function xer(r){wo(r.objectType),wo(r.indexType),Tit(Jet(r),r)}function Ser(r){Ter(r),wo(r.typeParameter),wo(r.nameType),wo(r.type),r.type||jT(r,Qe);let c=dCe(r),_=mb(c);if(_)$p(_,ji,r.nameType);else{let h=$d(c);$p(h,ji,GO(r.typeParameter))}}function Ter(r){var c;if((c=r.members)!=null&&c.length)return Ur(r.members[0],y.A_mapped_type_may_not_declare_properties_or_methods)}function wer(r){xCe(r)}function ker(r){Wnr(r),wo(r.type)}function Cer(r){xs(r,wo)}function Per(r){Br(r,_=>_.parent&&_.parent.kind===194&&_.parent.extendsType===_)||Ur(r,y.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),wo(r.typeParameter);let c=ei(r.typeParameter);if(c.declarations&&c.declarations.length>1){let _=Fa(c);if(!_.typeParametersChecked){_.typeParametersChecked=!0;let h=kw(c),v=jde(c,168);if(!Kit(v,[h],T=>[T])){let T=ja(c);for(let D of v)ot(D.name,y.All_declarations_of_0_must_have_identical_constraints,T)}}}aS(r)}function Eer(r){for(let c of r.templateSpans){wo(c.type);let _=Sa(c.type);$p(_,Xs,c.type)}Sa(r)}function Der(r){wo(r.argument),r.attributes&&rA(r.attributes,Ur),Sit(r)}function Oer(r){r.dotDotDotToken&&r.questionToken&&Ur(r,y.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===190&&Ur(r.type,y.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===191&&Ur(r.type,y.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),wo(r.type),Sa(r)}function KV(r){return(z_(r,2)||_f(r))&&!!(r.flags&33554432)}function oL(r,c){let _=zse(r);if(r.parent.kind!==264&&r.parent.kind!==263&&r.parent.kind!==231&&r.flags&33554432){let h=Rq(r);h&&h.flags&128&&!(_&128)&&!(Lh(r.parent)&&cu(r.parent.parent)&&Oy(r.parent.parent))&&(_|=32),_|=128}return _&c}function bse(r){n(()=>Ner(r))}function Ner(r){function c(Fr,kr){return kr!==void 0&&kr.parent===Fr[0].parent?kr:Fr[0]}function _(Fr,kr,Un,ki,Pa){if((ki^Pa)!==0){let os=oL(c(Fr,kr),Un);dS(Fr,Ms=>rn(Ms).fileName).forEach(Ms=>{let pc=oL(c(Ms,kr),Un);for(let bs of Ms){let of=oL(bs,Un)^os,op=oL(bs,Un)^pc;op&32?ot(ls(bs),y.Overload_signatures_must_all_be_exported_or_non_exported):op&128?ot(ls(bs),y.Overload_signatures_must_all_be_ambient_or_non_ambient):of&6?ot(ls(bs)||bs,y.Overload_signatures_must_all_be_public_private_or_protected):of&64&&ot(ls(bs),y.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function h(Fr,kr,Un,ki){if(Un!==ki){let Pa=QP(c(Fr,kr));Ge(Fr,ri=>{QP(ri)!==Pa&&ot(ls(ri),y.Overload_signatures_must_all_be_optional_or_required)})}}let v=230,T=0,D=v,J=!1,V=!0,Q=!1,ue,Fe,De,_t=r.declarations,Nt=(r.flags&16384)!==0;function zt(Fr){if(Fr.name&&Sl(Fr.name))return;let kr=!1,Un=xs(Fr.parent,Pa=>{if(kr)return Pa;kr=Pa===Fr});if(Un&&Un.pos===Fr.end&&Un.kind===Fr.kind){let Pa=Un.name||Un,ri=Un.name;if(Fr.name&&ri&&(Ca(Fr.name)&&Ca(ri)&&Fr.name.escapedText===ri.escapedText||po(Fr.name)&&po(ri)&&o0(Og(Fr.name),Og(ri))||Oh(Fr.name)&&Oh(ri)&&g4(Fr.name)===g4(ri))){if((Fr.kind===174||Fr.kind===173)&&Vs(Fr)!==Vs(Un)){let Ms=Vs(Fr)?y.Function_overload_must_be_static:y.Function_overload_must_not_be_static;ot(Pa,Ms)}return}if(jm(Un.body)){ot(Pa,y.Function_implementation_name_must_be_0,Oc(Fr.name));return}}let ki=Fr.name||Fr;Nt?ot(ki,y.Constructor_implementation_is_missing):Ai(Fr,64)?ot(ki,y.All_declarations_of_an_abstract_method_must_be_consecutive):ot(ki,y.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Dr=!1,Tr=!1,En=!1,xn=[];if(_t)for(let Fr of _t){let kr=Fr,Un=kr.flags&33554432,ki=kr.parent&&(kr.parent.kind===264||kr.parent.kind===187)||Un;if(ki&&(De=void 0),(kr.kind===263||kr.kind===231)&&!Un&&(En=!0),kr.kind===262||kr.kind===174||kr.kind===173||kr.kind===176){xn.push(kr);let Pa=oL(kr,v);T|=Pa,D&=Pa,J=J||QP(kr),V=V&&QP(kr);let ri=jm(kr.body);ri&&ue?Nt?Tr=!0:Dr=!0:De?.parent===kr.parent&&De.end!==kr.pos&&zt(De),ri?ue||(ue=kr):Q=!0,De=kr,ki||(Fe=kr)}jn(Fr)&&Ss(Fr)&&Fr.jsDoc&&(Q=Re(NQ(Fr))>0)}if(Tr&&Ge(xn,Fr=>{ot(Fr,y.Multiple_constructor_implementations_are_not_allowed)}),Dr&&Ge(xn,Fr=>{ot(ls(Fr)||Fr,y.Duplicate_function_implementation)}),En&&!Nt&&r.flags&16&&_t){let Fr=Cn(_t,kr=>kr.kind===263).map(kr=>Mn(kr,y.Consider_adding_a_declare_modifier_to_this_class));Ge(_t,kr=>{let Un=kr.kind===263?y.Class_declaration_cannot_implement_overload_list_for_0:kr.kind===262?y.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Un&&Hs(ot(ls(kr)||kr,Un,Ml(r)),...Fr)})}if(Fe&&!Fe.body&&!Ai(Fe,64)&&!Fe.questionToken&&zt(Fe),Q&&(_t&&(_(_t,ue,v,T,D),h(_t,ue,J,V)),ue)){let Fr=Dw(r),kr=Vd(ue);for(let Un of Fr)if(!qGt(kr,Un)){let ki=Un.declaration&&B1(Un.declaration)?Un.declaration.parent.tagName:Un.declaration;Hs(ot(ki,y.This_overload_signature_is_not_compatible_with_its_implementation_signature),Mn(ue,y.The_implementation_signature_is_declared_here));break}}}function cL(r){n(()=>Aer(r))}function Aer(r){let c=r.localSymbol;if(!c&&(c=ei(r),!c.exportSymbol)||Zc(c,r.kind)!==r)return;let _=0,h=0,v=0;for(let Q of c.declarations){let ue=V(Q),Fe=oL(Q,2080);Fe&32?Fe&2048?v|=ue:_|=ue:h|=ue}let T=_|h,D=_&h,J=v&T;if(D||J)for(let Q of c.declarations){let ue=V(Q),Fe=ls(Q);ue&J?ot(Fe,y.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Oc(Fe)):ue&D&&ot(Fe,y.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Oc(Fe))}function V(Q){let ue=Q;switch(ue.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return df(ue)||j0(ue)!==0?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:let Fe=ue,De=Gc(Fe)?Fe.expression:Fe.right;if(!Tc(De))return 1;ue=De;case 271:case 274:case 273:let _t=0,Nt=pu(ei(ue));return Ge(Nt.declarations,zt=>{_t|=V(zt)}),_t;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return I.failBadSyntaxKind(ue)}}}function j8(r,c,_,...h){let v=lL(r,c);return v&&GD(v,c,_,...h)}function lL(r,c,_){if(Ae(r))return;let h=r;if(h.promisedTypeOfPromise)return h.promisedTypeOfPromise;if(ly(r,X$(!1)))return h.promisedTypeOfPromise=$c(r)[0];if(aL(py(r),402915324))return;let v=fu(r,"then");if(Ae(v))return;let T=v?Ns(v,0):ce;if(T.length===0){c&&ot(c,y.A_promise_must_have_a_then_method);return}let D,J;for(let ue of T){let Fe=NT(ue);Fe&&Fe!==zr&&!_y(r,Fe,$v)?D=Fe:J=Zr(J,ue)}if(!J){I.assertIsDefined(D),_&&(_.value=D),c&&ot(c,y.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Pn(r),Pn(D));return}let V=Cm(Fi(Dt(J,iEe)),2097152);if(Ae(V))return;let Q=Ns(V,0);if(Q.length===0){c&&ot(c,y.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return h.promisedTypeOfPromise=Fi(Dt(Q,iEe),2)}function QV(r,c,_,h,...v){return(c?GD(r,_,h,...v):l1(r,_,h,...v))||ut}function wit(r){if(aL(py(r),402915324))return!1;let c=fu(r,"then");return!!c&&Ns(Cm(c,2097152),0).length>0}function xse(r){var c;if(r.flags&16777216){let _=tCe(!1);return!!_&&r.aliasSymbol===_&&((c=r.aliasTypeArguments)==null?void 0:c.length)===1}return!1}function L8(r){return r.flags&1048576?ol(r,L8):xse(r)?r.aliasTypeArguments[0]:r}function kit(r){if(Ae(r)||xse(r))return!1;if(RC(r)){let c=Op(r);if(c?c.flags&3||n1(c)||Pm(c,wit):ql(r,8650752))return!0}return!1}function Ier(r){let c=tCe(!0);if(c)return e6(c,[L8(r)])}function Fer(r){return kit(r)?Ier(r)??r:(I.assert(xse(r)||lL(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r)}function GD(r,c,_,...h){let v=l1(r,c,_,...h);return v&&Fer(v)}function l1(r,c,_,...h){if(Ae(r)||xse(r))return r;let v=r;if(v.awaitedTypeOfType)return v.awaitedTypeOfType;if(r.flags&1048576){if(Bx.lastIndexOf(r.id)>=0){c&&ot(c,y.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let J=c?Q=>l1(Q,c,_,...h):l1;Bx.push(r.id);let V=ol(r,J);return Bx.pop(),v.awaitedTypeOfType=V}if(kit(r))return v.awaitedTypeOfType=r;let T={value:void 0},D=lL(r,void 0,T);if(D){if(r.id===D.id||Bx.lastIndexOf(D.id)>=0){c&&ot(c,y.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Bx.push(r.id);let J=l1(D,c,_,...h);return Bx.pop(),J?v.awaitedTypeOfType=J:void 0}if(wit(r)){if(c){I.assertIsDefined(_);let J;T.value&&(J=vs(J,y.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Pn(r),Pn(T.value))),J=vs(J,_,...h),Jo.add(Cv(rn(c),c,J))}return}return v.awaitedTypeOfType=r}function Mer(r,c,_){let h=Sa(c);if(H>=2){if(et(h))return;let T=X$(!0);if(T!==fr&&!ly(h,T)){v(y.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,c,_,Pn(l1(h)||zr));return}}else{if($D(r,5),et(h))return;let T=t5(c);if(T===void 0){v(y.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,c,_,Pn(h));return}let D=Ol(T,111551,!0),J=D?An(D):ut;if(et(J)){T.kind===80&&T.escapedText==="Promise"&&HA(h)===X$(!1)?ot(_,y.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):v(y.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,c,_,B_(T));return}let V=KVt(!0);if(V===Ro){v(y.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,c,_,B_(T));return}let Q=y.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!$p(J,V,_,Q,()=>c===_?void 0:vs(void 0,y.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let Fe=T&&Af(T),De=Sf(r.locals,Fe.escapedText,111551);if(De){ot(De.valueDeclaration,y.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,fi(Fe),B_(T));return}}QV(h,!1,r,y.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function v(T,D,J,V){if(D===J)ot(J,T,V);else{let Q=ot(J,y.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Hs(Q,Mn(D,T,V))}}}function Rer(r){let c=rn(r);if(!sS(c)){let _=r.expression;if(Mf(_))return!1;let h=!0,v;for(;;){if(F0(_)||CE(_)){_=_.expression;continue}if(Ls(_)){h||(v=_),_.questionDotToken&&(v=_.questionDotToken),_=_.expression,h=!1;continue}if(ai(_)){_.questionDotToken&&(v=_.questionDotToken),_=_.expression,h=!1;continue}Ye(_)||(v=_);break}if(v)return Hs(ot(r.expression,y.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Mn(v,y.Invalid_syntax_in_decorator)),!0}return!1}function jer(r){Rer(r);let c=p6(r);pse(c,r);let _=Yo(c);if(_.flags&1)return;let h=oEe(r);if(!h?.resolvedReturnType)return;let v,T=h.resolvedReturnType;switch(r.parent.kind){case 263:case 231:v=y.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ne){v=y.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:v=y.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:v=y.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return I.failBadSyntaxKind(r.parent)}$p(_,T,r.expression,v)}function uL(r,c,_,h,v,T=_.length,D=0){let J=j.createFunctionTypeNode(void 0,ce,j.createKeywordTypeNode(133));return n0(J,r,c,_,h,v,T,D)}function xEe(r,c,_,h,v,T,D){let J=uL(r,c,_,h,v,T,D);return IC(J)}function Cit(r){return xEe(void 0,void 0,ce,r)}function Pit(r){let c=rp("value",r);return xEe(void 0,void 0,[c],zr)}function SEe(r){if(r)switch(r.kind){case 193:case 192:return Eit(r.types);case 194:return Eit([r.trueType,r.falseType]);case 196:case 202:return SEe(r.type);case 183:return r.typeName}}function Eit(r){let c;for(let _ of r){for(;_.kind===196||_.kind===202;)_=_.type;if(_.kind===146||!fe&&(_.kind===201&&_.literal.kind===106||_.kind===157))continue;let h=SEe(_);if(!h)return;if(c){if(!Ye(c)||!Ye(h)||c.escapedText!==h.escapedText)return}else c=h}return c}function Sse(r){let c=hu(r);return Ey(r)?bQ(c):c}function XV(r){if(!U2(r)||!Od(r)||!r.modifiers||!r5(ne,r,r.parent,r.parent.parent))return;let c=Ir(r.modifiers,qu);if(c){ne?($u(c,8),r.kind===169&&$u(c,32)):H<Us.ClassAndClassElementDecorators&&($u(c,8),bu(r)?r.name?Qit(r)&&$u(c,4194304):$u(c,4194304):vu(r)||(Ca(r.name)&&(wl(r)||ox(r)||Kf(r))&&$u(c,4194304),po(r.name)&&$u(c,8388608))),$D(r,8);for(let _ of r.modifiers)qu(_)&&jer(_)}}function Ler(r){n(c);function c(){Oit(r),GEe(r),B8(r,r.name)}}function Ber(r){r.typeExpression||ot(r.name,y.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&q8(r.name,y.Type_alias_name_cannot_be_0),wo(r.typeExpression),nH(nx(r))}function qer(r){wo(r.constraint);for(let c of r.typeParameters)wo(c)}function Jer(r){wo(r.typeExpression)}function zer(r){wo(r.typeExpression);let c=ES(r);if(c){let _=uq(c,Pz);if(Re(_)>1)for(let h=1;h<Re(_);h++){let v=_[h].tagName;ot(v,y._0_tag_already_specified,fi(v))}}}function Wer(r){r.name&&aH(r.name,!0)}function Uer(r){wo(r.typeExpression)}function $er(r){wo(r.typeExpression)}function Ver(r){n(c),sL(r);function c(){!r.type&&!XP(r)&&jT(r,Qe)}}function Her(r){let c=ES(r);c&&Bc(c)&&ot(r.tagName,y.An_arrow_function_cannot_have_a_this_parameter)}function Ger(r){REe(r)}function Ker(r){let c=ES(r);(!c||!bu(c)&&!vu(c))&&ot(c,y.JSDoc_0_is_not_attached_to_a_class,fi(r.tagName))}function Qer(r){let c=ES(r);if(!c||!bu(c)&&!vu(c)){ot(c,y.JSDoc_0_is_not_attached_to_a_class,fi(r.tagName));return}let _=SS(c).filter(DE);I.assert(_.length>0),_.length>1&&ot(_[1],y.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let h=Dit(r.class.expression),v=w2(c);if(v){let T=Dit(v.expression);T&&h.escapedText!==T.escapedText&&ot(h,y.JSDoc_0_1_does_not_match_the_extends_2_clause,fi(r.tagName),fi(h),fi(T))}}function Xer(r){let c=S2(r);c&&_f(c)&&ot(r,y.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Dit(r){switch(r.kind){case 80:return r;case 211:return r.name;default:return}}function Oit(r){var c;XV(r),sL(r);let _=eu(r);if(r.name&&r.name.kind===167&&Og(r.name),QA(r)){let T=ei(r),D=r.localSymbol||T,J=(c=D.declarations)==null?void 0:c.find(V=>V.kind===r.kind&&!(V.flags&524288));r===J&&bse(D),T.parent&&bse(T)}let h=r.kind===173?void 0:r.body;if(wo(h),lEe(r,YA(r)),n(v),jn(r)){let T=xS(r);T&&T.typeExpression&&!EPe(Sa(T.typeExpression),r)&&ot(T.typeExpression.type,y.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function v(){dd(r)||(Sl(h)&&!KV(r)&&jT(r,Qe),_&1&&jm(h)&&Yo(Vd(r)))}}function aS(r){n(c);function c(){let _=rn(r),h=G1.get(_.path);h||(h=[],G1.set(_.path,h)),h.push(r)}}function Nit(r,c){for(let _ of r)switch(_.kind){case 263:case 231:Yer(_,c),TEe(_,c);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:Fit(_,c);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:_.body&&Fit(_,c),TEe(_,c);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:TEe(_,c);break;case 195:Zer(_,c);break;default:I.assertNever(_,"Node should not have been registered for unused identifiers check")}}function Ait(r,c,_){let h=ls(r)||r,v=pE(r)?y._0_is_declared_but_never_used:y._0_is_declared_but_its_value_is_never_read;_(r,0,Mn(h,v,c))}function pL(r){return Ye(r)&&fi(r).charCodeAt(0)===95}function Yer(r,c){for(let _ of r.members)switch(_.kind){case 174:case 172:case 177:case 178:if(_.kind===178&&_.symbol.flags&32768)break;let h=ei(_);!h.isReferenced&&(z_(_,2)||Gu(_)&&Ca(_.name))&&!(_.flags&33554432)&&c(_,0,Mn(_.name,y._0_is_declared_but_its_value_is_never_read,ja(h)));break;case 176:for(let v of _.parameters)!v.symbol.isReferenced&&Ai(v,2)&&c(v,0,Mn(v.name,y.Property_0_is_declared_but_its_value_is_never_read,Ml(v.symbol)));break;case 181:case 240:case 175:break;default:I.fail("Unexpected class member")}}function Zer(r,c){let{typeParameter:_}=r;wEe(_)&&c(r,1,Mn(r,y._0_is_declared_but_its_value_is_never_read,fi(_.name)))}function TEe(r,c){let _=ei(r).declarations;if(!_||ao(_)!==r)return;let h=nx(r),v=new Set;for(let T of h){if(!wEe(T))continue;let D=fi(T.name),{parent:J}=T;if(J.kind!==195&&J.typeParameters.every(wEe)){if(Ty(v,J)){let V=rn(J),Q=Um(J)?RX(J):jX(V,J.typeParameters),Fe=J.typeParameters.length===1?[y._0_is_declared_but_its_value_is_never_read,D]:[y.All_type_parameters_are_unused];c(T,1,Eu(V,Q.pos,Q.end-Q.pos,...Fe))}}else c(T,1,Mn(T,y._0_is_declared_but_its_value_is_never_read,D))}}function wEe(r){return!(Uo(r.symbol).isReferenced&262144)&&!pL(r.name)}function YV(r,c,_,h){let v=String(h(c)),T=r.get(v);T?T[1].push(_):r.set(v,[c,[_]])}function Iit(r){return _i(Nh(r),Da)}function etr(r){return Do(r)?Nd(r.parent)?!!(r.propertyName&&pL(r.name)):pL(r.name):df(r)||(Ui(r)&&bk(r.parent.parent)||Mit(r))&&pL(r.name)}function Fit(r,c){let _=new Map,h=new Map,v=new Map;r.locals.forEach(T=>{if(!(T.flags&262144?!(T.flags&3&&!(T.isReferenced&3)):T.isReferenced||T.exportSymbol)&&T.declarations){for(let D of T.declarations)if(!etr(D))if(Mit(D))YV(_,rtr(D),D,Wo);else if(Do(D)&&Nd(D.parent)){let J=ao(D.parent.elements);(D===J||!ao(D.parent.elements).dotDotDotToken)&&YV(h,D.parent,D,Wo)}else if(Ui(D)){let J=Ww(D)&7,V=ls(D);(J!==4&&J!==6||!V||!pL(V))&&YV(v,D.parent,D,Wo)}else{let J=T.valueDeclaration&&Iit(T.valueDeclaration),V=T.valueDeclaration&&ls(T.valueDeclaration);J&&V?!L_(J,J.parent)&&!gx(J)&&!pL(V)&&(Do(D)&&j1(D.parent)?YV(h,D.parent,D,Wo):c(J,1,Mn(V,y._0_is_declared_but_its_value_is_never_read,Ml(T)))):Ait(D,Ml(T),c)}}}),_.forEach(([T,D])=>{let J=T.parent;if((T.name?1:0)+(T.namedBindings?T.namedBindings.kind===274?1:T.namedBindings.elements.length:0)===D.length)c(J,0,D.length===1?Mn(J,y._0_is_declared_but_its_value_is_never_read,fi(ho(D).name)):Mn(J,y.All_imports_in_import_declaration_are_unused));else for(let Q of D)Ait(Q,fi(Q.name),c)}),h.forEach(([T,D])=>{let J=Iit(T.parent)?1:0;if(T.elements.length===D.length)D.length===1&&T.parent.kind===260&&T.parent.parent.kind===261?YV(v,T.parent.parent,T.parent,Wo):c(T,J,D.length===1?Mn(T,y._0_is_declared_but_its_value_is_never_read,ZV(ho(D).name)):Mn(T,y.All_destructured_elements_are_unused));else for(let V of D)c(V,J,Mn(V,y._0_is_declared_but_its_value_is_never_read,ZV(V.name)))}),v.forEach(([T,D])=>{if(T.declarations.length===D.length)c(T,0,D.length===1?Mn(ho(D).name,y._0_is_declared_but_its_value_is_never_read,ZV(ho(D).name)):Mn(T.parent.kind===243?T.parent:T,y.All_variables_are_unused));else for(let J of D)c(J,0,Mn(J,y._0_is_declared_but_its_value_is_never_read,ZV(J.name)))})}function ttr(){var r;for(let c of cT)if(!((r=ei(c))!=null&&r.isReferenced)){let _=MP(c);I.assert(OS(_),"Only parameter declaration should be checked here");let h=Mn(c.name,y._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Oc(c.name),Oc(c.propertyName));_.type||Hs(h,Eu(rn(_),_.end,0,y.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Oc(c.propertyName))),Jo.add(h)}}function ZV(r){switch(r.kind){case 80:return fi(r);case 207:case 206:return ZV(Js(ho(r.elements),Do).name);default:return I.assertNever(r)}}function Mit(r){return r.kind===273||r.kind===276||r.kind===274}function rtr(r){return r.kind===273?r:r.kind===274?r.parent:r.parent.parent}function Tse(r){if(r.kind===241&&u1(r),WK(r)){let c=Er;Ge(r.statements,wo),Er=c}else Ge(r.statements,wo);r.locals&&aS(r)}function ntr(r){H>=2||!XK(r)||r.flags&33554432||Sl(r.body)||Ge(r.parameters,c=>{c.name&&!Os(c.name)&&c.name.escapedText===pe.escapedName&&zy("noEmit",c,y.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function fL(r,c,_){if(c?.escapedText!==_||r.kind===172||r.kind===171||r.kind===174||r.kind===173||r.kind===177||r.kind===178||r.kind===303||r.flags&33554432||(vg(r)||zu(r)||bf(r))&&w1(r))return!1;let h=Nh(r);return!(Da(h)&&Sl(h.parent.body))}function itr(r){Br(r,c=>XD(c)&4?(r.kind!==80?ot(ls(r),y.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):ot(r,y.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function atr(r){Br(r,c=>XD(c)&8?(r.kind!==80?ot(ls(r),y.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):ot(r,y.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function str(r,c){if(e.getEmitModuleFormatOfFile(rn(r))>=5||!c||!fL(r,c,"require")&&!fL(r,c,"exports")||cu(r)&&j0(r)!==1)return;let _=PT(r);_.kind===307&&q_(_)&&zy("noEmit",c,y.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Oc(c),Oc(c))}function otr(r,c){if(!c||H>=4||!fL(r,c,"Promise")||cu(r)&&j0(r)!==1)return;let _=PT(r);_.kind===307&&q_(_)&&_.flags&4096&&zy("noEmit",c,y.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Oc(c),Oc(c))}function ctr(r,c){H<=8&&(fL(r,c,"WeakMap")||fL(r,c,"WeakSet"))&&$0.push(r)}function ltr(r){let c=Jg(r);XD(c)&1048576&&(I.assert(Gu(r)&&Ye(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),zy("noEmit",r,y.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function utr(r,c){c&&H>=2&&H<=8&&fL(r,c,"Reflect")&&Jy.push(r)}function ptr(r){let c=!1;if(vu(r)){for(let _ of r.members)if(XD(_)&2097152){c=!0;break}}else if(Ic(r))XD(r)&2097152&&(c=!0);else{let _=Jg(r);_&&XD(_)&2097152&&(c=!0)}c&&(I.assert(Gu(r)&&Ye(r.name),"The target of a Reflect collision check should be an identifier"),zy("noEmit",r,y.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Oc(r.name),"Reflect"))}function B8(r,c){c&&(str(r,c),otr(r,c),ctr(r,c),utr(r,c),Ri(r)?(q8(c,y.Class_name_cannot_be_0),r.flags&33554432||Jtr(c)):B2(r)&&q8(c,y.Enum_name_cannot_be_0))}function ftr(r){if(Ww(r)&7||OS(r))return;let c=ei(r);if(c.flags&1){if(!Ye(r.name))return I.fail();let _=Ct(r,r.name.escapedText,3,void 0,!1);if(_&&_!==c&&_.flags&2&&APe(_)&7){let h=DS(_.valueDeclaration,261),v=h.parent.kind===243&&h.parent.parent?h.parent.parent:void 0;if(!(v&&(v.kind===241&&Ss(v.parent)||v.kind===268||v.kind===267||v.kind===307))){let D=ja(_);ot(r,y.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,D,D)}}}}function _L(r){return r===Lt?Qe:r===Au?Nu:r}function eH(r){var c;if(XV(r),Do(r)||wo(r.type),!r.name)return;if(r.name.kind===167&&(Og(r.name),xk(r)&&r.initializer&&Nl(r.initializer)),Do(r)){if(r.propertyName&&Ye(r.name)&&OS(r)&&Sl(Ed(r).body)){cT.push(r);return}Nd(r.parent)&&r.dotDotDotToken&&H<Us.ObjectSpreadRest&&$u(r,4),r.propertyName&&r.propertyName.kind===167&&Og(r.propertyName);let v=r.parent.parent,T=r.dotDotDotToken?32:0,D=Wt(v,T),J=r.propertyName||r.name;if(D&&!Os(J)){let V=e1(J);if(_m(V)){let Q=dm(V),ue=io(D,Q);ue&&(RV(ue,void 0,!1),FPe(r,!!v.initializer&&v.initializer.kind===108,!1,D,ue))}}}if(Os(r.name)&&(r.name.kind===207&&H<Us.BindingPatterns&&z.downlevelIteration&&$u(r,512),Ge(r.name.elements,wo)),r.initializer&&OS(r)&&Sl(Ed(r).body)){ot(r,y.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Os(r.name)){if(nPe(r))return;let v=xk(r)&&r.initializer&&r.parent.parent.kind!==249,T=!Pt(r.name.elements,NO(Ju));if(v||T){let D=rc(r);if(v){let J=Nl(r.initializer);fe&&T?rnt(J,r):jw(J,rc(r),r,r.initializer)}T&&(j1(r.name)?Sb(65,D,ke,r):fe&&rnt(D,r))}return}let _=ei(r);if(_.flags&2097152&&(b2(r)||xme(r))){Nse(r);return}r.name.kind===10&&ot(r.name,y.A_bigint_literal_cannot_be_used_as_a_property_name);let h=_L(An(_));if(r===_.valueDeclaration){let v=xk(r)&&c5(r);if(v&&!(jn(r)&&So(v)&&(v.properties.length===0||yx(r.name))&&!!((c=_.exports)!=null&&c.size))&&r.parent.parent.kind!==249){let D=Nl(v);jw(D,h,r,v,void 0);let J=Ww(r)&7;if(J===6){let V=sHt(!0),Q=_et(!0);if(V!==Ro&&Q!==Ro){let ue=Fi([V,Q,rr,ke]);$p(Qy(D,r),ue,v,y.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(J===4){let V=_et(!0);if(V!==Ro){let Q=Fi([V,rr,ke]);$p(Qy(D,r),Q,v,y.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}_.declarations&&_.declarations.length>1&&Pt(_.declarations,T=>T!==r&&n4(T)&&!jit(T,r))&&ot(r.name,y.All_declarations_of_0_must_have_identical_modifiers,Oc(r.name))}else{let v=_L(rc(r));!et(h)&&!et(v)&&!o0(h,v)&&!(_.flags&67108864)&&Rit(_.valueDeclaration,h,r,v),xk(r)&&r.initializer&&jw(Nl(r.initializer),v,r,r.initializer,void 0),_.valueDeclaration&&!jit(r,_.valueDeclaration)&&ot(r.name,y.All_declarations_of_0_must_have_identical_modifiers,Oc(r.name))}r.kind!==172&&r.kind!==171&&(cL(r),(r.kind===260||r.kind===208)&&ftr(r),B8(r,r.name))}function Rit(r,c,_,h){let v=ls(_),T=_.kind===172||_.kind===171?y.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:y.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,D=Oc(v),J=ot(v,T,D,Pn(c),Pn(h));r&&Hs(J,Mn(r,y._0_was_also_declared_here,D))}function jit(r,c){if(r.kind===169&&c.kind===260||r.kind===260&&c.kind===169)return!0;if(QP(r)!==QP(c))return!1;let _=1358;return tE(r,_)===tE(c,_)}function _tr(r){var c,_;(c=Fn)==null||c.push(Fn.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),Gnr(r),eH(r),(_=Fn)==null||_.pop()}function dtr(r){return $nr(r),eH(r)}function wse(r){let c=w0(r)&7;(c===4||c===6)&&H<Us.UsingAndAwaitUsing&&$u(r,16777216),Ge(r.declarations,wo)}function mtr(r){!l0(r)&&!XEe(r.declarationList)&&Knr(r),wse(r.declarationList)}function gtr(r){u1(r),Wa(r.expression)}function htr(r){u1(r);let c=dL(r.expression);kEe(r.expression,c,r.thenStatement),wo(r.thenStatement),r.thenStatement.kind===242&&ot(r.thenStatement,y.The_body_of_an_if_statement_cannot_be_the_empty_statement),wo(r.elseStatement)}function kEe(r,c,_){if(!fe)return;h(r,_);function h(T,D){for(T=Qo(T),v(T,D);Vn(T)&&(T.operatorToken.kind===57||T.operatorToken.kind===61);)T=Qo(T.left),v(T,D)}function v(T,D){let J=N5(T)?Qo(T.right):T;if(Ev(J))return;if(N5(J)){h(J,D);return}let V=J===T?c:Wa(J);if(V.flags&1024&&ai(J)&&(Zn(J.expression).resolvedSymbol??oe).flags&384){ot(J,y.This_condition_will_always_return_0,V.value?"true":"false");return}let Q=ai(J)&&sit(J.expression);if(!_h(V,4194304)||Q)return;let ue=Ns(V,0),Fe=!!j8(V);if(ue.length===0&&!Fe)return;let De=Ye(J)?J:ai(J)?J.name:void 0,_t=De&&Em(De);if(!_t&&!Fe)return;_t&&Vn(T.parent)&&vtr(T.parent,_t)||_t&&D&&ytr(T,D,De,_t)||(Fe?tb(J,!0,y.This_condition_will_always_return_true_since_this_0_is_always_defined,DD(V)):ot(J,y.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function ytr(r,c,_,h){return!!xs(c,function v(T){if(Ye(T)){let D=Em(T);if(D&&D===h){if(Ye(r)||Ye(_)&&Vn(_.parent))return!0;let J=_.parent,V=T.parent;for(;J&&V;){if(Ye(J)&&Ye(V)||J.kind===110&&V.kind===110)return Em(J)===Em(V);if(ai(J)&&ai(V)){if(Em(J.name)!==Em(V.name))return!1;V=V.expression,J=J.expression}else if(Ls(J)&&Ls(V))V=V.expression,J=J.expression;else return!1}}}return xs(T,v)})}function vtr(r,c){for(;Vn(r)&&r.operatorToken.kind===56;){if(xs(r.right,function h(v){if(Ye(v)){let T=Em(v);if(T&&T===c)return!0}return xs(v,h)}))return!0;r=r.parent}return!1}function btr(r){u1(r),wo(r.statement),dL(r.expression)}function xtr(r){u1(r),dL(r.expression),wo(r.statement)}function CEe(r,c){if(r.flags&16384)ot(c,y.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{let _=PEe(c);_!==3&&ot(c,_===1?y.This_kind_of_expression_is_always_truthy:y.This_kind_of_expression_is_always_falsy)}return r}function PEe(r){switch(r=Ll(r),r.kind){case 9:return r.text==="0"||r.text==="1"?3:1;case 209:case 219:case 10:case 231:case 218:case 284:case 285:case 210:case 14:return 1;case 222:case 106:return 2;case 15:case 11:return r.text?1:2;case 227:return PEe(r.whenTrue)|PEe(r.whenFalse);case 80:return sf(r)===xe?2:3}return 3}function dL(r,c){return CEe(Wa(r,c),r)}function Str(r){u1(r)||r.initializer&&r.initializer.kind===261&&XEe(r.initializer),r.initializer&&(r.initializer.kind===261?wse(r.initializer):Wa(r.initializer)),r.condition&&dL(r.condition),r.incrementor&&Wa(r.incrementor),wo(r.statement),r.locals&&aS(r)}function Ttr(r){Iat(r);let c=Uq(r);if(r.awaitModifier?c&&Al(c)?Ur(r.awaitModifier,y.for_await_loops_cannot_be_used_inside_a_class_static_block):(eu(c)&6)===2&&H<Us.ForAwaitOf&&$u(r,16384):z.downlevelIteration&&H<Us.ForOf&&$u(r,256),r.initializer.kind===261)wse(r.initializer);else{let _=r.initializer,h=tH(r);if(_.kind===209||_.kind===210)KC(_,h||ut);else{let v=Wa(_);iL(_,y.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,y.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),h&&jw(h,v,_,r.expression)}}wo(r.statement),r.locals&&aS(r)}function wtr(r){Iat(r);let c=MPe(Wa(r.expression));if(r.initializer.kind===261){let _=r.initializer.declarations[0];_&&Os(_.name)&&ot(_.name,y.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),wse(r.initializer)}else{let _=r.initializer,h=Wa(_);_.kind===209||_.kind===210?ot(_,y.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):qs(HHt(c),h)?iL(_,y.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,y.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):ot(_,y.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(c===Pr||!Np(c,126091264))&&ot(r.expression,y.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Pn(c)),wo(r.statement),r.locals&&aS(r)}function tH(r){let c=r.awaitModifier?15:13;return Sb(c,l6(r.expression),ke,r.expression)}function Sb(r,c,_,h){return Ae(c)?c:EEe(r,c,_,h,!0)||Qe}function EEe(r,c,_,h,v){let T=(r&2)!==0;if(c===Pr){h&&NEe(h,c,T);return}let D=H>=2,J=!D&&z.downlevelIteration,V=z.noUncheckedIndexedAccess&&!!(r&128);if(D||J||T){let _t=Cse(c,r,D?h:void 0);if(v&&_t){let Nt=r&8?y.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?y.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?y.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?y.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Nt&&$p(_,_t.nextType,h,Nt)}if(_t||D)return V?Hj(_t&&_t.yieldType):_t&&_t.yieldType}let Q=c,ue=!1;if(r&4){if(Q.flags&1048576){let _t=c.types,Nt=Cn(_t,zt=>!(zt.flags&402653316));Nt!==_t&&(Q=Fi(Nt,2))}else Q.flags&402653316&&(Q=Pr);if(ue=Q!==c,ue&&Q.flags&131072)return V?Hj(kt):kt}if(!bb(Q)){if(h){let _t=!!(r&4)&&!ue,[Nt,zt]=De(_t,J);tb(h,zt&&!!j8(Q),Nt,Pn(Q))}return ue?V?Hj(kt):kt:void 0}let Fe=OT(Q,dr);if(ue&&Fe)return Fe.flags&402653316&&!z.noUncheckedIndexedAccess?kt:Fi(V?[Fe,kt,ke]:[Fe,kt],2);return r&128?Hj(Fe):Fe;function De(_t,Nt){var zt;return Nt?_t?[y.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[y.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:DEe(r,0,c,void 0)?[y.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:ktr((zt=c.symbol)==null?void 0:zt.escapedName)?[y.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:_t?[y.Type_0_is_not_an_array_type_or_a_string_type,!0]:[y.Type_0_is_not_an_array_type,!0]}}function ktr(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function DEe(r,c,_,h){if(Ae(_))return;let v=Cse(_,r,h);return v&&v[oBe(c)]}function qT(r=Pr,c=Pr,_=qt){if(r.flags&67359327&&c.flags&180227&&_.flags&180227){let h=eg([r,c,_]),v=sc.get(h);return v||(v={yieldType:r,returnType:c,nextType:_},sc.set(h,v)),v}return{yieldType:r,returnType:c,nextType:_}}function Lit(r){let c,_,h;for(let v of r)if(!(v===void 0||v===To)){if(v===Wc)return Wc;c=Zr(c,v.yieldType),_=Zr(_,v.returnType),h=Zr(h,v.nextType)}return c||_||h?qT(c&&Fi(c),_&&Fi(_),h&&_o(h)):To}function kse(r,c){return r[c]}function c0(r,c,_){return r[c]=_}function Cse(r,c,_){var h,v;if(Ae(r))return Wc;if(!(r.flags&1048576)){let Q=_?{errors:void 0,skipLogging:!0}:void 0,ue=Bit(r,c,_,Q);if(ue===To){if(_){let Fe=NEe(_,r,!!(c&2));Q?.errors&&Hs(Fe,...Q.errors)}return}else if((h=Q?.errors)!=null&&h.length)for(let Fe of Q.errors)Jo.add(Fe);return ue}let T=c&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",D=kse(r,T);if(D)return D===To?void 0:D;let J;for(let Q of r.types){let ue=_?{errors:void 0}:void 0,Fe=Bit(Q,c,_,ue);if(Fe===To){if(_){let De=NEe(_,r,!!(c&2));ue?.errors&&Hs(De,...ue.errors)}c0(r,T,To);return}else if((v=ue?.errors)!=null&&v.length)for(let De of ue.errors)Jo.add(De);J=Zr(J,Fe)}let V=J?Lit(J):To;return c0(r,T,V),V===To?void 0:V}function OEe(r,c){if(r===To)return To;if(r===Wc)return Wc;let{yieldType:_,returnType:h,nextType:v}=r;return c&&tCe(!0),qT(GD(_,c)||Qe,GD(h,c)||Qe,v)}function Bit(r,c,_,h){if(Ae(r))return Wc;let v=!1;if(c&2){let T=qit(r,El)||Jit(r,El);if(T)if(T===To&&_)v=!0;else return c&8?OEe(T,_):T}if(c&1){let T=qit(r,Hl)||Jit(r,Hl);if(T)if(T===To&&_)v=!0;else if(c&2){if(T!==To)return T=OEe(T,_),v?T:c0(r,"iterationTypesOfAsyncIterable",T)}else return T}if(c&2){let T=Wit(r,El,_,h,v);if(T!==To)return T}if(c&1){let T=Wit(r,Hl,_,h,v);if(T!==To)return c&2?(T=OEe(T,_),v?T:c0(r,"iterationTypesOfAsyncIterable",T)):T}return To}function qit(r,c){return kse(r,c.iterableCacheKey)}function Jit(r,c){if(ly(r,c.getGlobalIterableType(!1))||ly(r,c.getGlobalIteratorObjectType(!1))||ly(r,c.getGlobalIterableIteratorType(!1))||ly(r,c.getGlobalGeneratorType(!1))){let[_,h,v]=$c(r);return c0(r,c.iterableCacheKey,qT(c.resolveIterationType(_,void 0)||_,c.resolveIterationType(h,void 0)||h,v))}if(bj(r,c.getGlobalBuiltinIteratorTypes())){let[_]=$c(r),h=eCe(),v=qt;return c0(r,c.iterableCacheKey,qT(c.resolveIterationType(_,void 0)||_,c.resolveIterationType(h,void 0)||h,v))}}function zit(r){let c=oet(!1),_=c&&fu(An(c),gl(r));return _&&_m(_)?dm(_):`__@${r}`}function Wit(r,c,_,h,v){let T=io(r,zit(c.iteratorSymbolName)),D=T&&!(T.flags&16777216)?An(T):void 0;if(Ae(D))return v?Wc:c0(r,c.iterableCacheKey,Wc);let J=D?Ns(D,0):void 0,V=Cn(J,Fe=>mh(Fe)===0);if(!Pt(V))return _&&Pt(J)&&$p(r,c.getGlobalIterableType(!0),_,void 0,void 0,h),v?To:c0(r,c.iterableCacheKey,To);let Q=_o(Dt(V,Yo)),ue=Uit(Q,c,_,h,v)??To;return v?ue:c0(r,c.iterableCacheKey,ue)}function NEe(r,c,_){let h=_?y.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:y.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,v=!!j8(c)||!_&&uM(r.parent)&&r.parent.expression===r&&Y$(!1)!==fr&&qs(c,w8(Y$(!1),[Qe,Qe,Qe]));return tb(r,v,h,Pn(c))}function Ctr(r,c,_,h){return Uit(r,c,_,h,!1)}function Uit(r,c,_,h,v){if(Ae(r))return Wc;let T=Ptr(r,c)||Etr(r,c);return T===To&&_&&(T=void 0,v=!0),T??(T=Atr(r,c,_,h,v)),T===To?void 0:T}function Ptr(r,c){return kse(r,c.iteratorCacheKey)}function Etr(r,c){if(ly(r,c.getGlobalIterableIteratorType(!1))||ly(r,c.getGlobalIteratorType(!1))||ly(r,c.getGlobalIteratorObjectType(!1))||ly(r,c.getGlobalGeneratorType(!1))){let[_,h,v]=$c(r);return c0(r,c.iteratorCacheKey,qT(_,h,v))}if(bj(r,c.getGlobalBuiltinIteratorTypes())){let[_]=$c(r),h=eCe(),v=qt;return c0(r,c.iteratorCacheKey,qT(_,h,v))}}function $it(r,c){let _=fu(r,"done")||Kr;return qs(c===0?Kr:yt,_)}function Dtr(r){return $it(r,0)}function Otr(r){return $it(r,1)}function Ntr(r){if(Ae(r))return Wc;let c=kse(r,"iterationTypesOfIteratorResult");if(c)return c;if(ly(r,iHt(!1))){let D=$c(r)[0];return c0(r,"iterationTypesOfIteratorResult",qT(D,void 0,void 0))}if(ly(r,aHt(!1))){let D=$c(r)[0];return c0(r,"iterationTypesOfIteratorResult",qT(void 0,D,void 0))}let _=_u(r,Dtr),h=_!==Pr?fu(_,"value"):void 0,v=_u(r,Otr),T=v!==Pr?fu(v,"value"):void 0;return!h&&!T?c0(r,"iterationTypesOfIteratorResult",To):c0(r,"iterationTypesOfIteratorResult",qT(h,T||zr,void 0))}function AEe(r,c,_,h,v){var T,D,J,V;let Q=io(r,_);if(!Q&&_!=="next")return;let ue=Q&&!(_==="next"&&Q.flags&16777216)?_==="next"?An(Q):Cm(An(Q),2097152):void 0;if(Ae(ue))return Wc;let Fe=ue?Ns(ue,0):ce;if(Fe.length===0){if(h){let Fr=_==="next"?c.mustHaveANextMethodDiagnostic:c.mustBeAMethodDiagnostic;v?(v.errors??(v.errors=[]),v.errors.push(Mn(h,Fr,_))):ot(h,Fr,_)}return _==="next"?To:void 0}if(ue?.symbol&&Fe.length===1){let Fr=c.getGlobalGeneratorType(!1),kr=c.getGlobalIteratorType(!1),Un=((D=(T=Fr.symbol)==null?void 0:T.members)==null?void 0:D.get(_))===ue.symbol,ki=!Un&&((V=(J=kr.symbol)==null?void 0:J.members)==null?void 0:V.get(_))===ue.symbol;if(Un||ki){let Pa=Un?Fr:kr,{mapper:ri}=ue;return qT(vb(Pa.typeParameters[0],ri),vb(Pa.typeParameters[1],ri),_==="next"?vb(Pa.typeParameters[2],ri):void 0)}}let De,_t;for(let Fr of Fe)_!=="throw"&&Pt(Fr.parameters)&&(De=Zr(De,dh(Fr,0))),_t=Zr(_t,Yo(Fr));let Nt,zt;if(_!=="throw"){let Fr=De?Fi(De):qt;if(_==="next")zt=Fr;else if(_==="return"){let kr=c.resolveIterationType(Fr,h)||Qe;Nt=Zr(Nt,kr)}}let Dr,Tr=_t?_o(_t):Pr,En=c.resolveIterationType(Tr,h)||Qe,xn=Ntr(En);return xn===To?(h&&(v?(v.errors??(v.errors=[]),v.errors.push(Mn(h,c.mustHaveAValueDiagnostic,_))):ot(h,c.mustHaveAValueDiagnostic,_)),Dr=Qe,Nt=Zr(Nt,Qe)):(Dr=xn.yieldType,Nt=Zr(Nt,xn.returnType)),qT(Dr,Fi(Nt),zt)}function Atr(r,c,_,h,v){let T=Lit([AEe(r,c,"next",_,h),AEe(r,c,"return",_,h),AEe(r,c,"throw",_,h)]);return v?T:c0(r,c.iteratorCacheKey,T)}function Tb(r,c,_){if(Ae(c))return;let h=IEe(c,_);return h&&h[oBe(r)]}function IEe(r,c){if(Ae(r))return Wc;let _=c?2:1,h=c?El:Hl;return Cse(r,_,void 0)||Ctr(r,h,void 0,void 0)}function Itr(r){u1(r)||Unr(r)}function rH(r,c){let _=!!(c&1),h=!!(c&2);if(_){let v=Tb(1,r,h);return v?h?l1(L8(v)):v:ut}return h?l1(r)||ut:r}function Vit(r,c){let _=rH(c,eu(r));return!!(_&&(ql(_,16384)||_.flags&32769))}function Ftr(r){if(u1(r))return;let c=Uq(r);if(c&&Al(c)){sp(r,y.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!c){sp(r,y.A_return_statement_can_only_be_used_within_a_function_body);return}let _=Vd(c),h=Yo(_);if(fe||r.expression||h.flags&131072){let v=r.expression?Nl(r.expression):ke;if(c.kind===178)r.expression&&ot(r,y.Setters_cannot_return_a_value);else if(c.kind===176){let T=r.expression?Nl(r.expression):ke;r.expression&&!jw(T,h,r,r.expression)&&ot(r,y.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(YA(c)){let T=rH(h,eu(c))??h;Pse(c,T,r,r.expression,v)}}else c.kind!==176&&z.noImplicitReturns&&!Vit(c,h)&&ot(r,y.Not_all_code_paths_return_a_value)}function Pse(r,c,_,h,v,T=!1){let D=jn(_),J=eu(r);if(h){let De=Qo(h,D);if(Wk(De)){Pse(r,c,_,De.whenTrue,Wa(De.whenTrue),!0),Pse(r,c,_,De.whenFalse,Wa(De.whenFalse),!0);return}}let V=_.kind===253,Q=J&2?QV(v,!1,_,y.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):v,ue=h&&ose(h);jw(Q,c,V&&!T?_:ue,ue)}function Mtr(r){u1(r)||r.flags&65536&&sp(r,y.with_statements_are_not_allowed_in_an_async_function_block),Wa(r.expression);let c=rn(r);if(!sS(c)){let _=Ch(c,r.pos).start,h=r.statement.pos;zw(c,_,h-_,y.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Rtr(r){u1(r);let c,_=!1,h=Wa(r.expression);Ge(r.caseBlock.clauses,v=>{v.kind===297&&!_&&(c===void 0?c=v:(Ur(v,y.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),_=!0)),v.kind===296&&n(T(v)),Ge(v.statements,wo),z.noFallthroughCasesInSwitch&&v.fallthroughFlowNode&&wV(v.fallthroughFlowNode)&&ot(v,y.Fallthrough_case_in_switch);function T(D){return()=>{let J=Wa(D.expression);_Ee(h,J)||ltt(J,h,D.expression,void 0)}}}),r.caseBlock.locals&&aS(r.caseBlock)}function jtr(r){u1(r)||Br(r.parent,c=>Ss(c)?"quit":c.kind===256&&c.label.escapedText===r.label.escapedText?(Ur(r.label,y.Duplicate_label_0,cl(r.label)),!0):!1),wo(r.statement)}function Ltr(r){u1(r)||Ye(r.expression)&&!r.expression.escapedText&&iir(r,y.Line_break_not_permitted_here),r.expression&&Wa(r.expression)}function Btr(r){u1(r),Tse(r.tryBlock);let c=r.catchClause;if(c){if(c.variableDeclaration){let _=c.variableDeclaration;eH(_);let h=hu(_);if(h){let v=Sa(h);v&&!(v.flags&3)&&sp(h,y.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(_.initializer)sp(_.initializer,y.Catch_clause_variable_cannot_have_an_initializer);else{let v=c.block.locals;v&&wv(c.locals,T=>{let D=v.get(T);D?.valueDeclaration&&D.flags&2&&Ur(D.valueDeclaration,y.Cannot_redeclare_identifier_0_in_catch_clause,ka(T))})}}Tse(c.block)}r.finallyBlock&&Tse(r.finallyBlock)}function Ese(r,c,_){let h=Wp(r);if(h.length===0)return;for(let T of gb(r))_&&T.flags&4194304||Hit(r,T,LD(T,8576,!0),Xx(T));let v=c.valueDeclaration;if(v&&Ri(v)){for(let T of v.members)if((!_&&!Vs(T)||_&&Vs(T))&&!QA(T)){let D=ei(T);Hit(r,D,Ap(T.name.expression),Xx(D))}}if(h.length>1)for(let T of h)qtr(r,T)}function Hit(r,c,_,h){let v=c.valueDeclaration,T=ls(v);if(T&&Ca(T))return;let D=Jke(r,_),J=oi(r)&2?Zc(r.symbol,264):void 0,V=v&&v.kind===226||T&&T.kind===167?v:void 0,Q=w_(c)===r.symbol?v:void 0;for(let ue of D){let Fe=ue.declaration&&w_(ei(ue.declaration))===r.symbol?ue.declaration:void 0,De=Q||Fe||(J&&!Pt(Fu(r),_t=>!!Pw(_t,c.escapedName)&&!!OT(_t,ue.keyType))?J:void 0);if(De&&!qs(h,ue.type)){let _t=fw(De,y.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ja(c),Pn(h),Pn(ue.keyType),Pn(ue.type));V&&De!==V&&Hs(_t,Mn(V,y._0_is_declared_here,ja(c))),Jo.add(_t)}}}function qtr(r,c){let _=c.declaration,h=Jke(r,c.keyType),v=oi(r)&2?Zc(r.symbol,264):void 0,T=_&&w_(ei(_))===r.symbol?_:void 0;for(let D of h){if(D===c)continue;let J=D.declaration&&w_(ei(D.declaration))===r.symbol?D.declaration:void 0,V=T||J||(v&&!Pt(Fu(r),Q=>!!i0(Q,c.keyType)&&!!OT(Q,D.keyType))?v:void 0);V&&!qs(c.type,D.type)&&ot(V,y._0_index_type_1_is_not_assignable_to_2_index_type_3,Pn(c.keyType),Pn(c.type),Pn(D.keyType),Pn(D.type))}}function q8(r,c){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":ot(r,c,r.escapedText)}}function Jtr(r){H>=1&&r.escapedText==="Object"&&e.getEmitModuleFormatOfFile(rn(r))<5&&ot(r,y.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,mn[X])}function ztr(r){let c=Cn(SS(r),Ad);if(!Re(c))return;let _=jn(r),h=new Set,v=new Set;if(Ge(r.parameters,({name:D},J)=>{Ye(D)&&h.add(D.escapedText),Os(D)&&v.add(J)}),Wke(r)){let D=c.length-1,J=c[D];_&&J&&Ye(J.name)&&J.typeExpression&&J.typeExpression.type&&!h.has(J.name.escapedText)&&!v.has(D)&&!km(Sa(J.typeExpression.type))&&ot(J.name,y.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,fi(J.name))}else Ge(c,({name:D,isNameFirst:J},V)=>{v.has(V)||Ye(D)&&h.has(D.escapedText)||(If(D)?_&&ot(D,y.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,B_(D),B_(D.left)):J||rh(_,D,y.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,fi(D)))})}function nH(r){let c=!1;if(r)for(let h=0;h<r.length;h++){let v=r[h];dit(v),n(_(v,h))}function _(h,v){return()=>{h.default?(c=!0,Wtr(h.default,r,v)):c&&ot(h,y.Required_type_parameters_may_not_follow_optional_type_parameters);for(let T=0;T<v;T++)r[T].symbol===h.symbol&&ot(h.name,y.Duplicate_identifier_0,Oc(h.name))}}}function Wtr(r,c,_){h(r);function h(v){if(v.kind===183){let T=iae(v);if(T.flags&262144)for(let D=_;D<c.length;D++)T.symbol===ei(c[D])&&ot(v,y.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}xs(v,h)}}function Git(r){if(r.declarations&&r.declarations.length===1)return;let c=Fa(r);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let _=Xtr(r);if(!_||_.length<=1)return;let h=zc(r);if(!Kit(_,h.localTypeParameters,nx)){let v=ja(r);for(let T of _)ot(T.name,y.All_declarations_of_0_must_have_identical_type_parameters,v)}}}function Kit(r,c,_){let h=Re(c),v=Zy(c);for(let T of r){let D=_(T),J=D.length;if(J<v||J>h)return!1;for(let V=0;V<J;V++){let Q=D[V],ue=c[V];if(Q.name.escapedText!==ue.symbol.escapedName)return!1;let Fe=GO(Q),De=Fe&&Sa(Fe),_t=Wf(ue);if(De&&_t&&!o0(De,_t))return!1;let Nt=Q.default&&Sa(Q.default),zt=Ew(ue);if(Nt&&zt&&!o0(Nt,zt))return!1}}return!0}function Qit(r){let c=!ne&&H<Us.ClassAndClassElementDecorators&&P1(!1,r),_=H<Us.PrivateNamesAndClassStaticBlocks||H<Us.ClassAndClassElementDecorators,h=!Y;if(c||_)for(let v of r.members){if(c&&SQ(!1,v,r))return Yl(tx(r))??r;if(_){if(Al(v))return v;if(Vs(v)&&(_f(v)||h&&BM(v)))return v}}}function Utr(r){if(r.name)return;let c=tye(r);if(!BQ(c))return;let _=!ne&&H<Us.ClassAndClassElementDecorators,h;_&&P1(!1,r)?h=Yl(tx(r))??r:h=Qit(r),h&&($u(h,4194304),(xu(c)||is(c)||Do(c))&&po(c.name)&&$u(h,8388608))}function $tr(r){return Xit(r),KD(r),Utr(r),An(ei(r))}function Vtr(r){Ge(r.members,wo),aS(r)}function Htr(r){let c=Ir(r.modifiers,qu);ne&&c&&Pt(r.members,_=>Pu(_)&&_f(_))&&Ur(c,y.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!Ai(r,2048)&&sp(r,y.A_class_declaration_without_the_default_modifier_must_have_a_name),Xit(r),Ge(r.members,wo),aS(r)}function Xit(r){Dnr(r),XV(r),B8(r,r.name),nH(nx(r)),cL(r);let c=ei(r),_=zc(c),h=id(_),v=An(c);Git(c),bse(c),aer(r),!!(r.flags&33554432)||ser(r);let D=Dh(r);if(D){Ge(D.typeArguments,wo),H<Us.Classes&&$u(D.parent,1);let Q=w2(r);Q&&Q!==D&&Wa(Q.expression);let ue=Fu(_);ue.length&&n(()=>{let Fe=ue[0],De=Go(_),_t=kf(De);if(Ktr(_t,D),wo(D.expression),Pt(D.typeArguments)){Ge(D.typeArguments,wo);for(let zt of sa(_t,D.typeArguments,D))if(!xit(D,zt.typeParameters))break}let Nt=id(Fe,_.thisType);if($p(h,Nt,void 0)?$p(v,ntt(_t),r.name||r,y.Class_static_side_0_incorrectly_extends_base_class_static_side_1):eat(r,h,Nt,y.Class_0_incorrectly_extends_base_class_1),De.flags&8650752&&(pi(v)?Ns(De,1).some(Dr=>Dr.flags&4)&&!Ai(r,64)&&ot(r.name||r,y.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):ot(r.name||r,y.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(_t.symbol&&_t.symbol.flags&32)&&!(De.flags&8650752)){let zt=Vo(_t,D.typeArguments,D);Ge(zt,Dr=>!gy(Dr.declaration)&&!o0(Yo(Dr),Fe))&&ot(D.expression,y.Base_constructors_must_all_have_the_same_return_type)}Ytr(_,Fe)})}Gtr(r,_,h,v);let J=_N(r);if(J)for(let Q of J)(!Tc(Q.expression)||Kp(Q.expression))&&ot(Q.expression,y.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),bEe(Q),n(V(Q));n(()=>{Ese(_,c),Ese(v,c,!0),yEe(r),trr(r)});function V(Q){return()=>{let ue=Eg(Sa(Q));if(!et(ue))if(DT(ue)){let Fe=ue.symbol&&ue.symbol.flags&32?y.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:y.Class_0_incorrectly_implements_interface_1,De=id(ue,_.thisType);$p(h,De,void 0)||eat(r,h,De,Fe)}else ot(Q,y.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Gtr(r,c,_,h){let T=Dh(r)&&Fu(c),D=T?.length?id(ho(T),c.thisType):void 0,J=Go(c);for(let V of r.members)rX(V)||(ul(V)&&Ge(V.parameters,Q=>{L_(Q,V)&&Yit(r,h,J,D,c,_,Q,!0)}),Yit(r,h,J,D,c,_,V,!1))}function Yit(r,c,_,h,v,T,D,J,V=!0){let Q=D.name&&Em(D.name)||Em(D);return Q?Zit(r,c,_,h,v,T,vJ(D),D2(D),Vs(D),J,Q,V?D:void 0):0}function Zit(r,c,_,h,v,T,D,J,V,Q,ue,Fe){let De=jn(r),_t=!!(r.flags&33554432);if(D&&ue?.valueDeclaration&&ou(ue.valueDeclaration)&&ue.valueDeclaration.name&&mZe(ue.valueDeclaration.name))return ot(Fe,De?y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:y.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(h&&(D||z.noImplicitOverride)){let Nt=V?c:T,zt=V?_:h,Dr=io(Nt,ue.escapedName),Tr=io(zt,ue.escapedName),En=Pn(h);if(Dr&&!Tr&&D){if(Fe){let xn=cnt(Ml(ue),zt);xn?ot(Fe,De?y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:y.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,En,ja(xn)):ot(Fe,De?y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:y.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,En)}return 2}else if(Dr&&Tr?.declarations&&z.noImplicitOverride&&!_t){let xn=Pt(Tr.declarations,D2);if(D)return 0;if(xn){if(J&&xn)return Fe&&ot(Fe,y.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,En),1}else{if(Fe){let Fr=Q?De?y.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:y.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:De?y.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:y.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;ot(Fe,Fr,En)}return 1}}}else if(D){if(Fe){let Nt=Pn(v);ot(Fe,De?y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:y.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Nt)}return 2}return 0}function eat(r,c,_,h){let v=!1;for(let T of r.members){if(Vs(T))continue;let D=T.name&&Em(T.name)||Em(T);if(D){let J=io(c,D.escapedName),V=io(_,D.escapedName);if(J&&V){let Q=()=>vs(void 0,y.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ja(D),Pn(c),Pn(_));$p(An(J),An(V),T.name||T,void 0,Q)||(v=!0)}}}v||$p(c,_,r.name||r,h)}function Ktr(r,c){let _=Ns(r,1);if(_.length){let h=_[0].declaration;if(h&&z_(h,2)){let v=A0(r.symbol);BEe(c,v)||ot(c,y.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,K0(r.symbol))}}}function Qtr(r,c,_){if(!c.name)return 0;let h=ei(r),v=zc(h),T=id(v),D=An(h),V=Dh(r)&&Fu(v),Q=V?.length?id(ho(V),v.thisType):void 0,ue=Go(v),Fe=c.parent?vJ(c):Ai(c,16);return Zit(r,D,ue,Q,v,T,Fe,D2(c),Vs(c),!1,_)}function d6(r){return Tl(r)&1?r.links.target:r}function Xtr(r){return Cn(r.declarations,c=>c.kind===263||c.kind===264)}function Ytr(r,c){var _,h,v,T,D;let J=oc(c),V=new Map;e:for(let Q of J){let ue=d6(Q);if(ue.flags&4194304)continue;let Fe=Pw(r,ue.escapedName);if(!Fe)continue;let De=d6(Fe),_t=fm(ue);if(I.assert(!!De,"derived should point to something, even if it is the base class' declaration."),De===ue){let Nt=A0(r.symbol);if(_t&64&&(!Nt||!Ai(Nt,64))){for(let xn of Fu(r)){if(xn===c)continue;let Fr=Pw(xn,ue.escapedName),kr=Fr&&d6(Fr);if(kr&&kr!==ue)continue e}let zt=Pn(c),Dr=Pn(r),Tr=ja(Q),En=Zr((_=V.get(Nt))==null?void 0:_.missedProperties,Tr);V.set(Nt,{baseTypeName:zt,typeName:Dr,missedProperties:En})}}else{let Nt=fm(De);if(_t&2||Nt&2)continue;let zt,Dr=ue.flags&98308,Tr=De.flags&98308;if(Dr&&Tr){if((Tl(ue)&6?(h=ue.declarations)!=null&&h.some(Fr=>tat(Fr,_t)):(v=ue.declarations)!=null&&v.every(Fr=>tat(Fr,_t)))||Tl(ue)&262144||De.valueDeclaration&&Vn(De.valueDeclaration))continue;let En=Dr!==4&&Tr===4;if(En||Dr===4&&Tr!==4){let Fr=En?y._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:y._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;ot(ls(De.valueDeclaration)||De.valueDeclaration,Fr,ja(ue),Pn(c),Pn(r))}else if(ae){let Fr=(T=De.declarations)==null?void 0:T.find(kr=>kr.kind===172&&!kr.initializer);if(Fr&&!(De.flags&33554432)&&!(_t&64)&&!(Nt&64)&&!((D=De.declarations)!=null&&D.some(kr=>!!(kr.flags&33554432)))){let kr=Y5(A0(r.symbol)),Un=Fr.name;if(Fr.exclamationToken||!kr||!Ye(Un)||!fe||!nat(Un,r,kr)){let ki=y.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;ot(ls(De.valueDeclaration)||De.valueDeclaration,ki,ja(ue),Pn(c))}}}continue}else if(IPe(ue)){if(IPe(De)||De.flags&4)continue;I.assert(!!(De.flags&98304)),zt=y.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ue.flags&98304?zt=y.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:zt=y.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;ot(ls(De.valueDeclaration)||De.valueDeclaration,zt,Pn(c),ja(ue),Pn(r))}}for(let[Q,ue]of V)if(Re(ue.missedProperties)===1)vu(Q)?ot(Q,y.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ho(ue.missedProperties),ue.baseTypeName):ot(Q,y.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,ue.typeName,ho(ue.missedProperties),ue.baseTypeName);else if(Re(ue.missedProperties)>5){let Fe=Dt(ue.missedProperties.slice(0,4),_t=>`'${_t}'`).join(", "),De=Re(ue.missedProperties)-4;vu(Q)?ot(Q,y.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,ue.baseTypeName,Fe,De):ot(Q,y.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,ue.typeName,ue.baseTypeName,Fe,De)}else{let Fe=Dt(ue.missedProperties,De=>`'${De}'`).join(", ");vu(Q)?ot(Q,y.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,ue.baseTypeName,Fe):ot(Q,y.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,ue.typeName,ue.baseTypeName,Fe)}}function tat(r,c){return c&64&&(!is(r)||!r.initializer)||Cp(r.parent)}function Ztr(r,c,_){if(!Re(c))return _;let h=new Map;Ge(_,v=>{h.set(v.escapedName,v)});for(let v of c){let T=oc(id(v,r.thisType));for(let D of T){let J=h.get(D.escapedName);J&&D.parent===J.parent&&h.delete(D.escapedName)}}return Ka(h.values())}function err(r,c){let _=Fu(r);if(_.length<2)return!0;let h=new Map;Ge(Cke(r).declaredProperties,T=>{h.set(T.escapedName,{prop:T,containingType:r})});let v=!0;for(let T of _){let D=oc(id(T,r.thisType));for(let J of D){let V=h.get(J.escapedName);if(!V)h.set(J.escapedName,{prop:J,containingType:T});else if(V.containingType!==r&&!eKt(V.prop,J)){v=!1;let ue=Pn(V.containingType),Fe=Pn(T),De=vs(void 0,y.Named_property_0_of_types_1_and_2_are_not_identical,ja(J),ue,Fe);De=vs(De,y.Interface_0_cannot_simultaneously_extend_types_1_and_2,Pn(r),ue,Fe),Jo.add(Cv(rn(c),c,De))}}}return v}function trr(r){if(!fe||!me||r.flags&33554432)return;let c=Y5(r);for(let _ of r.members)if(!(gf(_)&128)&&!Vs(_)&&rat(_)){let h=_.name;if(Ye(h)||Ca(h)||po(h)){let v=An(ei(_));v.flags&3||i6(v)||(!c||!nat(h,v,c))&&ot(_.name,y.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Oc(h))}}}function rat(r){return r.kind===172&&!D2(r)&&!r.exclamationToken&&!r.initializer}function rrr(r,c,_,h,v){for(let T of _)if(T.pos>=h&&T.pos<=v){let D=j.createPropertyAccessExpression(j.createThis(),r);Xo(D.expression,D),Xo(D,T),D.flowNode=T.returnFlowNode;let J=c1(D,c,nS(c));if(!i6(J))return!0}return!1}function nat(r,c,_){let h=po(r)?j.createElementAccessExpression(j.createThis(),r.expression):j.createPropertyAccessExpression(j.createThis(),r);Xo(h.expression,h),Xo(h,_),h.flowNode=_.returnFlowNode;let v=c1(h,c,nS(c));return!i6(v)}function nrr(r){l0(r)||Rnr(r),Jse(r.parent)||Ur(r,y._0_declarations_can_only_be_declared_inside_a_block,"interface"),nH(r.typeParameters),n(()=>{q8(r.name,y.Interface_name_cannot_be_0),cL(r);let c=ei(r);Git(c);let _=Zc(c,264);if(r===_){let h=zc(c),v=id(h);if(err(h,r.name)){for(let T of Fu(h))$p(v,id(T,h.thisType),r.name,y.Interface_0_incorrectly_extends_interface_1);Ese(h,c)}}hit(r)}),Ge(d4(r),c=>{(!Tc(c.expression)||Kp(c.expression))&&ot(c.expression,y.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),bEe(c)}),Ge(r.members,wo),n(()=>{yEe(r),aS(r)})}function irr(r){if(l0(r),q8(r.name,y.Type_alias_name_cannot_be_0),Jse(r.parent)||Ur(r,y._0_declarations_can_only_be_declared_inside_a_block,"type"),cL(r),nH(r.typeParameters),r.type.kind===141){let c=Re(r.typeParameters);(c===0?r.name.escapedText==="BuiltinIteratorReturn":c===1&&EZ.has(r.name.escapedText))||ot(r.type,y.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else wo(r.type),aS(r)}function iat(r){let c=Zn(r);if(!(c.flags&1024)){c.flags|=1024;let _=0,h;for(let v of r.members){let T=arr(v,_,h);Zn(v).enumMemberValue=T,_=typeof T.value=="number"?T.value+1:void 0,h=v}}}function arr(r,c,_){if(VF(r.name))ot(r.name,y.Computed_property_names_are_not_allowed_in_enums);else{let h=VP(r.name);Mv(h)&&!B4(h)&&ot(r.name,y.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return srr(r);if(r.parent.flags&33554432&&!wS(r.parent))return Bu(void 0);if(c===void 0)return ot(r.name,y.Enum_member_must_have_initializer),Bu(void 0);if(zm(z)&&_?.initializer){let h=QC(_);typeof h.value=="number"&&!h.resolvedOtherFiles||ot(r.name,y.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return Bu(c)}function srr(r){let c=wS(r.parent),_=r.initializer,h=gt(_,r);return h.value!==void 0?c&&typeof h.value=="number"&&!isFinite(h.value)?ot(_,isNaN(h.value)?y.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:y.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):zm(z)&&typeof h.value=="string"&&!h.isSyntacticallyString&&ot(_,y._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${fi(r.parent.name)}.${VP(r.name)}`):c?ot(_,y.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&33554432?ot(_,y.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):$p(Wa(_),dr,_,y.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),h}function aat(r,c){let _=Ol(r,111551,!0);if(!_)return Bu(void 0);if(r.kind===80){let h=r;if(B4(h.escapedText)&&_===r6(h.escapedText,111551,void 0))return Bu(+h.escapedText,!1)}if(_.flags&8)return c?sat(r,_,c):QC(_.valueDeclaration);if(UD(_)){let h=_.valueDeclaration;if(h&&Ui(h)&&!h.type&&h.initializer&&(!c||h!==c&&ry(h,c))){let v=gt(h.initializer,h);return c&&rn(c)!==rn(h)?Bu(v.value,!1,!0,!0):Bu(v.value,v.isSyntacticallyString,v.resolvedOtherFiles,!0)}}return Bu(void 0)}function orr(r,c){let _=r.expression;if(Tc(_)&&Ho(r.argumentExpression)){let h=Ol(_,111551,!0);if(h&&h.flags&384){let v=gl(r.argumentExpression.text),T=h.exports.get(v);if(T)return I.assert(rn(T.valueDeclaration)===rn(h.valueDeclaration)),c?sat(r,T,c):QC(T.valueDeclaration)}}return Bu(void 0)}function sat(r,c,_){let h=c.valueDeclaration;if(!h||h===_)return ot(r,y.Property_0_is_used_before_being_assigned,ja(c)),Bu(void 0);if(!ry(h,_))return ot(r,y.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),Bu(0);let v=QC(h);return _.parent!==h.parent?Bu(v.value,v.isSyntacticallyString,v.resolvedOtherFiles,!0):v}function crr(r){n(()=>lrr(r))}function lrr(r){l0(r),B8(r,r.name),cL(r),r.members.forEach(urr),z.erasableSyntaxOnly&&!(r.flags&33554432)&&ot(r,y.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),iat(r);let c=ei(r),_=Zc(c,r.kind);if(r===_){if(c.declarations&&c.declarations.length>1){let v=wS(r);Ge(c.declarations,T=>{B2(T)&&wS(T)!==v&&ot(ls(T),y.Enum_declarations_must_all_be_const_or_non_const)})}let h=!1;Ge(c.declarations,v=>{if(v.kind!==266)return!1;let T=v;if(!T.members.length)return!1;let D=T.members[0];D.initializer||(h?ot(D.name,y.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):h=!0)})}}function urr(r){Ca(r.name)&&ot(r,y.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&Wa(r.initializer)}function prr(r){let c=r.declarations;if(c){for(let _ of c)if((_.kind===263||_.kind===262&&jm(_.body))&&!(_.flags&33554432))return _}}function frr(r,c){let _=Jg(r),h=Jg(c);return C1(_)?C1(h):C1(h)?!1:_===h}function _rr(r){r.body&&(wo(r.body),Oy(r)||aS(r)),n(c);function c(){var _,h;let v=Oy(r),T=r.flags&33554432;v&&!T&&ot(r.name,y.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let D=df(r),J=D?y.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:y.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(iH(r,J))return;if(l0(r)||!T&&r.name.kind===11&&Ur(r.name,y.Only_ambient_modules_can_use_quoted_names),Ye(r.name)&&(B8(r,r.name),!(r.flags&2080))){let Q=rn(r),ue=$de(r),Fe=Ch(Q,ue);lT.add(Eu(Q,Fe.start,Fe.length,y.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}cL(r);let V=ei(r);if(V.flags&512&&!T&&DZ(r,vx(z))){if(z.erasableSyntaxOnly&&ot(r.name,y.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),zm(z)&&!rn(r).externalModuleIndicator&&ot(r.name,y.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,qe),((_=V.declarations)==null?void 0:_.length)>1){let Q=prr(V);Q&&(rn(r)!==rn(Q)?ot(r.name,y.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<Q.pos&&ot(r.name,y.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));let ue=Zc(V,263);ue&&frr(r,ue)&&(Zn(r).flags|=2048)}if(z.verbatimModuleSyntax&&r.parent.kind===307&&e.getEmitModuleFormatOfFile(r.parent)===1){let Q=(h=r.modifiers)==null?void 0:h.find(ue=>ue.kind===95);Q&&ot(Q,y.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(D)if(h2(r)){if((v||ei(r).flags&33554432)&&r.body)for(let ue of r.body.statements)FEe(ue,v)}else C1(r.parent)?v?ot(r.name,y.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Hu(lm(r.name))&&ot(r.name,y.Ambient_module_declaration_cannot_specify_relative_module_name):v?ot(r.name,y.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):ot(r.name,y.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function FEe(r,c){switch(r.kind){case 243:for(let h of r.declarationList.declarations)FEe(h,c);break;case 277:case 278:sp(r,y.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(kk(r))break;case 272:sp(r,y.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let _=r.name;if(Os(_)){for(let h of _.elements)FEe(h,c);break}case 263:case 266:case 262:case 264:case 267:case 265:if(c)return;break}}function drr(r){switch(r.kind){case 80:return r;case 166:do r=r.left;while(r.kind!==80);return r;case 211:do{if(Ev(r.expression)&&!Ca(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function Dse(r){let c=KP(r);if(!c||Sl(c))return!1;if(!vo(c))return ot(c,y.String_literal_expected),!1;let _=r.parent.kind===268&&df(r.parent.parent);if(r.parent.kind!==307&&!_)return ot(c,r.kind===278?y.Export_declarations_are_not_permitted_in_a_namespace:y.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(_&&Hu(c.text)&&!yj(r))return ot(r,y.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!zu(r)&&r.attributes){let h=r.attributes.token===118?y.Import_attribute_values_must_be_string_literal_expressions:y.Import_assertion_values_must_be_string_literal_expressions,v=!1;for(let T of r.attributes.elements)vo(T.value)||(v=!0,ot(T.value,h));return!v}return!0}function Ose(r,c=!0){r===void 0||r.kind!==11||(c?(X===5||X===6)&&Ur(r,y.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):Ur(r,y.Identifier_expected))}function Nse(r){var c,_,h,v;let T=ei(r),D=pu(T);if(D!==oe){if(T=Uo(T.exportSymbol||T),jn(r)&&!(D.flags&111551)&&!w1(r)){let Q=ax(r)?r.propertyName||r.name:Gu(r)?r.name:r;if(I.assert(r.kind!==280),r.kind===281){let ue=ot(Q,y.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Fe=(_=(c=rn(r).symbol)==null?void 0:c.exports)==null?void 0:_.get(g2(r.propertyName||r.name));if(Fe===D){let De=(h=Fe.declarations)==null?void 0:h.find(YO);De&&Hs(ue,Mn(De,y._0_is_automatically_exported_here,ka(Fe.escapedName)))}}else{I.assert(r.kind!==260);let ue=Br(r,Df(sl,zu)),Fe=(ue&&((v=GP(ue))==null?void 0:v.text))??"...",De=ka(Ye(Q)?Q.escapedText:T.escapedName);ot(Q,y._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,De,`import("${Fe}").${De}`)}return}let J=rd(D),V=(T.flags&1160127?111551:0)|(T.flags&788968?788968:0)|(T.flags&1920?1920:0);if(J&V){let Q=r.kind===281?y.Export_declaration_conflicts_with_exported_declaration_of_0:y.Import_declaration_conflicts_with_local_declaration_of_0;ot(r,Q,ja(T))}else r.kind!==281&&z.isolatedModules&&!Br(r,w1)&&T.flags&1160127&&ot(r,y.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ja(T),qe);if(zm(z)&&!w1(r)&&!(r.flags&33554432)){let Q=ah(T),ue=!(J&111551);if(ue||Q)switch(r.kind){case 273:case 276:case 271:{if(z.verbatimModuleSyntax){I.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");let Fe=z.verbatimModuleSyntax&&kk(r)?y.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:ue?y._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:y._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,De=fx(r.kind===276&&r.propertyName||r.name);Ux(ot(r,Fe,De),ue?void 0:Q,De)}ue&&r.kind===271&&z_(r,32)&&ot(r,y.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,qe);break}case 281:if(z.verbatimModuleSyntax||rn(Q)!==rn(r)){let Fe=fx(r.propertyName||r.name),De=ue?ot(r,y.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,qe):ot(r,y._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Fe,qe);Ux(De,ue?void 0:Q,Fe);break}}if(z.verbatimModuleSyntax&&r.kind!==271&&!jn(r)&&e.getEmitModuleFormatOfFile(rn(r))===1?ot(r,y.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):X===200&&r.kind!==271&&r.kind!==260&&e.getEmitModuleFormatOfFile(rn(r))===1&&ot(r,y.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),z.verbatimModuleSyntax&&!w1(r)&&!(r.flags&33554432)&&J&128){let Fe=D.valueDeclaration,De=e.getRedirectReferenceForResolutionFromSourceOfProject(rn(Fe).resolvedPath);Fe.flags&33554432&&(!De||!vx(De.commandLine.options))&&ot(r,y.Cannot_access_ambient_const_enums_when_0_is_enabled,qe)}}if(bf(r)){let Q=MEe(T,r);rb(Q)&&Q.declarations&&Wy(r,Q.declarations,Q.escapedName)}}}function MEe(r,c){if(!(r.flags&2097152)||rb(r)||!zd(r))return r;let _=pu(r);if(_===oe)return _;for(;r.flags&2097152;){let h=Xae(r);if(h){if(h===_)break;if(h.declarations&&Re(h.declarations))if(rb(h)){Wy(c,h.declarations,h.escapedName);break}else{if(r===_)break;r=h}}else break}return _}function Ase(r){B8(r,r.name),Nse(r),r.kind===276&&(Ose(r.propertyName),Dy(r.propertyName||r.name)&&Av(z)&&e.getEmitModuleFormatOfFile(rn(r))<4&&$u(r,131072))}function REe(r){var c;let _=r.attributes;if(_){let h=Yke(!0);h!==Ro&&$p(ch(_),gV(h,32768),_);let v=fee(r),T=rA(_,v?Ur:void 0),D=r.attributes.token===118;if(v&&T)return;if(!wge(X))return Ur(_,D?y.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:y.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve);if(X===199&&!D)return sp(_,y.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(r.moduleSpecifier&&sb(r.moduleSpecifier)===1)return Ur(_,D?y.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:y.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(zh(r)||(sl(r)?(c=r.importClause)==null?void 0:c.isTypeOnly:r.isTypeOnly))return Ur(_,D?y.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:y.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(T)return Ur(_,y.resolution_mode_can_only_be_set_for_type_only_imports)}}function mrr(r){return Cf(Nl(r.value))}function grr(r){if(!iH(r,jn(r)?y.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:y.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!l0(r)&&r.modifiers&&sp(r,y.An_import_declaration_cannot_have_modifiers),Dse(r)){let c,_=r.importClause;_&&!sir(_)?(_.name&&Ase(_),_.namedBindings&&(_.namedBindings.kind===274?(Ase(_.namedBindings),e.getEmitModuleFormatOfFile(rn(r))<4&&Av(z)&&$u(r,65536)):(c=wf(r,r.moduleSpecifier),c&&Ge(_.namedBindings.elements,Ase))),!_.isTypeOnly&&101<=X&&X<=199&&Yv(r.moduleSpecifier,c)&&!hrr(r)&&ot(r.moduleSpecifier,y.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,mn[X])):it&&!_&&wf(r,r.moduleSpecifier)}REe(r)}}function hrr(r){return!!r.attributes&&r.attributes.elements.some(c=>{var _;return lm(c.name)==="type"&&((_=_i(c.value,Ho))==null?void 0:_.text)==="json"})}function yrr(r){if(!iH(r,jn(r)?y.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:y.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(l0(r),z.erasableSyntaxOnly&&!(r.flags&33554432)&&ot(r,y.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),kk(r)||Dse(r)))if(Ase(r),$D(r,6),r.moduleReference.kind!==283){let c=pu(ei(r));if(c!==oe){let _=rd(c);if(_&111551){let h=Af(r.moduleReference);Ol(h,112575).flags&1920||ot(h,y.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Oc(h))}_&788968&&q8(r.name,y.Import_name_cannot_be_0)}r.isTypeOnly&&Ur(r,y.An_import_alias_cannot_use_import_type)}else 5<=X&&X<=99&&!r.isTypeOnly&&!(r.flags&33554432)&&Ur(r,y.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function vrr(r){if(!iH(r,jn(r)?y.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:y.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!l0(r)&&Gme(r)&&sp(r,y.An_export_declaration_cannot_have_modifiers),brr(r),!r.moduleSpecifier||Dse(r))if(r.exportClause&&!Fy(r.exportClause)){Ge(r.exportClause.elements,xrr);let c=r.parent.kind===268&&df(r.parent.parent),_=!c&&r.parent.kind===268&&!r.moduleSpecifier&&r.flags&33554432;r.parent.kind!==307&&!c&&!_&&ot(r,y.Export_declarations_are_not_permitted_in_a_namespace)}else{let c=wf(r,r.moduleSpecifier);c&&hT(c)?ot(r.moduleSpecifier,y.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ja(c)):r.exportClause&&(Nse(r.exportClause),Ose(r.exportClause.name)),e.getEmitModuleFormatOfFile(rn(r))<4&&(r.exportClause?Av(z)&&$u(r,65536):$u(r,32768))}REe(r)}}function brr(r){var c;return r.isTypeOnly&&((c=r.exportClause)==null?void 0:c.kind)===279?Jat(r.exportClause):!1}function iH(r,c){let _=r.parent.kind===307||r.parent.kind===268||r.parent.kind===267;return _||sp(r,c),!_}function xrr(r){Nse(r);let c=r.parent.parent.moduleSpecifier!==void 0;if(Ose(r.propertyName,c),Ose(r.name),y_(z)&&CT(r.propertyName||r.name,!0),c)Av(z)&&e.getEmitModuleFormatOfFile(rn(r))<4&&Dy(r.propertyName||r.name)&&$u(r,131072);else{let _=r.propertyName||r.name;if(_.kind===11)return;let h=Ct(_,_.escapedText,2998271,void 0,!0);h&&(h===xe||h===nt||h.declarations&&C1(PT(h.declarations[0])))?ot(_,y.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,fi(_)):$D(r,7)}}function Srr(r){let c=r.isExportEquals?y.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:y.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(iH(r,c))return;z.erasableSyntaxOnly&&r.isExportEquals&&!(r.flags&33554432)&&ot(r,y.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);let _=r.parent.kind===307?r.parent:r.parent.parent;if(_.kind===267&&!df(_)){r.isExportEquals?ot(r,y.An_export_assignment_cannot_be_used_in_a_namespace):ot(r,y.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!l0(r)&&tX(r)&&sp(r,y.An_export_assignment_cannot_have_modifiers);let h=hu(r);h&&$p(Nl(r.expression),Sa(h),r.expression);let v=!r.isExportEquals&&!(r.flags&33554432)&&z.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(rn(r))===1;if(r.expression.kind===80){let T=r.expression,D=k_(Ol(T,-1,!0,!0,r));if(D){$D(r,3);let J=ah(D,111551);if(rd(D)&111551?(Nl(T),!v&&!(r.flags&33554432)&&z.verbatimModuleSyntax&&J&&ot(T,r.isExportEquals?y.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:y.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,fi(T))):!v&&!(r.flags&33554432)&&z.verbatimModuleSyntax&&ot(T,r.isExportEquals?y.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:y.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,fi(T)),!v&&!(r.flags&33554432)&&zm(z)&&!(D.flags&111551)){let V=rd(D,!1,!0);D.flags&2097152&&V&788968&&!(V&111551)&&(!J||rn(J)!==rn(r))?ot(T,r.isExportEquals?y._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:y._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,fi(T),qe):J&&rn(J)!==rn(r)&&Ux(ot(T,r.isExportEquals?y._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:y._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,fi(T),qe),J,fi(T))}}else Nl(T);y_(z)&&CT(T,!0)}else Nl(r.expression);v&&ot(r,y.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),oat(_),r.flags&33554432&&!Tc(r.expression)&&Ur(r.expression,y.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(X>=5&&X!==200&&(r.flags&33554432&&e.getImpliedNodeFormatForEmit(rn(r))===99||!(r.flags&33554432)&&e.getImpliedNodeFormatForEmit(rn(r))!==1)?Ur(r,y.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):X===4&&!(r.flags&33554432)&&Ur(r,y.Export_assignment_is_not_supported_when_module_flag_is_system))}function Trr(r){return Lu(r.exports,(c,_)=>_!=="export=")}function oat(r){let c=ei(r),_=Fa(c);if(!_.exportsChecked){let h=c.exports.get("export=");if(h&&Trr(c)){let T=zd(h)||h.valueDeclaration;T&&!yj(T)&&!jn(T)&&ot(T,y.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let v=e0(c);v&&v.forEach(({declarations:T,flags:D},J)=>{if(J==="__export"||D&1920)return;let V=Vu(T,b1(n3t,NO(Cp)));if(!(D&524288&&V<=2)&&V>1&&!Ise(T))for(let Q of T)aBe(Q)&&Jo.add(Mn(Q,y.Cannot_redeclare_exported_variable_0,ka(J)))}),_.exportsChecked=!0}}function Ise(r){return r&&r.length>1&&r.every(c=>jn(c)&&Lc(c)&&(Ck(c.expression)||Ev(c.expression)))}function wo(r){if(r){let c=N;N=r,S=0,wrr(r),N=c}}function wrr(r){if(XD(r)&8388608)return;h5(r)&&Ge(r.jsDoc,({comment:_,tags:h})=>{cat(_),Ge(h,v=>{cat(v.comment),jn(r)&&wo(v)})});let c=r.kind;if(i)switch(c){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(c>=243&&c<=259&&pN(r)&&r.flowNode&&!wV(r.flowNode)&&rh(z.allowUnreachableCode===!1,r,y.Unreachable_code_detected),c){case 168:return dit(r);case 169:return mit(r);case 172:return yit(r);case 171:return oer(r);case 185:case 184:case 179:case 180:case 181:return sL(r);case 174:case 173:return cer(r);case 175:return ler(r);case 176:return uer(r);case 177:case 178:return bit(r);case 183:return bEe(r);case 182:return ner(r);case 186:return ger(r);case 187:return her(r);case 188:return yer(r);case 189:return ver(r);case 192:case 193:return ber(r);case 196:case 190:case 191:return wo(r.type);case 197:return wer(r);case 198:return ker(r);case 194:return Cer(r);case 195:return Per(r);case 203:return Eer(r);case 205:return Der(r);case 202:return Oer(r);case 328:return Qer(r);case 329:return Ker(r);case 346:case 338:case 340:return Ber(r);case 345:return qer(r);case 344:return Jer(r);case 324:case 325:case 326:return Wer(r);case 341:return Uer(r);case 348:return $er(r);case 317:Ver(r);case 315:case 314:case 312:case 313:case 322:lat(r),xs(r,wo);return;case 318:krr(r);return;case 309:return wo(r.type);case 333:case 335:case 334:return Xer(r);case 350:return zer(r);case 343:return Her(r);case 351:return Ger(r);case 199:return xer(r);case 200:return Ser(r);case 262:return Ler(r);case 241:case 268:return Tse(r);case 243:return mtr(r);case 244:return gtr(r);case 245:return htr(r);case 246:return btr(r);case 247:return xtr(r);case 248:return Str(r);case 249:return wtr(r);case 250:return Ttr(r);case 251:case 252:return Itr(r);case 253:return Ftr(r);case 254:return Mtr(r);case 255:return Rtr(r);case 256:return jtr(r);case 257:return Ltr(r);case 258:return Btr(r);case 260:return _tr(r);case 208:return dtr(r);case 263:return Htr(r);case 264:return nrr(r);case 265:return irr(r);case 266:return crr(r);case 267:return _rr(r);case 272:return grr(r);case 271:return yrr(r);case 278:return vrr(r);case 277:return Srr(r);case 242:case 259:u1(r);return;case 282:return fer(r)}}function cat(r){cs(r)&&Ge(r,c=>{qP(c)&&wo(c)})}function lat(r){if(!jn(r))if(Sz(r)||jN(r)){let c=to(Sz(r)?54:58),_=r.postfix?y._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:y._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,h=r.type,v=Sa(h);Ur(r,_,c,Pn(jN(r)&&!(v===Pr||v===zr)?Fi(Zr([v,ke],r.postfix?void 0:rr)):v))}else Ur(r,y.JSDoc_types_can_only_be_used_inside_documentation_comments)}function krr(r){lat(r),wo(r.type);let{parent:c}=r;if(Da(c)&&LN(c.parent)){ao(c.parent.parameters)!==c&&ot(r,y.A_rest_parameter_must_be_last_in_a_parameter_list);return}JS(c)||ot(r,y.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let _=r.parent.parent;if(!Ad(_)){ot(r,y.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let h=y5(_);if(!h)return;let v=PS(_);(!v||ao(v.parameters).symbol!==h)&&ot(r,y.A_rest_parameter_must_be_last_in_a_parameter_list)}function Crr(r){let c=Sa(r.type),{parent:_}=r,h=r.parent.parent;if(JS(r.parent)&&Ad(h)){let v=PS(h),T=hY(h.parent.parent);if(v||T){let D=dc(T?h.parent.parent.typeExpression.parameters:v.parameters),J=y5(h);if(!D||J&&D.symbol===J&&Ey(D))return Up(c)}}return Da(_)&&LN(_.parent)?Up(c):ip(c)}function KD(r){let c=rn(r),_=Zn(c);_.flags&1?I.assert(!_.deferredNodes,"A type-checked file should have no deferred nodes."):(_.deferredNodes||(_.deferredNodes=new Set),_.deferredNodes.add(r))}function uat(r){let c=Zn(r);c.deferredNodes&&c.deferredNodes.forEach(Prr),c.deferredNodes=void 0}function Prr(r){var c,_;(c=Fn)==null||c.push(Fn.Phase.Check,"checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let h=N;switch(N=r,S=0,r.kind){case 213:case 214:case 215:case 170:case 286:HC(r);break;case 218:case 219:case 174:case 173:xZt(r);break;case 177:case 178:bit(r);break;case 231:Vtr(r);break;case 168:rer(r);break;case 285:EXt(r);break;case 284:OXt(r);break;case 216:case 234:case 217:$Yt(r);break;case 222:Wa(r.expression);break;case 226:SJ(r)&&HC(r);break}N=h,(_=Fn)==null||_.pop()}function Err(r,c){var _,h;(_=Fn)==null||_.push(Fn.Phase.Check,c?"checkSourceFileNodes":"checkSourceFile",{path:r.path},!0);let v=c?"beforeCheckNodes":"beforeCheck",T=c?"afterCheckNodes":"afterCheck";Qc(v),c?Orr(r,c):Drr(r),Qc(T),R_("Check",v,T),(h=Fn)==null||h.pop()}function pat(r,c){if(c)return!1;switch(r){case 0:return!!z.noUnusedLocals;case 1:return!!z.noUnusedParameters;default:return I.assertNever(r)}}function fat(r){return G1.get(r.path)||ce}function Drr(r){let c=Zn(r);if(!(c.flags&1)){if(kN(r,z,e))return;Bat(r),wa(Zh),wa(X1),wa($0),wa(Jy),wa(cT),c.flags&8388608&&(Zh=c.potentialThisCollisions,X1=c.potentialNewTargetCollisions,$0=c.potentialWeakMapSetCollisions,Jy=c.potentialReflectCollisions,cT=c.potentialUnusedRenamedBindingElementsInTypes),Ge(r.statements,wo),wo(r.endOfFileToken),uat(r),q_(r)&&aS(r),n(()=>{!r.isDeclarationFile&&(z.noUnusedLocals||z.noUnusedParameters)&&Nit(fat(r),(_,h,v)=>{!UP(_)&&pat(h,!!(_.flags&33554432))&&Jo.add(v)}),r.isDeclarationFile||ttr()}),q_(r)&&oat(r),Zh.length&&(Ge(Zh,itr),wa(Zh)),X1.length&&(Ge(X1,atr),wa(X1)),$0.length&&(Ge($0,ltr),wa($0)),Jy.length&&(Ge(Jy,ptr),wa(Jy)),c.flags|=1}}function Orr(r,c){let _=Zn(r);if(!(_.flags&1)){if(kN(r,z,e))return;Bat(r),wa(Zh),wa(X1),wa($0),wa(Jy),wa(cT),Ge(c,wo),uat(r),(_.potentialThisCollisions||(_.potentialThisCollisions=[])).push(...Zh),(_.potentialNewTargetCollisions||(_.potentialNewTargetCollisions=[])).push(...X1),(_.potentialWeakMapSetCollisions||(_.potentialWeakMapSetCollisions=[])).push(...$0),(_.potentialReflectCollisions||(_.potentialReflectCollisions=[])).push(...Jy),(_.potentialUnusedRenamedBindingElementsInTypes||(_.potentialUnusedRenamedBindingElementsInTypes=[])).push(...cT),_.flags|=8388608;for(let h of c){let v=Zn(h);v.flags|=8388608}}}function _at(r,c,_){try{return i=c,Nrr(r,_)}finally{i=void 0}}function jEe(){for(let r of t)r();t=[]}function LEe(r,c){jEe();let _=n;n=h=>h(),Err(r,c),n=_}function Nrr(r,c){if(r){jEe();let _=Jo.getGlobalDiagnostics(),h=_.length;LEe(r,c);let v=Jo.getDiagnostics(r.fileName);if(c)return v;let T=Jo.getGlobalDiagnostics();if(T!==_){let D=dB(_,T,E4);return ya(D,v)}else if(h===0&&T.length>0)return ya(T,v);return v}return Ge(e.getSourceFiles(),_=>LEe(_)),Jo.getDiagnostics()}function Arr(){return jEe(),Jo.getGlobalDiagnostics()}function Irr(r,c){if(r.flags&67108864)return[];let _=Qs(),h=!1;return v(),_.delete("this"),zke(_);function v(){for(;r;){switch(Py(r)&&r.locals&&!C1(r)&&D(r.locals,c),r.kind){case 307:if(!Du(r))break;case 267:J(ei(r).exports,c&2623475);break;case 266:D(ei(r).exports,c&8);break;case 231:r.name&&T(r.symbol,c);case 263:case 264:h||D(Xy(ei(r)),c&788968);break;case 218:r.name&&T(r.symbol,c);break}fme(r)&&T(pe,c),h=Vs(r),r=r.parent}D(Tt,c)}function T(V,Q){if(bN(V)&Q){let ue=V.escapedName;_.has(ue)||_.set(ue,V)}}function D(V,Q){Q&&V.forEach(ue=>{T(ue,Q)})}function J(V,Q){Q&&V.forEach(ue=>{!Zc(ue,281)&&!Zc(ue,280)&&ue.escapedName!=="default"&&T(ue,Q)})}}function Frr(r){return r.kind===80&&pE(r.parent)&&ls(r.parent)===r}function dat(r){for(;r.parent.kind===166;)r=r.parent;return r.parent.kind===183}function Mrr(r){for(;r.parent.kind===211;)r=r.parent;return r.parent.kind===233}function mat(r,c){let _,h=dp(r);for(;h&&!(_=c(h));)h=dp(h);return _}function Rrr(r){return!!Br(r,c=>ul(c)&&jm(c.body)||is(c)?!0:Ri(c)||Dc(c)?"quit":!1)}function BEe(r,c){return!!mat(r,_=>_===c)}function jrr(r){for(;r.parent.kind===166;)r=r.parent;if(r.parent.kind===271)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===277)return r.parent.expression===r?r.parent:void 0}function Fse(r){return jrr(r)!==void 0}function Lrr(r){switch($l(r.parent.parent)){case 1:case 3:return bd(r.parent);case 5:if(ai(r.parent)&&xN(r.parent)===r)return;case 4:case 2:return ei(r.parent.parent)}}function Brr(r){let c=r.parent;for(;If(c);)r=c,c=c.parent;if(c&&c.kind===205&&c.qualifier===r)return c}function qrr(r){if(r.expression.kind===110){let c=mf(r,!1,!1);if(Ss(c)){let _=krt(c);if(_){let h=BT(_,void 0),v=Prt(_,h);return v&&!Ae(v)}}}}function gat(r){if(Ny(r))return bd(r.parent);if(jn(r)&&r.parent.kind===211&&r.parent===r.parent.parent.left&&!Ca(r)&&!zS(r)&&!qrr(r.parent)){let c=Lrr(r);if(c)return c}if(r.parent.kind===277&&Tc(r)){let c=Ol(r,2998271,!0);if(c&&c!==oe)return c}else if(Of(r)&&Fse(r)){let c=DS(r,271);return I.assert(c!==void 0),kC(r,!0)}if(Of(r)){let c=Brr(r);if(c){Sa(c);let _=Zn(r).resolvedSymbol;return _===oe?void 0:_}}for(;ege(r);)r=r.parent;if(Mrr(r)){let c=0;r.parent.kind===233?(c=Eh(r)?788968:111551,xJ(r.parent)&&(c|=111551)):c=1920,c|=2097152;let _=Tc(r)?Ol(r,c,!0):void 0;if(_)return _}if(r.parent.kind===341)return y5(r.parent);if(r.parent.kind===168&&r.parent.parent.kind===345){I.assert(!jn(r));let c=Eme(r.parent);return c&&c.symbol}if(zg(r)){if(Sl(r))return;let c=Br(r,Df(qP,n3,zS)),_=c?901119:111551;if(r.kind===80){if(cN(r)&&HD(r)){let v=Zae(r.parent);return v===oe?void 0:v}let h=Ol(r,_,!0,!0,PS(r));if(!h&&c){let v=Br(r,Df(Ri,Cp));if(v)return aH(r,!0,ei(v))}if(h&&c){let v=S2(r);if(v&&L1(v)&&v===h.valueDeclaration)return Ol(r,_,!0,!0,rn(v))||h}return h}else{if(Ca(r))return nse(r);if(r.kind===211||r.kind===166){let h=Zn(r);return h.resolvedSymbol?h.resolvedSymbol:(r.kind===211?(rse(r,0),h.resolvedSymbol||(h.resolvedSymbol=hat(Nl(r.expression),e1(r.name)))):nnt(r,0),!h.resolvedSymbol&&c&&If(r)?aH(r):h.resolvedSymbol)}else if(zS(r))return aH(r)}}else if(Of(r)&&dat(r)){let c=r.parent.kind===183?788968:1920,_=Ol(r,c,!0,!0);return _&&_!==oe?_:tae(r)}if(r.parent.kind===182)return Ol(r,1,!0)}function hat(r,c){let _=Jke(r,c);if(_.length&&r.members){let h=Xie(ph(r).members);if(_===Wp(r))return h;if(h){let v=Fa(h),T=Bi(_,J=>J.declaration),D=Dt(T,Wo).join(",");if(v.filteredIndexSymbolCache||(v.filteredIndexSymbolCache=new Map),v.filteredIndexSymbolCache.has(D))return v.filteredIndexSymbolCache.get(D);{let J=fo(131072,"__index");return J.declarations=Bi(_,V=>V.declaration),J.parent=r.aliasSymbol?r.aliasSymbol:r.symbol?r.symbol:Em(J.declarations[0].parent),v.filteredIndexSymbolCache.set(D,J),J}}}}function aH(r,c,_){if(Of(r)){let D=Ol(r,901119,c,!0,PS(r));if(!D&&Ye(r)&&_&&(D=Uo(Sf(nd(_),r.escapedText,901119))),D)return D}let h=Ye(r)?_:aH(r.left,c,_),v=Ye(r)?r.escapedText:r.right.escapedText;if(h){let T=h.flags&111551&&io(An(h),"prototype"),D=T?An(T):zc(h);return io(D,v)}}function Em(r,c){if(ba(r))return Du(r)?Uo(r.symbol):void 0;let{parent:_}=r,h=_.parent;if(!(r.flags&67108864)){if(sBe(r)){let v=ei(_);return ax(r.parent)&&r.parent.propertyName===r?Xae(v):v}else if(b5(r))return ei(_.parent);if(r.kind===80){if(Fse(r))return gat(r);if(_.kind===208&&h.kind===206&&r===_.propertyName){let v=QD(h),T=io(v,r.escapedText);if(T)return T}else if(Y4(_)&&_.name===r)return _.keywordToken===105&&fi(r)==="target"?tEe(_).symbol:_.keywordToken===102&&fi(r)==="meta"?aet().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 211:case 166:if(!P2(r))return gat(r);case 110:let v=mf(r,!1,!1);if(Ss(v)){let J=Vd(v);if(J.thisParameter)return J.thisParameter}if(Kq(r))return Wa(r).symbol;case 197:return xCe(r).symbol;case 108:return Wa(r).symbol;case 137:let T=r.parent;return T&&T.kind===176?T.parent.symbol:void 0;case 11:case 15:if(kS(r.parent.parent)&&o4(r.parent.parent)===r||(r.parent.kind===272||r.parent.kind===278)&&r.parent.moduleSpecifier===r||jn(r)&&zh(r.parent)&&r.parent.moduleSpecifier===r||jn(r)&&Xf(r.parent,!1)||_d(r.parent)||R1(r.parent)&&C0(r.parent.parent)&&r.parent.parent.argument===r.parent)return wf(r,r,c);if(Ls(_)&&Pk(_)&&_.arguments[1]===r)return ei(_);case 9:let D=Nc(_)?_.argumentExpression===r?Ap(_.expression):void 0:R1(_)&&j2(h)?Sa(h.objectType):void 0;return D&&io(D,gl(r.text));case 90:case 100:case 39:case 86:return bd(r.parent);case 205:return C0(r)?Em(r.argument.literal,c):void 0;case 95:return Gc(r.parent)?I.checkDefined(r.parent.symbol):void 0;case 102:case 105:return Y4(r.parent)?Jnt(r.parent).symbol:void 0;case 104:if(Vn(r.parent)){let J=Ap(r.parent.right),V=fEe(J);return V?.symbol??J.symbol}return;case 236:return Wa(r).symbol;case 295:if(cN(r)&&HD(r)){let J=Zae(r.parent);return J===oe?void 0:J}default:return}}}function Jrr(r){if(Ye(r)&&ai(r.parent)&&r.parent.name===r){let c=e1(r),_=Ap(r.parent.expression),h=_.flags&1048576?_.types:[_];return li(h,v=>Cn(Wp(v),T=>MD(c,T.keyType)))}}function zrr(r){if(r&&r.kind===304)return Ol(r.name,2208703,!0)}function Wrr(r){if(Yp(r)){let c=r.propertyName||r.name;return r.parent.parent.moduleSpecifier?iy(r.parent.parent,r):c.kind===11?void 0:Ol(c,2998271,!0)}else return Ol(r,2998271,!0)}function QD(r){if(ba(r)&&!Du(r)||r.flags&67108864)return ut;let c=sX(r),_=c&&Sm(ei(c.class));if(Eh(r)){let h=Sa(r);return _?id(h,_.thisType):h}if(zg(r))return yat(r);if(_&&!c.isImplements){let h=Yl(Fu(_));return h?id(h,_.thisType):ut}if(pE(r)){let h=ei(r);return zc(h)}if(Frr(r)){let h=Em(r);return h?zc(h):ut}if(Do(r))return oh(r,!0,0)||ut;if(Ku(r)){let h=ei(r);return h?An(h):ut}if(sBe(r)){let h=Em(r);return h?An(h):ut}if(Os(r))return oh(r.parent,!0,0)||ut;if(Fse(r)){let h=Em(r);if(h){let v=zc(h);return et(v)?An(h):v}}return Y4(r.parent)&&r.parent.keywordToken===r.kind?Jnt(r.parent):$k(r)?Yke(!1):ut}function Mse(r){if(I.assert(r.kind===210||r.kind===209),r.parent.kind===250){let v=tH(r.parent);return KC(r,v||ut)}if(r.parent.kind===226){let v=Ap(r.parent.right);return KC(r,v||ut)}if(r.parent.kind===303){let v=Js(r.parent.parent,So),T=Mse(v)||ut,D=tN(v.properties,r.parent);return rit(v,T,D)}let c=Js(r.parent,kp),_=Mse(c)||ut,h=Sb(65,_,ke,r.parent)||ut;return nit(c,_,c.elements.indexOf(r),h)}function Urr(r){let c=Mse(Js(r.parent.parent,XI));return c&&io(c,r.escapedText)}function yat(r){return S4(r)&&(r=r.parent),Cf(Ap(r))}function vat(r){let c=bd(r.parent);return Vs(r)?An(c):zc(c)}function bat(r){let c=r.name;switch(c.kind){case 80:return c_(fi(c));case 9:case 11:return c_(c.text);case 167:let _=Og(c);return Np(_,12288)?_:kt;default:return I.fail("Unsupported property name.")}}function qEe(r){r=kf(r);let c=Qs(oc(r)),_=Ns(r,0).length?Nn:Ns(r,1).length?za:void 0;return _&&Ge(oc(_),h=>{c.has(h.escapedName)||c.set(h.escapedName,h)}),ps(c)}function Rse(r){return Ns(r,0).length!==0||Ns(r,1).length!==0}function xat(r){let c=$rr(r);return c?li(c,xat):[r]}function $rr(r){if(Tl(r)&6)return Bi(Fa(r).containingType.types,c=>io(c,r.escapedName));if(r.flags&33554432){let{links:{leftSpread:c,rightSpread:_,syntheticOrigin:h}}=r;return c?[c,_]:h?[h]:lg(Vrr(r))}}function Vrr(r){let c,_=r;for(;_=Fa(_).target;)c=_;return c}function Hrr(r){if(Xc(r))return!1;let c=ds(r,Ye);if(!c)return!1;let _=c.parent;return _?!((ai(_)||xu(_))&&_.name===c)&&gL(c)===pe:!1}function Grr(r){return jF(r.parent)&&r===r.parent.name}function Krr(r,c){var _;let h=ds(r,Ye);if(h){let v=gL(h,Grr(h));if(v){if(v.flags&1048576){let D=Uo(v.exportSymbol);if(!c&&D.flags&944&&!(D.flags&3))return;v=D}let T=w_(v);if(T){if(T.flags&512&&((_=T.valueDeclaration)==null?void 0:_.kind)===307){let D=T.valueDeclaration,J=rn(h);return D!==J?void 0:D}return Br(h.parent,D=>jF(D)&&ei(D)===T)}}}}function Qrr(r){let c=hhe(r);if(c)return c;let _=ds(r,Ye);if(_){let h=pnr(_);if(wC(h,111551)&&!ah(h,111551))return zd(h)}}function Xrr(r){return r.valueDeclaration&&Do(r.valueDeclaration)&&MP(r.valueDeclaration).parent.kind===299}function Sat(r){if(r.flags&418&&r.valueDeclaration&&!ba(r.valueDeclaration)){let c=Fa(r);if(c.isDeclarationWithCollidingName===void 0){let _=Jg(r.valueDeclaration);if(zde(_)||Xrr(r))if(Ct(_.parent,r.escapedName,111551,void 0,!1))c.isDeclarationWithCollidingName=!0;else if(JEe(r.valueDeclaration,16384)){let h=JEe(r.valueDeclaration,32768),v=cx(_,!1),T=_.kind===241&&cx(_.parent,!1);c.isDeclarationWithCollidingName=!Qde(_)&&(!h||!v&&!T)}else c.isDeclarationWithCollidingName=!1}return c.isDeclarationWithCollidingName}return!1}function Yrr(r){if(!Xc(r)){let c=ds(r,Ye);if(c){let _=gL(c);if(_&&Sat(_))return _.valueDeclaration}}}function Zrr(r){let c=ds(r,Ku);if(c){let _=ei(c);if(_)return Sat(_)}return!1}function Tat(r){switch(I.assert(je),r.kind){case 271:return jse(ei(r));case 273:case 274:case 276:case 281:let c=ei(r);return!!c&&jse(c,!0);case 278:let _=r.exportClause;return!!_&&(Fy(_)||Pt(_.elements,Tat));case 277:return r.expression&&r.expression.kind===80?jse(ei(r),!0):!0}return!1}function enr(r){let c=ds(r,zu);return c===void 0||c.parent.kind!==307||!kk(c)?!1:jse(ei(c))&&c.moduleReference&&!Sl(c.moduleReference)}function jse(r,c){if(!r)return!1;let _=rn(r.valueDeclaration),h=_&&ei(_);a_(h);let v=k_(pu(r));return v===oe?!c||!ah(r):!!(rd(r,c,!0)&111551)&&(vx(z)||!mL(v))}function mL(r){return pEe(r)||!!r.constEnumOnlyModule}function wat(r,c){if(I.assert(je),Xv(r)){let _=ei(r),h=_&&Fa(_);if(h?.referenced)return!0;let v=Fa(_).aliasTarget;if(v&&gf(r)&32&&rd(v)&111551&&(vx(z)||!mL(v)))return!0}return c?!!xs(r,_=>wat(_,c)):!1}function kat(r){if(jm(r.body)){if(Sv(r)||kh(r))return!1;let c=ei(r),_=Dw(c);return _.length>1||_.length===1&&_[0].declaration!==r}return!1}function tnr(r){let c=Eat(r);if(!c)return!1;let _=Sa(c);return et(_)||i6(_)}function sH(r,c){return(rnr(r,c)||nnr(r))&&!tnr(r)}function rnr(r,c){return!fe||Ej(r)||Ad(r)||!r.initializer?!1:Ai(r,31)?!!c&&Dc(c):!0}function nnr(r){return fe&&Ej(r)&&(Ad(r)||!r.initializer)&&Ai(r,31)}function Cat(r){let c=ds(r,h=>jl(h)||Ui(h));if(!c)return!1;let _;if(Ui(c)){if(c.type||!jn(c)&&!hL(c))return!1;let h=l4(c);if(!h||!qg(h))return!1;_=ei(h)}else _=ei(c);return!_||!(_.flags&16|3)?!1:!!Lu(nd(_),h=>h.flags&111551&&dE(h.valueDeclaration))}function inr(r){let c=ds(r,jl);if(!c)return ce;let _=ei(c);return _&&oc(An(_))||ce}function XD(r){var c;let _=r.id||0;return _<0||_>=cw.length?0:((c=cw[_])==null?void 0:c.flags)||0}function JEe(r,c){return anr(r,c),!!(XD(r)&c)}function anr(r,c){if(!z.noCheck&&M4(rn(r),z)||Zn(r).calculatedFlags&c)return;switch(c){case 16:case 32:return D(r);case 128:case 256:case 2097152:return T(r);case 512:case 8192:case 65536:case 262144:return V(r);case 536870912:return ue(r);case 4096:case 32768:case 16384:return De(r);default:return I.assertNever(c,`Unhandled node check flag calculation: ${I.formatNodeCheckFlags(c)}`)}function h(Nt,zt){let Dr=zt(Nt,Nt.parent);if(Dr!=="skip")return Dr||NE(Nt,zt)}function v(Nt){let zt=Zn(Nt);if(zt.calculatedFlags&c)return"skip";zt.calculatedFlags|=2097536,D(Nt)}function T(Nt){h(Nt,v)}function D(Nt){let zt=Zn(Nt);zt.calculatedFlags|=48,Nt.kind===108&&$ae(Nt)}function J(Nt){let zt=Zn(Nt);if(zt.calculatedFlags&c)return"skip";zt.calculatedFlags|=336384,ue(Nt)}function V(Nt){h(Nt,J)}function Q(Nt){return zg(Nt)||Jp(Nt.parent)&&(Nt.parent.objectAssignmentInitializer??Nt.parent.name)===Nt}function ue(Nt){let zt=Zn(Nt);if(zt.calculatedFlags|=536870912,Ye(Nt)&&(zt.calculatedFlags|=49152,Q(Nt)&&!(ai(Nt.parent)&&Nt.parent.name===Nt))){let Dr=sf(Nt);Dr&&Dr!==oe&&xrt(Nt,Dr)}}function Fe(Nt){let zt=Zn(Nt);if(zt.calculatedFlags&c)return"skip";zt.calculatedFlags|=53248,_t(Nt)}function De(Nt){let zt=Jg(Ny(Nt)?Nt.parent:Nt);h(zt,Fe)}function _t(Nt){ue(Nt),po(Nt)&&Og(Nt),Ca(Nt)&&ou(Nt.parent)&&yse(Nt.parent)}}function QC(r){return iat(r.parent),Zn(r).enumMemberValue??Bu(void 0)}function Pat(r){switch(r.kind){case 306:case 211:case 212:return!0}return!1}function zEe(r){if(r.kind===306)return QC(r).value;Zn(r).resolvedSymbol||Nl(r);let c=Zn(r).resolvedSymbol||(Tc(r)?Ol(r,111551,!0):void 0);if(c&&c.flags&8){let _=c.valueDeclaration;if(wS(_.parent))return QC(_).value}}function WEe(r){return!!(r.flags&524288)&&Ns(r,0).length>0}function snr(r,c){var _;let h=ds(r,Of);if(!h||c&&(c=ds(c),!c))return 0;let v=!1;if(If(h)){let ue=Ol(Af(h),111551,!0,!0,c);v=!!((_=ue?.declarations)!=null&&_.every(w1))}let T=Ol(h,111551,!0,!0,c),D=T&&T.flags&2097152?pu(T):T;v||(v=!!(T&&ah(T,111551)));let J=Ol(h,788968,!0,!0,c),V=J&&J.flags&2097152?pu(J):J;if(T||v||(v=!!(J&&ah(J,788968))),D&&D===V){let ue=Zke(!1);if(ue&&D===ue)return 9;let Fe=An(D);if(Fe&&yi(Fe))return v?10:1}if(!V)return v?11:0;let Q=zc(V);return et(Q)?v?11:0:Q.flags&3?11:Np(Q,245760)?2:Np(Q,528)?6:Np(Q,296)?3:Np(Q,2112)?4:Np(Q,402653316)?5:Oo(Q)?7:Np(Q,12288)?8:WEe(Q)?10:km(Q)?7:11}function onr(r,c,_,h,v){let T=ds(r,nz);if(!T)return j.createToken(133);let D=ei(T);return Me.serializeTypeForDeclaration(T,D,c,_|1024,h,v)}function UEe(r){r=ds(r,DF);let c=r.kind===178?177:178,_=Zc(ei(r),c),h=_&&_.pos<r.pos?_:r,v=_&&_.pos<r.pos?r:_,T=r.kind===178?r:_,D=r.kind===177?r:_;return{firstAccessor:h,secondAccessor:v,setAccessor:T,getAccessor:D}}function cnr(r,c,_,h,v){let T=ds(r,Ss);return T?Me.serializeReturnTypeForSignature(T,c,_|1024,h,v):j.createToken(133)}function lnr(r,c,_,h,v){let T=ds(r,At);return T?Me.serializeTypeForExpression(T,c,_|1024,h,v):j.createToken(133)}function unr(r){return Tt.has(gl(r))}function gL(r,c){let _=Zn(r).resolvedSymbol;if(_)return _;let h=r;if(c){let v=r.parent;Ku(v)&&r===v.name&&(h=PT(v))}return Ct(h,r.escapedText,3257279,void 0,!0)}function pnr(r){let c=Zn(r).resolvedSymbol;return c&&c!==oe?c:Ct(r,r.escapedText,3257279,void 0,!0,void 0)}function fnr(r){if(!Xc(r)){let c=ds(r,Ye);if(c){let _=gL(c);if(_)return k_(_).valueDeclaration}}}function _nr(r){if(!Xc(r)){let c=ds(r,Ye);if(c){let _=gL(c);if(_)return Cn(k_(_).declarations,h=>{switch(h.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function dnr(r){return GF(r)||Ui(r)&&hL(r)?Aw(An(ei(r))):!1}function mnr(r,c,_){let h=r.flags&1056?Me.symbolToExpression(r.symbol,111551,c,void 0,void 0,_):r===yt?j.createTrue():r===Kr&&j.createFalse();if(h)return h;let v=r.value;return typeof v=="object"?j.createBigIntLiteral(v):typeof v=="string"?j.createStringLiteral(v):v<0?j.createPrefixUnaryExpression(41,j.createNumericLiteral(-v)):j.createNumericLiteral(v)}function gnr(r,c){let _=An(ei(r));return mnr(_,r,c)}function $Ee(r){return r?(yp(r),rn(r).localJsxFactory||Uv):Uv}function VEe(r){if(r){let c=rn(r);if(c){if(c.localJsxFragmentFactory)return c.localJsxFragmentFactory;let _=c.pragmas.get("jsxfrag"),h=cs(_)?_[0]:_;if(h)return c.localJsxFragmentFactory=IE(h.arguments.factory,H),c.localJsxFragmentFactory}}if(z.jsxFragmentFactory)return IE(z.jsxFragmentFactory,H)}function Eat(r){let c=hu(r);if(c)return c;if(r.kind===169&&r.parent.kind===178){let _=UEe(r.parent).getAccessor;if(_)return dd(_)}}function hnr(){return{getReferencedExportContainer:Krr,getReferencedImportDeclaration:Qrr,getReferencedDeclarationWithCollidingName:Yrr,isDeclarationWithCollidingName:Zrr,isValueAliasDeclaration:c=>{let _=ds(c);return _&&je?Tat(_):!0},hasGlobalName:unr,isReferencedAliasDeclaration:(c,_)=>{let h=ds(c);return h&&je?wat(h,_):!0},hasNodeCheckFlag:(c,_)=>{let h=ds(c);return h?JEe(h,_):!1},isTopLevelValueImportEqualsWithEntityName:enr,isDeclarationVisible:X0,isImplementationOfOverload:kat,requiresAddingImplicitUndefined:sH,isExpandoFunctionDeclaration:Cat,getPropertiesOfContainerFunction:inr,createTypeOfDeclaration:onr,createReturnTypeOfSignatureDeclaration:cnr,createTypeOfExpression:lnr,createLiteralConstValue:gnr,isSymbolAccessible:sy,isEntityNameVisible:ED,getConstantValue:c=>{let _=ds(c,Pat);return _?zEe(_):void 0},getEnumMemberValue:c=>{let _=ds(c,L1);return _?QC(_):void 0},collectLinkedAliases:CT,markLinkedReferences:c=>{let _=ds(c);return _&&$D(_,0)},getReferencedValueDeclaration:fnr,getReferencedValueDeclarations:_nr,getTypeReferenceSerializationKind:snr,isOptionalParameter:Ej,isArgumentsLocalBinding:Hrr,getExternalModuleFileFromDeclaration:c=>{let _=ds(c,Zde);return _&&HEe(_)},isLiteralConstDeclaration:dnr,isLateBound:c=>{let _=ds(c,Ku),h=_&&ei(_);return!!(h&&Tl(h)&4096)},getJsxFactoryEntity:$Ee,getJsxFragmentFactoryEntity:VEe,isBindingCapturedByNode:(c,_)=>{let h=ds(c),v=ds(_);return!!h&&!!v&&(Ui(v)||Do(v))&&IQt(h,v)},getDeclarationStatementsForSourceFile:(c,_,h,v)=>{let T=ds(c);I.assert(T&&T.kind===307,"Non-sourcefile node passed into getDeclarationsForSourceFile");let D=ei(c);return D?(a_(D),D.exports?Me.symbolTableToDeclarationStatements(D.exports,c,_,h,v):[]):c.locals?Me.symbolTableToDeclarationStatements(c.locals,c,_,h,v):[]},isImportRequiredByAugmentation:r,isDefinitelyReferenceToGlobalSymbolObject:gC,createLateBoundIndexSignatures:(c,_,h,v,T)=>{let D=c.symbol,J=Wp(An(D)),V=Qie(D),Q=V&&Yie(V,Ka(Xy(D).values())),ue;for(let De of[J,Q])if(Re(De)){ue||(ue=[]);for(let _t of De){if(_t.declaration||_t===ma)continue;if(_t.components&&sn(_t.components,Dr=>{var Tr;return!!(Dr.name&&po(Dr.name)&&Tc(Dr.name.expression)&&_&&((Tr=ED(Dr.name.expression,_,!1))==null?void 0:Tr.accessibility)===0)})){let Dr=Cn(_t.components,Tr=>!KA(Tr));ue.push(...Dt(Dr,Tr=>{Fe(Tr.name.expression);let En=De===J?[j.createModifier(126)]:void 0;return j.createPropertyDeclaration(Zr(En,_t.isReadonly?j.createModifier(148):void 0),Tr.name,(vf(Tr)||is(Tr)||yg(Tr)||wl(Tr)||Sv(Tr)||kh(Tr))&&Tr.questionToken?j.createToken(58):void 0,Me.typeToTypeNode(An(Tr.symbol),_,h,v,T),void 0)}));continue}let Nt=Me.indexInfoToIndexSignatureDeclaration(_t,_,h,v,T);Nt&&De===J&&(Nt.modifiers||(Nt.modifiers=j.createNodeArray())).unshift(j.createModifier(126)),Nt&&ue.push(Nt)}}return ue;function Fe(De){if(!T.trackSymbol)return;let _t=Af(De),Nt=Ct(_t,_t.escapedText,1160127,void 0,!0);Nt&&T.trackSymbol(Nt,_,111551)}}};function r(c){let _=rn(c);if(!_.symbol)return!1;let h=HEe(c);if(!h||h===_)return!1;let v=e0(_.symbol);for(let T of Ka(v.values()))if(T.mergeId){let D=Uo(T);if(D.declarations){for(let J of D.declarations)if(rn(J)===h)return!0}}return!1}}function HEe(r){let c=r.kind===267?_i(r.name,vo):KP(r),_=gT(c,c,void 0);if(_)return Zc(_,307)}function ynr(){for(let c of e.getSourceFiles())mve(c,z);Fc=new Map;let r;for(let c of e.getSourceFiles())if(!c.redirectInfo){if(!q_(c)){let _=c.locals.get("globalThis");if(_?.declarations)for(let h of _.declarations)Jo.add(Mn(h,y.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ty(Tt,c.locals)}c.jsGlobalAugmentations&&ty(Tt,c.jsGlobalAugmentations),c.patternAmbientModules&&c.patternAmbientModules.length&&(Ld=ya(Ld,c.patternAmbientModules)),c.moduleAugmentations.length&&(r||(r=[])).push(c.moduleAugmentations),c.symbol&&c.symbol.globalExports&&c.symbol.globalExports.forEach((h,v)=>{Tt.has(v)||Tt.set(v,h)})}if(r)for(let c of r)for(let _ of c)Oy(_.parent)&&Uy(_);if(Wx(),Fa(xe).type=$,Fa(pe).type=Fl("IArguments",0,!0),Fa(oe).type=ut,Fa(nt).type=Nr(16,nt),Fs=Fl("Array",1,!0),$e=Fl("Object",0,!0),nr=Fl("Function",0,!0),Nn=de&&Fl("CallableFunction",0,!0)||nr,za=de&&Fl("NewableFunction",0,!0)||nr,Jc=Fl("String",0,!0),Kl=Fl("Number",0,!0),hl=Fl("Boolean",0,!0),yl=Fl("RegExp",0,!0),Nu=Up(Qe),Au=Up(Lt),Au===Ro&&(Au=rl(void 0,L,ce,ce,ce)),Io=det("ReadonlyArray",1)||Fs,Y_=Io?w8(Io,[Qe]):Nu,ru=det("ThisType",1),r)for(let c of r)for(let _ of c)Oy(_.parent)||Uy(_);Fc.forEach(({firstFile:c,secondFile:_,conflictingSymbols:h})=>{if(h.size<8)h.forEach(({isBlockScoped:v,firstFileLocations:T,secondFileLocations:D},J)=>{let V=v?y.Cannot_redeclare_block_scoped_variable_0:y.Duplicate_identifier_0;for(let Q of T)hC(Q,V,J,D);for(let Q of D)hC(Q,V,J,T)});else{let v=Ka(h.keys()).join(", ");Jo.add(Hs(Mn(c,y.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,v),Mn(_,y.Conflicts_are_in_this_file))),Jo.add(Hs(Mn(_,y.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,v),Mn(c,y.Conflicts_are_in_this_file)))}}),Fc=void 0}function $u(r,c){if(z.importHelpers){let _=rn(r);if(rN(_,z)&&!(r.flags&33554432)){let h=bnr(_,r);if(h!==oe){let v=Fa(h);if(v.requestedExternalEmitHelpers??(v.requestedExternalEmitHelpers=0),(v.requestedExternalEmitHelpers&c)!==c){let T=c&~v.requestedExternalEmitHelpers;for(let D=1;D<=16777216;D<<=1)if(T&D)for(let J of vnr(D)){let V=Dl(Sf(e0(h),gl(J),111551));V?D&524288?Pt(Dw(V),Q=>D_(Q)>3)||ot(r,y.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,lx,J,4):D&1048576?Pt(Dw(V),Q=>D_(Q)>4)||ot(r,y.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,lx,J,5):D&1024&&(Pt(Dw(V),Q=>D_(Q)>2)||ot(r,y.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,lx,J,3)):ot(r,y.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,lx,J)}}v.requestedExternalEmitHelpers|=c}}}}function vnr(r){switch(r){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ne?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return I.fail("Unrecognized helper")}}function bnr(r,c){let _=Zn(r);return _.externalHelpersModule||(_.externalHelpersModule=yw(dir(r),lx,y.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,c)||oe),_.externalHelpersModule}function l0(r){var c;let _=Tnr(r)||xnr(r);if(_!==void 0)return _;if(Da(r)&&gx(r))return sp(r,y.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let h=Rl(r)?r.declarationList.flags&7:0,v,T,D,J,V,Q=0,ue=!1,Fe=!1;for(let De of r.modifiers)if(qu(De)){if(r5(ne,r,r.parent,r.parent.parent)){if(ne&&(r.kind===177||r.kind===178)){let _t=UEe(r);if(Od(_t.firstAccessor)&&r===_t.secondAccessor)return sp(r,y.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===174&&!jm(r.body)?sp(r,y.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):sp(r,y.Decorators_are_not_valid_here);if(Q&-34849)return Ur(De,y.Decorators_are_not_valid_here);if(Fe&&Q&98303){I.assertIsDefined(V);let _t=rn(De);return sS(_t)?!1:(Hs(ot(De,y.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Mn(V,y.Decorator_used_before_export_here)),!0)}Q|=32768,Q&98303?Q&32&&(ue=!0):Fe=!0,V??(V=De)}else{if(De.kind!==148){if(r.kind===171||r.kind===173)return Ur(De,y._0_modifier_cannot_appear_on_a_type_member,to(De.kind));if(r.kind===181&&(De.kind!==126||!Ri(r.parent)))return Ur(De,y._0_modifier_cannot_appear_on_an_index_signature,to(De.kind))}if(De.kind!==103&&De.kind!==147&&De.kind!==87&&r.kind===168)return Ur(De,y._0_modifier_cannot_appear_on_a_type_parameter,to(De.kind));switch(De.kind){case 87:{if(r.kind!==266&&r.kind!==168)return Ur(r,y.A_class_member_cannot_have_the_0_keyword,to(87));let zt=Um(r.parent)&&ES(r.parent)||r.parent;if(r.kind===168&&!(Dc(zt)||Ri(zt)||Iy(zt)||DN(zt)||xE(zt)||oM(zt)||yg(zt)))return Ur(De,y._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,to(De.kind));break}case 164:if(Q&16)return Ur(De,y._0_modifier_already_seen,"override");if(Q&128)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Q&8)return Ur(De,y._0_modifier_must_precede_1_modifier,"override","readonly");if(Q&512)return Ur(De,y._0_modifier_must_precede_1_modifier,"override","accessor");if(Q&1024)return Ur(De,y._0_modifier_must_precede_1_modifier,"override","async");Q|=16,J=De;break;case 125:case 124:case 123:let _t=Tw(rE(De.kind));if(Q&7)return Ur(De,y.Accessibility_modifier_already_seen);if(Q&16)return Ur(De,y._0_modifier_must_precede_1_modifier,_t,"override");if(Q&256)return Ur(De,y._0_modifier_must_precede_1_modifier,_t,"static");if(Q&512)return Ur(De,y._0_modifier_must_precede_1_modifier,_t,"accessor");if(Q&8)return Ur(De,y._0_modifier_must_precede_1_modifier,_t,"readonly");if(Q&1024)return Ur(De,y._0_modifier_must_precede_1_modifier,_t,"async");if(r.parent.kind===268||r.parent.kind===307)return Ur(De,y._0_modifier_cannot_appear_on_a_module_or_namespace_element,_t);if(Q&64)return De.kind===123?Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,_t,"abstract"):Ur(De,y._0_modifier_must_precede_1_modifier,_t,"abstract");if(_f(r))return Ur(De,y.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Q|=rE(De.kind);break;case 126:if(Q&256)return Ur(De,y._0_modifier_already_seen,"static");if(Q&8)return Ur(De,y._0_modifier_must_precede_1_modifier,"static","readonly");if(Q&1024)return Ur(De,y._0_modifier_must_precede_1_modifier,"static","async");if(Q&512)return Ur(De,y._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===268||r.parent.kind===307)return Ur(De,y._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===169)return Ur(De,y._0_modifier_cannot_appear_on_a_parameter,"static");if(Q&64)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Q&16)return Ur(De,y._0_modifier_must_precede_1_modifier,"static","override");Q|=256,v=De;break;case 129:if(Q&512)return Ur(De,y._0_modifier_already_seen,"accessor");if(Q&8)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Q&128)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==172)return Ur(De,y.accessor_modifier_can_only_appear_on_a_property_declaration);Q|=512;break;case 148:if(Q&8)return Ur(De,y._0_modifier_already_seen,"readonly");if(r.kind!==172&&r.kind!==171&&r.kind!==181&&r.kind!==169)return Ur(De,y.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Q&512)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Q|=8;break;case 95:if(z.verbatimModuleSyntax&&!(r.flags&33554432)&&r.kind!==265&&r.kind!==264&&r.kind!==267&&r.parent.kind===307&&e.getEmitModuleFormatOfFile(rn(r))===1)return Ur(De,y.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Q&32)return Ur(De,y._0_modifier_already_seen,"export");if(Q&128)return Ur(De,y._0_modifier_must_precede_1_modifier,"export","declare");if(Q&64)return Ur(De,y._0_modifier_must_precede_1_modifier,"export","abstract");if(Q&1024)return Ur(De,y._0_modifier_must_precede_1_modifier,"export","async");if(Ri(r.parent))return Ur(De,y._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===169)return Ur(De,y._0_modifier_cannot_appear_on_a_parameter,"export");if(h===4)return Ur(De,y._0_modifier_cannot_appear_on_a_using_declaration,"export");if(h===6)return Ur(De,y._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Q|=32;break;case 90:let Nt=r.parent.kind===307?r.parent:r.parent.parent;if(Nt.kind===267&&!df(Nt))return Ur(De,y.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(h===4)return Ur(De,y._0_modifier_cannot_appear_on_a_using_declaration,"default");if(h===6)return Ur(De,y._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Q&32){if(ue)return Ur(V,y.Decorators_are_not_valid_here)}else return Ur(De,y._0_modifier_must_precede_1_modifier,"export","default");Q|=2048;break;case 138:if(Q&128)return Ur(De,y._0_modifier_already_seen,"declare");if(Q&1024)return Ur(De,y._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Q&16)return Ur(De,y._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Ri(r.parent)&&!is(r))return Ur(De,y._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===169)return Ur(De,y._0_modifier_cannot_appear_on_a_parameter,"declare");if(h===4)return Ur(De,y._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(h===6)return Ur(De,y._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(r.parent.flags&33554432&&r.parent.kind===268)return Ur(De,y.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(_f(r))return Ur(De,y._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Q&512)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Q|=128,T=De;break;case 128:if(Q&64)return Ur(De,y._0_modifier_already_seen,"abstract");if(r.kind!==263&&r.kind!==185){if(r.kind!==174&&r.kind!==172&&r.kind!==177&&r.kind!==178)return Ur(De,y.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===263&&Ai(r.parent,64))){let zt=r.kind===172?y.Abstract_properties_can_only_appear_within_an_abstract_class:y.Abstract_methods_can_only_appear_within_an_abstract_class;return Ur(De,zt)}if(Q&256)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Q&2)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Q&1024&&D)return Ur(D,y._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Q&16)return Ur(De,y._0_modifier_must_precede_1_modifier,"abstract","override");if(Q&512)return Ur(De,y._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Gu(r)&&r.name.kind===81)return Ur(De,y._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Q|=64;break;case 134:if(Q&1024)return Ur(De,y._0_modifier_already_seen,"async");if(Q&128||r.parent.flags&33554432)return Ur(De,y._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===169)return Ur(De,y._0_modifier_cannot_appear_on_a_parameter,"async");if(Q&64)return Ur(De,y._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Q|=1024,D=De;break;case 103:case 147:{let zt=De.kind===103?8192:16384,Dr=De.kind===103?"in":"out",Tr=Um(r.parent)&&(ES(r.parent)||Ir((c=fN(r.parent))==null?void 0:c.tags,Gk))||r.parent;if(r.kind!==168||Tr&&!(Cp(Tr)||Ri(Tr)||Wm(Tr)||Gk(Tr)))return Ur(De,y._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Dr);if(Q&zt)return Ur(De,y._0_modifier_already_seen,Dr);if(zt&8192&&Q&16384)return Ur(De,y._0_modifier_must_precede_1_modifier,"in","out");Q|=zt;break}}}return r.kind===176?Q&256?Ur(v,y._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Q&16?Ur(J,y._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Q&1024?Ur(D,y._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===272||r.kind===271)&&Q&128?Ur(T,y.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===169&&Q&31&&Os(r.name)?Ur(r,y.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===169&&Q&31&&r.dotDotDotToken?Ur(r,y.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Q&1024?knr(r,D):!1}function xnr(r){if(!r.modifiers)return!1;let c=Snr(r);return c&&sp(c,y.Modifiers_cannot_appear_here)}function Lse(r,c){let _=Ir(r.modifiers,oo);return _&&_.kind!==c?_:void 0}function Snr(r){switch(r.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Ir(r.modifiers,oo);default:if(r.parent.kind===268||r.parent.kind===307)return;switch(r.kind){case 262:return Lse(r,134);case 263:case 185:return Lse(r,128);case 231:case 264:case 265:return Ir(r.modifiers,oo);case 243:return r.declarationList.flags&4?Lse(r,135):Ir(r.modifiers,oo);case 266:return Lse(r,87);default:I.assertNever(r)}}}function Tnr(r){let c=wnr(r);return c&&sp(c,y.Decorators_are_not_valid_here)}function wnr(r){return FY(r)?Ir(r.modifiers,qu):void 0}function knr(r,c){switch(r.kind){case 174:case 262:case 218:case 219:return!1}return Ur(c,y._0_modifier_cannot_be_used_here,"async")}function YD(r,c=y.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?zw(r[0],r.end-1,1,c):!1}function Dat(r,c){if(r&&r.length===0){let _=r.pos-1,h=yo(c.text,r.end)+1;return zw(c,_,h-_,y.Type_parameter_list_cannot_be_empty)}return!1}function Cnr(r){let c=!1,_=r.length;for(let h=0;h<_;h++){let v=r[h];if(v.dotDotDotToken){if(h!==_-1)return Ur(v.dotDotDotToken,y.A_rest_parameter_must_be_last_in_a_parameter_list);if(v.flags&33554432||YD(r,y.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),v.questionToken)return Ur(v.questionToken,y.A_rest_parameter_cannot_be_optional);if(v.initializer)return Ur(v.name,y.A_rest_parameter_cannot_have_an_initializer)}else if(Hie(v)){if(c=!0,v.questionToken&&v.initializer)return Ur(v.name,y.Parameter_cannot_have_question_mark_and_initializer)}else if(c&&!v.initializer)return Ur(v.name,y.A_required_parameter_cannot_follow_an_optional_parameter)}}function Pnr(r){return Cn(r,c=>!!c.initializer||Os(c.name)||Ey(c))}function Enr(r){if(H>=3){let c=r.body&&Cs(r.body)&&OY(r.body.statements);if(c){let _=Pnr(r.parameters);if(Re(_)){Ge(_,v=>{Hs(ot(v,y.This_parameter_is_not_allowed_with_use_strict_directive),Mn(c,y.use_strict_directive_used_here))});let h=_.map((v,T)=>T===0?Mn(v,y.Non_simple_parameter_declared_here):Mn(v,y.and_here));return Hs(ot(c,y.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...h),!0}}}return!1}function Bse(r){let c=rn(r);return l0(r)||Dat(r.typeParameters,c)||Cnr(r.parameters)||Onr(r,c)||Dc(r)&&Enr(r)}function Dnr(r){let c=rn(r);return Mnr(r)||Dat(r.typeParameters,c)}function Onr(r,c){if(!Bc(r))return!1;r.typeParameters&&!(Re(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&c&&Wl(c.fileName,[".mts",".cts"])&&Ur(r.typeParameters[0],y.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:_}=r,h=$s(c,_.pos).line,v=$s(c,_.end).line;return h!==v&&Ur(_,y.Line_terminator_not_permitted_before_arrow)}function Nnr(r){let c=r.parameters[0];if(r.parameters.length!==1)return Ur(c?c.name:r,y.An_index_signature_must_have_exactly_one_parameter);if(YD(r.parameters,y.An_index_signature_cannot_have_a_trailing_comma),c.dotDotDotToken)return Ur(c.dotDotDotToken,y.An_index_signature_cannot_have_a_rest_parameter);if(tX(c))return Ur(c.name,y.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(c.questionToken)return Ur(c.questionToken,y.An_index_signature_parameter_cannot_have_a_question_mark);if(c.initializer)return Ur(c.name,y.An_index_signature_parameter_cannot_have_an_initializer);if(!c.type)return Ur(c.name,y.An_index_signature_parameter_must_have_a_type_annotation);let _=Sa(c.type);return Pm(_,h=>!!(h.flags&8576))||IT(_)?Ur(c.name,y.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):E_(_,Zie)?r.type?!1:Ur(r,y.An_index_signature_must_have_a_type_annotation):Ur(c.name,y.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Anr(r){return l0(r)||Nnr(r)}function Inr(r,c){if(c&&c.length===0){let _=rn(r),h=c.pos-1,v=yo(_.text,c.end)+1;return zw(_,h,v-h,y.Type_argument_list_cannot_be_empty)}return!1}function oH(r,c){return YD(c)||Inr(r,c)}function Fnr(r){return r.questionDotToken||r.flags&64?Ur(r.template,y.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function Oat(r){let c=r.types;if(YD(c))return!0;if(c&&c.length===0){let _=to(r.token);return zw(r,c.pos,0,y._0_list_cannot_be_empty,_)}return Pt(c,Nat)}function Nat(r){return F0(r)&&Q4(r.expression)&&r.typeArguments?Ur(r,y.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):oH(r,r.typeArguments)}function Mnr(r){let c=!1,_=!1;if(!l0(r)&&r.heritageClauses)for(let h of r.heritageClauses){if(h.token===96){if(c)return sp(h,y.extends_clause_already_seen);if(_)return sp(h,y.extends_clause_must_precede_implements_clause);if(h.types.length>1)return sp(h.types[1],y.Classes_can_only_extend_a_single_class);c=!0}else{if(I.assert(h.token===119),_)return sp(h,y.implements_clause_already_seen);_=!0}Oat(h)}}function Rnr(r){let c=!1;if(r.heritageClauses)for(let _ of r.heritageClauses){if(_.token===96){if(c)return sp(_,y.extends_clause_already_seen);c=!0}else return I.assert(_.token===119),sp(_,y.Interface_declaration_cannot_have_implements_clause);Oat(_)}return!1}function qse(r){if(r.kind!==167)return!1;let c=r;return c.expression.kind===226&&c.expression.operatorToken.kind===28?Ur(c.expression,y.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function GEe(r){if(r.asteriskToken){if(I.assert(r.kind===262||r.kind===218||r.kind===174),r.flags&33554432)return Ur(r.asteriskToken,y.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return Ur(r.asteriskToken,y.An_overload_signature_cannot_be_declared_as_a_generator)}}function KEe(r,c){return!!r&&Ur(r,c)}function Aat(r,c){return!!r&&Ur(r,c)}function jnr(r,c){let _=new Map;for(let h of r.properties){if(h.kind===305){if(c){let D=Qo(h.expression);if(kp(D)||So(D))return Ur(h.expression,y.A_rest_element_cannot_contain_a_binding_pattern)}continue}let v=h.name;if(v.kind===167&&qse(v),h.kind===304&&!c&&h.objectAssignmentInitializer&&Ur(h.equalsToken,y.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),v.kind===81&&Ur(v,y.Private_identifiers_are_not_allowed_outside_class_bodies),$m(h)&&h.modifiers)for(let D of h.modifiers)oo(D)&&(D.kind!==134||h.kind!==174)&&Ur(D,y._0_modifier_cannot_be_used_here,cl(D));else if(iye(h)&&h.modifiers)for(let D of h.modifiers)oo(D)&&Ur(D,y._0_modifier_cannot_be_used_here,cl(D));let T;switch(h.kind){case 304:case 303:Aat(h.exclamationToken,y.A_definite_assignment_assertion_is_not_permitted_in_this_context),KEe(h.questionToken,y.An_object_member_cannot_be_declared_optional),v.kind===9&&qat(v),v.kind===10&&eb(!0,Mn(v,y.A_bigint_literal_cannot_be_used_as_a_property_name)),T=4;break;case 174:T=8;break;case 177:T=1;break;case 178:T=2;break;default:I.assertNever(h,"Unexpected syntax kind:"+h.kind)}if(!c){let D=YEe(v);if(D===void 0)continue;let J=_.get(D);if(!J)_.set(D,T);else if(T&8&&J&8)Ur(v,y.Duplicate_identifier_0,cl(v));else if(T&4&&J&4)Ur(v,y.An_object_literal_cannot_have_multiple_properties_with_the_same_name,cl(v));else if(T&3&&J&3)if(J!==3&&T!==J)_.set(D,T|J);else return Ur(v,y.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Ur(v,y.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Lnr(r){Bnr(r.tagName),oH(r,r.typeArguments);let c=new Map;for(let _ of r.attributes.properties){if(_.kind===293)continue;let{name:h,initializer:v}=_,T=J4(h);if(!c.get(T))c.set(T,!0);else return Ur(h,y.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(v&&v.kind===294&&!v.expression)return Ur(v,y.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Bnr(r){if(ai(r)&&Hg(r.expression))return Ur(r.expression,y.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Hg(r)&&jJ(z)&&!gN(r.namespace.escapedText))return Ur(r,y.React_components_cannot_include_JSX_namespace_names)}function qnr(r){if(r.expression&&s3(r.expression))return Ur(r.expression,y.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function Iat(r){if(u1(r))return!0;if(r.kind===250&&r.awaitModifier&&!(r.flags&65536)){let c=rn(r);if(Vq(r)){if(!sS(c))switch(rN(c,z)||Jo.add(Mn(r.awaitModifier,y.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),X){case 100:case 101:case 199:if(c.impliedNodeFormat===1){Jo.add(Mn(r.awaitModifier,y.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(H>=4)break;default:Jo.add(Mn(r.awaitModifier,y.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!sS(c)){let _=Mn(r.awaitModifier,y.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),h=Ed(r);if(h&&h.kind!==176){I.assert((eu(h)&2)===0,"Enclosing function should never be an async function.");let v=Mn(h,y.Did_you_mean_to_mark_this_function_as_async);Hs(_,v)}return Jo.add(_),!0}}if(uM(r)&&!(r.flags&65536)&&Ye(r.initializer)&&r.initializer.escapedText==="async")return Ur(r.initializer,y.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===261){let c=r.initializer;if(!XEe(c)){let _=c.declarations;if(!_.length)return!1;if(_.length>1){let v=r.kind===249?y.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:y.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return sp(c.declarations[1],v)}let h=_[0];if(h.initializer){let v=r.kind===249?y.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:y.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Ur(h.name,v)}if(h.type){let v=r.kind===249?y.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:y.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Ur(h,v)}}}return!1}function Jnr(r){if(!(r.flags&33554432)&&r.parent.kind!==187&&r.parent.kind!==264){if(H<2&&Ca(r.name))return Ur(r.name,y.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!Ai(r,64))return zw(r,r.end-1,1,y._0_expected,"{")}if(r.body){if(Ai(r,64))return Ur(r,y.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===187||r.parent.kind===264)return Ur(r.body,y.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return Ur(r.name,y.An_accessor_cannot_have_type_parameters);if(!znr(r))return Ur(r.name,r.kind===177?y.A_get_accessor_cannot_have_parameters:y.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===178){if(r.type)return Ur(r.name,y.A_set_accessor_cannot_have_a_return_type_annotation);let c=I.checkDefined(b4(r),"Return value does not match parameter count assertion.");if(c.dotDotDotToken)return Ur(c.dotDotDotToken,y.A_set_accessor_cannot_have_rest_parameter);if(c.questionToken)return Ur(c.questionToken,y.A_set_accessor_cannot_have_an_optional_parameter);if(c.initializer)return Ur(r.name,y.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function znr(r){return QEe(r)||r.parameters.length===(r.kind===177?0:1)}function QEe(r){if(r.parameters.length===(r.kind===177?1:2))return C2(r)}function Wnr(r){if(r.operator===158){if(r.type.kind!==155)return Ur(r.type,y._0_expected,to(155));let c=v5(r.parent);if(jn(c)&&JS(c)){let _=S2(c);_&&(c=YP(_)||_)}switch(c.kind){case 260:let _=c;if(_.name.kind!==80)return Ur(r,y.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!i4(_))return Ur(r,y.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(_.parent.flags&2))return Ur(c.name,y.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Vs(c)||!Ik(c))return Ur(c.name,y.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Ai(c,8))return Ur(c.name,y.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Ur(r,y.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==188&&r.type.kind!==189)return sp(r,y.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,to(155))}function J8(r,c){if(mZe(r)&&!Tc(Nc(r)?Qo(r.argumentExpression):r.expression))return Ur(r,c)}function Fat(r){if(Bse(r))return!0;if(r.kind===174){if(r.parent.kind===210){if(r.modifiers&&!(r.modifiers.length===1&&ho(r.modifiers).kind===134))return sp(r,y.Modifiers_cannot_appear_here);if(KEe(r.questionToken,y.An_object_member_cannot_be_declared_optional))return!0;if(Aat(r.exclamationToken,y.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return zw(r,r.end-1,1,y._0_expected,"{")}if(GEe(r))return!0}if(Ri(r.parent)){if(H<2&&Ca(r.name))return Ur(r.name,y.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&33554432)return J8(r.name,y.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.kind===174&&!r.body)return J8(r.name,y.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(r.parent.kind===264)return J8(r.name,y.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===187)return J8(r.name,y.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Unr(r){let c=r;for(;c;){if(XO(c))return Ur(r,y.Jump_target_cannot_cross_function_boundary);switch(c.kind){case 256:if(r.label&&c.label.escapedText===r.label.escapedText)return r.kind===251&&!cx(c.statement,!0)?Ur(r,y.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(r.kind===252&&!r.label)return!1;break;default:if(cx(c,!1)&&!r.label)return!1;break}c=c.parent}if(r.label){let _=r.kind===252?y.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:y.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Ur(r,_)}else{let _=r.kind===252?y.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:y.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Ur(r,_)}}function $nr(r){if(r.dotDotDotToken){let c=r.parent.elements;if(r!==ao(c))return Ur(r,y.A_rest_element_must_be_last_in_a_destructuring_pattern);if(YD(c,y.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return Ur(r.name,y.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return zw(r,r.initializer.pos-1,1,y.A_rest_element_cannot_have_an_initializer)}function Mat(r){return Dd(r)||r.kind===224&&r.operator===41&&r.operand.kind===9}function Vnr(r){return r.kind===10||r.kind===224&&r.operator===41&&r.operand.kind===10}function Hnr(r){if((ai(r)||Nc(r)&&Mat(r.argumentExpression))&&Tc(r.expression))return!!(Nl(r).flags&1056)}function Rat(r){let c=r.initializer;if(c){let _=!(Mat(c)||Hnr(c)||c.kind===112||c.kind===97||Vnr(c));if((GF(r)||Ui(r)&&hL(r))&&!r.type){if(_)return Ur(c,y.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Ur(c,y.Initializers_are_not_allowed_in_ambient_contexts)}}function Gnr(r){let c=Ww(r),_=c&7;if(Os(r.name))switch(_){case 6:return Ur(r,y._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Ur(r,y._0_declarations_may_not_have_binding_patterns,"using")}if(r.parent.parent.kind!==249&&r.parent.parent.kind!==250){if(c&33554432)Rat(r);else if(!r.initializer){if(Os(r.name)&&!Os(r.parent))return Ur(r,y.A_destructuring_declaration_must_have_an_initializer);switch(_){case 6:return Ur(r,y._0_declarations_must_be_initialized,"await using");case 4:return Ur(r,y._0_declarations_must_be_initialized,"using");case 2:return Ur(r,y._0_declarations_must_be_initialized,"const")}}}if(r.exclamationToken&&(r.parent.parent.kind!==243||!r.type||r.initializer||c&33554432)){let h=r.initializer?y.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?y.A_definite_assignment_assertion_is_not_permitted_in_this_context:y.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Ur(r.exclamationToken,h)}return e.getEmitModuleFormatOfFile(rn(r))<4&&!(r.parent.parent.flags&33554432)&&Ai(r.parent.parent,32)&&jat(r.name),!!_&&Lat(r.name)}function jat(r){if(r.kind===80){if(fi(r)==="__esModule")return Xnr("noEmit",r,y.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let c=r.elements;for(let _ of c)if(!Ju(_))return jat(_.name)}return!1}function Lat(r){if(r.kind===80){if(r.escapedText==="let")return Ur(r,y.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let c=r.elements;for(let _ of c)Ju(_)||Lat(_.name)}return!1}function XEe(r){let c=r.declarations;if(YD(r.declarations))return!0;if(!r.declarations.length)return zw(r,c.pos,c.end-c.pos,y.Variable_declaration_list_cannot_be_empty);let _=r.flags&7;return(_===4||_===6)&&bz(r.parent)?Ur(r,_===4?y.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:y.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):_===6?tit(r):!1}function Jse(r){switch(r.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return Jse(r.parent)}return!0}function Knr(r){if(!Jse(r.parent)){let c=Ww(r.declarationList)&7;if(c){let _=c===1?"let":c===2?"const":c===4?"using":c===6?"await using":I.fail("Unknown BlockScope flag");return Ur(r,y._0_declarations_can_only_be_declared_inside_a_block,_)}}}function Qnr(r){let c=r.name.escapedText;switch(r.keywordToken){case 105:if(c!=="target")return Ur(r.name,y._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,ka(r.name.escapedText),to(r.keywordToken),"target");break;case 102:if(c!=="meta")return Ur(r.name,y._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,ka(r.name.escapedText),to(r.keywordToken),"meta");break}}function sS(r){return r.parseDiagnostics.length>0}function sp(r,c,..._){let h=rn(r);if(!sS(h)){let v=Ch(h,r.pos);return Jo.add(Eu(h,v.start,v.length,c,..._)),!0}return!1}function zw(r,c,_,h,...v){let T=rn(r);return sS(T)?!1:(Jo.add(Eu(T,c,_,h,...v)),!0)}function Xnr(r,c,_,...h){let v=rn(c);return sS(v)?!1:(zy(r,c,_,...h),!0)}function Ur(r,c,..._){let h=rn(r);return sS(h)?!1:(Jo.add(Mn(r,c,..._)),!0)}function Ynr(r){let c=jn(r)?yJ(r):void 0,_=r.typeParameters||c&&Yl(c);if(_){let h=_.pos===_.end?_.pos:yo(rn(r).text,_.pos);return zw(r,h,_.end-h,y.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Znr(r){let c=r.type||dd(r);if(c)return Ur(c,y.Type_annotation_cannot_appear_on_a_constructor_declaration)}function eir(r){if(po(r.name)&&Vn(r.name.expression)&&r.name.expression.operatorToken.kind===103)return Ur(r.parent.members[0],y.A_mapped_type_may_not_declare_properties_or_methods);if(Ri(r.parent)){if(vo(r.name)&&r.name.text==="constructor")return Ur(r.name,y.Classes_may_not_have_a_field_named_constructor);if(J8(r.name,y.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(H<2&&Ca(r.name))return Ur(r.name,y.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(H<2&&Kf(r))return Ur(r.name,y.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Kf(r)&&KEe(r.questionToken,y.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===264){if(J8(r.name,y.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(I.assertNode(r,vf),r.initializer)return Ur(r.initializer,y.An_interface_property_cannot_have_an_initializer)}else if(Ff(r.parent)){if(J8(r.name,y.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(I.assertNode(r,vf),r.initializer)return Ur(r.initializer,y.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&33554432&&Rat(r),is(r)&&r.exclamationToken&&(!Ri(r.parent)||!r.type||r.initializer||r.flags&33554432||Vs(r)||D2(r))){let c=r.initializer?y.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?y.A_definite_assignment_assertion_is_not_permitted_in_this_context:y.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Ur(r.exclamationToken,c)}}function tir(r){return r.kind===264||r.kind===265||r.kind===272||r.kind===271||r.kind===278||r.kind===277||r.kind===270||Ai(r,2208)?!1:sp(r,y.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function rir(r){for(let c of r.statements)if((Ku(c)||c.kind===243)&&tir(c))return!0;return!1}function Bat(r){return!!(r.flags&33554432)&&rir(r)}function u1(r){if(r.flags&33554432){if(!Zn(r).hasReportedStatementInAmbientContext&&(Ss(r.parent)||ox(r.parent)))return Zn(r).hasReportedStatementInAmbientContext=sp(r,y.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===241||r.parent.kind===268||r.parent.kind===307){let _=Zn(r.parent);if(!_.hasReportedStatementInAmbientContext)return _.hasReportedStatementInAmbientContext=sp(r,y.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function qat(r){let c=cl(r).includes("."),_=r.numericLiteralFlags&16;c||_||+r.text<=2**53-1||eb(!1,Mn(r,y.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function nir(r){return!!(!(R1(r.parent)||jS(r.parent)&&R1(r.parent.parent))&&H<7&&Ur(r,y.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function iir(r,c,..._){let h=rn(r);if(!sS(h)){let v=Ch(h,r.pos);return Jo.add(Eu(h,ml(v),0,c,..._)),!0}return!1}function air(){return Dp||(Dp=[],Tt.forEach((r,c)=>{xve.test(c)&&Dp.push(r)})),Dp}function sir(r){var c;return r.isTypeOnly&&r.name&&r.namedBindings?Ur(r,y.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((c=r.namedBindings)==null?void 0:c.kind)===275?Jat(r.namedBindings):!1}function Jat(r){return!!Ge(r.elements,c=>{if(c.isTypeOnly)return sp(c,c.kind===276?y.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:y.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function oir(r){if(z.verbatimModuleSyntax&&X===1)return Ur(r,y.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(X===5)return Ur(r,y.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext);if(r.typeArguments)return Ur(r,y.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let c=r.arguments;if(!(100<=X&&X<=199)&&X!==99&&X!==200&&(YD(c),c.length>1)){let h=c[1];return Ur(h,y.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve)}if(c.length===0||c.length>2)return Ur(r,y.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let _=Ir(c,gm);return _?Ur(_,y.Argument_of_dynamic_import_cannot_be_spread_element):!1}function cir(r,c){let _=oi(r);if(_&20&&c.flags&1048576)return Ir(c.types,h=>{if(h.flags&524288){let v=_&oi(h);if(v&4)return r.target===h.target;if(v&16)return!!r.aliasSymbol&&r.aliasSymbol===h.aliasSymbol}return!1})}function lir(r,c){if(oi(r)&128&&Pm(c,bb))return Ir(c.types,_=>!bb(_))}function uir(r,c){let _=0;if(Ns(r,_).length>0||(_=1,Ns(r,_).length>0))return Ir(c.types,v=>Ns(v,_).length>0)}function pir(r,c){let _;if(!(r.flags&406978556)){let h=0;for(let v of c.types)if(!(v.flags&406978556)){let T=_o([fy(r),fy(v)]);if(T.flags&4194304)return v;if(fh(T)||T.flags&1048576){let D=T.flags&1048576?Vu(T.types,fh):1;D>=h&&(_=v,h=D)}}}return _}function fir(r){if(ql(r,67108864)){let c=_u(r,_=>!(_.flags&402784252));if(!(c.flags&131072))return c}return r}function zat(r,c,_){if(c.flags&1048576&&r.flags&2621440){let h=Wtt(c,r);if(h)return h;let v=oc(r);if(v){let T=ztt(v,c);if(T){let D=ACe(c,Dt(T,J=>[()=>An(J),J.escapedName]),_);if(D!==c)return D}}}}function YEe(r){let c=Nk(r);return c||(po(r)?iPe(Ap(r.expression)):void 0)}function zse(r){return Or===r||(Or=r,nn=bS(r)),nn}function Ww(r){return jt===r||(jt=r,ar=w0(r)),ar}function hL(r){let c=Ww(r)&7;return c===2||c===4||c===6}function _ir(r,c){let _=z.importHelpers?1:0,h=r?.imports[_];return h&&I.assert(Pc(h)&&h.text===c,`Expected sourceFile.imports[${_}] to be the synthesized JSX runtime import`),h}function dir(r){I.assert(z.importHelpers,"Expected importHelpers to be enabled");let c=r.imports[0];return I.assert(c&&Pc(c)&&c.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),c}}function a3t(e){return!ox(e)}function aBe(e){return e.kind!==262&&e.kind!==174||!!e.body}function sBe(e){switch(e.parent.kind){case 276:case 281:return Ye(e)||e.kind===11;default:return Ny(e)}}var Fd;(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Fd||(Fd={}));var OZ;(e=>{e.Fragment="Fragment"})(OZ||(OZ={}));function oBe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function ef(e){return!!(e.flags&1)}function cBe(e){return!!(e.flags&2)}function s3t(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Ra(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:Ra(e,e.getGlobalTypingsCacheLocation)}}var wve=class Xlt{constructor(t,n,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;n instanceof Xlt;)n=n.inner;this.inner=n,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((s=this.inner)!=null&&s.trackSymbol)}trackSymbol(t,n,i){var s,l;if((s=this.inner)!=null&&s.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,n,i))return this.onDiagnosticReported(),!0;t.flags&262144||((l=this.context).trackedSymbols??(l.trackedSymbols=[])).push([t,n,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var n;(n=this.inner)!=null&&n.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var n;(n=this.inner)!=null&&n.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(t,n,i){var s;(s=this.inner)!=null&&s.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,n,i))}reportNonSerializableProperty(t){var n;(n=this.inner)!=null&&n.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(t){var n;(n=this.inner)!=null&&n.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(t))}pushErrorFallbackNode(t){var n,i;return(i=(n=this.inner)==null?void 0:n.pushErrorFallbackNode)==null?void 0:i.call(n,t)}popErrorFallbackNode(){var t,n;return(n=(t=this.inner)==null?void 0:t.popErrorFallbackNode)==null?void 0:n.call(t)}};function dt(e,t,n,i){if(e===void 0)return e;let s=t(e),l;if(s!==void 0)return cs(s)?l=(i||f3t)(s):l=s,I.assertNode(l,n),l}function dn(e,t,n,i,s){if(e===void 0)return e;let l=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>l-i)&&(s=l-i);let p,g=-1,m=-1;i>0||s<l?p=e.hasTrailingComma&&i+s===l:(g=e.pos,m=e.end,p=e.hasTrailingComma);let x=lBe(e,t,n,i,s);if(x!==e){let b=j.createNodeArray(x,p);return $g(b,g,m),b}return e}function h3(e,t,n,i,s){if(e===void 0)return e;let l=e.length;return(i===void 0||i<0)&&(i=0),(s===void 0||s>l-i)&&(s=l-i),lBe(e,t,n,i,s)}function lBe(e,t,n,i,s){let l,p=e.length;(i>0||s<p)&&(l=[]);for(let g=0;g<s;g++){let m=e[g+i],x=m!==void 0?t?t(m):m:void 0;if((l!==void 0||x===void 0||x!==m)&&(l===void 0&&(l=e.slice(0,g),I.assertEachNode(l,n)),x))if(cs(x))for(let b of x)I.assertNode(b,n),l.push(b);else I.assertNode(x,n),l.push(x)}return l||(I.assertEachNode(e,n),e)}function NZ(e,t,n,i,s,l=dn){return n.startLexicalEnvironment(),e=l(e,t,fa,i),s&&(e=n.factory.ensureUseStrict(e)),j.mergeLexicalEnvironment(e,n.endLexicalEnvironment())}function kl(e,t,n,i=dn){let s;return n.startLexicalEnvironment(),e&&(n.setLexicalEnvironmentFlags(1,!0),s=i(e,t,Da),n.getLexicalEnvironmentFlags()&2&&Po(n.getCompilerOptions())>=2&&(s=o3t(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function o3t(e,t){let n;for(let i=0;i<e.length;i++){let s=e[i],l=c3t(s,t);(n||l!==s)&&(n||(n=e.slice(0,i)),n[i]=l)}return n?Ot(t.factory.createNodeArray(n,e.hasTrailingComma),e):e}function c3t(e,t){return e.dotDotDotToken?e:Os(e.name)?l3t(e,t):e.initializer?u3t(e,e.name,e.initializer,t):e}function l3t(e,t){let{factory:n}=t;return t.addInitializationStatement(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e.name,void 0,e.type,e.initializer?n.createConditionalExpression(n.createStrictEquality(n.getGeneratedNameForNode(e),n.createVoidZero()),void 0,e.initializer,void 0,n.getGeneratedNameForNode(e)):n.getGeneratedNameForNode(e))]))),n.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,n.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function u3t(e,t,n,i){let s=i.factory;return i.addInitializationStatement(s.createIfStatement(s.createTypeCheck(s.cloneNode(t),"undefined"),qn(Ot(s.createBlock([s.createExpressionStatement(qn(Ot(s.createAssignment(qn(s.cloneNode(t),96),qn(n,96|Ao(n)|3072)),e),3072))]),e),3905))),s.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function Md(e,t,n,i=dt){n.resumeLexicalEnvironment();let s=i(e,t,vq),l=n.endLexicalEnvironment();if(Pt(l)){if(!s)return n.factory.createBlock(l);let p=n.factory.converters.convertToFunctionBlock(s),g=j.mergeLexicalEnvironment(p.statements,l);return n.factory.updateBlock(p,g)}return s}function Rf(e,t,n,i=dt){n.startBlockScope();let s=i(e,t,fa,n.factory.liftToBlock);I.assert(s);let l=n.endBlockScope();return Pt(l)?Cs(s)?(l.push(...s.statements),n.factory.updateBlock(s,l)):(l.push(s),n.factory.createBlock(l)):s}function LM(e,t,n=t){if(n===t||e.length<=1)return dn(e,t,At);let i=0,s=e.length;return dn(e,l=>{let p=i<s-1;return i++,p?n(l):t(l)},At)}function Gr(e,t,n=VM,i=dn,s,l=dt){if(e===void 0)return;let p=p3t[e.kind];return p===void 0?e:p(e,t,n,i,l,s)}var p3t={166:function(t,n,i,s,l,p){return i.factory.updateQualifiedName(t,I.checkDefined(l(t.left,n,Of)),I.checkDefined(l(t.right,n,Ye)))},167:function(t,n,i,s,l,p){return i.factory.updateComputedPropertyName(t,I.checkDefined(l(t.expression,n,At)))},168:function(t,n,i,s,l,p){return i.factory.updateTypeParameterDeclaration(t,s(t.modifiers,n,oo),I.checkDefined(l(t.name,n,Ye)),l(t.constraint,n,Yi),l(t.default,n,Yi))},169:function(t,n,i,s,l,p){return i.factory.updateParameterDeclaration(t,s(t.modifiers,n,Yc),p?l(t.dotDotDotToken,p,_z):t.dotDotDotToken,I.checkDefined(l(t.name,n,vk)),p?l(t.questionToken,p,Tx):t.questionToken,l(t.type,n,Yi),l(t.initializer,n,At))},170:function(t,n,i,s,l,p){return i.factory.updateDecorator(t,I.checkDefined(l(t.expression,n,At)))},171:function(t,n,i,s,l,p){return i.factory.updatePropertySignature(t,s(t.modifiers,n,oo),I.checkDefined(l(t.name,n,su)),p?l(t.questionToken,p,Tx):t.questionToken,l(t.type,n,Yi))},172:function(t,n,i,s,l,p){return i.factory.updatePropertyDeclaration(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.name,n,su)),p?l(t.questionToken??t.exclamationToken,p,aye):t.questionToken??t.exclamationToken,l(t.type,n,Yi),l(t.initializer,n,At))},173:function(t,n,i,s,l,p){return i.factory.updateMethodSignature(t,s(t.modifiers,n,oo),I.checkDefined(l(t.name,n,su)),p?l(t.questionToken,p,Tx):t.questionToken,s(t.typeParameters,n,Hc),s(t.parameters,n,Da),l(t.type,n,Yi))},174:function(t,n,i,s,l,p){return i.factory.updateMethodDeclaration(t,s(t.modifiers,n,Yc),p?l(t.asteriskToken,p,aM):t.asteriskToken,I.checkDefined(l(t.name,n,su)),p?l(t.questionToken,p,Tx):t.questionToken,s(t.typeParameters,n,Hc),kl(t.parameters,n,i,s),l(t.type,n,Yi),Md(t.body,n,i,l))},176:function(t,n,i,s,l,p){return i.factory.updateConstructorDeclaration(t,s(t.modifiers,n,Yc),kl(t.parameters,n,i,s),Md(t.body,n,i,l))},177:function(t,n,i,s,l,p){return i.factory.updateGetAccessorDeclaration(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.name,n,su)),kl(t.parameters,n,i,s),l(t.type,n,Yi),Md(t.body,n,i,l))},178:function(t,n,i,s,l,p){return i.factory.updateSetAccessorDeclaration(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.name,n,su)),kl(t.parameters,n,i,s),Md(t.body,n,i,l))},175:function(t,n,i,s,l,p){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,Md(t.body,n,i,l))},179:function(t,n,i,s,l,p){return i.factory.updateCallSignature(t,s(t.typeParameters,n,Hc),s(t.parameters,n,Da),l(t.type,n,Yi))},180:function(t,n,i,s,l,p){return i.factory.updateConstructSignature(t,s(t.typeParameters,n,Hc),s(t.parameters,n,Da),l(t.type,n,Yi))},181:function(t,n,i,s,l,p){return i.factory.updateIndexSignature(t,s(t.modifiers,n,Yc),s(t.parameters,n,Da),I.checkDefined(l(t.type,n,Yi)))},182:function(t,n,i,s,l,p){return i.factory.updateTypePredicateNode(t,l(t.assertsModifier,n,khe),I.checkDefined(l(t.parameterName,n,sye)),l(t.type,n,Yi))},183:function(t,n,i,s,l,p){return i.factory.updateTypeReferenceNode(t,I.checkDefined(l(t.typeName,n,Of)),s(t.typeArguments,n,Yi))},184:function(t,n,i,s,l,p){return i.factory.updateFunctionTypeNode(t,s(t.typeParameters,n,Hc),s(t.parameters,n,Da),I.checkDefined(l(t.type,n,Yi)))},185:function(t,n,i,s,l,p){return i.factory.updateConstructorTypeNode(t,s(t.modifiers,n,oo),s(t.typeParameters,n,Hc),s(t.parameters,n,Da),I.checkDefined(l(t.type,n,Yi)))},186:function(t,n,i,s,l,p){return i.factory.updateTypeQueryNode(t,I.checkDefined(l(t.exprName,n,Of)),s(t.typeArguments,n,Yi))},187:function(t,n,i,s,l,p){return i.factory.updateTypeLiteralNode(t,s(t.members,n,f2))},188:function(t,n,i,s,l,p){return i.factory.updateArrayTypeNode(t,I.checkDefined(l(t.elementType,n,Yi)))},189:function(t,n,i,s,l,p){return i.factory.updateTupleTypeNode(t,s(t.elements,n,Yi))},190:function(t,n,i,s,l,p){return i.factory.updateOptionalTypeNode(t,I.checkDefined(l(t.type,n,Yi)))},191:function(t,n,i,s,l,p){return i.factory.updateRestTypeNode(t,I.checkDefined(l(t.type,n,Yi)))},192:function(t,n,i,s,l,p){return i.factory.updateUnionTypeNode(t,s(t.types,n,Yi))},193:function(t,n,i,s,l,p){return i.factory.updateIntersectionTypeNode(t,s(t.types,n,Yi))},194:function(t,n,i,s,l,p){return i.factory.updateConditionalTypeNode(t,I.checkDefined(l(t.checkType,n,Yi)),I.checkDefined(l(t.extendsType,n,Yi)),I.checkDefined(l(t.trueType,n,Yi)),I.checkDefined(l(t.falseType,n,Yi)))},195:function(t,n,i,s,l,p){return i.factory.updateInferTypeNode(t,I.checkDefined(l(t.typeParameter,n,Hc)))},205:function(t,n,i,s,l,p){return i.factory.updateImportTypeNode(t,I.checkDefined(l(t.argument,n,Yi)),l(t.attributes,n,$k),l(t.qualifier,n,Of),s(t.typeArguments,n,Yi),t.isTypeOf)},302:function(t,n,i,s,l,p){return i.factory.updateImportTypeAssertionContainer(t,I.checkDefined(l(t.assertClause,n,Rhe)),t.multiLine)},202:function(t,n,i,s,l,p){return i.factory.updateNamedTupleMember(t,p?l(t.dotDotDotToken,p,_z):t.dotDotDotToken,I.checkDefined(l(t.name,n,Ye)),p?l(t.questionToken,p,Tx):t.questionToken,I.checkDefined(l(t.type,n,Yi)))},196:function(t,n,i,s,l,p){return i.factory.updateParenthesizedType(t,I.checkDefined(l(t.type,n,Yi)))},198:function(t,n,i,s,l,p){return i.factory.updateTypeOperatorNode(t,I.checkDefined(l(t.type,n,Yi)))},199:function(t,n,i,s,l,p){return i.factory.updateIndexedAccessTypeNode(t,I.checkDefined(l(t.objectType,n,Yi)),I.checkDefined(l(t.indexType,n,Yi)))},200:function(t,n,i,s,l,p){return i.factory.updateMappedTypeNode(t,p?l(t.readonlyToken,p,oye):t.readonlyToken,I.checkDefined(l(t.typeParameter,n,Hc)),l(t.nameType,n,Yi),p?l(t.questionToken,p,cye):t.questionToken,l(t.type,n,Yi),s(t.members,n,f2))},201:function(t,n,i,s,l,p){return i.factory.updateLiteralTypeNode(t,I.checkDefined(l(t.literal,n,kde)))},203:function(t,n,i,s,l,p){return i.factory.updateTemplateLiteralType(t,I.checkDefined(l(t.head,n,yE)),s(t.templateSpans,n,pY))},204:function(t,n,i,s,l,p){return i.factory.updateTemplateLiteralTypeSpan(t,I.checkDefined(l(t.type,n,Yi)),I.checkDefined(l(t.literal,n,mq)))},206:function(t,n,i,s,l,p){return i.factory.updateObjectBindingPattern(t,s(t.elements,n,Do))},207:function(t,n,i,s,l,p){return i.factory.updateArrayBindingPattern(t,s(t.elements,n,hq))},208:function(t,n,i,s,l,p){return i.factory.updateBindingElement(t,p?l(t.dotDotDotToken,p,_z):t.dotDotDotToken,l(t.propertyName,n,su),I.checkDefined(l(t.name,n,vk)),l(t.initializer,n,At))},209:function(t,n,i,s,l,p){return i.factory.updateArrayLiteralExpression(t,s(t.elements,n,At))},210:function(t,n,i,s,l,p){return i.factory.updateObjectLiteralExpression(t,s(t.properties,n,k0))},211:function(t,n,i,s,l,p){return pq(t)?i.factory.updatePropertyAccessChain(t,I.checkDefined(l(t.expression,n,At)),p?l(t.questionDotToken,p,dz):t.questionDotToken,I.checkDefined(l(t.name,n,xv))):i.factory.updatePropertyAccessExpression(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.name,n,xv)))},212:function(t,n,i,s,l,p){return RK(t)?i.factory.updateElementAccessChain(t,I.checkDefined(l(t.expression,n,At)),p?l(t.questionDotToken,p,dz):t.questionDotToken,I.checkDefined(l(t.argumentExpression,n,At))):i.factory.updateElementAccessExpression(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.argumentExpression,n,At)))},213:function(t,n,i,s,l,p){return gk(t)?i.factory.updateCallChain(t,I.checkDefined(l(t.expression,n,At)),p?l(t.questionDotToken,p,dz):t.questionDotToken,s(t.typeArguments,n,Yi),s(t.arguments,n,At)):i.factory.updateCallExpression(t,I.checkDefined(l(t.expression,n,At)),s(t.typeArguments,n,Yi),s(t.arguments,n,At))},214:function(t,n,i,s,l,p){return i.factory.updateNewExpression(t,I.checkDefined(l(t.expression,n,At)),s(t.typeArguments,n,Yi),s(t.arguments,n,At))},215:function(t,n,i,s,l,p){return i.factory.updateTaggedTemplateExpression(t,I.checkDefined(l(t.tag,n,At)),s(t.typeArguments,n,Yi),I.checkDefined(l(t.template,n,BP)))},216:function(t,n,i,s,l,p){return i.factory.updateTypeAssertion(t,I.checkDefined(l(t.type,n,Yi)),I.checkDefined(l(t.expression,n,At)))},217:function(t,n,i,s,l,p){return i.factory.updateParenthesizedExpression(t,I.checkDefined(l(t.expression,n,At)))},218:function(t,n,i,s,l,p){return i.factory.updateFunctionExpression(t,s(t.modifiers,n,oo),p?l(t.asteriskToken,p,aM):t.asteriskToken,l(t.name,n,Ye),s(t.typeParameters,n,Hc),kl(t.parameters,n,i,s),l(t.type,n,Yi),Md(t.body,n,i,l))},219:function(t,n,i,s,l,p){return i.factory.updateArrowFunction(t,s(t.modifiers,n,oo),s(t.typeParameters,n,Hc),kl(t.parameters,n,i,s),l(t.type,n,Yi),p?I.checkDefined(l(t.equalsGreaterThanToken,p,whe)):t.equalsGreaterThanToken,Md(t.body,n,i,l))},220:function(t,n,i,s,l,p){return i.factory.updateDeleteExpression(t,I.checkDefined(l(t.expression,n,At)))},221:function(t,n,i,s,l,p){return i.factory.updateTypeOfExpression(t,I.checkDefined(l(t.expression,n,At)))},222:function(t,n,i,s,l,p){return i.factory.updateVoidExpression(t,I.checkDefined(l(t.expression,n,At)))},223:function(t,n,i,s,l,p){return i.factory.updateAwaitExpression(t,I.checkDefined(l(t.expression,n,At)))},224:function(t,n,i,s,l,p){return i.factory.updatePrefixUnaryExpression(t,I.checkDefined(l(t.operand,n,At)))},225:function(t,n,i,s,l,p){return i.factory.updatePostfixUnaryExpression(t,I.checkDefined(l(t.operand,n,At)))},226:function(t,n,i,s,l,p){return i.factory.updateBinaryExpression(t,I.checkDefined(l(t.left,n,At)),p?I.checkDefined(l(t.operatorToken,p,uye)):t.operatorToken,I.checkDefined(l(t.right,n,At)))},227:function(t,n,i,s,l,p){return i.factory.updateConditionalExpression(t,I.checkDefined(l(t.condition,n,At)),p?I.checkDefined(l(t.questionToken,p,Tx)):t.questionToken,I.checkDefined(l(t.whenTrue,n,At)),p?I.checkDefined(l(t.colonToken,p,The)):t.colonToken,I.checkDefined(l(t.whenFalse,n,At)))},228:function(t,n,i,s,l,p){return i.factory.updateTemplateExpression(t,I.checkDefined(l(t.head,n,yE)),s(t.templateSpans,n,FN))},229:function(t,n,i,s,l,p){return i.factory.updateYieldExpression(t,p?l(t.asteriskToken,p,aM):t.asteriskToken,l(t.expression,n,At))},230:function(t,n,i,s,l,p){return i.factory.updateSpreadElement(t,I.checkDefined(l(t.expression,n,At)))},231:function(t,n,i,s,l,p){return i.factory.updateClassExpression(t,s(t.modifiers,n,Yc),l(t.name,n,Ye),s(t.typeParameters,n,Hc),s(t.heritageClauses,n,U_),s(t.members,n,ou))},233:function(t,n,i,s,l,p){return i.factory.updateExpressionWithTypeArguments(t,I.checkDefined(l(t.expression,n,At)),s(t.typeArguments,n,Yi))},234:function(t,n,i,s,l,p){return i.factory.updateAsExpression(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.type,n,Yi)))},238:function(t,n,i,s,l,p){return i.factory.updateSatisfiesExpression(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.type,n,Yi)))},235:function(t,n,i,s,l,p){return Kp(t)?i.factory.updateNonNullChain(t,I.checkDefined(l(t.expression,n,At))):i.factory.updateNonNullExpression(t,I.checkDefined(l(t.expression,n,At)))},236:function(t,n,i,s,l,p){return i.factory.updateMetaProperty(t,I.checkDefined(l(t.name,n,Ye)))},239:function(t,n,i,s,l,p){return i.factory.updateTemplateSpan(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.literal,n,mq)))},241:function(t,n,i,s,l,p){return i.factory.updateBlock(t,s(t.statements,n,fa))},243:function(t,n,i,s,l,p){return i.factory.updateVariableStatement(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.declarationList,n,mp)))},244:function(t,n,i,s,l,p){return i.factory.updateExpressionStatement(t,I.checkDefined(l(t.expression,n,At)))},245:function(t,n,i,s,l,p){return i.factory.updateIfStatement(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.thenStatement,n,fa,i.factory.liftToBlock)),l(t.elseStatement,n,fa,i.factory.liftToBlock))},246:function(t,n,i,s,l,p){return i.factory.updateDoStatement(t,Rf(t.statement,n,i,l),I.checkDefined(l(t.expression,n,At)))},247:function(t,n,i,s,l,p){return i.factory.updateWhileStatement(t,I.checkDefined(l(t.expression,n,At)),Rf(t.statement,n,i,l))},248:function(t,n,i,s,l,p){return i.factory.updateForStatement(t,l(t.initializer,n,sm),l(t.condition,n,At),l(t.incrementor,n,At),Rf(t.statement,n,i,l))},249:function(t,n,i,s,l,p){return i.factory.updateForInStatement(t,I.checkDefined(l(t.initializer,n,sm)),I.checkDefined(l(t.expression,n,At)),Rf(t.statement,n,i,l))},250:function(t,n,i,s,l,p){return i.factory.updateForOfStatement(t,p?l(t.awaitModifier,p,uY):t.awaitModifier,I.checkDefined(l(t.initializer,n,sm)),I.checkDefined(l(t.expression,n,At)),Rf(t.statement,n,i,l))},251:function(t,n,i,s,l,p){return i.factory.updateContinueStatement(t,l(t.label,n,Ye))},252:function(t,n,i,s,l,p){return i.factory.updateBreakStatement(t,l(t.label,n,Ye))},253:function(t,n,i,s,l,p){return i.factory.updateReturnStatement(t,l(t.expression,n,At))},254:function(t,n,i,s,l,p){return i.factory.updateWithStatement(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.statement,n,fa,i.factory.liftToBlock)))},255:function(t,n,i,s,l,p){return i.factory.updateSwitchStatement(t,I.checkDefined(l(t.expression,n,At)),I.checkDefined(l(t.caseBlock,n,t3)))},256:function(t,n,i,s,l,p){return i.factory.updateLabeledStatement(t,I.checkDefined(l(t.label,n,Ye)),I.checkDefined(l(t.statement,n,fa,i.factory.liftToBlock)))},257:function(t,n,i,s,l,p){return i.factory.updateThrowStatement(t,I.checkDefined(l(t.expression,n,At)))},258:function(t,n,i,s,l,p){return i.factory.updateTryStatement(t,I.checkDefined(l(t.tryBlock,n,Cs)),l(t.catchClause,n,z2),l(t.finallyBlock,n,Cs))},260:function(t,n,i,s,l,p){return i.factory.updateVariableDeclaration(t,I.checkDefined(l(t.name,n,vk)),p?l(t.exclamationToken,p,sM):t.exclamationToken,l(t.type,n,Yi),l(t.initializer,n,At))},261:function(t,n,i,s,l,p){return i.factory.updateVariableDeclarationList(t,s(t.declarations,n,Ui))},262:function(t,n,i,s,l,p){return i.factory.updateFunctionDeclaration(t,s(t.modifiers,n,oo),p?l(t.asteriskToken,p,aM):t.asteriskToken,l(t.name,n,Ye),s(t.typeParameters,n,Hc),kl(t.parameters,n,i,s),l(t.type,n,Yi),Md(t.body,n,i,l))},263:function(t,n,i,s,l,p){return i.factory.updateClassDeclaration(t,s(t.modifiers,n,Yc),l(t.name,n,Ye),s(t.typeParameters,n,Hc),s(t.heritageClauses,n,U_),s(t.members,n,ou))},264:function(t,n,i,s,l,p){return i.factory.updateInterfaceDeclaration(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.name,n,Ye)),s(t.typeParameters,n,Hc),s(t.heritageClauses,n,U_),s(t.members,n,f2))},265:function(t,n,i,s,l,p){return i.factory.updateTypeAliasDeclaration(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.name,n,Ye)),s(t.typeParameters,n,Hc),I.checkDefined(l(t.type,n,Yi)))},266:function(t,n,i,s,l,p){return i.factory.updateEnumDeclaration(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.name,n,Ye)),s(t.members,n,L1))},267:function(t,n,i,s,l,p){return i.factory.updateModuleDeclaration(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.name,n,lye)),l(t.body,n,Pde))},268:function(t,n,i,s,l,p){return i.factory.updateModuleBlock(t,s(t.statements,n,fa))},269:function(t,n,i,s,l,p){return i.factory.updateCaseBlock(t,s(t.clauses,n,xq))},270:function(t,n,i,s,l,p){return i.factory.updateNamespaceExportDeclaration(t,I.checkDefined(l(t.name,n,Ye)))},271:function(t,n,i,s,l,p){return i.factory.updateImportEqualsDeclaration(t,s(t.modifiers,n,Yc),t.isTypeOnly,I.checkDefined(l(t.name,n,Ye)),I.checkDefined(l(t.moduleReference,n,Ade)))},272:function(t,n,i,s,l,p){return i.factory.updateImportDeclaration(t,s(t.modifiers,n,Yc),l(t.importClause,n,vg),I.checkDefined(l(t.moduleSpecifier,n,At)),l(t.attributes,n,$k))},300:function(t,n,i,s,l,p){return i.factory.updateImportAttributes(t,s(t.elements,n,jhe),t.multiLine)},301:function(t,n,i,s,l,p){return i.factory.updateImportAttribute(t,I.checkDefined(l(t.name,n,vde)),I.checkDefined(l(t.value,n,At)))},273:function(t,n,i,s,l,p){return i.factory.updateImportClause(t,t.isTypeOnly,l(t.name,n,Ye),l(t.namedBindings,n,KK))},274:function(t,n,i,s,l,p){return i.factory.updateNamespaceImport(t,I.checkDefined(l(t.name,n,Ye)))},280:function(t,n,i,s,l,p){return i.factory.updateNamespaceExport(t,I.checkDefined(l(t.name,n,Ye)))},275:function(t,n,i,s,l,p){return i.factory.updateNamedImports(t,s(t.elements,n,bf))},276:function(t,n,i,s,l,p){return i.factory.updateImportSpecifier(t,t.isTypeOnly,l(t.propertyName,n,xz),I.checkDefined(l(t.name,n,Ye)))},277:function(t,n,i,s,l,p){return i.factory.updateExportAssignment(t,s(t.modifiers,n,Yc),I.checkDefined(l(t.expression,n,At)))},278:function(t,n,i,s,l,p){return i.factory.updateExportDeclaration(t,s(t.modifiers,n,Yc),t.isTypeOnly,l(t.exportClause,n,LK),l(t.moduleSpecifier,n,At),l(t.attributes,n,$k))},279:function(t,n,i,s,l,p){return i.factory.updateNamedExports(t,s(t.elements,n,Yp))},281:function(t,n,i,s,l,p){return i.factory.updateExportSpecifier(t,t.isTypeOnly,l(t.propertyName,n,xz),I.checkDefined(l(t.name,n,xz)))},283:function(t,n,i,s,l,p){return i.factory.updateExternalModuleReference(t,I.checkDefined(l(t.expression,n,At)))},284:function(t,n,i,s,l,p){return i.factory.updateJsxElement(t,I.checkDefined(l(t.openingElement,n,Vg)),s(t.children,n,BF),I.checkDefined(l(t.closingElement,n,q2)))},285:function(t,n,i,s,l,p){return i.factory.updateJsxSelfClosingElement(t,I.checkDefined(l(t.tagName,n,YI)),s(t.typeArguments,n,Yi),I.checkDefined(l(t.attributes,n,J2)))},286:function(t,n,i,s,l,p){return i.factory.updateJsxOpeningElement(t,I.checkDefined(l(t.tagName,n,YI)),s(t.typeArguments,n,Yi),I.checkDefined(l(t.attributes,n,J2)))},287:function(t,n,i,s,l,p){return i.factory.updateJsxClosingElement(t,I.checkDefined(l(t.tagName,n,YI)))},295:function(t,n,i,s,l,p){return i.factory.updateJsxNamespacedName(t,I.checkDefined(l(t.namespace,n,Ye)),I.checkDefined(l(t.name,n,Ye)))},288:function(t,n,i,s,l,p){return i.factory.updateJsxFragment(t,I.checkDefined(l(t.openingFragment,n,bg)),s(t.children,n,BF),I.checkDefined(l(t.closingFragment,n,Bhe)))},291:function(t,n,i,s,l,p){return i.factory.updateJsxAttribute(t,I.checkDefined(l(t.name,n,Gge)),l(t.initializer,n,Ide))},292:function(t,n,i,s,l,p){return i.factory.updateJsxAttributes(t,s(t.properties,n,bq))},293:function(t,n,i,s,l,p){return i.factory.updateJsxSpreadAttribute(t,I.checkDefined(l(t.expression,n,At)))},294:function(t,n,i,s,l,p){return i.factory.updateJsxExpression(t,l(t.expression,n,At))},296:function(t,n,i,s,l,p){return i.factory.updateCaseClause(t,I.checkDefined(l(t.expression,n,At)),s(t.statements,n,fa))},297:function(t,n,i,s,l,p){return i.factory.updateDefaultClause(t,s(t.statements,n,fa))},298:function(t,n,i,s,l,p){return i.factory.updateHeritageClause(t,s(t.types,n,F0))},299:function(t,n,i,s,l,p){return i.factory.updateCatchClause(t,l(t.variableDeclaration,n,Ui),I.checkDefined(l(t.block,n,Cs)))},303:function(t,n,i,s,l,p){return i.factory.updatePropertyAssignment(t,I.checkDefined(l(t.name,n,su)),I.checkDefined(l(t.initializer,n,At)))},304:function(t,n,i,s,l,p){return i.factory.updateShorthandPropertyAssignment(t,I.checkDefined(l(t.name,n,Ye)),l(t.objectAssignmentInitializer,n,At))},305:function(t,n,i,s,l,p){return i.factory.updateSpreadAssignment(t,I.checkDefined(l(t.expression,n,At)))},306:function(t,n,i,s,l,p){return i.factory.updateEnumMember(t,I.checkDefined(l(t.name,n,su)),l(t.initializer,n,At))},307:function(t,n,i,s,l,p){return i.factory.updateSourceFile(t,NZ(t.statements,n,i))},355:function(t,n,i,s,l,p){return i.factory.updatePartiallyEmittedExpression(t,I.checkDefined(l(t.expression,n,At)))},356:function(t,n,i,s,l,p){return i.factory.updateCommaListExpression(t,s(t.elements,n,At))}};function f3t(e){return I.assert(e.length<=1,"Too many nodes written to output."),Zd(e)}function kve(e,t,n,i,s){var{enter:l,exit:p}=s.extendedDiagnostics?AO("Source Map","beforeSourcemap","afterSourcemap"):kI,g=[],m=[],x=new Map,b,S=[],P,E=[],N="",F=0,M=0,L=0,W=0,z=0,H=0,X=!1,ne=0,ae=0,Y=0,Ee=0,fe=0,te=0,de=!1,me=!1,ve=!1;return{getSources:()=>g,addSource:Pe,setSourceContent:Oe,addName:ie,addMapping:ze,appendSourceMap:ge,toJSON:xe,toString:()=>JSON.stringify(xe())};function Pe(pe){l();let He=IP(i,pe,e.getCurrentDirectory(),e.getCanonicalFileName,!0),qe=x.get(He);return qe===void 0&&(qe=m.length,m.push(He),g.push(pe),x.set(He,qe)),p(),qe}function Oe(pe,He){if(l(),He!==null){for(b||(b=[]);b.length<pe;)b.push(null);b[pe]=He}p()}function ie(pe){l(),P||(P=new Map);let He=P.get(pe);return He===void 0&&(He=S.length,S.push(pe),P.set(pe,He)),p(),He}function Ne(pe,He){return!de||ne!==pe||ae!==He}function it(pe,He,qe){return pe!==void 0&&He!==void 0&&qe!==void 0&&Y===pe&&(Ee>He||Ee===He&&fe>qe)}function ze(pe,He,qe,je,st,jt){I.assert(pe>=ne,"generatedLine cannot backtrack"),I.assert(He>=0,"generatedCharacter cannot be negative"),I.assert(qe===void 0||qe>=0,"sourceIndex cannot be negative"),I.assert(je===void 0||je>=0,"sourceLine cannot be negative"),I.assert(st===void 0||st>=0,"sourceCharacter cannot be negative"),l(),(Ne(pe,He)||it(qe,je,st))&&(gt(),ne=pe,ae=He,me=!1,ve=!1,de=!0),qe!==void 0&&je!==void 0&&st!==void 0&&(Y=qe,Ee=je,fe=st,me=!0,jt!==void 0&&(te=jt,ve=!0)),p()}function ge(pe,He,qe,je,st,jt){I.assert(pe>=ne,"generatedLine cannot backtrack"),I.assert(He>=0,"generatedCharacter cannot be negative"),l();let ar=[],Or,nn=MZ(qe.mappings);for(let Ct of nn){if(jt&&(Ct.generatedLine>jt.line||Ct.generatedLine===jt.line&&Ct.generatedCharacter>jt.character))break;if(st&&(Ct.generatedLine<st.line||st.line===Ct.generatedLine&&Ct.generatedCharacter<st.character))continue;let pr,vn,ta,ts;if(Ct.sourceIndex!==void 0){if(pr=ar[Ct.sourceIndex],pr===void 0){let Wn=qe.sources[Ct.sourceIndex],Gi=qe.sourceRoot?gi(qe.sourceRoot,Wn):Wn,at=gi(Ei(je),Gi);ar[Ct.sourceIndex]=pr=Pe(at),qe.sourcesContent&&typeof qe.sourcesContent[Ct.sourceIndex]=="string"&&Oe(pr,qe.sourcesContent[Ct.sourceIndex])}vn=Ct.sourceLine,ta=Ct.sourceCharacter,qe.names&&Ct.nameIndex!==void 0&&(Or||(Or=[]),ts=Or[Ct.nameIndex],ts===void 0&&(Or[Ct.nameIndex]=ts=ie(qe.names[Ct.nameIndex])))}let Gt=Ct.generatedLine-(st?st.line:0),hi=Gt+pe,$a=st&&st.line===Ct.generatedLine?Ct.generatedCharacter-st.character:Ct.generatedCharacter,ui=Gt===0?$a+He:$a;ze(hi,ui,pr,vn,ta,ts)}p()}function Me(){return!X||F!==ne||M!==ae||L!==Y||W!==Ee||z!==fe||H!==te}function Te(pe){E.push(pe),E.length>=1024&&Tt()}function gt(){if(!(!de||!Me())){if(l(),F<ne){do Te(59),F++;while(F<ne);M=0}else I.assertEqual(F,ne,"generatedLine cannot backtrack"),X&&Te(44);nt(ae-M),M=ae,me&&(nt(Y-L),L=Y,nt(Ee-W),W=Ee,nt(fe-z),z=fe,ve&&(nt(te-H),H=te)),X=!0,p()}}function Tt(){E.length>0&&(N+=String.fromCharCode.apply(void 0,E),E.length=0)}function xe(){return gt(),Tt(),{version:3,file:t,sourceRoot:n,sources:m,names:S,mappings:N,sourcesContent:b}}function nt(pe){pe<0?pe=(-pe<<1)+1:pe=pe<<1;do{let He=pe&31;pe=pe>>5,pe>0&&(He=He|32),Te(m3t(He))}while(pe>0)}}var Cve=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,AZ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,IZ=/^\s*(\/\/[@#] .*)?$/;function FZ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function Pve(e){for(let t=e.getLineCount()-1;t>=0;t--){let n=e.getLineText(t),i=AZ.exec(n);if(i)return i[1].trimEnd();if(!n.match(IZ))break}}function _3t(e){return typeof e=="string"||e===null}function d3t(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&cs(e.sources)&&sn(e.sources,Ua)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||cs(e.sourcesContent)&&sn(e.sourcesContent,_3t))&&(e.names===void 0||e.names===null||cs(e.names)&&sn(e.names,Ua))}function Eve(e){try{let t=JSON.parse(e);if(d3t(t))return t}catch{}}function MZ(e){let t=!1,n=0,i=0,s=0,l=0,p=0,g=0,m=0,x;return{get pos(){return n},get error(){return x},get state(){return b(!0,!0)},next(){for(;!t&&n<e.length;){let L=e.charCodeAt(n);if(L===59){i++,s=0,n++;continue}if(L===44){n++;continue}let W=!1,z=!1;if(s+=M(),N())return S();if(s<0)return E("Invalid generatedCharacter found");if(!F()){if(W=!0,l+=M(),N())return S();if(l<0)return E("Invalid sourceIndex found");if(F())return E("Unsupported Format: No entries after sourceIndex");if(p+=M(),N())return S();if(p<0)return E("Invalid sourceLine found");if(F())return E("Unsupported Format: No entries after sourceLine");if(g+=M(),N())return S();if(g<0)return E("Invalid sourceCharacter found");if(!F()){if(z=!0,m+=M(),N())return S();if(m<0)return E("Invalid nameIndex found");if(!F())return E("Unsupported Error Format: Entries after nameIndex")}}return{value:b(W,z),done:t}}return S()},[Symbol.iterator](){return this}};function b(L,W){return{generatedLine:i,generatedCharacter:s,sourceIndex:L?l:void 0,sourceLine:L?p:void 0,sourceCharacter:L?g:void 0,nameIndex:W?m:void 0}}function S(){return t=!0,{value:void 0,done:!0}}function P(L){x===void 0&&(x=L)}function E(L){return P(L),S()}function N(){return x!==void 0}function F(){return n===e.length||e.charCodeAt(n)===44||e.charCodeAt(n)===59}function M(){let L=!0,W=0,z=0;for(;L;n++){if(n>=e.length)return P("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let H=g3t(e.charCodeAt(n));if(H===-1)return P("Invalid character in VLQ"),-1;L=(H&32)!==0,z=z|(H&31)<<W,W+=5}return z&1?(z=z>>1,z=-z):z=z>>1,z}}function uBe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function Dve(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function m3t(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:I.fail(`${e}: not a base64 value`)}function g3t(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function pBe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function fBe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function h3t(e,t){return I.assert(e.sourceIndex===t.sourceIndex),mc(e.sourcePosition,t.sourcePosition)}function y3t(e,t){return mc(e.generatedPosition,t.generatedPosition)}function v3t(e){return e.sourcePosition}function b3t(e){return e.generatedPosition}function Ove(e,t,n){let i=Ei(n),s=t.sourceRoot?Qa(t.sourceRoot,i):i,l=Qa(t.file,i),p=e.getSourceFileLike(l),g=t.sources.map(W=>Qa(W,s)),m=new Map(g.map((W,z)=>[e.getCanonicalFileName(W),z])),x,b,S;return{getSourcePosition:L,getGeneratedPosition:M};function P(W){let z=p!==void 0?gF(p,W.generatedLine,W.generatedCharacter,!0):-1,H,X;if(Dve(W)){let ne=e.getSourceFileLike(g[W.sourceIndex]);H=t.sources[W.sourceIndex],X=ne!==void 0?gF(ne,W.sourceLine,W.sourceCharacter,!0):-1}return{generatedPosition:z,source:H,sourceIndex:W.sourceIndex,sourcePosition:X,nameIndex:W.nameIndex}}function E(){if(x===void 0){let W=MZ(t.mappings),z=Ka(W,P);W.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${W.error}`),x=ce):x=z}return x}function N(W){if(S===void 0){let z=[];for(let H of E()){if(!pBe(H))continue;let X=z[H.sourceIndex];X||(z[H.sourceIndex]=X=[]),X.push(H)}S=z.map(H=>hP(H,h3t,fBe))}return S[W]}function F(){if(b===void 0){let W=[];for(let z of E())W.push(z);b=hP(W,y3t,fBe)}return b}function M(W){let z=m.get(e.getCanonicalFileName(W.fileName));if(z===void 0)return W;let H=N(z);if(!Pt(H))return W;let X=ko(H,W.pos,v3t,mc);X<0&&(X=~X);let ne=H[X];return ne===void 0||ne.sourceIndex!==z?W:{fileName:l,pos:ne.generatedPosition}}function L(W){let z=F();if(!Pt(z))return W;let H=ko(z,W.pos,b3t,mc);H<0&&(H=~H);let X=z[H];return X===void 0||!pBe(X)?W:{fileName:g[X.sourceIndex],pos:X.sourcePosition}}}var RZ={getSourcePosition:vc,getGeneratedPosition:vc};function jf(e){return e=al(e),e?Wo(e):0}function _Be(e){return!e||!Bh(e)&&!hm(e)?!1:Pt(e.elements,dBe)}function dBe(e){return Dy(e.propertyName||e.name)}function Kg(e,t){return n;function n(s){return s.kind===307?t(s):i(s)}function i(s){return e.factory.createBundle(Dt(s.sourceFiles,t))}}function Nve(e){return!!uN(e)}function fW(e){if(uN(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!Bh(t))return!1;let n=0;for(let i of t.elements)dBe(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Dk(e)}function jZ(e){return!fW(e)&&(Dk(e)||!!e.importClause&&Bh(e.importClause.namedBindings)&&_Be(e.importClause.namedBindings))}function LZ(e,t){let n=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],l=new x3t,p=[],g=new Map,m=new Set,x,b=!1,S,P=!1,E=!1,N=!1;for(let W of t.statements)switch(W.kind){case 272:s.push(W),!E&&fW(W)&&(E=!0),!N&&jZ(W)&&(N=!0);break;case 271:W.moduleReference.kind===283&&s.push(W);break;case 278:if(W.moduleSpecifier)if(!W.exportClause)s.push(W),P=!0;else if(s.push(W),hm(W.exportClause))M(W),N||(N=_Be(W.exportClause));else{let z=W.exportClause.name,H=fx(z);g.get(H)||(y3(p,jf(W),z),g.set(H,!0),x=Zr(x,z)),E=!0}else M(W);break;case 277:W.isExportEquals&&!S&&(S=W);break;case 243:if(Ai(W,32))for(let z of W.declarationList.declarations)x=mBe(z,g,x,p);break;case 262:Ai(W,32)&&L(W,void 0,Ai(W,2048));break;case 263:if(Ai(W,32))if(Ai(W,2048))b||(y3(p,jf(W),e.factory.getDeclarationName(W)),b=!0);else{let z=W.name;z&&!g.get(fi(z))&&(y3(p,jf(W),z),g.set(fi(z),!0),x=Zr(x,z))}break}let F=NY(e.factory,e.getEmitHelperFactory(),t,i,P,E,N);return F&&s.unshift(F),{externalImports:s,exportSpecifiers:l,exportEquals:S,hasExportStarsToExportValues:P,exportedBindings:p,exportedNames:x,exportedFunctions:m,externalHelpersImportDeclaration:F};function M(W){for(let z of Js(W.exportClause,hm).elements){let H=fx(z.name);if(!g.get(H)){let X=z.propertyName||z.name;if(X.kind!==11){W.moduleSpecifier||l.add(X,z);let ne=n.getReferencedImportDeclaration(X)||n.getReferencedValueDeclaration(X);if(ne){if(ne.kind===262){L(ne,z.name,Dy(z.name));continue}y3(p,jf(ne),z.name)}}g.set(H,!0),x=Zr(x,z.name)}}}function L(W,z,H){if(m.add(al(W,jl)),H)b||(y3(p,jf(W),z??e.factory.getDeclarationName(W)),b=!0);else{z??(z=W.name);let X=fx(z);g.get(X)||(y3(p,jf(W),z),g.set(X,!0))}}}function mBe(e,t,n,i){if(Os(e.name))for(let s of e.name.elements)Ju(s)||(n=mBe(s,t,n,i));else if(!Xc(e.name)){let s=fi(e.name);t.get(s)||(t.set(s,!0),n=Zr(n,e.name),R0(e.name)&&y3(i,jf(e),e.name))}return n}function y3(e,t,n){let i=e[t];return i?i.push(n):e[t]=i=[n],i}var ZN=class b6{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(b6.toKey(t))}get(t){return this._map.get(b6.toKey(t))}set(t,n){return this._map.set(b6.toKey(t),n),this}delete(t){var n;return((n=this._map)==null?void 0:n.delete(b6.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(yk(t)||Xc(t)){let n=t.emitNode.autoGenerate;if((n.flags&7)===4){let i=bM(t),s=xv(i)&&i!==t?b6.toKey(i):`(generated@${Wo(i)})`;return WS(!1,n.prefix,s,n.suffix,b6.toKey)}else{let i=`(auto@${n.id})`;return WS(!1,n.prefix,i,n.suffix,b6.toKey)}}return Ca(t)?fi(t).slice(1):fi(t)}},x3t=class extends ZN{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){let n=this.get(e);n&&(Vb(n,t),n.length||this.delete(e))}};function V2(e){return Ho(e)||e.kind===9||Yf(e.kind)||Ye(e)}function Wh(e){return!Ye(e)&&V2(e)}function v3(e){return e>=65&&e<=79}function b3(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function _W(e){if(!Zu(e))return;let t=Qo(e.expression);return wk(t)?t:void 0}function gBe(e,t,n){for(let i=t;i<e.length;i+=1){let s=e[i];if(_W(s))return n.unshift(i),!0;if(Uk(s)&&gBe(s.tryBlock.statements,0,n))return n.unshift(i),!0}return!1}function dW(e,t){let n=[];return gBe(e,t,n),n}function BZ(e,t,n){return Cn(e.members,i=>T3t(i,t,n))}function S3t(e){return w3t(e)||Al(e)}function mW(e){return Cn(e.members,S3t)}function T3t(e,t,n){return is(e)&&(!!e.initializer||!t)&&Pu(e)===n}function w3t(e){return is(e)&&Pu(e)}function BM(e){return e.kind===172&&e.initializer!==void 0}function Ave(e){return!Vs(e)&&(LP(e)||Kf(e))&&Ca(e.name)}function Ive(e){let t;if(e){let n=e.parameters,i=n.length>0&&gx(n[0]),s=i?1:0,l=i?n.length-1:n.length;for(let p=0;p<l;p++){let g=n[p+s];(t||Od(g))&&(t||(t=new Array(l)),t[p]=tx(g))}}return t}function qZ(e,t){let n=tx(e),i=t?Ive(Dv(e)):void 0;if(!(!Pt(n)&&!Pt(i)))return{decorators:n,parameters:i}}function gW(e,t,n){switch(e.kind){case 177:case 178:return n?k3t(e,t,!0):hBe(e,!1);case 174:return hBe(e,n);case 172:return C3t(e);default:return}}function k3t(e,t,n){if(!e.body)return;let{firstAccessor:i,secondAccessor:s,getAccessor:l,setAccessor:p}=E2(t.members,e),g=Od(i)?i:s&&Od(s)?s:void 0;if(!g||e!==g)return;let m=tx(g),x=n?Ive(p):void 0;if(!(!Pt(m)&&!Pt(x)))return{decorators:m,parameters:x,getDecorators:l&&tx(l),setDecorators:p&&tx(p)}}function hBe(e,t){if(!e.body)return;let n=tx(e),i=t?Ive(e):void 0;if(!(!Pt(n)&&!Pt(i)))return{decorators:n,parameters:i}}function C3t(e){let t=tx(e);if(Pt(t))return{decorators:t}}function P3t(e,t){for(;e;){let n=t(e);if(n!==void 0)return n;e=e.previous}}function Fve(e){return{data:e}}function JZ(e,t){var n,i;return yk(t)?(n=e?.generatedIdentifiers)==null?void 0:n.get(bM(t)):(i=e?.identifiers)==null?void 0:i.get(t.escapedText)}function eC(e,t,n){yk(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(bM(t),n)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,n))}function Mve(e,t){return P3t(e,n=>JZ(n.privateEnv,t))}function E3t(e){return!e.initializer&&Ye(e.name)}function qM(e){return sn(e,E3t)}function jE(e,t){if(!e||!vo(e)||!m5(e.text,t))return e;let n=I0(e.text,HM(e.text,t));return n!==e.text?ii(Ot(j.createStringLiteral(n,e.singleQuote),e),e):e}var Rve=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Rve||{});function tC(e,t,n,i,s,l){let p=e,g;if(D1(e))for(g=e.right;rge(e.left)||cX(e.left);)if(D1(g))p=e=g,g=e.right;else return I.checkDefined(dt(g,t,At));let m,x={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:b,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:P=>R3t(n.factory,P),createObjectBindingOrAssignmentPattern:P=>L3t(n.factory,P),createArrayBindingOrAssignmentElement:q3t,visitor:t};if(g&&(g=dt(g,t,At),I.assert(g),Ye(g)&&jve(e,g.escapedText)||Lve(e)?g=LE(x,g,!1,p):s?g=LE(x,g,!0,p):Pc(e)&&(p=g)),x3(x,e,g,p,D1(e)),g&&s){if(!Pt(m))return g;m.push(g)}return n.factory.inlineExpressions(m)||n.factory.createOmittedExpression();function b(P){m=Zr(m,P)}function S(P,E,N,F){I.assertNode(P,l?Ye:At);let M=l?l(P,E,N):Ot(n.factory.createAssignment(I.checkDefined(dt(P,t,At)),E),N);M.original=F,b(M)}}function jve(e,t){let n=Px(e);return AF(n)?D3t(n,t):Ye(n)?n.escapedText===t:!1}function D3t(e,t){let n=WN(e);for(let i of n)if(jve(i,t))return!0;return!1}function Lve(e){let t=Az(e);if(t&&po(t)&&!hk(t.expression))return!0;let n=Px(e);return!!n&&AF(n)&&O3t(n)}function O3t(e){return!!Ge(WN(e),Lve)}function H2(e,t,n,i,s,l=!1,p){let g,m=[],x=[],b={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:l,emitExpression:S,emitBindingOrAssignment:P,createArrayBindingOrAssignmentPattern:E=>M3t(n.factory,E),createObjectBindingOrAssignmentPattern:E=>j3t(n.factory,E),createArrayBindingOrAssignmentElement:E=>B3t(n.factory,E),visitor:t};if(Ui(e)){let E=yM(e);E&&(Ye(E)&&jve(e,E.escapedText)||Lve(e))&&(E=LE(b,I.checkDefined(dt(E,b.visitor,At)),!1,E),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,E))}if(x3(b,e,s,e,p),g){let E=n.factory.createTempVariable(void 0);if(l){let N=n.factory.inlineExpressions(g);g=void 0,P(E,N,void 0,void 0)}else{n.hoistVariableDeclaration(E);let N=ao(m);N.pendingExpressions=Zr(N.pendingExpressions,n.factory.createAssignment(E,N.value)),ti(N.pendingExpressions,g),N.value=E}}for(let{pendingExpressions:E,name:N,value:F,location:M,original:L}of m){let W=n.factory.createVariableDeclaration(N,void 0,void 0,E?n.factory.inlineExpressions(Zr(E,F)):F);W.original=L,Ot(W,M),x.push(W)}return x;function S(E){g=Zr(g,E)}function P(E,N,F,M){I.assertNode(E,vk),g&&(N=n.factory.inlineExpressions(Zr(g,N)),g=void 0),m.push({pendingExpressions:g,name:E,value:N,location:F,original:M})}}function x3(e,t,n,i,s){let l=Px(t);if(!s){let p=dt(yM(t),e.visitor,At);p?n?(n=I3t(e,n,p,i),!Wh(p)&&AF(l)&&(n=LE(e,n,!0,i))):n=p:n||(n=e.context.factory.createVoidZero())}UK(l)?N3t(e,t,l,n,i):$K(l)?A3t(e,t,l,n,i):e.emitBindingOrAssignment(l,n,i,t)}function N3t(e,t,n,i,s){let l=WN(n),p=l.length;if(p!==1){let x=!NF(t)||p!==0;i=LE(e,i,x,s)}let g,m;for(let x=0;x<p;x++){let b=l[x];if(Nz(b)){if(x===p-1){g&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(g),i,s,n),g=void 0);let S=e.context.getEmitHelperFactory().createRestHelper(i,l,m,n);x3(e,b,S,b)}}else{let S=AY(b);if(e.level>=1&&!(b.transformFlags&98304)&&!(Px(b).transformFlags&98304)&&!po(S))g=Zr(g,dt(b,e.visitor,Sde));else{g&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(g),i,s,n),g=void 0);let P=F3t(e,i,S);po(S)&&(m=Zr(m,P.argumentExpression)),x3(e,b,P,b)}}}g&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(g),i,s,n)}function A3t(e,t,n,i,s){let l=WN(n),p=l.length;if(e.level<1&&e.downlevelIteration)i=LE(e,Ot(e.context.getEmitHelperFactory().createReadHelper(i,p>0&&Nz(l[p-1])?void 0:p),s),!1,s);else if(p!==1&&(e.level<1||p===0)||sn(l,Ju)){let x=!NF(t)||p!==0;i=LE(e,i,x,s)}let g,m;for(let x=0;x<p;x++){let b=l[x];if(e.level>=1)if(b.transformFlags&65536||e.hasTransformedPriorElement&&!yBe(b)){e.hasTransformedPriorElement=!0;let S=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(S),m=Zr(m,[S,b]),g=Zr(g,e.createArrayBindingOrAssignmentElement(S))}else g=Zr(g,b);else{if(Ju(b))continue;if(Nz(b)){if(x===p-1){let S=e.context.factory.createArraySliceCall(i,x);x3(e,b,S,b)}}else{let S=e.context.factory.createElementAccessExpression(i,x);x3(e,b,S,b)}}}if(g&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(g),i,s,n),m)for(let[x,b]of m)x3(e,b,x,b)}function yBe(e){let t=Px(e);if(!t||Ju(t))return!0;let n=Az(e);if(n&&!Oh(n))return!1;let i=yM(e);return i&&!Wh(i)?!1:AF(t)?sn(WN(t),yBe):Ye(t)}function I3t(e,t,n,i){return t=LE(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function F3t(e,t,n){let{factory:i}=e.context;if(po(n)){let s=LE(e,I.checkDefined(dt(n.expression,e.visitor,At)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(Dd(n)||H4(n)){let s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{let s=e.context.factory.createIdentifier(fi(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function LE(e,t,n,i){if(Ye(t)&&n)return t;{let s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(Ot(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function M3t(e,t){return I.assertEachNode(t,hq),e.createArrayBindingPattern(t)}function R3t(e,t){return I.assertEachNode(t,FF),e.createArrayLiteralExpression(Dt(t,e.converters.convertToArrayAssignmentElement))}function j3t(e,t){return I.assertEachNode(t,Do),e.createObjectBindingPattern(t)}function L3t(e,t){return I.assertEachNode(t,IF),e.createObjectLiteralExpression(Dt(t,e.converters.convertToObjectAssignmentElement))}function B3t(e,t){return e.createBindingElement(void 0,void 0,t)}function q3t(e){return e}function J3t(e,t,n=e.createThis()){let i=e.createAssignment(t,n),s=e.createExpressionStatement(i),l=e.createBlock([s],!1),p=e.createClassStaticBlockDeclaration(l);return qp(p).classThis=t,p}function S3(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return Zu(n)&&Yu(n.expression,!0)&&Ye(n.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===n.expression.left&&n.expression.right.kind===110}function zZ(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&Pt(e.members,S3)}function Bve(e,t,n,i){if(zZ(t))return t;let s=J3t(e,n,i);t.name&&Eo(s.body.statements[0],t.name);let l=e.createNodeArray([s,...t.members]);Ot(l,t.members);let p=bu(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l);return qp(p).classThis=n,p}function hW(e,t,n){let i=al(Ll(n));return(bu(i)||jl(i))&&!i.name&&Ai(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function vBe(e,t,n){let{factory:i}=e;if(n!==void 0)return{assignedName:i.createStringLiteral(n),name:t};if(Oh(t)||Ca(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Oh(t.expression)&&!Ye(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let s=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(s);let l=e.getEmitHelperFactory().createPropKeyHelper(t.expression),p=i.createAssignment(s,l),g=i.updateComputedPropertyName(t,p);return{assignedName:s,name:g}}function z3t(e,t,n=e.factory.createThis()){let{factory:i}=e,s=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),l=i.createExpressionStatement(s),p=i.createBlock([l],!1),g=i.createClassStaticBlockDeclaration(p);return qp(g).assignedName=t,g}function BE(e){var t;if(!Al(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return Zu(n)&&V4(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function yW(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&Pt(e.members,BE)}function WZ(e){return!!e.name||yW(e)}function vW(e,t,n,i){if(yW(t))return t;let{factory:s}=e,l=z3t(e,n,i);t.name&&Eo(l.body.statements[0],t.name);let p=Va(t.members,S3)+1,g=t.members.slice(0,p),m=t.members.slice(p),x=s.createNodeArray([...g,l,...m]);return Ot(x,t.members),t=bu(t)?s.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,x):s.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,x),qp(t).assignedName=n,t}function eA(e,t,n,i){if(i&&vo(n)&&TQ(n))return t;let{factory:s}=e,l=Ll(t),p=vu(l)?Js(vW(e,l,n),vu):e.getEmitHelperFactory().createSetFunctionNameHelper(l,n);return s.restoreOuterExpressions(t,p)}function W3t(e,t,n,i){let{factory:s}=e,{assignedName:l,name:p}=vBe(e,t.name,i),g=eA(e,t.initializer,l,n);return s.updatePropertyAssignment(t,p,g)}function U3t(e,t,n,i){let{factory:s}=e,l=i!==void 0?s.createStringLiteral(i):hW(s,t.name,t.objectAssignmentInitializer),p=eA(e,t.objectAssignmentInitializer,l,n);return s.updateShorthandPropertyAssignment(t,t.name,p)}function $3t(e,t,n,i){let{factory:s}=e,l=i!==void 0?s.createStringLiteral(i):hW(s,t.name,t.initializer),p=eA(e,t.initializer,l,n);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,p)}function V3t(e,t,n,i){let{factory:s}=e,l=i!==void 0?s.createStringLiteral(i):hW(s,t.name,t.initializer),p=eA(e,t.initializer,l,n);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,p)}function H3t(e,t,n,i){let{factory:s}=e,l=i!==void 0?s.createStringLiteral(i):hW(s,t.name,t.initializer),p=eA(e,t.initializer,l,n);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,p)}function G3t(e,t,n,i){let{factory:s}=e,{assignedName:l,name:p}=vBe(e,t.name,i),g=eA(e,t.initializer,l,n);return s.updatePropertyDeclaration(t,t.modifiers,p,t.questionToken??t.exclamationToken,t.type,g)}function K3t(e,t,n,i){let{factory:s}=e,l=i!==void 0?s.createStringLiteral(i):hW(s,t.left,t.right),p=eA(e,t.right,l,n);return s.updateBinaryExpression(t,t.left,t.operatorToken,p)}function Q3t(e,t,n,i){let{factory:s}=e,l=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),p=eA(e,t.expression,l,n);return s.updateExportAssignment(t,t.modifiers,p)}function $_(e,t,n,i){switch(t.kind){case 303:return W3t(e,t,n,i);case 304:return U3t(e,t,n,i);case 260:return $3t(e,t,n,i);case 169:return V3t(e,t,n,i);case 208:return H3t(e,t,n,i);case 172:return G3t(e,t,n,i);case 226:return K3t(e,t,n,i);case 277:return Q3t(e,t,n,i)}}var qve=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(qve||{});function UZ(e,t,n,i,s,l){let p=dt(t.tag,n,At);I.assert(p);let g=[void 0],m=[],x=[],b=t.template;if(l===0&&!$Q(b))return Gr(t,n,e);let{factory:S}=e;if(Bk(b))m.push(Jve(S,b)),x.push(zve(S,b,i));else{m.push(Jve(S,b.head)),x.push(zve(S,b.head,i));for(let E of b.templateSpans)m.push(Jve(S,E.literal)),x.push(zve(S,E.literal,i)),g.push(I.checkDefined(dt(E.expression,n,At)))}let P=e.getEmitHelperFactory().createTemplateObjectHelper(S.createArrayLiteralExpression(m),S.createArrayLiteralExpression(x));if(Du(i)){let E=S.createUniqueName("templateObject");s(E),g[0]=S.createLogicalOr(E,S.createAssignment(E,P))}else g[0]=P;return S.createCallExpression(p,void 0,g)}function Jve(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function zve(e,t,n){let i=t.rawText;if(i===void 0){I.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=m2(n,t);let s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,`
|
|
`),Ot(e.createStringLiteral(i),t)}var X3t=!1;function Wve(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:l,hoistVariableDeclaration:p}=e,g=e.getEmitResolver(),m=e.getCompilerOptions(),x=Po(m),b=hf(m),S=!!m.experimentalDecorators,P=m.emitDecoratorMetadata?$ve(e):void 0,E=e.onEmitNode,N=e.onSubstituteNode;e.onEmitNode=Q_,e.onSubstituteNode=as,e.enableSubstitution(211),e.enableSubstitution(212);let F,M,L,W,z,H=0,X;return ne;function ne(B){return B.kind===308?ae(B):Y(B)}function ae(B){return t.createBundle(B.sourceFiles.map(Y))}function Y(B){if(B.isDeclarationFile)return B;F=B;let Xe=Ee(B,nt);return Rv(Xe,e.readEmitHelpers()),F=void 0,Xe}function Ee(B,Xe){let Et=W,ur=z;fe(B);let cn=Xe(B);return W!==Et&&(z=ur),W=Et,cn}function fe(B){switch(B.kind){case 307:case 269:case 268:case 241:W=B,z=void 0;break;case 263:case 262:if(Ai(B,128))break;B.name?Ke(B):I.assert(B.kind===263||Ai(B,2048));break}}function te(B){return Ee(B,de)}function de(B){return B.transformFlags&1?xe(B):B}function me(B){return Ee(B,ve)}function ve(B){switch(B.kind){case 272:case 271:case 277:case 278:return Oe(B);default:return de(B)}}function Pe(B){let Xe=ds(B);if(Xe===B||Gc(B))return!1;if(!Xe||Xe.kind!==B.kind)return!0;switch(B.kind){case 272:if(I.assertNode(Xe,sl),B.importClause!==Xe.importClause||B.attributes!==Xe.attributes)return!0;break;case 271:if(I.assertNode(Xe,zu),B.name!==Xe.name||B.isTypeOnly!==Xe.isTypeOnly||B.moduleReference!==Xe.moduleReference&&(Of(B.moduleReference)||Of(Xe.moduleReference)))return!0;break;case 278:if(I.assertNode(Xe,tu),B.exportClause!==Xe.exportClause||B.attributes!==Xe.attributes)return!0;break}return!1}function Oe(B){if(Pe(B))return B.transformFlags&1?Gr(B,te,e):B;switch(B.kind){case 272:return kn(B);case 271:return Wr(B);case 277:return Bt(B);case 278:return cr(B);default:I.fail("Unhandled ellided statement")}}function ie(B){return Ee(B,Ne)}function Ne(B){if(!(B.kind===278||B.kind===272||B.kind===273||B.kind===271&&B.moduleReference.kind===283))return B.transformFlags&1||Ai(B,32)?xe(B):B}function it(B){return Xe=>Ee(Xe,Et=>ze(Et,B))}function ze(B,Xe){switch(B.kind){case 176:return It(B);case 172:return at(B,Xe);case 177:return ks(B,Xe);case 178:return no(B,Xe);case 174:return Pi(B,Xe);case 175:return Gr(B,te,e);case 240:return B;case 181:return;default:return I.failBadSyntaxKind(B)}}function ge(B){return Xe=>Ee(Xe,Et=>Me(Et,B))}function Me(B,Xe){switch(B.kind){case 303:case 304:case 305:return te(B);case 177:return ks(B,Xe);case 178:return no(B,Xe);case 174:return Pi(B,Xe);default:return I.failBadSyntaxKind(B)}}function Te(B){return qu(B)?void 0:te(B)}function gt(B){return oo(B)?void 0:te(B)}function Tt(B){if(!qu(B)&&!(rE(B.kind)&28895)&&!(M&&B.kind===95))return B}function xe(B){if(fa(B)&&Ai(B,128))return t.createNotEmittedStatement(B);switch(B.kind){case 95:case 90:return M?void 0:B;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(B);case 270:return;case 264:return t.createNotEmittedStatement(B);case 263:return st(B);case 231:return jt(B);case 298:return ui(B);case 233:return Wn(B);case 210:return pe(B);case 176:case 172:case 174:case 177:case 178:case 175:return I.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Vr(B);case 218:return _s(B);case 219:return ft(B);case 169:return Qt(B);case 217:return Ue(B);case 216:case 234:return pt(B);case 238:return $t(B);case 213:return Qe(B);case 214:return Lt(B);case 215:return Rt(B);case 235:return vt(B);case 266:return In(B);case 243:return he(B);case 260:return oe(B);case 267:return Le(B);case 271:return Wr(B);case 285:return Xt(B);case 286:return ut(B);default:return Gr(B,te,e)}}function nt(B){let Xe=Bp(m,"alwaysStrict")&&!(Du(B)&&b>=5)&&!cm(B);return t.updateSourceFile(B,NZ(B.statements,me,e,0,Xe))}function pe(B){return t.updateObjectLiteralExpression(B,dn(B.properties,ge(B),k0))}function He(B){let Xe=0;Pt(BZ(B,!0,!0))&&(Xe|=1);let Et=Dh(B);return Et&&Ll(Et.expression).kind!==106&&(Xe|=64),P1(S,B)&&(Xe|=2),s4(S,B)&&(Xe|=4),$r(B)?Xe|=8:Is(B)?Xe|=32:ji(B)&&(Xe|=16),Xe}function qe(B){return!!(B.transformFlags&8192)}function je(B){return Od(B)||Pt(B.typeParameters)||Pt(B.heritageClauses,qe)||Pt(B.members,qe)}function st(B){let Xe=He(B),Et=x<=1&&!!(Xe&7);if(!je(B)&&!P1(S,B)&&!$r(B))return t.updateClassDeclaration(B,dn(B.modifiers,Tt,oo),B.name,void 0,dn(B.heritageClauses,te,U_),dn(B.members,it(B),ou));Et&&e.startLexicalEnvironment();let ur=Et||Xe&8,cn=ur?dn(B.modifiers,gt,Yc):dn(B.modifiers,te,Yc);Xe&2&&(cn=Or(cn,B));let Bn=ur&&!B.name||Xe&4||Xe&1?B.name??t.getGeneratedNameForNode(B):B.name,an=t.updateClassDeclaration(B,cn,Bn,void 0,dn(B.heritageClauses,te,U_),ar(B)),ua=Ao(B);Xe&1&&(ua|=64),qn(an,ua);let ma;if(Et){let sc=[an],To=uX(yo(F.text,B.members.end),20),Wc=t.getInternalName(B),El=t.createPartiallyEmittedExpression(Wc);CN(El,To.end),qn(El,3072);let Hl=t.createReturnStatement(El);j4(Hl,To.pos),qn(Hl,3840),sc.push(Hl),kv(sc,e.endLexicalEnvironment());let Fc=t.createImmediatelyInvokedArrowFunction(sc);rM(Fc,1);let Gl=t.createVariableDeclaration(t.getLocalName(B,!1,!1),void 0,void 0,Fc);ii(Gl,B);let X_=t.createVariableStatement(void 0,t.createVariableDeclarationList([Gl],1));ii(X_,B),yu(X_,B),Eo(X_,N0(B)),Zp(X_),ma=X_}else ma=an;if(ur){if(Xe&8)return[ma,Xs(B)];if(Xe&32)return[ma,t.createExportDefault(t.getLocalName(B,!1,!0))];if(Xe&16)return[ma,t.createExternalModuleExport(t.getDeclarationName(B,!1,!0))]}return ma}function jt(B){let Xe=dn(B.modifiers,gt,Yc);return P1(S,B)&&(Xe=Or(Xe,B)),t.updateClassExpression(B,Xe,B.name,void 0,dn(B.heritageClauses,te,U_),ar(B))}function ar(B){let Xe=dn(B.members,it(B),ou),Et,ur=Dv(B),cn=ur&&Cn(ur.parameters,wi=>L_(wi,ur));if(cn)for(let wi of cn){let Bn=t.createPropertyDeclaration(void 0,wi.name,void 0,void 0,void 0);ii(Bn,wi),Et=Zr(Et,Bn)}return Et?(Et=ti(Et,Xe),Ot(t.createNodeArray(Et),B.members)):Xe}function Or(B,Xe){let Et=Ct(Xe,Xe);if(Pt(Et)){let ur=[];ti(ur,Hb(B,vM)),ti(ur,Cn(B,qu)),ti(ur,Et),ti(ur,Cn(bB(B,vM),oo)),B=Ot(t.createNodeArray(ur),B)}return B}function nn(B,Xe,Et){if(Ri(Et)&&SQ(S,Xe,Et)){let ur=Ct(Xe,Et);if(Pt(ur)){let cn=[];ti(cn,Cn(B,qu)),ti(cn,ur),ti(cn,Cn(B,oo)),B=Ot(t.createNodeArray(cn),B)}}return B}function Ct(B,Xe){if(S)return X3t?vn(B,Xe):pr(B,Xe)}function pr(B,Xe){if(P){let Et;if(ta(B)){let ur=n().createMetadataHelper("design:type",P.serializeTypeOfNode({currentLexicalScope:W,currentNameScope:Xe},B,Xe));Et=Zr(Et,t.createDecorator(ur))}if(Gt(B)){let ur=n().createMetadataHelper("design:paramtypes",P.serializeParameterTypesOfNode({currentLexicalScope:W,currentNameScope:Xe},B,Xe));Et=Zr(Et,t.createDecorator(ur))}if(ts(B)){let ur=n().createMetadataHelper("design:returntype",P.serializeReturnTypeOfNode({currentLexicalScope:W,currentNameScope:Xe},B));Et=Zr(Et,t.createDecorator(ur))}return Et}}function vn(B,Xe){if(P){let Et;if(ta(B)){let ur=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),P.serializeTypeOfNode({currentLexicalScope:W,currentNameScope:Xe},B,Xe)));Et=Zr(Et,ur)}if(Gt(B)){let ur=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),P.serializeParameterTypesOfNode({currentLexicalScope:W,currentNameScope:Xe},B,Xe)));Et=Zr(Et,ur)}if(ts(B)){let ur=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),P.serializeReturnTypeOfNode({currentLexicalScope:W,currentNameScope:Xe},B)));Et=Zr(Et,ur)}if(Et){let ur=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Et,!0));return[t.createDecorator(ur)]}}}function ta(B){let Xe=B.kind;return Xe===174||Xe===177||Xe===178||Xe===172}function ts(B){return B.kind===174}function Gt(B){switch(B.kind){case 263:case 231:return Dv(B)!==void 0;case 174:case 177:case 178:return!0}return!1}function hi(B,Xe){let Et=B.name;return Ca(Et)?t.createIdentifier(""):po(Et)?Xe&&!Wh(Et.expression)?t.getGeneratedNameForNode(Et):Et.expression:Ye(Et)?t.createStringLiteral(fi(Et)):t.cloneNode(Et)}function $a(B){let Xe=B.name;if(S&&po(Xe)&&Od(B)){let Et=dt(Xe.expression,te,At);I.assert(Et);let ur=dg(Et);if(!Wh(ur)){let cn=t.getGeneratedNameForNode(Xe);return p(cn),t.updateComputedPropertyName(Xe,t.createAssignment(cn,Et))}}return I.checkDefined(dt(Xe,te,su))}function ui(B){if(B.token!==119)return Gr(B,te,e)}function Wn(B){return t.updateExpressionWithTypeArguments(B,I.checkDefined(dt(B.expression,te,Qf)),void 0)}function Gi(B){return!Sl(B.body)}function at(B,Xe){let Et=B.flags&33554432||Ai(B,64);if(Et&&!(S&&Od(B)))return;let ur=Ri(Xe)?Et?dn(B.modifiers,gt,Yc):dn(B.modifiers,te,Yc):dn(B.modifiers,Te,Yc);return ur=nn(ur,B,Xe),Et?t.updatePropertyDeclaration(B,ya(ur,t.createModifiersFromModifierFlags(128)),I.checkDefined(dt(B.name,te,su)),void 0,void 0,void 0):t.updatePropertyDeclaration(B,ur,$a(B),void 0,void 0,dt(B.initializer,te,At))}function It(B){if(Gi(B))return t.updateConstructorDeclaration(B,void 0,kl(B.parameters,te,e),wn(B.body,B))}function Cr(B,Xe,Et,ur,cn,wi){let Bn=ur[cn],an=Xe[Bn];if(ti(B,dn(Xe,te,fa,Et,Bn-Et)),Uk(an)){let ua=[];Cr(ua,an.tryBlock.statements,0,ur,cn+1,wi);let ma=t.createNodeArray(ua);Ot(ma,an.tryBlock.statements),B.push(t.updateTryStatement(an,t.updateBlock(an.tryBlock,ua),dt(an.catchClause,te,z2),dt(an.finallyBlock,te,Cs)))}else ti(B,dn(Xe,te,fa,Bn,1)),ti(B,wi);ti(B,dn(Xe,te,fa,Bn+1))}function wn(B,Xe){let Et=Xe&&Cn(Xe.parameters,ua=>L_(ua,Xe));if(!Pt(Et))return Md(B,te,e);let ur=[];s();let cn=t.copyPrologue(B.statements,ur,!1,te),wi=dW(B.statements,cn),Bn=Bi(Et,Di);wi.length?Cr(ur,B.statements,cn,wi,0,Bn):(ti(ur,Bn),ti(ur,dn(B.statements,te,fa,cn))),ur=t.mergeLexicalEnvironment(ur,l());let an=t.createBlock(Ot(t.createNodeArray(ur),B.statements),!0);return Ot(an,B),ii(an,B),an}function Di(B){let Xe=B.name;if(!Ye(Xe))return;let Et=Xo(Ot(t.cloneNode(Xe),Xe),Xe.parent);qn(Et,3168);let ur=Xo(Ot(t.cloneNode(Xe),Xe),Xe.parent);return qn(ur,3072),Zp(tM(Ot(ii(t.createExpressionStatement(t.createAssignment(Ot(t.createPropertyAccessExpression(t.createThis(),Et),B.name),ur)),B),NS(B,-1))))}function Pi(B,Xe){if(!(B.transformFlags&1))return B;if(!Gi(B))return;let Et=Ri(Xe)?dn(B.modifiers,te,Yc):dn(B.modifiers,Te,Yc);return Et=nn(Et,B,Xe),t.updateMethodDeclaration(B,Et,B.asteriskToken,$a(B),void 0,void 0,kl(B.parameters,te,e),void 0,Md(B.body,te,e))}function da(B){return!(Sl(B.body)&&Ai(B,64))}function ks(B,Xe){if(!(B.transformFlags&1))return B;if(!da(B))return;let Et=Ri(Xe)?dn(B.modifiers,te,Yc):dn(B.modifiers,Te,Yc);return Et=nn(Et,B,Xe),t.updateGetAccessorDeclaration(B,Et,$a(B),kl(B.parameters,te,e),void 0,Md(B.body,te,e)||t.createBlock([]))}function no(B,Xe){if(!(B.transformFlags&1))return B;if(!da(B))return;let Et=Ri(Xe)?dn(B.modifiers,te,Yc):dn(B.modifiers,Te,Yc);return Et=nn(Et,B,Xe),t.updateSetAccessorDeclaration(B,Et,$a(B),kl(B.parameters,te,e),Md(B.body,te,e)||t.createBlock([]))}function Vr(B){if(!Gi(B))return t.createNotEmittedStatement(B);let Xe=t.updateFunctionDeclaration(B,dn(B.modifiers,Tt,oo),B.asteriskToken,B.name,void 0,kl(B.parameters,te,e),void 0,Md(B.body,te,e)||t.createBlock([]));if($r(B)){let Et=[Xe];return Ps(Et,B),Et}return Xe}function _s(B){return Gi(B)?t.updateFunctionExpression(B,dn(B.modifiers,Tt,oo),B.asteriskToken,B.name,void 0,kl(B.parameters,te,e),void 0,Md(B.body,te,e)||t.createBlock([])):t.createOmittedExpression()}function ft(B){return t.updateArrowFunction(B,dn(B.modifiers,Tt,oo),void 0,kl(B.parameters,te,e),void 0,B.equalsGreaterThanToken,Md(B.body,te,e))}function Qt(B){if(gx(B))return;let Xe=t.updateParameterDeclaration(B,dn(B.modifiers,Et=>qu(Et)?te(Et):void 0,Yc),B.dotDotDotToken,I.checkDefined(dt(B.name,te,vk)),void 0,void 0,dt(B.initializer,te,At));return Xe!==B&&(yu(Xe,B),Ot(Xe,Fh(B)),Eo(Xe,Fh(B)),qn(Xe.name,64)),Xe}function he(B){if($r(B)){let Xe=k4(B.declarationList);return Xe.length===0?void 0:Ot(t.createExpressionStatement(t.inlineExpressions(Dt(Xe,wt))),B)}else return Gr(B,te,e)}function wt(B){let Xe=B.name;return Os(Xe)?tC(B,te,e,0,!1,pl):Ot(t.createAssignment(Bl(Xe),I.checkDefined(dt(B.initializer,te,At))),B)}function oe(B){let Xe=t.updateVariableDeclaration(B,I.checkDefined(dt(B.name,te,vk)),void 0,void 0,dt(B.initializer,te,At));return B.type&&dhe(Xe.name,B.type),Xe}function Ue(B){let Xe=Ll(B.expression,-55);if(d2(Xe)||IN(Xe)){let Et=dt(B.expression,te,At);return I.assert(Et),t.createPartiallyEmittedExpression(Et,B)}return Gr(B,te,e)}function pt(B){let Xe=dt(B.expression,te,At);return I.assert(Xe),t.createPartiallyEmittedExpression(Xe,B)}function vt(B){let Xe=dt(B.expression,te,Qf);return I.assert(Xe),t.createPartiallyEmittedExpression(Xe,B)}function $t(B){let Xe=dt(B.expression,te,At);return I.assert(Xe),t.createPartiallyEmittedExpression(Xe,B)}function Qe(B){return t.updateCallExpression(B,I.checkDefined(dt(B.expression,te,At)),void 0,dn(B.arguments,te,At))}function Lt(B){return t.updateNewExpression(B,I.checkDefined(dt(B.expression,te,At)),void 0,dn(B.arguments,te,At))}function Rt(B){return t.updateTaggedTemplateExpression(B,I.checkDefined(dt(B.tag,te,At)),void 0,I.checkDefined(dt(B.template,te,BP)))}function Xt(B){return t.updateJsxSelfClosingElement(B,I.checkDefined(dt(B.tagName,te,YI)),void 0,I.checkDefined(dt(B.attributes,te,J2)))}function ut(B){return t.updateJsxOpeningElement(B,I.checkDefined(dt(B.tagName,te,YI)),void 0,I.checkDefined(dt(B.attributes,te,J2)))}function lr(B){return!wS(B)||vx(m)}function In(B){if(!lr(B))return t.createNotEmittedStatement(B);let Xe=[],Et=4,ur=rr(Xe,B);ur&&(b!==4||W!==F)&&(Et|=1024);let cn=la(B),wi=us(B),Bn=$r(B)?t.getExternalModuleOrNamespaceExportName(L,B,!1,!0):t.getDeclarationName(B,!1,!0),an=t.createLogicalOr(Bn,t.createAssignment(Bn,t.createObjectLiteralExpression()));if($r(B)){let ma=t.getLocalName(B,!1,!0);an=t.createAssignment(ma,an)}let ua=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,cn)],void 0,We(B,wi)),void 0,[an]));return ii(ua,B),ur&&(FS(ua,void 0),mE(ua,void 0)),Ot(ua,B),Mh(ua,Et),Xe.push(ua),Xe}function We(B,Xe){let Et=L;L=Xe;let ur=[];i();let cn=Dt(B.members,qt);return kv(ur,l()),ti(ur,cn),L=Et,t.createBlock(Ot(t.createNodeArray(ur),B.members),!0)}function qt(B){let Xe=hi(B,!1),Et=g.getEnumMemberValue(B),ur=ke(B,Et?.value),cn=t.createAssignment(t.createElementAccessExpression(L,Xe),ur),wi=typeof Et?.value=="string"||Et?.isSyntacticallyString?cn:t.createAssignment(t.createElementAccessExpression(L,cn),Xe);return Ot(t.createExpressionStatement(Ot(wi,B)),B)}function ke(B,Xe){return Xe!==void 0?typeof Xe=="string"?t.createStringLiteral(Xe):Xe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Xe)):t.createNumericLiteral(Xe):(lu(),B.initializer?I.checkDefined(dt(B.initializer,te,At)):t.createVoidZero())}function $(B){let Xe=ds(B,cu);return Xe?DZ(Xe,vx(m)):!0}function Ke(B){z||(z=new Map);let Xe=Ft(B);z.has(Xe)||z.set(Xe,B)}function re(B){if(z){let Xe=Ft(B);return z.get(Xe)===B}return!0}function Ft(B){return I.assertNode(B.name,Ye),B.name.escapedText}function rr(B,Xe){let Et=t.createVariableDeclaration(t.getLocalName(Xe,!1,!0)),ur=W.kind===307?0:1,cn=t.createVariableStatement(dn(Xe.modifiers,Tt,oo),t.createVariableDeclarationList([Et],ur));return ii(Et,Xe),FS(Et,void 0),mE(Et,void 0),ii(cn,Xe),Ke(Xe),re(Xe)?(Xe.kind===266?Eo(cn.declarationList,Xe):Eo(cn,Xe),yu(cn,Xe),Mh(cn,2048),B.push(cn),!0):!1}function Le(B){if(!$(B))return t.createNotEmittedStatement(B);I.assertNode(B.name,Ye,"A TypeScript namespace should have an Identifier name."),Kc();let Xe=[],Et=4,ur=rr(Xe,B);ur&&(b!==4||W!==F)&&(Et|=1024);let cn=la(B),wi=us(B),Bn=$r(B)?t.getExternalModuleOrNamespaceExportName(L,B,!1,!0):t.getDeclarationName(B,!1,!0),an=t.createLogicalOr(Bn,t.createAssignment(Bn,t.createObjectLiteralExpression()));if($r(B)){let ma=t.getLocalName(B,!1,!0);an=t.createAssignment(ma,an)}let ua=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,cn)],void 0,kt(B,wi)),void 0,[an]));return ii(ua,B),ur&&(FS(ua,void 0),mE(ua,void 0)),Ot(ua,B),Mh(ua,Et),Xe.push(ua),Xe}function kt(B,Xe){let Et=L,ur=M,cn=z;L=Xe,M=B,z=void 0;let wi=[];i();let Bn,an;if(B.body)if(B.body.kind===268)Ee(B.body,ma=>ti(wi,dn(ma.statements,ie,fa))),Bn=B.body.statements,an=B.body;else{let ma=Le(B.body);ma&&(cs(ma)?ti(wi,ma):wi.push(ma));let sc=dr(B).body;Bn=NS(sc.statements,-1)}kv(wi,l()),L=Et,M=ur,z=cn;let ua=t.createBlock(Ot(t.createNodeArray(wi),Bn),!0);return Ot(ua,an),(!B.body||B.body.kind!==268)&&qn(ua,Ao(ua)|3072),ua}function dr(B){if(B.body.kind===267)return dr(B.body)||B.body}function kn(B){if(!B.importClause)return B;if(B.importClause.isTypeOnly)return;let Xe=dt(B.importClause,Kr,vg);return Xe?t.updateImportDeclaration(B,void 0,Xe,B.moduleSpecifier,B.attributes):void 0}function Kr(B){I.assert(!B.isTypeOnly);let Xe=Pl(B)?B.name:void 0,Et=dt(B.namedBindings,yn,KK);return Xe||Et?t.updateImportClause(B,!1,Xe,Et):void 0}function yn(B){if(B.kind===274)return Pl(B)?B:void 0;{let Xe=m.verbatimModuleSyntax,Et=dn(B.elements,yt,bf);return Xe||Pt(Et)?t.updateNamedImports(B,Et):void 0}}function yt(B){return!B.isTypeOnly&&Pl(B)?B:void 0}function Bt(B){return m.verbatimModuleSyntax||g.isValueAliasDeclaration(B)?Gr(B,te,e):void 0}function cr(B){if(B.isTypeOnly)return;if(!B.exportClause||Fy(B.exportClause))return t.updateExportDeclaration(B,B.modifiers,B.isTypeOnly,B.exportClause,B.moduleSpecifier,B.attributes);let Xe=!!m.verbatimModuleSyntax,Et=dt(B.exportClause,ur=>Pr(ur,Xe),LK);return Et?t.updateExportDeclaration(B,void 0,B.isTypeOnly,Et,B.moduleSpecifier,B.attributes):void 0}function er(B,Xe){let Et=dn(B.elements,or,Yp);return Xe||Pt(Et)?t.updateNamedExports(B,Et):void 0}function zr(B){return t.updateNamespaceExport(B,I.checkDefined(dt(B.name,te,Ye)))}function Pr(B,Xe){return Fy(B)?zr(B):er(B,Xe)}function or(B){return!B.isTypeOnly&&(m.verbatimModuleSyntax||g.isValueAliasDeclaration(B))?B:void 0}function Mr(B){return Pl(B)||!Du(F)&&g.isTopLevelValueImportEqualsWithEntityName(B)}function Wr(B){if(B.isTypeOnly)return;if(kS(B))return Pl(B)?Gr(B,te,e):void 0;if(!Mr(B))return;let Xe=dM(t,B.moduleReference);return qn(Xe,7168),ji(B)||!$r(B)?ii(Ot(t.createVariableStatement(dn(B.modifiers,Tt,oo),t.createVariableDeclarationList([ii(t.createVariableDeclaration(B.name,void 0,void 0,Xe),B)])),B),B):ii(Vl(B.name,Xe,B),B)}function $r(B){return M!==void 0&&Ai(B,32)}function Sr(B){return M===void 0&&Ai(B,32)}function ji(B){return Sr(B)&&!Ai(B,2048)}function Is(B){return Sr(B)&&Ai(B,2048)}function Xs(B){let Xe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(L,B,!1,!0),t.getLocalName(B));Eo(Xe,um(B.name?B.name.pos:B.pos,B.end));let Et=t.createExpressionStatement(Xe);return Eo(Et,um(-1,B.end)),Et}function Ps(B,Xe){B.push(Xs(Xe))}function Vl(B,Xe,Et){return Ot(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(L,B,!1,!0),Xe)),Et)}function pl(B,Xe,Et){return Ot(t.createAssignment(Bl(B),Xe),Et)}function Bl(B){return t.getNamespaceMemberName(L,B,!1,!0)}function la(B){let Xe=t.getGeneratedNameForNode(B);return Eo(Xe,B.name),Xe}function us(B){return t.getGeneratedNameForNode(B)}function lu(){H&8||(H|=8,e.enableSubstitution(80))}function Kc(){H&2||(H|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function Ro(B){return al(B).kind===267}function el(B){return al(B).kind===266}function Q_(B,Xe,Et){let ur=X,cn=F;ba(Xe)&&(F=Xe),H&2&&Ro(Xe)&&(X|=2),H&8&&el(Xe)&&(X|=8),E(B,Xe,Et),X=ur,F=cn}function as(B,Xe){return Xe=N(B,Xe),B===1?qo(Xe):Jp(Xe)?Gs(Xe):Xe}function Gs(B){if(H&2){let Xe=B.name,Et=fr(Xe);if(Et){if(B.objectAssignmentInitializer){let ur=t.createAssignment(Et,B.objectAssignmentInitializer);return Ot(t.createPropertyAssignment(Xe,ur),B)}return Ot(t.createPropertyAssignment(Xe,Et),B)}}return B}function qo(B){switch(B.kind){case 80:return jo(B);case 211:return hc(B);case 212:return uu(B)}return B}function jo(B){return fr(B)||B}function fr(B){if(H&X&&!Xc(B)&&!R0(B)){let Xe=g.getReferencedExportContainer(B,!1);if(Xe&&Xe.kind!==307&&(X&2&&Xe.kind===267||X&8&&Xe.kind===266))return Ot(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Xe),B),B)}}function hc(B){return hp(B)}function uu(B){return hp(B)}function Cl(B){return B.replace(/\*\//g,"*_/")}function hp(B){let Xe=tl(B);if(Xe!==void 0){fhe(B,Xe);let Et=typeof Xe=="string"?t.createStringLiteral(Xe):Xe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Xe)):t.createNumericLiteral(Xe);if(!m.removeComments){let ur=al(B,Lc);$4(Et,3,` ${Cl(cl(ur))} `)}return Et}return B}function tl(B){if(!zm(m))return ai(B)||Nc(B)?g.getConstantValue(B):void 0}function Pl(B){return m.verbatimModuleSyntax||jn(B)||g.isReferencedAliasDeclaration(B)}}function Uve(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:l,resumeLexicalEnvironment:p,addBlockScopedVariable:g}=e,m=e.getEmitResolver(),x=e.getCompilerOptions(),b=Po(x),S=J5(x),P=!!x.experimentalDecorators,E=!S,N=S&&b<9,F=E||N,M=b<9,L=b<99?-1:S?0:3,W=b<9,z=W&&b>=2,H=F||M||L===-1,X=e.onSubstituteNode;e.onSubstituteNode=uu;let ne=e.onEmitNode;e.onEmitNode=hc;let ae=!1,Y=0,Ee,fe,te,de,me=new Map,ve=new Set,Pe,Oe,ie=!1,Ne=!1;return Kg(e,it);function it(B){if(B.isDeclarationFile||(de=void 0,ae=!!(mg(B)&32),!H&&!ae))return B;let Xe=Gr(B,ge,e);return Rv(Xe,e.readEmitHelpers()),Xe}function ze(B){switch(B.kind){case 129:return It()?void 0:B;default:return _i(B,oo)}}function ge(B){if(!(B.transformFlags&16777216)&&!(B.transformFlags&134234112))return B;switch(B.kind){case 263:return lr(B);case 231:return We(B);case 175:case 172:return I.fail("Use `classElementVisitor` instead.");case 303:return je(B);case 243:return st(B);case 260:return jt(B);case 169:return ar(B);case 208:return Or(B);case 277:return nn(B);case 81:return He(B);case 211:return ks(B);case 212:return no(B);case 224:case 225:return Vr(B,!1);case 226:return pt(B,!1);case 217:return $t(B,!1);case 213:return he(B);case 244:return ft(B);case 215:return wt(B);case 248:return _s(B);case 110:return $(B);case 262:case 218:return Gt(void 0,Me,B);case 176:case 174:case 177:case 178:return Gt(B,Me,B);default:return Me(B)}}function Me(B){return Gr(B,ge,e)}function Te(B){switch(B.kind){case 224:case 225:return Vr(B,!0);case 226:return pt(B,!0);case 356:return vt(B,!0);case 217:return $t(B,!0);default:return ge(B)}}function gt(B){switch(B.kind){case 298:return Gr(B,gt,e);case 233:return Xt(B);default:return ge(B)}}function Tt(B){switch(B.kind){case 210:case 209:return fr(B);default:return ge(B)}}function xe(B){switch(B.kind){case 176:return Gt(B,vn,B);case 177:case 178:case 174:return Gt(B,ts,B);case 172:return Gt(B,Cr,B);case 175:return Gt(B,ke,B);case 167:return pr(B);case 240:return B;default:return Yc(B)?ze(B):ge(B)}}function nt(B){switch(B.kind){case 167:return pr(B);default:return ge(B)}}function pe(B){switch(B.kind){case 172:return at(B);case 177:case 178:return xe(B);default:I.assertMissingNode(B,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function He(B){return!M||fa(B.parent)?B:ii(t.createIdentifier(""),B)}function qe(B){let Xe=us(B.left);if(Xe){let Et=dt(B.right,ge,At);return ii(n().createClassPrivateFieldInHelper(Xe.brandCheckIdentifier,Et),B)}return Gr(B,ge,e)}function je(B){return J_(B,Ue)&&(B=$_(e,B)),Gr(B,ge,e)}function st(B){let Xe=te;te=[];let Et=Gr(B,ge,e),ur=Pt(te)?[Et,...te]:Et;return te=Xe,ur}function jt(B){return J_(B,Ue)&&(B=$_(e,B)),Gr(B,ge,e)}function ar(B){return J_(B,Ue)&&(B=$_(e,B)),Gr(B,ge,e)}function Or(B){return J_(B,Ue)&&(B=$_(e,B)),Gr(B,ge,e)}function nn(B){return J_(B,Ue)&&(B=$_(e,B,!0,B.isExportEquals?"":"default")),Gr(B,ge,e)}function Ct(B){return Pt(fe)&&(Mf(B)?(fe.push(B.expression),B=t.updateParenthesizedExpression(B,t.inlineExpressions(fe))):(fe.push(B),B=t.inlineExpressions(fe)),fe=void 0),B}function pr(B){let Xe=dt(B.expression,ge,At);return t.updateComputedPropertyName(B,Ct(Xe))}function vn(B){return Pe?Ft(B,Pe):Me(B)}function ta(B){return!!(M||Pu(B)&&mg(B)&32)}function ts(B){if(I.assert(!Od(B)),!_f(B)||!ta(B))return Gr(B,xe,e);let Xe=us(B.name);if(I.assert(Xe,"Undeclared private name for property declaration."),!Xe.isValid)return B;let Et=hi(B);Et&&$r().push(t.createAssignment(Et,t.createFunctionExpression(Cn(B.modifiers,ur=>oo(ur)&&!bE(ur)&&!Dhe(ur)),B.asteriskToken,Et,void 0,kl(B.parameters,ge,e),void 0,Md(B.body,ge,e))))}function Gt(B,Xe,Et){if(B!==Oe){let ur=Oe;Oe=B;let cn=Xe(Et);return Oe=ur,cn}return Xe(Et)}function hi(B){I.assert(Ca(B.name));let Xe=us(B.name);if(I.assert(Xe,"Undeclared private name for property declaration."),Xe.kind==="m")return Xe.methodName;if(Xe.kind==="a"){if(Sv(B))return Xe.getterName;if(kh(B))return Xe.setterName}}function $a(){let B=Mr();return B.classThis??B.classConstructor??Pe?.name}function ui(B){let Xe=Rh(B),Et=I1(B),ur=B.name,cn=ur,wi=ur;if(po(ur)&&!Wh(ur.expression)){let Wc=Fz(ur);if(Wc)cn=t.updateComputedPropertyName(ur,dt(ur.expression,ge,At)),wi=t.updateComputedPropertyName(ur,Wc.left);else{let El=t.createTempVariable(i);Eo(El,ur.expression);let Hl=dt(ur.expression,ge,At),Fc=t.createAssignment(El,Hl);Eo(Fc,ur.expression),cn=t.updateComputedPropertyName(ur,Fc),wi=t.updateComputedPropertyName(ur,El)}}let Bn=dn(B.modifiers,ze,oo),an=jY(t,B,Bn,B.initializer);ii(an,B),qn(an,3072),Eo(an,Et);let ua=Vs(B)?$a()??t.createThis():t.createThis(),ma=fye(t,B,Bn,cn,ua);ii(ma,B),yu(ma,Xe),Eo(ma,Et);let sc=t.createModifiersFromModifierFlags(Ih(Bn)),To=_ye(t,B,sc,wi,ua);return ii(To,B),qn(To,3072),Eo(To,Et),h3([an,ma,To],pe,ou)}function Wn(B){if(ta(B)){let Xe=us(B.name);if(I.assert(Xe,"Undeclared private name for property declaration."),!Xe.isValid)return B;if(Xe.isStatic&&!M){let Et=dr(B,t.createThis());if(Et)return t.createClassStaticBlockDeclaration(t.createBlock([Et],!0))}return}return E&&!Vs(B)&&de?.data&&de.data.facts&16?t.updatePropertyDeclaration(B,dn(B.modifiers,ge,Yc),B.name,void 0,void 0,void 0):(J_(B,Ue)&&(B=$_(e,B)),t.updatePropertyDeclaration(B,dn(B.modifiers,ze,oo),dt(B.name,nt,su),void 0,void 0,dt(B.initializer,ge,At)))}function Gi(B){if(F&&!Kf(B)){let Xe=zr(B.name,!!B.initializer||S);if(Xe&&$r().push(...dye(Xe)),Vs(B)&&!M){let Et=dr(B,t.createThis());if(Et){let ur=t.createClassStaticBlockDeclaration(t.createBlock([Et]));return ii(ur,B),yu(ur,B),yu(Et,{pos:-1,end:-1}),FS(Et,void 0),mE(Et,void 0),ur}}return}return t.updatePropertyDeclaration(B,dn(B.modifiers,ze,oo),dt(B.name,nt,su),void 0,void 0,dt(B.initializer,ge,At))}function at(B){return I.assert(!Od(B),"Decorators should already have been transformed and elided."),_f(B)?Wn(B):Gi(B)}function It(){return L===-1||L===3&&!!de?.data&&!!(de.data.facts&16)}function Cr(B){return Kf(B)&&(It()||Pu(B)&&mg(B)&32)?ui(B):at(B)}function wn(){return!!Oe&&Pu(Oe)&&ox(Oe)&&Kf(al(Oe))}function Di(B){if(wn()){let Xe=Ll(B);Xe.kind===110&&ve.add(Xe)}}function Pi(B,Xe){return Xe=dt(Xe,ge,At),Di(Xe),da(B,Xe)}function da(B,Xe){switch(yu(Xe,NS(Xe,-1)),B.kind){case"a":return n().createClassPrivateFieldGetHelper(Xe,B.brandCheckIdentifier,B.kind,B.getterName);case"m":return n().createClassPrivateFieldGetHelper(Xe,B.brandCheckIdentifier,B.kind,B.methodName);case"f":return n().createClassPrivateFieldGetHelper(Xe,B.brandCheckIdentifier,B.kind,B.isStatic?B.variableName:void 0);case"untransformed":return I.fail("Access helpers should not be created for untransformed private elements");default:I.assertNever(B,"Unknown private element type")}}function ks(B){if(Ca(B.name)){let Xe=us(B.name);if(Xe)return Ot(ii(Pi(Xe,B.expression),B),B)}if(z&&Oe&&g_(B)&&Ye(B.name)&&T3(Oe)&&de?.data){let{classConstructor:Xe,superClassReference:Et,facts:ur}=de.data;if(ur&1)return er(B);if(Xe&&Et){let cn=t.createReflectGetCall(Et,t.createStringLiteralFromNode(B.name),Xe);return ii(cn,B.expression),Ot(cn,B.expression),cn}}return Gr(B,ge,e)}function no(B){if(z&&Oe&&g_(B)&&T3(Oe)&&de?.data){let{classConstructor:Xe,superClassReference:Et,facts:ur}=de.data;if(ur&1)return er(B);if(Xe&&Et){let cn=t.createReflectGetCall(Et,dt(B.argumentExpression,ge,At),Xe);return ii(cn,B.expression),Ot(cn,B.expression),cn}}return Gr(B,ge,e)}function Vr(B,Xe){if(B.operator===46||B.operator===47){let Et=Qo(B.operand);if(QO(Et)){let ur;if(ur=us(Et.name)){let cn=dt(Et.expression,ge,At);Di(cn);let{readExpression:wi,initializeExpression:Bn}=Qt(cn),an=Pi(ur,wi),ua=jS(B)||Xe?void 0:t.createTempVariable(i);return an=Ez(t,B,an,i,ua),an=Qe(ur,Bn||wi,an,64),ii(an,B),Ot(an,B),ua&&(an=t.createComma(an,ua),Ot(an,B)),an}}else if(z&&Oe&&g_(Et)&&T3(Oe)&&de?.data){let{classConstructor:ur,superClassReference:cn,facts:wi}=de.data;if(wi&1){let Bn=er(Et);return jS(B)?t.updatePrefixUnaryExpression(B,Bn):t.updatePostfixUnaryExpression(B,Bn)}if(ur&&cn){let Bn,an;if(ai(Et)?Ye(Et.name)&&(an=Bn=t.createStringLiteralFromNode(Et.name)):Wh(Et.argumentExpression)?an=Bn=Et.argumentExpression:(an=t.createTempVariable(i),Bn=t.createAssignment(an,dt(Et.argumentExpression,ge,At))),Bn&&an){let ua=t.createReflectGetCall(cn,an,ur);Ot(ua,Et);let ma=Xe?void 0:t.createTempVariable(i);return ua=Ez(t,B,ua,i,ma),ua=t.createReflectSetCall(cn,Bn,ua,ur),ii(ua,B),Ot(ua,B),ma&&(ua=t.createComma(ua,ma),Ot(ua,B)),ua}}}}return Gr(B,ge,e)}function _s(B){return t.updateForStatement(B,dt(B.initializer,Te,sm),dt(B.condition,ge,At),dt(B.incrementor,Te,At),Rf(B.statement,ge,e))}function ft(B){return t.updateExpressionStatement(B,dt(B.expression,Te,At))}function Qt(B){let Xe=Pc(B)?B:t.cloneNode(B);if(B.kind===110&&ve.has(B)&&ve.add(Xe),Wh(B))return{readExpression:Xe,initializeExpression:void 0};let Et=t.createTempVariable(i),ur=t.createAssignment(Et,Xe);return{readExpression:Et,initializeExpression:ur}}function he(B){var Xe;if(QO(B.expression)&&us(B.expression.name)){let{thisArg:Et,target:ur}=t.createCallBinding(B.expression,i,b);return gk(B)?t.updateCallChain(B,t.createPropertyAccessChain(dt(ur,ge,At),B.questionDotToken,"call"),void 0,void 0,[dt(Et,ge,At),...dn(B.arguments,ge,At)]):t.updateCallExpression(B,t.createPropertyAccessExpression(dt(ur,ge,At),"call"),void 0,[dt(Et,ge,At),...dn(B.arguments,ge,At)])}if(z&&Oe&&g_(B.expression)&&T3(Oe)&&((Xe=de?.data)!=null&&Xe.classConstructor)){let Et=t.createFunctionCallCall(dt(B.expression,ge,At),de.data.classConstructor,dn(B.arguments,ge,At));return ii(Et,B),Ot(Et,B),Et}return Gr(B,ge,e)}function wt(B){var Xe;if(QO(B.tag)&&us(B.tag.name)){let{thisArg:Et,target:ur}=t.createCallBinding(B.tag,i,b);return t.updateTaggedTemplateExpression(B,t.createCallExpression(t.createPropertyAccessExpression(dt(ur,ge,At),"bind"),void 0,[dt(Et,ge,At)]),void 0,dt(B.template,ge,BP))}if(z&&Oe&&g_(B.tag)&&T3(Oe)&&((Xe=de?.data)!=null&&Xe.classConstructor)){let Et=t.createFunctionBindCall(dt(B.tag,ge,At),de.data.classConstructor,[]);return ii(Et,B),Ot(Et,B),t.updateTaggedTemplateExpression(B,Et,void 0,dt(B.template,ge,BP))}return Gr(B,ge,e)}function oe(B){if(de&&me.set(al(B),de),M){if(S3(B)){let ur=dt(B.body.statements[0].expression,ge,At);return Yu(ur,!0)&&ur.left===ur.right?void 0:ur}if(BE(B))return dt(B.body.statements[0].expression,ge,At);l();let Xe=Gt(B,ur=>dn(ur,ge,fa),B.body.statements);Xe=t.mergeLexicalEnvironment(Xe,s());let Et=t.createImmediatelyInvokedArrowFunction(Xe);return ii(Qo(Et.expression),B),Mh(Qo(Et.expression),4),ii(Et,B),Ot(Et,B),Et}}function Ue(B){if(vu(B)&&!B.name){let Xe=mW(B);return Pt(Xe,BE)?!1:(M||!!mg(B))&&Pt(Xe,ur=>Al(ur)||_f(ur)||F&&BM(ur))}return!1}function pt(B,Xe){if(D1(B)){let Et=fe;fe=void 0,B=t.updateBinaryExpression(B,dt(B.left,Tt,At),B.operatorToken,dt(B.right,ge,At));let ur=Pt(fe)?t.inlineExpressions(PO([...fe,B])):B;return fe=Et,ur}if(Yu(B)){J_(B,Ue)&&(B=$_(e,B),I.assertNode(B,Yu));let Et=Ll(B.left,9);if(QO(Et)){let ur=us(Et.name);if(ur)return Ot(ii(Qe(ur,Et.expression,B.right,B.operatorToken.kind),B),B)}else if(z&&Oe&&g_(B.left)&&T3(Oe)&&de?.data){let{classConstructor:ur,superClassReference:cn,facts:wi}=de.data;if(wi&1)return t.updateBinaryExpression(B,er(B.left),B.operatorToken,dt(B.right,ge,At));if(ur&&cn){let Bn=Nc(B.left)?dt(B.left.argumentExpression,ge,At):Ye(B.left.name)?t.createStringLiteralFromNode(B.left.name):void 0;if(Bn){let an=dt(B.right,ge,At);if(v3(B.operatorToken.kind)){let ma=Bn;Wh(Bn)||(ma=t.createTempVariable(i),Bn=t.createAssignment(ma,Bn));let sc=t.createReflectGetCall(cn,ma,ur);ii(sc,B.left),Ot(sc,B.left),an=t.createBinaryExpression(sc,b3(B.operatorToken.kind),an),Ot(an,B)}let ua=Xe?void 0:t.createTempVariable(i);return ua&&(an=t.createAssignment(ua,an),Ot(ua,B)),an=t.createReflectSetCall(cn,Bn,an,ur),ii(an,B),Ot(an,B),ua&&(an=t.createComma(an,ua),Ot(an,B)),an}}}}return r8t(B)?qe(B):Gr(B,ge,e)}function vt(B,Xe){let Et=Xe?LM(B.elements,Te):LM(B.elements,ge,Te);return t.updateCommaListExpression(B,Et)}function $t(B,Xe){let Et=Xe?Te:ge,ur=dt(B.expression,Et,At);return t.updateParenthesizedExpression(B,ur)}function Qe(B,Xe,Et,ur){if(Xe=dt(Xe,ge,At),Et=dt(Et,ge,At),Di(Xe),v3(ur)){let{readExpression:cn,initializeExpression:wi}=Qt(Xe);Xe=wi||cn,Et=t.createBinaryExpression(da(B,cn),b3(ur),Et)}switch(yu(Xe,NS(Xe,-1)),B.kind){case"a":return n().createClassPrivateFieldSetHelper(Xe,B.brandCheckIdentifier,Et,B.kind,B.setterName);case"m":return n().createClassPrivateFieldSetHelper(Xe,B.brandCheckIdentifier,Et,B.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(Xe,B.brandCheckIdentifier,Et,B.kind,B.isStatic?B.variableName:void 0);case"untransformed":return I.fail("Access helpers should not be created for untransformed private elements");default:I.assertNever(B,"Unknown private element type")}}function Lt(B){return Cn(B.members,Ave)}function Rt(B){var Xe;let Et=0,ur=al(B);Ri(ur)&&P1(P,ur)&&(Et|=1),M&&(zZ(B)||yW(B))&&(Et|=2);let cn=!1,wi=!1,Bn=!1,an=!1;for(let ma of B.members)Vs(ma)?((ma.name&&(Ca(ma.name)||Kf(ma))&&M||Kf(ma)&&L===-1&&!B.name&&!((Xe=B.emitNode)!=null&&Xe.classThis))&&(Et|=2),(is(ma)||Al(ma))&&(W&&ma.transformFlags&16384&&(Et|=8,Et&1||(Et|=2)),z&&ma.transformFlags&134217728&&(Et&1||(Et|=6)))):D2(al(ma))||(Kf(ma)?(an=!0,Bn||(Bn=_f(ma))):_f(ma)?(Bn=!0,m.hasNodeCheckFlag(ma,262144)&&(Et|=2)):is(ma)&&(cn=!0,wi||(wi=!!ma.initializer)));return(N&&cn||E&&wi||M&&Bn||M&&an&&L===-1)&&(Et|=16),Et}function Xt(B){var Xe;if((((Xe=de?.data)==null?void 0:Xe.facts)||0)&4){let ur=t.createTempVariable(i,!0);return Mr().superClassReference=ur,t.updateExpressionWithTypeArguments(B,t.createAssignment(ur,dt(B.expression,ge,At)),void 0)}return Gr(B,ge,e)}function ut(B,Xe){var Et;let ur=Pe,cn=fe,wi=de;Pe=B,fe=void 0,Pr();let Bn=mg(B)&32;if(M||Bn){let ma=ls(B);if(ma&&Ye(ma))Wr().data.className=ma;else if((Et=B.emitNode)!=null&&Et.assignedName&&vo(B.emitNode.assignedName)){if(B.emitNode.assignedName.textSourceNode&&Ye(B.emitNode.assignedName.textSourceNode))Wr().data.className=B.emitNode.assignedName.textSourceNode;else if(m_(B.emitNode.assignedName.text,b)){let sc=t.createIdentifier(B.emitNode.assignedName.text);Wr().data.className=sc}}}if(M){let ma=Lt(B);Pt(ma)&&(Wr().data.weakSetName=Bl("instances",ma[0].name))}let an=Rt(B);an&&(Mr().facts=an),an&8&&Bt();let ua=Xe(B,an);return or(),I.assert(de===wi),Pe=ur,fe=cn,ua}function lr(B){return ut(B,In)}function In(B,Xe){var Et,ur;let cn;if(Xe&2)if(M&&((Et=B.emitNode)!=null&&Et.classThis))Mr().classConstructor=B.emitNode.classThis,cn=t.createAssignment(B.emitNode.classThis,t.getInternalName(B));else{let Fc=t.createTempVariable(i,!0);Mr().classConstructor=t.cloneNode(Fc),cn=t.createAssignment(Fc,t.getInternalName(B))}(ur=B.emitNode)!=null&&ur.classThis&&(Mr().classThis=B.emitNode.classThis);let wi=m.hasNodeCheckFlag(B,262144),Bn=Ai(B,32),an=Ai(B,2048),ua=dn(B.modifiers,ze,oo),ma=dn(B.heritageClauses,gt,U_),{members:sc,prologue:To}=Ke(B),Wc=[];if(cn&&$r().unshift(cn),Pt(fe)&&Wc.push(t.createExpressionStatement(t.inlineExpressions(fe))),E||M||mg(B)&32){let Fc=mW(B);Pt(Fc)&&kt(Wc,Fc,t.getInternalName(B))}Wc.length>0&&Bn&&an&&(ua=dn(ua,Fc=>vM(Fc)?void 0:Fc,oo),Wc.push(t.createExportAssignment(void 0,!1,t.getLocalName(B,!1,!0))));let El=Mr().classConstructor;wi&&El&&(yt(),Ee[jf(B)]=El);let Hl=t.updateClassDeclaration(B,ua,B.name,void 0,ma,sc);return Wc.unshift(Hl),To&&Wc.unshift(t.createExpressionStatement(To)),Wc}function We(B){return ut(B,qt)}function qt(B,Xe){var Et,ur,cn;let wi=!!(Xe&1),Bn=mW(B),an=m.hasNodeCheckFlag(B,262144),ua=m.hasNodeCheckFlag(B,32768),ma;function sc(){var Dp;if(M&&((Dp=B.emitNode)!=null&&Dp.classThis))return Mr().classConstructor=B.emitNode.classThis;let Ld=t.createTempVariable(ua?g:i,!0);return Mr().classConstructor=t.cloneNode(Ld),Ld}(Et=B.emitNode)!=null&&Et.classThis&&(Mr().classThis=B.emitNode.classThis),Xe&2&&(ma??(ma=sc()));let To=dn(B.modifiers,ze,oo),Wc=dn(B.heritageClauses,gt,U_),{members:El,prologue:Hl}=Ke(B),Fc=t.updateClassExpression(B,To,B.name,void 0,Wc,El),Gl=[];if(Hl&&Gl.push(Hl),(M||mg(B)&32)&&Pt(Bn,Dp=>Al(Dp)||_f(Dp)||F&&BM(Dp))||Pt(fe))if(wi)I.assertIsDefined(te,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Pt(fe)&&ti(te,Dt(fe,t.createExpressionStatement)),Pt(Bn)&&kt(te,Bn,((ur=B.emitNode)==null?void 0:ur.classThis)??t.getInternalName(B)),ma?Gl.push(t.createAssignment(ma,Fc)):M&&((cn=B.emitNode)!=null&&cn.classThis)?Gl.push(t.createAssignment(B.emitNode.classThis,Fc)):Gl.push(Fc);else{if(ma??(ma=sc()),an){yt();let Dp=t.cloneNode(ma);Dp.emitNode.autoGenerate.flags&=-9,Ee[jf(B)]=Dp}Gl.push(t.createAssignment(ma,Fc)),ti(Gl,fe),ti(Gl,kn(Bn,ma)),Gl.push(t.cloneNode(ma))}else Gl.push(Fc);return Gl.length>1&&(Mh(Fc,131072),Gl.forEach(Zp)),t.inlineExpressions(Gl)}function ke(B){if(!M)return Gr(B,ge,e)}function $(B){if(W&&Oe&&Al(Oe)&&de?.data){let{classThis:Xe,classConstructor:Et}=de.data;return Xe??Et??B}return B}function Ke(B){let Xe=!!(mg(B)&32);if(M||ae){for(let Bn of B.members)if(_f(Bn))if(ta(Bn))pl(Bn,Bn.name,Sr);else{let an=Wr();eC(an,Bn.name,{kind:"untransformed"})}if(M&&Pt(Lt(B))&&re(),It()){for(let Bn of B.members)if(Kf(Bn)){let an=t.getGeneratedPrivateNameForNode(Bn.name,void 0,"_accessor_storage");if(M||Xe&&Pu(Bn))pl(Bn,an,ji);else{let ua=Wr();eC(ua,an,{kind:"untransformed"})}}}}let Et=dn(B.members,xe,ou),ur;Pt(Et,ul)||(ur=Ft(void 0,B));let cn,wi;if(!M&&Pt(fe)){let Bn=t.createExpressionStatement(t.inlineExpressions(fe));if(Bn.transformFlags&134234112){let ua=t.createTempVariable(i),ma=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Bn]));cn=t.createAssignment(ua,ma),Bn=t.createExpressionStatement(t.createCallExpression(ua,void 0,[]))}let an=t.createBlock([Bn]);wi=t.createClassStaticBlockDeclaration(an),fe=void 0}if(ur||wi){let Bn,an=Ir(Et,S3),ua=Ir(Et,BE);Bn=Zr(Bn,an),Bn=Zr(Bn,ua),Bn=Zr(Bn,ur),Bn=Zr(Bn,wi);let ma=an||ua?Cn(Et,sc=>sc!==an&&sc!==ua):Et;Bn=ti(Bn,ma),Et=Ot(t.createNodeArray(Bn),B.members)}return{members:Et,prologue:cn}}function re(){let{weakSetName:B}=Wr().data;I.assert(B,"weakSetName should be set in private identifier environment"),$r().push(t.createAssignment(B,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Ft(B,Xe){if(B=dt(B,ge,ul),!de?.data||!(de.data.facts&16))return B;let Et=Dh(Xe),ur=!!(Et&&Ll(Et.expression).kind!==106),cn=kl(B?B.parameters:void 0,ge,e),wi=Le(Xe,B,ur);return wi?B?(I.assert(cn),t.updateConstructorDeclaration(B,void 0,cn,wi)):Zp(ii(Ot(t.createConstructorDeclaration(void 0,cn??[],wi),B||Xe),B)):B}function rr(B,Xe,Et,ur,cn,wi,Bn){let an=ur[cn],ua=Xe[an];if(ti(B,dn(Xe,ge,fa,Et,an-Et)),Et=an+1,Uk(ua)){let ma=[];rr(ma,ua.tryBlock.statements,0,ur,cn+1,wi,Bn);let sc=t.createNodeArray(ma);Ot(sc,ua.tryBlock.statements),B.push(t.updateTryStatement(ua,t.updateBlock(ua.tryBlock,ma),dt(ua.catchClause,ge,z2),dt(ua.finallyBlock,ge,Cs)))}else{for(ti(B,dn(Xe,ge,fa,an,1));Et<Xe.length;){let ma=Xe[Et];if(L_(al(ma),Bn))Et++;else break}ti(B,wi)}ti(B,dn(Xe,ge,fa,Et))}function Le(B,Xe,Et){var ur;let cn=BZ(B,!1,!1),wi=cn;S||(wi=Cn(wi,Hl=>!!Hl.initializer||Ca(Hl.name)||Ah(Hl)));let Bn=Lt(B),an=Pt(wi)||Pt(Bn);if(!Xe&&!an)return Md(void 0,ge,e);p();let ua=!Xe&&Et,ma=0,sc=[],To=[],Wc=t.createThis();if(cr(To,Bn,Wc),Xe){let Hl=Cn(cn,Gl=>L_(al(Gl),Xe)),Fc=Cn(wi,Gl=>!L_(al(Gl),Xe));kt(To,Hl,Wc),kt(To,Fc,Wc)}else kt(To,wi,Wc);if(Xe?.body){ma=t.copyPrologue(Xe.body.statements,sc,!1,ge);let Hl=dW(Xe.body.statements,ma);if(Hl.length)rr(sc,Xe.body.statements,ma,Hl,0,To,Xe);else{for(;ma<Xe.body.statements.length;){let Fc=Xe.body.statements[ma];if(L_(al(Fc),Xe))ma++;else break}ti(sc,To),ti(sc,dn(Xe.body.statements,ge,fa,ma))}}else ua&&sc.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),ti(sc,To);if(sc=t.mergeLexicalEnvironment(sc,s()),sc.length===0&&!Xe)return;let El=Xe?.body&&Xe.body.statements.length>=sc.length?Xe.body.multiLine??sc.length>0:sc.length>0;return Ot(t.createBlock(Ot(t.createNodeArray(sc),((ur=Xe?.body)==null?void 0:ur.statements)??B.members),El),Xe?.body)}function kt(B,Xe,Et){for(let ur of Xe){if(Vs(ur)&&!M)continue;let cn=dr(ur,Et);cn&&B.push(cn)}}function dr(B,Xe){let Et=Al(B)?Gt(B,oe,B):Kr(B,Xe);if(!Et)return;let ur=t.createExpressionStatement(Et);ii(ur,B),Mh(ur,Ao(B)&3072),yu(ur,B);let cn=al(B);return Da(cn)?(Eo(ur,cn),tM(ur)):Eo(ur,Fh(B)),FS(Et,void 0),mE(Et,void 0),Ah(cn)&&Mh(ur,3072),ur}function kn(B,Xe){let Et=[];for(let ur of B){let cn=Al(ur)?Gt(ur,oe,ur):Gt(ur,()=>Kr(ur,Xe),void 0);cn&&(Zp(cn),ii(cn,ur),Mh(cn,Ao(ur)&3072),Eo(cn,Fh(ur)),yu(cn,ur),Et.push(cn))}return Et}function Kr(B,Xe){var Et;let ur=Oe,cn=yn(B,Xe);return cn&&Pu(B)&&((Et=de?.data)!=null&&Et.facts)&&(ii(cn,B),Mh(cn,4),Eo(cn,I1(B.name)),me.set(al(B),de)),Oe=ur,cn}function yn(B,Xe){let Et=!S;J_(B,Ue)&&(B=$_(e,B));let ur=Ah(B)?t.getGeneratedPrivateNameForNode(B.name):po(B.name)&&!Wh(B.name.expression)?t.updateComputedPropertyName(B.name,t.getGeneratedNameForNode(B.name)):B.name;if(Pu(B)&&(Oe=B),Ca(ur)&&ta(B)){let Bn=us(ur);if(Bn)return Bn.kind==="f"?Bn.isStatic?Y3t(t,Bn.variableName,dt(B.initializer,ge,At)):Z3t(t,Xe,dt(B.initializer,ge,At),Bn.brandCheckIdentifier):void 0;I.fail("Undeclared private name for property declaration.")}if((Ca(ur)||Pu(B))&&!B.initializer)return;let cn=al(B);if(Ai(cn,64))return;let wi=dt(B.initializer,ge,At);if(L_(cn,cn.parent)&&Ye(ur)){let Bn=t.cloneNode(ur);wi?(Mf(wi)&&mM(wi.expression)&&V4(wi.expression.left,"___runInitializers")&&kE(wi.expression.right)&&e_(wi.expression.right.expression)&&(wi=wi.expression.left),wi=t.inlineExpressions([wi,Bn])):wi=Bn,qn(ur,3168),Eo(Bn,cn.name),qn(Bn,3072)}else wi??(wi=t.createVoidZero());if(Et||Ca(ur)){let Bn=Kk(t,Xe,ur,ur);return Mh(Bn,1024),t.createAssignment(Bn,wi)}else{let Bn=po(ur)?ur.expression:Ye(ur)?t.createStringLiteral(ka(ur.escapedText)):ur,an=t.createPropertyDescriptor({value:wi,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Xe,Bn,an)}}function yt(){Y&1||(Y|=1,e.enableSubstitution(80),Ee=[])}function Bt(){Y&2||(Y|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function cr(B,Xe,Et){if(!M||!Pt(Xe))return;let{weakSetName:ur}=Wr().data;I.assert(ur,"weakSetName should be set in private identifier environment"),B.push(t.createExpressionStatement(e8t(t,Et,ur)))}function er(B){return ai(B)?t.updatePropertyAccessExpression(B,t.createVoidZero(),B.name):t.updateElementAccessExpression(B,t.createVoidZero(),dt(B.argumentExpression,ge,At))}function zr(B,Xe){if(po(B)){let Et=Fz(B),ur=dt(B.expression,ge,At),cn=dg(ur),wi=Wh(cn);if(!(!!Et||Yu(cn)&&Xc(cn.left))&&!wi&&Xe){let an=t.getGeneratedNameForNode(B);return m.hasNodeCheckFlag(B,32768)?g(an):i(an),t.createAssignment(an,ur)}return wi||Ye(cn)?void 0:ur}}function Pr(){de={previous:de,data:void 0}}function or(){de=de?.previous}function Mr(){return I.assert(de),de.data??(de.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Wr(){return I.assert(de),de.privateEnv??(de.privateEnv=Fve({className:void 0,weakSetName:void 0}))}function $r(){return fe??(fe=[])}function Sr(B,Xe,Et,ur,cn,wi,Bn){Kf(B)?Vl(B,Xe,Et,ur,cn,wi,Bn):is(B)?ji(B,Xe,Et,ur,cn,wi,Bn):wl(B)?Is(B,Xe,Et,ur,cn,wi,Bn):mm(B)?Xs(B,Xe,Et,ur,cn,wi,Bn):v_(B)&&Ps(B,Xe,Et,ur,cn,wi,Bn)}function ji(B,Xe,Et,ur,cn,wi,Bn){if(cn){let an=I.checkDefined(Et.classThis??Et.classConstructor,"classConstructor should be set in private identifier environment"),ua=la(Xe);eC(ur,Xe,{kind:"f",isStatic:!0,brandCheckIdentifier:an,variableName:ua,isValid:wi})}else{let an=la(Xe);eC(ur,Xe,{kind:"f",isStatic:!1,brandCheckIdentifier:an,isValid:wi}),$r().push(t.createAssignment(an,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Is(B,Xe,Et,ur,cn,wi,Bn){let an=la(Xe),ua=cn?I.checkDefined(Et.classThis??Et.classConstructor,"classConstructor should be set in private identifier environment"):I.checkDefined(ur.data.weakSetName,"weakSetName should be set in private identifier environment");eC(ur,Xe,{kind:"m",methodName:an,brandCheckIdentifier:ua,isStatic:cn,isValid:wi})}function Xs(B,Xe,Et,ur,cn,wi,Bn){let an=la(Xe,"_get"),ua=cn?I.checkDefined(Et.classThis??Et.classConstructor,"classConstructor should be set in private identifier environment"):I.checkDefined(ur.data.weakSetName,"weakSetName should be set in private identifier environment");Bn?.kind==="a"&&Bn.isStatic===cn&&!Bn.getterName?Bn.getterName=an:eC(ur,Xe,{kind:"a",getterName:an,setterName:void 0,brandCheckIdentifier:ua,isStatic:cn,isValid:wi})}function Ps(B,Xe,Et,ur,cn,wi,Bn){let an=la(Xe,"_set"),ua=cn?I.checkDefined(Et.classThis??Et.classConstructor,"classConstructor should be set in private identifier environment"):I.checkDefined(ur.data.weakSetName,"weakSetName should be set in private identifier environment");Bn?.kind==="a"&&Bn.isStatic===cn&&!Bn.setterName?Bn.setterName=an:eC(ur,Xe,{kind:"a",getterName:void 0,setterName:an,brandCheckIdentifier:ua,isStatic:cn,isValid:wi})}function Vl(B,Xe,Et,ur,cn,wi,Bn){let an=la(Xe,"_get"),ua=la(Xe,"_set"),ma=cn?I.checkDefined(Et.classThis??Et.classConstructor,"classConstructor should be set in private identifier environment"):I.checkDefined(ur.data.weakSetName,"weakSetName should be set in private identifier environment");eC(ur,Xe,{kind:"a",getterName:an,setterName:ua,brandCheckIdentifier:ma,isStatic:cn,isValid:wi})}function pl(B,Xe,Et){let ur=Mr(),cn=Wr(),wi=JZ(cn,Xe),Bn=Pu(B),an=!t8t(Xe)&&wi===void 0;Et(B,Xe,ur,cn,Bn,an,wi)}function Bl(B,Xe,Et){let{className:ur}=Wr().data,cn=ur?{prefix:"_",node:ur,suffix:"_"}:"_",wi=typeof B=="object"?t.getGeneratedNameForNode(B,24,cn,Et):typeof B=="string"?t.createUniqueName(B,16,cn,Et):t.createTempVariable(void 0,!0,cn,Et);return m.hasNodeCheckFlag(Xe,32768)?g(wi):i(wi),wi}function la(B,Xe){let Et=r4(B);return Bl(Et?.substring(1)??B,B,Xe)}function us(B){let Xe=Mve(de,B);return Xe?.kind==="untransformed"?void 0:Xe}function lu(B){let Xe=t.getGeneratedNameForNode(B),Et=us(B.name);if(!Et)return Gr(B,ge,e);let ur=B.expression;return(e5(B)||g_(B)||!V2(B.expression))&&(ur=t.createTempVariable(i,!0),$r().push(t.createBinaryExpression(ur,64,dt(B.expression,ge,At)))),t.createAssignmentTargetWrapper(Xe,Qe(Et,ur,Xe,64))}function Kc(B){if(So(B)||kp(B))return fr(B);if(QO(B))return lu(B);if(z&&Oe&&g_(B)&&T3(Oe)&&de?.data){let{classConstructor:Xe,superClassReference:Et,facts:ur}=de.data;if(ur&1)return er(B);if(Xe&&Et){let cn=Nc(B)?dt(B.argumentExpression,ge,At):Ye(B.name)?t.createStringLiteralFromNode(B.name):void 0;if(cn){let wi=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(wi,t.createReflectSetCall(Et,cn,wi,Xe))}}}return Gr(B,ge,e)}function Ro(B){if(J_(B,Ue)&&(B=$_(e,B)),Yu(B,!0)){let Xe=Kc(B.left),Et=dt(B.right,ge,At);return t.updateBinaryExpression(B,Xe,B.operatorToken,Et)}return Kc(B)}function el(B){if(Qf(B.expression)){let Xe=Kc(B.expression);return t.updateSpreadElement(B,Xe)}return Gr(B,ge,e)}function Q_(B){if(FF(B)){if(gm(B))return el(B);if(!Ju(B))return Ro(B)}return Gr(B,ge,e)}function as(B){let Xe=dt(B.name,ge,su);if(Yu(B.initializer,!0)){let Et=Ro(B.initializer);return t.updatePropertyAssignment(B,Xe,Et)}if(Qf(B.initializer)){let Et=Kc(B.initializer);return t.updatePropertyAssignment(B,Xe,Et)}return Gr(B,ge,e)}function Gs(B){return J_(B,Ue)&&(B=$_(e,B)),Gr(B,ge,e)}function qo(B){if(Qf(B.expression)){let Xe=Kc(B.expression);return t.updateSpreadAssignment(B,Xe)}return Gr(B,ge,e)}function jo(B){return I.assertNode(B,IF),Lv(B)?qo(B):Jp(B)?Gs(B):xu(B)?as(B):Gr(B,ge,e)}function fr(B){return kp(B)?t.updateArrayLiteralExpression(B,dn(B.elements,Q_,At)):t.updateObjectLiteralExpression(B,dn(B.properties,jo,k0))}function hc(B,Xe,Et){let ur=al(Xe),cn=me.get(ur);if(cn){let wi=de,Bn=Ne;de=cn,Ne=ie,ie=!Al(ur)||!(mg(ur)&32),ne(B,Xe,Et),ie=Ne,Ne=Bn,de=wi;return}switch(Xe.kind){case 218:if(Bc(ur)||Ao(Xe)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let wi=de,Bn=Ne;de=void 0,Ne=ie,ie=!1,ne(B,Xe,Et),ie=Ne,Ne=Bn,de=wi;return}case 167:{let wi=de,Bn=ie;de=de?.previous,ie=Ne,ne(B,Xe,Et),ie=Bn,de=wi;return}}ne(B,Xe,Et)}function uu(B,Xe){return Xe=X(B,Xe),B===1?Cl(Xe):Xe}function Cl(B){switch(B.kind){case 80:return tl(B);case 110:return hp(B)}return B}function hp(B){if(Y&2&&de?.data&&!ve.has(B)){let{facts:Xe,classConstructor:Et,classThis:ur}=de.data,cn=ie?ur??Et:Et;if(cn)return Ot(ii(t.cloneNode(cn),B),B);if(Xe&1&&P)return t.createParenthesizedExpression(t.createVoidZero())}return B}function tl(B){return Pl(B)||B}function Pl(B){if(Y&1&&m.hasNodeCheckFlag(B,536870912)){let Xe=m.getReferencedValueDeclaration(B);if(Xe){let Et=Ee[Xe.id];if(Et){let ur=t.cloneNode(Et);return Eo(ur,B),yu(ur,B),ur}}}}}function Y3t(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function Z3t(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function e8t(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function t8t(e){return!yk(e)&&e.escapedText==="#constructor"}function r8t(e){return Ca(e.left)&&e.operatorToken.kind===103}function n8t(e){return is(e)&&Pu(e)}function T3(e){return Al(e)||n8t(e)}function $ve(e){let{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),l=Po(s),p=Bp(s,"strictNullChecks"),g,m;return{serializeTypeNode:(fe,te)=>x(fe,F,te),serializeTypeOfNode:(fe,te,de)=>x(fe,S,te,de),serializeParameterTypesOfNode:(fe,te,de)=>x(fe,P,te,de),serializeReturnTypeOfNode:(fe,te)=>x(fe,N,te)};function x(fe,te,de,me){let ve=g,Pe=m;g=fe.currentLexicalScope,m=fe.currentNameScope;let Oe=me===void 0?te(de):te(de,me);return g=ve,m=Pe,Oe}function b(fe,te){let de=E2(te.members,fe);return de.setAccessor&&Ume(de.setAccessor)||de.getAccessor&&dd(de.getAccessor)}function S(fe,te){switch(fe.kind){case 172:case 169:return F(fe.type);case 178:case 177:return F(b(fe,te));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function P(fe,te){let de=Ri(fe)?Dv(fe):Ss(fe)&&jm(fe.body)?fe:void 0,me=[];if(de){let ve=E(de,te),Pe=ve.length;for(let Oe=0;Oe<Pe;Oe++){let ie=ve[Oe];Oe===0&&Ye(ie.name)&&ie.name.escapedText==="this"||(ie.dotDotDotToken?me.push(F(bQ(ie.type))):me.push(S(ie,te)))}}return t.createArrayLiteralExpression(me)}function E(fe,te){if(te&&fe.kind===177){let{setAccessor:de}=E2(te.members,fe);if(de)return de.parameters}return fe.parameters}function N(fe){return Ss(fe)&&fe.type?F(fe.type):m4(fe)?t.createIdentifier("Promise"):t.createVoidZero()}function F(fe){if(fe===void 0)return t.createIdentifier("Object");switch(fe=p4(fe),fe.kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return fe.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return M(fe.literal);case 150:return t.createIdentifier("Number");case 163:return Ee("BigInt",7);case 155:return Ee("Symbol",2);case 183:return z(fe);case 193:return L(fe.types,!0);case 192:return L(fe.types,!1);case 194:return L([fe.trueType,fe.falseType],!1);case 198:if(fe.operator===148)return F(fe.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:break;case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return F(fe.type);default:return I.failBadSyntaxKind(fe)}return t.createIdentifier("Object")}function M(fe){switch(fe.kind){case 11:case 15:return t.createIdentifier("String");case 224:{let te=fe.operand;switch(te.kind){case 9:case 10:return M(te);default:return I.failBadSyntaxKind(te)}}case 9:return t.createIdentifier("Number");case 10:return Ee("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return I.failBadSyntaxKind(fe)}}function L(fe,te){let de;for(let me of fe){if(me=p4(me),me.kind===146){if(te)return t.createVoidZero();continue}if(me.kind===159){if(!te)return t.createIdentifier("Object");continue}if(me.kind===133)return t.createIdentifier("Object");if(!p&&(R1(me)&&me.literal.kind===106||me.kind===157))continue;let ve=F(me);if(Ye(ve)&&ve.escapedText==="Object")return ve;if(de){if(!W(de,ve))return t.createIdentifier("Object")}else de=ve}return de??t.createVoidZero()}function W(fe,te){return Xc(fe)?Xc(te):Ye(fe)?Ye(te)&&fe.escapedText===te.escapedText:ai(fe)?ai(te)&&W(fe.expression,te.expression)&&W(fe.name,te.name):kE(fe)?kE(te)&&e_(fe.expression)&&fe.expression.text==="0"&&e_(te.expression)&&te.expression.text==="0":vo(fe)?vo(te)&&fe.text===te.text:NN(fe)?NN(te)&&W(fe.expression,te.expression):Mf(fe)?Mf(te)&&W(fe.expression,te.expression):Wk(fe)?Wk(te)&&W(fe.condition,te.condition)&&W(fe.whenTrue,te.whenTrue)&&W(fe.whenFalse,te.whenFalse):Vn(fe)?Vn(te)&&fe.operatorToken.kind===te.operatorToken.kind&&W(fe.left,te.left)&&W(fe.right,te.right):!1}function z(fe){let te=i.getTypeReferenceSerializationKind(fe.typeName,m??g);switch(te){case 0:if(Br(fe,ve=>ve.parent&&R2(ve.parent)&&(ve.parent.trueType===ve||ve.parent.falseType===ve)))return t.createIdentifier("Object");let de=X(fe.typeName),me=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(me,de),"function"),void 0,me,void 0,t.createIdentifier("Object"));case 1:return ne(fe.typeName);case 2:return t.createVoidZero();case 4:return Ee("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return Ee("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return I.assertNever(te)}}function H(fe,te){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(fe),t.createStringLiteral("undefined")),te)}function X(fe){if(fe.kind===80){let me=ne(fe);return H(me,me)}if(fe.left.kind===80)return H(ne(fe.left),ne(fe));let te=X(fe.left),de=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(te.left,t.createStrictInequality(t.createAssignment(de,te.right),t.createVoidZero())),t.createPropertyAccessExpression(de,fe.right))}function ne(fe){switch(fe.kind){case 80:let te=Xo(Ot(US.cloneNode(fe),fe),fe.parent);return te.original=void 0,Xo(te,ds(g)),te;case 166:return ae(fe)}}function ae(fe){return t.createPropertyAccessExpression(ne(fe.left),fe.right)}function Y(fe){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(fe),"function"),void 0,t.createIdentifier(fe),void 0,t.createIdentifier("Object"))}function Ee(fe,te){return l<te?Y(fe):t.createIdentifier(fe)}}function Vve(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i}=e,s=e.getEmitResolver(),l=e.getCompilerOptions(),p=Po(l),g=e.onSubstituteNode;e.onSubstituteNode=nt;let m;return Kg(e,x);function x(je){let st=Gr(je,S,e);return Rv(st,e.readEmitHelpers()),st}function b(je){return qu(je)?void 0:je}function S(je){if(!(je.transformFlags&33554432))return je;switch(je.kind){case 170:return;case 263:return P(je);case 231:return z(je);case 176:return H(je);case 174:return ne(je);case 178:return Y(je);case 177:return ae(je);case 172:return Ee(je);case 169:return fe(je);default:return Gr(je,S,e)}}function P(je){if(!(P1(!0,je)||s4(!0,je)))return Gr(je,S,e);let st=P1(!0,je)?W(je,je.name):L(je,je.name);return em(st)}function E(je){return!!(je.transformFlags&536870912)}function N(je){return Pt(je,E)}function F(je){for(let st of je.members){if(!U2(st))continue;let jt=gW(st,je,!0);if(Pt(jt?.decorators,E)||Pt(jt?.parameters,N))return!0}return!1}function M(je,st){let jt=[];return me(jt,je,!1),me(jt,je,!0),F(je)&&(st=Ot(t.createNodeArray([...st,t.createClassStaticBlockDeclaration(t.createBlock(jt,!0))]),st),jt=void 0),{decorationStatements:jt,members:st}}function L(je,st){let jt=dn(je.modifiers,b,oo),ar=dn(je.heritageClauses,S,U_),Or=dn(je.members,S,ou),nn=[];({members:Or,decorationStatements:nn}=M(je,Or));let Ct=t.updateClassDeclaration(je,jt,st,void 0,ar,Or);return ti([Ct],nn)}function W(je,st){let jt=Ai(je,32),ar=Ai(je,2048),Or=dn(je.modifiers,It=>vM(It)||qu(It)?void 0:It,Yc),nn=Fh(je),Ct=gt(je),pr=p<2?t.getInternalName(je,!1,!0):t.getLocalName(je,!1,!0),vn=dn(je.heritageClauses,S,U_),ta=dn(je.members,S,ou),ts=[];({members:ta,decorationStatements:ts}=M(je,ta));let Gt=p>=9&&!!Ct&&Pt(ta,It=>is(It)&&Ai(It,256)||Al(It));Gt&&(ta=Ot(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(Ct,t.createThis()))])),...ta]),ta));let hi=t.createClassExpression(Or,st&&Xc(st)?void 0:st,void 0,vn,ta);ii(hi,je),Ot(hi,nn);let $a=Ct&&!Gt?t.createAssignment(Ct,hi):hi,ui=t.createVariableDeclaration(pr,void 0,void 0,$a);ii(ui,je);let Wn=t.createVariableDeclarationList([ui],1),Gi=t.createVariableStatement(void 0,Wn);ii(Gi,je),Ot(Gi,nn),yu(Gi,je);let at=[Gi];if(ti(at,ts),Ne(at,je),jt)if(ar){let It=t.createExportDefault(pr);at.push(It)}else{let It=t.createExternalModuleExport(t.getDeclarationName(je));at.push(It)}return at}function z(je){return t.updateClassExpression(je,dn(je.modifiers,b,oo),je.name,void 0,dn(je.heritageClauses,S,U_),dn(je.members,S,ou))}function H(je){return t.updateConstructorDeclaration(je,dn(je.modifiers,b,oo),dn(je.parameters,S,Da),dt(je.body,S,Cs))}function X(je,st){return je!==st&&(yu(je,st),Eo(je,Fh(st))),je}function ne(je){return X(t.updateMethodDeclaration(je,dn(je.modifiers,b,oo),je.asteriskToken,I.checkDefined(dt(je.name,S,su)),void 0,void 0,dn(je.parameters,S,Da),void 0,dt(je.body,S,Cs)),je)}function ae(je){return X(t.updateGetAccessorDeclaration(je,dn(je.modifiers,b,oo),I.checkDefined(dt(je.name,S,su)),dn(je.parameters,S,Da),void 0,dt(je.body,S,Cs)),je)}function Y(je){return X(t.updateSetAccessorDeclaration(je,dn(je.modifiers,b,oo),I.checkDefined(dt(je.name,S,su)),dn(je.parameters,S,Da),dt(je.body,S,Cs)),je)}function Ee(je){if(!(je.flags&33554432||Ai(je,128)))return X(t.updatePropertyDeclaration(je,dn(je.modifiers,b,oo),I.checkDefined(dt(je.name,S,su)),void 0,void 0,dt(je.initializer,S,At)),je)}function fe(je){let st=t.updateParameterDeclaration(je,pye(t,je.modifiers),je.dotDotDotToken,I.checkDefined(dt(je.name,S,vk)),void 0,void 0,dt(je.initializer,S,At));return st!==je&&(yu(st,je),Ot(st,Fh(je)),Eo(st,Fh(je)),qn(st.name,64)),st}function te(je){return V4(je.expression,"___metadata")}function de(je){if(!je)return;let{false:st,true:jt}=$7(je.decorators,te),ar=[];return ti(ar,Dt(st,ze)),ti(ar,li(je.parameters,ge)),ti(ar,Dt(jt,ze)),ar}function me(je,st,jt){ti(je,Dt(Oe(st,jt),ar=>t.createExpressionStatement(ar)))}function ve(je,st,jt){return n5(!0,je,jt)&&st===Vs(je)}function Pe(je,st){return Cn(je.members,jt=>ve(jt,st,je))}function Oe(je,st){let jt=Pe(je,st),ar;for(let Or of jt)ar=Zr(ar,ie(je,Or));return ar}function ie(je,st){let jt=gW(st,je,!0),ar=de(jt);if(!ar)return;let Or=xe(je,st),nn=Me(st,!Ai(st,128)),Ct=is(st)&&!Ah(st)?t.createVoidZero():t.createNull(),pr=n().createDecorateHelper(ar,Or,nn,Ct);return qn(pr,3072),Eo(pr,Fh(st)),pr}function Ne(je,st){let jt=it(st);jt&&je.push(ii(t.createExpressionStatement(jt),st))}function it(je){let st=qZ(je,!0),jt=de(st);if(!jt)return;let ar=m&&m[jf(je)],Or=p<2?t.getInternalName(je,!1,!0):t.getDeclarationName(je,!1,!0),nn=n().createDecorateHelper(jt,Or),Ct=t.createAssignment(Or,ar?t.createAssignment(ar,nn):nn);return qn(Ct,3072),Eo(Ct,Fh(je)),Ct}function ze(je){return I.checkDefined(dt(je.expression,S,At))}function ge(je,st){let jt;if(je){jt=[];for(let ar of je){let Or=n().createParamHelper(ze(ar),st);Ot(Or,ar.expression),qn(Or,3072),jt.push(Or)}}return jt}function Me(je,st){let jt=je.name;return Ca(jt)?t.createIdentifier(""):po(jt)?st&&!Wh(jt.expression)?t.getGeneratedNameForNode(jt):jt.expression:Ye(jt)?t.createStringLiteral(fi(jt)):t.cloneNode(jt)}function Te(){m||(e.enableSubstitution(80),m=[])}function gt(je){if(s.hasNodeCheckFlag(je,262144)){Te();let st=t.createUniqueName(je.name&&!Xc(je.name)?fi(je.name):"default");return m[jf(je)]=st,i(st),st}}function Tt(je){return t.createPropertyAccessExpression(t.getDeclarationName(je),"prototype")}function xe(je,st){return Vs(st)?t.getDeclarationName(je):Tt(je)}function nt(je,st){return st=g(je,st),je===1?pe(st):st}function pe(je){switch(je.kind){case 80:return He(je)}return je}function He(je){return qe(je)??je}function qe(je){if(m&&s.hasNodeCheckFlag(je,536870912)){let st=s.getReferencedValueDeclaration(je);if(st){let jt=m[st.id];if(jt){let ar=t.cloneNode(jt);return Eo(ar,je),yu(ar,je),ar}}}}}function Hve(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,p=Po(e.getCompilerOptions()),g,m,x,b,S,P;return Kg(e,E);function E($){g=void 0,P=!1;let Ke=Gr($,Y,e);return Rv(Ke,e.readEmitHelpers()),P&&(jk(Ke,32),P=!1),Ke}function N(){switch(m=void 0,x=void 0,b=void 0,g?.kind){case"class":m=g.classInfo;break;case"class-element":m=g.next.classInfo,x=g.classThis,b=g.classSuper;break;case"name":let $=g.next.next.next;$?.kind==="class-element"&&(m=$.next.classInfo,x=$.classThis,b=$.classSuper);break}}function F($){g={kind:"class",next:g,classInfo:$,savedPendingExpressions:S},S=void 0,N()}function M(){I.assert(g?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${g?.kind}' instead.`),S=g.savedPendingExpressions,g=g.next,N()}function L($){var Ke,re;I.assert(g?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${g?.kind}' instead.`),g={kind:"class-element",next:g},(Al($)||is($)&&Pu($))&&(g.classThis=(Ke=g.next.classInfo)==null?void 0:Ke.classThis,g.classSuper=(re=g.next.classInfo)==null?void 0:re.classSuper),N()}function W(){var $;I.assert(g?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${g?.kind}' instead.`),I.assert((($=g.next)==null?void 0:$.kind)==="class","Incorrect value for top.next.kind.",()=>{var Ke;return`Expected top.next.kind to be 'class' but got '${(Ke=g.next)==null?void 0:Ke.kind}' instead.`}),g=g.next,N()}function z(){I.assert(g?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${g?.kind}' instead.`),g={kind:"name",next:g},N()}function H(){I.assert(g?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${g?.kind}' instead.`),g=g.next,N()}function X(){g?.kind==="other"?(I.assert(!S),g.depth++):(g={kind:"other",next:g,depth:0,savedPendingExpressions:S},S=void 0,N())}function ne(){I.assert(g?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${g?.kind}' instead.`),g.depth>0?(I.assert(!S),g.depth--):(S=g.savedPendingExpressions,g=g.next,N())}function ae($){return!!($.transformFlags&33554432)||!!x&&!!($.transformFlags&16384)||!!x&&!!b&&!!($.transformFlags&134217728)}function Y($){if(!ae($))return $;switch($.kind){case 170:return I.fail("Use `modifierVisitor` instead.");case 263:return it($);case 231:return ze($);case 176:case 172:case 175:return I.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return nn($);case 226:return ts($,!1);case 303:return Gi($);case 260:return at($);case 208:return It($);case 277:return ft($);case 110:return je($);case 248:return vn($);case 244:return ta($);case 356:return hi($,!1);case 217:return Qt($,!1);case 355:return he($,!1);case 213:return st($);case 215:return jt($);case 224:case 225:return Gt($,!1);case 211:return ar($);case 212:return Or($);case 167:return Wn($);case 174:case 178:case 177:case 218:case 262:{X();let Ke=Gr($,Ee,e);return ne(),Ke}default:return Gr($,Ee,e)}}function Ee($){switch($.kind){case 170:return;default:return Y($)}}function fe($){switch($.kind){case 170:return;default:return $}}function te($){switch($.kind){case 176:return Te($);case 174:return xe($);case 177:return nt($);case 178:return pe($);case 172:return qe($);case 175:return He($);default:return Y($)}}function de($){switch($.kind){case 224:case 225:return Gt($,!0);case 226:return ts($,!0);case 356:return hi($,!0);case 217:return Qt($,!0);default:return Y($)}}function me($){let Ke=$.name&&Ye($.name)&&!Xc($.name)?fi($.name):$.name&&Ca($.name)&&!Xc($.name)?fi($.name).slice(1):$.name&&vo($.name)&&m_($.name.text,99)?$.name.text:Ri($)?"class":"member";return Sv($)&&(Ke=`get_${Ke}`),kh($)&&(Ke=`set_${Ke}`),$.name&&Ca($.name)&&(Ke=`private_${Ke}`),Vs($)&&(Ke=`static_${Ke}`),"_"+Ke}function ve($,Ke){return t.createUniqueName(`${me($)}_${Ke}`,24)}function Pe($,Ke){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration($,void 0,void 0,Ke)],1))}function Oe($){let Ke=t.createUniqueName("_metadata",48),re,Ft,rr=!1,Le=!1,kt=!1,dr,kn,Kr;if(oN(!1,$)){let yn=Pt($.members,yt=>(_f(yt)||Kf(yt))&&Pu(yt));dr=t.createUniqueName("_classThis",yn?24:48)}for(let yn of $.members){if(LP(yn)&&n5(!1,yn,$))if(Pu(yn)){if(!Ft){Ft=t.createUniqueName("_staticExtraInitializers",48);let yt=n().createRunInitializersHelper(dr??t.createThis(),Ft);Eo(yt,$.name??N0($)),kn??(kn=[]),kn.push(yt)}}else{if(!re){re=t.createUniqueName("_instanceExtraInitializers",48);let yt=n().createRunInitializersHelper(t.createThis(),re);Eo(yt,$.name??N0($)),Kr??(Kr=[]),Kr.push(yt)}re??(re=t.createUniqueName("_instanceExtraInitializers",48))}if(Al(yn)?BE(yn)||(rr=!0):is(yn)&&(Pu(yn)?rr||(rr=!!yn.initializer||Od(yn)):Le||(Le=!_Q(yn))),(_f(yn)||Kf(yn))&&Pu(yn)&&(kt=!0),Ft&&re&&rr&&Le&&kt)break}return{class:$,classThis:dr,metadataReference:Ke,instanceMethodExtraInitializersName:re,staticMethodExtraInitializersName:Ft,hasStaticInitializers:rr,hasNonAmbientInstanceFields:Le,hasStaticPrivateClassElements:kt,pendingStaticInitializers:kn,pendingInstanceInitializers:Kr}}function ie($){i(),!WZ($)&&P1(!1,$)&&($=vW(e,$,t.createStringLiteral("")));let Ke=t.getLocalName($,!1,!1,!0),re=Oe($),Ft=[],rr,Le,kt,dr,kn=!1,Kr=pt(qZ($,!1));Kr&&(re.classDecoratorsName=t.createUniqueName("_classDecorators",48),re.classDescriptorName=t.createUniqueName("_classDescriptor",48),re.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),I.assertIsDefined(re.classThis),Ft.push(Pe(re.classDecoratorsName,t.createArrayLiteralExpression(Kr)),Pe(re.classDescriptorName),Pe(re.classExtraInitializersName,t.createArrayLiteralExpression()),Pe(re.classThis)),re.hasStaticPrivateClassElements&&(kn=!0,P=!0));let yn=S5($.heritageClauses,96),yt=yn&&Yl(yn.types),Bt=yt&&dt(yt.expression,Y,At);if(Bt){re.classSuper=t.createUniqueName("_classSuper",48);let Wr=Ll(Bt),$r=vu(Wr)&&!Wr.name||Ic(Wr)&&!Wr.name||Bc(Wr)?t.createComma(t.createNumericLiteral(0),Bt):Bt;Ft.push(Pe(re.classSuper,$r));let Sr=t.updateExpressionWithTypeArguments(yt,re.classSuper,void 0),ji=t.updateHeritageClause(yn,[Sr]);dr=t.createNodeArray([ji])}let cr=re.classThis??t.createThis();F(re),rr=Zr(rr,We(re.metadataReference,re.classSuper));let er=$.members;if(er=dn(er,Wr=>ul(Wr)?Wr:te(Wr),ou),er=dn(er,Wr=>ul(Wr)?te(Wr):Wr,ou),S){let Wr;for(let $r of S){$r=dt($r,function ji(Is){if(!(Is.transformFlags&16384))return Is;switch(Is.kind){case 110:return Wr||(Wr=t.createUniqueName("_outerThis",16),Ft.unshift(Pe(Wr,t.createThis()))),Wr;default:return Gr(Is,ji,e)}},At);let Sr=t.createExpressionStatement($r);rr=Zr(rr,Sr)}S=void 0}if(M(),Pt(re.pendingInstanceInitializers)&&!Dv($)){let Wr=ge($,re);if(Wr){let $r=Dh($),Sr=!!($r&&Ll($r.expression).kind!==106),ji=[];if(Sr){let Xs=t.createSpreadElement(t.createIdentifier("arguments")),Ps=t.createCallExpression(t.createSuper(),void 0,[Xs]);ji.push(t.createExpressionStatement(Ps))}ti(ji,Wr);let Is=t.createBlock(ji,!0);kt=t.createConstructorDeclaration(void 0,[],Is)}}if(re.staticMethodExtraInitializersName&&Ft.push(Pe(re.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),re.instanceMethodExtraInitializersName&&Ft.push(Pe(re.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),re.memberInfos&&Lu(re.memberInfos,(Wr,$r)=>{Vs($r)&&(Ft.push(Pe(Wr.memberDecoratorsName)),Wr.memberInitializersName&&Ft.push(Pe(Wr.memberInitializersName,t.createArrayLiteralExpression())),Wr.memberExtraInitializersName&&Ft.push(Pe(Wr.memberExtraInitializersName,t.createArrayLiteralExpression())),Wr.memberDescriptorName&&Ft.push(Pe(Wr.memberDescriptorName)))}),re.memberInfos&&Lu(re.memberInfos,(Wr,$r)=>{Vs($r)||(Ft.push(Pe(Wr.memberDecoratorsName)),Wr.memberInitializersName&&Ft.push(Pe(Wr.memberInitializersName,t.createArrayLiteralExpression())),Wr.memberExtraInitializersName&&Ft.push(Pe(Wr.memberExtraInitializersName,t.createArrayLiteralExpression())),Wr.memberDescriptorName&&Ft.push(Pe(Wr.memberDescriptorName)))}),rr=ti(rr,re.staticNonFieldDecorationStatements),rr=ti(rr,re.nonStaticNonFieldDecorationStatements),rr=ti(rr,re.staticFieldDecorationStatements),rr=ti(rr,re.nonStaticFieldDecorationStatements),re.classDescriptorName&&re.classDecoratorsName&&re.classExtraInitializersName&&re.classThis){rr??(rr=[]);let Wr=t.createPropertyAssignment("value",cr),$r=t.createObjectLiteralExpression([Wr]),Sr=t.createAssignment(re.classDescriptorName,$r),ji=t.createPropertyAccessExpression(cr,"name"),Is=n().createESDecorateHelper(t.createNull(),Sr,re.classDecoratorsName,{kind:"class",name:ji,metadata:re.metadataReference},t.createNull(),re.classExtraInitializersName),Xs=t.createExpressionStatement(Is);Eo(Xs,N0($)),rr.push(Xs);let Ps=t.createPropertyAccessExpression(re.classDescriptorName,"value"),Vl=t.createAssignment(re.classThis,Ps),pl=t.createAssignment(Ke,Vl);rr.push(t.createExpressionStatement(pl))}if(rr.push(qt(cr,re.metadataReference)),Pt(re.pendingStaticInitializers)){for(let Wr of re.pendingStaticInitializers){let $r=t.createExpressionStatement(Wr);Eo($r,I1(Wr)),Le=Zr(Le,$r)}re.pendingStaticInitializers=void 0}if(re.classExtraInitializersName){let Wr=n().createRunInitializersHelper(cr,re.classExtraInitializersName),$r=t.createExpressionStatement(Wr);Eo($r,$.name??N0($)),Le=Zr(Le,$r)}rr&&Le&&!re.hasStaticInitializers&&(ti(rr,Le),Le=void 0);let zr=rr&&t.createClassStaticBlockDeclaration(t.createBlock(rr,!0));zr&&kn&&rM(zr,32);let Pr=Le&&t.createClassStaticBlockDeclaration(t.createBlock(Le,!0));if(zr||kt||Pr){let Wr=[],$r=er.findIndex(BE);zr?(ti(Wr,er,0,$r+1),Wr.push(zr),ti(Wr,er,$r+1)):ti(Wr,er),kt&&Wr.push(kt),Pr&&Wr.push(Pr),er=Ot(t.createNodeArray(Wr),er)}let or=s(),Mr;if(Kr){Mr=t.createClassExpression(void 0,void 0,void 0,dr,er),re.classThis&&(Mr=Bve(t,Mr,re.classThis));let Wr=t.createVariableDeclaration(Ke,void 0,void 0,Mr),$r=t.createVariableDeclarationList([Wr]),Sr=re.classThis?t.createAssignment(Ke,re.classThis):Ke;Ft.push(t.createVariableStatement(void 0,$r),t.createReturnStatement(Sr))}else Mr=t.createClassExpression(void 0,$.name,void 0,dr,er),Ft.push(t.createReturnStatement(Mr));if(kn){jk(Mr,32);for(let Wr of Mr.members)(_f(Wr)||Kf(Wr))&&Pu(Wr)&&jk(Wr,32)}return ii(Mr,$),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(Ft,or))}function Ne($){return P1(!1,$)||s4(!1,$)}function it($){if(Ne($)){let Ke=[],re=al($,Ri)??$,Ft=re.name?t.createStringLiteralFromNode(re.name):t.createStringLiteral("default"),rr=Ai($,32),Le=Ai($,2048);if($.name||($=vW(e,$,Ft)),rr&&Le){let kt=ie($);if($.name){let dr=t.createVariableDeclaration(t.getLocalName($),void 0,void 0,kt);ii(dr,$);let kn=t.createVariableDeclarationList([dr],1),Kr=t.createVariableStatement(void 0,kn);Ke.push(Kr);let yn=t.createExportDefault(t.getDeclarationName($));ii(yn,$),yu(yn,Rh($)),Eo(yn,N0($)),Ke.push(yn)}else{let dr=t.createExportDefault(kt);ii(dr,$),yu(dr,Rh($)),Eo(dr,N0($)),Ke.push(dr)}}else{I.assertIsDefined($.name,"A class declaration that is not a default export must have a name.");let kt=ie($),dr=rr?cr=>vE(cr)?void 0:fe(cr):fe,kn=dn($.modifiers,dr,oo),Kr=t.getLocalName($,!1,!0),yn=t.createVariableDeclaration(Kr,void 0,void 0,kt);ii(yn,$);let yt=t.createVariableDeclarationList([yn],1),Bt=t.createVariableStatement(kn,yt);if(ii(Bt,$),yu(Bt,Rh($)),Ke.push(Bt),rr){let cr=t.createExternalModuleExport(Kr);ii(cr,$),Ke.push(cr)}}return em(Ke)}else{let Ke=dn($.modifiers,fe,oo),re=dn($.heritageClauses,Y,U_);F(void 0);let Ft=dn($.members,te,ou);return M(),t.updateClassDeclaration($,Ke,$.name,void 0,re,Ft)}}function ze($){if(Ne($)){let Ke=ie($);return ii(Ke,$),Ke}else{let Ke=dn($.modifiers,fe,oo),re=dn($.heritageClauses,Y,U_);F(void 0);let Ft=dn($.members,te,ou);return M(),t.updateClassExpression($,Ke,$.name,void 0,re,Ft)}}function ge($,Ke){if(Pt(Ke.pendingInstanceInitializers)){let re=[];return re.push(t.createExpressionStatement(t.inlineExpressions(Ke.pendingInstanceInitializers))),Ke.pendingInstanceInitializers=void 0,re}}function Me($,Ke,re,Ft,rr,Le){let kt=Ft[rr],dr=Ke[kt];if(ti($,dn(Ke,Y,fa,re,kt-re)),Uk(dr)){let kn=[];Me(kn,dr.tryBlock.statements,0,Ft,rr+1,Le);let Kr=t.createNodeArray(kn);Ot(Kr,dr.tryBlock.statements),$.push(t.updateTryStatement(dr,t.updateBlock(dr.tryBlock,kn),dt(dr.catchClause,Y,z2),dt(dr.finallyBlock,Y,Cs)))}else ti($,dn(Ke,Y,fa,kt,1)),ti($,Le);ti($,dn(Ke,Y,fa,kt+1))}function Te($){L($);let Ke=dn($.modifiers,fe,oo),re=dn($.parameters,Y,Da),Ft;if($.body&&m){let rr=ge(m.class,m);if(rr){let Le=[],kt=t.copyPrologue($.body.statements,Le,!1,Y),dr=dW($.body.statements,kt);dr.length>0?Me(Le,$.body.statements,kt,dr,0,rr):(ti(Le,rr),ti(Le,dn($.body.statements,Y,fa))),Ft=t.createBlock(Le,!0),ii(Ft,$.body),Ot(Ft,$.body)}}return Ft??(Ft=dt($.body,Y,Cs)),W(),t.updateConstructorDeclaration($,Ke,re,Ft)}function gt($,Ke){return $!==Ke&&(yu($,Ke),Eo($,N0(Ke))),$}function Tt($,Ke,re){let Ft,rr,Le,kt,dr,kn;if(!Ke){let yt=dn($.modifiers,fe,oo);return z(),rr=ui($.name),H(),{modifiers:yt,referencedName:Ft,name:rr,initializersName:Le,descriptorName:kn,thisArg:dr}}let Kr=pt(gW($,Ke.class,!1)),yn=dn($.modifiers,fe,oo);if(Kr){let yt=ve($,"decorators"),Bt=t.createArrayLiteralExpression(Kr),cr=t.createAssignment(yt,Bt),er={memberDecoratorsName:yt};Ke.memberInfos??(Ke.memberInfos=new Map),Ke.memberInfos.set($,er),S??(S=[]),S.push(cr);let zr=LP($)||Kf($)?Vs($)?Ke.staticNonFieldDecorationStatements??(Ke.staticNonFieldDecorationStatements=[]):Ke.nonStaticNonFieldDecorationStatements??(Ke.nonStaticNonFieldDecorationStatements=[]):is($)&&!Kf($)?Vs($)?Ke.staticFieldDecorationStatements??(Ke.staticFieldDecorationStatements=[]):Ke.nonStaticFieldDecorationStatements??(Ke.nonStaticFieldDecorationStatements=[]):I.fail(),Pr=mm($)?"getter":v_($)?"setter":wl($)?"method":Kf($)?"accessor":is($)?"field":I.fail(),or;if(Ye($.name)||Ca($.name))or={computed:!1,name:$.name};else if(Oh($.name))or={computed:!0,name:t.createStringLiteralFromNode($.name)};else{let Wr=$.name.expression;Oh(Wr)&&!Ye(Wr)?or={computed:!0,name:t.createStringLiteralFromNode(Wr)}:(z(),{referencedName:Ft,name:rr}=$a($.name),or={computed:!0,name:Ft},H())}let Mr={kind:Pr,name:or,static:Vs($),private:Ca($.name),access:{get:is($)||mm($)||wl($),set:is($)||v_($)},metadata:Ke.metadataReference};if(LP($)){let Wr=Vs($)?Ke.staticMethodExtraInitializersName:Ke.instanceMethodExtraInitializersName;I.assertIsDefined(Wr);let $r;_f($)&&re&&($r=re($,dn(yn,Is=>_i(Is,G4),oo)),er.memberDescriptorName=kn=ve($,"descriptor"),$r=t.createAssignment(kn,$r));let Sr=n().createESDecorateHelper(t.createThis(),$r??t.createNull(),yt,Mr,t.createNull(),Wr),ji=t.createExpressionStatement(Sr);Eo(ji,N0($)),zr.push(ji)}else if(is($)){Le=er.memberInitializersName??(er.memberInitializersName=ve($,"initializers")),kt=er.memberExtraInitializersName??(er.memberExtraInitializersName=ve($,"extraInitializers")),Vs($)&&(dr=Ke.classThis);let Wr;_f($)&&Ah($)&&re&&(Wr=re($,void 0),er.memberDescriptorName=kn=ve($,"descriptor"),Wr=t.createAssignment(kn,Wr));let $r=n().createESDecorateHelper(Kf($)?t.createThis():t.createNull(),Wr??t.createNull(),yt,Mr,Le,kt),Sr=t.createExpressionStatement($r);Eo(Sr,N0($)),zr.push(Sr)}}return rr===void 0&&(z(),rr=ui($.name),H()),!Pt(yn)&&(wl($)||is($))&&qn(rr,1024),{modifiers:yn,referencedName:Ft,name:rr,initializersName:Le,extraInitializersName:kt,descriptorName:kn,thisArg:dr}}function xe($){L($);let{modifiers:Ke,name:re,descriptorName:Ft}=Tt($,m,Qe);if(Ft)return W(),gt(ut(Ke,re,Ft),$);{let rr=dn($.parameters,Y,Da),Le=dt($.body,Y,Cs);return W(),gt(t.updateMethodDeclaration($,Ke,$.asteriskToken,re,void 0,void 0,rr,void 0,Le),$)}}function nt($){L($);let{modifiers:Ke,name:re,descriptorName:Ft}=Tt($,m,Lt);if(Ft)return W(),gt(lr(Ke,re,Ft),$);{let rr=dn($.parameters,Y,Da),Le=dt($.body,Y,Cs);return W(),gt(t.updateGetAccessorDeclaration($,Ke,re,rr,void 0,Le),$)}}function pe($){L($);let{modifiers:Ke,name:re,descriptorName:Ft}=Tt($,m,Rt);if(Ft)return W(),gt(In(Ke,re,Ft),$);{let rr=dn($.parameters,Y,Da),Le=dt($.body,Y,Cs);return W(),gt(t.updateSetAccessorDeclaration($,Ke,re,rr,Le),$)}}function He($){L($);let Ke;if(BE($))Ke=Gr($,Y,e);else if(S3($)){let re=x;x=void 0,Ke=Gr($,Y,e),x=re}else if($=Gr($,Y,e),Ke=$,m&&(m.hasStaticInitializers=!0,Pt(m.pendingStaticInitializers))){let re=[];for(let Le of m.pendingStaticInitializers){let kt=t.createExpressionStatement(Le);Eo(kt,I1(Le)),re.push(kt)}let Ft=t.createBlock(re,!0);Ke=[t.createClassStaticBlockDeclaration(Ft),Ke],m.pendingStaticInitializers=void 0}return W(),Ke}function qe($){J_($,Ct)&&($=$_(e,$,pr($.initializer))),L($),I.assert(!_Q($),"Not yet implemented.");let{modifiers:Ke,name:re,initializersName:Ft,extraInitializersName:rr,descriptorName:Le,thisArg:kt}=Tt($,m,Ah($)?Xt:void 0);i();let dr=dt($.initializer,Y,At);Ft&&(dr=n().createRunInitializersHelper(kt??t.createThis(),Ft,dr??t.createVoidZero())),Vs($)&&m&&dr&&(m.hasStaticInitializers=!0);let kn=s();if(Pt(kn)&&(dr=t.createImmediatelyInvokedArrowFunction([...kn,t.createReturnStatement(dr)])),m&&(Vs($)?(dr=Ue(m,!0,dr),rr&&(m.pendingStaticInitializers??(m.pendingStaticInitializers=[]),m.pendingStaticInitializers.push(n().createRunInitializersHelper(m.classThis??t.createThis(),rr)))):(dr=Ue(m,!1,dr),rr&&(m.pendingInstanceInitializers??(m.pendingInstanceInitializers=[]),m.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),rr))))),W(),Ah($)&&Le){let Kr=Rh($),yn=I1($),yt=$.name,Bt=yt,cr=yt;if(po(yt)&&!Wh(yt.expression)){let Mr=Fz(yt);if(Mr)Bt=t.updateComputedPropertyName(yt,dt(yt.expression,Y,At)),cr=t.updateComputedPropertyName(yt,Mr.left);else{let Wr=t.createTempVariable(l);Eo(Wr,yt.expression);let $r=dt(yt.expression,Y,At),Sr=t.createAssignment(Wr,$r);Eo(Sr,yt.expression),Bt=t.updateComputedPropertyName(yt,Sr),cr=t.updateComputedPropertyName(yt,Wr)}}let er=dn(Ke,Mr=>Mr.kind!==129?Mr:void 0,oo),zr=jY(t,$,er,dr);ii(zr,$),qn(zr,3072),Eo(zr,yn),Eo(zr.name,$.name);let Pr=lr(er,Bt,Le);ii(Pr,$),yu(Pr,Kr),Eo(Pr,yn);let or=In(er,cr,Le);return ii(or,$),qn(or,3072),Eo(or,yn),[zr,Pr,or]}return gt(t.updatePropertyDeclaration($,Ke,re,void 0,void 0,dr),$)}function je($){return x??$}function st($){if(g_($.expression)&&x){let Ke=dt($.expression,Y,At),re=dn($.arguments,Y,At),Ft=t.createFunctionCallCall(Ke,x,re);return ii(Ft,$),Ot(Ft,$),Ft}return Gr($,Y,e)}function jt($){if(g_($.tag)&&x){let Ke=dt($.tag,Y,At),re=t.createFunctionBindCall(Ke,x,[]);ii(re,$),Ot(re,$);let Ft=dt($.template,Y,BP);return t.updateTaggedTemplateExpression($,re,void 0,Ft)}return Gr($,Y,e)}function ar($){if(g_($)&&Ye($.name)&&x&&b){let Ke=t.createStringLiteralFromNode($.name),re=t.createReflectGetCall(b,Ke,x);return ii(re,$.expression),Ot(re,$.expression),re}return Gr($,Y,e)}function Or($){if(g_($)&&x&&b){let Ke=dt($.argumentExpression,Y,At),re=t.createReflectGetCall(b,Ke,x);return ii(re,$.expression),Ot(re,$.expression),re}return Gr($,Y,e)}function nn($){J_($,Ct)&&($=$_(e,$,pr($.initializer)));let Ke=t.updateParameterDeclaration($,void 0,$.dotDotDotToken,dt($.name,Y,vk),void 0,void 0,dt($.initializer,Y,At));return Ke!==$&&(yu(Ke,$),Ot(Ke,Fh($)),Eo(Ke,Fh($)),qn(Ke.name,64)),Ke}function Ct($){return vu($)&&!$.name&&Ne($)}function pr($){let Ke=Ll($);return vu(Ke)&&!Ke.name&&!P1(!1,Ke)}function vn($){return t.updateForStatement($,dt($.initializer,de,sm),dt($.condition,Y,At),dt($.incrementor,de,At),Rf($.statement,Y,e))}function ta($){return Gr($,de,e)}function ts($,Ke){if(D1($)){let re=_s($.left),Ft=dt($.right,Y,At);return t.updateBinaryExpression($,re,$.operatorToken,Ft)}if(Yu($)){if(J_($,Ct))return $=$_(e,$,pr($.right)),Gr($,Y,e);if(g_($.left)&&x&&b){let re=Nc($.left)?dt($.left.argumentExpression,Y,At):Ye($.left.name)?t.createStringLiteralFromNode($.left.name):void 0;if(re){let Ft=dt($.right,Y,At);if(v3($.operatorToken.kind)){let Le=re;Wh(re)||(Le=t.createTempVariable(l),re=t.createAssignment(Le,re));let kt=t.createReflectGetCall(b,Le,x);ii(kt,$.left),Ot(kt,$.left),Ft=t.createBinaryExpression(kt,b3($.operatorToken.kind),Ft),Ot(Ft,$)}let rr=Ke?void 0:t.createTempVariable(l);return rr&&(Ft=t.createAssignment(rr,Ft),Ot(rr,$)),Ft=t.createReflectSetCall(b,re,Ft,x),ii(Ft,$),Ot(Ft,$),rr&&(Ft=t.createComma(Ft,rr),Ot(Ft,$)),Ft}}}if($.operatorToken.kind===28){let re=dt($.left,de,At),Ft=dt($.right,Ke?de:Y,At);return t.updateBinaryExpression($,re,$.operatorToken,Ft)}return Gr($,Y,e)}function Gt($,Ke){if($.operator===46||$.operator===47){let re=Qo($.operand);if(g_(re)&&x&&b){let Ft=Nc(re)?dt(re.argumentExpression,Y,At):Ye(re.name)?t.createStringLiteralFromNode(re.name):void 0;if(Ft){let rr=Ft;Wh(Ft)||(rr=t.createTempVariable(l),Ft=t.createAssignment(rr,Ft));let Le=t.createReflectGetCall(b,rr,x);ii(Le,$),Ot(Le,$);let kt=Ke?void 0:t.createTempVariable(l);return Le=Ez(t,$,Le,l,kt),Le=t.createReflectSetCall(b,Ft,Le,x),ii(Le,$),Ot(Le,$),kt&&(Le=t.createComma(Le,kt),Ot(Le,$)),Le}}}return Gr($,Y,e)}function hi($,Ke){let re=Ke?LM($.elements,de):LM($.elements,Y,de);return t.updateCommaListExpression($,re)}function $a($){if(Oh($)||Ca($)){let Le=t.createStringLiteralFromNode($),kt=dt($,Y,su);return{referencedName:Le,name:kt}}if(Oh($.expression)&&!Ye($.expression)){let Le=t.createStringLiteralFromNode($.expression),kt=dt($,Y,su);return{referencedName:Le,name:kt}}let Ke=t.getGeneratedNameForNode($);l(Ke);let re=n().createPropKeyHelper(dt($.expression,Y,At)),Ft=t.createAssignment(Ke,re),rr=t.updateComputedPropertyName($,oe(Ft));return{referencedName:Ke,name:rr}}function ui($){return po($)?Wn($):dt($,Y,su)}function Wn($){let Ke=dt($.expression,Y,At);return Wh(Ke)||(Ke=oe(Ke)),t.updateComputedPropertyName($,Ke)}function Gi($){return J_($,Ct)&&($=$_(e,$,pr($.initializer))),Gr($,Y,e)}function at($){return J_($,Ct)&&($=$_(e,$,pr($.initializer))),Gr($,Y,e)}function It($){return J_($,Ct)&&($=$_(e,$,pr($.initializer))),Gr($,Y,e)}function Cr($){if(So($)||kp($))return _s($);if(g_($)&&x&&b){let Ke=Nc($)?dt($.argumentExpression,Y,At):Ye($.name)?t.createStringLiteralFromNode($.name):void 0;if(Ke){let re=t.createTempVariable(void 0),Ft=t.createAssignmentTargetWrapper(re,t.createReflectSetCall(b,Ke,re,x));return ii(Ft,$),Ot(Ft,$),Ft}}return Gr($,Y,e)}function wn($){if(Yu($,!0)){J_($,Ct)&&($=$_(e,$,pr($.right)));let Ke=Cr($.left),re=dt($.right,Y,At);return t.updateBinaryExpression($,Ke,$.operatorToken,re)}else return Cr($)}function Di($){if(Qf($.expression)){let Ke=Cr($.expression);return t.updateSpreadElement($,Ke)}return Gr($,Y,e)}function Pi($){return I.assertNode($,FF),gm($)?Di($):Ju($)?Gr($,Y,e):wn($)}function da($){let Ke=dt($.name,Y,su);if(Yu($.initializer,!0)){let re=wn($.initializer);return t.updatePropertyAssignment($,Ke,re)}if(Qf($.initializer)){let re=Cr($.initializer);return t.updatePropertyAssignment($,Ke,re)}return Gr($,Y,e)}function ks($){return J_($,Ct)&&($=$_(e,$,pr($.objectAssignmentInitializer))),Gr($,Y,e)}function no($){if(Qf($.expression)){let Ke=Cr($.expression);return t.updateSpreadAssignment($,Ke)}return Gr($,Y,e)}function Vr($){return I.assertNode($,IF),Lv($)?no($):Jp($)?ks($):xu($)?da($):Gr($,Y,e)}function _s($){if(kp($)){let Ke=dn($.elements,Pi,At);return t.updateArrayLiteralExpression($,Ke)}else{let Ke=dn($.properties,Vr,k0);return t.updateObjectLiteralExpression($,Ke)}}function ft($){return J_($,Ct)&&($=$_(e,$,pr($.expression))),Gr($,Y,e)}function Qt($,Ke){let re=Ke?de:Y,Ft=dt($.expression,re,At);return t.updateParenthesizedExpression($,Ft)}function he($,Ke){let re=Ke?de:Y,Ft=dt($.expression,re,At);return t.updatePartiallyEmittedExpression($,Ft)}function wt($,Ke){return Pt($)&&(Ke?Mf(Ke)?($.push(Ke.expression),Ke=t.updateParenthesizedExpression(Ke,t.inlineExpressions($))):($.push(Ke),Ke=t.inlineExpressions($)):Ke=t.inlineExpressions($)),Ke}function oe($){let Ke=wt(S,$);return I.assertIsDefined(Ke),Ke!==$&&(S=void 0),Ke}function Ue($,Ke,re){let Ft=wt(Ke?$.pendingStaticInitializers:$.pendingInstanceInitializers,re);return Ft!==re&&(Ke?$.pendingStaticInitializers=void 0:$.pendingInstanceInitializers=void 0),Ft}function pt($){if(!$)return;let Ke=[];return ti(Ke,Dt($.decorators,vt)),Ke}function vt($){let Ke=dt($.expression,Y,At);qn(Ke,3072);let re=Ll(Ke);if(Lc(re)){let{target:Ft,thisArg:rr}=t.createCallBinding(Ke,l,p,!0);return t.restoreOuterExpressions(Ke,t.createFunctionBindCall(Ft,rr,[]))}return Ke}function $t($,Ke,re,Ft,rr,Le,kt){let dr=t.createFunctionExpression(re,Ft,void 0,void 0,Le,void 0,kt??t.createBlock([]));ii(dr,$),Eo(dr,N0($)),qn(dr,3072);let kn=rr==="get"||rr==="set"?rr:void 0,Kr=t.createStringLiteralFromNode(Ke,void 0),yn=n().createSetFunctionNameHelper(dr,Kr,kn),yt=t.createPropertyAssignment(t.createIdentifier(rr),yn);return ii(yt,$),Eo(yt,N0($)),qn(yt,3072),yt}function Qe($,Ke){return t.createObjectLiteralExpression([$t($,$.name,Ke,$.asteriskToken,"value",dn($.parameters,Y,Da),dt($.body,Y,Cs))])}function Lt($,Ke){return t.createObjectLiteralExpression([$t($,$.name,Ke,void 0,"get",[],dt($.body,Y,Cs))])}function Rt($,Ke){return t.createObjectLiteralExpression([$t($,$.name,Ke,void 0,"set",dn($.parameters,Y,Da),dt($.body,Y,Cs))])}function Xt($,Ke){return t.createObjectLiteralExpression([$t($,$.name,Ke,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode($.name)))])),$t($,$.name,Ke,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode($.name)),t.createIdentifier("value")))]))])}function ut($,Ke,re){return $=dn($,Ft=>bE(Ft)?Ft:void 0,oo),t.createGetAccessorDeclaration($,Ke,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(re,t.createIdentifier("value")))]))}function lr($,Ke,re){return $=dn($,Ft=>bE(Ft)?Ft:void 0,oo),t.createGetAccessorDeclaration($,Ke,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(re,t.createIdentifier("get")),t.createThis(),[]))]))}function In($,Ke,re){return $=dn($,Ft=>bE(Ft)?Ft:void 0,oo),t.createSetAccessorDeclaration($,Ke,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(re,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function We($,Ke){let re=t.createVariableDeclaration($,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[Ke?ke(Ke):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([re],2))}function qt($,Ke){let re=t.createObjectDefinePropertyCall($,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:Ke},!0));return qn(t.createIfStatement(Ke,t.createExpressionStatement(re)),1)}function ke($){return t.createBinaryExpression(t.createElementAccessExpression($,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function Gve(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,p=e.getEmitResolver(),g=e.getCompilerOptions(),m=Po(g),x=0,b=0,S,P,E,N,F=[],M=0,L=e.onEmitNode,W=e.onSubstituteNode;return e.onEmitNode=ta,e.onSubstituteNode=ts,Kg(e,z);function z(at){if(at.isDeclarationFile)return at;H(1,!1),H(2,!fQ(at,g));let It=Gr(at,te,e);return Rv(It,e.readEmitHelpers()),It}function H(at,It){M=It?M|at:M&~at}function X(at){return(M&at)!==0}function ne(){return!X(1)}function ae(){return X(2)}function Y(at,It,Cr){let wn=at&~M;if(wn){H(wn,!0);let Di=It(Cr);return H(wn,!1),Di}return It(Cr)}function Ee(at){return Gr(at,te,e)}function fe(at){switch(at.kind){case 218:case 262:case 174:case 177:case 178:case 176:return at;case 169:case 208:case 260:break;case 80:if(N&&p.isArgumentsLocalBinding(at))return N;break}return Gr(at,fe,e)}function te(at){if(!(at.transformFlags&256))return N?fe(at):at;switch(at.kind){case 134:return;case 223:return Ne(at);case 174:return Y(3,ze,at);case 262:return Y(3,Te,at);case 218:return Y(3,gt,at);case 219:return Y(1,Tt,at);case 211:return P&&ai(at)&&at.expression.kind===108&&P.add(at.name.escapedText),Gr(at,te,e);case 212:return P&&at.expression.kind===108&&(E=!0),Gr(at,te,e);case 177:return Y(3,ge,at);case 178:return Y(3,Me,at);case 176:return Y(3,it,at);case 263:case 231:return Y(3,Ee,at);default:return Gr(at,te,e)}}function de(at){if(Nme(at))switch(at.kind){case 243:return ve(at);case 248:return ie(at);case 249:return Pe(at);case 250:return Oe(at);case 299:return me(at);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return Gr(at,de,e);default:return I.assertNever(at,"Unhandled node.")}return te(at)}function me(at){let It=new Set;xe(at.variableDeclaration,It);let Cr;if(It.forEach((wn,Di)=>{S.has(Di)&&(Cr||(Cr=new Set(S)),Cr.delete(Di))}),Cr){let wn=S;S=Cr;let Di=Gr(at,de,e);return S=wn,Di}else return Gr(at,de,e)}function ve(at){if(nt(at.declarationList)){let It=pe(at.declarationList,!1);return It?t.createExpressionStatement(It):void 0}return Gr(at,te,e)}function Pe(at){return t.updateForInStatement(at,nt(at.initializer)?pe(at.initializer,!0):I.checkDefined(dt(at.initializer,te,sm)),I.checkDefined(dt(at.expression,te,At)),Rf(at.statement,de,e))}function Oe(at){return t.updateForOfStatement(at,dt(at.awaitModifier,te,uY),nt(at.initializer)?pe(at.initializer,!0):I.checkDefined(dt(at.initializer,te,sm)),I.checkDefined(dt(at.expression,te,At)),Rf(at.statement,de,e))}function ie(at){let It=at.initializer;return t.updateForStatement(at,nt(It)?pe(It,!1):dt(at.initializer,te,sm),dt(at.condition,te,At),dt(at.incrementor,te,At),Rf(at.statement,de,e))}function Ne(at){return ne()?Gr(at,te,e):ii(Ot(t.createYieldExpression(void 0,dt(at.expression,te,At)),at),at)}function it(at){let It=N;N=void 0;let Cr=t.updateConstructorDeclaration(at,dn(at.modifiers,te,oo),kl(at.parameters,te,e),jt(at));return N=It,Cr}function ze(at){let It,Cr=eu(at),wn=N;N=void 0;let Di=t.updateMethodDeclaration(at,dn(at.modifiers,te,Yc),at.asteriskToken,at.name,void 0,void 0,It=Cr&2?Or(at):kl(at.parameters,te,e),void 0,Cr&2?nn(at,It):jt(at));return N=wn,Di}function ge(at){let It=N;N=void 0;let Cr=t.updateGetAccessorDeclaration(at,dn(at.modifiers,te,Yc),at.name,kl(at.parameters,te,e),void 0,jt(at));return N=It,Cr}function Me(at){let It=N;N=void 0;let Cr=t.updateSetAccessorDeclaration(at,dn(at.modifiers,te,Yc),at.name,kl(at.parameters,te,e),jt(at));return N=It,Cr}function Te(at){let It,Cr=N;N=void 0;let wn=eu(at),Di=t.updateFunctionDeclaration(at,dn(at.modifiers,te,Yc),at.asteriskToken,at.name,void 0,It=wn&2?Or(at):kl(at.parameters,te,e),void 0,wn&2?nn(at,It):Md(at.body,te,e));return N=Cr,Di}function gt(at){let It,Cr=N;N=void 0;let wn=eu(at),Di=t.updateFunctionExpression(at,dn(at.modifiers,te,oo),at.asteriskToken,at.name,void 0,It=wn&2?Or(at):kl(at.parameters,te,e),void 0,wn&2?nn(at,It):Md(at.body,te,e));return N=Cr,Di}function Tt(at){let It,Cr=eu(at);return t.updateArrowFunction(at,dn(at.modifiers,te,oo),void 0,It=Cr&2?Or(at):kl(at.parameters,te,e),void 0,at.equalsGreaterThanToken,Cr&2?nn(at,It):Md(at.body,te,e))}function xe({name:at},It){if(Ye(at))It.add(at.escapedText);else for(let Cr of at.elements)Ju(Cr)||xe(Cr,It)}function nt(at){return!!at&&mp(at)&&!(at.flags&7)&&at.declarations.some(st)}function pe(at,It){He(at);let Cr=k4(at);return Cr.length===0?It?dt(t.converters.convertToAssignmentElementTarget(at.declarations[0].name),te,At):void 0:t.inlineExpressions(Dt(Cr,je))}function He(at){Ge(at.declarations,qe)}function qe({name:at}){if(Ye(at))l(at);else for(let It of at.elements)Ju(It)||qe(It)}function je(at){let It=Eo(t.createAssignment(t.converters.convertToAssignmentElementTarget(at.name),at.initializer),at);return I.checkDefined(dt(It,te,At))}function st({name:at}){if(Ye(at))return S.has(at.escapedText);for(let It of at.elements)if(!Ju(It)&&st(It))return!0;return!1}function jt(at){I.assertIsDefined(at.body);let It=P,Cr=E;P=new Set,E=!1;let wn=Md(at.body,te,e),Di=al(at,Dc);if(m>=2&&(p.hasNodeCheckFlag(at,256)||p.hasNodeCheckFlag(at,128))&&(eu(Di)&3)!==3){if(vn(),P.size){let da=bW(t,p,at,P);F[Wo(da)]=!0;let ks=wn.statements.slice();kv(ks,[da]),wn=t.updateBlock(wn,ks)}E&&(p.hasNodeCheckFlag(at,256)?gE(wn,pz):p.hasNodeCheckFlag(at,128)&&gE(wn,uz))}return P=It,E=Cr,wn}function ar(){I.assert(N);let at=t.createVariableDeclaration(N,void 0,void 0,t.createIdentifier("arguments")),It=t.createVariableStatement(void 0,[at]);return Zp(It),Mh(It,2097152),It}function Or(at){if(qM(at.parameters))return kl(at.parameters,te,e);let It=[];for(let wn of at.parameters){if(wn.initializer||wn.dotDotDotToken){if(at.kind===219){let Pi=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));It.push(Pi)}break}let Di=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(wn.name,8));It.push(Di)}let Cr=t.createNodeArray(It);return Ot(Cr,at.parameters),Cr}function nn(at,It){let Cr=qM(at.parameters)?void 0:kl(at.parameters,te,e);i();let Di=al(at,Ss).type,Pi=m<2?pr(Di):void 0,da=at.kind===219,ks=N,Vr=p.hasNodeCheckFlag(at,512)&&!N;Vr&&(N=t.createUniqueName("arguments"));let _s;if(Cr)if(da){let pt=[];I.assert(It.length<=at.parameters.length);for(let vt=0;vt<at.parameters.length;vt++){I.assert(vt<It.length);let $t=at.parameters[vt],Qe=It[vt];if(I.assertNode(Qe.name,Ye),$t.initializer||$t.dotDotDotToken){I.assert(vt===It.length-1),pt.push(t.createSpreadElement(Qe.name));break}pt.push(Qe.name)}_s=t.createArrayLiteralExpression(pt)}else _s=t.createIdentifier("arguments");let ft=S;S=new Set;for(let pt of at.parameters)xe(pt,S);let Qt=P,he=E;da||(P=new Set,E=!1);let wt=ae(),oe=Ct(at.body);oe=t.updateBlock(oe,t.mergeLexicalEnvironment(oe.statements,s()));let Ue;if(da){if(Ue=n().createAwaiterHelper(wt,_s,Pi,Cr,oe),Vr){let pt=t.converters.convertToFunctionBlock(Ue);Ue=t.updateBlock(pt,t.mergeLexicalEnvironment(pt.statements,[ar()]))}}else{let pt=[];pt.push(t.createReturnStatement(n().createAwaiterHelper(wt,_s,Pi,Cr,oe)));let vt=m>=2&&(p.hasNodeCheckFlag(at,256)||p.hasNodeCheckFlag(at,128));if(vt&&(vn(),P.size)){let Qe=bW(t,p,at,P);F[Wo(Qe)]=!0,kv(pt,[Qe])}Vr&&kv(pt,[ar()]);let $t=t.createBlock(pt,!0);Ot($t,at.body),vt&&E&&(p.hasNodeCheckFlag(at,256)?gE($t,pz):p.hasNodeCheckFlag(at,128)&&gE($t,uz)),Ue=$t}return S=ft,da||(P=Qt,E=he,N=ks),Ue}function Ct(at,It){return Cs(at)?t.updateBlock(at,dn(at.statements,de,fa,It)):t.converters.convertToFunctionBlock(I.checkDefined(dt(at,de,vq)))}function pr(at){let It=at&&t5(at);if(It&&Of(It)){let Cr=p.getTypeReferenceSerializationKind(It);if(Cr===1||Cr===0)return It}}function vn(){x&1||(x|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function ta(at,It,Cr){if(x&1&&Wn(It)){let wn=(p.hasNodeCheckFlag(It,128)?128:0)|(p.hasNodeCheckFlag(It,256)?256:0);if(wn!==b){let Di=b;b=wn,L(at,It,Cr),b=Di;return}}else if(x&&F[Wo(It)]){let wn=b;b=0,L(at,It,Cr),b=wn;return}L(at,It,Cr)}function ts(at,It){return It=W(at,It),at===1&&b?Gt(It):It}function Gt(at){switch(at.kind){case 211:return hi(at);case 212:return $a(at);case 213:return ui(at)}return at}function hi(at){return at.expression.kind===108?Ot(t.createPropertyAccessExpression(t.createUniqueName("_super",48),at.name),at):at}function $a(at){return at.expression.kind===108?Gi(at.argumentExpression,at):at}function ui(at){let It=at.expression;if(g_(It)){let Cr=ai(It)?hi(It):$a(It);return t.createCallExpression(t.createPropertyAccessExpression(Cr,"call"),void 0,[t.createThis(),...at.arguments])}return at}function Wn(at){let It=at.kind;return It===263||It===176||It===174||It===177||It===178}function Gi(at,It){return b&256?Ot(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[at]),"value"),It):Ot(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[at]),It)}}function bW(e,t,n,i){let s=t.hasNodeCheckFlag(n,256),l=[];return i.forEach((p,g)=>{let m=ka(g),x=[];x.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,qn(e.createPropertyAccessExpression(qn(e.createSuper(),8),m),8)))),s&&x.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(qn(e.createPropertyAccessExpression(qn(e.createSuper(),8),m),8),e.createIdentifier("v"))))),l.push(e.createPropertyAssignment(m,e.createObjectLiteralExpression(x)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(l,!0)]))],2))}function Kve(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,p=e.getEmitResolver(),g=e.getCompilerOptions(),m=Po(g),x=e.onEmitNode;e.onEmitNode=ks;let b=e.onSubstituteNode;e.onSubstituteNode=no;let S=!1,P=0,E,N,F=0,M=0,L,W,z,H,X=[];return Kg(e,fe);function ne(oe,Ue){return M!==(M&~oe|Ue)}function ae(oe,Ue){let pt=M;return M=(M&~oe|Ue)&3,pt}function Y(oe){M=oe}function Ee(oe){W=Zr(W,t.createVariableDeclaration(oe))}function fe(oe){if(oe.isDeclarationFile)return oe;L=oe;let Ue=Tt(oe);return Rv(Ue,e.readEmitHelpers()),L=void 0,W=void 0,Ue}function te(oe){return Oe(oe,!1)}function de(oe){return Oe(oe,!0)}function me(oe){if(oe.kind!==134)return oe}function ve(oe,Ue,pt,vt){if(ne(pt,vt)){let $t=ae(pt,vt),Qe=oe(Ue);return Y($t),Qe}return oe(Ue)}function Pe(oe){return Gr(oe,te,e)}function Oe(oe,Ue){if(!(oe.transformFlags&128))return oe;switch(oe.kind){case 223:return ie(oe);case 229:return Ne(oe);case 253:return it(oe);case 256:return ze(oe);case 210:return Me(oe);case 226:return nt(oe,Ue);case 356:return pe(oe,Ue);case 299:return He(oe);case 243:return qe(oe);case 260:return je(oe);case 246:case 247:case 249:return ve(Pe,oe,0,2);case 250:return Or(oe,void 0);case 248:return ve(jt,oe,0,2);case 222:return ar(oe);case 176:return ve(hi,oe,2,1);case 174:return ve(Wn,oe,2,1);case 177:return ve($a,oe,2,1);case 178:return ve(ui,oe,2,1);case 262:return ve(Gi,oe,2,1);case 218:return ve(It,oe,2,1);case 219:return ve(at,oe,2,0);case 169:return ts(oe);case 244:return Te(oe);case 217:return gt(oe,Ue);case 215:return xe(oe);case 211:return z&&ai(oe)&&oe.expression.kind===108&&z.add(oe.name.escapedText),Gr(oe,te,e);case 212:return z&&oe.expression.kind===108&&(H=!0),Gr(oe,te,e);case 263:case 231:return ve(Pe,oe,2,1);default:return Gr(oe,te,e)}}function ie(oe){return E&2&&E&1?ii(Ot(t.createYieldExpression(void 0,n().createAwaitHelper(dt(oe.expression,te,At))),oe),oe):Gr(oe,te,e)}function Ne(oe){if(E&2&&E&1){if(oe.asteriskToken){let Ue=dt(I.checkDefined(oe.expression),te,At);return ii(Ot(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(oe,oe.asteriskToken,Ot(n().createAsyncDelegatorHelper(Ot(n().createAsyncValuesHelper(Ue),Ue)),Ue)))),oe),oe)}return ii(Ot(t.createYieldExpression(void 0,pr(oe.expression?dt(oe.expression,te,At):t.createVoidZero())),oe),oe)}return Gr(oe,te,e)}function it(oe){return E&2&&E&1?t.updateReturnStatement(oe,pr(oe.expression?dt(oe.expression,te,At):t.createVoidZero())):Gr(oe,te,e)}function ze(oe){if(E&2){let Ue=xQ(oe);return Ue.kind===250&&Ue.awaitModifier?Or(Ue,oe):t.restoreEnclosingLabel(dt(Ue,te,fa,t.liftToBlock),oe)}return Gr(oe,te,e)}function ge(oe){let Ue,pt=[];for(let vt of oe)if(vt.kind===305){Ue&&(pt.push(t.createObjectLiteralExpression(Ue)),Ue=void 0);let $t=vt.expression;pt.push(dt($t,te,At))}else Ue=Zr(Ue,vt.kind===303?t.createPropertyAssignment(vt.name,dt(vt.initializer,te,At)):dt(vt,te,k0));return Ue&&pt.push(t.createObjectLiteralExpression(Ue)),pt}function Me(oe){if(oe.transformFlags&65536){let Ue=ge(oe.properties);Ue.length&&Ue[0].kind!==210&&Ue.unshift(t.createObjectLiteralExpression());let pt=Ue[0];if(Ue.length>1){for(let vt=1;vt<Ue.length;vt++)pt=n().createAssignHelper([pt,Ue[vt]]);return pt}else return n().createAssignHelper(Ue)}return Gr(oe,te,e)}function Te(oe){return Gr(oe,de,e)}function gt(oe,Ue){return Gr(oe,Ue?de:te,e)}function Tt(oe){let Ue=ae(2,fQ(oe,g)?0:1);S=!1;let pt=Gr(oe,te,e),vt=ya(pt.statements,W&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(W))]),$t=t.updateSourceFile(pt,Ot(t.createNodeArray(vt),oe.statements));return Y(Ue),$t}function xe(oe){return UZ(e,oe,te,L,Ee,0)}function nt(oe,Ue){return D1(oe)&&xM(oe.left)?tC(oe,te,e,1,!Ue):oe.operatorToken.kind===28?t.updateBinaryExpression(oe,dt(oe.left,de,At),oe.operatorToken,dt(oe.right,Ue?de:te,At)):Gr(oe,te,e)}function pe(oe,Ue){if(Ue)return Gr(oe,de,e);let pt;for(let $t=0;$t<oe.elements.length;$t++){let Qe=oe.elements[$t],Lt=dt(Qe,$t<oe.elements.length-1?de:te,At);(pt||Lt!==Qe)&&(pt||(pt=oe.elements.slice(0,$t)),pt.push(Lt))}let vt=pt?Ot(t.createNodeArray(pt),oe.elements):oe.elements;return t.updateCommaListExpression(oe,vt)}function He(oe){if(oe.variableDeclaration&&Os(oe.variableDeclaration.name)&&oe.variableDeclaration.name.transformFlags&65536){let Ue=t.getGeneratedNameForNode(oe.variableDeclaration.name),pt=t.updateVariableDeclaration(oe.variableDeclaration,oe.variableDeclaration.name,void 0,void 0,Ue),vt=H2(pt,te,e,1),$t=dt(oe.block,te,Cs);return Pt(vt)&&($t=t.updateBlock($t,[t.createVariableStatement(void 0,vt),...$t.statements])),t.updateCatchClause(oe,t.updateVariableDeclaration(oe.variableDeclaration,Ue,void 0,void 0,void 0),$t)}return Gr(oe,te,e)}function qe(oe){if(Ai(oe,32)){let Ue=S;S=!0;let pt=Gr(oe,te,e);return S=Ue,pt}return Gr(oe,te,e)}function je(oe){if(S){let Ue=S;S=!1;let pt=st(oe,!0);return S=Ue,pt}return st(oe,!1)}function st(oe,Ue){return Os(oe.name)&&oe.name.transformFlags&65536?H2(oe,te,e,1,void 0,Ue):Gr(oe,te,e)}function jt(oe){return t.updateForStatement(oe,dt(oe.initializer,de,sm),dt(oe.condition,te,At),dt(oe.incrementor,de,At),Rf(oe.statement,te,e))}function ar(oe){return Gr(oe,de,e)}function Or(oe,Ue){let pt=ae(0,2);(oe.initializer.transformFlags&65536||XI(oe.initializer)&&xM(oe.initializer))&&(oe=nn(oe));let vt=oe.awaitModifier?vn(oe,Ue,pt):t.restoreEnclosingLabel(Gr(oe,te,e),Ue);return Y(pt),vt}function nn(oe){let Ue=Qo(oe.initializer);if(mp(Ue)||XI(Ue)){let pt,vt,$t=t.createTempVariable(void 0),Qe=[PY(t,Ue,$t)];return Cs(oe.statement)?(ti(Qe,oe.statement.statements),pt=oe.statement,vt=oe.statement.statements):oe.statement&&(Zr(Qe,oe.statement),pt=oe.statement,vt=oe.statement),t.updateForOfStatement(oe,oe.awaitModifier,Ot(t.createVariableDeclarationList([Ot(t.createVariableDeclaration($t),oe.initializer)],1),oe.initializer),oe.expression,Ot(t.createBlock(Ot(t.createNodeArray(Qe),vt),!0),pt))}return oe}function Ct(oe,Ue,pt){let vt=t.createTempVariable(l),$t=t.createAssignment(vt,Ue),Qe=t.createExpressionStatement($t);Eo(Qe,oe.expression);let Lt=t.createAssignment(pt,t.createFalse()),Rt=t.createExpressionStatement(Lt);Eo(Rt,oe.expression);let Xt=[Qe,Rt],ut=PY(t,oe.initializer,vt);Xt.push(dt(ut,te,fa));let lr,In,We=Rf(oe.statement,te,e);return Cs(We)?(ti(Xt,We.statements),lr=We,In=We.statements):Xt.push(We),Ot(t.createBlock(Ot(t.createNodeArray(Xt),In),!0),lr)}function pr(oe){return E&1?t.createYieldExpression(void 0,n().createAwaitHelper(oe)):t.createAwaitExpression(oe)}function vn(oe,Ue,pt){let vt=dt(oe.expression,te,At),$t=Ye(vt)?t.getGeneratedNameForNode(vt):t.createTempVariable(void 0),Qe=Ye(vt)?t.getGeneratedNameForNode($t):t.createTempVariable(void 0),Lt=t.createTempVariable(void 0),Rt=t.createTempVariable(l),Xt=t.createUniqueName("e"),ut=t.getGeneratedNameForNode(Xt),lr=t.createTempVariable(void 0),In=Ot(n().createAsyncValuesHelper(vt),oe.expression),We=t.createCallExpression(t.createPropertyAccessExpression($t,"next"),void 0,[]),qt=t.createPropertyAccessExpression(Qe,"done"),ke=t.createPropertyAccessExpression(Qe,"value"),$=t.createFunctionCallCall(lr,$t,[]);l(Xt),l(lr);let Ke=pt&2?t.inlineExpressions([t.createAssignment(Xt,t.createVoidZero()),In]):In,re=qn(Ot(t.createForStatement(qn(Ot(t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createTrue()),Ot(t.createVariableDeclaration($t,void 0,void 0,Ke),oe.expression),t.createVariableDeclaration(Qe)]),oe.expression),4194304),t.inlineExpressions([t.createAssignment(Qe,pr(We)),t.createAssignment(Rt,qt),t.createLogicalNot(Rt)]),t.createAssignment(Lt,t.createTrue()),Ct(oe,ke,Lt)),oe),512);return ii(re,oe),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(re,Ue)]),t.createCatchClause(t.createVariableDeclaration(ut),qn(t.createBlock([t.createExpressionStatement(t.createAssignment(Xt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",ut)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([qn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Lt),t.createLogicalNot(Rt)),t.createAssignment(lr,t.createPropertyAccessExpression($t,"return"))),t.createExpressionStatement(pr($))),1)]),void 0,qn(t.createBlock([qn(t.createIfStatement(Xt,t.createThrowStatement(t.createPropertyAccessExpression(Xt,"error"))),1)]),1))]))}function ta(oe){return I.assertNode(oe,Da),ts(oe)}function ts(oe){return N?.has(oe)?t.updateParameterDeclaration(oe,void 0,oe.dotDotDotToken,Os(oe.name)?t.getGeneratedNameForNode(oe):oe.name,void 0,void 0,void 0):oe.transformFlags&65536?t.updateParameterDeclaration(oe,void 0,oe.dotDotDotToken,t.getGeneratedNameForNode(oe),void 0,void 0,dt(oe.initializer,te,At)):Gr(oe,te,e)}function Gt(oe){let Ue;for(let pt of oe.parameters)Ue?Ue.add(pt):pt.transformFlags&65536&&(Ue=new Set);return Ue}function hi(oe){let Ue=E,pt=N;E=eu(oe),N=Gt(oe);let vt=t.updateConstructorDeclaration(oe,oe.modifiers,kl(oe.parameters,ta,e),Di(oe));return E=Ue,N=pt,vt}function $a(oe){let Ue=E,pt=N;E=eu(oe),N=Gt(oe);let vt=t.updateGetAccessorDeclaration(oe,oe.modifiers,dt(oe.name,te,su),kl(oe.parameters,ta,e),void 0,Di(oe));return E=Ue,N=pt,vt}function ui(oe){let Ue=E,pt=N;E=eu(oe),N=Gt(oe);let vt=t.updateSetAccessorDeclaration(oe,oe.modifiers,dt(oe.name,te,su),kl(oe.parameters,ta,e),Di(oe));return E=Ue,N=pt,vt}function Wn(oe){let Ue=E,pt=N;E=eu(oe),N=Gt(oe);let vt=t.updateMethodDeclaration(oe,E&1?dn(oe.modifiers,me,Yc):oe.modifiers,E&2?void 0:oe.asteriskToken,dt(oe.name,te,su),dt(void 0,te,Tx),void 0,E&2&&E&1?Cr(oe):kl(oe.parameters,ta,e),void 0,E&2&&E&1?wn(oe):Di(oe));return E=Ue,N=pt,vt}function Gi(oe){let Ue=E,pt=N;E=eu(oe),N=Gt(oe);let vt=t.updateFunctionDeclaration(oe,E&1?dn(oe.modifiers,me,oo):oe.modifiers,E&2?void 0:oe.asteriskToken,oe.name,void 0,E&2&&E&1?Cr(oe):kl(oe.parameters,ta,e),void 0,E&2&&E&1?wn(oe):Di(oe));return E=Ue,N=pt,vt}function at(oe){let Ue=E,pt=N;E=eu(oe),N=Gt(oe);let vt=t.updateArrowFunction(oe,oe.modifiers,void 0,kl(oe.parameters,ta,e),void 0,oe.equalsGreaterThanToken,Di(oe));return E=Ue,N=pt,vt}function It(oe){let Ue=E,pt=N;E=eu(oe),N=Gt(oe);let vt=t.updateFunctionExpression(oe,E&1?dn(oe.modifiers,me,oo):oe.modifiers,E&2?void 0:oe.asteriskToken,oe.name,void 0,E&2&&E&1?Cr(oe):kl(oe.parameters,ta,e),void 0,E&2&&E&1?wn(oe):Di(oe));return E=Ue,N=pt,vt}function Cr(oe){if(qM(oe.parameters))return kl(oe.parameters,te,e);let Ue=[];for(let vt of oe.parameters){if(vt.initializer||vt.dotDotDotToken)break;let $t=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(vt.name,8));Ue.push($t)}let pt=t.createNodeArray(Ue);return Ot(pt,oe.parameters),pt}function wn(oe){let Ue=qM(oe.parameters)?void 0:kl(oe.parameters,te,e);i();let pt=z,vt=H;z=new Set,H=!1;let $t=[],Qe=t.updateBlock(oe.body,dn(oe.body.statements,te,fa));Qe=t.updateBlock(Qe,t.mergeLexicalEnvironment(Qe.statements,Pi(s(),oe)));let Lt=t.createReturnStatement(n().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),oe.name&&t.getGeneratedNameForNode(oe.name),void 0,Ue??[],void 0,Qe),!!(M&1))),Rt=m>=2&&(p.hasNodeCheckFlag(oe,256)||p.hasNodeCheckFlag(oe,128));if(Rt){da();let ut=bW(t,p,oe,z);X[Wo(ut)]=!0,kv($t,[ut])}$t.push(Lt);let Xt=t.updateBlock(oe.body,$t);return Rt&&H&&(p.hasNodeCheckFlag(oe,256)?gE(Xt,pz):p.hasNodeCheckFlag(oe,128)&&gE(Xt,uz)),z=pt,H=vt,Xt}function Di(oe){i();let Ue=0,pt=[],vt=dt(oe.body,te,vq)??t.createBlock([]);Cs(vt)&&(Ue=t.copyPrologue(vt.statements,pt,!1,te)),ti(pt,Pi(void 0,oe));let $t=s();if(Ue>0||Pt(pt)||Pt($t)){let Qe=t.converters.convertToFunctionBlock(vt,!0);return kv(pt,$t),ti(pt,Qe.statements.slice(Ue)),t.updateBlock(Qe,Ot(t.createNodeArray(pt),Qe.statements))}return vt}function Pi(oe,Ue){let pt=!1;for(let vt of Ue.parameters)if(pt){if(Os(vt.name)){if(vt.name.elements.length>0){let $t=H2(vt,te,e,0,t.getGeneratedNameForNode(vt));if(Pt($t)){let Qe=t.createVariableDeclarationList($t),Lt=t.createVariableStatement(void 0,Qe);qn(Lt,2097152),oe=Zr(oe,Lt)}}else if(vt.initializer){let $t=t.getGeneratedNameForNode(vt),Qe=dt(vt.initializer,te,At),Lt=t.createAssignment($t,Qe),Rt=t.createExpressionStatement(Lt);qn(Rt,2097152),oe=Zr(oe,Rt)}}else if(vt.initializer){let $t=t.cloneNode(vt.name);Ot($t,vt.name),qn($t,96);let Qe=dt(vt.initializer,te,At);Mh(Qe,3168);let Lt=t.createAssignment($t,Qe);Ot(Lt,vt),qn(Lt,3072);let Rt=t.createBlock([t.createExpressionStatement(Lt)]);Ot(Rt,vt),qn(Rt,3905);let Xt=t.createTypeCheck(t.cloneNode(vt.name),"undefined"),ut=t.createIfStatement(Xt,Rt);Zp(ut),Ot(ut,vt),qn(ut,2101056),oe=Zr(oe,ut)}}else if(vt.transformFlags&65536){pt=!0;let $t=H2(vt,te,e,1,t.getGeneratedNameForNode(vt),!1,!0);if(Pt($t)){let Qe=t.createVariableDeclarationList($t),Lt=t.createVariableStatement(void 0,Qe);qn(Lt,2097152),oe=Zr(oe,Lt)}}return oe}function da(){P&1||(P|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function ks(oe,Ue,pt){if(P&1&&he(Ue)){let vt=(p.hasNodeCheckFlag(Ue,128)?128:0)|(p.hasNodeCheckFlag(Ue,256)?256:0);if(vt!==F){let $t=F;F=vt,x(oe,Ue,pt),F=$t;return}}else if(P&&X[Wo(Ue)]){let vt=F;F=0,x(oe,Ue,pt),F=vt;return}x(oe,Ue,pt)}function no(oe,Ue){return Ue=b(oe,Ue),oe===1&&F?Vr(Ue):Ue}function Vr(oe){switch(oe.kind){case 211:return _s(oe);case 212:return ft(oe);case 213:return Qt(oe)}return oe}function _s(oe){return oe.expression.kind===108?Ot(t.createPropertyAccessExpression(t.createUniqueName("_super",48),oe.name),oe):oe}function ft(oe){return oe.expression.kind===108?wt(oe.argumentExpression,oe):oe}function Qt(oe){let Ue=oe.expression;if(g_(Ue)){let pt=ai(Ue)?_s(Ue):ft(Ue);return t.createCallExpression(t.createPropertyAccessExpression(pt,"call"),void 0,[t.createThis(),...oe.arguments])}return oe}function he(oe){let Ue=oe.kind;return Ue===263||Ue===176||Ue===174||Ue===177||Ue===178}function wt(oe,Ue){return F&256?Ot(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[oe]),"value"),Ue):Ot(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[oe]),Ue)}}function Qve(e){let t=e.factory;return Kg(e,n);function n(l){return l.isDeclarationFile?l:Gr(l,i,e)}function i(l){if(!(l.transformFlags&64))return l;switch(l.kind){case 299:return s(l);default:return Gr(l,i,e)}}function s(l){return l.variableDeclaration?Gr(l,i,e):t.updateCatchClause(l,t.createVariableDeclaration(t.createTempVariable(void 0)),dt(l.block,i,Cs))}}function Xve(e){let{factory:t,hoistVariableDeclaration:n}=e;return Kg(e,i);function i(N){return N.isDeclarationFile?N:Gr(N,s,e)}function s(N){if(!(N.transformFlags&32))return N;switch(N.kind){case 213:{let F=m(N,!1);return I.assertNotNode(F,PE),F}case 211:case 212:if(Kp(N)){let F=b(N,!1,!1);return I.assertNotNode(F,PE),F}return Gr(N,s,e);case 226:return N.operatorToken.kind===61?P(N):Gr(N,s,e);case 220:return E(N);default:return Gr(N,s,e)}}function l(N){I.assertNotNode(N,_q);let F=[N];for(;!N.questionDotToken&&!RS(N);)N=Js(dg(N.expression),Kp),I.assertNotNode(N,_q),F.unshift(N);return{expression:N.expression,chain:F}}function p(N,F,M){let L=x(N.expression,F,M);return PE(L)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(N,L.expression),L.thisArg):t.updateParenthesizedExpression(N,L)}function g(N,F,M){if(Kp(N))return b(N,F,M);let L=dt(N.expression,s,At);I.assertNotNode(L,PE);let W;return F&&(V2(L)?W=L:(W=t.createTempVariable(n),L=t.createAssignment(W,L))),L=N.kind===211?t.updatePropertyAccessExpression(N,L,dt(N.name,s,Ye)):t.updateElementAccessExpression(N,L,dt(N.argumentExpression,s,At)),W?t.createSyntheticReferenceExpression(L,W):L}function m(N,F){if(Kp(N))return b(N,F,!1);if(Mf(N.expression)&&Kp(Qo(N.expression))){let M=p(N.expression,!0,!1),L=dn(N.arguments,s,At);return PE(M)?Ot(t.createFunctionCallCall(M.expression,M.thisArg,L),N):t.updateCallExpression(N,M,void 0,L)}return Gr(N,s,e)}function x(N,F,M){switch(N.kind){case 217:return p(N,F,M);case 211:case 212:return g(N,F,M);case 213:return m(N,F);default:return dt(N,s,At)}}function b(N,F,M){let{expression:L,chain:W}=l(N),z=x(dg(L),gk(W[0]),!1),H=PE(z)?z.thisArg:void 0,X=PE(z)?z.expression:z,ne=t.restoreOuterExpressions(L,X,8);V2(X)||(X=t.createTempVariable(n),ne=t.createAssignment(X,ne));let ae=X,Y;for(let fe=0;fe<W.length;fe++){let te=W[fe];switch(te.kind){case 211:case 212:fe===W.length-1&&F&&(V2(ae)?Y=ae:(Y=t.createTempVariable(n),ae=t.createAssignment(Y,ae))),ae=te.kind===211?t.createPropertyAccessExpression(ae,dt(te.name,s,Ye)):t.createElementAccessExpression(ae,dt(te.argumentExpression,s,At));break;case 213:fe===0&&H?(Xc(H)||(H=t.cloneNode(H),Mh(H,3072)),ae=t.createFunctionCallCall(ae,H.kind===108?t.createThis():H,dn(te.arguments,s,At))):ae=t.createCallExpression(ae,void 0,dn(te.arguments,s,At));break}ii(ae,te)}let Ee=M?t.createConditionalExpression(S(ne,X,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(ae)):t.createConditionalExpression(S(ne,X,!0),void 0,t.createVoidZero(),void 0,ae);return Ot(Ee,N),Y?t.createSyntheticReferenceExpression(Ee,Y):Ee}function S(N,F,M){return t.createBinaryExpression(t.createBinaryExpression(N,t.createToken(M?37:38),t.createNull()),t.createToken(M?57:56),t.createBinaryExpression(F,t.createToken(M?37:38),t.createVoidZero()))}function P(N){let F=dt(N.left,s,At),M=F;return V2(F)||(M=t.createTempVariable(n),F=t.createAssignment(M,F)),Ot(t.createConditionalExpression(S(F,M),void 0,M,void 0,dt(N.right,s,At)),N)}function E(N){return Kp(Qo(N.expression))?ii(x(N.expression,!1,!0),N):t.updateDeleteExpression(N,dt(N.expression,s,At))}}function Yve(e){let{hoistVariableDeclaration:t,factory:n}=e;return Kg(e,i);function i(p){return p.isDeclarationFile?p:Gr(p,s,e)}function s(p){return p.transformFlags&16?iX(p)?l(p):Gr(p,s,e):p}function l(p){let g=p.operatorToken,m=b3(g.kind),x=Qo(dt(p.left,s,Qf)),b=x,S=Qo(dt(p.right,s,At));if(Lc(x)){let P=V2(x.expression),E=P?x.expression:n.createTempVariable(t),N=P?x.expression:n.createAssignment(E,x.expression);if(ai(x))b=n.createPropertyAccessExpression(E,x.name),x=n.createPropertyAccessExpression(N,x.name);else{let F=V2(x.argumentExpression),M=F?x.argumentExpression:n.createTempVariable(t);b=n.createElementAccessExpression(E,M),x=n.createElementAccessExpression(N,F?x.argumentExpression:n.createAssignment(M,x.argumentExpression))}}return n.createBinaryExpression(x,m,n.createParenthesizedExpression(n.createAssignment(b,S)))}}function Zve(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,startLexicalEnvironment:s,endLexicalEnvironment:l}=e,p,g,m,x;return Kg(e,b);function b(ve){if(ve.isDeclarationFile)return ve;let Pe=dt(ve,S,ba);return Rv(Pe,e.readEmitHelpers()),g=void 0,p=void 0,m=void 0,Pe}function S(ve){if(!(ve.transformFlags&4))return ve;switch(ve.kind){case 307:return P(ve);case 241:return E(ve);case 248:return N(ve);case 250:return F(ve);case 255:return L(ve);default:return Gr(ve,S,e)}}function P(ve){let Pe=$Z(ve.statements);if(Pe){s(),p=new ZN,g=[];let Oe=bBe(ve.statements),ie=[];ti(ie,h3(ve.statements,S,fa,0,Oe));let Ne=Oe;for(;Ne<ve.statements.length;){let ge=ve.statements[Ne];if(t0e(ge)!==0){Ne>Oe&&ti(ie,dn(ve.statements,S,fa,Oe,Ne-Oe));break}Ne++}I.assert(Ne<ve.statements.length,"Should have encountered at least one 'using' statement.");let it=de(),ze=W(ve.statements,Ne,ve.statements.length,it,ie);return p.size&&Zr(ie,t.createExportDeclaration(void 0,!1,t.createNamedExports(Ka(p.values())))),ti(ie,l()),g.length&&ie.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(g,1))),ti(ie,me(ze,it,Pe===2)),x&&ie.push(t.createExportAssignment(void 0,!0,x)),t.updateSourceFile(ve,ie)}return Gr(ve,S,e)}function E(ve){let Pe=$Z(ve.statements);if(Pe){let Oe=bBe(ve.statements),ie=de();return t.updateBlock(ve,[...h3(ve.statements,S,fa,0,Oe),...me(W(ve.statements,Oe,ve.statements.length,ie,void 0),ie,Pe===2)])}return Gr(ve,S,e)}function N(ve){return ve.initializer&&xBe(ve.initializer)?dt(t.createBlock([t.createVariableStatement(void 0,ve.initializer),t.updateForStatement(ve,void 0,ve.condition,ve.incrementor,ve.statement)]),S,fa):Gr(ve,S,e)}function F(ve){if(xBe(ve.initializer)){let Pe=ve.initializer,Oe=Yl(Pe.declarations)||t.createVariableDeclaration(t.createTempVariable(void 0)),ie=e0e(Pe)===2,Ne=t.getGeneratedNameForNode(Oe.name),it=t.updateVariableDeclaration(Oe,Oe.name,void 0,void 0,Ne),ze=t.createVariableDeclarationList([it],ie?6:4),ge=t.createVariableStatement(void 0,ze);return dt(t.updateForOfStatement(ve,ve.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(Ne)],2),ve.expression,Cs(ve.statement)?t.updateBlock(ve.statement,[ge,...ve.statement.statements]):t.createBlock([ge,ve.statement],!0)),S,fa)}return Gr(ve,S,e)}function M(ve,Pe){return $Z(ve.statements)!==0?RN(ve)?t.updateCaseClause(ve,dt(ve.expression,S,At),W(ve.statements,0,ve.statements.length,Pe,void 0)):t.updateDefaultClause(ve,W(ve.statements,0,ve.statements.length,Pe,void 0)):Gr(ve,S,e)}function L(ve){let Pe=a8t(ve.caseBlock.clauses);if(Pe){let Oe=de();return me([t.updateSwitchStatement(ve,dt(ve.expression,S,At),t.updateCaseBlock(ve.caseBlock,ve.caseBlock.clauses.map(ie=>M(ie,Oe))))],Oe,Pe===2)}return Gr(ve,S,e)}function W(ve,Pe,Oe,ie,Ne){let it=[];for(let Me=Pe;Me<Oe;Me++){let Te=ve[Me],gt=t0e(Te);if(gt){I.assertNode(Te,Rl);let xe=[];for(let nt of Te.declarationList.declarations){if(!Ye(nt.name)){xe.length=0;break}J_(nt)&&(nt=$_(e,nt));let pe=dt(nt.initializer,S,At)??t.createVoidZero();xe.push(t.updateVariableDeclaration(nt,nt.name,void 0,void 0,n().createAddDisposableResourceHelper(ie,pe,gt===2)))}if(xe.length){let nt=t.createVariableDeclarationList(xe,2);ii(nt,Te.declarationList),Ot(nt,Te.declarationList),ze(t.updateVariableStatement(Te,void 0,nt));continue}}let Tt=S(Te);cs(Tt)?Tt.forEach(ze):Tt&&ze(Tt)}return it;function ze(Me){I.assertNode(Me,fa),Zr(it,ge(Me))}function ge(Me){if(!Ne)return Me;switch(Me.kind){case 272:case 271:case 278:case 262:return z(Me,Ne);case 277:return H(Me);case 263:return ae(Me);case 243:return Y(Me)}return Me}}function z(ve,Pe){Pe.push(ve)}function H(ve){return ve.isExportEquals?ne(ve):X(ve)}function X(ve){if(m)return ve;m=t.createUniqueName("_default",56),te(m,!0,"default",ve);let Pe=ve.expression,Oe=Ll(Pe);J_(Oe)&&(Oe=$_(e,Oe,!1,"default"),Pe=t.restoreOuterExpressions(Pe,Oe));let ie=t.createAssignment(m,Pe);return t.createExpressionStatement(ie)}function ne(ve){if(x)return ve;x=t.createUniqueName("_default",56),i(x);let Pe=t.createAssignment(x,ve.expression);return t.createExpressionStatement(Pe)}function ae(ve){if(!ve.name&&m)return ve;let Pe=Ai(ve,32),Oe=Ai(ve,2048),ie=t.converters.convertToClassExpression(ve);return ve.name&&(te(t.getLocalName(ve),Pe&&!Oe,void 0,ve),ie=t.createAssignment(t.getDeclarationName(ve),ie),J_(ie)&&(ie=$_(e,ie,!1)),ii(ie,ve),Eo(ie,ve),yu(ie,ve)),Oe&&!m&&(m=t.createUniqueName("_default",56),te(m,!0,"default",ve),ie=t.createAssignment(m,ie),J_(ie)&&(ie=$_(e,ie,!1,"default")),ii(ie,ve)),t.createExpressionStatement(ie)}function Y(ve){let Pe,Oe=Ai(ve,32);for(let ie of ve.declarationList.declarations)fe(ie,Oe,ie),ie.initializer&&(Pe=Zr(Pe,Ee(ie)));if(Pe){let ie=t.createExpressionStatement(t.inlineExpressions(Pe));return ii(ie,ve),yu(ie,ve),Eo(ie,ve),ie}}function Ee(ve){I.assertIsDefined(ve.initializer);let Pe;Ye(ve.name)?(Pe=t.cloneNode(ve.name),qn(Pe,Ao(Pe)&-114689)):Pe=t.converters.convertToAssignmentPattern(ve.name);let Oe=t.createAssignment(Pe,ve.initializer);return ii(Oe,ve),yu(Oe,ve),Eo(Oe,ve),Oe}function fe(ve,Pe,Oe){if(Os(ve.name))for(let ie of ve.name.elements)Ju(ie)||fe(ie,Pe,Oe);else te(ve.name,Pe,void 0,Oe)}function te(ve,Pe,Oe,ie){let Ne=Xc(ve)?ve:t.cloneNode(ve);if(Pe){if(Oe===void 0&&!R0(Ne)){let Me=t.createVariableDeclaration(Ne);ie&&ii(Me,ie),g.push(Me);return}let it=Oe!==void 0?Ne:void 0,ze=Oe!==void 0?Oe:Ne,ge=t.createExportSpecifier(!1,it,ze);ie&&ii(ge,ie),p.set(Ne,ge)}i(Ne)}function de(){return t.createUniqueName("env")}function me(ve,Pe,Oe){let ie=[],Ne=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),it=t.createVariableDeclaration(Pe,void 0,void 0,Ne),ze=t.createVariableDeclarationList([it],2),ge=t.createVariableStatement(void 0,ze);ie.push(ge);let Me=t.createBlock(ve,!0),Te=t.createUniqueName("e"),gt=t.createCatchClause(Te,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Pe,"error"),Te)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Pe,"hasError"),t.createTrue()))],!0)),Tt;if(Oe){let nt=t.createUniqueName("result");Tt=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(nt,void 0,void 0,n().createDisposeResourcesHelper(Pe))],2)),t.createIfStatement(nt,t.createExpressionStatement(t.createAwaitExpression(nt)))],!0)}else Tt=t.createBlock([t.createExpressionStatement(n().createDisposeResourcesHelper(Pe))],!0);let xe=t.createTryStatement(Me,gt,Tt);return ie.push(xe),ie}}function bBe(e){for(let t=0;t<e.length;t++)if(!Ph(e[t])&&!XF(e[t]))return t;return 0}function xBe(e){return mp(e)&&e0e(e)!==0}function e0e(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function i8t(e){return e0e(e.declarationList)}function t0e(e){return Rl(e)?i8t(e):0}function $Z(e){let t=0;for(let n of e){let i=t0e(n);if(i===2)return 2;i>t&&(t=i)}return t}function a8t(e){let t=0;for(let n of e){let i=$Z(n.statements);if(i===2)return 2;i>t&&(t=i)}return t}function r0e(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions(),s,l;return Kg(e,S);function p(){if(l.filenameDeclaration)return l.filenameDeclaration.name;let xe=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return l.filenameDeclaration=xe,l.filenameDeclaration.name}function g(xe){return i.jsx===5?"jsxDEV":xe?"jsxs":"jsx"}function m(xe){let nt=g(xe);return b(nt)}function x(){return b("Fragment")}function b(xe){var nt,pe;let He=xe==="createElement"?l.importSpecifier:LJ(l.importSpecifier,i),qe=(pe=(nt=l.utilizedImplicitRuntimeImports)==null?void 0:nt.get(He))==null?void 0:pe.get(xe);if(qe)return qe.name;l.utilizedImplicitRuntimeImports||(l.utilizedImplicitRuntimeImports=new Map);let je=l.utilizedImplicitRuntimeImports.get(He);je||(je=new Map,l.utilizedImplicitRuntimeImports.set(He,je));let st=t.createUniqueName(`_${xe}`,112),jt=t.createImportSpecifier(!1,t.createIdentifier(xe),st);return ghe(st,jt),je.set(xe,jt),st}function S(xe){if(xe.isDeclarationFile)return xe;s=xe,l={},l.importSpecifier=W5(i,xe);let nt=Gr(xe,P,e);Rv(nt,e.readEmitHelpers());let pe=nt.statements;if(l.filenameDeclaration&&(pe=Sk(pe.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([l.filenameDeclaration],2)))),l.utilizedImplicitRuntimeImports){for(let[He,qe]of Ka(l.utilizedImplicitRuntimeImports.entries()))if(Du(xe)){let je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Ka(qe.values()))),t.createStringLiteral(He),void 0);IS(je,!1),pe=Sk(pe.slice(),je)}else if(q_(xe)){let je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Ka(qe.values(),st=>t.createBindingElement(void 0,st.propertyName,st.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(He)]))],2));IS(je,!1),pe=Sk(pe.slice(),je)}}return pe!==nt.statements&&(nt=t.updateSourceFile(nt,pe)),l=void 0,nt}function P(xe){return xe.transformFlags&2?E(xe):xe}function E(xe){switch(xe.kind){case 284:return W(xe,!1);case 285:return z(xe,!1);case 288:return H(xe,!1);case 294:return Tt(xe);default:return Gr(xe,P,e)}}function N(xe){switch(xe.kind){case 12:return Ne(xe);case 294:return Tt(xe);case 284:return W(xe,!0);case 285:return z(xe,!0);case 288:return H(xe,!0);default:return I.failBadSyntaxKind(xe)}}function F(xe){return xe.properties.some(nt=>xu(nt)&&(Ye(nt.name)&&fi(nt.name)==="__proto__"||vo(nt.name)&&nt.name.text==="__proto__"))}function M(xe){let nt=!1;for(let pe of xe.attributes.properties)if(EE(pe)&&(!So(pe.expression)||pe.expression.properties.some(Lv)))nt=!0;else if(nt&&Jh(pe)&&Ye(pe.name)&&pe.name.escapedText==="key")return!0;return!1}function L(xe){return l.importSpecifier===void 0||M(xe)}function W(xe,nt){return(L(xe.openingElement)?Ee:ae)(xe.openingElement,xe.children,nt,xe)}function z(xe,nt){return(L(xe)?Ee:ae)(xe,void 0,nt,xe)}function H(xe,nt){return(l.importSpecifier===void 0?te:fe)(xe.openingFragment,xe.children,nt,xe)}function X(xe){let nt=ne(xe);return nt&&t.createObjectLiteralExpression([nt])}function ne(xe){let nt=mN(xe);if(Re(nt)===1&&!nt[0].dotDotDotToken){let He=N(nt[0]);return He&&t.createPropertyAssignment("children",He)}let pe=Bi(xe,N);return Re(pe)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(pe)):void 0}function ae(xe,nt,pe,He){let qe=Te(xe),je=nt&&nt.length?ne(nt):void 0,st=Ir(xe.attributes.properties,Or=>!!Or.name&&Ye(Or.name)&&Or.name.escapedText==="key"),jt=st?Cn(xe.attributes.properties,Or=>Or!==st):xe.attributes.properties,ar=Re(jt)?me(jt,je):t.createObjectLiteralExpression(je?[je]:ce);return Y(qe,ar,st,nt||ce,pe,He)}function Y(xe,nt,pe,He,qe,je){var st;let jt=mN(He),ar=Re(jt)>1||!!((st=jt[0])!=null&&st.dotDotDotToken),Or=[xe,nt];if(pe&&Or.push(ie(pe.initializer)),i.jsx===5){let Ct=al(s);if(Ct&&ba(Ct)){pe===void 0&&Or.push(t.createVoidZero()),Or.push(ar?t.createTrue():t.createFalse());let pr=$s(Ct,je.pos);Or.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",p()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(pr.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(pr.character+1))])),Or.push(t.createThis())}}let nn=Ot(t.createCallExpression(m(ar),void 0,Or),je);return qe&&Zp(nn),nn}function Ee(xe,nt,pe,He){let qe=Te(xe),je=xe.attributes.properties,st=Re(je)?me(je):t.createNull(),jt=l.importSpecifier===void 0?CY(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,xe):b("createElement"),ar=Xhe(t,jt,qe,st,Bi(nt,N),He);return pe&&Zp(ar),ar}function fe(xe,nt,pe,He){let qe;if(nt&&nt.length){let je=X(nt);je&&(qe=je)}return Y(x(),qe||t.createObjectLiteralExpression([]),void 0,nt,pe,He)}function te(xe,nt,pe,He){let qe=Yhe(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Bi(nt,N),xe,He);return pe&&Zp(qe),qe}function de(xe){return So(xe.expression)&&!F(xe.expression)?ia(xe.expression.properties,nt=>I.checkDefined(dt(nt,P,k0))):t.createSpreadAssignment(I.checkDefined(dt(xe.expression,P,At)))}function me(xe,nt){let pe=Po(i);return pe&&pe>=5?t.createObjectLiteralExpression(ve(xe,nt)):Pe(xe,nt)}function ve(xe,nt){let pe=js(z7(xe,EE,(He,qe)=>js(Dt(He,je=>qe?de(je):Oe(je)))));return nt&&pe.push(nt),pe}function Pe(xe,nt){let pe=[],He=[];for(let je of xe){if(EE(je)){if(So(je.expression)&&!F(je.expression)){for(let st of je.expression.properties){if(Lv(st)){qe(),pe.push(I.checkDefined(dt(st.expression,P,At)));continue}He.push(I.checkDefined(dt(st,P)))}continue}qe(),pe.push(I.checkDefined(dt(je.expression,P,At)));continue}He.push(Oe(je))}return nt&&He.push(nt),qe(),pe.length&&!So(pe[0])&&pe.unshift(t.createObjectLiteralExpression()),Zd(pe)||n().createAssignHelper(pe);function qe(){He.length&&(pe.push(t.createObjectLiteralExpression(He)),He=[])}}function Oe(xe){let nt=gt(xe),pe=ie(xe.initializer);return t.createPropertyAssignment(nt,pe)}function ie(xe){if(xe===void 0)return t.createTrue();if(xe.kind===11){let nt=xe.singleQuote!==void 0?xe.singleQuote:!eJ(xe,s),pe=t.createStringLiteral(Me(xe.text)||xe.text,nt);return Ot(pe,xe)}return xe.kind===294?xe.expression===void 0?t.createTrue():I.checkDefined(dt(xe.expression,P,At)):qh(xe)?W(xe,!1):Vk(xe)?z(xe,!1):qS(xe)?H(xe,!1):I.failBadSyntaxKind(xe)}function Ne(xe){let nt=it(xe.text);return nt===void 0?void 0:t.createStringLiteral(nt)}function it(xe){let nt,pe=0,He=-1;for(let qe=0;qe<xe.length;qe++){let je=xe.charCodeAt(qe);Gp(je)?(pe!==-1&&He!==-1&&(nt=ze(nt,xe.substr(pe,He-pe+1))),pe=-1):Th(je)||(He=qe,pe===-1&&(pe=qe))}return pe!==-1?ze(nt,xe.substr(pe)):nt}function ze(xe,nt){let pe=ge(nt);return xe===void 0?pe:xe+" "+pe}function ge(xe){return xe.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(nt,pe,He,qe,je,st,jt)=>{if(je)return JI(parseInt(je,10));if(st)return JI(parseInt(st,16));{let ar=s8t.get(jt);return ar?JI(ar):nt}})}function Me(xe){let nt=ge(xe);return nt===xe?void 0:nt}function Te(xe){if(xe.kind===284)return Te(xe.openingElement);{let nt=xe.tagName;return Ye(nt)&&gN(nt.escapedText)?t.createStringLiteral(fi(nt)):Hg(nt)?t.createStringLiteral(fi(nt.namespace)+":"+fi(nt.name)):dM(t,nt)}}function gt(xe){let nt=xe.name;if(Ye(nt)){let pe=fi(nt);return/^[A-Z_]\w*$/i.test(pe)?nt:t.createStringLiteral(pe)}return t.createStringLiteral(fi(nt.namespace)+":"+fi(nt.name))}function Tt(xe){let nt=dt(xe.expression,P,At);return xe.dotDotDotToken?t.createSpreadElement(nt):nt}}var s8t=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function n0e(e){let{factory:t,hoistVariableDeclaration:n}=e;return Kg(e,i);function i(m){return m.isDeclarationFile?m:Gr(m,s,e)}function s(m){if(!(m.transformFlags&512))return m;switch(m.kind){case 226:return l(m);default:return Gr(m,s,e)}}function l(m){switch(m.operatorToken.kind){case 68:return p(m);case 43:return g(m);default:return Gr(m,s,e)}}function p(m){let x,b,S=dt(m.left,s,At),P=dt(m.right,s,At);if(Nc(S)){let E=t.createTempVariable(n),N=t.createTempVariable(n);x=Ot(t.createElementAccessExpression(Ot(t.createAssignment(E,S.expression),S.expression),Ot(t.createAssignment(N,S.argumentExpression),S.argumentExpression)),S),b=Ot(t.createElementAccessExpression(E,N),S)}else if(ai(S)){let E=t.createTempVariable(n);x=Ot(t.createPropertyAccessExpression(Ot(t.createAssignment(E,S.expression),S.expression),S.name),S),b=Ot(t.createPropertyAccessExpression(E,S.name),S)}else x=S,b=S;return Ot(t.createAssignment(x,Ot(t.createGlobalMethodCall("Math","pow",[b,P]),m)),m)}function g(m){let x=dt(m.left,s,At),b=dt(m.right,s,At);return Ot(t.createGlobalMethodCall("Math","pow",[x,b]),m)}}function SBe(e,t){return{kind:e,expression:t}}function i0e(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:l,hoistVariableDeclaration:p}=e,g=e.getCompilerOptions(),m=e.getEmitResolver(),x=e.onSubstituteNode,b=e.onEmitNode;e.onEmitNode=Y_,e.onSubstituteNode=gd;let S,P,E,N;function F(_e){N=Zr(N,t.createVariableDeclaration(_e))}let M,L=0;return Kg(e,W);function W(_e){if(_e.isDeclarationFile)return _e;S=_e,P=_e.text;let xt=me(_e);return Rv(xt,e.readEmitHelpers()),S=void 0,P=void 0,N=void 0,E=0,xt}function z(_e,xt){let gr=E;return E=(E&~_e|xt)&32767,gr}function H(_e,xt,gr){E=(E&~xt|gr)&-32768|_e}function X(_e){return(E&8192)!==0&&_e.kind===253&&!_e.expression}function ne(_e){return _e.transformFlags&4194304&&(md(_e)||LS(_e)||Mhe(_e)||e3(_e)||t3(_e)||RN(_e)||r3(_e)||Uk(_e)||z2(_e)||Cx(_e)||cx(_e,!1)||Cs(_e))}function ae(_e){return(_e.transformFlags&1024)!==0||M!==void 0||E&8192&&ne(_e)||cx(_e,!1)&&la(_e)||(mg(_e)&1)!==0}function Y(_e){return ae(_e)?de(_e,!1):_e}function Ee(_e){return ae(_e)?de(_e,!0):_e}function fe(_e){if(ae(_e)){let xt=al(_e);if(is(xt)&&Pu(xt)){let gr=z(32670,16449),yr=de(_e,!1);return H(gr,229376,0),yr}return de(_e,!1)}return _e}function te(_e){return _e.kind===108?Nu(_e,!0):Y(_e)}function de(_e,xt){switch(_e.kind){case 126:return;case 263:return Te(_e);case 231:return gt(_e);case 169:return no(_e);case 262:return lr(_e);case 219:return Xt(_e);case 218:return ut(_e);case 260:return Kr(_e);case 80:return ge(_e);case 261:return Le(_e);case 255:return ve(_e);case 269:return Pe(_e);case 241:return qt(_e,!1);case 252:case 251:return Me(_e);case 256:return Bt(_e);case 246:case 247:return zr(_e,void 0);case 248:return Pr(_e,void 0);case 249:return Mr(_e,void 0);case 250:return Wr(_e,void 0);case 244:return ke(_e);case 210:return Xs(_e);case 299:return ua(_e);case 304:return Wc(_e);case 167:return El(_e);case 209:return Fc(_e);case 213:return Gl(_e);case 214:return Ld(_e);case 217:return $(_e,xt);case 226:return Ke(_e,xt);case 356:return re(_e,xt);case 15:case 16:case 17:case 18:return Io(_e);case 11:return Jc(_e);case 9:return Kl(_e);case 215:return hl(_e);case 228:return yl(_e);case 229:return Hl(_e);case 230:return Fs(_e);case 108:return Nu(_e,!1);case 110:return it(_e);case 236:return Au(_e);case 174:return sc(_e);case 177:case 178:return To(_e);case 243:return rr(_e);case 253:return Ne(_e);case 222:return ze(_e);default:return Gr(_e,Y,e)}}function me(_e){let xt=z(8064,64),gr=[],yr=[];i();let Qr=t.copyPrologue(_e.statements,gr,!1,Y);return ti(yr,dn(_e.statements,Y,fa,Qr)),N&&yr.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(N))),t.mergeLexicalEnvironment(gr,l()),oe(gr,_e),H(xt,0,0),t.updateSourceFile(_e,Ot(t.createNodeArray(ya(gr,yr)),_e.statements))}function ve(_e){if(M!==void 0){let xt=M.allowedNonLabeledJumps;M.allowedNonLabeledJumps|=2;let gr=Gr(_e,Y,e);return M.allowedNonLabeledJumps=xt,gr}return Gr(_e,Y,e)}function Pe(_e){let xt=z(7104,0),gr=Gr(_e,Y,e);return H(xt,0,0),gr}function Oe(_e){return ii(t.createReturnStatement(ie()),_e)}function ie(){return t.createUniqueName("_this",48)}function Ne(_e){return M?(M.nonLocalJumps|=8,X(_e)&&(_e=Oe(_e)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),_e.expression?I.checkDefined(dt(_e.expression,Y,At)):t.createVoidZero())]))):X(_e)?Oe(_e):Gr(_e,Y,e)}function it(_e){return E|=65536,E&2&&!(E&16384)&&(E|=131072),M?E&2?(M.containsLexicalThis=!0,_e):M.thisName||(M.thisName=t.createUniqueName("this")):_e}function ze(_e){return Gr(_e,Ee,e)}function ge(_e){return M&&m.isArgumentsLocalBinding(_e)?M.argumentsName||(M.argumentsName=t.createUniqueName("arguments")):_e.flags&256?ii(Ot(t.createIdentifier(ka(_e.escapedText)),_e),_e):_e}function Me(_e){if(M){let xt=_e.kind===252?2:4;if(!(_e.label&&M.labels&&M.labels.get(fi(_e.label))||!_e.label&&M.allowedNonLabeledJumps&xt)){let yr,Qr=_e.label;Qr?_e.kind===252?(yr=`break-${Qr.escapedText}`,Xe(M,!0,fi(Qr),yr)):(yr=`continue-${Qr.escapedText}`,Xe(M,!1,fi(Qr),yr)):_e.kind===252?(M.nonLocalJumps|=2,yr="break"):(M.nonLocalJumps|=4,yr="continue");let Tn=t.createStringLiteral(yr);if(M.loopOutParameters.length){let vi=M.loopOutParameters,Ki;for(let Na=0;Na<vi.length;Na++){let U=hp(vi[Na],1);Na===0?Ki=U:Ki=t.createBinaryExpression(Ki,28,U)}Tn=t.createBinaryExpression(Ki,28,Tn)}return t.createReturnStatement(Tn)}}return Gr(_e,Y,e)}function Te(_e){let xt=t.createVariableDeclaration(t.getLocalName(_e,!0),void 0,void 0,Tt(_e));ii(xt,_e);let gr=[],yr=t.createVariableStatement(void 0,t.createVariableDeclarationList([xt]));if(ii(yr,_e),Ot(yr,_e),Zp(yr),gr.push(yr),Ai(_e,32)){let Qr=Ai(_e,2048)?t.createExportDefault(t.getLocalName(_e)):t.createExternalModuleExport(t.getLocalName(_e));ii(Qr,yr),gr.push(Qr)}return em(gr)}function gt(_e){return Tt(_e)}function Tt(_e){_e.name&&qf();let xt=w2(_e),gr=t.createFunctionExpression(void 0,void 0,void 0,void 0,xt?[t.createParameterDeclaration(void 0,void 0,ru())]:[],void 0,xe(_e,xt));qn(gr,Ao(_e)&131072|1048576);let yr=t.createPartiallyEmittedExpression(gr);CN(yr,_e.end),qn(yr,3072);let Qr=t.createPartiallyEmittedExpression(yr);CN(Qr,yo(P,_e.pos)),qn(Qr,3072);let Tn=t.createParenthesizedExpression(t.createCallExpression(Qr,void 0,xt?[I.checkDefined(dt(xt.expression,Y,At))]:[]));return F2(Tn,3,"* @class "),Tn}function xe(_e,xt){let gr=[],yr=t.getInternalName(_e),Qr=LQ(yr)?t.getGeneratedNameForNode(yr):yr;i(),nt(gr,_e,xt),pe(gr,_e,Qr,xt),vt(gr,_e);let Tn=uX(yo(P,_e.members.end),20),vi=t.createPartiallyEmittedExpression(Qr);CN(vi,Tn.end),qn(vi,3072);let Ki=t.createReturnStatement(vi);j4(Ki,Tn.pos),qn(Ki,3840),gr.push(Ki),kv(gr,l());let Na=t.createBlock(Ot(t.createNodeArray(gr),_e.members),!0);return qn(Na,3072),Na}function nt(_e,xt,gr){gr&&_e.push(Ot(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(xt))),gr))}function pe(_e,xt,gr,yr){let Qr=M;M=void 0;let Tn=z(32662,73),vi=Dv(xt),Ki=zv(vi,yr!==void 0),Na=t.createFunctionDeclaration(void 0,void 0,gr,void 0,He(vi,Ki),void 0,jt(vi,xt,yr,Ki));Ot(Na,vi||xt),yr&&qn(Na,16),_e.push(Na),H(Tn,229376,0),M=Qr}function He(_e,xt){return kl(_e&&!xt?_e.parameters:void 0,Y,e)||[]}function qe(_e,xt){let gr=[];s(),t.mergeLexicalEnvironment(gr,l()),xt&&gr.push(t.createReturnStatement(ks()));let yr=t.createNodeArray(gr);Ot(yr,_e.members);let Qr=t.createBlock(yr,!0);return Ot(Qr,_e),qn(Qr,3072),Qr}function je(_e){return Rl(_e)&&sn(_e.declarationList.declarations,xt=>Ye(xt.name)&&!xt.initializer)}function st(_e){if(wk(_e))return!0;if(!(_e.transformFlags&134217728))return!1;switch(_e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let xt=_e;return po(xt.name)?!!xs(xt.name,st):!1}}return!!xs(_e,st)}function jt(_e,xt,gr,yr){let Qr=!!gr&&Ll(gr.expression).kind!==106;if(!_e)return qe(xt,Qr);let Tn=[],vi=[];s();let Ki=t.copyStandardPrologue(_e.body.statements,Tn,0);(yr||st(_e.body))&&(E|=8192),ti(vi,dn(_e.body.statements,Y,fa,Ki));let Na=Qr||E&8192;_s(Tn,_e),wt(Tn,_e,yr),pt(Tn,_e),Na?Ue(Tn,_e,da()):oe(Tn,_e),t.mergeLexicalEnvironment(Tn,l()),Na&&!Pi(_e.body)&&vi.push(t.createReturnStatement(ie()));let U=t.createBlock(Ot(t.createNodeArray([...Tn,...vi]),_e.body.statements),!0);return Ot(U,_e.body),Di(U,_e.body,yr)}function ar(_e){return Xc(_e)&&fi(_e)==="_this"}function Or(_e){return Xc(_e)&&fi(_e)==="_super"}function nn(_e){return Rl(_e)&&_e.declarationList.declarations.length===1&&Ct(_e.declarationList.declarations[0])}function Ct(_e){return Ui(_e)&&ar(_e.name)&&!!_e.initializer}function pr(_e){return Yu(_e,!0)&&ar(_e.left)}function vn(_e){return Ls(_e)&&ai(_e.expression)&&Or(_e.expression.expression)&&Ye(_e.expression.name)&&(fi(_e.expression.name)==="call"||fi(_e.expression.name)==="apply")&&_e.arguments.length>=1&&_e.arguments[0].kind===110}function ta(_e){return Vn(_e)&&_e.operatorToken.kind===57&&_e.right.kind===110&&vn(_e.left)}function ts(_e){return Vn(_e)&&_e.operatorToken.kind===56&&Vn(_e.left)&&_e.left.operatorToken.kind===38&&Or(_e.left.left)&&_e.left.right.kind===106&&vn(_e.right)&&fi(_e.right.expression.name)==="apply"}function Gt(_e){return Vn(_e)&&_e.operatorToken.kind===57&&_e.right.kind===110&&ts(_e.left)}function hi(_e){return pr(_e)&&ta(_e.right)}function $a(_e){return pr(_e)&&Gt(_e.right)}function ui(_e){return vn(_e)||ta(_e)||hi(_e)||ts(_e)||Gt(_e)||$a(_e)}function Wn(_e){for(let xt=0;xt<_e.statements.length-1;xt++){let gr=_e.statements[xt];if(!nn(gr))continue;let yr=gr.declarationList.declarations[0];if(yr.initializer.kind!==110)continue;let Qr=xt,Tn=xt+1;for(;Tn<_e.statements.length;){let Xr=_e.statements[Tn];if(Zu(Xr)&&ui(Ll(Xr.expression)))break;if(je(Xr)){Tn++;continue}return _e}let vi=_e.statements[Tn],Ki=vi.expression;pr(Ki)&&(Ki=Ki.right);let Na=t.updateVariableDeclaration(yr,yr.name,void 0,void 0,Ki),U=t.updateVariableDeclarationList(gr.declarationList,[Na]),rt=t.createVariableStatement(gr.modifiers,U);ii(rt,vi),Ot(rt,vi);let Yt=t.createNodeArray([..._e.statements.slice(0,Qr),..._e.statements.slice(Qr+1,Tn),rt,..._e.statements.slice(Tn+1)]);return Ot(Yt,_e.statements),t.updateBlock(_e,Yt)}return _e}function Gi(_e,xt){for(let yr of xt.statements)if(yr.transformFlags&134217728&&!_W(yr))return _e;let gr=!(xt.transformFlags&16384)&&!(E&65536)&&!(E&131072);for(let yr=_e.statements.length-1;yr>0;yr--){let Qr=_e.statements[yr];if(md(Qr)&&Qr.expression&&ar(Qr.expression)){let Tn=_e.statements[yr-1],vi;if(Zu(Tn)&&hi(Ll(Tn.expression)))vi=Tn.expression;else if(gr&&nn(Tn)){let U=Tn.declarationList.declarations[0];ui(Ll(U.initializer))&&(vi=t.createAssignment(ie(),U.initializer))}if(!vi)break;let Ki=t.createReturnStatement(vi);ii(Ki,Tn),Ot(Ki,Tn);let Na=t.createNodeArray([..._e.statements.slice(0,yr-1),Ki,..._e.statements.slice(yr+1)]);return Ot(Na,_e.statements),t.updateBlock(_e,Na)}}return _e}function at(_e){if(nn(_e)){if(_e.declarationList.declarations[0].initializer.kind===110)return}else if(pr(_e))return t.createPartiallyEmittedExpression(_e.right,_e);switch(_e.kind){case 219:case 218:case 262:case 176:case 175:return _e;case 177:case 178:case 174:case 172:{let xt=_e;return po(xt.name)?t.replacePropertyName(xt,Gr(xt.name,at,void 0)):_e}}return Gr(_e,at,void 0)}function It(_e,xt){if(xt.transformFlags&16384||E&65536||E&131072)return _e;for(let gr of xt.statements)if(gr.transformFlags&134217728&&!_W(gr))return _e;return t.updateBlock(_e,dn(_e.statements,at,fa))}function Cr(_e){if(vn(_e)&&_e.arguments.length===2&&Ye(_e.arguments[1])&&fi(_e.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(ru(),t.createNull()),_e);switch(_e.kind){case 219:case 218:case 262:case 176:case 175:return _e;case 177:case 178:case 174:case 172:{let xt=_e;return po(xt.name)?t.replacePropertyName(xt,Gr(xt.name,Cr,void 0)):_e}}return Gr(_e,Cr,void 0)}function wn(_e){return t.updateBlock(_e,dn(_e.statements,Cr,fa))}function Di(_e,xt,gr){let yr=_e;return _e=Wn(_e),_e=Gi(_e,xt),_e!==yr&&(_e=It(_e,xt)),gr&&(_e=wn(_e)),_e}function Pi(_e){if(_e.kind===253)return!0;if(_e.kind===245){let xt=_e;if(xt.elseStatement)return Pi(xt.thenStatement)&&Pi(xt.elseStatement)}else if(_e.kind===241){let xt=dc(_e.statements);if(xt&&Pi(xt))return!0}return!1}function da(){return qn(t.createThis(),8)}function ks(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ru(),t.createNull()),t.createFunctionApplyCall(ru(),da(),t.createIdentifier("arguments"))),da())}function no(_e){if(!_e.dotDotDotToken)return Os(_e.name)?ii(Ot(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(_e),void 0,void 0,void 0),_e),_e):_e.initializer?ii(Ot(t.createParameterDeclaration(void 0,void 0,_e.name,void 0,void 0,void 0),_e),_e):_e}function Vr(_e){return _e.initializer!==void 0||Os(_e.name)}function _s(_e,xt){if(!Pt(xt.parameters,Vr))return!1;let gr=!1;for(let yr of xt.parameters){let{name:Qr,initializer:Tn,dotDotDotToken:vi}=yr;vi||(Os(Qr)?gr=ft(_e,yr,Qr,Tn)||gr:Tn&&(Qt(_e,yr,Qr,Tn),gr=!0))}return gr}function ft(_e,xt,gr,yr){return gr.elements.length>0?(Sk(_e,qn(t.createVariableStatement(void 0,t.createVariableDeclarationList(H2(xt,Y,e,0,t.getGeneratedNameForNode(xt)))),2097152)),!0):yr?(Sk(_e,qn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(xt),I.checkDefined(dt(yr,Y,At)))),2097152)),!0):!1}function Qt(_e,xt,gr,yr){yr=I.checkDefined(dt(yr,Y,At));let Qr=t.createIfStatement(t.createTypeCheck(t.cloneNode(gr),"undefined"),qn(Ot(t.createBlock([t.createExpressionStatement(qn(Ot(t.createAssignment(qn(Xo(Ot(t.cloneNode(gr),gr),gr.parent),96),qn(yr,96|Ao(yr)|3072)),xt),3072))]),xt),3905));Zp(Qr),Ot(Qr,xt),qn(Qr,2101056),Sk(_e,Qr)}function he(_e,xt){return!!(_e&&_e.dotDotDotToken&&!xt)}function wt(_e,xt,gr){let yr=[],Qr=dc(xt.parameters);if(!he(Qr,gr))return!1;let Tn=Qr.name.kind===80?Xo(Ot(t.cloneNode(Qr.name),Qr.name),Qr.name.parent):t.createTempVariable(void 0);qn(Tn,96);let vi=Qr.name.kind===80?t.cloneNode(Qr.name):Tn,Ki=xt.parameters.length-1,Na=t.createLoopVariable();yr.push(qn(Ot(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Tn,void 0,void 0,t.createArrayLiteralExpression([]))])),Qr),2097152));let U=t.createForStatement(Ot(t.createVariableDeclarationList([t.createVariableDeclaration(Na,void 0,void 0,t.createNumericLiteral(Ki))]),Qr),Ot(t.createLessThan(Na,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Qr),Ot(t.createPostfixIncrement(Na),Qr),t.createBlock([Zp(Ot(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(vi,Ki===0?Na:t.createSubtract(Na,t.createNumericLiteral(Ki))),t.createElementAccessExpression(t.createIdentifier("arguments"),Na))),Qr))]));return qn(U,2097152),Zp(U),yr.push(U),Qr.name.kind!==80&&yr.push(qn(Ot(t.createVariableStatement(void 0,t.createVariableDeclarationList(H2(Qr,Y,e,0,vi))),Qr),2097152)),nQ(_e,yr),!0}function oe(_e,xt){return E&131072&&xt.kind!==219?(Ue(_e,xt,t.createThis()),!0):!1}function Ue(_e,xt,gr){Tg();let yr=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,gr)]));qn(yr,2100224),Eo(yr,xt),Sk(_e,yr)}function pt(_e,xt){if(E&32768){let gr;switch(xt.kind){case 219:return _e;case 174:case 177:case 178:gr=t.createVoidZero();break;case 176:gr=t.createPropertyAccessExpression(qn(t.createThis(),8),"constructor");break;case 262:case 218:gr=t.createConditionalExpression(t.createLogicalAnd(qn(t.createThis(),8),t.createBinaryExpression(qn(t.createThis(),8),104,t.getLocalName(xt))),void 0,t.createPropertyAccessExpression(qn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return I.failBadSyntaxKind(xt)}let yr=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,gr)]));qn(yr,2100224),Sk(_e,yr)}return _e}function vt(_e,xt){for(let gr of xt.members)switch(gr.kind){case 240:_e.push($t(gr));break;case 174:_e.push(Qe(hd(xt,gr),gr,xt));break;case 177:case 178:let yr=E2(xt.members,gr);gr===yr.firstAccessor&&_e.push(Lt(hd(xt,gr),yr,xt));break;case 176:case 175:break;default:I.failBadSyntaxKind(gr,S&&S.fileName);break}}function $t(_e){return Ot(t.createEmptyStatement(),_e)}function Qe(_e,xt,gr){let yr=Rh(xt),Qr=I1(xt),Tn=In(xt,xt,void 0,gr),vi=dt(xt.name,Y,su);I.assert(vi);let Ki;if(!Ca(vi)&&J5(e.getCompilerOptions())){let U=po(vi)?vi.expression:Ye(vi)?t.createStringLiteral(ka(vi.escapedText)):vi;Ki=t.createObjectDefinePropertyCall(_e,U,t.createPropertyDescriptor({value:Tn,enumerable:!1,writable:!0,configurable:!0}))}else{let U=Kk(t,_e,vi,xt.name);Ki=t.createAssignment(U,Tn)}qn(Tn,3072),Eo(Tn,Qr);let Na=Ot(t.createExpressionStatement(Ki),xt);return ii(Na,xt),yu(Na,yr),qn(Na,96),Na}function Lt(_e,xt,gr){let yr=t.createExpressionStatement(Rt(_e,xt,gr,!1));return qn(yr,3072),Eo(yr,I1(xt.firstAccessor)),yr}function Rt(_e,{firstAccessor:xt,getAccessor:gr,setAccessor:yr},Qr,Tn){let vi=Xo(Ot(t.cloneNode(_e),_e),_e.parent);qn(vi,3136),Eo(vi,xt.name);let Ki=dt(xt.name,Y,su);if(I.assert(Ki),Ca(Ki))return I.failBadSyntaxKind(Ki,"Encountered unhandled private identifier while transforming ES2015.");let Na=EY(t,Ki);qn(Na,3104),Eo(Na,xt.name);let U=[];if(gr){let Yt=In(gr,void 0,void 0,Qr);Eo(Yt,I1(gr)),qn(Yt,1024);let Xr=t.createPropertyAssignment("get",Yt);yu(Xr,Rh(gr)),U.push(Xr)}if(yr){let Yt=In(yr,void 0,void 0,Qr);Eo(Yt,I1(yr)),qn(Yt,1024);let Xr=t.createPropertyAssignment("set",Yt);yu(Xr,Rh(yr)),U.push(Xr)}U.push(t.createPropertyAssignment("enumerable",gr||yr?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let rt=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[vi,Na,t.createObjectLiteralExpression(U,!0)]);return Tn&&Zp(rt),rt}function Xt(_e){_e.transformFlags&16384&&!(E&16384)&&(E|=131072);let xt=M;M=void 0;let gr=z(15232,66),yr=t.createFunctionExpression(void 0,void 0,void 0,void 0,kl(_e.parameters,Y,e),void 0,We(_e));return Ot(yr,_e),ii(yr,_e),qn(yr,16),H(gr,0,0),M=xt,yr}function ut(_e){let xt=Ao(_e)&524288?z(32662,69):z(32670,65),gr=M;M=void 0;let yr=kl(_e.parameters,Y,e),Qr=We(_e),Tn=E&32768?t.getLocalName(_e):_e.name;return H(xt,229376,0),M=gr,t.updateFunctionExpression(_e,void 0,_e.asteriskToken,Tn,void 0,yr,void 0,Qr)}function lr(_e){let xt=M;M=void 0;let gr=z(32670,65),yr=kl(_e.parameters,Y,e),Qr=We(_e),Tn=E&32768?t.getLocalName(_e):_e.name;return H(gr,229376,0),M=xt,t.updateFunctionDeclaration(_e,dn(_e.modifiers,Y,oo),_e.asteriskToken,Tn,void 0,yr,void 0,Qr)}function In(_e,xt,gr,yr){let Qr=M;M=void 0;let Tn=yr&&Ri(yr)&&!Vs(_e)?z(32670,73):z(32670,65),vi=kl(_e.parameters,Y,e),Ki=We(_e);return E&32768&&!gr&&(_e.kind===262||_e.kind===218)&&(gr=t.getGeneratedNameForNode(_e)),H(Tn,229376,0),M=Qr,ii(Ot(t.createFunctionExpression(void 0,_e.asteriskToken,gr,void 0,vi,void 0,Ki),xt),_e)}function We(_e){let xt=!1,gr=!1,yr,Qr,Tn=[],vi=[],Ki=_e.body,Na;if(s(),Cs(Ki)&&(Na=t.copyStandardPrologue(Ki.statements,Tn,0,!1),Na=t.copyCustomPrologue(Ki.statements,vi,Na,Y,Bq),Na=t.copyCustomPrologue(Ki.statements,vi,Na,Y,qq)),xt=_s(vi,_e)||xt,xt=wt(vi,_e,!1)||xt,Cs(Ki))Na=t.copyCustomPrologue(Ki.statements,vi,Na,Y),yr=Ki.statements,ti(vi,dn(Ki.statements,Y,fa,Na)),!xt&&Ki.multiLine&&(xt=!0);else{I.assert(_e.kind===219),yr=kJ(Ki,-1);let rt=_e.equalsGreaterThanToken;!Pc(rt)&&!Pc(Ki)&&(M5(rt,Ki,S)?gr=!0:xt=!0);let Yt=dt(Ki,Y,At),Xr=t.createReturnStatement(Yt);Ot(Xr,Ki),uhe(Xr,Ki),qn(Xr,2880),vi.push(Xr),Qr=Ki}if(t.mergeLexicalEnvironment(Tn,l()),pt(Tn,_e),oe(Tn,_e),Pt(Tn)&&(xt=!0),vi.unshift(...Tn),Cs(Ki)&&Rp(vi,Ki.statements))return Ki;let U=t.createBlock(Ot(t.createNodeArray(vi),yr),xt);return Ot(U,_e.body),!xt&&gr&&qn(U,1),Qr&&lhe(U,20,Qr),ii(U,_e.body),U}function qt(_e,xt){if(xt)return Gr(_e,Y,e);let gr=E&256?z(7104,512):z(6976,128),yr=Gr(_e,Y,e);return H(gr,0,0),yr}function ke(_e){return Gr(_e,Ee,e)}function $(_e,xt){return Gr(_e,xt?Ee:Y,e)}function Ke(_e,xt){return D1(_e)?tC(_e,Y,e,0,!xt):_e.operatorToken.kind===28?t.updateBinaryExpression(_e,I.checkDefined(dt(_e.left,Ee,At)),_e.operatorToken,I.checkDefined(dt(_e.right,xt?Ee:Y,At))):Gr(_e,Y,e)}function re(_e,xt){if(xt)return Gr(_e,Ee,e);let gr;for(let Qr=0;Qr<_e.elements.length;Qr++){let Tn=_e.elements[Qr],vi=dt(Tn,Qr<_e.elements.length-1?Ee:Y,At);(gr||vi!==Tn)&&(gr||(gr=_e.elements.slice(0,Qr)),I.assert(vi),gr.push(vi))}let yr=gr?Ot(t.createNodeArray(gr),_e.elements):_e.elements;return t.updateCommaListExpression(_e,yr)}function Ft(_e){return _e.declarationList.declarations.length===1&&!!_e.declarationList.declarations[0].initializer&&!!(mg(_e.declarationList.declarations[0].initializer)&1)}function rr(_e){let xt=z(0,Ai(_e,32)?32:0),gr;if(M&&!(_e.declarationList.flags&7)&&!Ft(_e)){let yr;for(let Qr of _e.declarationList.declarations)if(lu(M,Qr),Qr.initializer){let Tn;Os(Qr.name)?Tn=tC(Qr,Y,e,0):(Tn=t.createBinaryExpression(Qr.name,64,I.checkDefined(dt(Qr.initializer,Y,At))),Ot(Tn,Qr)),yr=Zr(yr,Tn)}yr?gr=Ot(t.createExpressionStatement(t.inlineExpressions(yr)),_e):gr=void 0}else gr=Gr(_e,Y,e);return H(xt,0,0),gr}function Le(_e){if(_e.flags&7||_e.transformFlags&524288){_e.flags&7&&qf();let xt=dn(_e.declarations,_e.flags&1?kn:Kr,Ui),gr=t.createVariableDeclarationList(xt);return ii(gr,_e),Ot(gr,_e),yu(gr,_e),_e.transformFlags&524288&&(Os(_e.declarations[0].name)||Os(ao(_e.declarations).name))&&Eo(gr,kt(xt)),gr}return Gr(_e,Y,e)}function kt(_e){let xt=-1,gr=-1;for(let yr of _e)xt=xt===-1?yr.pos:yr.pos===-1?xt:Math.min(xt,yr.pos),gr=Math.max(gr,yr.end);return um(xt,gr)}function dr(_e){let xt=m.hasNodeCheckFlag(_e,16384),gr=m.hasNodeCheckFlag(_e,32768);return!((E&64)!==0||xt&&gr&&(E&512)!==0)&&(E&4096)===0&&(!m.isDeclarationWithCollidingName(_e)||gr&&!xt&&(E&6144)===0)}function kn(_e){let xt=_e.name;return Os(xt)?Kr(_e):!_e.initializer&&dr(_e)?t.updateVariableDeclaration(_e,_e.name,void 0,void 0,t.createVoidZero()):Gr(_e,Y,e)}function Kr(_e){let xt=z(32,0),gr;return Os(_e.name)?gr=H2(_e,Y,e,0,void 0,(xt&32)!==0):gr=Gr(_e,Y,e),H(xt,0,0),gr}function yn(_e){M.labels.set(fi(_e.label),!0)}function yt(_e){M.labels.set(fi(_e.label),!1)}function Bt(_e){M&&!M.labels&&(M.labels=new Map);let xt=xQ(_e,M&&yn);return cx(xt,!1)?cr(xt,_e):t.restoreEnclosingLabel(dt(xt,Y,fa,t.liftToBlock)??Ot(t.createEmptyStatement(),xt),_e,M&&yt)}function cr(_e,xt){switch(_e.kind){case 246:case 247:return zr(_e,xt);case 248:return Pr(_e,xt);case 249:return Mr(_e,xt);case 250:return Wr(_e,xt)}}function er(_e,xt,gr,yr,Qr){let Tn=z(_e,xt),vi=Kc(gr,yr,Tn,Qr);return H(Tn,0,0),vi}function zr(_e,xt){return er(0,1280,_e,xt)}function Pr(_e,xt){return er(5056,3328,_e,xt)}function or(_e){return t.updateForStatement(_e,dt(_e.initializer,Ee,sm),dt(_e.condition,Y,At),dt(_e.incrementor,Ee,At),I.checkDefined(dt(_e.statement,Y,fa,t.liftToBlock)))}function Mr(_e,xt){return er(3008,5376,_e,xt)}function Wr(_e,xt){return er(3008,5376,_e,xt,g.downlevelIteration?Is:ji)}function $r(_e,xt,gr){let yr=[],Qr=_e.initializer;if(mp(Qr)){_e.initializer.flags&7&&qf();let Tn=Yl(Qr.declarations);if(Tn&&Os(Tn.name)){let vi=H2(Tn,Y,e,0,xt),Ki=Ot(t.createVariableDeclarationList(vi),_e.initializer);ii(Ki,_e.initializer),Eo(Ki,um(vi[0].pos,ao(vi).end)),yr.push(t.createVariableStatement(void 0,Ki))}else yr.push(Ot(t.createVariableStatement(void 0,ii(Ot(t.createVariableDeclarationList([t.createVariableDeclaration(Tn?Tn.name:t.createTempVariable(void 0),void 0,void 0,xt)]),NS(Qr,-1)),Qr)),kJ(Qr,-1)))}else{let Tn=t.createAssignment(Qr,xt);D1(Tn)?yr.push(t.createExpressionStatement(Ke(Tn,!0))):(CN(Tn,Qr.end),yr.push(Ot(t.createExpressionStatement(I.checkDefined(dt(Tn,Y,At))),kJ(Qr,-1))))}if(gr)return Sr(ti(yr,gr));{let Tn=dt(_e.statement,Y,fa,t.liftToBlock);return I.assert(Tn),Cs(Tn)?t.updateBlock(Tn,Ot(t.createNodeArray(ya(yr,Tn.statements)),Tn.statements)):(yr.push(Tn),Sr(yr))}}function Sr(_e){return qn(t.createBlock(t.createNodeArray(_e),!0),864)}function ji(_e,xt,gr){let yr=dt(_e.expression,Y,At);I.assert(yr);let Qr=t.createLoopVariable(),Tn=Ye(yr)?t.getGeneratedNameForNode(yr):t.createTempVariable(void 0);qn(yr,96|Ao(yr));let vi=Ot(t.createForStatement(qn(Ot(t.createVariableDeclarationList([Ot(t.createVariableDeclaration(Qr,void 0,void 0,t.createNumericLiteral(0)),NS(_e.expression,-1)),Ot(t.createVariableDeclaration(Tn,void 0,void 0,yr),_e.expression)]),_e.expression),4194304),Ot(t.createLessThan(Qr,t.createPropertyAccessExpression(Tn,"length")),_e.expression),Ot(t.createPostfixIncrement(Qr),_e.expression),$r(_e,t.createElementAccessExpression(Tn,Qr),gr)),_e);return qn(vi,512),Ot(vi,_e),t.restoreEnclosingLabel(vi,xt,M&&yt)}function Is(_e,xt,gr,yr){let Qr=dt(_e.expression,Y,At);I.assert(Qr);let Tn=Ye(Qr)?t.getGeneratedNameForNode(Qr):t.createTempVariable(void 0),vi=Ye(Qr)?t.getGeneratedNameForNode(Tn):t.createTempVariable(void 0),Ki=t.createUniqueName("e"),Na=t.getGeneratedNameForNode(Ki),U=t.createTempVariable(void 0),rt=Ot(n().createValuesHelper(Qr),_e.expression),Yt=t.createCallExpression(t.createPropertyAccessExpression(Tn,"next"),void 0,[]);p(Ki),p(U);let Xr=yr&1024?t.inlineExpressions([t.createAssignment(Ki,t.createVoidZero()),rt]):rt,Ya=qn(Ot(t.createForStatement(qn(Ot(t.createVariableDeclarationList([Ot(t.createVariableDeclaration(Tn,void 0,void 0,Xr),_e.expression),t.createVariableDeclaration(vi,void 0,void 0,Yt)]),_e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(vi,"done")),t.createAssignment(vi,Yt),$r(_e,t.createPropertyAccessExpression(vi,"value"),gr)),_e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Ya,xt,M&&yt)]),t.createCatchClause(t.createVariableDeclaration(Na),qn(t.createBlock([t.createExpressionStatement(t.createAssignment(Ki,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Na)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([qn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(vi,t.createLogicalNot(t.createPropertyAccessExpression(vi,"done"))),t.createAssignment(U,t.createPropertyAccessExpression(Tn,"return"))),t.createExpressionStatement(t.createFunctionCallCall(U,Tn,[]))),1)]),void 0,qn(t.createBlock([qn(t.createIfStatement(Ki,t.createThrowStatement(t.createPropertyAccessExpression(Ki,"error"))),1)]),1))]))}function Xs(_e){let xt=_e.properties,gr=-1,yr=!1;for(let Ki=0;Ki<xt.length;Ki++){let Na=xt[Ki];if(Na.transformFlags&1048576&&E&4||(yr=I.checkDefined(Na.name).kind===167)){gr=Ki;break}}if(gr<0)return Gr(_e,Y,e);let Qr=t.createTempVariable(p),Tn=[],vi=t.createAssignment(Qr,qn(t.createObjectLiteralExpression(dn(xt,Y,k0,0,gr),_e.multiLine),yr?131072:0));return _e.multiLine&&Zp(vi),Tn.push(vi),cn(Tn,_e,Qr,gr),Tn.push(_e.multiLine?Zp(Xo(Ot(t.cloneNode(Qr),Qr),Qr.parent)):Qr),t.inlineExpressions(Tn)}function Ps(_e){return m.hasNodeCheckFlag(_e,8192)}function Vl(_e){return BS(_e)&&!!_e.initializer&&Ps(_e.initializer)}function pl(_e){return BS(_e)&&!!_e.condition&&Ps(_e.condition)}function Bl(_e){return BS(_e)&&!!_e.incrementor&&Ps(_e.incrementor)}function la(_e){return us(_e)||Vl(_e)}function us(_e){return m.hasNodeCheckFlag(_e,4096)}function lu(_e,xt){_e.hoistedLocalVariables||(_e.hoistedLocalVariables=[]),gr(xt.name);function gr(yr){if(yr.kind===80)_e.hoistedLocalVariables.push(yr);else for(let Qr of yr.elements)Ju(Qr)||gr(Qr.name)}}function Kc(_e,xt,gr,yr){if(!la(_e)){let rt;M&&(rt=M.allowedNonLabeledJumps,M.allowedNonLabeledJumps=6);let Yt=yr?yr(_e,xt,void 0,gr):t.restoreEnclosingLabel(BS(_e)?or(_e):Gr(_e,Y,e),xt,M&&yt);return M&&(M.allowedNonLabeledJumps=rt),Yt}let Qr=jo(_e),Tn=[],vi=M;M=Qr;let Ki=Vl(_e)?uu(_e,Qr):void 0,Na=us(_e)?Cl(_e,Qr,vi):void 0;M=vi,Ki&&Tn.push(Ki.functionDeclaration),Na&&Tn.push(Na.functionDeclaration),fr(Tn,Qr,vi),Ki&&Tn.push(Pl(Ki.functionName,Ki.containsYield));let U;if(Na)if(yr)U=yr(_e,xt,Na.part,gr);else{let rt=Ro(_e,Ki,t.createBlock(Na.part,!0));U=t.restoreEnclosingLabel(rt,xt,M&&yt)}else{let rt=Ro(_e,Ki,I.checkDefined(dt(_e.statement,Y,fa,t.liftToBlock)));U=t.restoreEnclosingLabel(rt,xt,M&&yt)}return Tn.push(U),Tn}function Ro(_e,xt,gr){switch(_e.kind){case 248:return el(_e,xt,gr);case 249:return as(_e,gr);case 250:return Q_(_e,gr);case 246:return Gs(_e,gr);case 247:return qo(_e,gr);default:return I.failBadSyntaxKind(_e,"IterationStatement expected")}}function el(_e,xt,gr){let yr=_e.condition&&Ps(_e.condition),Qr=yr||_e.incrementor&&Ps(_e.incrementor);return t.updateForStatement(_e,dt(xt?xt.part:_e.initializer,Ee,sm),dt(yr?void 0:_e.condition,Y,At),dt(Qr?void 0:_e.incrementor,Ee,At),gr)}function Q_(_e,xt){return t.updateForOfStatement(_e,void 0,I.checkDefined(dt(_e.initializer,Y,sm)),I.checkDefined(dt(_e.expression,Y,At)),xt)}function as(_e,xt){return t.updateForInStatement(_e,I.checkDefined(dt(_e.initializer,Y,sm)),I.checkDefined(dt(_e.expression,Y,At)),xt)}function Gs(_e,xt){return t.updateDoStatement(_e,xt,I.checkDefined(dt(_e.expression,Y,At)))}function qo(_e,xt){return t.updateWhileStatement(_e,I.checkDefined(dt(_e.expression,Y,At)),xt)}function jo(_e){let xt;switch(_e.kind){case 248:case 249:case 250:let Tn=_e.initializer;Tn&&Tn.kind===261&&(xt=Tn);break}let gr=[],yr=[];if(xt&&w0(xt)&7){let Tn=Vl(_e)||pl(_e)||Bl(_e);for(let vi of xt.declarations)ur(_e,vi,gr,yr,Tn)}let Qr={loopParameters:gr,loopOutParameters:yr};return M&&(M.argumentsName&&(Qr.argumentsName=M.argumentsName),M.thisName&&(Qr.thisName=M.thisName),M.hoistedLocalVariables&&(Qr.hoistedLocalVariables=M.hoistedLocalVariables)),Qr}function fr(_e,xt,gr){let yr;if(xt.argumentsName&&(gr?gr.argumentsName=xt.argumentsName:(yr||(yr=[])).push(t.createVariableDeclaration(xt.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),xt.thisName&&(gr?gr.thisName=xt.thisName:(yr||(yr=[])).push(t.createVariableDeclaration(xt.thisName,void 0,void 0,t.createIdentifier("this")))),xt.hoistedLocalVariables)if(gr)gr.hoistedLocalVariables=xt.hoistedLocalVariables;else{yr||(yr=[]);for(let Qr of xt.hoistedLocalVariables)yr.push(t.createVariableDeclaration(Qr))}if(xt.loopOutParameters.length){yr||(yr=[]);for(let Qr of xt.loopOutParameters)yr.push(t.createVariableDeclaration(Qr.outParamName))}xt.conditionVariable&&(yr||(yr=[]),yr.push(t.createVariableDeclaration(xt.conditionVariable,void 0,void 0,t.createFalse()))),yr&&_e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(yr)))}function hc(_e){return t.createVariableDeclaration(_e.originalName,void 0,void 0,_e.outParamName)}function uu(_e,xt){let gr=t.createUniqueName("_loop_init"),yr=(_e.initializer.transformFlags&1048576)!==0,Qr=0;xt.containsLexicalThis&&(Qr|=16),yr&&E&4&&(Qr|=524288);let Tn=[];Tn.push(t.createVariableStatement(void 0,_e.initializer)),tl(xt.loopOutParameters,2,1,Tn);let vi=t.createVariableStatement(void 0,qn(t.createVariableDeclarationList([t.createVariableDeclaration(gr,void 0,void 0,qn(t.createFunctionExpression(void 0,yr?t.createToken(42):void 0,void 0,void 0,void 0,void 0,I.checkDefined(dt(t.createBlock(Tn,!0),Y,Cs))),Qr))]),4194304)),Ki=t.createVariableDeclarationList(Dt(xt.loopOutParameters,hc));return{functionName:gr,containsYield:yr,functionDeclaration:vi,part:Ki}}function Cl(_e,xt,gr){let yr=t.createUniqueName("_loop");i();let Qr=dt(_e.statement,Y,fa,t.liftToBlock),Tn=l(),vi=[];(pl(_e)||Bl(_e))&&(xt.conditionVariable=t.createUniqueName("inc"),_e.incrementor?vi.push(t.createIfStatement(xt.conditionVariable,t.createExpressionStatement(I.checkDefined(dt(_e.incrementor,Y,At))),t.createExpressionStatement(t.createAssignment(xt.conditionVariable,t.createTrue())))):vi.push(t.createIfStatement(t.createLogicalNot(xt.conditionVariable),t.createExpressionStatement(t.createAssignment(xt.conditionVariable,t.createTrue())))),pl(_e)&&vi.push(t.createIfStatement(t.createPrefixUnaryExpression(54,I.checkDefined(dt(_e.condition,Y,At))),I.checkDefined(dt(t.createBreakStatement(),Y,fa))))),I.assert(Qr),Cs(Qr)?ti(vi,Qr.statements):vi.push(Qr),tl(xt.loopOutParameters,1,1,vi),kv(vi,Tn);let Ki=t.createBlock(vi,!0);Cs(Qr)&&ii(Ki,Qr);let Na=(_e.statement.transformFlags&1048576)!==0,U=1048576;xt.containsLexicalThis&&(U|=16),Na&&E&4&&(U|=524288);let rt=t.createVariableStatement(void 0,qn(t.createVariableDeclarationList([t.createVariableDeclaration(yr,void 0,void 0,qn(t.createFunctionExpression(void 0,Na?t.createToken(42):void 0,void 0,void 0,xt.loopParameters,void 0,Ki),U))]),4194304)),Yt=B(yr,xt,gr,Na);return{functionName:yr,containsYield:Na,functionDeclaration:rt,part:Yt}}function hp(_e,xt){let gr=xt===0?_e.outParamName:_e.originalName,yr=xt===0?_e.originalName:_e.outParamName;return t.createBinaryExpression(yr,64,gr)}function tl(_e,xt,gr,yr){for(let Qr of _e)Qr.flags&xt&&yr.push(t.createExpressionStatement(hp(Qr,gr)))}function Pl(_e,xt){let gr=t.createCallExpression(_e,void 0,[]),yr=xt?t.createYieldExpression(t.createToken(42),qn(gr,8388608)):gr;return t.createExpressionStatement(yr)}function B(_e,xt,gr,yr){let Qr=[],Tn=!(xt.nonLocalJumps&-5)&&!xt.labeledNonLocalBreaks&&!xt.labeledNonLocalContinues,vi=t.createCallExpression(_e,void 0,Dt(xt.loopParameters,Na=>Na.name)),Ki=yr?t.createYieldExpression(t.createToken(42),qn(vi,8388608)):vi;if(Tn)Qr.push(t.createExpressionStatement(Ki)),tl(xt.loopOutParameters,1,0,Qr);else{let Na=t.createUniqueName("state"),U=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Na,void 0,void 0,Ki)]));if(Qr.push(U),tl(xt.loopOutParameters,1,0,Qr),xt.nonLocalJumps&8){let rt;gr?(gr.nonLocalJumps|=8,rt=t.createReturnStatement(Na)):rt=t.createReturnStatement(t.createPropertyAccessExpression(Na,"value")),Qr.push(t.createIfStatement(t.createTypeCheck(Na,"object"),rt))}if(xt.nonLocalJumps&2&&Qr.push(t.createIfStatement(t.createStrictEquality(Na,t.createStringLiteral("break")),t.createBreakStatement())),xt.labeledNonLocalBreaks||xt.labeledNonLocalContinues){let rt=[];Et(xt.labeledNonLocalBreaks,!0,Na,gr,rt),Et(xt.labeledNonLocalContinues,!1,Na,gr,rt),Qr.push(t.createSwitchStatement(Na,t.createCaseBlock(rt)))}}return Qr}function Xe(_e,xt,gr,yr){xt?(_e.labeledNonLocalBreaks||(_e.labeledNonLocalBreaks=new Map),_e.labeledNonLocalBreaks.set(gr,yr)):(_e.labeledNonLocalContinues||(_e.labeledNonLocalContinues=new Map),_e.labeledNonLocalContinues.set(gr,yr))}function Et(_e,xt,gr,yr,Qr){_e&&_e.forEach((Tn,vi)=>{let Ki=[];if(!yr||yr.labels&&yr.labels.get(vi)){let Na=t.createIdentifier(vi);Ki.push(xt?t.createBreakStatement(Na):t.createContinueStatement(Na))}else Xe(yr,xt,vi,Tn),Ki.push(t.createReturnStatement(gr));Qr.push(t.createCaseClause(t.createStringLiteral(Tn),Ki))})}function ur(_e,xt,gr,yr,Qr){let Tn=xt.name;if(Os(Tn))for(let vi of Tn.elements)Ju(vi)||ur(_e,vi,gr,yr,Qr);else{gr.push(t.createParameterDeclaration(void 0,void 0,Tn));let vi=m.hasNodeCheckFlag(xt,65536);if(vi||Qr){let Ki=t.createUniqueName("out_"+fi(Tn)),Na=0;vi&&(Na|=1),BS(_e)&&(_e.initializer&&m.isBindingCapturedByNode(_e.initializer,xt)&&(Na|=2),(_e.condition&&m.isBindingCapturedByNode(_e.condition,xt)||_e.incrementor&&m.isBindingCapturedByNode(_e.incrementor,xt))&&(Na|=1)),yr.push({flags:Na,originalName:Tn,outParamName:Ki})}}}function cn(_e,xt,gr,yr){let Qr=xt.properties,Tn=Qr.length;for(let vi=yr;vi<Tn;vi++){let Ki=Qr[vi];switch(Ki.kind){case 177:case 178:let Na=E2(xt.properties,Ki);Ki===Na.firstAccessor&&_e.push(Rt(gr,Na,xt,!!xt.multiLine));break;case 174:_e.push(an(Ki,gr,xt,xt.multiLine));break;case 303:_e.push(wi(Ki,gr,xt.multiLine));break;case 304:_e.push(Bn(Ki,gr,xt.multiLine));break;default:I.failBadSyntaxKind(xt);break}}}function wi(_e,xt,gr){let yr=t.createAssignment(Kk(t,xt,I.checkDefined(dt(_e.name,Y,su))),I.checkDefined(dt(_e.initializer,Y,At)));return Ot(yr,_e),gr&&Zp(yr),yr}function Bn(_e,xt,gr){let yr=t.createAssignment(Kk(t,xt,I.checkDefined(dt(_e.name,Y,su))),t.cloneNode(_e.name));return Ot(yr,_e),gr&&Zp(yr),yr}function an(_e,xt,gr,yr){let Qr=t.createAssignment(Kk(t,xt,I.checkDefined(dt(_e.name,Y,su))),In(_e,_e,void 0,gr));return Ot(Qr,_e),yr&&Zp(Qr),Qr}function ua(_e){let xt=z(7104,0),gr;if(I.assert(!!_e.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),Os(_e.variableDeclaration.name)){let yr=t.createTempVariable(void 0),Qr=t.createVariableDeclaration(yr);Ot(Qr,_e.variableDeclaration);let Tn=H2(_e.variableDeclaration,Y,e,0,yr),vi=t.createVariableDeclarationList(Tn);Ot(vi,_e.variableDeclaration);let Ki=t.createVariableStatement(void 0,vi);gr=t.updateCatchClause(_e,Qr,ma(_e.block,Ki))}else gr=Gr(_e,Y,e);return H(xt,0,0),gr}function ma(_e,xt){let gr=dn(_e.statements,Y,fa);return t.updateBlock(_e,[xt,...gr])}function sc(_e){I.assert(!po(_e.name));let xt=In(_e,NS(_e,-1),void 0,void 0);return qn(xt,1024|Ao(xt)),Ot(t.createPropertyAssignment(_e.name,xt),_e)}function To(_e){I.assert(!po(_e.name));let xt=M;M=void 0;let gr=z(32670,65),yr,Qr=kl(_e.parameters,Y,e),Tn=We(_e);return _e.kind===177?yr=t.updateGetAccessorDeclaration(_e,_e.modifiers,_e.name,Qr,_e.type,Tn):yr=t.updateSetAccessorDeclaration(_e,_e.modifiers,_e.name,Qr,Tn),H(gr,229376,0),M=xt,yr}function Wc(_e){return Ot(t.createPropertyAssignment(_e.name,ge(t.cloneNode(_e.name))),_e)}function El(_e){return Gr(_e,Y,e)}function Hl(_e){return Gr(_e,Y,e)}function Fc(_e){return Pt(_e.elements,gm)?Bf(_e.elements,!1,!!_e.multiLine,!!_e.elements.hasTrailingComma):Gr(_e,Y,e)}function Gl(_e){if(mg(_e)&1)return X_(_e);let xt=Ll(_e.expression);return xt.kind===108||g_(xt)||Pt(_e.arguments,gm)?Dp(_e,!0):t.updateCallExpression(_e,I.checkDefined(dt(_e.expression,te,At)),void 0,dn(_e.arguments,Y,At))}function X_(_e){let xt=Js(Js(Ll(_e.expression),Bc).body,Cs),gr=lo=>Rl(lo)&&!!ho(lo.declarationList.declarations).initializer,yr=M;M=void 0;let Qr=dn(xt.statements,fe,fa);M=yr;let Tn=Cn(Qr,gr),vi=Cn(Qr,lo=>!gr(lo)),Na=Js(ho(Tn),Rl).declarationList.declarations[0],U=Ll(Na.initializer),rt=_i(U,Yu);!rt&&Vn(U)&&U.operatorToken.kind===28&&(rt=_i(U.left,Yu));let Yt=Js(rt?Ll(rt.right):U,Ls),Xr=Js(Ll(Yt.expression),Ic),Ya=Xr.body.statements,aa=0,qa=-1,ss=[];if(rt){let lo=_i(Ya[aa],Zu);lo&&(ss.push(lo),aa++),ss.push(Ya[aa]),aa++,ss.push(t.createExpressionStatement(t.createAssignment(rt.left,Js(Na.name,Ye))))}for(;!md(b0(Ya,qa));)qa--;ti(ss,Ya,aa,qa),qa<-1&&ti(ss,Ya,qa+1);let Uc=_i(b0(Ya,qa),md);for(let lo of vi)md(lo)&&Uc?.expression&&!Ye(Uc.expression)?ss.push(Uc):ss.push(lo);return ti(ss,Tn,1),t.restoreOuterExpressions(_e.expression,t.restoreOuterExpressions(Na.initializer,t.restoreOuterExpressions(rt&&rt.right,t.updateCallExpression(Yt,t.restoreOuterExpressions(Yt.expression,t.updateFunctionExpression(Xr,void 0,void 0,void 0,void 0,Xr.parameters,void 0,t.updateBlock(Xr.body,ss))),void 0,Yt.arguments))))}function Dp(_e,xt){if(_e.transformFlags&32768||_e.expression.kind===108||g_(Ll(_e.expression))){let{target:gr,thisArg:yr}=t.createCallBinding(_e.expression,p);_e.expression.kind===108&&qn(yr,8);let Qr;if(_e.transformFlags&32768?Qr=t.createFunctionApplyCall(I.checkDefined(dt(gr,te,At)),_e.expression.kind===108?yr:I.checkDefined(dt(yr,Y,At)),Bf(_e.arguments,!0,!1,!1)):Qr=Ot(t.createFunctionCallCall(I.checkDefined(dt(gr,te,At)),_e.expression.kind===108?yr:I.checkDefined(dt(yr,Y,At)),dn(_e.arguments,Y,At)),_e),_e.expression.kind===108){let Tn=t.createLogicalOr(Qr,da());Qr=xt?t.createAssignment(ie(),Tn):Tn}return ii(Qr,_e)}return wk(_e)&&(E|=131072),Gr(_e,Y,e)}function Ld(_e){if(Pt(_e.arguments,gm)){let{target:xt,thisArg:gr}=t.createCallBinding(t.createPropertyAccessExpression(_e.expression,"bind"),p);return t.createNewExpression(t.createFunctionApplyCall(I.checkDefined(dt(xt,Y,At)),gr,Bf(t.createNodeArray([t.createVoidZero(),..._e.arguments]),!0,!1,!1)),void 0,[])}return Gr(_e,Y,e)}function Bf(_e,xt,gr,yr){let Qr=_e.length,Tn=js(z7(_e,$e,(U,rt,Yt,Xr)=>rt(U,gr,yr&&Xr===Qr)));if(Tn.length===1){let U=Tn[0];if(xt&&!g.downlevelIteration||qX(U.expression)||V4(U.expression,"___spreadArray"))return U.expression}let vi=n(),Ki=Tn[0].kind!==0,Na=Ki?t.createArrayLiteralExpression():Tn[0].expression;for(let U=Ki?0:1;U<Tn.length;U++){let rt=Tn[U];Na=vi.createSpreadArrayHelper(Na,rt.expression,rt.kind===1&&!xt)}return Na}function $e(_e){return gm(_e)?nr:za}function nr(_e){return Dt(_e,Nn)}function Nn(_e){I.assertNode(_e,gm);let xt=dt(_e.expression,Y,At);I.assert(xt);let gr=V4(xt,"___read"),yr=gr||qX(xt)?2:1;return g.downlevelIteration&&yr===1&&!kp(xt)&&!gr&&(xt=n().createReadHelper(xt,void 0),yr=2),SBe(yr,xt)}function za(_e,xt,gr){let yr=t.createArrayLiteralExpression(dn(t.createNodeArray(_e,gr),Y,At),xt);return SBe(0,yr)}function Fs(_e){return dt(_e.expression,Y,At)}function Io(_e){return Ot(t.createStringLiteral(_e.text),_e)}function Jc(_e){return _e.hasExtendedUnicodeEscape?Ot(t.createStringLiteral(_e.text),_e):_e}function Kl(_e){return _e.numericLiteralFlags&384?Ot(t.createNumericLiteral(_e.text),_e):_e}function hl(_e){return UZ(e,_e,Y,S,F,1)}function yl(_e){let xt=t.createStringLiteral(_e.head.text);for(let gr of _e.templateSpans){let yr=[I.checkDefined(dt(gr.expression,Y,At))];gr.literal.text.length>0&&yr.push(t.createStringLiteral(gr.literal.text)),xt=t.createCallExpression(t.createPropertyAccessExpression(xt,"concat"),void 0,yr)}return Ot(xt,_e)}function ru(){return t.createUniqueName("_super",48)}function Nu(_e,xt){let gr=E&8&&!xt?t.createPropertyAccessExpression(ii(ru(),_e),"prototype"):ru();return ii(gr,_e),yu(gr,_e),Eo(gr,_e),gr}function Au(_e){return _e.keywordToken===105&&_e.name.escapedText==="target"?(E|=32768,t.createUniqueName("_newTarget",48)):_e}function Y_(_e,xt,gr){if(L&1&&Ss(xt)){let yr=z(32670,Ao(xt)&16?81:65);b(_e,xt,gr),H(yr,0,0);return}b(_e,xt,gr)}function qf(){L&2||(L|=2,e.enableSubstitution(80))}function Tg(){L&1||(L|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function gd(_e,xt){return xt=x(_e,xt),_e===1?Bd(xt):Ye(xt)?Qh(xt):xt}function Qh(_e){if(L&2&&!DY(_e)){let xt=ds(_e,Ye);if(xt&&Jv(xt))return Ot(t.getGeneratedNameForNode(xt),_e)}return _e}function Jv(_e){switch(_e.parent.kind){case 208:case 263:case 266:case 260:return _e.parent.name===_e&&m.isDeclarationWithCollidingName(_e.parent)}return!1}function Bd(_e){switch(_e.kind){case 80:return n_(_e);case 110:return Xh(_e)}return _e}function n_(_e){if(L&2&&!DY(_e)){let xt=m.getReferencedDeclarationWithCollidingName(_e);if(xt&&!(Ri(xt)&&xf(xt,_e)))return Ot(t.getGeneratedNameForNode(ls(xt)),_e)}return _e}function xf(_e,xt){let gr=ds(xt);if(!gr||gr===_e||gr.end<=_e.pos||gr.pos>=_e.end)return!1;let yr=Jg(_e);for(;gr;){if(gr===yr||gr===_e)return!1;if(ou(gr)&&gr.parent===_e)return!0;gr=gr.parent}return!1}function Xh(_e){return L&1&&E&16?Ot(ie(),_e):_e}function hd(_e,xt){return Vs(xt)?t.getInternalName(_e):t.createPropertyAccessExpression(t.getInternalName(_e),"prototype")}function zv(_e,xt){if(!_e||!xt||Pt(_e.parameters))return!1;let gr=Yl(_e.body.statements);if(!gr||!Pc(gr)||gr.kind!==244)return!1;let yr=gr.expression;if(!Pc(yr)||yr.kind!==213)return!1;let Qr=yr.expression;if(!Pc(Qr)||Qr.kind!==108)return!1;let Tn=Zd(yr.arguments);if(!Tn||!Pc(Tn)||Tn.kind!==230)return!1;let vi=Tn.expression;return Ye(vi)&&vi.escapedText==="arguments"}}function o8t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function a0e(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:l,hoistVariableDeclaration:p}=e,g=e.getCompilerOptions(),m=Po(g),x=e.getEmitResolver(),b=e.onSubstituteNode;e.onSubstituteNode=ke;let S,P,E,N,F,M,L,W,z,H,X=1,ne,ae,Y,Ee,fe=0,te=0,de,me,ve,Pe,Oe,ie,Ne,it;return Kg(e,ze);function ze($e){if($e.isDeclarationFile||!($e.transformFlags&2048))return $e;let nr=Gr($e,ge,e);return Rv(nr,e.readEmitHelpers()),nr}function ge($e){let nr=$e.transformFlags;return N?Me($e):E?Te($e):Dc($e)&&$e.asteriskToken?Tt($e):nr&2048?Gr($e,ge,e):$e}function Me($e){switch($e.kind){case 246:return ks($e);case 247:return Vr($e);case 255:return Rt($e);case 256:return ut($e);default:return Te($e)}}function Te($e){switch($e.kind){case 262:return xe($e);case 218:return nt($e);case 177:case 178:return pe($e);case 243:return qe($e);case 248:return ft($e);case 249:return he($e);case 252:return pt($e);case 251:return oe($e);case 253:return $t($e);default:return $e.transformFlags&1048576?gt($e):$e.transformFlags&4196352?Gr($e,ge,e):$e}}function gt($e){switch($e.kind){case 226:return je($e);case 356:return Or($e);case 227:return Ct($e);case 229:return pr($e);case 209:return vn($e);case 210:return ts($e);case 212:return Gt($e);case 213:return hi($e);case 214:return $a($e);default:return Gr($e,ge,e)}}function Tt($e){switch($e.kind){case 262:return xe($e);case 218:return nt($e);default:return I.failBadSyntaxKind($e)}}function xe($e){if($e.asteriskToken)$e=ii(Ot(t.createFunctionDeclaration($e.modifiers,void 0,$e.name,void 0,kl($e.parameters,ge,e),void 0,He($e.body)),$e),$e);else{let nr=E,Nn=N;E=!1,N=!1,$e=Gr($e,ge,e),E=nr,N=Nn}if(E){l($e);return}else return $e}function nt($e){if($e.asteriskToken)$e=ii(Ot(t.createFunctionExpression(void 0,void 0,$e.name,void 0,kl($e.parameters,ge,e),void 0,He($e.body)),$e),$e);else{let nr=E,Nn=N;E=!1,N=!1,$e=Gr($e,ge,e),E=nr,N=Nn}return $e}function pe($e){let nr=E,Nn=N;return E=!1,N=!1,$e=Gr($e,ge,e),E=nr,N=Nn,$e}function He($e){let nr=[],Nn=E,za=N,Fs=F,Io=M,Jc=L,Kl=W,hl=z,yl=H,ru=X,Nu=ne,Au=ae,Y_=Y,qf=Ee;E=!0,N=!1,F=void 0,M=void 0,L=void 0,W=void 0,z=void 0,H=void 0,X=1,ne=void 0,ae=void 0,Y=void 0,Ee=t.createTempVariable(void 0),i();let Tg=t.copyPrologue($e.statements,nr,!1,ge);ui($e.statements,Tg);let gd=Xe();return kv(nr,s()),nr.push(t.createReturnStatement(gd)),E=Nn,N=za,F=Fs,M=Io,L=Jc,W=Kl,z=hl,H=yl,X=ru,ne=Nu,ae=Au,Y=Y_,Ee=qf,Ot(t.createBlock(nr,$e.multiLine),$e)}function qe($e){if($e.transformFlags&1048576){wn($e.declarationList);return}else{if(Ao($e)&2097152)return $e;for(let Nn of $e.declarationList.declarations)p(Nn.name);let nr=k4($e.declarationList);return nr.length===0?void 0:Eo(t.createExpressionStatement(t.inlineExpressions(Dt(nr,Di))),$e)}}function je($e){let nr=zQ($e);switch(nr){case 0:return jt($e);case 1:return st($e);default:return I.assertNever(nr)}}function st($e){let{left:nr,right:Nn}=$e;if(We(Nn)){let za;switch(nr.kind){case 211:za=t.updatePropertyAccessExpression(nr,re(I.checkDefined(dt(nr.expression,ge,Qf))),nr.name);break;case 212:za=t.updateElementAccessExpression(nr,re(I.checkDefined(dt(nr.expression,ge,Qf))),re(I.checkDefined(dt(nr.argumentExpression,ge,At))));break;default:za=I.checkDefined(dt(nr,ge,At));break}let Fs=$e.operatorToken.kind;return v3(Fs)?Ot(t.createAssignment(za,Ot(t.createBinaryExpression(re(za),b3(Fs),I.checkDefined(dt(Nn,ge,At))),$e)),$e):t.updateBinaryExpression($e,za,$e.operatorToken,I.checkDefined(dt(Nn,ge,At)))}return Gr($e,ge,e)}function jt($e){return We($e.right)?Zme($e.operatorToken.kind)?nn($e):$e.operatorToken.kind===28?ar($e):t.updateBinaryExpression($e,re(I.checkDefined(dt($e.left,ge,At))),$e.operatorToken,I.checkDefined(dt($e.right,ge,At))):Gr($e,ge,e)}function ar($e){let nr=[];return Nn($e.left),Nn($e.right),t.inlineExpressions(nr);function Nn(za){Vn(za)&&za.operatorToken.kind===28?(Nn(za.left),Nn(za.right)):(We(za)&&nr.length>0&&(B(1,[t.createExpressionStatement(t.inlineExpressions(nr))]),nr=[]),nr.push(I.checkDefined(dt(za,ge,At))))}}function Or($e){let nr=[];for(let Nn of $e.elements)Vn(Nn)&&Nn.operatorToken.kind===28?nr.push(ar(Nn)):(We(Nn)&&nr.length>0&&(B(1,[t.createExpressionStatement(t.inlineExpressions(nr))]),nr=[]),nr.push(I.checkDefined(dt(Nn,ge,At))));return t.inlineExpressions(nr)}function nn($e){let nr=rr(),Nn=Ft();return qo(Nn,I.checkDefined(dt($e.left,ge,At)),$e.left),$e.operatorToken.kind===56?hc(nr,Nn,$e.left):fr(nr,Nn,$e.left),qo(Nn,I.checkDefined(dt($e.right,ge,At)),$e.right),Le(nr),Nn}function Ct($e){if(We($e.whenTrue)||We($e.whenFalse)){let nr=rr(),Nn=rr(),za=Ft();return hc(nr,I.checkDefined(dt($e.condition,ge,At)),$e.condition),qo(za,I.checkDefined(dt($e.whenTrue,ge,At)),$e.whenTrue),jo(Nn),Le(nr),qo(za,I.checkDefined(dt($e.whenFalse,ge,At)),$e.whenFalse),Le(Nn),za}return Gr($e,ge,e)}function pr($e){let nr=rr(),Nn=dt($e.expression,ge,At);if($e.asteriskToken){let za=Ao($e.expression)&8388608?Nn:Ot(n().createValuesHelper(Nn),$e);uu(za,$e)}else Cl(Nn,$e);return Le(nr),Q_($e)}function vn($e){return ta($e.elements,void 0,void 0,$e.multiLine)}function ta($e,nr,Nn,za){let Fs=qt($e),Io;if(Fs>0){Io=Ft();let hl=dn($e,ge,At,0,Fs);qo(Io,t.createArrayLiteralExpression(nr?[nr,...hl]:hl)),nr=void 0}let Jc=Qu($e,Kl,[],Fs);return Io?t.createArrayConcatCall(Io,[t.createArrayLiteralExpression(Jc,za)]):Ot(t.createArrayLiteralExpression(nr?[nr,...Jc]:Jc,za),Nn);function Kl(hl,yl){if(We(yl)&&hl.length>0){let ru=Io!==void 0;Io||(Io=Ft()),qo(Io,ru?t.createArrayConcatCall(Io,[t.createArrayLiteralExpression(hl,za)]):t.createArrayLiteralExpression(nr?[nr,...hl]:hl,za)),nr=void 0,hl=[]}return hl.push(I.checkDefined(dt(yl,ge,At))),hl}}function ts($e){let nr=$e.properties,Nn=$e.multiLine,za=qt(nr),Fs=Ft();qo(Fs,t.createObjectLiteralExpression(dn(nr,ge,k0,0,za),Nn));let Io=Qu(nr,Jc,[],za);return Io.push(Nn?Zp(Xo(Ot(t.cloneNode(Fs),Fs),Fs.parent)):Fs),t.inlineExpressions(Io);function Jc(Kl,hl){We(hl)&&Kl.length>0&&(Gs(t.createExpressionStatement(t.inlineExpressions(Kl))),Kl=[]);let yl=Zhe(t,$e,hl,Fs),ru=dt(yl,ge,At);return ru&&(Nn&&Zp(ru),Kl.push(ru)),Kl}}function Gt($e){return We($e.argumentExpression)?t.updateElementAccessExpression($e,re(I.checkDefined(dt($e.expression,ge,Qf))),I.checkDefined(dt($e.argumentExpression,ge,At))):Gr($e,ge,e)}function hi($e){if(!_d($e)&&Ge($e.arguments,We)){let{target:nr,thisArg:Nn}=t.createCallBinding($e.expression,p,m,!0);return ii(Ot(t.createFunctionApplyCall(re(I.checkDefined(dt(nr,ge,Qf))),Nn,ta($e.arguments)),$e),$e)}return Gr($e,ge,e)}function $a($e){if(Ge($e.arguments,We)){let{target:nr,thisArg:Nn}=t.createCallBinding(t.createPropertyAccessExpression($e.expression,"bind"),p);return ii(Ot(t.createNewExpression(t.createFunctionApplyCall(re(I.checkDefined(dt(nr,ge,At))),Nn,ta($e.arguments,t.createVoidZero())),void 0,[]),$e),$e)}return Gr($e,ge,e)}function ui($e,nr=0){let Nn=$e.length;for(let za=nr;za<Nn;za++)Gi($e[za])}function Wn($e){Cs($e)?ui($e.statements):Gi($e)}function Gi($e){let nr=N;N||(N=We($e)),at($e),N=nr}function at($e){switch($e.kind){case 241:return It($e);case 244:return Cr($e);case 245:return Pi($e);case 246:return da($e);case 247:return no($e);case 248:return _s($e);case 249:return Qt($e);case 251:return wt($e);case 252:return Ue($e);case 253:return vt($e);case 254:return Qe($e);case 255:return Lt($e);case 256:return Xt($e);case 257:return lr($e);case 258:return In($e);default:return Gs(dt($e,ge,fa))}}function It($e){We($e)?ui($e.statements):Gs(dt($e,ge,fa))}function Cr($e){Gs(dt($e,ge,fa))}function wn($e){for(let Io of $e.declarations){let Jc=t.cloneNode(Io.name);yu(Jc,Io.name),p(Jc)}let nr=k4($e),Nn=nr.length,za=0,Fs=[];for(;za<Nn;){for(let Io=za;Io<Nn;Io++){let Jc=nr[Io];if(We(Jc.initializer)&&Fs.length>0)break;Fs.push(Di(Jc))}Fs.length&&(Gs(t.createExpressionStatement(t.inlineExpressions(Fs))),za+=Fs.length,Fs=[])}}function Di($e){return Eo(t.createAssignment(Eo(t.cloneNode($e.name),$e.name),I.checkDefined(dt($e.initializer,ge,At))),$e)}function Pi($e){if(We($e))if(We($e.thenStatement)||We($e.elseStatement)){let nr=rr(),Nn=$e.elseStatement?rr():void 0;hc($e.elseStatement?Nn:nr,I.checkDefined(dt($e.expression,ge,At)),$e.expression),Wn($e.thenStatement),$e.elseStatement&&(jo(nr),Le(Nn),Wn($e.elseStatement)),Le(nr)}else Gs(dt($e,ge,fa));else Gs(dt($e,ge,fa))}function da($e){if(We($e)){let nr=rr(),Nn=rr();or(nr),Le(Nn),Wn($e.statement),Le(nr),fr(Nn,I.checkDefined(dt($e.expression,ge,At))),Mr()}else Gs(dt($e,ge,fa))}function ks($e){return N?(Pr(),$e=Gr($e,ge,e),Mr(),$e):Gr($e,ge,e)}function no($e){if(We($e)){let nr=rr(),Nn=or(nr);Le(nr),hc(Nn,I.checkDefined(dt($e.expression,ge,At))),Wn($e.statement),jo(nr),Mr()}else Gs(dt($e,ge,fa))}function Vr($e){return N?(Pr(),$e=Gr($e,ge,e),Mr(),$e):Gr($e,ge,e)}function _s($e){if(We($e)){let nr=rr(),Nn=rr(),za=or(Nn);if($e.initializer){let Fs=$e.initializer;mp(Fs)?wn(Fs):Gs(Ot(t.createExpressionStatement(I.checkDefined(dt(Fs,ge,At))),Fs))}Le(nr),$e.condition&&hc(za,I.checkDefined(dt($e.condition,ge,At))),Wn($e.statement),Le(Nn),$e.incrementor&&Gs(Ot(t.createExpressionStatement(I.checkDefined(dt($e.incrementor,ge,At))),$e.incrementor)),jo(nr),Mr()}else Gs(dt($e,ge,fa))}function ft($e){N&&Pr();let nr=$e.initializer;if(nr&&mp(nr)){for(let za of nr.declarations)p(za.name);let Nn=k4(nr);$e=t.updateForStatement($e,Nn.length>0?t.inlineExpressions(Dt(Nn,Di)):void 0,dt($e.condition,ge,At),dt($e.incrementor,ge,At),Rf($e.statement,ge,e))}else $e=Gr($e,ge,e);return N&&Mr(),$e}function Qt($e){if(We($e)){let nr=Ft(),Nn=Ft(),za=Ft(),Fs=t.createLoopVariable(),Io=$e.initializer;p(Fs),qo(nr,I.checkDefined(dt($e.expression,ge,At))),qo(Nn,t.createArrayLiteralExpression()),Gs(t.createForInStatement(za,nr,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Nn,"push"),void 0,[za])))),qo(Fs,t.createNumericLiteral(0));let Jc=rr(),Kl=rr(),hl=or(Kl);Le(Jc),hc(hl,t.createLessThan(Fs,t.createPropertyAccessExpression(Nn,"length"))),qo(za,t.createElementAccessExpression(Nn,Fs)),hc(Kl,t.createBinaryExpression(za,103,nr));let yl;if(mp(Io)){for(let ru of Io.declarations)p(ru.name);yl=t.cloneNode(Io.declarations[0].name)}else yl=I.checkDefined(dt(Io,ge,At)),I.assert(Qf(yl));qo(yl,za),Wn($e.statement),Le(Kl),Gs(t.createExpressionStatement(t.createPostfixIncrement(Fs))),jo(Jc),Mr()}else Gs(dt($e,ge,fa))}function he($e){N&&Pr();let nr=$e.initializer;if(mp(nr)){for(let Nn of nr.declarations)p(Nn.name);$e=t.updateForInStatement($e,nr.declarations[0].name,I.checkDefined(dt($e.expression,ge,At)),I.checkDefined(dt($e.statement,ge,fa,t.liftToBlock)))}else $e=Gr($e,ge,e);return N&&Mr(),$e}function wt($e){let nr=us($e.label?fi($e.label):void 0);nr>0?jo(nr,$e):Gs($e)}function oe($e){if(N){let nr=us($e.label&&fi($e.label));if(nr>0)return Ro(nr,$e)}return Gr($e,ge,e)}function Ue($e){let nr=la($e.label?fi($e.label):void 0);nr>0?jo(nr,$e):Gs($e)}function pt($e){if(N){let nr=la($e.label&&fi($e.label));if(nr>0)return Ro(nr,$e)}return Gr($e,ge,e)}function vt($e){hp(dt($e.expression,ge,At),$e)}function $t($e){return el(dt($e.expression,ge,At),$e)}function Qe($e){We($e)?(yn(re(I.checkDefined(dt($e.expression,ge,At)))),Wn($e.statement),yt()):Gs(dt($e,ge,fa))}function Lt($e){if(We($e.caseBlock)){let nr=$e.caseBlock,Nn=nr.clauses.length,za=$r(),Fs=re(I.checkDefined(dt($e.expression,ge,At))),Io=[],Jc=-1;for(let yl=0;yl<Nn;yl++){let ru=nr.clauses[yl];Io.push(rr()),ru.kind===297&&Jc===-1&&(Jc=yl)}let Kl=0,hl=[];for(;Kl<Nn;){let yl=0;for(let ru=Kl;ru<Nn;ru++){let Nu=nr.clauses[ru];if(Nu.kind===296){if(We(Nu.expression)&&hl.length>0)break;hl.push(t.createCaseClause(I.checkDefined(dt(Nu.expression,ge,At)),[Ro(Io[ru],Nu.expression)]))}else yl++}hl.length&&(Gs(t.createSwitchStatement(Fs,t.createCaseBlock(hl))),Kl+=hl.length,hl=[]),yl>0&&(Kl+=yl,yl=0)}Jc>=0?jo(Io[Jc]):jo(za);for(let yl=0;yl<Nn;yl++)Le(Io[yl]),ui(nr.clauses[yl].statements);Sr()}else Gs(dt($e,ge,fa))}function Rt($e){return N&&Wr(),$e=Gr($e,ge,e),N&&Sr(),$e}function Xt($e){We($e)?(Is(fi($e.label)),Wn($e.statement),Xs()):Gs(dt($e,ge,fa))}function ut($e){return N&&ji(fi($e.label)),$e=Gr($e,ge,e),N&&Xs(),$e}function lr($e){tl(I.checkDefined(dt($e.expression??t.createVoidZero(),ge,At)),$e)}function In($e){We($e)?(Bt(),Wn($e.tryBlock),$e.catchClause&&(cr($e.catchClause.variableDeclaration),Wn($e.catchClause.block)),$e.finallyBlock&&(er(),Wn($e.finallyBlock)),zr()):Gs(Gr($e,ge,e))}function We($e){return!!$e&&($e.transformFlags&1048576)!==0}function qt($e){let nr=$e.length;for(let Nn=0;Nn<nr;Nn++)if(We($e[Nn]))return Nn;return-1}function ke($e,nr){return nr=b($e,nr),$e===1?$(nr):nr}function $($e){return Ye($e)?Ke($e):$e}function Ke($e){if(!Xc($e)&&S&&S.has(fi($e))){let nr=al($e);if(Ye(nr)&&nr.parent){let Nn=x.getReferencedValueDeclaration(nr);if(Nn){let za=P[jf(Nn)];if(za){let Fs=Xo(Ot(t.cloneNode(za),za),za.parent);return Eo(Fs,$e),yu(Fs,$e),Fs}}}}return $e}function re($e){if(Xc($e)||Ao($e)&8192)return $e;let nr=t.createTempVariable(p);return qo(nr,$e,$e),nr}function Ft($e){let nr=$e?t.createUniqueName($e):t.createTempVariable(void 0);return p(nr),nr}function rr(){z||(z=[]);let $e=X;return X++,z[$e]=-1,$e}function Le($e){I.assert(z!==void 0,"No labels were defined."),z[$e]=ne?ne.length:0}function kt($e){F||(F=[],L=[],M=[],W=[]);let nr=L.length;return L[nr]=0,M[nr]=ne?ne.length:0,F[nr]=$e,W.push($e),nr}function dr(){let $e=kn();if($e===void 0)return I.fail("beginBlock was never called.");let nr=L.length;return L[nr]=1,M[nr]=ne?ne.length:0,F[nr]=$e,W.pop(),$e}function kn(){return dc(W)}function Kr(){let $e=kn();return $e&&$e.kind}function yn($e){let nr=rr(),Nn=rr();Le(nr),kt({kind:1,expression:$e,startLabel:nr,endLabel:Nn})}function yt(){I.assert(Kr()===1);let $e=dr();Le($e.endLabel)}function Bt(){let $e=rr(),nr=rr();return Le($e),kt({kind:0,state:0,startLabel:$e,endLabel:nr}),as(),nr}function cr($e){I.assert(Kr()===0);let nr;if(Xc($e.name))nr=$e.name,p($e.name);else{let Io=fi($e.name);nr=Ft(Io),S||(S=new Map,P=[],e.enableSubstitution(80)),S.set(Io,!0),P[jf($e)]=nr}let Nn=kn();I.assert(Nn.state<1);let za=Nn.endLabel;jo(za);let Fs=rr();Le(Fs),Nn.state=1,Nn.catchVariable=nr,Nn.catchLabel=Fs,qo(nr,t.createCallExpression(t.createPropertyAccessExpression(Ee,"sent"),void 0,[])),as()}function er(){I.assert(Kr()===0);let $e=kn();I.assert($e.state<2);let nr=$e.endLabel;jo(nr);let Nn=rr();Le(Nn),$e.state=2,$e.finallyLabel=Nn}function zr(){I.assert(Kr()===0);let $e=dr();$e.state<2?jo($e.endLabel):Pl(),Le($e.endLabel),as(),$e.state=3}function Pr(){kt({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function or($e){let nr=rr();return kt({kind:3,isScript:!1,breakLabel:nr,continueLabel:$e}),nr}function Mr(){I.assert(Kr()===3);let $e=dr(),nr=$e.breakLabel;$e.isScript||Le(nr)}function Wr(){kt({kind:2,isScript:!0,breakLabel:-1})}function $r(){let $e=rr();return kt({kind:2,isScript:!1,breakLabel:$e}),$e}function Sr(){I.assert(Kr()===2);let $e=dr(),nr=$e.breakLabel;$e.isScript||Le(nr)}function ji($e){kt({kind:4,isScript:!0,labelText:$e,breakLabel:-1})}function Is($e){let nr=rr();kt({kind:4,isScript:!1,labelText:$e,breakLabel:nr})}function Xs(){I.assert(Kr()===4);let $e=dr();$e.isScript||Le($e.breakLabel)}function Ps($e){return $e.kind===2||$e.kind===3}function Vl($e){return $e.kind===4}function pl($e){return $e.kind===3}function Bl($e,nr){for(let Nn=nr;Nn>=0;Nn--){let za=W[Nn];if(Vl(za)){if(za.labelText===$e)return!0}else break}return!1}function la($e){if(W)if($e)for(let nr=W.length-1;nr>=0;nr--){let Nn=W[nr];if(Vl(Nn)&&Nn.labelText===$e)return Nn.breakLabel;if(Ps(Nn)&&Bl($e,nr-1))return Nn.breakLabel}else for(let nr=W.length-1;nr>=0;nr--){let Nn=W[nr];if(Ps(Nn))return Nn.breakLabel}return 0}function us($e){if(W)if($e)for(let nr=W.length-1;nr>=0;nr--){let Nn=W[nr];if(pl(Nn)&&Bl($e,nr-1))return Nn.continueLabel}else for(let nr=W.length-1;nr>=0;nr--){let Nn=W[nr];if(pl(Nn))return Nn.continueLabel}return 0}function lu($e){if($e!==void 0&&$e>0){H===void 0&&(H=[]);let nr=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return H[$e]===void 0?H[$e]=[nr]:H[$e].push(nr),nr}return t.createOmittedExpression()}function Kc($e){let nr=t.createNumericLiteral($e);return $4(nr,3,o8t($e)),nr}function Ro($e,nr){return I.assertLessThan(0,$e,"Invalid label"),Ot(t.createReturnStatement(t.createArrayLiteralExpression([Kc(3),lu($e)])),nr)}function el($e,nr){return Ot(t.createReturnStatement(t.createArrayLiteralExpression($e?[Kc(2),$e]:[Kc(2)])),nr)}function Q_($e){return Ot(t.createCallExpression(t.createPropertyAccessExpression(Ee,"sent"),void 0,[]),$e)}function as(){B(0)}function Gs($e){$e?B(1,[$e]):as()}function qo($e,nr,Nn){B(2,[$e,nr],Nn)}function jo($e,nr){B(3,[$e],nr)}function fr($e,nr,Nn){B(4,[$e,nr],Nn)}function hc($e,nr,Nn){B(5,[$e,nr],Nn)}function uu($e,nr){B(7,[$e],nr)}function Cl($e,nr){B(6,[$e],nr)}function hp($e,nr){B(8,[$e],nr)}function tl($e,nr){B(9,[$e],nr)}function Pl(){B(10)}function B($e,nr,Nn){ne===void 0&&(ne=[],ae=[],Y=[]),z===void 0&&Le(rr());let za=ne.length;ne[za]=$e,ae[za]=nr,Y[za]=Nn}function Xe(){fe=0,te=0,de=void 0,me=!1,ve=!1,Pe=void 0,Oe=void 0,ie=void 0,Ne=void 0,it=void 0;let $e=Et();return n().createGeneratorHelper(qn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Ee)],void 0,t.createBlock($e,$e.length>0)),1048576))}function Et(){if(ne){for(let $e=0;$e<ne.length;$e++)sc($e);cn(ne.length)}else cn(0);if(Pe){let $e=t.createPropertyAccessExpression(Ee,"label"),nr=t.createSwitchStatement($e,t.createCaseBlock(Pe));return[Zp(nr)]}return Oe||[]}function ur(){Oe&&(Bn(!me),me=!1,ve=!1,te++)}function cn($e){wi($e)&&(an($e),it=void 0,Hl(void 0,void 0)),Oe&&Pe&&Bn(!1),ua()}function wi($e){if(!ve)return!0;if(!z||!H)return!1;for(let nr=0;nr<z.length;nr++)if(z[nr]===$e&&H[nr])return!0;return!1}function Bn($e){if(Pe||(Pe=[]),Oe){if(it)for(let nr=it.length-1;nr>=0;nr--){let Nn=it[nr];Oe=[t.createWithStatement(Nn.expression,t.createBlock(Oe))]}if(Ne){let{startLabel:nr,catchLabel:Nn,finallyLabel:za,endLabel:Fs}=Ne;Oe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(Ee,"trys"),"push"),void 0,[t.createArrayLiteralExpression([lu(nr),lu(Nn),lu(za),lu(Fs)])]))),Ne=void 0}$e&&Oe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ee,"label"),t.createNumericLiteral(te+1))))}Pe.push(t.createCaseClause(t.createNumericLiteral(te),Oe||[])),Oe=void 0}function an($e){if(z)for(let nr=0;nr<z.length;nr++)z[nr]===$e&&(ur(),de===void 0&&(de=[]),de[te]===void 0?de[te]=[nr]:de[te].push(nr))}function ua(){if(H!==void 0&&de!==void 0)for(let $e=0;$e<de.length;$e++){let nr=de[$e];if(nr!==void 0)for(let Nn of nr){let za=H[Nn];if(za!==void 0)for(let Fs of za)Fs.text=String($e)}}}function ma($e){if(F)for(;fe<L.length&&M[fe]<=$e;fe++){let nr=F[fe],Nn=L[fe];switch(nr.kind){case 0:Nn===0?(ie||(ie=[]),Oe||(Oe=[]),ie.push(Ne),Ne=nr):Nn===1&&(Ne=ie.pop());break;case 1:Nn===0?(it||(it=[]),it.push(nr)):Nn===1&&it.pop();break}}}function sc($e){if(an($e),ma($e),me)return;me=!1,ve=!1;let nr=ne[$e];if(nr===0)return;if(nr===10)return Bf();let Nn=ae[$e];if(nr===1)return To(Nn[0]);let za=Y[$e];switch(nr){case 2:return Wc(Nn[0],Nn[1],za);case 3:return Fc(Nn[0],za);case 4:return Gl(Nn[0],Nn[1],za);case 5:return X_(Nn[0],Nn[1],za);case 6:return Dp(Nn[0],za);case 7:return Ld(Nn[0],za);case 8:return Hl(Nn[0],za);case 9:return El(Nn[0],za)}}function To($e){$e&&(Oe?Oe.push($e):Oe=[$e])}function Wc($e,nr,Nn){To(Ot(t.createExpressionStatement(t.createAssignment($e,nr)),Nn))}function El($e,nr){me=!0,ve=!0,To(Ot(t.createThrowStatement($e),nr))}function Hl($e,nr){me=!0,ve=!0,To(qn(Ot(t.createReturnStatement(t.createArrayLiteralExpression($e?[Kc(2),$e]:[Kc(2)])),nr),768))}function Fc($e,nr){me=!0,To(qn(Ot(t.createReturnStatement(t.createArrayLiteralExpression([Kc(3),lu($e)])),nr),768))}function Gl($e,nr,Nn){To(qn(t.createIfStatement(nr,qn(Ot(t.createReturnStatement(t.createArrayLiteralExpression([Kc(3),lu($e)])),Nn),768)),1))}function X_($e,nr,Nn){To(qn(t.createIfStatement(t.createLogicalNot(nr),qn(Ot(t.createReturnStatement(t.createArrayLiteralExpression([Kc(3),lu($e)])),Nn),768)),1))}function Dp($e,nr){me=!0,To(qn(Ot(t.createReturnStatement(t.createArrayLiteralExpression($e?[Kc(4),$e]:[Kc(4)])),nr),768))}function Ld($e,nr){me=!0,To(qn(Ot(t.createReturnStatement(t.createArrayLiteralExpression([Kc(5),$e])),nr),768))}function Bf(){me=!0,To(t.createReturnStatement(t.createArrayLiteralExpression([Kc(7)])))}}function VZ(e){function t(ke){switch(ke){case 2:return ae;case 3:return Y;default:return ne}}let{factory:n,getEmitHelperFactory:i,startLexicalEnvironment:s,endLexicalEnvironment:l,hoistVariableDeclaration:p}=e,g=e.getCompilerOptions(),m=e.getEmitResolver(),x=e.getEmitHost(),b=Po(g),S=hf(g),P=e.onSubstituteNode,E=e.onEmitNode;e.onSubstituteNode=Lt,e.onEmitNode=Qe,e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(307);let N=[],F,M,L,W=[],z;return Kg(e,H);function H(ke){if(ke.isDeclarationFile||!(rN(ke,g)||ke.transformFlags&8388608||cm(ke)&&FJ(g)&&g.outFile))return ke;F=ke,M=LZ(e,ke),N[jf(ke)]=M,g.rewriteRelativeImportExtensions&&az(ke,!1,!1,re=>{(!Ho(re.arguments[0])||m5(re.arguments[0].text,g))&&(L=Zr(L,re))});let Ke=t(S)(ke);return F=void 0,M=void 0,z=!1,Ke}function X(){return Iv(F.fileName)&&F.commonJsModuleIndicator&&(!F.externalModuleIndicator||F.externalModuleIndicator===!0)?!1:!!(!M.exportEquals&&Du(F))}function ne(ke){s();let $=[],Ke=Bp(g,"alwaysStrict")||Du(F),re=n.copyPrologue(ke.statements,$,Ke&&!cm(ke),me);if(X()&&Zr($,Ue()),Pt(M.exportedNames))for(let Le=0;Le<M.exportedNames.length;Le+=50)Zr($,n.createExpressionStatement(Qu(M.exportedNames.slice(Le,Le+50),(kt,dr)=>dr.kind===11?n.createAssignment(n.createElementAccessExpression(n.createIdentifier("exports"),n.createStringLiteral(dr.text)),kt):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(fi(dr))),kt),n.createVoidZero())));for(let rr of M.exportedFunctions)he($,rr);Zr($,dt(M.externalHelpersImportDeclaration,me,fa)),ti($,dn(ke.statements,me,fa,re)),de($,!1),kv($,l());let Ft=n.updateSourceFile(ke,Ot(n.createNodeArray($),ke.statements));return Rv(Ft,e.readEmitHelpers()),Ft}function ae(ke){let $=n.createIdentifier("define"),Ke=hM(n,ke,x,g),re=cm(ke)&&ke,{aliasedModuleNames:Ft,unaliasedModuleNames:rr,importAliasNames:Le}=Ee(ke,!0),kt=n.updateSourceFile(ke,Ot(n.createNodeArray([n.createExpressionStatement(n.createCallExpression($,void 0,[...Ke?[Ke]:[],n.createArrayLiteralExpression(re?ce:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...Ft,...rr]),re?re.statements.length?re.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...Le],void 0,te(ke))]))]),ke.statements));return Rv(kt,e.readEmitHelpers()),kt}function Y(ke){let{aliasedModuleNames:$,unaliasedModuleNames:Ke,importAliasNames:re}=Ee(ke,!1),Ft=hM(n,ke,x,g),rr=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,Ot(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),qn(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...Ft?[Ft]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...$,...Ke]),n.createIdentifier("factory")]))])))],!0),void 0)),Le=n.updateSourceFile(ke,Ot(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(rr,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...re],void 0,te(ke))]))]),ke.statements));return Rv(Le,e.readEmitHelpers()),Le}function Ee(ke,$){let Ke=[],re=[],Ft=[];for(let rr of ke.amdDependencies)rr.name?(Ke.push(n.createStringLiteral(rr.path)),Ft.push(n.createParameterDeclaration(void 0,void 0,rr.name))):re.push(n.createStringLiteral(rr.path));for(let rr of M.externalImports){let Le=OE(n,rr,F,x,m,g),kt=zN(n,rr,F);Le&&($&&kt?(qn(kt,8),Ke.push(Le),Ft.push(n.createParameterDeclaration(void 0,void 0,kt))):re.push(Le))}return{aliasedModuleNames:Ke,unaliasedModuleNames:re,importAliasNames:Ft}}function fe(ke){if(zu(ke)||tu(ke)||!OE(n,ke,F,x,m,g))return;let $=zN(n,ke,F),Ke=ui(ke,$);if(Ke!==$)return n.createExpressionStatement(n.createAssignment($,Ke))}function te(ke){s();let $=[],Ke=n.copyPrologue(ke.statements,$,!0,me);X()&&Zr($,Ue()),Pt(M.exportedNames)&&Zr($,n.createExpressionStatement(Qu(M.exportedNames,(Ft,rr)=>rr.kind===11?n.createAssignment(n.createElementAccessExpression(n.createIdentifier("exports"),n.createStringLiteral(rr.text)),Ft):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(fi(rr))),Ft),n.createVoidZero())));for(let Ft of M.exportedFunctions)he($,Ft);Zr($,dt(M.externalHelpersImportDeclaration,me,fa)),S===2&&ti($,Bi(M.externalImports,fe)),ti($,dn(ke.statements,me,fa,Ke)),de($,!0),kv($,l());let re=n.createBlock($,!0);return z&&gE(re,c8t),re}function de(ke,$){if(M.exportEquals){let Ke=dt(M.exportEquals.expression,Oe,At);if(Ke)if($){let re=n.createReturnStatement(Ke);Ot(re,M.exportEquals),qn(re,3840),ke.push(re)}else{let re=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),Ke));Ot(re,M.exportEquals),qn(re,3072),ke.push(re)}}}function me(ke){switch(ke.kind){case 272:return Wn(ke);case 271:return at(ke);case 278:return It(ke);case 277:return Cr(ke);default:return ve(ke)}}function ve(ke){switch(ke.kind){case 243:return Pi(ke);case 262:return wn(ke);case 263:return Di(ke);case 248:return ze(ke,!0);case 249:return ge(ke);case 250:return Me(ke);case 246:return Te(ke);case 247:return gt(ke);case 256:return Tt(ke);case 254:return xe(ke);case 245:return nt(ke);case 255:return pe(ke);case 269:return He(ke);case 296:return qe(ke);case 297:return je(ke);case 258:return st(ke);case 299:return jt(ke);case 241:return ar(ke);default:return Oe(ke)}}function Pe(ke,$){if(!(ke.transformFlags&276828160)&&!L?.length)return ke;switch(ke.kind){case 248:return ze(ke,!1);case 244:return Or(ke);case 217:return nn(ke,$);case 355:return Ct(ke,$);case 213:let Ke=ke===Yl(L);if(Ke&&L.shift(),_d(ke)&&x.shouldTransformImportCall(F))return ta(ke,Ke);if(Ke)return vn(ke);break;case 226:if(D1(ke))return it(ke,$);break;case 224:case 225:return pr(ke,$)}return Gr(ke,Oe,e)}function Oe(ke){return Pe(ke,!1)}function ie(ke){return Pe(ke,!0)}function Ne(ke){if(So(ke))for(let $ of ke.properties)switch($.kind){case 303:if(Ne($.initializer))return!0;break;case 304:if(Ne($.name))return!0;break;case 305:if(Ne($.expression))return!0;break;case 174:case 177:case 178:return!1;default:I.assertNever($,"Unhandled object member kind")}else if(kp(ke)){for(let $ of ke.elements)if(gm($)){if(Ne($.expression))return!0}else if(Ne($))return!0}else if(Ye(ke))return Re(qt(ke))>(Dz(ke)?1:0);return!1}function it(ke,$){return Ne(ke.left)?tC(ke,Oe,e,0,!$,da):Gr(ke,Oe,e)}function ze(ke,$){if($&&ke.initializer&&mp(ke.initializer)&&!(ke.initializer.flags&7)){let Ke=ft(void 0,ke.initializer,!1);if(Ke){let re=[],Ft=dt(ke.initializer,ie,mp),rr=n.createVariableStatement(void 0,Ft);re.push(rr),ti(re,Ke);let Le=dt(ke.condition,Oe,At),kt=dt(ke.incrementor,ie,At),dr=Rf(ke.statement,$?ve:Oe,e);return re.push(n.updateForStatement(ke,void 0,Le,kt,dr)),re}}return n.updateForStatement(ke,dt(ke.initializer,ie,sm),dt(ke.condition,Oe,At),dt(ke.incrementor,ie,At),Rf(ke.statement,$?ve:Oe,e))}function ge(ke){if(mp(ke.initializer)&&!(ke.initializer.flags&7)){let $=ft(void 0,ke.initializer,!0);if(Pt($)){let Ke=dt(ke.initializer,ie,sm),re=dt(ke.expression,Oe,At),Ft=Rf(ke.statement,ve,e),rr=Cs(Ft)?n.updateBlock(Ft,[...$,...Ft.statements]):n.createBlock([...$,Ft],!0);return n.updateForInStatement(ke,Ke,re,rr)}}return n.updateForInStatement(ke,dt(ke.initializer,ie,sm),dt(ke.expression,Oe,At),Rf(ke.statement,ve,e))}function Me(ke){if(mp(ke.initializer)&&!(ke.initializer.flags&7)){let $=ft(void 0,ke.initializer,!0),Ke=dt(ke.initializer,ie,sm),re=dt(ke.expression,Oe,At),Ft=Rf(ke.statement,ve,e);return Pt($)&&(Ft=Cs(Ft)?n.updateBlock(Ft,[...$,...Ft.statements]):n.createBlock([...$,Ft],!0)),n.updateForOfStatement(ke,ke.awaitModifier,Ke,re,Ft)}return n.updateForOfStatement(ke,ke.awaitModifier,dt(ke.initializer,ie,sm),dt(ke.expression,Oe,At),Rf(ke.statement,ve,e))}function Te(ke){return n.updateDoStatement(ke,Rf(ke.statement,ve,e),dt(ke.expression,Oe,At))}function gt(ke){return n.updateWhileStatement(ke,dt(ke.expression,Oe,At),Rf(ke.statement,ve,e))}function Tt(ke){return n.updateLabeledStatement(ke,ke.label,dt(ke.statement,ve,fa,n.liftToBlock)??Ot(n.createEmptyStatement(),ke.statement))}function xe(ke){return n.updateWithStatement(ke,dt(ke.expression,Oe,At),I.checkDefined(dt(ke.statement,ve,fa,n.liftToBlock)))}function nt(ke){return n.updateIfStatement(ke,dt(ke.expression,Oe,At),dt(ke.thenStatement,ve,fa,n.liftToBlock)??n.createBlock([]),dt(ke.elseStatement,ve,fa,n.liftToBlock))}function pe(ke){return n.updateSwitchStatement(ke,dt(ke.expression,Oe,At),I.checkDefined(dt(ke.caseBlock,ve,t3)))}function He(ke){return n.updateCaseBlock(ke,dn(ke.clauses,ve,xq))}function qe(ke){return n.updateCaseClause(ke,dt(ke.expression,Oe,At),dn(ke.statements,ve,fa))}function je(ke){return Gr(ke,ve,e)}function st(ke){return Gr(ke,ve,e)}function jt(ke){return n.updateCatchClause(ke,ke.variableDeclaration,I.checkDefined(dt(ke.block,ve,Cs)))}function ar(ke){return ke=Gr(ke,ve,e),ke}function Or(ke){return n.updateExpressionStatement(ke,dt(ke.expression,ie,At))}function nn(ke,$){return n.updateParenthesizedExpression(ke,dt(ke.expression,$?ie:Oe,At))}function Ct(ke,$){return n.updatePartiallyEmittedExpression(ke,dt(ke.expression,$?ie:Oe,At))}function pr(ke,$){if((ke.operator===46||ke.operator===47)&&Ye(ke.operand)&&!Xc(ke.operand)&&!R0(ke.operand)&&!_X(ke.operand)){let Ke=qt(ke.operand);if(Ke){let re,Ft=dt(ke.operand,Oe,At);jS(ke)?Ft=n.updatePrefixUnaryExpression(ke,Ft):(Ft=n.updatePostfixUnaryExpression(ke,Ft),$||(re=n.createTempVariable(p),Ft=n.createAssignment(re,Ft),Ot(Ft,ke)),Ft=n.createComma(Ft,n.cloneNode(ke.operand)),Ot(Ft,ke));for(let rr of Ke)W[Wo(Ft)]=!0,Ft=vt(rr,Ft),Ot(Ft,ke);return re&&(W[Wo(Ft)]=!0,Ft=n.createComma(Ft,re),Ot(Ft,ke)),Ft}}return Gr(ke,Oe,e)}function vn(ke){return n.updateCallExpression(ke,ke.expression,void 0,dn(ke.arguments,$=>$===ke.arguments[0]?Ho($)?jE($,g):i().createRewriteRelativeImportExtensionsHelper($):Oe($),At))}function ta(ke,$){if(S===0&&b>=7)return Gr(ke,Oe,e);let Ke=OE(n,ke,F,x,m,g),re=dt(Yl(ke.arguments),Oe,At),Ft=Ke&&(!re||!vo(re)||re.text!==Ke.text)?Ke:re&&$?vo(re)?jE(re,g):i().createRewriteRelativeImportExtensionsHelper(re):re,rr=!!(ke.transformFlags&16384);switch(g.module){case 2:return Gt(Ft,rr);case 3:return ts(Ft??n.createVoidZero(),rr);case 1:default:return hi(Ft)}}function ts(ke,$){if(z=!0,V2(ke)){let Ke=Xc(ke)?ke:vo(ke)?n.createStringLiteralFromNode(ke):qn(Ot(n.cloneNode(ke),ke),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,hi(ke),void 0,Gt(Ke,$))}else{let Ke=n.createTempVariable(p);return n.createComma(n.createAssignment(Ke,ke),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,hi(Ke,!0),void 0,Gt(Ke,$)))}}function Gt(ke,$){let Ke=n.createUniqueName("resolve"),re=n.createUniqueName("reject"),Ft=[n.createParameterDeclaration(void 0,void 0,Ke),n.createParameterDeclaration(void 0,void 0,re)],rr=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([ke||n.createOmittedExpression()]),Ke,re]))]),Le;b>=2?Le=n.createArrowFunction(void 0,void 0,Ft,void 0,void 0,rr):(Le=n.createFunctionExpression(void 0,void 0,void 0,void 0,Ft,void 0,rr),$&&qn(Le,16));let kt=n.createNewExpression(n.createIdentifier("Promise"),void 0,[Le]);return Av(g)?n.createCallExpression(n.createPropertyAccessExpression(kt,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):kt}function hi(ke,$){let Ke=ke&&!Wh(ke)&&!$,re=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,Ke?b>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(ke,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[ke])]:[]),Ft=n.createCallExpression(n.createIdentifier("require"),void 0,Ke?[n.createIdentifier("s")]:ke?[ke]:[]);Av(g)&&(Ft=i().createImportStarHelper(Ft));let rr=Ke?[n.createParameterDeclaration(void 0,void 0,"s")]:[],Le;return b>=2?Le=n.createArrowFunction(void 0,void 0,rr,void 0,void 0,Ft):Le=n.createFunctionExpression(void 0,void 0,void 0,void 0,rr,void 0,n.createBlock([n.createReturnStatement(Ft)])),n.createCallExpression(n.createPropertyAccessExpression(re,"then"),void 0,[Le])}function $a(ke,$){return!Av(g)||mg(ke)&2?$:Nve(ke)?i().createImportStarHelper($):$}function ui(ke,$){return!Av(g)||mg(ke)&2?$:fW(ke)?i().createImportStarHelper($):jZ(ke)?i().createImportDefaultHelper($):$}function Wn(ke){let $,Ke=uN(ke);if(S!==2)if(ke.importClause){let re=[];Ke&&!Dk(ke)?re.push(n.createVariableDeclaration(n.cloneNode(Ke.name),void 0,void 0,ui(ke,Gi(ke)))):(re.push(n.createVariableDeclaration(n.getGeneratedNameForNode(ke),void 0,void 0,ui(ke,Gi(ke)))),Ke&&Dk(ke)&&re.push(n.createVariableDeclaration(n.cloneNode(Ke.name),void 0,void 0,n.getGeneratedNameForNode(ke)))),$=Zr($,ii(Ot(n.createVariableStatement(void 0,n.createVariableDeclarationList(re,b>=2?2:0)),ke),ke))}else return ii(Ot(n.createExpressionStatement(Gi(ke)),ke),ke);else Ke&&Dk(ke)&&($=Zr($,n.createVariableStatement(void 0,n.createVariableDeclarationList([ii(Ot(n.createVariableDeclaration(n.cloneNode(Ke.name),void 0,void 0,n.getGeneratedNameForNode(ke)),ke),ke)],b>=2?2:0))));return $=no($,ke),em($)}function Gi(ke){let $=OE(n,ke,F,x,m,g),Ke=[];return $&&Ke.push(jE($,g)),n.createCallExpression(n.createIdentifier("require"),void 0,Ke)}function at(ke){I.assert(kS(ke),"import= for internal module references should be handled in an earlier transformer.");let $;return S!==2?Ai(ke,32)?$=Zr($,ii(Ot(n.createExpressionStatement(vt(ke.name,Gi(ke))),ke),ke)):$=Zr($,ii(Ot(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(ke.name),void 0,void 0,Gi(ke))],b>=2?2:0)),ke),ke)):Ai(ke,32)&&($=Zr($,ii(Ot(n.createExpressionStatement(vt(n.getExportName(ke),n.getLocalName(ke))),ke),ke))),$=Vr($,ke),em($)}function It(ke){if(!ke.moduleSpecifier)return;let $=n.getGeneratedNameForNode(ke);if(ke.exportClause&&hm(ke.exportClause)){let Ke=[];S!==2&&Ke.push(ii(Ot(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration($,void 0,void 0,Gi(ke))])),ke),ke));for(let re of ke.exportClause.elements){let Ft=re.propertyName||re.name,Le=!!Av(g)&&!(mg(ke)&2)&&Dy(Ft)?i().createImportDefaultHelper($):$,kt=Ft.kind===11?n.createElementAccessExpression(Le,Ft):n.createPropertyAccessExpression(Le,Ft);Ke.push(ii(Ot(n.createExpressionStatement(vt(re.name.kind===11?n.cloneNode(re.name):n.getExportName(re),kt,void 0,!0)),re),re))}return em(Ke)}else if(ke.exportClause){let Ke=[];return Ke.push(ii(Ot(n.createExpressionStatement(vt(n.cloneNode(ke.exportClause.name),$a(ke,S!==2?Gi(ke):Iq(ke)||ke.exportClause.name.kind===11?$:n.createIdentifier(fi(ke.exportClause.name))))),ke),ke)),em(Ke)}else return ii(Ot(n.createExpressionStatement(i().createExportStarHelper(S!==2?Gi(ke):$)),ke),ke)}function Cr(ke){if(!ke.isExportEquals)return pt(n.createIdentifier("default"),dt(ke.expression,Oe,At),ke,!0)}function wn(ke){let $;return Ai(ke,32)?$=Zr($,ii(Ot(n.createFunctionDeclaration(dn(ke.modifiers,$t,oo),ke.asteriskToken,n.getDeclarationName(ke,!0,!0),void 0,dn(ke.parameters,Oe,Da),void 0,Gr(ke.body,Oe,e)),ke),ke)):$=Zr($,Gr(ke,Oe,e)),em($)}function Di(ke){let $;return Ai(ke,32)?$=Zr($,ii(Ot(n.createClassDeclaration(dn(ke.modifiers,$t,Yc),n.getDeclarationName(ke,!0,!0),void 0,dn(ke.heritageClauses,Oe,U_),dn(ke.members,Oe,ou)),ke),ke)):$=Zr($,Gr(ke,Oe,e)),$=he($,ke),em($)}function Pi(ke){let $,Ke,re;if(Ai(ke,32)){let Ft,rr=!1;for(let Le of ke.declarationList.declarations)if(Ye(Le.name)&&R0(Le.name))if(Ft||(Ft=dn(ke.modifiers,$t,oo)),Le.initializer){let kt=n.updateVariableDeclaration(Le,Le.name,void 0,void 0,vt(Le.name,dt(Le.initializer,Oe,At)));Ke=Zr(Ke,kt)}else Ke=Zr(Ke,Le);else if(Le.initializer)if(!Os(Le.name)&&(Bc(Le.initializer)||Ic(Le.initializer)||vu(Le.initializer))){let kt=n.createAssignment(Ot(n.createPropertyAccessExpression(n.createIdentifier("exports"),Le.name),Le.name),n.createIdentifier(lm(Le.name))),dr=n.createVariableDeclaration(Le.name,Le.exclamationToken,Le.type,dt(Le.initializer,Oe,At));Ke=Zr(Ke,dr),re=Zr(re,kt),rr=!0}else re=Zr(re,ks(Le));if(Ke&&($=Zr($,n.updateVariableStatement(ke,Ft,n.updateVariableDeclarationList(ke.declarationList,Ke)))),re){let Le=ii(Ot(n.createExpressionStatement(n.inlineExpressions(re)),ke),ke);rr&&tM(Le),$=Zr($,Le)}}else $=Zr($,Gr(ke,Oe,e));return $=_s($,ke),em($)}function da(ke,$,Ke){let re=qt(ke);if(re){let Ft=Dz(ke)?$:n.createAssignment(ke,$);for(let rr of re)qn(Ft,8),Ft=vt(rr,Ft,Ke);return Ft}return n.createAssignment(ke,$)}function ks(ke){return Os(ke.name)?tC(dt(ke,Oe,R5),Oe,e,0,!1,da):n.createAssignment(Ot(n.createPropertyAccessExpression(n.createIdentifier("exports"),ke.name),ke.name),ke.initializer?dt(ke.initializer,Oe,At):n.createVoidZero())}function no(ke,$){if(M.exportEquals)return ke;let Ke=$.importClause;if(!Ke)return ke;let re=new ZN;Ke.name&&(ke=wt(ke,re,Ke));let Ft=Ke.namedBindings;if(Ft)switch(Ft.kind){case 274:ke=wt(ke,re,Ft);break;case 275:for(let rr of Ft.elements)ke=wt(ke,re,rr,!0);break}return ke}function Vr(ke,$){return M.exportEquals?ke:wt(ke,new ZN,$)}function _s(ke,$){return ft(ke,$.declarationList,!1)}function ft(ke,$,Ke){if(M.exportEquals)return ke;for(let re of $.declarations)ke=Qt(ke,re,Ke);return ke}function Qt(ke,$,Ke){if(M.exportEquals)return ke;if(Os($.name))for(let re of $.name.elements)Ju(re)||(ke=Qt(ke,re,Ke));else!Xc($.name)&&(!Ui($)||$.initializer||Ke)&&(ke=wt(ke,new ZN,$));return ke}function he(ke,$){if(M.exportEquals)return ke;let Ke=new ZN;if(Ai($,32)){let re=Ai($,2048)?n.createIdentifier("default"):n.getDeclarationName($);ke=oe(ke,Ke,re,n.getLocalName($),$)}return $.name&&(ke=wt(ke,Ke,$)),ke}function wt(ke,$,Ke,re){let Ft=n.getDeclarationName(Ke),rr=M.exportSpecifiers.get(Ft);if(rr)for(let Le of rr)ke=oe(ke,$,Le.name,Ft,Le.name,void 0,re);return ke}function oe(ke,$,Ke,re,Ft,rr,Le){if(Ke.kind!==11){if($.has(Ke))return ke;$.set(Ke,!0)}return ke=Zr(ke,pt(Ke,re,Ft,rr,Le)),ke}function Ue(){let ke=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])]));return qn(ke,2097152),ke}function pt(ke,$,Ke,re,Ft){let rr=Ot(n.createExpressionStatement(vt(ke,$,void 0,Ft)),Ke);return Zp(rr),re||qn(rr,3072),rr}function vt(ke,$,Ke,re){return Ot(re?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(ke),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement($)])))])]):n.createAssignment(ke.kind===11?n.createElementAccessExpression(n.createIdentifier("exports"),n.cloneNode(ke)):n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(ke)),$),Ke)}function $t(ke){switch(ke.kind){case 95:case 90:return}return ke}function Qe(ke,$,Ke){$.kind===307?(F=$,M=N[jf(F)],E(ke,$,Ke),F=void 0,M=void 0):E(ke,$,Ke)}function Lt(ke,$){return $=P(ke,$),$.id&&W[$.id]?$:ke===1?Xt($):Jp($)?Rt($):$}function Rt(ke){let $=ke.name,Ke=In($);if(Ke!==$){if(ke.objectAssignmentInitializer){let re=n.createAssignment(Ke,ke.objectAssignmentInitializer);return Ot(n.createPropertyAssignment($,re),ke)}return Ot(n.createPropertyAssignment($,Ke),ke)}return ke}function Xt(ke){switch(ke.kind){case 80:return In(ke);case 213:return ut(ke);case 215:return lr(ke);case 226:return We(ke)}return ke}function ut(ke){if(Ye(ke.expression)){let $=In(ke.expression);if(W[Wo($)]=!0,!Ye($)&&!(Ao(ke.expression)&8192))return jk(n.updateCallExpression(ke,$,void 0,ke.arguments),16)}return ke}function lr(ke){if(Ye(ke.tag)){let $=In(ke.tag);if(W[Wo($)]=!0,!Ye($)&&!(Ao(ke.tag)&8192))return jk(n.updateTaggedTemplateExpression(ke,$,void 0,ke.template),16)}return ke}function In(ke){var $,Ke;if(Ao(ke)&8192){let re=gM(F);return re?n.createPropertyAccessExpression(re,ke):ke}else if(!(Xc(ke)&&!(ke.emitNode.autoGenerate.flags&64))&&!R0(ke)){let re=m.getReferencedExportContainer(ke,Dz(ke));if(re&&re.kind===307)return Ot(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(ke)),ke);let Ft=m.getReferencedImportDeclaration(ke);if(Ft){if(vg(Ft))return Ot(n.createPropertyAccessExpression(n.getGeneratedNameForNode(Ft.parent),n.createIdentifier("default")),ke);if(bf(Ft)){let rr=Ft.propertyName||Ft.name,Le=n.getGeneratedNameForNode(((Ke=($=Ft.parent)==null?void 0:$.parent)==null?void 0:Ke.parent)||Ft);return Ot(rr.kind===11?n.createElementAccessExpression(Le,n.cloneNode(rr)):n.createPropertyAccessExpression(Le,n.cloneNode(rr)),ke)}}}return ke}function We(ke){if(O0(ke.operatorToken.kind)&&Ye(ke.left)&&(!Xc(ke.left)||OF(ke.left))&&!R0(ke.left)){let $=qt(ke.left);if($){let Ke=ke;for(let re of $)W[Wo(Ke)]=!0,Ke=vt(re,Ke,ke);return Ke}}return ke}function qt(ke){if(Xc(ke)){if(OF(ke)){let $=M?.exportSpecifiers.get(ke);if($){let Ke=[];for(let re of $)Ke.push(re.name);return Ke}}}else{let $=m.getReferencedImportDeclaration(ke);if($)return M?.exportedBindings[jf($)];let Ke=new Set,re=m.getReferencedValueDeclarations(ke);if(re){for(let Ft of re){let rr=M?.exportedBindings[jf(Ft)];if(rr)for(let Le of rr)Ke.add(Le)}if(Ke.size)return Ka(Ke)}}}}var c8t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
|
|
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function s0e(e){let{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,l=e.getCompilerOptions(),p=e.getEmitResolver(),g=e.getEmitHost(),m=e.onSubstituteNode,x=e.onEmitNode;e.onSubstituteNode=Ue,e.onEmitNode=oe,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);let b=[],S=[],P=[],E=[],N,F,M,L,W,z,H;return Kg(e,X);function X(We){if(We.isDeclarationFile||!(rN(We,l)||We.transformFlags&8388608))return We;let qt=jf(We);N=We,z=We,F=b[qt]=LZ(e,We),M=t.createUniqueName("exports"),S[qt]=M,L=E[qt]=t.createUniqueName("context");let ke=ne(F.externalImports),$=ae(We,ke),Ke=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,M),t.createParameterDeclaration(void 0,void 0,L)],void 0,$),re=hM(t,We,g,l),Ft=t.createArrayLiteralExpression(Dt(ke,Le=>Le.name)),rr=qn(t.updateSourceFile(We,Ot(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,re?[re,Ft,Ke]:[Ft,Ke]))]),We.statements)),2048);return l.outFile||_he(rr,$,Le=>!Le.scoped),H&&(P[qt]=H,H=void 0),N=void 0,F=void 0,M=void 0,L=void 0,W=void 0,z=void 0,rr}function ne(We){let qt=new Map,ke=[];for(let $ of We){let Ke=OE(t,$,N,g,p,l);if(Ke){let re=Ke.text,Ft=qt.get(re);Ft!==void 0?ke[Ft].externalImports.push($):(qt.set(re,ke.length),ke.push({name:Ke,externalImports:[$]}))}}return ke}function ae(We,qt){let ke=[];n();let $=Bp(l,"alwaysStrict")||Du(N),Ke=t.copyPrologue(We.statements,ke,$,te);ke.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(L,t.createPropertyAccessExpression(L,"id")))]))),dt(F.externalHelpersImportDeclaration,te,fa);let re=dn(We.statements,te,fa,Ke);ti(ke,W),kv(ke,i());let Ft=Y(ke),rr=We.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Le=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",fe(Ft,qt)),t.createPropertyAssignment("execute",t.createFunctionExpression(rr,void 0,void 0,void 0,[],void 0,t.createBlock(re,!0)))],!0);return ke.push(t.createReturnStatement(Le)),t.createBlock(ke,!0)}function Y(We){if(!F.hasExportStarsToExportValues)return;if(!Pt(F.exportedNames)&&F.exportedFunctions.size===0&&F.exportSpecifiers.size===0){let Ke=!1;for(let re of F.externalImports)if(re.kind===278&&re.exportClause){Ke=!0;break}if(!Ke){let re=Ee(void 0);return We.push(re),re.name}}let qt=[];if(F.exportedNames)for(let Ke of F.exportedNames)Dy(Ke)||qt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ke),t.createTrue()));for(let Ke of F.exportedFunctions)Ai(Ke,2048)||(I.assert(!!Ke.name),qt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ke.name),t.createTrue())));let ke=t.createUniqueName("exportedNames");We.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ke,void 0,void 0,t.createObjectLiteralExpression(qt,!0))])));let $=Ee(ke);return We.push($),$.name}function Ee(We){let qt=t.createUniqueName("exportStar"),ke=t.createIdentifier("m"),$=t.createIdentifier("n"),Ke=t.createIdentifier("exports"),re=t.createStrictInequality($,t.createStringLiteral("default"));return We&&(re=t.createLogicalAnd(re,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(We,"hasOwnProperty"),void 0,[$])))),t.createFunctionDeclaration(void 0,void 0,qt,void 0,[t.createParameterDeclaration(void 0,void 0,ke)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ke,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration($)]),ke,t.createBlock([qn(t.createIfStatement(re,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Ke,$),t.createElementAccessExpression(ke,$)))),1)])),t.createExpressionStatement(t.createCallExpression(M,void 0,[Ke]))],!0))}function fe(We,qt){let ke=[];for(let $ of qt){let Ke=Ge($.externalImports,rr=>zN(t,rr,N)),re=Ke?t.getGeneratedNameForNode(Ke):t.createUniqueName(""),Ft=[];for(let rr of $.externalImports){let Le=zN(t,rr,N);switch(rr.kind){case 272:if(!rr.importClause)break;case 271:I.assert(Le!==void 0),Ft.push(t.createExpressionStatement(t.createAssignment(Le,re))),Ai(rr,32)&&Ft.push(t.createExpressionStatement(t.createCallExpression(M,void 0,[t.createStringLiteral(fi(Le)),re])));break;case 278:if(I.assert(Le!==void 0),rr.exportClause)if(hm(rr.exportClause)){let kt=[];for(let dr of rr.exportClause.elements)kt.push(t.createPropertyAssignment(t.createStringLiteral(fx(dr.name)),t.createElementAccessExpression(re,t.createStringLiteral(fx(dr.propertyName||dr.name)))));Ft.push(t.createExpressionStatement(t.createCallExpression(M,void 0,[t.createObjectLiteralExpression(kt,!0)])))}else Ft.push(t.createExpressionStatement(t.createCallExpression(M,void 0,[t.createStringLiteral(fx(rr.exportClause.name)),re])));else Ft.push(t.createExpressionStatement(t.createCallExpression(We,void 0,[re])));break}}ke.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,re)],void 0,t.createBlock(Ft,!0)))}return t.createArrayLiteralExpression(ke,!0)}function te(We){switch(We.kind){case 272:return de(We);case 271:return ve(We);case 278:return me(We);case 277:return Pe(We);default:return ar(We)}}function de(We){let qt;return We.importClause&&s(zN(t,We,N)),em(Tt(qt,We))}function me(We){I.assertIsDefined(We)}function ve(We){I.assert(kS(We),"import= for internal module references should be handled in an earlier transformer.");let qt;return s(zN(t,We,N)),em(xe(qt,We))}function Pe(We){if(We.isExportEquals)return;let qt=dt(We.expression,Pi,At);return st(t.createIdentifier("default"),qt,!0)}function Oe(We){Ai(We,32)?W=Zr(W,t.updateFunctionDeclaration(We,dn(We.modifiers,wt,Yc),We.asteriskToken,t.getDeclarationName(We,!0,!0),void 0,dn(We.parameters,Pi,Da),void 0,dt(We.body,Pi,Cs))):W=Zr(W,Gr(We,Pi,e)),W=He(W,We)}function ie(We){let qt,ke=t.getLocalName(We);return s(ke),qt=Zr(qt,Ot(t.createExpressionStatement(t.createAssignment(ke,Ot(t.createClassExpression(dn(We.modifiers,wt,Yc),We.name,void 0,dn(We.heritageClauses,Pi,U_),dn(We.members,Pi,ou)),We))),We)),qt=He(qt,We),em(qt)}function Ne(We){if(!ze(We.declarationList))return dt(We,Pi,fa);let qt;if(QF(We.declarationList)||KF(We.declarationList)){let ke=dn(We.modifiers,wt,Yc),$=[];for(let re of We.declarationList.declarations)$.push(t.updateVariableDeclaration(re,t.getGeneratedNameForNode(re.name),void 0,void 0,ge(re,!1)));let Ke=t.updateVariableDeclarationList(We.declarationList,$);qt=Zr(qt,t.updateVariableStatement(We,ke,Ke))}else{let ke,$=Ai(We,32);for(let Ke of We.declarationList.declarations)Ke.initializer?ke=Zr(ke,ge(Ke,$)):it(Ke);ke&&(qt=Zr(qt,Ot(t.createExpressionStatement(t.inlineExpressions(ke)),We)))}return qt=nt(qt,We,!1),em(qt)}function it(We){if(Os(We.name))for(let qt of We.name.elements)Ju(qt)||it(qt);else s(t.cloneNode(We.name))}function ze(We){return(Ao(We)&4194304)===0&&(z.kind===307||(al(We).flags&7)===0)}function ge(We,qt){let ke=qt?Me:Te;return Os(We.name)?tC(We,Pi,e,0,!1,ke):We.initializer?ke(We.name,dt(We.initializer,Pi,At)):We.name}function Me(We,qt,ke){return gt(We,qt,ke,!0)}function Te(We,qt,ke){return gt(We,qt,ke,!1)}function gt(We,qt,ke,$){return s(t.cloneNode(We)),$?jt(We,lr(Ot(t.createAssignment(We,qt),ke))):lr(Ot(t.createAssignment(We,qt),ke))}function Tt(We,qt){if(F.exportEquals)return We;let ke=qt.importClause;if(!ke)return We;ke.name&&(We=qe(We,ke));let $=ke.namedBindings;if($)switch($.kind){case 274:We=qe(We,$);break;case 275:for(let Ke of $.elements)We=qe(We,Ke);break}return We}function xe(We,qt){return F.exportEquals?We:qe(We,qt)}function nt(We,qt,ke){if(F.exportEquals)return We;for(let $ of qt.declarationList.declarations)($.initializer||ke)&&(We=pe(We,$,ke));return We}function pe(We,qt,ke){if(F.exportEquals)return We;if(Os(qt.name))for(let $ of qt.name.elements)Ju($)||(We=pe(We,$,ke));else if(!Xc(qt.name)){let $;ke&&(We=je(We,qt.name,t.getLocalName(qt)),$=fi(qt.name)),We=qe(We,qt,$)}return We}function He(We,qt){if(F.exportEquals)return We;let ke;if(Ai(qt,32)){let $=Ai(qt,2048)?t.createStringLiteral("default"):qt.name;We=je(We,$,t.getLocalName(qt)),ke=lm($)}return qt.name&&(We=qe(We,qt,ke)),We}function qe(We,qt,ke){if(F.exportEquals)return We;let $=t.getDeclarationName(qt),Ke=F.exportSpecifiers.get($);if(Ke)for(let re of Ke)fx(re.name)!==ke&&(We=je(We,re.name,$));return We}function je(We,qt,ke,$){return We=Zr(We,st(qt,ke,$)),We}function st(We,qt,ke){let $=t.createExpressionStatement(jt(We,qt));return Zp($),ke||qn($,3072),$}function jt(We,qt){let ke=Ye(We)?t.createStringLiteralFromNode(We):We;return qn(qt,Ao(qt)|3072),yu(t.createCallExpression(M,void 0,[ke,qt]),qt)}function ar(We){switch(We.kind){case 243:return Ne(We);case 262:return Oe(We);case 263:return ie(We);case 248:return Or(We,!0);case 249:return nn(We);case 250:return Ct(We);case 246:return ta(We);case 247:return ts(We);case 256:return Gt(We);case 254:return hi(We);case 245:return $a(We);case 255:return ui(We);case 269:return Wn(We);case 296:return Gi(We);case 297:return at(We);case 258:return It(We);case 299:return Cr(We);case 241:return wn(We);default:return Pi(We)}}function Or(We,qt){let ke=z;return z=We,We=t.updateForStatement(We,dt(We.initializer,qt?vn:da,sm),dt(We.condition,Pi,At),dt(We.incrementor,da,At),Rf(We.statement,qt?ar:Pi,e)),z=ke,We}function nn(We){let qt=z;return z=We,We=t.updateForInStatement(We,vn(We.initializer),dt(We.expression,Pi,At),Rf(We.statement,ar,e)),z=qt,We}function Ct(We){let qt=z;return z=We,We=t.updateForOfStatement(We,We.awaitModifier,vn(We.initializer),dt(We.expression,Pi,At),Rf(We.statement,ar,e)),z=qt,We}function pr(We){return mp(We)&&ze(We)}function vn(We){if(pr(We)){let qt;for(let ke of We.declarations)qt=Zr(qt,ge(ke,!1)),ke.initializer||it(ke);return qt?t.inlineExpressions(qt):t.createOmittedExpression()}else return dt(We,da,sm)}function ta(We){return t.updateDoStatement(We,Rf(We.statement,ar,e),dt(We.expression,Pi,At))}function ts(We){return t.updateWhileStatement(We,dt(We.expression,Pi,At),Rf(We.statement,ar,e))}function Gt(We){return t.updateLabeledStatement(We,We.label,dt(We.statement,ar,fa,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function hi(We){return t.updateWithStatement(We,dt(We.expression,Pi,At),I.checkDefined(dt(We.statement,ar,fa,t.liftToBlock)))}function $a(We){return t.updateIfStatement(We,dt(We.expression,Pi,At),dt(We.thenStatement,ar,fa,t.liftToBlock)??t.createBlock([]),dt(We.elseStatement,ar,fa,t.liftToBlock))}function ui(We){return t.updateSwitchStatement(We,dt(We.expression,Pi,At),I.checkDefined(dt(We.caseBlock,ar,t3)))}function Wn(We){let qt=z;return z=We,We=t.updateCaseBlock(We,dn(We.clauses,ar,xq)),z=qt,We}function Gi(We){return t.updateCaseClause(We,dt(We.expression,Pi,At),dn(We.statements,ar,fa))}function at(We){return Gr(We,ar,e)}function It(We){return Gr(We,ar,e)}function Cr(We){let qt=z;return z=We,We=t.updateCatchClause(We,We.variableDeclaration,I.checkDefined(dt(We.block,ar,Cs))),z=qt,We}function wn(We){let qt=z;return z=We,We=Gr(We,ar,e),z=qt,We}function Di(We,qt){if(!(We.transformFlags&276828160))return We;switch(We.kind){case 248:return Or(We,!1);case 244:return ks(We);case 217:return no(We,qt);case 355:return Vr(We,qt);case 226:if(D1(We))return ft(We,qt);break;case 213:if(_d(We))return _s(We);break;case 224:case 225:return he(We,qt)}return Gr(We,Pi,e)}function Pi(We){return Di(We,!1)}function da(We){return Di(We,!0)}function ks(We){return t.updateExpressionStatement(We,dt(We.expression,da,At))}function no(We,qt){return t.updateParenthesizedExpression(We,dt(We.expression,qt?da:Pi,At))}function Vr(We,qt){return t.updatePartiallyEmittedExpression(We,dt(We.expression,qt?da:Pi,At))}function _s(We){let qt=OE(t,We,N,g,p,l),ke=dt(Yl(We.arguments),Pi,At),$=qt&&(!ke||!vo(ke)||ke.text!==qt.text)?qt:ke;return t.createCallExpression(t.createPropertyAccessExpression(L,t.createIdentifier("import")),void 0,$?[$]:[])}function ft(We,qt){return Qt(We.left)?tC(We,Pi,e,0,!qt):Gr(We,Pi,e)}function Qt(We){if(Yu(We,!0))return Qt(We.left);if(gm(We))return Qt(We.expression);if(So(We))return Pt(We.properties,Qt);if(kp(We))return Pt(We.elements,Qt);if(Jp(We))return Qt(We.name);if(xu(We))return Qt(We.initializer);if(Ye(We)){let qt=p.getReferencedExportContainer(We);return qt!==void 0&&qt.kind===307}else return!1}function he(We,qt){if((We.operator===46||We.operator===47)&&Ye(We.operand)&&!Xc(We.operand)&&!R0(We.operand)&&!_X(We.operand)){let ke=Xt(We.operand);if(ke){let $,Ke=dt(We.operand,Pi,At);jS(We)?Ke=t.updatePrefixUnaryExpression(We,Ke):(Ke=t.updatePostfixUnaryExpression(We,Ke),qt||($=t.createTempVariable(s),Ke=t.createAssignment($,Ke),Ot(Ke,We)),Ke=t.createComma(Ke,t.cloneNode(We.operand)),Ot(Ke,We));for(let re of ke)Ke=jt(re,lr(Ke));return $&&(Ke=t.createComma(Ke,$),Ot(Ke,We)),Ke}}return Gr(We,Pi,e)}function wt(We){switch(We.kind){case 95:case 90:return}return We}function oe(We,qt,ke){if(qt.kind===307){let $=jf(qt);N=qt,F=b[$],M=S[$],H=P[$],L=E[$],H&&delete P[$],x(We,qt,ke),N=void 0,F=void 0,M=void 0,L=void 0,H=void 0}else x(We,qt,ke)}function Ue(We,qt){return qt=m(We,qt),In(qt)?qt:We===1?$t(qt):We===4?pt(qt):qt}function pt(We){switch(We.kind){case 304:return vt(We)}return We}function vt(We){var qt,ke;let $=We.name;if(!Xc($)&&!R0($)){let Ke=p.getReferencedImportDeclaration($);if(Ke){if(vg(Ke))return Ot(t.createPropertyAssignment(t.cloneNode($),t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ke.parent),t.createIdentifier("default"))),We);if(bf(Ke)){let re=Ke.propertyName||Ke.name,Ft=t.getGeneratedNameForNode(((ke=(qt=Ke.parent)==null?void 0:qt.parent)==null?void 0:ke.parent)||Ke);return Ot(t.createPropertyAssignment(t.cloneNode($),re.kind===11?t.createElementAccessExpression(Ft,t.cloneNode(re)):t.createPropertyAccessExpression(Ft,t.cloneNode(re))),We)}}}return We}function $t(We){switch(We.kind){case 80:return Qe(We);case 226:return Lt(We);case 236:return Rt(We)}return We}function Qe(We){var qt,ke;if(Ao(We)&8192){let $=gM(N);return $?t.createPropertyAccessExpression($,We):We}if(!Xc(We)&&!R0(We)){let $=p.getReferencedImportDeclaration(We);if($){if(vg($))return Ot(t.createPropertyAccessExpression(t.getGeneratedNameForNode($.parent),t.createIdentifier("default")),We);if(bf($)){let Ke=$.propertyName||$.name,re=t.getGeneratedNameForNode(((ke=(qt=$.parent)==null?void 0:qt.parent)==null?void 0:ke.parent)||$);return Ot(Ke.kind===11?t.createElementAccessExpression(re,t.cloneNode(Ke)):t.createPropertyAccessExpression(re,t.cloneNode(Ke)),We)}}}return We}function Lt(We){if(O0(We.operatorToken.kind)&&Ye(We.left)&&(!Xc(We.left)||OF(We.left))&&!R0(We.left)){let qt=Xt(We.left);if(qt){let ke=We;for(let $ of qt)ke=jt($,lr(ke));return ke}}return We}function Rt(We){return aN(We)?t.createPropertyAccessExpression(L,t.createIdentifier("meta")):We}function Xt(We){let qt,ke=ut(We);if(ke){let $=p.getReferencedExportContainer(We,!1);$&&$.kind===307&&(qt=Zr(qt,t.getDeclarationName(ke))),qt=ti(qt,F?.exportedBindings[jf(ke)])}else if(Xc(We)&&OF(We)){let $=F?.exportSpecifiers.get(We);if($){let Ke=[];for(let re of $)Ke.push(re.name);return Ke}}return qt}function ut(We){if(!Xc(We)){let qt=p.getReferencedImportDeclaration(We);if(qt)return qt;let ke=p.getReferencedValueDeclaration(We);if(ke&&F?.exportedBindings[jf(ke)])return ke;let $=p.getReferencedValueDeclarations(We);if($){for(let Ke of $)if(Ke!==ke&&F?.exportedBindings[jf(Ke)])return Ke}return ke}}function lr(We){return H===void 0&&(H=[]),H[Wo(We)]=!0,We}function In(We){return H&&We.id&&H[We.id]}}function HZ(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),l=e.getCompilerOptions(),p=Po(l),g=e.onEmitNode,m=e.onSubstituteNode;e.onEmitNode=Y,e.onSubstituteNode=Ee,e.enableEmitNotification(307),e.enableSubstitution(80);let x=new Set,b,S,P,E;return Kg(e,N);function N(te){if(te.isDeclarationFile)return te;if(Du(te)||zm(l)){P=te,E=void 0,l.rewriteRelativeImportExtensions&&(P.flags&4194304||jn(te))&&az(te,!1,!1,me=>{(!Ho(me.arguments[0])||m5(me.arguments[0].text,l))&&(b=Zr(b,me))});let de=F(te);return Rv(de,e.readEmitHelpers()),P=void 0,E&&(de=t.updateSourceFile(de,Ot(t.createNodeArray(nQ(de.statements.slice(),E)),de.statements))),!Du(te)||hf(l)===200||Pt(de.statements,RF)?de:t.updateSourceFile(de,Ot(t.createNodeArray([...de.statements,_M(t)]),de.statements))}return te}function F(te){let de=NY(t,n(),te,l);if(de){let me=[],ve=t.copyPrologue(te.statements,me);return ti(me,h3([de],M,fa)),ti(me,dn(te.statements,M,fa,ve)),t.updateSourceFile(te,Ot(t.createNodeArray(me),te.statements))}else return Gr(te,M,e)}function M(te){switch(te.kind){case 271:return hf(l)>=100?H(te):void 0;case 277:return ne(te);case 278:return ae(te);case 272:return L(te);case 213:if(te===b?.[0])return W(b.shift());default:if(b?.length&&Zf(te,b[0]))return Gr(te,M,e)}return te}function L(te){if(!l.rewriteRelativeImportExtensions)return te;let de=jE(te.moduleSpecifier,l);return de===te.moduleSpecifier?te:t.updateImportDeclaration(te,te.modifiers,te.importClause,de,te.attributes)}function W(te){return t.updateCallExpression(te,te.expression,te.typeArguments,[Ho(te.arguments[0])?jE(te.arguments[0],l):n().createRewriteRelativeImportExtensionsHelper(te.arguments[0]),...te.arguments.slice(1)])}function z(te){let de=OE(t,te,I.checkDefined(P),i,s,l),me=[];if(de&&me.push(jE(de,l)),hf(l)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,me);if(!E){let Pe=t.createUniqueName("_createRequire",48),Oe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),Pe)])),t.createStringLiteral("module"),void 0),ie=t.createUniqueName("__require",48),Ne=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie,void 0,void 0,t.createCallExpression(t.cloneNode(Pe),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],p>=2?2:0));E=[Oe,Ne]}let ve=E[1].declarationList.declarations[0].name;return I.assertNode(ve,Ye),t.createCallExpression(t.cloneNode(ve),void 0,me)}function H(te){I.assert(kS(te),"import= for internal module references should be handled in an earlier transformer.");let de;return de=Zr(de,ii(Ot(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(te.name),void 0,void 0,z(te))],p>=2?2:0)),te),te)),de=X(de,te),em(de)}function X(te,de){return Ai(de,32)&&(te=Zr(te,t.createExportDeclaration(void 0,de.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,fi(de.name))])))),te}function ne(te){return te.isExportEquals?hf(l)===200?ii(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),te.expression)),te):void 0:te}function ae(te){let de=jE(te.moduleSpecifier,l);if(l.module!==void 0&&l.module>5||!te.exportClause||!Fy(te.exportClause)||!te.moduleSpecifier)return!te.moduleSpecifier||de===te.moduleSpecifier?te:t.updateExportDeclaration(te,te.modifiers,te.isTypeOnly,te.exportClause,de,te.attributes);let me=te.exportClause.name,ve=t.getGeneratedNameForNode(me),Pe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(ve)),de,te.attributes);ii(Pe,te.exportClause);let Oe=Iq(te)?t.createExportDefault(ve):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,ve,me)]));return ii(Oe,te),[Pe,Oe]}function Y(te,de,me){ba(de)?((Du(de)||zm(l))&&l.importHelpers&&(S=new Map),P=de,g(te,de,me),P=void 0,S=void 0):g(te,de,me)}function Ee(te,de){return de=m(te,de),de.id&&x.has(de.id)?de:Ye(de)&&Ao(de)&8192?fe(de):de}function fe(te){let de=P&&gM(P);if(de)return x.add(Wo(te)),t.createPropertyAccessExpression(de,te);if(S){let me=fi(te),ve=S.get(me);return ve||S.set(me,ve=t.createUniqueName(me,48)),ve}return te}}function o0e(e){let t=e.onSubstituteNode,n=e.onEmitNode,i=HZ(e),s=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;let p=VZ(e),g=e.onSubstituteNode,m=e.onEmitNode,x=L=>e.getEmitHost().getEmitModuleFormatOfFile(L);e.onSubstituteNode=S,e.onEmitNode=P,e.enableSubstitution(307),e.enableEmitNotification(307);let b;return F;function S(L,W){return ba(W)?(b=W,t(L,W)):b?x(b)>=5?s(L,W):g(L,W):t(L,W)}function P(L,W,z){return ba(W)&&(b=W),b?x(b)>=5?l(L,W,z):m(L,W,z):n(L,W,z)}function E(L){return x(L)>=5?i:p}function N(L){if(L.isDeclarationFile)return L;b=L;let W=E(L)(L);return b=void 0,I.assert(ba(W)),W}function F(L){return L.kind===307?N(L):M(L)}function M(L){return e.factory.createBundle(Dt(L.sourceFiles,N))}}function JM(e){return Ui(e)||is(e)||vf(e)||Do(e)||kh(e)||Sv(e)||oM(e)||xE(e)||wl(e)||yg(e)||jl(e)||Da(e)||Hc(e)||F0(e)||zu(e)||Wm(e)||ul(e)||wx(e)||ai(e)||Nc(e)||Vn(e)||Bm(e)}function c0e(e){if(kh(e)||Sv(e))return t;return yg(e)||wl(e)?i:GS(e);function t(l){let p=n(l);return p!==void 0?{diagnosticMessage:p,errorNode:e,typeName:e.name}:void 0}function n(l){return Vs(e)?l.errorModuleName?l.accessibility===2?y.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:y.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?l.errorModuleName?l.accessibility===2?y.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:y.Public_property_0_of_exported_class_has_or_is_using_private_name_1:l.errorModuleName?y.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:y.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(l){let p=s(l);return p!==void 0?{diagnosticMessage:p,errorNode:e,typeName:e.name}:void 0}function s(l){return Vs(e)?l.errorModuleName?l.accessibility===2?y.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:y.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?l.errorModuleName?l.accessibility===2?y.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:y.Public_method_0_of_exported_class_has_or_is_using_private_name_1:l.errorModuleName?y.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:y.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function GS(e){if(Ui(e)||is(e)||vf(e)||ai(e)||Nc(e)||Vn(e)||Do(e)||ul(e))return n;return kh(e)||Sv(e)?i:oM(e)||xE(e)||wl(e)||yg(e)||jl(e)||wx(e)?s:Da(e)?L_(e,e.parent)&&Ai(e.parent,2)?n:l:Hc(e)?g:F0(e)?m:zu(e)?x:Wm(e)||Bm(e)?b:I.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${I.formatSyntaxKind(e.kind)}`);function t(S){if(e.kind===260||e.kind===208)return S.errorModuleName?S.accessibility===2?y.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:y.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Ai(e.parent,2))return Vs(e)?S.errorModuleName?S.accessibility===2?y.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:y.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?S.errorModuleName?S.accessibility===2?y.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:y.Public_property_0_of_exported_class_has_or_is_using_private_name_1:S.errorModuleName?y.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:y.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(S){let P=t(S);return P!==void 0?{diagnosticMessage:P,errorNode:e,typeName:e.name}:void 0}function i(S){let P;return e.kind===178?Vs(e)?P=S.errorModuleName?y.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:y.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:P=S.errorModuleName?y.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:y.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Vs(e)?P=S.errorModuleName?S.accessibility===2?y.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:y.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:P=S.errorModuleName?S.accessibility===2?y.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:y.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:P,errorNode:e.name,typeName:e.name}}function s(S){let P;switch(e.kind){case 180:P=S.errorModuleName?y.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:y.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:P=S.errorModuleName?y.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:y.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:P=S.errorModuleName?y.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:y.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:Vs(e)?P=S.errorModuleName?S.accessibility===2?y.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:y.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:y.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?P=S.errorModuleName?S.accessibility===2?y.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:y.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:y.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:P=S.errorModuleName?y.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:y.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:P=S.errorModuleName?S.accessibility===2?y.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:y.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:y.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return I.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:P,errorNode:e.name||e}}function l(S){let P=p(S);return P!==void 0?{diagnosticMessage:P,errorNode:e,typeName:e.name}:void 0}function p(S){switch(e.parent.kind){case 176:return S.errorModuleName?S.accessibility===2?y.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return S.errorModuleName?y.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return S.errorModuleName?y.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return S.errorModuleName?y.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Vs(e.parent)?S.errorModuleName?S.accessibility===2?y.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?S.errorModuleName?S.accessibility===2?y.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S.errorModuleName?y.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return S.errorModuleName?S.accessibility===2?y.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return S.errorModuleName?S.accessibility===2?y.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:y.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:y.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return I.fail(`Unknown parent for parameter: ${I.formatSyntaxKind(e.parent.kind)}`)}}function g(){let S;switch(e.parent.kind){case 263:S=y.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:S=y.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:S=y.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:S=y.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:S=y.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:Vs(e.parent)?S=y.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?S=y.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S=y.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:S=y.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:S=y.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:S=y.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return I.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:S,errorNode:e,typeName:e.name}}function m(){let S;return bu(e.parent.parent)?S=U_(e.parent)&&e.parent.token===119?y.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?y.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:y.extends_clause_of_exported_class_has_or_is_using_private_name_0:S=y.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:e,typeName:ls(e.parent.parent)}}function x(){return{diagnosticMessage:y.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function b(S){return{diagnosticMessage:S.errorModuleName?y.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:y.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Bm(e)?I.checkDefined(e.typeExpression):e.type,typeName:Bm(e)?ls(e):e.name}}}function l0e(e){let t={219:y.Add_a_return_type_to_the_function_expression,218:y.Add_a_return_type_to_the_function_expression,174:y.Add_a_return_type_to_the_method,177:y.Add_a_return_type_to_the_get_accessor_declaration,178:y.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:y.Add_a_return_type_to_the_function_declaration,180:y.Add_a_return_type_to_the_function_declaration,169:y.Add_a_type_annotation_to_the_parameter_0,260:y.Add_a_type_annotation_to_the_variable_0,172:y.Add_a_type_annotation_to_the_property_0,171:y.Add_a_type_annotation_to_the_property_0,277:y.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:y.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:y.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:y.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:y.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:y.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:y.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,178:y.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,169:y.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:y.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:y.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:y.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:y.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:y.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:y.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:y.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:y.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:y.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return i;function i(M){if(Br(M,U_))return Mn(M,y.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Eh(M)||M2(M.parent))&&(Of(M)||Tc(M)))return N(M);switch(I.type(M),M.kind){case 177:case 178:return l(M);case 167:case 304:case 305:return g(M);case 209:case 230:return m(M);case 174:case 180:case 218:case 219:case 262:return x(M);case 208:return b(M);case 172:case 260:return S(M);case 169:return P(M);case 303:return F(M.initializer);case 231:return E(M);default:return F(M)}}function s(M){let L=Br(M,W=>Gc(W)||fa(W)||Ui(W)||is(W)||Da(W));if(L)return Gc(L)?L:md(L)?Br(L,W=>Dc(W)&&!ul(W)):fa(L)?void 0:L}function l(M){let{getAccessor:L,setAccessor:W}=E2(M.symbol.declarations,M),z=(kh(M)?M.parameters[0]:M)??M,H=Mn(z,n[M.kind]);return W&&Hs(H,Mn(W,t[W.kind])),L&&Hs(H,Mn(L,t[L.kind])),H}function p(M,L){let W=s(M);if(W){let z=Gc(W)||!W.name?"":cl(W.name,!1);Hs(L,Mn(W,t[W.kind],z))}return L}function g(M){let L=Mn(M,n[M.kind]);return p(M,L),L}function m(M){let L=Mn(M,n[M.kind]);return p(M,L),L}function x(M){let L=Mn(M,n[M.kind]);return p(M,L),Hs(L,Mn(M,t[M.kind])),L}function b(M){return Mn(M,y.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function S(M){let L=Mn(M,n[M.kind]),W=cl(M.name,!1);return Hs(L,Mn(M,t[M.kind],W)),L}function P(M){if(kh(M.parent))return l(M.parent);let L=e.requiresAddingImplicitUndefined(M,M.parent);if(!L&&M.initializer)return F(M.initializer);let W=L?y.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[M.kind],z=Mn(M,W),H=cl(M.name,!1);return Hs(z,Mn(M,t[M.kind],H)),z}function E(M){return F(M,y.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function N(M){let L=Mn(M,y.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,cl(M,!1));return p(M,L),L}function F(M,L){let W=s(M),z;if(W){let H=Gc(W)||!W.name?"":cl(W.name,!1),X=Br(M.parent,ne=>Gc(ne)||(fa(ne)?"quit":!Mf(ne)&&!yz(ne)&&!AN(ne)));W===X?(z=Mn(M,L??n[W.kind]),Hs(z,Mn(W,t[W.kind],H))):(z=Mn(M,L??y.Expression_type_can_t_be_inferred_with_isolatedDeclarations),Hs(z,Mn(W,t[W.kind],H)),Hs(z,Mn(M,y.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else z=Mn(M,L??y.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return z}}function u0e(e,t,n){let i=e.getCompilerOptions(),s=Cn(mJ(e,n),Yq);return Ta(s,n)?$M(t,e,j,i,[n],[GZ],!1).diagnostics:void 0}var zM=531469,WM=8;function GZ(e){let t=()=>I.fail("Diagnostic emitted without context"),n=t,i=!0,s=!1,l=!1,p=!1,g=!1,m,x,b,S,{factory:P}=e,E=e.getEmitHost(),N=()=>{},F={trackSymbol:ve,reportInaccessibleThisError:it,reportInaccessibleUniqueSymbolError:ie,reportCyclicStructureError:Ne,reportPrivateInBaseOfClassExpression:Pe,reportLikelyUnsafeImportRequiredError:ze,reportTruncationError:ge,moduleResolverHost:E,reportNonlocalAugmentation:Me,reportNonSerializableProperty:Te,reportInferenceFallback:de,pushErrorFallbackNode(he){let wt=L,oe=N;N=()=>{N=oe,L=wt},L=he},popErrorFallbackNode(){N()}},M,L,W,z,H,X,ne=e.getEmitResolver(),ae=e.getCompilerOptions(),Y=l0e(ne),{stripInternal:Ee,isolatedDeclarations:fe}=ae;return Tt;function te(he){ne.getPropertiesOfContainerFunction(he).forEach(wt=>{if(dE(wt.valueDeclaration)){let oe=Vn(wt.valueDeclaration)?wt.valueDeclaration.left:wt.valueDeclaration;e.addDiagnostic(Mn(oe,y.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function de(he){!fe||Nf(W)||rn(he)===W&&(Ui(he)&&ne.isExpandoFunctionDeclaration(he)?te(he):e.addDiagnostic(Y(he)))}function me(he){if(he.accessibility===0){if(he.aliasesToMakeVisible)if(!x)x=he.aliasesToMakeVisible;else for(let wt of he.aliasesToMakeVisible)I_(x,wt)}else if(he.accessibility!==3){let wt=n(he);if(wt)return wt.typeName?e.addDiagnostic(Mn(he.errorNode||wt.errorNode,wt.diagnosticMessage,cl(wt.typeName),he.errorSymbolName,he.errorModuleName)):e.addDiagnostic(Mn(he.errorNode||wt.errorNode,wt.diagnosticMessage,he.errorSymbolName,he.errorModuleName)),!0}return!1}function ve(he,wt,oe){return he.flags&262144?!1:me(ne.isSymbolAccessible(he,wt,oe,!0))}function Pe(he){(M||L)&&e.addDiagnostic(Hs(Mn(M||L,y.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,he),...Ui((M||L).parent)?[Mn(M||L,y.Add_a_type_annotation_to_the_variable_0,Oe())]:[]))}function Oe(){return M?Oc(M):L&&ls(L)?Oc(ls(L)):L&&Gc(L)?L.isExportEquals?"export=":"default":"(Missing)"}function ie(){(M||L)&&e.addDiagnostic(Mn(M||L,y.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Oe(),"unique symbol"))}function Ne(){(M||L)&&e.addDiagnostic(Mn(M||L,y.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Oe()))}function it(){(M||L)&&e.addDiagnostic(Mn(M||L,y.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Oe(),"this"))}function ze(he){(M||L)&&e.addDiagnostic(Mn(M||L,y.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Oe(),he))}function ge(){(M||L)&&e.addDiagnostic(Mn(M||L,y.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Me(he,wt,oe){var Ue;let pt=(Ue=wt.declarations)==null?void 0:Ue.find($t=>rn($t)===he),vt=Cn(oe.declarations,$t=>rn($t)!==he);if(pt&&vt)for(let $t of vt)e.addDiagnostic(Hs(Mn($t,y.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Mn(pt,y.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Te(he){(M||L)&&e.addDiagnostic(Mn(M||L,y.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,he))}function gt(he){let wt=n;n=Ue=>Ue.errorNode&&JM(Ue.errorNode)?GS(Ue.errorNode)(Ue):{diagnosticMessage:Ue.errorModuleName?y.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:y.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ue.errorNode||he};let oe=ne.getDeclarationStatementsForSourceFile(he,zM,WM,F);return n=wt,oe}function Tt(he){if(he.kind===307&&he.isDeclarationFile)return he;if(he.kind===308){s=!0,z=[],H=[],X=[];let Lt=!1,Rt=P.createBundle(Dt(he.sourceFiles,ut=>{if(ut.isDeclarationFile)return;if(Lt=Lt||ut.hasNoDefaultLib,W=ut,m=ut,x=void 0,S=!1,b=new Map,n=t,p=!1,g=!1,Ue(ut),q_(ut)||cm(ut)){l=!1,i=!1;let In=Nf(ut)?P.createNodeArray(gt(ut)):dn(ut.statements,Gi,fa);return P.updateSourceFile(ut,[P.createModuleDeclaration([P.createModifier(138)],P.createStringLiteral(GQ(e.getEmitHost(),ut)),P.createModuleBlock(Ot(P.createNodeArray($a(In)),ut.statements)))],!0,[],[],!1,[])}i=!0;let lr=Nf(ut)?P.createNodeArray(gt(ut)):dn(ut.statements,Gi,fa);return P.updateSourceFile(ut,$a(lr),!0,[],[],!1,[])})),Xt=Ei(_p(k3(he,E,!0).declarationFilePath));return Rt.syntheticFileReferences=Qe(Xt),Rt.syntheticTypeReferences=vt(),Rt.syntheticLibReferences=$t(),Rt.hasNoDefaultLib=Lt,Rt}i=!0,p=!1,g=!1,m=he,W=he,n=t,s=!1,l=!1,S=!1,x=void 0,b=new Map,z=[],H=[],X=[],Ue(W);let wt;if(Nf(W))wt=P.createNodeArray(gt(he));else{let Lt=dn(he.statements,Gi,fa);wt=Ot(P.createNodeArray($a(Lt)),he.statements),Du(he)&&(!l||p&&!g)&&(wt=Ot(P.createNodeArray([...wt,_M(P)]),wt))}let oe=Ei(_p(k3(he,E,!0).declarationFilePath));return P.updateSourceFile(he,wt,!0,Qe(oe),vt(),he.hasNoDefaultLib,$t());function Ue(Lt){z=ya(z,Dt(Lt.referencedFiles,Rt=>[Lt,Rt])),H=ya(H,Lt.typeReferenceDirectives),X=ya(X,Lt.libReferenceDirectives)}function pt(Lt){let Rt={...Lt};return Rt.pos=-1,Rt.end=-1,Rt}function vt(){return Bi(H,Lt=>{if(Lt.preserve)return pt(Lt)})}function $t(){return Bi(X,Lt=>{if(Lt.preserve)return pt(Lt)})}function Qe(Lt){return Bi(z,([Rt,Xt])=>{if(!Xt.preserve)return;let ut=E.getSourceFileFromReference(Rt,Xt);if(!ut)return;let lr;if(ut.isDeclarationFile)lr=ut.fileName;else{if(s&&Ta(he.sourceFiles,ut))return;let qt=k3(ut,E,!0);lr=qt.declarationFilePath||qt.jsFilePath||ut.fileName}if(!lr)return;let In=IP(Lt,lr,E.getCurrentDirectory(),E.getCanonicalFileName,!1),We=pt(Xt);return We.fileName=In,We})}}function xe(he){if(he.kind===80)return he;return he.kind===207?P.updateArrayBindingPattern(he,dn(he.elements,wt,hq)):P.updateObjectBindingPattern(he,dn(he.elements,wt,Do));function wt(oe){return oe.kind===232?oe:(oe.propertyName&&po(oe.propertyName)&&Tc(oe.propertyName.expression)&&pr(oe.propertyName.expression,m),P.updateBindingElement(oe,oe.dotDotDotToken,oe.propertyName,xe(oe.name),void 0))}}function nt(he,wt){let oe;S||(oe=n,n=GS(he));let Ue=P.updateParameterDeclaration(he,u8t(P,he,wt),he.dotDotDotToken,xe(he.name),ne.isOptionalParameter(he)?he.questionToken||P.createToken(58):void 0,qe(he,!0),He(he));return S||(n=oe),Ue}function pe(he){return wBe(he)&&!!he.initializer&&ne.isLiteralConstDeclaration(ds(he))}function He(he){if(pe(he)){let wt=Yge(he.initializer);return rz(wt)||de(he),ne.createLiteralConstValue(ds(he,wBe),F)}}function qe(he,wt){if(!wt&&z_(he,2)||pe(he))return;if(!Gc(he)&&!Do(he)&&he.type&&(!Da(he)||!ne.requiresAddingImplicitUndefined(he,m)))return dt(he.type,ui,Yi);let oe=M;M=he.name;let Ue;S||(Ue=n,JM(he)&&(n=GS(he)));let pt;return nz(he)?pt=ne.createTypeOfDeclaration(he,m,zM,WM,F):Ss(he)?pt=ne.createReturnTypeOfSignatureDeclaration(he,m,zM,WM,F):I.assertNever(he),M=oe,S||(n=Ue),pt??P.createKeywordTypeNode(133)}function je(he){switch(he=ds(he),he.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ne.isDeclarationVisible(he);case 260:return!jt(he);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function st(he){var wt;if(he.body)return!0;let oe=(wt=he.symbol.declarations)==null?void 0:wt.filter(Ue=>jl(Ue)&&!Ue.body);return!oe||oe.indexOf(he)===oe.length-1}function jt(he){return Ju(he)?!1:Os(he.name)?Pt(he.name.elements,jt):ne.isDeclarationVisible(he)}function ar(he,wt,oe){if(z_(he,2))return P.createNodeArray();let Ue=Dt(wt,pt=>nt(pt,oe));return Ue?P.createNodeArray(Ue,wt.hasTrailingComma):P.createNodeArray()}function Or(he,wt){let oe;if(!wt){let Ue=C2(he);Ue&&(oe=[nt(Ue)])}if(v_(he)){let Ue;if(!wt){let pt=b4(he);pt&&(Ue=nt(pt))}Ue||(Ue=P.createParameterDeclaration(void 0,void 0,"value")),oe=Zr(oe,Ue)}return P.createNodeArray(oe||ce)}function nn(he,wt){return z_(he,2)?void 0:dn(wt,ui,Hc)}function Ct(he){return ba(he)||Wm(he)||cu(he)||bu(he)||Cp(he)||Ss(he)||wx(he)||zk(he)}function pr(he,wt){let oe=ne.isEntityNameVisible(he,wt);me(oe)}function vn(he,wt){return fd(he)&&fd(wt)&&(he.jsDoc=wt.jsDoc),yu(he,Rh(wt))}function ta(he,wt){if(wt){if(l=l||he.kind!==267&&he.kind!==205,Ho(wt)&&s){let oe=qme(e.getEmitHost(),ne,he);if(oe)return P.createStringLiteral(oe)}return wt}}function ts(he){if(ne.isDeclarationVisible(he))if(he.moduleReference.kind===283){let wt=o4(he);return P.updateImportEqualsDeclaration(he,he.modifiers,he.isTypeOnly,he.name,P.updateExternalModuleReference(he.moduleReference,ta(he,wt)))}else{let wt=n;return n=GS(he),pr(he.moduleReference,m),n=wt,he}}function Gt(he){if(!he.importClause)return P.updateImportDeclaration(he,he.modifiers,he.importClause,ta(he,he.moduleSpecifier),hi(he.attributes));let wt=he.importClause&&he.importClause.name&&ne.isDeclarationVisible(he.importClause)?he.importClause.name:void 0;if(!he.importClause.namedBindings)return wt&&P.updateImportDeclaration(he,he.modifiers,P.updateImportClause(he.importClause,he.importClause.isTypeOnly,wt,void 0),ta(he,he.moduleSpecifier),hi(he.attributes));if(he.importClause.namedBindings.kind===274){let Ue=ne.isDeclarationVisible(he.importClause.namedBindings)?he.importClause.namedBindings:void 0;return wt||Ue?P.updateImportDeclaration(he,he.modifiers,P.updateImportClause(he.importClause,he.importClause.isTypeOnly,wt,Ue),ta(he,he.moduleSpecifier),hi(he.attributes)):void 0}let oe=Bi(he.importClause.namedBindings.elements,Ue=>ne.isDeclarationVisible(Ue)?Ue:void 0);if(oe&&oe.length||wt)return P.updateImportDeclaration(he,he.modifiers,P.updateImportClause(he.importClause,he.importClause.isTypeOnly,wt,oe&&oe.length?P.updateNamedImports(he.importClause.namedBindings,oe):void 0),ta(he,he.moduleSpecifier),hi(he.attributes));if(ne.isImportRequiredByAugmentation(he))return fe&&e.addDiagnostic(Mn(he,y.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),P.updateImportDeclaration(he,he.modifiers,void 0,ta(he,he.moduleSpecifier),hi(he.attributes))}function hi(he){let wt=rA(he);return he&&wt!==void 0?he:void 0}function $a(he){for(;Re(x);){let oe=x.shift();if(!Mq(oe))return I.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${I.formatSyntaxKind(oe.kind)}`);let Ue=i;i=oe.parent&&ba(oe.parent)&&!(Du(oe.parent)&&s);let pt=Cr(oe);i=Ue,b.set(jf(oe),pt)}return dn(he,wt,fa);function wt(oe){if(Mq(oe)){let Ue=jf(oe);if(b.has(Ue)){let pt=b.get(Ue);return b.delete(Ue),pt&&((cs(pt)?Pt(pt,yq):yq(pt))&&(p=!0),ba(oe.parent)&&(cs(pt)?Pt(pt,RF):RF(pt))&&(l=!0)),pt}}return oe}}function ui(he){if(ks(he))return;if(Ku(he)){if(je(he))return;if(E0(he)){if(fe){if(!ne.isDefinitelyReferenceToGlobalSymbolObject(he.name.expression)){if(bu(he.parent)||So(he.parent)){e.addDiagnostic(Mn(he,y.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((Cp(he.parent)||Ff(he.parent))&&!Tc(he.name.expression)){e.addDiagnostic(Mn(he,y.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!ne.isLateBound(ds(he))||!Tc(he.name.expression))return}}if(Ss(he)&&ne.isImplementationOfOverload(he)||Fhe(he))return;let wt;Ct(he)&&(wt=m,m=he);let oe=n,Ue=JM(he),pt=S,vt=(he.kind===187||he.kind===200)&&he.parent.kind!==265;if((wl(he)||yg(he))&&z_(he,2))return he.symbol&&he.symbol.declarations&&he.symbol.declarations[0]!==he?void 0:$t(P.createPropertyDeclaration(_s(he),he.name,void 0,void 0,void 0));if(Ue&&!S&&(n=GS(he)),M2(he)&&pr(he.exprName,m),vt&&(S=!0),f8t(he))switch(he.kind){case 233:{(Of(he.expression)||Tc(he.expression))&&pr(he.expression,m);let Qe=Gr(he,ui,e);return $t(P.updateExpressionWithTypeArguments(Qe,Qe.expression,Qe.typeArguments))}case 183:{pr(he.typeName,m);let Qe=Gr(he,ui,e);return $t(P.updateTypeReferenceNode(Qe,Qe.typeName,Qe.typeArguments))}case 180:return $t(P.updateConstructSignature(he,nn(he,he.typeParameters),ar(he,he.parameters),qe(he)));case 176:{let Qe=P.createConstructorDeclaration(_s(he),ar(he,he.parameters,0),void 0);return $t(Qe)}case 174:{if(Ca(he.name))return $t(void 0);let Qe=P.createMethodDeclaration(_s(he),void 0,he.name,he.questionToken,nn(he,he.typeParameters),ar(he,he.parameters),qe(he),void 0);return $t(Qe)}case 177:return Ca(he.name)?$t(void 0):$t(P.updateGetAccessorDeclaration(he,_s(he),he.name,Or(he,z_(he,2)),qe(he),void 0));case 178:return Ca(he.name)?$t(void 0):$t(P.updateSetAccessorDeclaration(he,_s(he),he.name,Or(he,z_(he,2)),void 0));case 172:return Ca(he.name)?$t(void 0):$t(P.updatePropertyDeclaration(he,_s(he),he.name,he.questionToken,qe(he),He(he)));case 171:return Ca(he.name)?$t(void 0):$t(P.updatePropertySignature(he,_s(he),he.name,he.questionToken,qe(he)));case 173:return Ca(he.name)?$t(void 0):$t(P.updateMethodSignature(he,_s(he),he.name,he.questionToken,nn(he,he.typeParameters),ar(he,he.parameters),qe(he)));case 179:return $t(P.updateCallSignature(he,nn(he,he.typeParameters),ar(he,he.parameters),qe(he)));case 181:return $t(P.updateIndexSignature(he,_s(he),ar(he,he.parameters),dt(he.type,ui,Yi)||P.createKeywordTypeNode(133)));case 260:return Os(he.name)?Di(he.name):(vt=!0,S=!0,$t(P.updateVariableDeclaration(he,he.name,void 0,qe(he),He(he))));case 168:return Wn(he)&&(he.default||he.constraint)?$t(P.updateTypeParameterDeclaration(he,he.modifiers,he.name,void 0,void 0)):$t(Gr(he,ui,e));case 194:{let Qe=dt(he.checkType,ui,Yi),Lt=dt(he.extendsType,ui,Yi),Rt=m;m=he.trueType;let Xt=dt(he.trueType,ui,Yi);m=Rt;let ut=dt(he.falseType,ui,Yi);return I.assert(Qe),I.assert(Lt),I.assert(Xt),I.assert(ut),$t(P.updateConditionalTypeNode(he,Qe,Lt,Xt,ut))}case 184:return $t(P.updateFunctionTypeNode(he,dn(he.typeParameters,ui,Hc),ar(he,he.parameters),I.checkDefined(dt(he.type,ui,Yi))));case 185:return $t(P.updateConstructorTypeNode(he,_s(he),dn(he.typeParameters,ui,Hc),ar(he,he.parameters),I.checkDefined(dt(he.type,ui,Yi))));case 205:return C0(he)?$t(P.updateImportTypeNode(he,P.updateLiteralTypeNode(he.argument,ta(he,he.argument.literal)),he.attributes,he.qualifier,dn(he.typeArguments,ui,Yi),he.isTypeOf)):$t(he);default:I.assertNever(he,`Attempted to process unhandled node kind: ${I.formatSyntaxKind(he.kind)}`)}return TE(he)&&$s(W,he.pos).line===$s(W,he.end).line&&qn(he,1),$t(Gr(he,ui,e));function $t(Qe){return Qe&&Ue&&E0(he)&&da(he),Ct(he)&&(m=wt),Ue&&!S&&(n=oe),vt&&(S=pt),Qe===he?Qe:Qe&&ii(vn(Qe,he),he)}}function Wn(he){return he.parent.kind===174&&z_(he.parent,2)}function Gi(he){if(!p8t(he)||ks(he))return;switch(he.kind){case 278:return ba(he.parent)&&(l=!0),g=!0,P.updateExportDeclaration(he,he.modifiers,he.isTypeOnly,he.exportClause,ta(he,he.moduleSpecifier),hi(he.attributes));case 277:{if(ba(he.parent)&&(l=!0),g=!0,he.expression.kind===80)return he;{let oe=P.createUniqueName("_default",16);n=()=>({diagnosticMessage:y.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:he}),L=he;let Ue=qe(he),pt=P.createVariableDeclaration(oe,void 0,Ue,void 0);L=void 0;let vt=P.createVariableStatement(i?[P.createModifier(138)]:[],P.createVariableDeclarationList([pt],2));return vn(vt,he),tM(he),[vt,P.updateExportAssignment(he,he.modifiers,oe)]}}}let wt=Cr(he);return b.set(jf(he),wt),he}function at(he){if(zu(he)||z_(he,2048)||!$m(he))return he;let wt=P.createModifiersFromModifierFlags(gf(he)&131039);return P.replaceModifiers(he,wt)}function It(he,wt,oe,Ue){let pt=P.updateModuleDeclaration(he,wt,oe,Ue);if(df(pt)||pt.flags&32)return pt;let vt=P.createModuleDeclaration(pt.modifiers,pt.name,pt.body,pt.flags|32);return ii(vt,pt),Ot(vt,pt),vt}function Cr(he){if(x)for(;wP(x,he););if(ks(he))return;switch(he.kind){case 271:return ts(he);case 272:return Gt(he)}if(Ku(he)&&je(he)||zh(he)||Ss(he)&&ne.isImplementationOfOverload(he))return;let wt;Ct(he)&&(wt=m,m=he);let oe=JM(he),Ue=n;oe&&(n=GS(he));let pt=i;switch(he.kind){case 265:{i=!1;let $t=vt(P.updateTypeAliasDeclaration(he,_s(he),he.name,dn(he.typeParameters,ui,Hc),I.checkDefined(dt(he.type,ui,Yi))));return i=pt,$t}case 264:return vt(P.updateInterfaceDeclaration(he,_s(he),he.name,nn(he,he.typeParameters),Qt(he.heritageClauses),dn(he.members,ui,f2)));case 262:{let $t=vt(P.updateFunctionDeclaration(he,_s(he),void 0,he.name,nn(he,he.typeParameters),ar(he,he.parameters),qe(he),void 0));if($t&&ne.isExpandoFunctionDeclaration(he)&&st(he)){let Qe=ne.getPropertiesOfContainerFunction(he);fe&&te(he);let Lt=US.createModuleDeclaration(void 0,$t.name||P.createIdentifier("_default"),P.createModuleBlock([]),32);Xo(Lt,m),Lt.locals=Qs(Qe),Lt.symbol=Qe[0].parent;let Rt=[],Xt=Bi(Qe,ke=>{if(!dE(ke.valueDeclaration))return;let $=ka(ke.escapedName);if(!m_($,99))return;n=GS(ke.valueDeclaration);let Ke=ne.createTypeOfDeclaration(ke.valueDeclaration,Lt,zM,WM|2,F);n=Ue;let re=ZP($),Ft=re?P.getGeneratedNameForNode(ke.valueDeclaration):P.createIdentifier($);re&&Rt.push([Ft,$]);let rr=P.createVariableDeclaration(Ft,void 0,Ke,void 0);return P.createVariableStatement(re?void 0:[P.createToken(95)],P.createVariableDeclarationList([rr]))});Rt.length?Xt.push(P.createExportDeclaration(void 0,!1,P.createNamedExports(Dt(Rt,([ke,$])=>P.createExportSpecifier(!1,ke,$))))):Xt=Bi(Xt,ke=>P.replaceModifiers(ke,0));let ut=P.createModuleDeclaration(_s(he),he.name,P.createModuleBlock(Xt),32);if(!z_($t,2048))return[$t,ut];let lr=P.createModifiersFromModifierFlags(gf($t)&-2081|128),In=P.updateFunctionDeclaration($t,lr,void 0,$t.name,$t.typeParameters,$t.parameters,$t.type,void 0),We=P.updateModuleDeclaration(ut,lr,ut.name,ut.body),qt=P.createExportAssignment(void 0,!1,ut.name);return ba(he.parent)&&(l=!0),g=!0,[In,We,qt]}else return $t}case 267:{i=!1;let $t=he.body;if($t&&$t.kind===268){let Qe=p,Lt=g;g=!1,p=!1;let Rt=dn($t.statements,Gi,fa),Xt=$a(Rt);he.flags&33554432&&(p=!1),!Oy(he)&&!Vr(Xt)&&!g&&(p?Xt=P.createNodeArray([...Xt,_M(P)]):Xt=dn(Xt,at,fa));let ut=P.updateModuleBlock($t,Xt);i=pt,p=Qe,g=Lt;let lr=_s(he);return vt(It(he,lr,h2(he)?ta(he,he.name):he.name,ut))}else{i=pt;let Qe=_s(he);i=!1,dt($t,Gi);let Lt=jf($t),Rt=b.get(Lt);return b.delete(Lt),vt(It(he,Qe,he.name,Rt))}}case 263:{M=he.name,L=he;let $t=P.createNodeArray(_s(he)),Qe=nn(he,he.typeParameters),Lt=Dv(he),Rt;if(Lt){let ke=n;Rt=PO(li(Lt.parameters,$=>{if(!Ai($,31)||ks($))return;if(n=GS($),$.name.kind===80)return vn(P.createPropertyDeclaration(_s($),$.name,$.questionToken,qe($),He($)),$);return Ke($.name);function Ke(re){let Ft;for(let rr of re.elements)Ju(rr)||(Os(rr.name)&&(Ft=ya(Ft,Ke(rr.name))),Ft=Ft||[],Ft.push(P.createPropertyDeclaration(_s($),rr.name,void 0,qe(rr),void 0)));return Ft}})),n=ke}let ut=Pt(he.members,ke=>!!ke.name&&Ca(ke.name))?[P.createPropertyDeclaration(void 0,P.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,lr=ne.createLateBoundIndexSignatures(he,m,zM,WM,F),In=ya(ya(ya(ut,lr),Rt),dn(he.members,ui,ou)),We=P.createNodeArray(In),qt=Dh(he);if(qt&&!Tc(qt.expression)&&qt.expression.kind!==106){let ke=he.name?ka(he.name.escapedText):"default",$=P.createUniqueName(`${ke}_base`,16);n=()=>({diagnosticMessage:y.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:qt,typeName:he.name});let Ke=P.createVariableDeclaration($,void 0,ne.createTypeOfExpression(qt.expression,he,zM,WM,F),void 0),re=P.createVariableStatement(i?[P.createModifier(138)]:[],P.createVariableDeclarationList([Ke],2)),Ft=P.createNodeArray(Dt(he.heritageClauses,rr=>{if(rr.token===96){let Le=n;n=GS(rr.types[0]);let kt=P.updateHeritageClause(rr,Dt(rr.types,dr=>P.updateExpressionWithTypeArguments(dr,$,dn(dr.typeArguments,ui,Yi))));return n=Le,kt}return P.updateHeritageClause(rr,dn(P.createNodeArray(Cn(rr.types,Le=>Tc(Le.expression)||Le.expression.kind===106)),ui,F0))}));return[re,vt(P.updateClassDeclaration(he,$t,he.name,Qe,Ft,We))]}else{let ke=Qt(he.heritageClauses);return vt(P.updateClassDeclaration(he,$t,he.name,Qe,ke,We))}}case 243:return vt(wn(he));case 266:return vt(P.updateEnumDeclaration(he,P.createNodeArray(_s(he)),he.name,P.createNodeArray(Bi(he.members,$t=>{if(ks($t))return;let Qe=ne.getEnumMemberValue($t),Lt=Qe?.value;fe&&$t.initializer&&Qe?.hasExternalReferences&&!po($t.name)&&e.addDiagnostic(Mn($t,y.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let Rt=Lt===void 0?void 0:typeof Lt=="string"?P.createStringLiteral(Lt):Lt<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-Lt)):P.createNumericLiteral(Lt);return vn(P.updateEnumMember($t,$t.name,Rt),$t)}))))}return I.assertNever(he,`Unhandled top-level node in declaration emit: ${I.formatSyntaxKind(he.kind)}`);function vt($t){return Ct(he)&&(m=wt),oe&&(n=Ue),he.kind===267&&(i=pt),$t===he?$t:(L=void 0,M=void 0,$t&&ii(vn($t,he),he))}}function wn(he){if(!Ge(he.declarationList.declarations,jt))return;let wt=dn(he.declarationList.declarations,ui,Ui);if(!Re(wt))return;let oe=P.createNodeArray(_s(he)),Ue;return QF(he.declarationList)||KF(he.declarationList)?(Ue=P.createVariableDeclarationList(wt,2),ii(Ue,he.declarationList),Ot(Ue,he.declarationList),yu(Ue,he.declarationList)):Ue=P.updateVariableDeclarationList(he.declarationList,wt),P.updateVariableStatement(he,oe,Ue)}function Di(he){return js(Bi(he.elements,wt=>Pi(wt)))}function Pi(he){if(he.kind!==232&&he.name)return jt(he)?Os(he.name)?Di(he.name):P.createVariableDeclaration(he.name,void 0,qe(he),void 0):void 0}function da(he){let wt;S||(wt=n,n=c0e(he)),M=he.name,I.assert(E0(he));let Ue=he.name.expression;pr(Ue,m),S||(n=wt),M=void 0}function ks(he){return!!Ee&&!!he&&Rde(he,W)}function no(he){return Gc(he)||tu(he)}function Vr(he){return Pt(he,no)}function _s(he){let wt=gf(he),oe=ft(he);return wt===oe?h3(he.modifiers,Ue=>_i(Ue,oo),oo):P.createModifiersFromModifierFlags(oe)}function ft(he){let wt=130030,oe=i&&!l8t(he)?128:0,Ue=he.parent.kind===307;return(!Ue||s&&Ue&&Du(he.parent))&&(wt^=128,oe=0),TBe(he,wt,oe)}function Qt(he){return P.createNodeArray(Cn(Dt(he,wt=>P.updateHeritageClause(wt,dn(P.createNodeArray(Cn(wt.types,oe=>Tc(oe.expression)||wt.token===96&&oe.expression.kind===106)),ui,F0))),wt=>wt.types&&!!wt.types.length))}}function l8t(e){return e.kind===264}function u8t(e,t,n,i){return e.createModifiersFromModifierFlags(TBe(t,n,i))}function TBe(e,t=131070,n=0){let i=gf(e)&t|n;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function wBe(e){switch(e.kind){case 172:case 171:return!z_(e,2);case 169:case 260:return!0}return!1}function p8t(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function f8t(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}function _8t(e){switch(e){case 200:return HZ;case 99:case 7:case 6:case 5:case 100:case 101:case 199:case 1:return o0e;case 4:return s0e;default:return VZ}}var p0e={scriptTransformers:ce,declarationTransformers:ce};function f0e(e,t,n){return{scriptTransformers:d8t(e,t,n),declarationTransformers:m8t(t)}}function d8t(e,t,n){if(n)return ce;let i=Po(e),s=hf(e),l=J5(e),p=[];return ti(p,t&&Dt(t.before,CBe)),p.push(Wve),e.experimentalDecorators&&p.push(Vve),jJ(e)&&p.push(r0e),i<99&&p.push(Zve),!e.experimentalDecorators&&(i<99||!l)&&p.push(Hve),p.push(Uve),i<8&&p.push(Yve),i<7&&p.push(Xve),i<6&&p.push(Qve),i<5&&p.push(Kve),i<4&&p.push(Gve),i<3&&p.push(n0e),i<2&&(p.push(i0e),p.push(a0e)),p.push(_8t(s)),ti(p,t&&Dt(t.after,CBe)),p}function m8t(e){let t=[];return t.push(GZ),ti(t,e&&Dt(e.afterDeclarations,h8t)),t}function g8t(e){return t=>qhe(t)?e.transformBundle(t):e.transformSourceFile(t)}function kBe(e,t){return n=>{let i=e(n);return typeof i=="function"?t(n,i):g8t(i)}}function CBe(e){return kBe(e,Kg)}function h8t(e){return kBe(e,(t,n)=>n)}function w3(e,t){return t}function UM(e,t,n){n(e,t)}function $M(e,t,n,i,s,l,p){var g,m;let x=new Array(358),b,S,P,E=0,N=[],F=[],M=[],L=[],W=0,z=!1,H=[],X=0,ne,ae,Y=w3,Ee=UM,fe=0,te=[],de={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Cu(()=>vhe(de)),startLexicalEnvironment:xe,suspendLexicalEnvironment:nt,resumeLexicalEnvironment:pe,endLexicalEnvironment:He,setLexicalEnvironmentFlags:qe,getLexicalEnvironmentFlags:je,hoistVariableDeclaration:Te,hoistFunctionDeclaration:gt,addInitializationStatement:Tt,startBlockScope:st,endBlockScope:jt,addBlockScopedVariable:ar,requestEmitHelper:Or,readEmitHelpers:nn,enableSubstitution:ie,enableEmitNotification:ze,isSubstitutionEnabled:Ne,isEmitNotificationEnabled:ge,get onSubstituteNode(){return Y},set onSubstituteNode(pr){I.assert(fe<1,"Cannot modify transformation hooks after initialization has completed."),I.assert(pr!==void 0,"Value must not be 'undefined'"),Y=pr},get onEmitNode(){return Ee},set onEmitNode(pr){I.assert(fe<1,"Cannot modify transformation hooks after initialization has completed."),I.assert(pr!==void 0,"Value must not be 'undefined'"),Ee=pr},addDiagnostic(pr){te.push(pr)}};for(let pr of s)tY(rn(ds(pr)));Qc("beforeTransform");let me=l.map(pr=>pr(de)),ve=pr=>{for(let vn of me)pr=vn(pr);return pr};fe=1;let Pe=[];for(let pr of s)(g=Fn)==null||g.push(Fn.Phase.Emit,"transformNodes",pr.kind===307?{path:pr.path}:{kind:pr.kind,pos:pr.pos,end:pr.end}),Pe.push((p?ve:Oe)(pr)),(m=Fn)==null||m.pop();return fe=2,Qc("afterTransform"),R_("transformTime","beforeTransform","afterTransform"),{transformed:Pe,substituteNode:it,emitNodeWithNotification:Me,isEmitNotificationEnabled:ge,dispose:Ct,diagnostics:te};function Oe(pr){return pr&&(!ba(pr)||!pr.isDeclarationFile)?ve(pr):pr}function ie(pr){I.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),x[pr]|=1}function Ne(pr){return(x[pr.kind]&1)!==0&&(Ao(pr)&8)===0}function it(pr,vn){return I.assert(fe<3,"Cannot substitute a node after the result is disposed."),vn&&Ne(vn)&&Y(pr,vn)||vn}function ze(pr){I.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),x[pr]|=2}function ge(pr){return(x[pr.kind]&2)!==0||(Ao(pr)&4)!==0}function Me(pr,vn,ta){I.assert(fe<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),vn&&(ge(vn)?Ee(pr,vn,ta):ta(pr,vn))}function Te(pr){I.assert(fe>0,"Cannot modify the lexical environment during initialization."),I.assert(fe<2,"Cannot modify the lexical environment after transformation has completed.");let vn=qn(n.createVariableDeclaration(pr),128);b?b.push(vn):b=[vn],E&1&&(E|=2)}function gt(pr){I.assert(fe>0,"Cannot modify the lexical environment during initialization."),I.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),qn(pr,2097152),S?S.push(pr):S=[pr]}function Tt(pr){I.assert(fe>0,"Cannot modify the lexical environment during initialization."),I.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),qn(pr,2097152),P?P.push(pr):P=[pr]}function xe(){I.assert(fe>0,"Cannot modify the lexical environment during initialization."),I.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),I.assert(!z,"Lexical environment is suspended."),N[W]=b,F[W]=S,M[W]=P,L[W]=E,W++,b=void 0,S=void 0,P=void 0,E=0}function nt(){I.assert(fe>0,"Cannot modify the lexical environment during initialization."),I.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),I.assert(!z,"Lexical environment is already suspended."),z=!0}function pe(){I.assert(fe>0,"Cannot modify the lexical environment during initialization."),I.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),I.assert(z,"Lexical environment is not suspended."),z=!1}function He(){I.assert(fe>0,"Cannot modify the lexical environment during initialization."),I.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),I.assert(!z,"Lexical environment is suspended.");let pr;if(b||S||P){if(S&&(pr=[...S]),b){let vn=n.createVariableStatement(void 0,n.createVariableDeclarationList(b));qn(vn,2097152),pr?pr.push(vn):pr=[vn]}P&&(pr?pr=[...pr,...P]:pr=[...P])}return W--,b=N[W],S=F[W],P=M[W],E=L[W],W===0&&(N=[],F=[],M=[],L=[]),pr}function qe(pr,vn){E=vn?E|pr:E&~pr}function je(){return E}function st(){I.assert(fe>0,"Cannot start a block scope during initialization."),I.assert(fe<2,"Cannot start a block scope after transformation has completed."),H[X]=ne,X++,ne=void 0}function jt(){I.assert(fe>0,"Cannot end a block scope during initialization."),I.assert(fe<2,"Cannot end a block scope after transformation has completed.");let pr=Pt(ne)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(ne.map(vn=>n.createVariableDeclaration(vn)),1))]:void 0;return X--,ne=H[X],X===0&&(H=[]),pr}function ar(pr){I.assert(X>0,"Cannot add a block scoped variable outside of an iteration body."),(ne||(ne=[])).push(pr)}function Or(pr){if(I.assert(fe>0,"Cannot modify the transformation context during initialization."),I.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),I.assert(!pr.scoped,"Cannot request a scoped emit helper."),pr.dependencies)for(let vn of pr.dependencies)Or(vn);ae=Zr(ae,pr)}function nn(){I.assert(fe>0,"Cannot modify the transformation context during initialization."),I.assert(fe<2,"Cannot modify the transformation context after transformation has completed.");let pr=ae;return ae=void 0,pr}function Ct(){if(fe<3){for(let pr of s)tY(rn(ds(pr)));b=void 0,N=void 0,S=void 0,F=void 0,Y=void 0,Ee=void 0,ae=void 0,fe=3}}}var VM={factory:j,getCompilerOptions:()=>({}),getEmitResolver:zs,getEmitHost:zs,getEmitHelperFactory:zs,startLexicalEnvironment:Ko,resumeLexicalEnvironment:Ko,suspendLexicalEnvironment:Ko,endLexicalEnvironment:Rg,setLexicalEnvironmentFlags:Ko,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ko,hoistFunctionDeclaration:Ko,addInitializationStatement:Ko,startBlockScope:Ko,endBlockScope:Rg,addBlockScopedVariable:Ko,requestEmitHelper:Ko,readEmitHelpers:zs,enableSubstitution:Ko,enableEmitNotification:Ko,isSubstitutionEnabled:zs,isEmitNotificationEnabled:zs,onSubstituteNode:w3,onEmitNode:UM,addDiagnostic:Ko},PBe=v8t();function _0e(e){return il(e,".tsbuildinfo")}function KZ(e,t,n,i=!1,s,l){let p=cs(n)?n:mJ(e,n,i),g=e.getCompilerOptions();if(!s)if(g.outFile){if(p.length){let m=j.createBundle(p),x=t(k3(m,e,i),m);if(x)return x}}else for(let m of p){let x=t(k3(m,e,i),m);if(x)return x}if(l){let m=KS(g);if(m)return t({buildInfoPath:m},void 0)}}function KS(e){let t=e.configFilePath;if(!y8t(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let n=e.outFile,i;if(n)i=yf(n);else{if(!t)return;let s=yf(t);i=e.outDir?e.rootDir?Zb(e.outDir,Pd(e.rootDir,s,!0)):gi(e.outDir,gu(s)):s}return i+".tsbuildinfo"}function y8t(e){return N2(e)||!!e.tscBuild}function d0e(e,t){let n=e.outFile,i=e.emitDeclarationOnly?void 0:n,s=i&&EBe(i,e),l=t||y_(e)?yf(n)+".d.ts":void 0,p=l&&IJ(e)?l+".map":void 0;return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:l,declarationMapPath:p}}function k3(e,t,n){let i=t.getCompilerOptions();if(e.kind===308)return d0e(i,n);{let s=Jme(e.fileName,t,HM(e.fileName,i)),l=cm(e),p=l&&S0(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,g=i.emitDeclarationOnly||p?void 0:s,m=!g||cm(e)?void 0:EBe(g,i),x=n||y_(i)&&!l?zme(e.fileName,t):void 0,b=x&&IJ(i)?x+".map":void 0;return{jsFilePath:g,sourceMapFilePath:m,declarationFilePath:x,declarationMapPath:b}}}function EBe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function HM(e,t){return il(e,".json")?".json":t.jsx===1&&Wl(e,[".jsx",".tsx"])?".jsx":Wl(e,[".mts",".mjs"])?".mjs":Wl(e,[".cts",".cjs"])?".cjs":".js"}function DBe(e,t,n,i){return n?Zb(n,Pd(i(),e,t)):e}function tA(e,t,n,i=()=>rC(t,n)){return QZ(e,t.options,n,i)}function QZ(e,t,n,i){return I0(DBe(e,n,t.declarationDir||t.outDir,i),_J(e))}function OBe(e,t,n,i=()=>rC(t,n)){if(t.options.emitDeclarationOnly)return;let s=il(e,".json"),l=XZ(e,t.options,n,i);return!s||S0(e,l,I.checkDefined(t.options.configFilePath),n)!==0?l:void 0}function XZ(e,t,n,i){return I0(DBe(e,n,t.outDir,i),HM(e,t))}function NBe(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||ce}}function ABe(e,t){let{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:l}=d0e(e.options,!1);t(n),t(i),t(s),t(l)}function IBe(e,t,n,i,s){if(Wu(t))return;let l=OBe(t,e,n,s);if(i(l),!il(t,".json")&&(l&&e.options.sourceMap&&i(`${l}.map`),y_(e.options))){let p=tA(t,e,n,s);i(p),e.options.declarationMap&&i(`${p}.map`)}}function C3(e,t,n,i,s){let l;return e.rootDir?(l=Qa(e.rootDir,n),s?.(e.rootDir)):e.composite&&e.configFilePath?(l=Ei(_p(e.configFilePath)),s?.(l)):l=S0e(t(),n,i),l&&l[l.length-1]!==jc&&(l+=jc),l}function rC({options:e,fileNames:t},n){return C3(e,()=>Cn(t,i=>!(e.noEmitForJsFiles&&Wl(i,wN))&&!Wu(i)),Ei(_p(I.checkDefined(e.configFilePath))),Xu(!n))}function xW(e,t){let{addOutput:n,getOutputs:i}=NBe();if(e.options.outFile)ABe(e,n);else{let s=Cu(()=>rC(e,t));for(let l of e.fileNames)IBe(e,l,t,n,s)}return n(KS(e.options)),i()}function FBe(e,t,n){t=Zs(t),I.assert(Ta(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:s}=NBe();return e.options.outFile?ABe(e,i):IBe(e,t,n,i),s()}function YZ(e,t){if(e.options.outFile){let{jsFilePath:s,declarationFilePath:l}=d0e(e.options,!1);return I.checkDefined(s||l,`project ${e.options.configFilePath} expected to have at least one output`)}let n=Cu(()=>rC(e,t));for(let s of e.fileNames){if(Wu(s))continue;let l=OBe(s,e,t,n);if(l)return l;if(!il(s,".json")&&y_(e.options))return tA(s,e,t,n)}let i=KS(e.options);return i||I.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function ZZ(e,t){return!!t&&!!e}function eee(e,t,n,{scriptTransformers:i,declarationTransformers:s},l,p,g,m){var x=t.getCompilerOptions(),b=x.sourceMap||x.inlineSourceMap||IJ(x)?[]:void 0,S=x.listEmittedFiles?[]:void 0,P=y4(),E=O1(x),N=D5(E),{enter:F,exit:M}=AO("printTime","beforePrint","afterPrint"),L=!1;return F(),KZ(t,W,mJ(t,n,g),g,p,!n&&!m),M(),{emitSkipped:L,diagnostics:P.getDiagnostics(),emittedFiles:S,sourceMaps:b};function W({jsFilePath:me,sourceMapFilePath:ve,declarationFilePath:Pe,declarationMapPath:Oe,buildInfoPath:ie},Ne){var it,ze,ge,Me,Te,gt;(it=Fn)==null||it.push(Fn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:me}),H(Ne,me,ve),(ze=Fn)==null||ze.pop(),(ge=Fn)==null||ge.push(Fn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Pe}),X(Ne,Pe,Oe),(Me=Fn)==null||Me.pop(),(Te=Fn)==null||Te.push(Fn.Phase.Emit,"emitBuildInfo",{buildInfoPath:ie}),z(ie),(gt=Fn)==null||gt.pop()}function z(me){if(!me||n)return;if(t.isEmitBlocked(me)){L=!0;return}let ve=t.getBuildInfo()||{version:ye};hJ(t,P,me,m0e(ve),!1,void 0,{buildInfo:ve}),S?.push(me)}function H(me,ve,Pe){if(!me||l||!ve)return;if(t.isEmitBlocked(ve)||x.noEmit){L=!0;return}(ba(me)?[me]:Cn(me.sourceFiles,Yq)).forEach(it=>{(x.noCheck||!M4(it,x))&&ae(it)});let Oe=$M(e,t,j,x,[me],i,!1),ie={removeComments:x.removeComments,newLine:x.newLine,noEmitHelpers:x.noEmitHelpers,module:hf(x),moduleResolution:Xp(x),target:Po(x),sourceMap:x.sourceMap,inlineSourceMap:x.inlineSourceMap,inlineSources:x.inlineSources,extendedDiagnostics:x.extendedDiagnostics},Ne=Ax(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:Oe.emitNodeWithNotification,isEmitNotificationEnabled:Oe.isEmitNotificationEnabled,substituteNode:Oe.substituteNode});I.assert(Oe.transformed.length===1,"Should only see one output from the transform"),Y(ve,Pe,Oe,Ne,x),Oe.dispose(),S&&(S.push(ve),Pe&&S.push(Pe))}function X(me,ve,Pe){if(!me||l===0)return;if(!ve){(l||x.emitDeclarationOnly)&&(L=!0);return}let Oe=ba(me)?[me]:me.sourceFiles,ie=g?Oe:Cn(Oe,Yq),Ne=x.outFile?[j.createBundle(ie)]:ie;ie.forEach(ge=>{(l&&!y_(x)||x.noCheck||ZZ(l,g)||!M4(ge,x))&&ne(ge)});let it=$M(e,t,j,x,Ne,s,!1);if(Re(it.diagnostics))for(let ge of it.diagnostics)P.add(ge);let ze=!!it.diagnostics&&!!it.diagnostics.length||!!t.isEmitBlocked(ve)||!!x.noEmit;if(L=L||ze,!ze||g){I.assert(it.transformed.length===1,"Should only see one output from the decl transform");let ge={removeComments:x.removeComments,newLine:x.newLine,noEmitHelpers:!0,module:x.module,moduleResolution:x.moduleResolution,target:x.target,sourceMap:l!==2&&x.declarationMap,inlineSourceMap:x.inlineSourceMap,extendedDiagnostics:x.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},Me=Ax(ge,{hasGlobalName:e.hasGlobalName,onEmitNode:it.emitNodeWithNotification,isEmitNotificationEnabled:it.isEmitNotificationEnabled,substituteNode:it.substituteNode}),Te=Y(ve,Pe,it,Me,{sourceMap:ge.sourceMap,sourceRoot:x.sourceRoot,mapRoot:x.mapRoot,extendedDiagnostics:x.extendedDiagnostics});S&&(Te&&S.push(ve),Pe&&S.push(Pe))}it.dispose()}function ne(me){if(Gc(me)){me.expression.kind===80&&e.collectLinkedAliases(me.expression,!0);return}else if(Yp(me)){e.collectLinkedAliases(me.propertyName||me.name,!0);return}xs(me,ne)}function ae(me){Nf(me)||NE(me,ve=>{if(zu(ve)&&!(E1(ve)&32)||sl(ve))return"skip";e.markLinkedReferences(ve)})}function Y(me,ve,Pe,Oe,ie){let Ne=Pe.transformed[0],it=Ne.kind===308?Ne:void 0,ze=Ne.kind===307?Ne:void 0,ge=it?it.sourceFiles:[ze],Me;Ee(ie,Ne)&&(Me=kve(t,gu(_p(me)),fe(ie),te(ie,me,ze),ie)),it?Oe.writeBundle(it,N,Me):Oe.writeFile(ze,N,Me);let Te;if(Me){b&&b.push({inputSourceFileNames:Me.getSources(),sourceMap:Me.toJSON()});let xe=de(ie,Me,me,ve,ze);if(xe&&(N.isAtStartOfLine()||N.rawWrite(E),Te=N.getTextPos(),N.writeComment(`//# sourceMappingURL=${xe}`)),ve){let nt=Me.toString();hJ(t,P,ve,nt,!1,ge)}}else N.writeLine();let gt=N.getText(),Tt={sourceMapUrlPos:Te,diagnostics:Pe.diagnostics};return hJ(t,P,me,gt,!!x.emitBOM,ge,Tt),N.clear(),!Tt.skippedDtsWrite}function Ee(me,ve){return(me.sourceMap||me.inlineSourceMap)&&(ve.kind!==307||!il(ve.fileName,".json"))}function fe(me){let ve=_p(me.sourceRoot||"");return ve&&ju(ve)}function te(me,ve,Pe){if(me.sourceRoot)return t.getCommonSourceDirectory();if(me.mapRoot){let Oe=_p(me.mapRoot);return Pe&&(Oe=Ei(gJ(Pe.fileName,t,Oe))),Lg(Oe)===0&&(Oe=gi(t.getCommonSourceDirectory(),Oe)),Oe}return Ei(Zs(ve))}function de(me,ve,Pe,Oe,ie){if(me.inlineSourceMap){let it=ve.toString();return`data:application/json;base64,${ige(Ru,it)}`}let Ne=gu(_p(I.checkDefined(Oe)));if(me.mapRoot){let it=_p(me.mapRoot);return ie&&(it=Ei(gJ(ie.fileName,t,it))),Lg(it)===0?(it=gi(t.getCommonSourceDirectory(),it),encodeURI(IP(Ei(Zs(Pe)),gi(it,Ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(gi(it,Ne))}return encodeURI(Ne)}}function m0e(e){return JSON.stringify(e)}function tee(e,t){return lX(e,t)}var g0e={hasGlobalName:zs,getReferencedExportContainer:zs,getReferencedImportDeclaration:zs,getReferencedDeclarationWithCollidingName:zs,isDeclarationWithCollidingName:zs,isValueAliasDeclaration:zs,isReferencedAliasDeclaration:zs,isTopLevelValueImportEqualsWithEntityName:zs,hasNodeCheckFlag:zs,isDeclarationVisible:zs,isLateBound:e=>!1,collectLinkedAliases:zs,markLinkedReferences:zs,isImplementationOfOverload:zs,requiresAddingImplicitUndefined:zs,isExpandoFunctionDeclaration:zs,getPropertiesOfContainerFunction:zs,createTypeOfDeclaration:zs,createReturnTypeOfSignatureDeclaration:zs,createTypeOfExpression:zs,createLiteralConstValue:zs,isSymbolAccessible:zs,isEntityNameVisible:zs,getConstantValue:zs,getEnumMemberValue:zs,getReferencedValueDeclaration:zs,getReferencedValueDeclarations:zs,getTypeReferenceSerializationKind:zs,isOptionalParameter:zs,isArgumentsLocalBinding:zs,getExternalModuleFileFromDeclaration:zs,isLiteralConstDeclaration:zs,getJsxFactoryEntity:zs,getJsxFragmentFactoryEntity:zs,isBindingCapturedByNode:zs,getDeclarationStatementsForSourceFile:zs,isImportRequiredByAugmentation:zs,isDefinitelyReferenceToGlobalSymbolObject:zs,createLateBoundIndexSignatures:zs},h0e=Cu(()=>Ax({})),G2=Cu(()=>Ax({removeComments:!0})),y0e=Cu(()=>Ax({removeComments:!0,neverAsciiEscape:!0})),ree=Cu(()=>Ax({removeComments:!0,omitTrailingSemicolon:!0}));function Ax(e={},t={}){var{hasGlobalName:n,onEmitNode:i=UM,isEmitNotificationEnabled:s,substituteNode:l=w3,onBeforeEmitNode:p,onAfterEmitNode:g,onBeforeEmitNodeArray:m,onAfterEmitNodeArray:x,onBeforeEmitToken:b,onAfterEmitToken:S}=t,P=!!e.extendedDiagnostics,E=!!e.omitBraceSourceMapPositions,N=O1(e),F=hf(e),M=new Map,L,W,z,H,X,ne,ae,Y,Ee,fe,te,de,me,ve,Pe,Oe=e.preserveSourceNewlines,ie,Ne,it,ze=nh,ge,Me=!0,Te,gt,Tt=-1,xe,nt=-1,pe=-1,He=-1,qe=-1,je,st,jt=!1,ar=!!e.removeComments,Or,nn,{enter:Ct,exit:pr}=fK(P,"commentTime","beforeComment","afterComment"),vn=j.parenthesizer,ta={select:A=>A===0?vn.parenthesizeLeadingTypeArgument:void 0},ts=Kl();return ks(),{printNode:Gt,printList:hi,printFile:ui,printBundle:$a,writeNode:Wn,writeList:Gi,writeFile:It,writeBundle:at};function Gt(A,Se,Jt){switch(A){case 0:I.assert(ba(Se),"Expected a SourceFile node.");break;case 2:I.assert(Ye(Se),"Expected an Identifier node.");break;case 1:I.assert(At(Se),"Expected an Expression node.");break}switch(Se.kind){case 307:return ui(Se);case 308:return $a(Se)}return Wn(A,Se,Jt,Cr()),wn()}function hi(A,Se,Jt){return Gi(A,Se,Jt,Cr()),wn()}function $a(A){return at(A,Cr(),void 0),wn()}function ui(A){return It(A,Cr(),void 0),wn()}function Wn(A,Se,Jt,Nr){let Wi=Ne;da(Nr,void 0),Di(A,Se,Jt),ks(),Ne=Wi}function Gi(A,Se,Jt,Nr){let Wi=Ne;da(Nr,void 0),Jt&&Pi(Jt),Ac(void 0,Se,A),ks(),Ne=Wi}function at(A,Se,Jt){ge=!1;let Nr=Ne;da(Se,Jt),lD(A),Wy(A),lr(A),ot(A);for(let Wi of A.sourceFiles)Di(0,Wi,Wi);ks(),Ne=Nr}function It(A,Se,Jt){ge=!0;let Nr=Ne;da(Se,Jt),lD(A),Wy(A),Di(0,A,A),ks(),Ne=Nr}function Cr(){return it||(it=D5(N))}function wn(){let A=it.getText();return it.clear(),A}function Di(A,Se,Jt){Jt&&Pi(Jt),oe(A,Se,void 0)}function Pi(A){L=A,je=void 0,st=void 0,A&&sh(A)}function da(A,Se){A&&e.omitTrailingSemicolon&&(A=HQ(A)),Ne=A,Te=Se,Me=!Ne||!Te}function ks(){W=[],z=[],H=[],X=new Set,ne=[],ae=new Map,Y=[],Ee=0,fe=[],te=0,de=[],me=void 0,ve=[],Pe=void 0,L=void 0,je=void 0,st=void 0,da(void 0,void 0)}function no(){return je||(je=hv(I.checkDefined(L)))}function Vr(A,Se){A!==void 0&&oe(4,A,Se)}function _s(A){A!==void 0&&oe(2,A,void 0)}function ft(A,Se){A!==void 0&&oe(1,A,Se)}function Qt(A){oe(vo(A)?6:4,A)}function he(A){Oe&&mg(A)&4&&(Oe=!1)}function wt(A){Oe=A}function oe(A,Se,Jt){nn=Jt,vt(0,A,Se)(A,Se),nn=void 0}function Ue(A){return!ar&&!ba(A)}function pt(A){return!Me&&!ba(A)&&!Xq(A)}function vt(A,Se,Jt){switch(A){case 0:if(i!==UM&&(!s||s(Jt)))return Qe;case 1:if(l!==w3&&(Or=l(Se,Jt)||Jt)!==Jt)return nn&&(Or=nn(Or)),ut;case 2:if(Ue(Jt))return CC;case 3:if(pt(Jt))return Vx;case 4:return Lt;default:return I.assertNever(A)}}function $t(A,Se,Jt){return vt(A+1,Se,Jt)}function Qe(A,Se){let Jt=$t(0,A,Se);i(A,Se,Jt)}function Lt(A,Se){if(p?.(Se),Oe){let Jt=Oe;he(Se),Rt(A,Se),wt(Jt)}else Rt(A,Se);g?.(Se),nn=void 0}function Rt(A,Se,Jt=!0){if(Jt){let Nr=nY(Se);if(Nr)return ke(A,Se,Nr)}if(A===0)return fw(Js(Se,ba));if(A===2)return re(Js(Se,Ye));if(A===6)return qt(Js(Se,vo),!0);if(A===3)return Xt(Js(Se,Hc));if(A===7)return ed(Js(Se,$k));if(A===5)return I.assertNode(Se,_Y),Xh(!0);if(A===4){switch(Se.kind){case 16:case 17:case 18:return qt(Se,!1);case 80:return re(Se);case 81:return Ft(Se);case 166:return rr(Se);case 167:return kt(Se);case 168:return dr(Se);case 169:return kn(Se);case 170:return Kr(Se);case 171:return yn(Se);case 172:return yt(Se);case 173:return Bt(Se);case 174:return cr(Se);case 175:return er(Se);case 176:return zr(Se);case 177:case 178:return Pr(Se);case 179:return or(Se);case 180:return Mr(Se);case 181:return Wr(Se);case 182:return ji(Se);case 183:return Is(Se);case 184:return Xs(Se);case 185:return lu(Se);case 186:return Kc(Se);case 187:return Ro(Se);case 188:return el(Se);case 189:return as(Se);case 190:return qo(Se);case 192:return jo(Se);case 193:return fr(Se);case 194:return hc(Se);case 195:return uu(Se);case 196:return Cl(Se);case 233:return Y_(Se);case 197:return hp();case 198:return tl(Se);case 199:return Pl(Se);case 200:return B(Se);case 201:return Xe(Se);case 202:return Gs(Se);case 203:return Et(Se);case 204:return $r(Se);case 205:return ur(Se);case 206:return cn(Se);case 207:return wi(Se);case 208:return Bn(Se);case 239:return Jv(Se);case 240:return Sr();case 241:return Bd(Se);case 243:return xf(Se);case 242:return Xh(!1);case 244:return hd(Se);case 245:return zv(Se);case 246:return xt(Se);case 247:return gr(Se);case 248:return yr(Se);case 249:return Qr(Se);case 250:return Tn(Se);case 251:return Ki(Se);case 252:return Na(Se);case 253:return aa(Se);case 254:return qa(Se);case 255:return ss(Se);case 256:return Uc(Se);case 257:return lo(Se);case 258:return Tu(Se);case 259:return Z_(Se);case 260:return vm(Se);case 261:return Zg(Se);case 262:return U0(Se);case 263:return G1(Se);case 264:return ht(Se);case 265:return tr(Se);case 266:return Er(Se);case 267:return hn(Se);case 268:return Gn(Se);case 269:return ln(Se);case 270:return By(Se);case 271:return Hn(Se);case 272:return rs(Se);case 273:return Ii(Se);case 274:return Ia(Se);case 280:return K1(Se);case 275:return Es(Se);case 276:return tp(Se);case 277:return qd(Se);case 278:return Jd(Se);case 279:return qy(Se);case 281:return Q1(Se);case 300:return Ly(Se);case 301:return wg(Se);case 282:return;case 283:return u8(Se);case 12:return _C(Se);case 286:case 289:return IA(Se);case 287:case 290:return sD(Se);case 291:return FA(Se);case 292:return lw(Se);case 293:return dC(Se);case 294:return X1(Se);case 295:return $0(Se);case 296:return cT(Se);case 297:return Bx(Se);case 298:return pw(Se);case 299:return Y1(Se);case 303:return Jo(Se);case 304:return lT(Se);case 305:return p8(Se);case 306:return qx(Se);case 307:return fw(Se);case 308:return I.fail("Bundles should be printed using printBundle");case 309:return zy(Se);case 310:return S_(Se);case 312:return Kn("*");case 313:return Kn("?");case 314:return Bl(Se);case 315:return la(Se);case 316:return us(Se);case 317:return pl(Se);case 191:case 318:return Q_(Se);case 319:return;case 320:return Uv(Se);case 322:return yp(Se);case 323:return Vv(Se);case 327:case 332:case 337:return Jx(Se);case 328:case 329:return td(Se);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return gC(Se);case 339:return th(Se);case 341:case 348:return T_(Se);case 340:case 342:case 343:case 344:case 349:case 350:return $v(Se);case 345:return wu(Se);case 346:return Z1(Se);case 347:return bm(Se);case 351:return i_(Se);case 353:case 354:return}if(At(Se)&&(A=1,l!==w3)){let Nr=l(A,Se)||Se;Nr!==Se&&(Se=Nr,nn&&(Se=nn(Se)))}}if(A===1)switch(Se.kind){case 9:case 10:return We(Se);case 11:case 14:case 15:return qt(Se,!1);case 80:return re(Se);case 81:return Ft(Se);case 209:return an(Se);case 210:return ua(Se);case 211:return ma(Se);case 212:return To(Se);case 213:return Wc(Se);case 214:return El(Se);case 215:return Hl(Se);case 216:return Fc(Se);case 217:return Gl(Se);case 218:return X_(Se);case 219:return Dp(Se);case 220:return $e(Se);case 221:return nr(Se);case 222:return Nn(Se);case 223:return za(Se);case 224:return Fs(Se);case 225:return Jc(Se);case 226:return ts(Se);case 227:return hl(Se);case 228:return yl(Se);case 229:return ru(Se);case 230:return Nu(Se);case 231:return Au(Se);case 232:return;case 234:return qf(Se);case 235:return Tg(Se);case 233:return Y_(Se);case 238:return gd(Se);case 236:return Qh(Se);case 237:return I.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return aD(Se);case 285:return AA(Se);case 288:return cw(Se);case 352:return I.fail("SyntaxList should not be printed");case 353:return;case 355:return cD(Se);case 356:return rb(Se);case 357:return I.fail("SyntheticReferenceExpression should not be printed")}if(Yf(Se.kind))return zd(Se,ms);if(BK(Se.kind))return zd(Se,Kn);I.fail(`Unhandled SyntaxKind: ${I.formatSyntaxKind(Se.kind)}.`)}function Xt(A){Vr(A.name),zn(),ms("in"),zn(),Vr(A.constraint)}function ut(A,Se){let Jt=$t(1,A,Se);I.assertIsDefined(Or),Se=Or,Or=void 0,Jt(A,Se)}function lr(A){let Se=!1,Jt=A.kind===308?A:void 0;if(Jt&&F===0)return;let Nr=Jt?Jt.sourceFiles.length:1;for(let Wi=0;Wi<Nr;Wi++){let pa=Jt?Jt.sourceFiles[Wi]:A,Ha=ba(pa)?pa:L,ps=e.noEmitHelpers||!!Ha&&rye(Ha),Co=ba(pa)&&!ge,Jf=In(pa);if(Jf)for(let vl of Jf){if(vl.scoped){if(Jt)continue}else{if(ps)continue;if(Co){if(M.get(vl.name))continue;M.set(vl.name,!0)}}typeof vl.text=="string"?ih(vl.text):ih(vl.text(BA)),Se=!0}}return Se}function In(A){let Se=rY(A);return Se&&ff(Se,bhe)}function We(A){qt(A,!1)}function qt(A,Se){let Jt=dw(A,void 0,e.neverAsciiEscape,Se);(e.sourceMap||e.inlineSourceMap)&&(A.kind===11||ix(A.kind))?uD(Jt):Ux(Jt)}function ke(A,Se,Jt){switch(Jt.kind){case 1:$(A,Se,Jt);break;case 0:Ke(A,Se,Jt);break}}function $(A,Se,Jt){pD(`\${${Jt.order}:`),Rt(A,Se,!1),pD("}")}function Ke(A,Se,Jt){I.assert(Se.kind===242,`A tab stop cannot be attached to a node of kind ${I.formatSyntaxKind(Se.kind)}.`),I.assert(A!==5,"A tab stop cannot be attached to an embedded statement."),pD(`$${Jt.order}`)}function re(A){(A.symbol?MA:ze)(ob(A,!1),A.symbol),Ac(A,Lk(A),53776)}function Ft(A){ze(ob(A,!1))}function rr(A){Le(A.left),Kn("."),Vr(A.right)}function Le(A){A.kind===80?ft(A):Vr(A)}function kt(A){Kn("["),ft(A.expression,vn.parenthesizeExpressionOfComputedPropertyName),Kn("]")}function dr(A){Kv(A,A.modifiers),Vr(A.name),A.constraint&&(zn(),ms("extends"),zn(),Vr(A.constraint)),A.default&&(zn(),ib("="),zn(),Vr(A.default))}function kn(A){rp(A,A.modifiers,!0),Vr(A.dotDotDotToken),fo(A.name,bC),Vr(A.questionToken),A.parent&&A.parent.kind===317&&!A.name?Vr(A.type):Qv(A.type),zx(A.initializer,A.type?A.type.end:A.questionToken?A.questionToken.end:A.name?A.name.end:A.modifiers?A.modifiers.end:A.pos,A,vn.parenthesizeExpressionForDisallowedComma)}function Kr(A){Kn("@"),ft(A.expression,vn.parenthesizeLeftSideOfAccess)}function yn(A){Kv(A,A.modifiers),fo(A.name,RA),Vr(A.questionToken),Qv(A.type),af()}function yt(A){rp(A,A.modifiers,!0),Vr(A.name),Vr(A.questionToken),Vr(A.exclamationToken),Qv(A.type),zx(A.initializer,A.type?A.type.end:A.questionToken?A.questionToken.end:A.name.end,A),af()}function Bt(A){Kv(A,A.modifiers),Vr(A.name),Vr(A.questionToken),x_(A,Km,Yh)}function cr(A){rp(A,A.modifiers,!0),Vr(A.asteriskToken),Vr(A.name),Vr(A.questionToken),x_(A,Km,eh)}function er(A){ms("static"),ny(A),yd(A.body),G0(A)}function zr(A){rp(A,A.modifiers,!1),ms("constructor"),x_(A,Km,eh)}function Pr(A){let Se=rp(A,A.modifiers,!0),Jt=A.kind===177?139:153;U(Jt,Se,ms,A),zn(),Vr(A.name),x_(A,Km,eh)}function or(A){x_(A,Km,Yh)}function Mr(A){ms("new"),zn(),x_(A,Km,Yh)}function Wr(A){rp(A,A.modifiers,!1),yC(A,A.parameters),Qv(A.type),af()}function $r(A){Vr(A.type),Vr(A.literal)}function Sr(){af()}function ji(A){A.assertsModifier&&(Vr(A.assertsModifier),zn()),Vr(A.parameterName),A.type&&(zn(),ms("is"),zn(),Vr(A.type))}function Is(A){Vr(A.typeName),Uy(A,A.typeArguments)}function Xs(A){x_(A,Ps,Vl)}function Ps(A){Wx(A,A.typeParameters),Sf(A,A.parameters),zn(),Kn("=>")}function Vl(A){zn(),Vr(A.type)}function pl(A){ms("function"),Fa(A,A.parameters),Kn(":"),Vr(A.type)}function Bl(A){Kn("?"),Vr(A.type)}function la(A){Kn("!"),Vr(A.type)}function us(A){Vr(A.type),Kn("=")}function lu(A){Kv(A,A.modifiers),ms("new"),zn(),x_(A,Ps,Vl)}function Kc(A){ms("typeof"),zn(),Vr(A.exprName),Uy(A,A.typeArguments)}function Ro(A){ny(A),Ge(A.members,TC),Kn("{");let Se=Ao(A)&1?768:32897;Ac(A,A.members,Se|524288),Kn("}"),G0(A)}function el(A){Vr(A.elementType,vn.parenthesizeNonArrayTypeOfPostfixType),Kn("["),Kn("]")}function Q_(A){Kn("..."),Vr(A.type)}function as(A){U(23,A.pos,Kn,A);let Se=Ao(A)&1?528:657;Ac(A,A.elements,Se|524288,vn.parenthesizeElementTypeOfTupleType),U(24,A.elements.end,Kn,A)}function Gs(A){Vr(A.dotDotDotToken),Vr(A.name),Vr(A.questionToken),U(59,A.name.end,Kn,A),zn(),Vr(A.type)}function qo(A){Vr(A.type,vn.parenthesizeTypeOfOptionalType),Kn("?")}function jo(A){Ac(A,A.types,516,vn.parenthesizeConstituentTypeOfUnionType)}function fr(A){Ac(A,A.types,520,vn.parenthesizeConstituentTypeOfIntersectionType)}function hc(A){Vr(A.checkType,vn.parenthesizeCheckTypeOfConditionalType),zn(),ms("extends"),zn(),Vr(A.extendsType,vn.parenthesizeExtendsTypeOfConditionalType),zn(),Kn("?"),zn(),Vr(A.trueType),zn(),Kn(":"),zn(),Vr(A.falseType)}function uu(A){ms("infer"),zn(),Vr(A.typeParameter)}function Cl(A){Kn("("),Vr(A.type),Kn(")")}function hp(){ms("this")}function tl(A){Xv(A.operator,ms),zn();let Se=A.operator===148?vn.parenthesizeOperandOfReadonlyTypeOperator:vn.parenthesizeOperandOfTypeOperator;Vr(A.type,Se)}function Pl(A){Vr(A.objectType,vn.parenthesizeNonArrayTypeOfPostfixType),Kn("["),Vr(A.indexType),Kn("]")}function B(A){let Se=Ao(A);Kn("{"),Se&1?zn():(Tf(),$y()),A.readonlyToken&&(Vr(A.readonlyToken),A.readonlyToken.kind!==148&&ms("readonly"),zn()),Kn("["),oe(3,A.typeParameter),A.nameType&&(zn(),ms("as"),zn(),Vr(A.nameType)),Kn("]"),A.questionToken&&(Vr(A.questionToken),A.questionToken.kind!==58&&Kn("?")),Kn(":"),zn(),Vr(A.type),af(),Se&1?zn():(Tf(),kg()),Ac(A,A.members,2),Kn("}")}function Xe(A){ft(A.literal)}function Et(A){Vr(A.head),Ac(A,A.templateSpans,262144)}function ur(A){A.isTypeOf&&(ms("typeof"),zn()),ms("import"),Kn("("),Vr(A.argument),A.attributes&&(Kn(","),zn(),oe(7,A.attributes)),Kn(")"),A.qualifier&&(Kn("."),Vr(A.qualifier)),Uy(A,A.typeArguments)}function cn(A){Kn("{"),Ac(A,A.elements,525136),Kn("}")}function wi(A){Kn("["),Ac(A,A.elements,524880),Kn("]")}function Bn(A){Vr(A.dotDotDotToken),A.propertyName&&(Vr(A.propertyName),Kn(":"),zn()),Vr(A.name),zx(A.initializer,A.name.end,A,vn.parenthesizeExpressionForDisallowedComma)}function an(A){let Se=A.elements,Jt=A.multiLine?65536:0;pT(A,Se,8914|Jt,vn.parenthesizeExpressionForDisallowedComma)}function ua(A){ny(A),Ge(A.properties,TC);let Se=Ao(A)&131072;Se&&$y();let Jt=A.multiLine?65536:0,Nr=L&&L.languageVersion>=1&&!cm(L)?64:0;Ac(A,A.properties,526226|Nr|Jt),Se&&kg(),G0(A)}function ma(A){ft(A.expression,vn.parenthesizeLeftSideOfAccess);let Se=A.questionDotToken||$g(j.createToken(25),A.expression.end,A.name.pos),Jt=Cg(A,A.expression,Se),Nr=Cg(A,Se,A.name);Qm(Jt,!1),Se.kind!==29&&sc(A.expression)&&!Ne.hasTrailingComment()&&!Ne.hasTrailingWhitespace()&&Kn("."),A.questionDotToken?Vr(Se):U(Se.kind,A.expression.end,Kn,A),Qm(Nr,!1),Vr(A.name),Vy(Jt,Nr)}function sc(A){if(A=dg(A),e_(A)){let Se=dw(A,void 0,!0,!1);return!(A.numericLiteralFlags&448)&&!Se.includes(to(25))&&!Se.includes("E")&&!Se.includes("e")}else if(Lc(A)){let Se=phe(A);return typeof Se=="number"&&isFinite(Se)&&Se>=0&&Math.floor(Se)===Se}}function To(A){ft(A.expression,vn.parenthesizeLeftSideOfAccess),Vr(A.questionDotToken),U(23,A.expression.end,Kn,A),ft(A.argumentExpression),U(24,A.argumentExpression.end,Kn,A)}function Wc(A){let Se=mg(A)&16;Se&&(Kn("("),uD("0"),Kn(","),zn()),ft(A.expression,vn.parenthesizeLeftSideOfAccess),Se&&Kn(")"),Vr(A.questionDotToken),Uy(A,A.typeArguments),pT(A,A.arguments,2576,vn.parenthesizeExpressionForDisallowedComma)}function El(A){U(105,A.pos,ms,A),zn(),ft(A.expression,vn.parenthesizeExpressionOfNew),Uy(A,A.typeArguments),pT(A,A.arguments,18960,vn.parenthesizeExpressionForDisallowedComma)}function Hl(A){let Se=mg(A)&16;Se&&(Kn("("),uD("0"),Kn(","),zn()),ft(A.tag,vn.parenthesizeLeftSideOfAccess),Se&&Kn(")"),Uy(A,A.typeArguments),zn(),ft(A.template)}function Fc(A){Kn("<"),Vr(A.type),Kn(">"),ft(A.expression,vn.parenthesizeOperandOfPrefixUnary)}function Gl(A){let Se=U(21,A.pos,Kn,A),Jt=xC(A.expression,A);ft(A.expression,void 0),_D(A.expression,A),Vy(Jt),U(22,A.expression?A.expression.end:Se,Kn,A)}function X_(A){Zv(A.name),Wv(A)}function Dp(A){Kv(A,A.modifiers),x_(A,Ld,Bf)}function Ld(A){Wx(A,A.typeParameters),Sf(A,A.parameters),Qv(A.type),zn(),Vr(A.equalsGreaterThanToken)}function Bf(A){Cs(A.body)?yd(A.body):(zn(),ft(A.body,vn.parenthesizeConciseBodyOfArrowFunction))}function $e(A){U(91,A.pos,ms,A),zn(),ft(A.expression,vn.parenthesizeOperandOfPrefixUnary)}function nr(A){U(114,A.pos,ms,A),zn(),ft(A.expression,vn.parenthesizeOperandOfPrefixUnary)}function Nn(A){U(116,A.pos,ms,A),zn(),ft(A.expression,vn.parenthesizeOperandOfPrefixUnary)}function za(A){U(135,A.pos,ms,A),zn(),ft(A.expression,vn.parenthesizeOperandOfPrefixUnary)}function Fs(A){Xv(A.operator,ib),Io(A)&&zn(),ft(A.operand,vn.parenthesizeOperandOfPrefixUnary)}function Io(A){let Se=A.operand;return Se.kind===224&&(A.operator===40&&(Se.operator===40||Se.operator===46)||A.operator===41&&(Se.operator===41||Se.operator===47))}function Jc(A){ft(A.operand,vn.parenthesizeOperandOfPostfixUnary),Xv(A.operator,ib)}function Kl(){return Iz(A,Se,Jt,Nr,Wi,void 0);function A(Ha,ps){if(ps){ps.stackIndex++,ps.preserveSourceNewlinesStack[ps.stackIndex]=Oe,ps.containerPosStack[ps.stackIndex]=pe,ps.containerEndStack[ps.stackIndex]=He,ps.declarationListContainerEndStack[ps.stackIndex]=qe;let Co=ps.shouldEmitCommentsStack[ps.stackIndex]=Ue(Ha),Jf=ps.shouldEmitSourceMapsStack[ps.stackIndex]=pt(Ha);p?.(Ha),Co&&Ol(Ha),Jf&&DC(Ha),he(Ha)}else ps={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ps}function Se(Ha,ps,Co){return pa(Ha,Co,"left")}function Jt(Ha,ps,Co){let Jf=Ha.kind!==28,vl=Cg(Co,Co.left,Ha),rl=Cg(Co,Ha,Co.right);Qm(vl,Jf),vT(Ha.pos),zd(Ha,Ha.kind===103?ms:ib),Gy(Ha.end,!0),Qm(rl,!0)}function Nr(Ha,ps,Co){return pa(Ha,Co,"right")}function Wi(Ha,ps){let Co=Cg(Ha,Ha.left,Ha.operatorToken),Jf=Cg(Ha,Ha.operatorToken,Ha.right);if(Vy(Co,Jf),ps.stackIndex>0){let vl=ps.preserveSourceNewlinesStack[ps.stackIndex],rl=ps.containerPosStack[ps.stackIndex],TD=ps.containerEndStack[ps.stackIndex],zf=ps.declarationListContainerEndStack[ps.stackIndex],ay=ps.shouldEmitCommentsStack[ps.stackIndex],Hx=ps.shouldEmitSourceMapsStack[ps.stackIndex];wt(vl),Hx&&xD(Ha),ay&&mT(Ha,rl,TD,zf),g?.(Ha),ps.stackIndex--}}function pa(Ha,ps,Co){let Jf=Co==="left"?vn.getParenthesizeLeftSideOfBinaryForOperator(ps.operatorToken.kind):vn.getParenthesizeRightSideOfBinaryForOperator(ps.operatorToken.kind),vl=vt(0,1,Ha);if(vl===ut&&(I.assertIsDefined(Or),Ha=Jf(Js(Or,At)),vl=$t(1,1,Ha),Or=void 0),(vl===CC||vl===Vx||vl===Lt)&&Vn(Ha))return Ha;nn=Jf,vl(1,Ha)}}function hl(A){let Se=Cg(A,A.condition,A.questionToken),Jt=Cg(A,A.questionToken,A.whenTrue),Nr=Cg(A,A.whenTrue,A.colonToken),Wi=Cg(A,A.colonToken,A.whenFalse);ft(A.condition,vn.parenthesizeConditionOfConditionalExpression),Qm(Se,!0),Vr(A.questionToken),Qm(Jt,!0),ft(A.whenTrue,vn.parenthesizeBranchOfConditionalExpression),Vy(Se,Jt),Qm(Nr,!0),Vr(A.colonToken),Qm(Wi,!0),ft(A.whenFalse,vn.parenthesizeBranchOfConditionalExpression),Vy(Nr,Wi)}function yl(A){Vr(A.head),Ac(A,A.templateSpans,262144)}function ru(A){U(127,A.pos,ms,A),Vr(A.asteriskToken),H0(A.expression&&Xr(A.expression),Ya)}function Nu(A){U(26,A.pos,Kn,A),ft(A.expression,vn.parenthesizeExpressionForDisallowedComma)}function Au(A){Zv(A.name),tt(A)}function Y_(A){ft(A.expression,vn.parenthesizeLeftSideOfAccess),Uy(A,A.typeArguments)}function qf(A){ft(A.expression,void 0),A.type&&(zn(),ms("as"),zn(),Vr(A.type))}function Tg(A){ft(A.expression,vn.parenthesizeLeftSideOfAccess),ib("!")}function gd(A){ft(A.expression,void 0),A.type&&(zn(),ms("satisfies"),zn(),Vr(A.type))}function Qh(A){ab(A.keywordToken,A.pos,Kn),Kn("."),Vr(A.name)}function Jv(A){ft(A.expression),Vr(A.literal)}function Bd(A){n_(A,!A.multiLine&&dD(A))}function n_(A,Se){U(19,A.pos,Kn,A);let Jt=Se||Ao(A)&1?768:129;Ac(A,A.statements,Jt),U(20,A.statements.end,Kn,A,!!(Jt&1))}function xf(A){rp(A,A.modifiers,!1),Vr(A.declarationList),af()}function Xh(A){A?Kn(";"):af()}function hd(A){ft(A.expression,vn.parenthesizeExpressionOfExpressionStatement),(!L||!cm(L)||Pc(A.expression))&&af()}function zv(A){let Se=U(101,A.pos,ms,A);zn(),U(21,Se,Kn,A),ft(A.expression),U(22,A.expression.end,Kn,A),nb(A,A.thenStatement),A.elseStatement&&(vd(A,A.thenStatement,A.elseStatement),U(93,A.thenStatement.end,ms,A),A.elseStatement.kind===245?(zn(),Vr(A.elseStatement)):nb(A,A.elseStatement))}function _e(A,Se){let Jt=U(117,Se,ms,A);zn(),U(21,Jt,Kn,A),ft(A.expression),U(22,A.expression.end,Kn,A)}function xt(A){U(92,A.pos,ms,A),nb(A,A.statement),Cs(A.statement)&&!Oe?zn():vd(A,A.statement,A.expression),_e(A,A.statement.end),af()}function gr(A){_e(A,A.pos),nb(A,A.statement)}function yr(A){let Se=U(99,A.pos,ms,A);zn();let Jt=U(21,Se,Kn,A);vi(A.initializer),Jt=U(27,A.initializer?A.initializer.end:Jt,Kn,A),H0(A.condition),Jt=U(27,A.condition?A.condition.end:Jt,Kn,A),H0(A.incrementor),U(22,A.incrementor?A.incrementor.end:Jt,Kn,A),nb(A,A.statement)}function Qr(A){let Se=U(99,A.pos,ms,A);zn(),U(21,Se,Kn,A),vi(A.initializer),zn(),U(103,A.initializer.end,ms,A),zn(),ft(A.expression),U(22,A.expression.end,Kn,A),nb(A,A.statement)}function Tn(A){let Se=U(99,A.pos,ms,A);zn(),hC(A.awaitModifier),U(21,Se,Kn,A),vi(A.initializer),zn(),U(165,A.initializer.end,ms,A),zn(),ft(A.expression),U(22,A.expression.end,Kn,A),nb(A,A.statement)}function vi(A){A!==void 0&&(A.kind===261?Vr(A):ft(A))}function Ki(A){U(88,A.pos,ms,A),ey(A.label),af()}function Na(A){U(83,A.pos,ms,A),ey(A.label),af()}function U(A,Se,Jt,Nr,Wi){let pa=ds(Nr),Ha=pa&&pa.kind===Nr.kind,ps=Se;if(Ha&&L&&(Se=yo(L.text,Se)),Ha&&Nr.pos!==ps){let Co=Wi&&L&&!pm(ps,Se,L);Co&&$y(),vT(ps),Co&&kg()}if(!E&&(A===19||A===20)?Se=ab(A,Se,Jt,Nr):Se=Xv(A,Jt,Se),Ha&&Nr.end!==Se){let Co=Nr.kind===294;Gy(Se,!Co,Co)}return Se}function rt(A){return A.kind===2||!!A.hasTrailingNewLine}function Yt(A){if(!L)return!1;let Se=vv(L.text,A.pos);if(Se){let Jt=ds(A);if(Jt&&Mf(Jt.parent))return!0}return Pt(Se,rt)||Pt(EN(A),rt)?!0:Ihe(A)?A.pos!==A.expression.pos&&Pt(ex(L.text,A.expression.pos),rt)?!0:Yt(A.expression):!1}function Xr(A){if(!ar)switch(A.kind){case 355:if(Yt(A)){let Se=ds(A);if(Se&&Mf(Se)){let Jt=j.createParenthesizedExpression(A.expression);return ii(Jt,A),Ot(Jt,Se),Jt}return j.createParenthesizedExpression(A)}return j.updatePartiallyEmittedExpression(A,Xr(A.expression));case 211:return j.updatePropertyAccessExpression(A,Xr(A.expression),A.name);case 212:return j.updateElementAccessExpression(A,Xr(A.expression),A.argumentExpression);case 213:return j.updateCallExpression(A,Xr(A.expression),A.typeArguments,A.arguments);case 215:return j.updateTaggedTemplateExpression(A,Xr(A.tag),A.typeArguments,A.template);case 225:return j.updatePostfixUnaryExpression(A,Xr(A.operand));case 226:return j.updateBinaryExpression(A,Xr(A.left),A.operatorToken,A.right);case 227:return j.updateConditionalExpression(A,Xr(A.condition),A.questionToken,A.whenTrue,A.colonToken,A.whenFalse);case 234:return j.updateAsExpression(A,Xr(A.expression),A.type);case 238:return j.updateSatisfiesExpression(A,Xr(A.expression),A.type);case 235:return j.updateNonNullExpression(A,Xr(A.expression))}return A}function Ya(A){return Xr(vn.parenthesizeExpressionForDisallowedComma(A))}function aa(A){U(107,A.pos,ms,A),H0(A.expression&&Xr(A.expression),Xr),af()}function qa(A){let Se=U(118,A.pos,ms,A);zn(),U(21,Se,Kn,A),ft(A.expression),U(22,A.expression.end,Kn,A),nb(A,A.statement)}function ss(A){let Se=U(109,A.pos,ms,A);zn(),U(21,Se,Kn,A),ft(A.expression),U(22,A.expression.end,Kn,A),zn(),Vr(A.caseBlock)}function Uc(A){Vr(A.label),U(59,A.label.end,Kn,A),zn(),Vr(A.statement)}function lo(A){U(111,A.pos,ms,A),H0(Xr(A.expression),Xr),af()}function Tu(A){U(113,A.pos,ms,A),zn(),Vr(A.tryBlock),A.catchClause&&(vd(A,A.tryBlock,A.catchClause),Vr(A.catchClause)),A.finallyBlock&&(vd(A,A.catchClause||A.tryBlock,A.finallyBlock),U(98,(A.catchClause||A.tryBlock).end,ms,A),zn(),Vr(A.finallyBlock))}function Z_(A){ab(89,A.pos,ms),af()}function vm(A){var Se,Jt,Nr;Vr(A.name),Vr(A.exclamationToken),Qv(A.type),zx(A.initializer,((Se=A.type)==null?void 0:Se.end)??((Nr=(Jt=A.name.emitNode)==null?void 0:Jt.typeNode)==null?void 0:Nr.end)??A.name.end,A,vn.parenthesizeExpressionForDisallowedComma)}function Zg(A){if(KF(A))ms("await"),zn(),ms("using");else{let Se=Lq(A)?"let":iN(A)?"const":QF(A)?"using":"var";ms(Se)}zn(),Ac(A,A.declarations,528)}function U0(A){Wv(A)}function Wv(A){rp(A,A.modifiers,!1),ms("function"),Vr(A.asteriskToken),zn(),_s(A.name),x_(A,Km,eh)}function x_(A,Se,Jt){let Nr=Ao(A)&131072;Nr&&$y(),ny(A),Ge(A.parameters,np),Se(A),Jt(A),G0(A),Nr&&kg()}function eh(A){let Se=A.body;Se?yd(Se):af()}function Yh(A){af()}function Km(A){Wx(A,A.typeParameters),Fa(A,A.parameters),Qv(A.type)}function jx(A){if(Ao(A)&1)return!0;if(A.multiLine||!Pc(A)&&L&&!Fk(A,L)||_w(A,Yl(A.statements),2)||fD(A,dc(A.statements),2,A.statements))return!1;let Se;for(let Jt of A.statements){if(sb(Se,Jt,2)>0)return!1;Se=Jt}return!0}function yd(A){np(A),p?.(A),zn(),Kn("{"),$y();let Se=jx(A)?H1:Lx;PC(A,A.statements,Se),kg(),ab(20,A.statements.end,Kn,A),g?.(A)}function H1(A){Lx(A,!0)}function Lx(A,Se){let Jt=V0(A.statements),Nr=Ne.getTextPos();lr(A),Jt===0&&Nr===Ne.getTextPos()&&Se?(kg(),Ac(A,A.statements,768),$y()):Ac(A,A.statements,1,void 0,Jt)}function G1(A){tt(A)}function tt(A){rp(A,A.modifiers,!0),U(86,Fh(A).pos,ms,A),A.name&&(zn(),_s(A.name));let Se=Ao(A)&131072;Se&&$y(),Wx(A,A.typeParameters),Ac(A,A.heritageClauses,0),zn(),Kn("{"),ny(A),Ge(A.members,TC),Ac(A,A.members,129),G0(A),Kn("}"),Se&&kg()}function ht(A){rp(A,A.modifiers,!1),ms("interface"),zn(),Vr(A.name),Wx(A,A.typeParameters),Ac(A,A.heritageClauses,512),zn(),Kn("{"),ny(A),Ge(A.members,TC),Ac(A,A.members,129),G0(A),Kn("}")}function tr(A){rp(A,A.modifiers,!1),ms("type"),zn(),Vr(A.name),Wx(A,A.typeParameters),zn(),Kn("="),zn(),Vr(A.type),af()}function Er(A){rp(A,A.modifiers,!1),ms("enum"),zn(),Vr(A.name),zn(),Kn("{"),Ac(A,A.members,145),Kn("}")}function hn(A){rp(A,A.modifiers,!1),~A.flags&2048&&(ms(A.flags&32?"namespace":"module"),zn()),Vr(A.name);let Se=A.body;if(!Se)return af();for(;Se&&cu(Se);)Kn("."),Vr(Se.name),Se=Se.body;zn(),Vr(Se)}function Gn(A){ny(A),Ge(A.statements,np),n_(A,dD(A)),G0(A)}function ln(A){U(19,A.pos,Kn,A),Ac(A,A.clauses,129),U(20,A.clauses.end,Kn,A,!0)}function Hn(A){rp(A,A.modifiers,!1),U(102,A.modifiers?A.modifiers.end:A.pos,ms,A),zn(),A.isTypeOnly&&(U(156,A.pos,ms,A),zn()),Vr(A.name),zn(),U(64,A.name.end,Kn,A),zn(),_a(A.moduleReference),af()}function _a(A){A.kind===80?ft(A):Vr(A)}function rs(A){rp(A,A.modifiers,!1),U(102,A.modifiers?A.modifiers.end:A.pos,ms,A),zn(),A.importClause&&(Vr(A.importClause),zn(),U(161,A.importClause.end,ms,A),zn()),ft(A.moduleSpecifier),A.attributes&&ey(A.attributes),af()}function Ii(A){A.isTypeOnly&&(U(156,A.pos,ms,A),zn()),Vr(A.name),A.name&&A.namedBindings&&(U(28,A.name.end,Kn,A),zn()),Vr(A.namedBindings)}function Ia(A){let Se=U(42,A.pos,Kn,A);zn(),U(130,Se,ms,A),zn(),Vr(A.name)}function Es(A){oT(A)}function tp(A){ow(A)}function qd(A){let Se=U(95,A.pos,ms,A);zn(),A.isExportEquals?U(64,Se,ib,A):U(90,Se,ms,A),zn(),ft(A.expression,A.isExportEquals?vn.getParenthesizeRightSideOfBinaryForOperator(64):vn.parenthesizeExpressionOfExportDefault),af()}function Jd(A){rp(A,A.modifiers,!1);let Se=U(95,A.pos,ms,A);if(zn(),A.isTypeOnly&&(Se=U(156,Se,ms,A),zn()),A.exportClause?Vr(A.exportClause):Se=U(42,Se,Kn,A),A.moduleSpecifier){zn();let Jt=A.exportClause?A.exportClause.end:Se;U(161,Jt,ms,A),zn(),ft(A.moduleSpecifier)}A.attributes&&ey(A.attributes),af()}function ed(A){Kn("{"),zn(),ms(A.token===132?"assert":"with"),Kn(":"),zn();let Se=A.elements;Ac(A,Se,526226),zn(),Kn("}")}function Ly(A){U(A.token,A.pos,ms,A),zn();let Se=A.elements;Ac(A,Se,526226)}function wg(A){Vr(A.name),Kn(":"),zn();let Se=A.value;if(!(Ao(Se)&1024)){let Jt=Rh(Se);Gy(Jt.pos)}Vr(Se)}function By(A){let Se=U(95,A.pos,ms,A);zn(),Se=U(130,Se,ms,A),zn(),Se=U(145,Se,ms,A),zn(),Vr(A.name),af()}function K1(A){let Se=U(42,A.pos,Kn,A);zn(),U(130,Se,ms,A),zn(),Vr(A.name)}function qy(A){oT(A)}function Q1(A){ow(A)}function oT(A){Kn("{"),Ac(A,A.elements,525136),Kn("}")}function ow(A){A.isTypeOnly&&(ms("type"),zn()),A.propertyName&&(Vr(A.propertyName),zn(),U(130,A.propertyName.end,ms,A),zn()),Vr(A.name)}function u8(A){ms("require"),Kn("("),ft(A.expression),Kn(")")}function aD(A){Vr(A.openingElement),Ac(A,A.children,262144),Vr(A.closingElement)}function AA(A){Kn("<"),Jy(A.tagName),Uy(A,A.typeArguments),zn(),Vr(A.attributes),Kn("/>")}function cw(A){Vr(A.openingFragment),Ac(A,A.children,262144),Vr(A.closingFragment)}function IA(A){if(Kn("<"),Vg(A)){let Se=xC(A.tagName,A);Jy(A.tagName),Uy(A,A.typeArguments),A.attributes.properties&&A.attributes.properties.length>0&&zn(),Vr(A.attributes),_D(A.attributes,A),Vy(Se)}Kn(">")}function _C(A){Ne.writeLiteral(A.text)}function sD(A){Kn("</"),q2(A)&&Jy(A.tagName),Kn(">")}function lw(A){Ac(A,A.properties,262656)}function FA(A){Vr(A.name),uT("=",Kn,A.initializer,Qt)}function dC(A){Kn("{..."),ft(A.expression),Kn("}")}function oD(A){let Se=!1;return vF(L?.text||"",A+1,()=>Se=!0),Se}function mC(A){let Se=!1;return yF(L?.text||"",A+1,()=>Se=!0),Se}function Zh(A){return oD(A)||mC(A)}function X1(A){var Se;if(A.expression||!ar&&!Pc(A)&&Zh(A.pos)){let Jt=L&&!Pc(A)&&$s(L,A.pos).line!==$s(L,A.end).line;Jt&&Ne.increaseIndent();let Nr=U(19,A.pos,Kn,A);Vr(A.dotDotDotToken),ft(A.expression),U(20,((Se=A.expression)==null?void 0:Se.end)||Nr,Kn,A),Jt&&Ne.decreaseIndent()}}function $0(A){_s(A.namespace),Kn(":"),_s(A.name)}function Jy(A){A.kind===80?ft(A):Vr(A)}function cT(A){U(84,A.pos,ms,A),zn(),ft(A.expression,vn.parenthesizeExpressionForDisallowedComma),uw(A,A.statements,A.expression.end)}function Bx(A){let Se=U(90,A.pos,ms,A);uw(A,A.statements,Se)}function uw(A,Se,Jt){let Nr=Se.length===1&&(!L||Pc(A)||Pc(Se[0])||CJ(A,Se[0],L)),Wi=163969;Nr?(ab(59,Jt,Kn,A),zn(),Wi&=-130):U(59,Jt,Kn,A),Ac(A,Se,Wi)}function pw(A){zn(),Xv(A.token,ms),zn(),Ac(A,A.types,528)}function Y1(A){let Se=U(85,A.pos,ms,A);zn(),A.variableDeclaration&&(U(21,Se,Kn,A),Vr(A.variableDeclaration),U(22,A.variableDeclaration.end,Kn,A),zn()),Vr(A.block)}function Jo(A){Vr(A.name),Kn(":"),zn();let Se=A.initializer;if(!(Ao(Se)&1024)){let Jt=Rh(Se);Gy(Jt.pos)}ft(Se,vn.parenthesizeExpressionForDisallowedComma)}function lT(A){Vr(A.name),A.objectAssignmentInitializer&&(zn(),Kn("="),zn(),ft(A.objectAssignmentInitializer,vn.parenthesizeExpressionForDisallowedComma))}function p8(A){A.expression&&(U(26,A.pos,Kn,A),ft(A.expression,vn.parenthesizeExpressionForDisallowedComma))}function qx(A){Vr(A.name),zx(A.initializer,A.name.end,A,vn.parenthesizeExpressionForDisallowedComma)}function Uv(A){if(ze("/**"),A.comment){let Se=EF(A.comment);if(Se){let Jt=Se.split(/\r\n?|\n/);for(let Nr of Jt)Tf(),zn(),Kn("*"),zn(),ze(Nr)}}A.tags&&(A.tags.length===1&&A.tags[0].kind===344&&!A.comment?(zn(),Vr(A.tags[0])):Ac(A,A.tags,33)),zn(),ze("*/")}function $v(A){Hv(A.tagName),zy(A.typeExpression),Gv(A.comment)}function bm(A){Hv(A.tagName),Vr(A.name),Gv(A.comment)}function i_(A){Hv(A.tagName),zn(),A.importClause&&(Vr(A.importClause),zn(),U(161,A.importClause.end,ms,A),zn()),ft(A.moduleSpecifier),A.attributes&&ey(A.attributes),Gv(A.comment)}function S_(A){zn(),Kn("{"),Vr(A.name),Kn("}")}function td(A){Hv(A.tagName),zn(),Kn("{"),Vr(A.class),Kn("}"),Gv(A.comment)}function wu(A){Hv(A.tagName),zy(A.constraint),zn(),Ac(A,A.typeParameters,528),Gv(A.comment)}function Z1(A){Hv(A.tagName),A.typeExpression&&(A.typeExpression.kind===309?zy(A.typeExpression):(zn(),Kn("{"),ze("Object"),A.typeExpression.isArrayType&&(Kn("["),Kn("]")),Kn("}"))),A.fullName&&(zn(),Vr(A.fullName)),Gv(A.comment),A.typeExpression&&A.typeExpression.kind===322&&yp(A.typeExpression)}function gC(A){Hv(A.tagName),A.name&&(zn(),Vr(A.name)),Gv(A.comment),Vv(A.typeExpression)}function th(A){Gv(A.comment),Vv(A.typeExpression)}function Jx(A){Hv(A.tagName),Gv(A.comment)}function yp(A){Ac(A,j.createNodeArray(A.jsDocPropertyTags),33)}function Vv(A){A.typeParameters&&Ac(A,j.createNodeArray(A.typeParameters),33),A.parameters&&Ac(A,j.createNodeArray(A.parameters),33),A.type&&(Tf(),zn(),Kn("*"),zn(),Vr(A.type))}function T_(A){Hv(A.tagName),zy(A.typeExpression),zn(),A.isBracketed&&Kn("["),Vr(A.name),A.isBracketed&&Kn("]"),Gv(A.comment)}function Hv(A){Kn("@"),Vr(A)}function Gv(A){let Se=EF(A);Se&&(zn(),ze(Se))}function zy(A){A&&(zn(),Kn("{"),Vr(A.type),Kn("}"))}function fw(A){Tf();let Se=A.statements;if(Se.length===0||!Ph(Se[0])||Pc(Se[0])){PC(A,Se,tb);return}tb(A)}function ot(A){rh(!!A.hasNoDefaultLib,A.syntheticFileReferences||[],A.syntheticTypeReferences||[],A.syntheticLibReferences||[])}function eb(A){A.isDeclarationFile&&rh(A.hasNoDefaultLib,A.referencedFiles,A.typeReferenceDirectives,A.libReferenceDirectives)}function rh(A,Se,Jt,Nr){if(A&&(_T('/// <reference no-default-lib="true"/>'),Tf()),L&&L.moduleName&&(_T(`/// <amd-module name="${L.moduleName}" />`),Tf()),L&&L.amdDependencies)for(let pa of L.amdDependencies)pa.name?_T(`/// <amd-dependency name="${pa.name}" path="${pa.path}" />`):_T(`/// <amd-dependency path="${pa.path}" />`),Tf();function Wi(pa,Ha){for(let ps of Ha){let Co=ps.resolutionMode?`resolution-mode="${ps.resolutionMode===99?"import":"require"}" `:"",Jf=ps.preserve?'preserve="true" ':"";_T(`/// <reference ${pa}="${ps.fileName}" ${Co}${Jf}/>`),Tf()}}Wi("path",Se),Wi("types",Jt),Wi("lib",Nr)}function tb(A){let Se=A.statements;ny(A),Ge(A.statements,np),lr(A);let Jt=Va(Se,Nr=>!Ph(Nr));eb(A),Ac(A,Se,1,void 0,Jt===-1?Se.length:Jt),G0(A)}function cD(A){let Se=Ao(A);!(Se&1024)&&A.pos!==A.expression.pos&&Gy(A.expression.pos),ft(A.expression),!(Se&2048)&&A.end!==A.expression.end&&vT(A.expression.end)}function rb(A){pT(A,A.elements,528,void 0)}function V0(A,Se,Jt){let Nr=!!Se;for(let Wi=0;Wi<A.length;Wi++){let pa=A[Wi];if(Ph(pa))(Jt?!Jt.has(pa.expression.text):!0)&&(Nr&&(Nr=!1,Pi(Se)),Tf(),Vr(pa),Jt&&Jt.add(pa.expression.text));else return Wi}return A.length}function Wy(A){if(ba(A))V0(A.statements,A);else{let Se=new Set;for(let Jt of A.sourceFiles)V0(Jt.statements,Jt,Se);Pi(void 0)}}function lD(A){if(ba(A)){let Se=iq(A.text);if(Se)return _T(Se),Tf(),!0}else for(let Se of A.sourceFiles)if(lD(Se))return!0}function fo(A,Se){if(!A)return;let Jt=ze;ze=Se,Vr(A),ze=Jt}function rp(A,Se,Jt){if(Se?.length){if(sn(Se,oo))return Kv(A,Se);if(sn(Se,qu))return Jt?ty(A,Se):A.pos;m?.(Se);let Nr,Wi,pa=0,Ha=0,ps;for(;pa<Se.length;){for(;Ha<Se.length;){if(ps=Se[Ha],Wi=qu(ps)?"decorators":"modifiers",Nr===void 0)Nr=Wi;else if(Wi!==Nr)break;Ha++}let Co={pos:-1,end:-1};pa===0&&(Co.pos=Se.pos),Ha===Se.length-1&&(Co.end=Se.end),(Nr==="modifiers"||Jt)&&vC(Vr,A,Se,Nr==="modifiers"?2359808:2146305,void 0,pa,Ha-pa,!1,Co),pa=Ha,Nr=Wi,Ha++}if(x?.(Se),ps&&!Ug(ps.end))return ps.end}return A.pos}function Kv(A,Se){Ac(A,Se,2359808);let Jt=dc(Se);return Jt&&!Ug(Jt.end)?Jt.end:A.pos}function Qv(A){A&&(Kn(":"),zn(),Vr(A))}function zx(A,Se,Jt,Nr){A&&(zn(),U(64,Se,ib,Jt),zn(),ft(A,Nr))}function uT(A,Se,Jt,Nr){Jt&&(Se(A),Nr(Jt))}function ey(A){A&&(zn(),Vr(A))}function H0(A,Se){A&&(zn(),ft(A,Se))}function hC(A){A&&(Vr(A),zn())}function nb(A,Se){Cs(Se)||Ao(A)&1||Oe&&!_w(A,Se,0)?(zn(),Vr(Se)):(Tf(),$y(),_Y(Se)?oe(5,Se):Vr(Se),kg())}function ty(A,Se){Ac(A,Se,2146305);let Jt=dc(Se);return Jt&&!Ug(Jt.end)?Jt.end:A.pos}function Uy(A,Se){Ac(A,Se,53776,ta)}function Wx(A,Se){if(Ss(A)&&A.typeArguments)return Uy(A,A.typeArguments);Ac(A,Se,53776|(Bc(A)?64:0))}function Fa(A,Se){Ac(A,Se,2576)}function Zn(A,Se){let Jt=Zd(Se);return Jt&&Jt.pos===A.pos&&Bc(A)&&!A.type&&!Pt(A.modifiers)&&!Pt(A.typeParameters)&&!Pt(Jt.modifiers)&&!Jt.dotDotDotToken&&!Jt.questionToken&&!Jt.type&&!Jt.initializer&&Ye(Jt.name)}function Sf(A,Se){Zn(A,Se)?Ac(A,Se,528):Fa(A,Se)}function yC(A,Se){Ac(A,Se,8848)}function ry(A){switch(A&60){case 0:break;case 16:Kn(",");break;case 4:zn(),Kn("|");break;case 32:zn(),Kn("*"),zn();break;case 8:zn(),Kn("&");break}}function Ac(A,Se,Jt,Nr,Wi,pa){fT(Vr,A,Se,Jt|(A&&Ao(A)&2?65536:0),Nr,Wi,pa)}function pT(A,Se,Jt,Nr,Wi,pa){fT(ft,A,Se,Jt,Nr,Wi,pa)}function fT(A,Se,Jt,Nr,Wi,pa=0,Ha=Jt?Jt.length-pa:0){if(Jt===void 0&&Nr&16384)return;let Co=Jt===void 0||pa>=Jt.length||Ha===0;if(Co&&Nr&32768){m?.(Jt),x?.(Jt);return}Nr&15360&&(Kn(b8t(Nr)),Co&&Jt&&Gy(Jt.pos,!0)),m?.(Jt),Co?Nr&1&&!(Oe&&(!Se||L&&Fk(Se,L)))?Tf():Nr&256&&!(Nr&524288)&&zn():vC(A,Se,Jt,Nr,Wi,pa,Ha,Jt.hasTrailingComma,Jt),x?.(Jt),Nr&15360&&(Co&&Jt&&vT(Jt.end),Kn(x8t(Nr)))}function vC(A,Se,Jt,Nr,Wi,pa,Ha,ps,Co){let Jf=(Nr&262144)===0,vl=Jf,rl=_w(Se,Jt[pa],Nr);rl?(Tf(rl),vl=!1):Nr&256&&zn(),Nr&128&&$y();let TD=k8t(A,Wi),zf,ay=!1;for(let ub=0;ub<Ha;ub++){let pb=Jt[pa+ub];if(Nr&32)Tf(),ry(Nr);else if(zf){Nr&60&&zf.end!==(Se?Se.end:-1)&&(Ao(zf)&2048||vT(zf.end)),ry(Nr);let bw=sb(zf,pb,Nr);if(bw>0){if(Nr&131||($y(),ay=!0),vl&&Nr&60&&!Ug(pb.pos)){let sy=Rh(pb);Gy(sy.pos,!!(Nr&512),!0)}Tf(bw),vl=!1}else zf&&Nr&512&&zn()}if(vl){let bw=Rh(pb);Gy(bw.pos)}else vl=Jf;ie=pb.pos,TD(pb,A,Wi,ub),ay&&(kg(),ay=!1),zf=pb}let Hx=zf?Ao(zf):0,xT=ar||!!(Hx&2048),wD=ps&&Nr&64&&Nr&16;wD&&(zf&&!xT?U(28,zf.end,Kn,zf):Kn(",")),zf&&(Se?Se.end:-1)!==zf.end&&Nr&60&&!xT&&vT(wD&&Co?.end?Co.end:zf.end),Nr&128&&kg();let kD=fD(Se,Jt[pa+Ha-1],Nr,Co);kD?Tf(kD):Nr&2097408&&zn()}function uD(A){Ne.writeLiteral(A)}function Ux(A){Ne.writeStringLiteral(A)}function nh(A){Ne.write(A)}function MA(A,Se){Ne.writeSymbol(A,Se)}function Kn(A){Ne.writePunctuation(A)}function af(){Ne.writeTrailingSemicolon(";")}function ms(A){Ne.writeKeyword(A)}function ib(A){Ne.writeOperator(A)}function bC(A){Ne.writeParameter(A)}function _T(A){Ne.writeComment(A)}function zn(){Ne.writeSpace(" ")}function RA(A){Ne.writeProperty(A)}function pD(A){Ne.nonEscapingWrite?Ne.nonEscapingWrite(A):Ne.write(A)}function Tf(A=1){for(let Se=0;Se<A;Se++)Ne.writeLine(Se>0)}function $y(){Ne.increaseIndent()}function kg(){Ne.decreaseIndent()}function ab(A,Se,Jt,Nr){return Me?Xv(A,Jt,Se):k_(Nr,A,Jt,Se,Xv)}function zd(A,Se){b&&b(A),Se(to(A.kind)),S&&S(A)}function Xv(A,Se,Jt){let Nr=to(A);return Se(Nr),Jt<0?Jt:Jt+Nr.length}function vd(A,Se,Jt){if(Ao(A)&1)zn();else if(Oe){let Nr=Cg(A,Se,Jt);Nr?Tf(Nr):zn()}else Tf()}function ih(A){let Se=A.split(/\r\n?|\n/),Jt=Mde(Se);for(let Nr of Se){let Wi=Jt?Nr.slice(Jt):Nr;Wi.length&&(Tf(),ze(Wi))}}function Qm(A,Se){A?($y(),Tf(A)):Se&&zn()}function Vy(A,Se){A&&kg(),Se&&kg()}function _w(A,Se,Jt){if(Jt&2||Oe){if(Jt&65536)return 1;if(Se===void 0)return!A||L&&Fk(A,L)?0:1;if(Se.pos===ie||Se.kind===12)return 0;if(L&&A&&!Ug(A.pos)&&!Pc(Se)&&(!Se.parent||al(Se.parent)===al(A)))return Oe?Yv(Nr=>lge(Se.pos,A.pos,L,Nr)):CJ(A,Se,L)?0:1;if($x(Se,Jt))return 1}return Jt&1?1:0}function sb(A,Se,Jt){if(Jt&2||Oe){if(A===void 0||Se===void 0||Se.kind===12)return 0;if(L&&!Pc(A)&&!Pc(Se))return Oe&&Ym(A,Se)?Yv(Nr=>pX(A,Se,L,Nr)):!Oe&&a_(A,Se)?M5(A,Se,L)?0:1:Jt&65536?1:0;if($x(A,Jt)||$x(Se,Jt))return 1}else if(U4(Se))return 1;return Jt&1?1:0}function fD(A,Se,Jt,Nr){if(Jt&2||Oe){if(Jt&65536)return 1;if(Se===void 0)return!A||L&&Fk(A,L)?0:1;if(L&&A&&!Ug(A.pos)&&!Pc(Se)&&(!Se.parent||Se.parent===A)){if(Oe){let Wi=Nr&&!Ug(Nr.end)?Nr.end:Se.end;return Yv(pa=>uge(Wi,A.end,L,pa))}return sge(A,Se,L)?0:1}if($x(Se,Jt))return 1}return Jt&1&&!(Jt&131072)?1:0}function Yv(A){I.assert(!!Oe);let Se=A(!0);return Se===0?A(!1):Se}function xC(A,Se){let Jt=Oe&&_w(Se,A,0);return Jt&&Qm(Jt,!1),!!Jt}function _D(A,Se){let Jt=Oe&&fD(Se,A,0,void 0);Jt&&Tf(Jt)}function $x(A,Se){if(Pc(A)){let Jt=U4(A);return Jt===void 0?(Se&65536)!==0:Jt}return(Se&65536)!==0}function Cg(A,Se,Jt){return Ao(A)&262144?0:(A=SC(A),Se=SC(Se),Jt=SC(Jt),U4(Jt)?1:L&&!Pc(A)&&!Pc(Se)&&!Pc(Jt)?Oe?Yv(Nr=>pX(Se,Jt,L,Nr)):M5(Se,Jt,L)?0:1:0)}function dD(A){return A.statements.length===0&&(!L||M5(A,A,L))}function SC(A){for(;A.kind===217&&Pc(A);)A=A.expression;return A}function ob(A,Se){if(Xc(A)||yk(A))return mw(A);if(vo(A)&&A.textSourceNode)return ob(A.textSourceNode,Se);let Jt=L,Nr=!!Jt&&!!A.parent&&!Pc(A);if(xv(A)){if(!Nr||rn(A)!==al(Jt))return fi(A)}else if(Hg(A)){if(!Nr||rn(A)!==al(Jt))return z4(A)}else if(I.assertNode(A,hk),!Nr)return A.text;return m2(Jt,A,Se)}function dw(A,Se=L,Jt,Nr){if(A.kind===11&&A.textSourceNode){let pa=A.textSourceNode;if(Ye(pa)||Ca(pa)||e_(pa)||Hg(pa)){let Ha=e_(pa)?pa.text:ob(pa);return Nr?`"${VQ(Ha)}"`:Jt||Ao(A)&16777216?`"${Ay(Ha)}"`:`"${uJ(Ha)}"`}else return dw(pa,rn(pa),Jt,Nr)}let Wi=(Jt?1:0)|(Nr?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Hde(A,Se,Wi)}function ny(A){Y.push(Ee),Ee=0,ve.push(Pe),!(A&&Ao(A)&1048576)&&(fe.push(te),te=0,ne.push(ae),ae=void 0,de.push(me))}function G0(A){Ee=Y.pop(),Pe=ve.pop(),!(A&&Ao(A)&1048576)&&(te=fe.pop(),ae=ne.pop(),me=de.pop())}function iy(A){(!me||me===dc(de))&&(me=new Set),me.add(A)}function cb(A){(!Pe||Pe===dc(ve))&&(Pe=new Set),Pe.add(A)}function np(A){if(A)switch(A.kind){case 241:Ge(A.statements,np);break;case 256:case 254:case 246:case 247:np(A.statement);break;case 245:np(A.thenStatement),np(A.elseStatement);break;case 248:case 250:case 249:np(A.initializer),np(A.statement);break;case 255:np(A.caseBlock);break;case 269:Ge(A.clauses,np);break;case 296:case 297:Ge(A.statements,np);break;case 258:np(A.tryBlock),np(A.catchClause),np(A.finallyBlock);break;case 299:np(A.variableDeclaration),np(A.block);break;case 243:np(A.declarationList);break;case 261:Ge(A.declarations,np);break;case 260:case 169:case 208:case 263:Zv(A.name);break;case 262:Zv(A.name),Ao(A)&1048576&&(Ge(A.parameters,np),np(A.body));break;case 206:case 207:Ge(A.elements,np);break;case 272:np(A.importClause);break;case 273:Zv(A.name),np(A.namedBindings);break;case 274:Zv(A.name);break;case 280:Zv(A.name);break;case 275:Ge(A.elements,np);break;case 276:Zv(A.propertyName||A.name);break}}function TC(A){if(A)switch(A.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:Zv(A.name);break}}function Zv(A){A&&(Xc(A)||yk(A)?mw(A):Os(A)&&np(A))}function mw(A){let Se=A.emitNode.autoGenerate;if((Se.flags&7)===4)return mD(bM(A),Ca(A),Se.flags,Se.prefix,Se.suffix);{let Jt=Se.id;return H[Jt]||(H[Jt]=qA(A))}}function mD(A,Se,Jt,Nr,Wi){let pa=Wo(A),Ha=Se?z:W;return Ha[pa]||(Ha[pa]=K0(A,Se,Jt??0,UN(Nr,mw),UN(Wi)))}function Hy(A,Se){return gw(A,Se)&&!jA(A,Se)&&!X.has(A)}function jA(A,Se){let Jt,Nr;if(Se?(Jt=Pe,Nr=ve):(Jt=me,Nr=de),Jt?.has(A))return!0;for(let Wi=Nr.length-1;Wi>=0;Wi--)if(Jt!==Nr[Wi]&&(Jt=Nr[Wi],Jt?.has(A)))return!0;return!1}function gw(A,Se){return L?Nq(L,A,n):!0}function LA(A,Se){for(let Jt=Se;Jt&&T2(Jt,Se);Jt=Jt.nextContainer)if(Py(Jt)&&Jt.locals){let Nr=Jt.locals.get(gl(A));if(Nr&&Nr.flags&3257279)return!1}return!0}function dT(A){switch(A){case"":return te;case"#":return Ee;default:return ae?.get(A)??0}}function wC(A,Se){switch(A){case"":te=Se;break;case"#":Ee=Se;break;default:ae??(ae=new Map),ae.set(A,Se);break}}function Dl(A,Se,Jt,Nr,Wi){Nr.length>0&&Nr.charCodeAt(0)===35&&(Nr=Nr.slice(1));let pa=WS(Jt,Nr,"",Wi),Ha=dT(pa);if(A&&!(Ha&A)){let Co=WS(Jt,Nr,A===268435456?"_i":"_n",Wi);if(Hy(Co,Jt))return Ha|=A,Jt?cb(Co):Se&&iy(Co),wC(pa,Ha),Co}for(;;){let ps=Ha&268435455;if(Ha++,ps!==8&&ps!==13){let Co=ps<26?"_"+String.fromCharCode(97+ps):"_"+(ps-26),Jf=WS(Jt,Nr,Co,Wi);if(Hy(Jf,Jt))return Jt?cb(Jf):Se&&iy(Jf),wC(pa,Ha),Jf}}}function pu(A,Se=Hy,Jt,Nr,Wi,pa,Ha){if(A.length>0&&A.charCodeAt(0)===35&&(A=A.slice(1)),pa.length>0&&pa.charCodeAt(0)===35&&(pa=pa.slice(1)),Jt){let Co=WS(Wi,pa,A,Ha);if(Se(Co,Wi))return Wi?cb(Co):Nr?iy(Co):X.add(Co),Co}A.charCodeAt(A.length-1)!==95&&(A+="_");let ps=1;for(;;){let Co=WS(Wi,pa,A+ps,Ha);if(Se(Co,Wi))return Wi?cb(Co):Nr?iy(Co):X.add(Co),Co;ps++}}function BA(A){return pu(A,gw,!0,!1,!1,"","")}function rd(A){let Se=ob(A.name);return LA(Se,_i(A,Py))?Se:pu(Se,Hy,!1,!1,!1,"","")}function Xm(A){let Se=KP(A),Jt=vo(Se)?Kde(Se.text):"module";return pu(Jt,Hy,!1,!1,!1,"","")}function gD(){return pu("default",Hy,!1,!1,!1,"","")}function ah(){return pu("class",Hy,!1,!1,!1,"","")}function kC(A,Se,Jt,Nr){return Ye(A.name)?mD(A.name,Se):Dl(0,!1,Se,Jt,Nr)}function K0(A,Se,Jt,Nr,Wi){switch(A.kind){case 80:case 81:return pu(ob(A),Hy,!!(Jt&16),!!(Jt&8),Se,Nr,Wi);case 267:case 266:return I.assert(!Nr&&!Wi&&!Se),rd(A);case 272:case 278:return I.assert(!Nr&&!Wi&&!Se),Xm(A);case 262:case 263:{I.assert(!Nr&&!Wi&&!Se);let pa=A.name;return pa&&!Xc(pa)?K0(pa,!1,Jt,Nr,Wi):gD()}case 277:return I.assert(!Nr&&!Wi&&!Se),gD();case 231:return I.assert(!Nr&&!Wi&&!Se),ah();case 174:case 177:case 178:return kC(A,Se,Nr,Wi);case 167:return Dl(0,!0,Se,Nr,Wi);default:return Dl(0,!1,Se,Nr,Wi)}}function qA(A){let Se=A.emitNode.autoGenerate,Jt=UN(Se.prefix,mw),Nr=UN(Se.suffix);switch(Se.flags&7){case 1:return Dl(0,!!(Se.flags&8),Ca(A),Jt,Nr);case 2:return I.assertNode(A,Ye),Dl(268435456,!!(Se.flags&8),!1,Jt,Nr);case 3:return pu(fi(A),Se.flags&32?gw:Hy,!!(Se.flags&16),!!(Se.flags&8),Ca(A),Jt,Nr)}return I.fail(`Unsupported GeneratedIdentifierKind: ${I.formatEnum(Se.flags&7,NI,!0)}.`)}function CC(A,Se){let Jt=$t(2,A,Se),Nr=pe,Wi=He,pa=qe;Ol(Se),Jt(A,Se),mT(Se,Nr,Wi,pa)}function Ol(A){let Se=Ao(A),Jt=Rh(A);JA(A,Se,Jt.pos,Jt.end),Se&4096&&(ar=!0)}function mT(A,Se,Jt,Nr){let Wi=Ao(A),pa=Rh(A);Wi&4096&&(ar=!1),hw(A,Wi,pa.pos,pa.end,Se,Jt,Nr);let Ha=mhe(A);Ha&&hw(A,Wi,Ha.pos,Ha.end,Se,Jt,Nr)}function JA(A,Se,Jt,Nr){Ct(),jt=!1;let Wi=Jt<0||(Se&1024)!==0||A.kind===12,pa=Nr<0||(Se&2048)!==0||A.kind===12;(Jt>0||Nr>0)&&Jt!==Nr&&(Wi||lb(Jt,A.kind!==353),(!Wi||Jt>=0&&Se&1024)&&(pe=Jt),(!pa||Nr>=0&&Se&2048)&&(He=Nr,A.kind===261&&(qe=Nr))),Ge(EN(A),f8),pr()}function hw(A,Se,Jt,Nr,Wi,pa,Ha){Ct();let ps=Nr<0||(Se&2048)!==0||A.kind===12;Ge(nM(A),wf),(Jt>0||Nr>0)&&Jt!==Nr&&(pe=Wi,He=pa,qe=Ha,!ps&&A.kind!==353&&vD(Nr)),pr()}function f8(A){(A.hasLeadingNewline||A.kind===2)&&Ne.writeLine(),gT(A),A.hasTrailingNewLine||A.kind===2?Ne.writeLine():Ne.writeSpace(" ")}function wf(A){Ne.isAtStartOfLine()||Ne.writeSpace(" "),gT(A),A.hasTrailingNewLine&&Ne.writeLine()}function gT(A){let Se=yw(A),Jt=A.kind===3?FP(Se):void 0;yN(Se,Jt,Ne,0,Se.length,N)}function yw(A){return A.kind===3?`/*${A.text}*/`:`//${A.text}`}function PC(A,Se,Jt){Ct();let{pos:Nr,end:Wi}=Se,pa=Ao(A),Ha=Nr<0||(pa&1024)!==0,ps=ar||Wi<0||(pa&2048)!==0;Ha||bd(Se),pr(),pa&4096&&!ar?(ar=!0,Jt(A),ar=!1):Jt(A),Ct(),ps||(lb(Se.end,!0),jt&&!Ne.isAtStartOfLine()&&Ne.writeLine()),pr()}function a_(A,Se){return A=al(A),A.parent&&A.parent===al(Se).parent}function Ym(A,Se){if(Se.pos<A.end)return!1;A=al(A),Se=al(Se);let Jt=A.parent;if(!Jt||Jt!==Se.parent)return!1;let Nr=Uge(A),Wi=Nr?.indexOf(A);return Wi!==void 0&&Wi>-1&&Nr.indexOf(Se)===Wi+1}function lb(A,Se){jt=!1,Se?A===0&&L?.isDeclarationFile?EC(A,hT):EC(A,yD):A===0&&EC(A,hD)}function hD(A,Se,Jt,Nr,Wi){bD(A,Se)&&yD(A,Se,Jt,Nr,Wi)}function hT(A,Se,Jt,Nr,Wi){bD(A,Se)||yD(A,Se,Jt,Nr,Wi)}function yT(A,Se){return e.onlyPrintJsDocStyle?LY(A,Se)||Aq(A,Se):!0}function yD(A,Se,Jt,Nr,Wi){!L||!yT(L.text,A)||(jt||(Vme(no(),Ne,Wi,A),jt=!0),Wd(A),yN(L.text,no(),Ne,A,Se,N),Wd(Se),Nr?Ne.writeLine():Jt===3&&Ne.writeSpace(" "))}function vT(A){ar||A===-1||lb(A,!0)}function vD(A){bT(A,vw)}function vw(A,Se,Jt,Nr){!L||!yT(L.text,A)||(Ne.isAtStartOfLine()||Ne.writeSpace(" "),Wd(A),yN(L.text,no(),Ne,A,Se,N),Wd(Se),Nr&&Ne.writeLine())}function Gy(A,Se,Jt){ar||(Ct(),bT(A,Se?vw:Jt?nd:e0),pr())}function nd(A,Se,Jt){L&&(Wd(A),yN(L.text,no(),Ne,A,Se,N),Wd(Se),Jt===2&&Ne.writeLine())}function e0(A,Se,Jt,Nr){L&&(Wd(A),yN(L.text,no(),Ne,A,Se,N),Wd(Se),Nr?Ne.writeLine():Ne.writeSpace(" "))}function EC(A,Se){L&&(pe===-1||A!==pe)&&(Uo(A)?ei(Se):yF(L.text,A,Se,A))}function bT(A,Se){L&&(He===-1||A!==He&&A!==qe)&&vF(L.text,A,Se)}function Uo(A){return st!==void 0&&ao(st).nodePos===A}function ei(A){if(!L)return;let Se=ao(st).detachedCommentEndPos;st.length-1?st.pop():st=void 0,yF(L.text,Se,A,Se)}function bd(A){let Se=L&&Hme(L.text,no(),Ne,w_,A,N,ar);Se&&(st?st.push(Se):st=[Se])}function w_(A,Se,Jt,Nr,Wi,pa){!L||!yT(L.text,Nr)||(Wd(Nr),yN(A,Se,Jt,Nr,Wi,pa),Wd(Wi))}function bD(A,Se){return!!L&&iQ(L.text,A,Se)}function Vx(A,Se){let Jt=$t(3,A,Se);DC(Se),Jt(A,Se),xD(Se)}function DC(A){let Se=Ao(A),Jt=I1(A),Nr=Jt.source||gt;A.kind!==353&&!(Se&32)&&Jt.pos>=0&&Ud(Jt.source||gt,SD(Nr,Jt.pos)),Se&128&&(Me=!0)}function xD(A){let Se=Ao(A),Jt=I1(A);Se&128&&(Me=!1),A.kind!==353&&!(Se&64)&&Jt.end>=0&&Ud(Jt.source||gt,Jt.end)}function SD(A,Se){return A.skipTrivia?A.skipTrivia(Se):yo(A.text,Se)}function Wd(A){if(Me||Ug(A)||t0(gt))return;let{line:Se,character:Jt}=$s(gt,A);Te.addMapping(Ne.getLine(),Ne.getColumn(),Tt,Se,Jt,void 0)}function Ud(A,Se){if(A!==gt){let Jt=gt,Nr=Tt;sh(A),Wd(Se),Q0(Jt,Nr)}else Wd(Se)}function k_(A,Se,Jt,Nr,Wi){if(Me||A&&Xq(A))return Wi(Se,Jt,Nr);let pa=A&&A.emitNode,Ha=pa&&pa.flags||0,ps=pa&&pa.tokenSourceMapRanges&&pa.tokenSourceMapRanges[Se],Co=ps&&ps.source||gt;return Nr=SD(Co,ps?ps.pos:Nr),!(Ha&256)&&Nr>=0&&Ud(Co,Nr),Nr=Wi(Se,Jt,Nr),ps&&(Nr=ps.end),!(Ha&512)&&Nr>=0&&Ud(Co,Nr),Nr}function sh(A){if(!Me){if(gt=A,A===xe){Tt=nt;return}t0(A)||(Tt=Te.addSource(A.fileName),e.inlineSources&&Te.setSourceContent(Tt,A.text),xe=A,nt=Tt)}}function Q0(A,Se){gt=A,Tt=Se}function t0(A){return il(A.fileName,".json")}}function v8t(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function b8t(e){return PBe[e&15360][0]}function x8t(e){return PBe[e&15360][1]}function S8t(e,t,n,i){t(e)}function T8t(e,t,n,i){t(e,n.select(i))}function w8t(e,t,n,i){t(e,n)}function k8t(e,t){return e.length===1?S8t:typeof t=="object"?T8t:w8t}function SW(e,t,n){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,s=Xu(n);return{useCaseSensitiveFileNames:n,fileExists:E,readFile:(Y,Ee)=>e.readFile(Y,Ee),directoryExists:e.directoryExists&&N,getDirectories:M,readDirectory:L,createDirectory:e.createDirectory&&F,writeFile:e.writeFile&&P,addOrDeleteFileOrDirectory:H,addOrDeleteFile:X,clearCache:ae,realpath:e.realpath&&W};function l(Y){return Ec(Y,t,s)}function p(Y){return i.get(ju(Y))}function g(Y){let Ee=p(Ei(Y));return Ee&&(Ee.sortedAndCanonicalizedFiles||(Ee.sortedAndCanonicalizedFiles=Ee.files.map(s).sort(),Ee.sortedAndCanonicalizedDirectories=Ee.directories.map(s).sort()),Ee)}function m(Y){return gu(Zs(Y))}function x(Y,Ee){var fe;if(!e.realpath||ju(l(e.realpath(Y)))===Ee){let te={files:Dt(e.readDirectory(Y,void 0,void 0,["*.*"]),m)||[],directories:e.getDirectories(Y)||[]};return i.set(ju(Ee),te),te}if((fe=e.directoryExists)!=null&&fe.call(e,Y))return i.set(Ee,!1),!1}function b(Y,Ee){Ee=ju(Ee);let fe=p(Ee);if(fe)return fe;try{return x(Y,Ee)}catch{I.assert(!i.has(ju(Ee)));return}}function S(Y,Ee){return tm(Y,Ee,vc,fp)>=0}function P(Y,Ee,fe){let te=l(Y),de=g(te);return de&&ne(de,m(Y),!0),e.writeFile(Y,Ee,fe)}function E(Y){let Ee=l(Y),fe=g(Ee);return fe&&S(fe.sortedAndCanonicalizedFiles,s(m(Y)))||e.fileExists(Y)}function N(Y){let Ee=l(Y);return i.has(ju(Ee))||e.directoryExists(Y)}function F(Y){let Ee=l(Y),fe=g(Ee);if(fe){let te=m(Y),de=s(te),me=fe.sortedAndCanonicalizedDirectories;Mg(me,de,fp)&&fe.directories.push(te)}e.createDirectory(Y)}function M(Y){let Ee=l(Y),fe=b(Y,Ee);return fe?fe.directories.slice():e.getDirectories(Y)}function L(Y,Ee,fe,te,de){let me=l(Y),ve=b(Y,me),Pe;if(ve!==void 0)return DX(Y,Ee,fe,te,n,t,de,Oe,W);return e.readDirectory(Y,Ee,fe,te,de);function Oe(Ne){let it=l(Ne);if(it===me)return ve||ie(Ne,it);let ze=b(Ne,it);return ze!==void 0?ze||ie(Ne,it):IX}function ie(Ne,it){if(Pe&&it===me)return Pe;let ze={files:Dt(e.readDirectory(Ne,void 0,void 0,["*.*"]),m)||ce,directories:e.getDirectories(Ne)||ce};return it===me&&(Pe=ze),ze}}function W(Y){return e.realpath?e.realpath(Y):Y}function z(Y){RI(Ei(Y),Ee=>i.delete(ju(Ee))?!0:void 0)}function H(Y,Ee){if(p(Ee)!==void 0){ae();return}let te=g(Ee);if(!te){z(Ee);return}if(!e.directoryExists){ae();return}let de=m(Y),me={fileExists:e.fileExists(Y),directoryExists:e.directoryExists(Y)};return me.directoryExists||S(te.sortedAndCanonicalizedDirectories,s(de))?ae():ne(te,de,me.fileExists),me}function X(Y,Ee,fe){if(fe===1)return;let te=g(Ee);te?ne(te,m(Y),fe===0):z(Ee)}function ne(Y,Ee,fe){let te=Y.sortedAndCanonicalizedFiles,de=s(Ee);if(fe)Mg(te,de,fp)&&Y.files.push(Ee);else{let me=tm(te,de,vc,fp);if(me>=0){te.splice(me,1);let ve=Y.files.findIndex(Pe=>s(Pe)===de);Y.files.splice(ve,1)}}}function ae(){i.clear()}}var v0e=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(v0e||{});function TW(e,t,n,i,s){var l;let p=ck(((l=t?.configFile)==null?void 0:l.extendedSourceFiles)||ce,s);n.forEach((g,m)=>{p.has(m)||(g.projects.delete(e),g.close())}),p.forEach((g,m)=>{let x=n.get(m);x?x.projects.add(e):n.set(m,{projects:new Set([e]),watcher:i(g,m),close:()=>{let b=n.get(m);!b||b.projects.size!==0||(b.watcher.close(),n.delete(m))}})})}function nee(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function wW(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var l;(l=i.extendedSourceFiles)!=null&&l.some(p=>n(p)===t)&&wW(e,s,n)})}function iee(e,t,n){P4(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:hg})}function GM(e,t,n){t?P4(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:ym,onExistingValue:s}):h_(e,ym);function i(l,p){return{watcher:n(l,p),flags:p}}function s(l,p,g){l.flags!==p&&(l.watcher.close(),e.set(g,i(g,p)))}}function KM({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:l,extraFileExtensions:p,currentDirectory:g,useCaseSensitiveFileNames:m,writeLog:x,toPath:b,getScriptKind:S}){let P=jW(n);if(!P)return x(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=P,n===e)return!1;if(zO(n)&&!(AX(t,s,p)||L()))return x(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Jye(t,s.configFile.configFileSpecs,Qa(Ei(i),g),m,g))return x(`Project: ${i} Detected excluded file: ${t}`),!0;if(!l||s.outFile||s.outDir)return!1;if(Wu(n)){if(s.declarationDir)return!1}else if(!Wl(n,wN))return!1;let E=yf(n),N=cs(l)?void 0:Fee(l)?l.getProgramOrUndefined():l,F=!N&&!cs(l)?l:void 0;if(M(E+".ts")||M(E+".tsx"))return x(`Project: ${i} Detected output file: ${t}`),!0;return!1;function M(W){return N?!!N.getSourceFileByPath(W):F?F.state.fileInfos.has(W):!!Ir(l,z=>b(z)===W)}function L(){if(!S)return!1;switch(S(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return bx(s);case 6:return O2(s);case 0:return!1}}}function b0e(e,t){return e?e.isEmittedFile(t):!1}var x0e=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(x0e||{});function aee(e,t,n,i){P_e(t===2?n:Ko);let s={watchFile:(F,M,L,W)=>e.watchFile(F,M,L,W),watchDirectory:(F,M,L,W)=>e.watchDirectory(F,M,(L&1)!==0,W)},l=t!==0?{watchFile:E("watchFile"),watchDirectory:E("watchDirectory")}:void 0,p=t===2?{watchFile:S,watchDirectory:P}:l||s,g=t===2?b:N3;return{watchFile:m("watchFile"),watchDirectory:m("watchDirectory")};function m(F){return(M,L,W,z,H,X)=>{var ne;return Qz(M,F==="watchFile"?z?.excludeFiles:z?.excludeDirectories,x(),((ne=e.getCurrentDirectory)==null?void 0:ne.call(e))||"")?g(M,W,z,H,X):p[F].call(void 0,M,L,W,z,H,X)}}function x(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function b(F,M,L,W,z){return n(`ExcludeWatcher:: Added:: ${N(F,M,L,W,z,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${N(F,M,L,W,z,i)}`)}}function S(F,M,L,W,z,H){n(`FileWatcher:: Added:: ${N(F,L,W,z,H,i)}`);let X=l.watchFile(F,M,L,W,z,H);return{close:()=>{n(`FileWatcher:: Close:: ${N(F,L,W,z,H,i)}`),X.close()}}}function P(F,M,L,W,z,H){let X=`DirectoryWatcher:: Added:: ${N(F,L,W,z,H,i)}`;n(X);let ne=xc(),ae=l.watchDirectory(F,M,L,W,z,H),Y=xc()-ne;return n(`Elapsed:: ${Y}ms ${X}`),{close:()=>{let Ee=`DirectoryWatcher:: Close:: ${N(F,L,W,z,H,i)}`;n(Ee);let fe=xc();ae.close();let te=xc()-fe;n(`Elapsed:: ${te}ms ${Ee}`)}}}function E(F){return(M,L,W,z,H,X)=>s[F].call(void 0,M,(...ne)=>{let ae=`${F==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ne[0]} ${ne[1]!==void 0?ne[1]:""}:: ${N(M,W,z,H,X,i)}`;n(ae);let Y=xc();L.call(void 0,...ne);let Ee=xc()-Y;n(`Elapsed:: ${Ee}ms ${ae}`)},W,z,H,X)}function N(F,M,L,W,z,H){return`WatchInfo: ${F} ${M} ${JSON.stringify(L)} ${H?H(W,z):z===void 0?W:`${W} ${z}`}`}}function QM(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function ym(e){e.watcher.close()}function see(e,t,n="tsconfig.json"){return RI(e,i=>{let s=gi(i,n);return t(s)?s:void 0})}function oee(e,t){let n=Ei(t),i=j_(e)?e:gi(n,e);return Zs(i)}function S0e(e,t,n){let i;return Ge(e,l=>{let p=YB(l,t);if(p.pop(),!i){i=p;return}let g=Math.min(i.length,p.length);for(let m=0;m<g;m++)if(n(i[m])!==n(p[m])){if(m===0)return!0;i.length=m;break}p.length<i.length&&(i.length=p.length)})?"":i?vS(i):t}function T0e(e,t){return kW(e,t)}function cee(e,t){return(n,i,s)=>{let l;try{Qc("beforeIORead"),l=e(n),Qc("afterIORead"),R_("I/O Read","beforeIORead","afterIORead")}catch(p){s&&s(p.message),l=""}return l!==void 0?AE(n,l,i,t):void 0}}function lee(e,t,n){return(i,s,l,p)=>{try{Qc("beforeIOWrite"),YQ(i,s,l,e,t,n),Qc("afterIOWrite"),R_("I/O Write","beforeIOWrite","afterIOWrite")}catch(g){p&&p(g.message)}}}function kW(e,t,n=Ru){let i=new Map,s=Xu(n.useCaseSensitiveFileNames);function l(b){return i.has(b)?!0:(x.directoryExists||n.directoryExists)(b)?(i.set(b,!0),!0):!1}function p(){return Ei(Zs(n.getExecutingFilePath()))}let g=O1(e),m=n.realpath&&(b=>n.realpath(b)),x={getSourceFile:cee(b=>x.readFile(b),t),getDefaultLibLocation:p,getDefaultLibFileName:b=>gi(p(),xF(b)),writeFile:lee((b,S,P)=>n.writeFile(b,S,P),b=>(x.createDirectory||n.createDirectory)(b),b=>l(b)),getCurrentDirectory:Cu(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>g,fileExists:b=>n.fileExists(b),readFile:b=>n.readFile(b),trace:b=>n.write(b+g),directoryExists:b=>n.directoryExists(b),getEnvironmentVariable:b=>n.getEnvironmentVariable?n.getEnvironmentVariable(b):"",getDirectories:b=>n.getDirectories(b),realpath:m,readDirectory:(b,S,P,E,N)=>n.readDirectory(b,S,P,E,N),createDirectory:b=>n.createDirectory(b),createHash:Ra(n,n.createHash)};return x}function P3(e,t,n){let i=e.readFile,s=e.fileExists,l=e.directoryExists,p=e.createDirectory,g=e.writeFile,m=new Map,x=new Map,b=new Map,S=new Map,P=F=>{let M=t(F),L=m.get(M);return L!==void 0?L!==!1?L:void 0:E(M,F)},E=(F,M)=>{let L=i.call(e,M);return m.set(F,L!==void 0?L:!1),L};e.readFile=F=>{let M=t(F),L=m.get(M);return L!==void 0?L!==!1?L:void 0:!il(F,".json")&&!_0e(F)?i.call(e,F):E(M,F)};let N=n?(F,M,L,W)=>{let z=t(F),H=typeof M=="object"?M.impliedNodeFormat:void 0,X=S.get(H),ne=X?.get(z);if(ne)return ne;let ae=n(F,M,L,W);return ae&&(Wu(F)||il(F,".json"))&&S.set(H,(X||new Map).set(z,ae)),ae}:void 0;return e.fileExists=F=>{let M=t(F),L=x.get(M);if(L!==void 0)return L;let W=s.call(e,F);return x.set(M,!!W),W},g&&(e.writeFile=(F,M,...L)=>{let W=t(F);x.delete(W);let z=m.get(W);z!==void 0&&z!==M?(m.delete(W),S.forEach(H=>H.delete(W))):N&&S.forEach(H=>{let X=H.get(W);X&&X.text!==M&&H.delete(W)}),g.call(e,F,M,...L)}),l&&(e.directoryExists=F=>{let M=t(F),L=b.get(M);if(L!==void 0)return L;let W=l.call(e,F);return b.set(M,!!W),W},p&&(e.createDirectory=F=>{let M=t(F);b.delete(M),p.call(e,F)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:l,originalCreateDirectory:p,originalWriteFile:g,getSourceFileWithCache:N,readFileWithCache:P}}function MBe(e,t,n){let i;return i=ti(i,e.getConfigFileParsingDiagnostics()),i=ti(i,e.getOptionsDiagnostics(n)),i=ti(i,e.getSyntacticDiagnostics(t,n)),i=ti(i,e.getGlobalDiagnostics(n)),i=ti(i,e.getSemanticDiagnostics(t,n)),y_(e.getCompilerOptions())&&(i=ti(i,e.getDeclarationDiagnostics(t,n))),VO(i||ce)}function RBe(e,t){let n="";for(let i of e)n+=uee(i,t);return n}function uee(e,t){let n=`${hr(e)} TS${e.code}: ${Uh(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:s}=$s(e.file,e.start),l=e.file.fileName;return`${MI(l,t.getCurrentDirectory(),g=>t.getCanonicalFileName(g))}(${i+1},${s+1}): `+n}return n}var w0e=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(w0e||{}),k0e="\x1B[7m",C0e=" ",jBe="\x1B[0m",LBe="...",C8t=" ",BBe=" ";function qBe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return I.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function K2(e,t){return t+e+jBe}function JBe(e,t,n,i,s,l){let{line:p,character:g}=$s(e,t),{line:m,character:x}=$s(e,t+n),b=$s(e,e.text.length).line,S=m-p>=4,P=(m+1+"").length;S&&(P=Math.max(LBe.length,P));let E="";for(let N=p;N<=m;N++){E+=l.getNewLine(),S&&p+1<N&&N<m-1&&(E+=i+K2(LBe.padStart(P),k0e)+C0e+l.getNewLine(),N=m-1);let F=gF(e,N,0),M=N<b?gF(e,N+1,0):e.text.length,L=e.text.slice(F,M);if(L=L.trimEnd(),L=L.replace(/\t/g," "),E+=i+K2((N+1+"").padStart(P),k0e)+C0e,E+=L+l.getNewLine(),E+=i+K2("".padStart(P),k0e)+C0e,E+=s,N===p){let W=N===m?x:void 0;E+=L.slice(0,g).replace(/\S/g," "),E+=L.slice(g,W).replace(/./g,"~")}else N===m?E+=L.slice(0,x).replace(/./g,"~"):E+=L.replace(/./g,"~");E+=jBe}return E}function pee(e,t,n,i=K2){let{line:s,character:l}=$s(e,t),p=n?MI(e.fileName,n.getCurrentDirectory(),m=>n.getCanonicalFileName(m)):e.fileName,g="";return g+=i(p,"\x1B[96m"),g+=":",g+=i(`${s+1}`,"\x1B[93m"),g+=":",g+=i(`${l+1}`,"\x1B[93m"),g}function P0e(e,t){let n="";for(let i of e){if(i.file){let{file:s,start:l}=i;n+=pee(s,l,t),n+=" - "}if(n+=K2(hr(i),qBe(i.category)),n+=K2(` TS${i.code}: `,"\x1B[90m"),n+=Uh(i.messageText,t.getNewLine()),i.file&&i.code!==y.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=JBe(i.file,i.start,i.length,"",qBe(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(let{file:s,start:l,length:p,messageText:g}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=C8t+pee(s,l,t),n+=JBe(s,l,p,BBe,"\x1B[96m",t)),n+=t.getNewLine(),n+=BBe+Uh(g,t.getNewLine())}n+=t.getNewLine()}return n}function Uh(e,t,n=0){if(Ua(e))return e;if(e===void 0)return"";let i="";if(n){i+=t;for(let s=0;s<n;s++)i+=" "}if(i+=e.messageText,n++,e.next)for(let s of e.next)i+=Uh(s,t,n);return i}function E0e(e,t){return(Ua(e)?t:e.resolutionMode)||t}function zBe(e,t,n){return CW(e,eR(e,t),n)}function fee(e){var t;return tu(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function _ee(e,t,n){return CW(e,t,n)}function CW(e,t,n){if((sl(t.parent)||tu(t.parent)||zh(t.parent))&&fee(t.parent)){let s=rA(t.parent.attributes);if(s)return s}if(t.parent.parent&&jh(t.parent.parent)){let i=rA(t.parent.parent.attributes);if(i)return i}if(n&&SX(n))return WBe(e,t,n)}function WBe(e,t,n){var i;if(!n)return;let s=(i=gg(t.parent))==null?void 0:i.parent;if(s&&zu(s)||Xf(t.parent,!1))return 1;if(_d(gg(t.parent)))return HBe(e,n)?1:99;let l=O3(e,n);return l===1?1:z5(l)||l===200?99:void 0}function rA(e,t){if(!e)return;if(Re(e.elements)!==1){t?.(e,e.token===118?y.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:y.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}let n=e.elements[0];if(Ho(n.name)){if(n.name.text!=="resolution-mode"){t?.(n.name,e.token===118?y.resolution_mode_is_the_only_valid_key_for_type_import_attributes:y.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(Ho(n.value)){if(n.value.text!=="import"&&n.value.text!=="require"){t?.(n.value,y.resolution_mode_should_be_either_require_or_import);return}return n.value.text==="import"?99:1}}}var UBe={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0};function D0e(e){return e.text}var PW={getName:D0e,getMode:(e,t,n)=>_ee(t,e,n)};function dee(e,t,n,i,s){return{nameAndMode:PW,resolve:(l,p)=>Yk(l,e,n,i,s,t,p)}}function O0e(e){return Ua(e)?e:e.fileName}var $Be={getName:O0e,getMode:(e,t,n)=>E0e(e,t&&NW(t,n))};function EW(e,t,n,i,s){return{nameAndMode:$Be,resolve:(l,p)=>Xye(l,e,n,i,t,s,p)}}function XM(e,t,n,i,s,l,p,g){if(e.length===0)return ce;let m=[],x=new Map,b=g(t,n,i,l,p);for(let S of e){let P=b.nameAndMode.getName(S),E=b.nameAndMode.getMode(S,s,n?.commandLine.options||i),N=_3(P,E),F=x.get(N);F||x.set(N,F=b.resolve(P,E)),m.push(F)}return m}var E3="__inferred type names__.ts";function DW(e,t,n){let i=e.configFilePath?Ei(e.configFilePath):t;return gi(i,`__lib_node_modules_lookup_${n}__.ts`)}function mee(e){let t=e.split("."),n=t[1],i=2;for(;t[i]&&t[i]!=="d";)n+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+n}function QS(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function nA(e){return e.pos!==void 0}function D3(e,t){var n,i,s,l;let p=I.checkDefined(e.getSourceFileByPath(t.file)),{kind:g,index:m}=t,x,b,S;switch(g){case 3:let P=eR(p,m);if(S=(i=(n=e.getResolvedModuleFromModuleSpecifier(P,p))==null?void 0:n.resolvedModule)==null?void 0:i.packageId,P.pos===-1)return{file:p,packageId:S,text:P.text};x=yo(p.text,P.pos),b=P.end;break;case 4:({pos:x,end:b}=p.referencedFiles[m]);break;case 5:({pos:x,end:b}=p.typeReferenceDirectives[m]),S=(l=(s=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(p.typeReferenceDirectives[m],p))==null?void 0:s.resolvedTypeReferenceDirective)==null?void 0:l.packageId;break;case 7:({pos:x,end:b}=p.libReferenceDirectives[m]);break;default:return I.assertNever(g)}return{file:p,pos:x,end:b,packageId:S}}function gee(e,t,n,i,s,l,p,g,m,x){if(!e||g?.()||!Rp(e.getRootFileNames(),t))return!1;let b;if(!Rp(e.getProjectReferences(),x,F)||e.getSourceFiles().some(E))return!1;let S=e.getMissingFilePaths();if(S&&Lu(S,s))return!1;let P=e.getCompilerOptions();if(!mX(P,n)||e.resolvedLibReferences&&Lu(e.resolvedLibReferences,(L,W)=>p(W)))return!1;if(P.configFile&&n.configFile)return P.configFile.text===n.configFile.text;return!0;function E(L){return!N(L)||l(L.path)}function N(L){return L.version===i(L.resolvedPath,L.fileName)}function F(L,W,z){return eQ(L,W)&&M(e.getResolvedProjectReferences()[z],L)}function M(L,W){if(L){if(Ta(b,L))return!0;let H=qE(W),X=m(H);return!X||L.commandLine.options.configFile!==X.options.configFile||!Rp(L.commandLine.fileNames,X.fileNames)?!1:((b||(b=[])).push(L),!Ge(L.references,(ne,ae)=>!M(ne,L.commandLine.projectReferences[ae])))}let z=qE(W);return!m(z)}}function Q2(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function YM(e,t,n,i){let s=OW(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function OW(e,t,n,i){let s=Xp(i),l=3<=s&&s<=99||Ox(e);return Wl(e,[".d.mts",".mts",".mjs"])?99:Wl(e,[".d.cts",".cts",".cjs"])?1:l&&Wl(e,[".d.ts",".ts",".tsx",".js",".jsx"])?p():void 0;function p(){let g=d3(t,n,i),m=[];g.failedLookupLocations=m,g.affectingLocations=m;let x=m3(Ei(e),g);return{impliedNodeFormat:x?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:m,packageJsonScope:x}}}var VBe=new Set([y.Cannot_redeclare_block_scoped_variable_0.code,y.A_module_cannot_have_multiple_default_exports.code,y.Another_export_default_is_here.code,y.The_first_export_default_is_here.code,y.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,y.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,y.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,y.constructor_is_a_reserved_word.code,y.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,y.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,y.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,y.Invalid_use_of_0_in_strict_mode.code,y.A_label_is_not_allowed_here.code,y.with_statements_are_not_allowed_in_strict_mode.code,y.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,y.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,y.A_class_declaration_without_the_default_modifier_must_have_a_name.code,y.A_class_member_cannot_have_the_0_keyword.code,y.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,y.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,y.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,y.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,y.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,y.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,y.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,y.A_destructuring_declaration_must_have_an_initializer.code,y.A_get_accessor_cannot_have_parameters.code,y.A_rest_element_cannot_contain_a_binding_pattern.code,y.A_rest_element_cannot_have_a_property_name.code,y.A_rest_element_cannot_have_an_initializer.code,y.A_rest_element_must_be_last_in_a_destructuring_pattern.code,y.A_rest_parameter_cannot_have_an_initializer.code,y.A_rest_parameter_must_be_last_in_a_parameter_list.code,y.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,y.A_return_statement_cannot_be_used_inside_a_class_static_block.code,y.A_set_accessor_cannot_have_rest_parameter.code,y.A_set_accessor_must_have_exactly_one_parameter.code,y.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,y.An_export_declaration_cannot_have_modifiers.code,y.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,y.An_import_declaration_cannot_have_modifiers.code,y.An_object_member_cannot_be_declared_optional.code,y.Argument_of_dynamic_import_cannot_be_spread_element.code,y.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,y.Cannot_redeclare_identifier_0_in_catch_clause.code,y.Catch_clause_variable_cannot_have_an_initializer.code,y.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,y.Classes_can_only_extend_a_single_class.code,y.Classes_may_not_have_a_field_named_constructor.code,y.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,y.Duplicate_label_0.code,y.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,y.for_await_loops_cannot_be_used_inside_a_class_static_block.code,y.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,y.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,y.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,y.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,y.Jump_target_cannot_cross_function_boundary.code,y.Line_terminator_not_permitted_before_arrow.code,y.Modifiers_cannot_appear_here.code,y.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,y.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,y.Private_identifiers_are_not_allowed_outside_class_bodies.code,y.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,y.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,y.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,y.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,y.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,y.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,y.Trailing_comma_not_allowed.code,y.Variable_declaration_list_cannot_be_empty.code,y._0_and_1_operations_cannot_be_mixed_without_parentheses.code,y._0_expected.code,y._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,y._0_list_cannot_be_empty.code,y._0_modifier_already_seen.code,y._0_modifier_cannot_appear_on_a_constructor_declaration.code,y._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,y._0_modifier_cannot_appear_on_a_parameter.code,y._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,y._0_modifier_cannot_be_used_here.code,y._0_modifier_must_precede_1_modifier.code,y._0_declarations_can_only_be_declared_inside_a_block.code,y._0_declarations_must_be_initialized.code,y.extends_clause_already_seen.code,y.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,y.Class_constructor_may_not_be_a_generator.code,y.Class_constructor_may_not_be_an_accessor.code,y.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,y.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,y.Private_field_0_must_be_declared_in_an_enclosing_class.code,y.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function P8t(e,t){return e?zP(e.getCompilerOptions(),t,VY):!1}function E8t(e,t,n,i,s,l){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:l}}function ZM(e,t,n,i,s){var l,p,g,m,x,b,S,P,E,N,F,M,L,W,z,H;let X=cs(e)?E8t(e,t,n,i,s):e,{rootNames:ne,options:ae,configFileParsingDiagnostics:Y,projectReferences:Ee,typeScriptVersion:fe,host:te}=X,{oldProgram:de}=X;X=void 0,e=void 0;for(let tt of Eye)if(ec(ae,tt.name)&&typeof ae[tt.name]=="string")throw new Error(`${tt.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let me=Cu(()=>qa("ignoreDeprecations",y.Invalid_value_for_ignoreDeprecations)),ve,Pe,Oe,ie,Ne,it,ze,ge,Me,Te=N0e(Tu),gt,Tt,xe,nt,pe,He,qe,je,st,jt=typeof ae.maxNodeModuleJsDepth=="number"?ae.maxNodeModuleJsDepth:0,ar=0,Or=new Map,nn=new Map;(l=Fn)==null||l.push(Fn.Phase.Program,"createProgram",{configFilePath:ae.configFilePath,rootDir:ae.rootDir},!0),Qc("beforeProgram");let Ct=te||T0e(ae),pr=IW(Ct),vn=ae.noLib,ta=Cu(()=>Ct.getDefaultLibFileName(ae)),ts=Ct.getDefaultLibLocation?Ct.getDefaultLibLocation():Ei(ta()),Gt=!1,hi=Ct.getCurrentDirectory(),$a=N4(ae),ui=$5(ae,$a),Wn=new Map,Gi,at,It,Cr,wn=Ct.hasInvalidatedResolutions||cd;Ct.resolveModuleNameLiterals?(Cr=Ct.resolveModuleNameLiterals.bind(Ct),It=(p=Ct.getModuleResolutionCache)==null?void 0:p.call(Ct)):Ct.resolveModuleNames?(Cr=(tt,ht,tr,Er,hn,Gn)=>Ct.resolveModuleNames(tt.map(D0e),ht,Gn?.map(D0e),tr,Er,hn).map(ln=>ln?ln.extension!==void 0?{resolvedModule:ln}:{resolvedModule:{...ln,extension:I4(ln.resolvedFileName)}}:UBe),It=(g=Ct.getModuleResolutionCache)==null?void 0:g.call(Ct)):(It=KN(hi,_e,ae),Cr=(tt,ht,tr,Er,hn)=>XM(tt,ht,tr,Er,hn,Ct,It,dee));let Di;if(Ct.resolveTypeReferenceDirectiveReferences)Di=Ct.resolveTypeReferenceDirectiveReferences.bind(Ct);else if(Ct.resolveTypeReferenceDirectives)Di=(tt,ht,tr,Er,hn)=>Ct.resolveTypeReferenceDirectives(tt.map(O0e),ht,tr,Er,hn?.impliedNodeFormat).map(Gn=>({resolvedTypeReferenceDirective:Gn}));else{let tt=rW(hi,_e,void 0,It?.getPackageJsonInfoCache(),It?.optionsToRedirectsKey);Di=(ht,tr,Er,hn,Gn)=>XM(ht,tr,Er,hn,Gn,Ct,tt,EW)}let Pi=Ct.hasInvalidatedLibResolutions||cd,da;if(Ct.resolveLibrary)da=Ct.resolveLibrary.bind(Ct);else{let tt=KN(hi,_e,ae,It?.getPackageJsonInfoCache());da=(ht,tr,Er)=>nW(ht,tr,Er,Ct,tt)}let ks=new Map,no=new Map,Vr=Zl(),_s,ft=new Map,Qt=new Map,he=Ct.useCaseSensitiveFileNames()?new Map:void 0,wt,oe,Ue,pt,vt=!!((m=Ct.useSourceOfProjectReferenceRedirect)!=null&&m.call(Ct))&&!ae.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:$t,fileExists:Qe,directoryExists:Lt}=D8t({compilerHost:Ct,getSymlinkCache:x_,useSourceOfProjectReferenceRedirect:vt,toPath:er,getResolvedProjectReferences:Ps,getSourceOfProjectReferenceRedirect:qf,forEachResolvedProjectReference:Y_}),Rt=Ct.readFile.bind(Ct);(x=Fn)==null||x.push(Fn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!de});let Xt=P8t(de,ae);(b=Fn)==null||b.pop();let ut;if((S=Fn)==null||S.push(Fn.Phase.Program,"tryReuseStructureFromOldProgram",{}),ut=Sr(),(P=Fn)==null||P.pop(),ut!==2){if(ve=[],Pe=[],Ee&&(wt||(wt=Ee.map(yr)),ne.length&&wt?.forEach((tt,ht)=>{if(!tt)return;let tr=tt.commandLine.options.outFile;if(vt){if(tr||hf(tt.commandLine.options)===0)for(let Er of tt.commandLine.fileNames)$e(Er,{kind:1,index:ht})}else if(tr)$e(I0(tr,".d.ts"),{kind:2,index:ht});else if(hf(tt.commandLine.options)===0){let Er=Cu(()=>rC(tt.commandLine,!Ct.useCaseSensitiveFileNames()));for(let hn of tt.commandLine.fileNames)!Wu(hn)&&!il(hn,".json")&&$e(tA(hn,tt.commandLine,!Ct.useCaseSensitiveFileNames(),Er),{kind:2,index:ht})}})),(E=Fn)==null||E.push(Fn.Phase.Program,"processRootFiles",{count:ne.length}),Ge(ne,(tt,ht)=>Wc(tt,!1,!1,{kind:0,index:ht})),(N=Fn)==null||N.pop(),gt??(gt=ne.length?eW(ae,Ct):ce),Tt=GN(),gt.length){(F=Fn)==null||F.push(Fn.Phase.Program,"processTypeReferences",{count:gt.length});let tt=ae.configFilePath?Ei(ae.configFilePath):hi,ht=gi(tt,E3),tr=Mr(gt,ht);for(let Er=0;Er<gt.length;Er++)Tt.set(gt[Er],void 0,tr[Er]),n_(gt[Er],void 0,tr[Er],{kind:8,typeReference:gt[Er],packageId:(L=(M=tr[Er])==null?void 0:M.resolvedTypeReferenceDirective)==null?void 0:L.packageId});(W=Fn)==null||W.pop()}if(ne.length&&!vn){let tt=ta();!ae.lib&&tt?Wc(tt,!0,!1,{kind:6}):Ge(ae.lib,(ht,tr)=>{Wc(Xh(ht),!0,!1,{kind:6,index:tr})})}Oe=ff(ve,Bt).concat(Pe),ve=void 0,Pe=void 0,ze=void 0}if(de&&Ct.onReleaseOldSourceFile){let tt=de.getSourceFiles();for(let ht of tt){let tr=el(ht.resolvedPath);(Xt||!tr||tr.impliedNodeFormat!==ht.impliedNodeFormat||ht.resolvedPath===ht.path&&tr.resolvedPath!==ht.path)&&Ct.onReleaseOldSourceFile(ht,de.getCompilerOptions(),!!el(ht.path),tr)}Ct.getParsedCommandLine||de.forEachResolvedProjectReference(ht=>{gd(ht.sourceFile.path)||Ct.onReleaseOldSourceFile(ht.sourceFile,de.getCompilerOptions(),!1,void 0)})}de&&Ct.onReleaseParsedCommandLine&&W4(de.getProjectReferences(),de.getResolvedProjectReferences(),(tt,ht,tr)=>{let Er=ht?.commandLine.projectReferences[tr]||de.getProjectReferences()[tr],hn=qE(Er);oe?.has(er(hn))||Ct.onReleaseParsedCommandLine(hn,tt,de.getCompilerOptions())}),de=void 0,nt=void 0,He=void 0,je=void 0;let lr={getRootFileNames:()=>ne,getSourceFile:Ro,getSourceFileByPath:el,getSourceFiles:()=>Oe,getMissingFilePaths:()=>Qt,getModuleResolutionCache:()=>It,getFilesByNameMap:()=>ft,getCompilerOptions:()=>ae,getSyntacticDiagnostics:as,getOptionsDiagnostics:ua,getGlobalDiagnostics:sc,getSemanticDiagnostics:Gs,getCachedSemanticDiagnostics:qo,getSuggestionDiagnostics:Et,getDeclarationDiagnostics:hc,getBindAndCheckDiagnostics:jo,getProgramDiagnostics:fr,getTypeChecker:la,getClassifiableNames:Pr,getCommonSourceDirectory:zr,emit:us,getCurrentDirectory:()=>hi,getNodeCount:()=>la().getNodeCount(),getIdentifierCount:()=>la().getIdentifierCount(),getSymbolCount:()=>la().getSymbolCount(),getTypeCount:()=>la().getTypeCount(),getInstantiationCount:()=>la().getInstantiationCount(),getRelationCacheSizes:()=>la().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Te.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>gt,getAutomaticTypeDirectiveResolutions:()=>Tt,isSourceFileFromExternalLibrary:pl,isSourceFileDefaultLibrary:Bl,getModeForUsageLocation:eh,getEmitSyntaxForUsageLocation:Yh,getModeForResolutionAtIndex:Km,getSourceFileFromReference:Dp,getLibFileFromReference:X_,sourceFileToPackageName:no,redirectTargetsMap:Vr,usesUriStyleNodeCoreModules:_s,resolvedModules:pe,resolvedTypeReferenceDirectiveNames:qe,resolvedLibReferences:xe,getProgramDiagnosticsContainer:()=>Te,getResolvedModule:In,getResolvedModuleFromModuleSpecifier:We,getResolvedTypeReferenceDirective:qt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:ke,forEachResolvedModule:$,forEachResolvedTypeReferenceDirective:Ke,getCurrentPackagesMap:()=>st,typesPackageExists:rr,packageBundlesTypes:Le,isEmittedFile:U0,getConfigFileParsingDiagnostics:To,getProjectReferences:Vl,getResolvedProjectReferences:Ps,getProjectReferenceRedirect:yl,getResolvedProjectReferenceToRedirect:Au,getResolvedProjectReferenceByPath:gd,forEachResolvedProjectReference:Y_,isSourceOfProjectReferenceRedirect:Tg,getRedirectReferenceForResolutionFromSourceOfProject:yt,getCompilerOptionsForFile:Bd,getDefaultResolutionModeForFile:jx,getEmitModuleFormatOfFile:H1,getImpliedNodeFormatForEmit:yd,shouldTransformImportCall:Lx,emitBuildInfo:Xs,fileExists:Qe,readFile:Rt,directoryExists:Lt,getSymlinkCache:x_,realpath:(z=Ct.realpath)==null?void 0:z.bind(Ct),useCaseSensitiveFileNames:()=>Ct.useCaseSensitiveFileNames(),getCanonicalFileName:_e,getFileIncludeReasons:()=>Te.getFileReasons(),structureIsReused:ut,writeFile:Is,getGlobalTypingsCacheLocation:Ra(Ct,Ct.getGlobalTypingsCacheLocation)};return $t(),Gt||Qr(),Qc("afterProgram"),R_("Program","beforeProgram","afterProgram"),(H=Fn)==null||H.pop(),lr;function In(tt,ht,tr){var Er;return(Er=pe?.get(tt.path))==null?void 0:Er.get(ht,tr)}function We(tt,ht){return ht??(ht=rn(tt)),I.assertIsDefined(ht,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),In(ht,tt.text,eh(ht,tt))}function qt(tt,ht,tr){var Er;return(Er=qe?.get(tt.path))==null?void 0:Er.get(ht,tr)}function ke(tt,ht){return qt(ht,tt.fileName,G1(tt,ht))}function $(tt,ht){re(pe,tt,ht)}function Ke(tt,ht){re(qe,tt,ht)}function re(tt,ht,tr){var Er;tr?(Er=tt?.get(tr.path))==null||Er.forEach((hn,Gn,ln)=>ht(hn,Gn,ln,tr.path)):tt?.forEach((hn,Gn)=>hn.forEach((ln,Hn,_a)=>ht(ln,Hn,_a,Gn)))}function Ft(){return st||(st=new Map,$(({resolvedModule:tt})=>{tt?.packageId&&st.set(tt.packageId.name,tt.extension===".d.ts"||!!st.get(tt.packageId.name))}),st)}function rr(tt){return Ft().has(sW(tt))}function Le(tt){return!!Ft().get(tt)}function kt(tt){var ht;(ht=tt.resolutionDiagnostics)!=null&&ht.length&&Te.addFileProcessingDiagnostic({kind:2,diagnostics:tt.resolutionDiagnostics})}function dr(tt,ht,tr,Er){if(Ct.resolveModuleNameLiterals||!Ct.resolveModuleNames)return kt(tr);if(!It||Hu(ht))return;let hn=Qa(tt.originalFileName,hi),Gn=Ei(hn),ln=yn(tt),Hn=It.getFromNonRelativeNameCache(ht,Er,Gn,ln);Hn&&kt(Hn)}function kn(tt,ht,tr){var Er,hn;let Gn=Qa(ht.originalFileName,hi),ln=yn(ht);(Er=Fn)==null||Er.push(Fn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Gn}),Qc("beforeResolveModule");let Hn=Cr(tt,Gn,ln,ae,ht,tr);return Qc("afterResolveModule"),R_("ResolveModule","beforeResolveModule","afterResolveModule"),(hn=Fn)==null||hn.pop(),Hn}function Kr(tt,ht,tr){var Er,hn;let Gn=Ua(ht)?void 0:ht,ln=Ua(ht)?ht:Qa(ht.originalFileName,hi),Hn=Gn&&yn(Gn);(Er=Fn)==null||Er.push(Fn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:ln}),Qc("beforeResolveTypeReference");let _a=Di(tt,ln,Hn,ae,Gn,tr);return Qc("afterResolveTypeReference"),R_("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(hn=Fn)==null||hn.pop(),_a}function yn(tt){let ht=Au(tt.originalFileName);if(ht||!Wu(tt.originalFileName))return ht;let tr=yt(tt.path);if(tr)return tr;if(!Ct.realpath||!ae.preserveSymlinks||!tt.originalFileName.includes(Bv))return;let Er=er(Ct.realpath(tt.originalFileName));return Er===tt.path?void 0:yt(Er)}function yt(tt){let ht=qf(tt);if(Ua(ht))return Au(ht);if(ht)return Y_(tr=>{let Er=tr.commandLine.options.outFile;if(Er)return er(Er)===tt?tr:void 0})}function Bt(tt,ht){return mc(cr(tt),cr(ht))}function cr(tt){if(am(ts,tt.fileName,!1)){let ht=gu(tt.fileName);if(ht==="lib.d.ts"||ht==="lib.es6.d.ts")return 0;let tr=a2(kP(ht,"lib."),".d.ts"),Er=jz.indexOf(tr);if(Er!==-1)return Er+1}return jz.length+2}function er(tt){return Ec(tt,hi,_e)}function zr(){let tt=Te.getCommonSourceDirectory();if(tt!==void 0)return tt;let ht=Cn(Oe,tr=>k2(tr,lr));return tt=C3(ae,()=>Bi(ht,tr=>tr.isDeclarationFile?void 0:tr.fileName),hi,_e,tr=>gr(ht,tr)),Te.setCommonSourceDirectory(tt),tt}function Pr(){var tt;if(!it){la(),it=new Set;for(let ht of Oe)(tt=ht.classifiableNames)==null||tt.forEach(tr=>it.add(tr))}return it}function or(tt,ht){return Wr({entries:tt,containingFile:ht,containingSourceFile:ht,redirectedReference:yn(ht),nameAndModeGetter:PW,resolutionWorker:kn,getResolutionFromOldProgram:(tr,Er)=>de?.getResolvedModule(ht,tr,Er),getResolved:WP,canReuseResolutionsInFile:()=>ht===de?.getSourceFile(ht.fileName)&&!wn(ht.path),resolveToOwnAmbientModule:!0})}function Mr(tt,ht){let tr=Ua(ht)?void 0:ht;return Wr({entries:tt,containingFile:ht,containingSourceFile:tr,redirectedReference:tr&&yn(tr),nameAndModeGetter:$Be,resolutionWorker:Kr,getResolutionFromOldProgram:(Er,hn)=>{var Gn;return tr?de?.getResolvedTypeReferenceDirective(tr,Er,hn):(Gn=de?.getAutomaticTypeDirectiveResolutions())==null?void 0:Gn.get(Er,hn)},getResolved:Eq,canReuseResolutionsInFile:()=>tr?tr===de?.getSourceFile(tr.fileName)&&!wn(tr.path):!wn(er(ht))})}function Wr({entries:tt,containingFile:ht,containingSourceFile:tr,redirectedReference:Er,nameAndModeGetter:hn,resolutionWorker:Gn,getResolutionFromOldProgram:ln,getResolved:Hn,canReuseResolutionsInFile:_a,resolveToOwnAmbientModule:rs}){if(!tt.length)return ce;if(ut===0&&(!rs||!tr.ambientModuleNames.length))return Gn(tt,ht,void 0);let Ii,Ia,Es,tp,qd=_a();for(let ed=0;ed<tt.length;ed++){let Ly=tt[ed];if(qd){let wg=hn.getName(Ly),By=hn.getMode(Ly,tr,Er?.commandLine.options??ae),K1=ln(wg,By),qy=K1&&Hn(K1);if(qy){Ex(ae,Ct)&&es(Ct,Gn===kn?qy.packageId?y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:qy.packageId?y.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:y.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,wg,tr?Qa(tr.originalFileName,hi):ht,qy.resolvedFileName,qy.packageId&&TS(qy.packageId)),(Es??(Es=new Array(tt.length)))[ed]=K1,(tp??(tp=[])).push(Ly);continue}}if(rs){let wg=hn.getName(Ly);if(Ta(tr.ambientModuleNames,wg)){Ex(ae,Ct)&&es(Ct,y.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,wg,Qa(tr.originalFileName,hi)),(Es??(Es=new Array(tt.length)))[ed]=UBe;continue}}(Ii??(Ii=[])).push(Ly),(Ia??(Ia=[])).push(ed)}if(!Ii)return Es;let Jd=Gn(Ii,ht,tp);return Es?(Jd.forEach((ed,Ly)=>Es[Ia[Ly]]=ed),Es):Jd}function $r(){return!W4(de.getProjectReferences(),de.getResolvedProjectReferences(),(tt,ht,tr)=>{let Er=(ht?ht.commandLine.projectReferences:Ee)[tr],hn=yr(Er);return tt?!hn||hn.sourceFile!==tt.sourceFile||!Rp(tt.commandLine.fileNames,hn.commandLine.fileNames):hn!==void 0},(tt,ht)=>{let tr=ht?gd(ht.sourceFile.path).commandLine.projectReferences:Ee;return!Rp(tt,tr,eQ)})}function Sr(){var tt;if(!de)return 0;let ht=de.getCompilerOptions();if(Cq(ht,ae))return 0;let tr=de.getRootFileNames();if(!Rp(tr,ne)||!$r())return 0;Ee&&(wt=Ee.map(yr));let Er=[],hn=[];if(ut=2,Lu(de.getMissingFilePaths(),Ii=>Ct.fileExists(Ii)))return 0;let Gn=de.getSourceFiles(),ln;(Ii=>{Ii[Ii.Exists=0]="Exists",Ii[Ii.Modified=1]="Modified"})(ln||(ln={}));let Hn=new Map;for(let Ii of Gn){let Ia=Fs(Ii.fileName,It,Ct,ae),Es=Ct.getSourceFileByPath?Ct.getSourceFileByPath(Ii.fileName,Ii.resolvedPath,Ia,void 0,Xt):Ct.getSourceFile(Ii.fileName,Ia,void 0,Xt);if(!Es)return 0;Es.packageJsonLocations=(tt=Ia.packageJsonLocations)!=null&&tt.length?Ia.packageJsonLocations:void 0,Es.packageJsonScope=Ia.packageJsonScope,I.assert(!Es.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let tp;if(Ii.redirectInfo){if(Es!==Ii.redirectInfo.unredirected)return 0;tp=!1,Es=Ii}else if(de.redirectTargetsMap.has(Ii.path)){if(Es!==Ii)return 0;tp=!1}else tp=Es!==Ii;Es.path=Ii.path,Es.originalFileName=Ii.originalFileName,Es.resolvedPath=Ii.resolvedPath,Es.fileName=Ii.fileName;let qd=de.sourceFileToPackageName.get(Ii.path);if(qd!==void 0){let Jd=Hn.get(qd),ed=tp?1:0;if(Jd!==void 0&&ed===1||Jd===1)return 0;Hn.set(qd,ed)}tp?(Ii.impliedNodeFormat!==Es.impliedNodeFormat?ut=1:Rp(Ii.libReferenceDirectives,Es.libReferenceDirectives,El)?Ii.hasNoDefaultLib!==Es.hasNoDefaultLib?ut=1:Rp(Ii.referencedFiles,Es.referencedFiles,El)?(Gl(Es),Rp(Ii.imports,Es.imports,Hl)&&Rp(Ii.moduleAugmentations,Es.moduleAugmentations,Hl)?(Ii.flags&12582912)!==(Es.flags&12582912)?ut=1:Rp(Ii.typeReferenceDirectives,Es.typeReferenceDirectives,El)||(ut=1):ut=1):ut=1:ut=1,hn.push(Es)):wn(Ii.path)&&(ut=1,hn.push(Es)),Er.push(Es)}if(ut!==2)return ut;for(let Ii of hn){let Ia=GBe(Ii),Es=or(Ia,Ii);(He??(He=new Map)).set(Ii.path,Es);let tp=Bd(Ii);rQ(Ia,Es,wg=>de.getResolvedModule(Ii,wg.text,CW(Ii,wg,tp)),qde)&&(ut=1);let Jd=Ii.typeReferenceDirectives,ed=Mr(Jd,Ii);(je??(je=new Map)).set(Ii.path,ed),rQ(Jd,ed,wg=>de.getResolvedTypeReferenceDirective(Ii,O0e(wg),G1(wg,Ii)),Jde)&&(ut=1)}if(ut!==2)return ut;if(Lde(ht,ae)||de.resolvedLibReferences&&Lu(de.resolvedLibReferences,(Ii,Ia)=>hd(Ia).actual!==Ii.actual))return 1;if(Ct.hasChangedAutomaticTypeDirectiveNames){if(Ct.hasChangedAutomaticTypeDirectiveNames())return 1}else if(gt=eW(ae,Ct),!Rp(de.getAutomaticTypeDirectiveNames(),gt))return 1;Qt=de.getMissingFilePaths(),I.assert(Er.length===de.getSourceFiles().length);for(let Ii of Er)ft.set(Ii.path,Ii);de.getFilesByNameMap().forEach((Ii,Ia)=>{if(!Ii){ft.set(Ia,Ii);return}if(Ii.path===Ia){de.isSourceFileFromExternalLibrary(Ii)&&nn.set(Ii.path,!0);return}ft.set(Ia,ft.get(Ii.path))});let rs=ht.configFile&&ht.configFile===ae.configFile||!ht.configFile&&!ae.configFile&&!zP(ht,ae,xg);return Te.reuseStateFromOldProgram(de.getProgramDiagnosticsContainer(),rs),Gt=rs,Oe=Er,gt=de.getAutomaticTypeDirectiveNames(),Tt=de.getAutomaticTypeDirectiveResolutions(),no=de.sourceFileToPackageName,Vr=de.redirectTargetsMap,_s=de.usesUriStyleNodeCoreModules,pe=de.resolvedModules,qe=de.resolvedTypeReferenceDirectiveNames,xe=de.resolvedLibReferences,st=de.getCurrentPackagesMap(),2}function ji(tt){return{getCanonicalFileName:_e,getCommonSourceDirectory:lr.getCommonSourceDirectory,getCompilerOptions:lr.getCompilerOptions,getCurrentDirectory:()=>hi,getSourceFile:lr.getSourceFile,getSourceFileByPath:lr.getSourceFileByPath,getSourceFiles:lr.getSourceFiles,isSourceFileFromExternalLibrary:pl,getResolvedProjectReferenceToRedirect:Au,getProjectReferenceRedirect:yl,isSourceOfProjectReferenceRedirect:Tg,getSymlinkCache:x_,writeFile:tt||Is,isEmitBlocked:lu,shouldTransformImportCall:Lx,getEmitModuleFormatOfFile:H1,getDefaultResolutionModeForFile:jx,getModeForResolutionAtIndex:Km,readFile:ht=>Ct.readFile(ht),fileExists:ht=>{let tr=er(ht);return el(tr)?!0:Qt.has(tr)?!1:Ct.fileExists(ht)},realpath:Ra(Ct,Ct.realpath),useCaseSensitiveFileNames:()=>Ct.useCaseSensitiveFileNames(),getBuildInfo:()=>{var ht;return(ht=lr.getBuildInfo)==null?void 0:ht.call(lr)},getSourceFileFromReference:(ht,tr)=>lr.getSourceFileFromReference(ht,tr),redirectTargetsMap:Vr,getFileIncludeReasons:lr.getFileIncludeReasons,createHash:Ra(Ct,Ct.createHash),getModuleResolutionCache:()=>lr.getModuleResolutionCache(),trace:Ra(Ct,Ct.trace),getGlobalTypingsCacheLocation:lr.getGlobalTypingsCacheLocation}}function Is(tt,ht,tr,Er,hn,Gn){Ct.writeFile(tt,ht,tr,Er,hn,Gn)}function Xs(tt){var ht,tr;(ht=Fn)==null||ht.push(Fn.Phase.Emit,"emitBuildInfo",{},!0),Qc("beforeEmit");let Er=eee(g0e,ji(tt),void 0,p0e,!1,!0);return Qc("afterEmit"),R_("Emit","beforeEmit","afterEmit"),(tr=Fn)==null||tr.pop(),Er}function Ps(){return wt}function Vl(){return Ee}function pl(tt){return!!nn.get(tt.path)}function Bl(tt){if(!tt.isDeclarationFile)return!1;if(tt.hasNoDefaultLib)return!0;if(ae.noLib)return!1;let ht=Ct.useCaseSensitiveFileNames()?fv:cg;return ae.lib?Pt(ae.lib,tr=>{let Er=xe.get(tr);return!!Er&&ht(tt.fileName,Er.actual)}):ht(tt.fileName,ta())}function la(){return Ne||(Ne=Tve(lr))}function us(tt,ht,tr,Er,hn,Gn,ln){var Hn,_a;(Hn=Fn)==null||Hn.push(Fn.Phase.Emit,"emit",{path:tt?.path},!0);let rs=Cl(()=>Kc(lr,tt,ht,tr,Er,hn,Gn,ln));return(_a=Fn)==null||_a.pop(),rs}function lu(tt){return Wn.has(er(tt))}function Kc(tt,ht,tr,Er,hn,Gn,ln,Hn){if(!ln){let Ia=yee(tt,ht,tr,Er);if(Ia)return Ia}let _a=la(),rs=_a.getEmitResolver(ae.outFile?void 0:ht,Er,ZZ(hn,ln));Qc("beforeEmit");let Ii=_a.runWithCancellationToken(Er,()=>eee(rs,ji(tr),ht,f0e(ae,Gn,hn),hn,!1,ln,Hn));return Qc("afterEmit"),R_("Emit","beforeEmit","afterEmit"),Ii}function Ro(tt){return el(er(tt))}function el(tt){return ft.get(tt)||void 0}function Q_(tt,ht,tr){return VO(tt?ht(tt,tr):li(lr.getSourceFiles(),Er=>(tr&&tr.throwIfCancellationRequested(),ht(Er,tr))))}function as(tt,ht){return Q_(tt,uu,ht)}function Gs(tt,ht,tr){return Q_(tt,(Er,hn)=>hp(Er,hn,tr),ht)}function qo(tt){return ge?.get(tt.path)}function jo(tt,ht){return tl(tt,ht,void 0)}function fr(tt){var ht;if(kN(tt,ae,lr))return ce;let tr=Te.getCombinedDiagnostics(lr).getDiagnostics(tt.fileName);return(ht=tt.commentDirectives)!=null&&ht.length?Xe(tt,tt.commentDirectives,tr).diagnostics:tr}function hc(tt,ht){return Q_(tt,an,ht)}function uu(tt){return Nf(tt)?(tt.additionalSyntacticDiagnostics||(tt.additionalSyntacticDiagnostics=cn(tt)),ya(tt.additionalSyntacticDiagnostics,tt.parseDiagnostics)):tt.parseDiagnostics}function Cl(tt){try{return tt()}catch(ht){throw ht instanceof DP&&(Ne=void 0),ht}}function hp(tt,ht,tr){return ya(AW(tl(tt,ht,tr),ae),fr(tt))}function tl(tt,ht,tr){if(tr)return Pl(tt,ht,tr);let Er=ge?.get(tt.path);return Er||(ge??(ge=new Map)).set(tt.path,Er=Pl(tt,ht)),Er}function Pl(tt,ht,tr){return Cl(()=>{if(kN(tt,ae,lr))return ce;let Er=la();I.assert(!!tt.bindDiagnostics);let hn=tt.scriptKind===1||tt.scriptKind===2,Gn=e4(tt,ae.checkJs),ln=hn&&F4(tt,ae),Hn=tt.bindDiagnostics,_a=Er.getDiagnostics(tt,ht,tr);return Gn&&(Hn=Cn(Hn,rs=>VBe.has(rs.code)),_a=Cn(_a,rs=>VBe.has(rs.code))),B(tt,!Gn,!!tr,Hn,_a,ln?tt.jsDocDiagnostics:void 0)})}function B(tt,ht,tr,...Er){var hn;let Gn=js(Er);if(!ht||!((hn=tt.commentDirectives)!=null&&hn.length))return Gn;let{diagnostics:ln,directives:Hn}=Xe(tt,tt.commentDirectives,Gn);if(tr)return ln;for(let _a of Hn.getUnusedExpectations())ln.push(ime(tt,_a.range,y.Unused_ts_expect_error_directive));return ln}function Xe(tt,ht,tr){let Er=Ude(tt,ht);return{diagnostics:tr.filter(Gn=>ur(Gn,Er)===-1),directives:Er}}function Et(tt,ht){return Cl(()=>la().getSuggestionDiagnostics(tt,ht))}function ur(tt,ht){let{file:tr,start:Er}=tt;if(!tr)return-1;let hn=hv(tr),Gn=UO(hn,Er).line-1;for(;Gn>=0;){if(ht.markUsed(Gn))return Gn;let ln=tr.text.slice(hn[Gn],hn[Gn+1]).trim();if(ln!==""&&!/^\s*\/\/.*$/.test(ln))return-1;Gn--}return-1}function cn(tt){return Cl(()=>{let ht=[];return tr(tt,tt),NE(tt,tr,Er),ht;function tr(Hn,_a){switch(_a.kind){case 169:case 172:case 174:if(_a.questionToken===Hn)return ht.push(ln(Hn,y.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(_a.type===Hn)return ht.push(ln(Hn,y.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Hn.kind){case 273:if(Hn.isTypeOnly)return ht.push(ln(_a,y._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Hn.isTypeOnly)return ht.push(ln(Hn,y._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Hn.isTypeOnly)return ht.push(ln(Hn,y._0_declarations_can_only_be_used_in_TypeScript_files,bf(Hn)?"import...type":"export...type")),"skip";break;case 271:return ht.push(ln(Hn,y.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Hn.isExportEquals)return ht.push(ln(Hn,y.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Hn.token===119)return ht.push(ln(Hn,y.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let Ii=to(120);return I.assertIsDefined(Ii),ht.push(ln(Hn,y._0_declarations_can_only_be_used_in_TypeScript_files,Ii)),"skip";case 267:let Ia=Hn.flags&32?to(145):to(144);return I.assertIsDefined(Ia),ht.push(ln(Hn,y._0_declarations_can_only_be_used_in_TypeScript_files,Ia)),"skip";case 265:return ht.push(ln(Hn,y.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Hn.body?void 0:(ht.push(ln(Hn,y.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Es=I.checkDefined(to(94));return ht.push(ln(Hn,y._0_declarations_can_only_be_used_in_TypeScript_files,Es)),"skip";case 235:return ht.push(ln(Hn,y.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return ht.push(ln(Hn.type,y.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return ht.push(ln(Hn.type,y.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:I.fail()}}function Er(Hn,_a){if(FY(_a)){let rs=Ir(_a.modifiers,qu);rs&&ht.push(ln(rs,y.Decorators_are_not_valid_here))}else if(U2(_a)&&_a.modifiers){let rs=Va(_a.modifiers,qu);if(rs>=0){if(Da(_a)&&!ae.experimentalDecorators)ht.push(ln(_a.modifiers[rs],y.Decorators_are_not_valid_here));else if(bu(_a)){let Ii=Va(_a.modifiers,vE);if(Ii>=0){let Ia=Va(_a.modifiers,mz);if(rs>Ii&&Ia>=0&&rs<Ia)ht.push(ln(_a.modifiers[rs],y.Decorators_are_not_valid_here));else if(Ii>=0&&rs<Ii){let Es=Va(_a.modifiers,qu,Ii);Es>=0&&ht.push(Hs(ln(_a.modifiers[Es],y.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),ln(_a.modifiers[rs],y.Decorator_used_before_export_here)))}}}}}switch(_a.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Hn===_a.typeParameters)return ht.push(Gn(Hn,y.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Hn===_a.modifiers)return hn(_a.modifiers,_a.kind===243),"skip";break;case 172:if(Hn===_a.modifiers){for(let rs of Hn)oo(rs)&&rs.kind!==126&&rs.kind!==129&&ht.push(ln(rs,y.The_0_modifier_can_only_be_used_in_TypeScript_files,to(rs.kind)));return"skip"}break;case 169:if(Hn===_a.modifiers&&Pt(Hn,oo))return ht.push(Gn(Hn,y.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Hn===_a.typeArguments)return ht.push(Gn(Hn,y.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function hn(Hn,_a){for(let rs of Hn)switch(rs.kind){case 87:if(_a)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:ht.push(ln(rs,y.The_0_modifier_can_only_be_used_in_TypeScript_files,to(rs.kind)));break;case 126:case 95:case 90:case 129:}}function Gn(Hn,_a,...rs){let Ii=Hn.pos;return Eu(tt,Ii,Hn.end-Ii,_a,...rs)}function ln(Hn,_a,...rs){return om(tt,Hn,_a,...rs)}})}function wi(tt,ht){let tr=Me?.get(tt.path);return tr||(Me??(Me=new Map)).set(tt.path,tr=Bn(tt,ht)),tr}function Bn(tt,ht){return Cl(()=>{let tr=la().getEmitResolver(tt,ht);return u0e(ji(Ko),tr,tt)||ce})}function an(tt,ht){return tt.isDeclarationFile?ce:wi(tt,ht)}function ua(){return VO(ya(Te.getCombinedDiagnostics(lr).getGlobalDiagnostics(),ma()))}function ma(){if(!ae.configFile)return ce;let tt=Te.getCombinedDiagnostics(lr).getDiagnostics(ae.configFile.fileName);return Y_(ht=>{tt=ya(tt,Te.getCombinedDiagnostics(lr).getDiagnostics(ht.sourceFile.fileName))}),tt}function sc(){return ne.length?VO(la().getGlobalDiagnostics().slice()):ce}function To(){return Y||ce}function Wc(tt,ht,tr,Er){Bf(Zs(tt),ht,tr,void 0,Er)}function El(tt,ht){return tt.fileName===ht.fileName}function Hl(tt,ht){return tt.kind===80?ht.kind===80&&tt.escapedText===ht.escapedText:ht.kind===11&&tt.text===ht.text}function Fc(tt,ht){let tr=j.createStringLiteral(tt),Er=j.createImportDeclaration(void 0,void 0,tr);return jk(Er,2),Xo(tr,Er),Xo(Er,ht),tr.flags&=-17,Er.flags&=-17,tr}function Gl(tt){if(tt.imports)return;let ht=Nf(tt),tr=Du(tt),Er,hn,Gn;if(ht||!tt.isDeclarationFile&&(zm(ae)||Du(tt))){ae.importHelpers&&(Er=[Fc(lx,tt)]);let Hn=LJ(W5(ae,tt),ae);Hn&&(Er||(Er=[])).push(Fc(Hn,tt))}for(let Hn of tt.statements)ln(Hn,!1);(tt.flags&4194304||ht)&&az(tt,!0,!0,(Hn,_a)=>{IS(Hn,!1),Er=Zr(Er,_a)}),tt.imports=Er||ce,tt.moduleAugmentations=hn||ce,tt.ambientModuleNames=Gn||ce;return;function ln(Hn,_a){if($F(Hn)){let rs=KP(Hn);rs&&vo(rs)&&rs.text&&(!_a||!Hu(rs.text))&&(IS(Hn,!1),Er=Zr(Er,rs),!_s&&ar===0&&!tt.isDeclarationFile&&(La(rs.text,"node:")&&!iz.has(rs.text)?_s=!0:_s===void 0&&ehe.has(rs.text)&&(_s=!1)))}else if(cu(Hn)&&df(Hn)&&(_a||Ai(Hn,128)||tt.isDeclarationFile)){Hn.name.parent=Hn;let rs=lm(Hn.name);if(tr||_a&&!Hu(rs))(hn||(hn=[])).push(Hn.name);else if(!_a){tt.isDeclarationFile&&(Gn||(Gn=[])).push(rs);let Ii=Hn.body;if(Ii)for(let Ia of Ii.statements)ln(Ia,!0)}}}}function X_(tt){var ht;let tr=KX(tt),Er=tr&&((ht=xe?.get(tr))==null?void 0:ht.actual);return Er!==void 0?Ro(Er):void 0}function Dp(tt,ht){return Ld(oee(ht.fileName,tt.fileName),Ro)}function Ld(tt,ht,tr,Er){if(zO(tt)){let hn=Ct.getCanonicalFileName(tt);if(!ae.allowNonTsExtensions&&!Ge(js(ui),ln=>il(hn,ln))){tr&&(Iv(hn)?tr(y.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,tt):tr(y.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,tt,"'"+js($a).join("', '")+"'"));return}let Gn=ht(tt);if(tr)if(Gn)QS(Er)&&hn===Ct.getCanonicalFileName(el(Er.file).fileName)&&tr(y.A_file_cannot_have_a_reference_to_itself);else{let ln=yl(tt);ln?tr(y.Output_file_0_has_not_been_built_from_source_file_1,ln,tt):tr(y.File_0_not_found,tt)}return Gn}else{let hn=ae.allowNonTsExtensions&&ht(tt);if(hn)return hn;if(tr&&ae.allowNonTsExtensions){tr(y.File_0_not_found,tt);return}let Gn=Ge($a[0],ln=>ht(tt+ln));return tr&&!Gn&&tr(y.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,tt,"'"+js($a).join("', '")+"'"),Gn}}function Bf(tt,ht,tr,Er,hn){Ld(tt,Gn=>za(Gn,ht,tr,hn,Er),(Gn,...ln)=>U(void 0,hn,Gn,ln),hn)}function $e(tt,ht){return Bf(tt,!1,!1,void 0,ht)}function nr(tt,ht,tr){!QS(tr)&&Pt(Te.getFileReasons().get(ht.path),QS)?U(ht,tr,y.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[ht.fileName,tt]):U(ht,tr,y.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[tt,ht.fileName])}function Nn(tt,ht,tr,Er,hn,Gn,ln){var Hn;let _a=US.createRedirectedSourceFile({redirectTarget:tt,unredirected:ht});return _a.fileName=tr,_a.path=Er,_a.resolvedPath=hn,_a.originalFileName=Gn,_a.packageJsonLocations=(Hn=ln.packageJsonLocations)!=null&&Hn.length?ln.packageJsonLocations:void 0,_a.packageJsonScope=ln.packageJsonScope,nn.set(Er,ar>0),_a}function za(tt,ht,tr,Er,hn){var Gn,ln;(Gn=Fn)==null||Gn.push(Fn.Phase.Program,"findSourceFile",{fileName:tt,isDefaultLib:ht||void 0,fileIncludeKind:AI[Er.kind]});let Hn=Io(tt,ht,tr,Er,hn);return(ln=Fn)==null||ln.pop(),Hn}function Fs(tt,ht,tr,Er){let hn=OW(Qa(tt,hi),ht?.getPackageJsonInfoCache(),tr,Er),Gn=Po(Er),ln=L5(Er);return typeof hn=="object"?{...hn,languageVersion:Gn,setExternalModuleIndicator:ln,jsDocParsingMode:tr.jsDocParsingMode}:{languageVersion:Gn,impliedNodeFormat:hn,setExternalModuleIndicator:ln,jsDocParsingMode:tr.jsDocParsingMode}}function Io(tt,ht,tr,Er,hn){var Gn;let ln=er(tt);if(vt){let Ia=qf(ln);if(!Ia&&Ct.realpath&&ae.preserveSymlinks&&Wu(tt)&&tt.includes(Bv)){let Es=er(Ct.realpath(tt));Es!==ln&&(Ia=qf(Es))}if(Ia){let Es=Ua(Ia)?za(Ia,ht,tr,Er,hn):void 0;return Es&&Kl(Es,ln,tt,void 0),Es}}let Hn=tt;if(ft.has(ln)){let Ia=ft.get(ln),Es=Jc(Ia||void 0,Er,!0);if(Ia&&Es&&ae.forceConsistentCasingInFileNames!==!1){let tp=Ia.fileName;er(tp)!==er(tt)&&(tt=yl(tt)||tt);let Jd=vK(tp,hi),ed=vK(tt,hi);Jd!==ed&&nr(tt,Ia,Er)}return Ia&&nn.get(Ia.path)&&ar===0?(nn.set(Ia.path,!1),ae.noResolve||(Qh(Ia,ht),Jv(Ia)),ae.noLib||zv(Ia),Or.set(Ia.path,!1),xt(Ia)):Ia&&Or.get(Ia.path)&&ar<jt&&(Or.set(Ia.path,!1),xt(Ia)),Ia||void 0}let _a;if(!vt){let Ia=ru(tt);if(Ia){if(Ia.commandLine.options.outFile)return;let Es=Nu(Ia,tt);tt=Es,_a=er(Es)}}let rs=Fs(tt,It,Ct,ae),Ii=Ct.getSourceFile(tt,rs,Ia=>U(void 0,Er,y.Cannot_read_file_0_Colon_1,[tt,Ia]),Xt);if(hn){let Ia=TS(hn),Es=ks.get(Ia);if(Es){let tp=Nn(Es,Ii,tt,ln,er(tt),Hn,rs);return Vr.add(Es.path,tt),Kl(tp,ln,tt,_a),Jc(tp,Er,!1),no.set(ln,Oq(hn)),Pe.push(tp),tp}else Ii&&(ks.set(Ia,Ii),no.set(ln,Oq(hn)))}if(Kl(Ii,ln,tt,_a),Ii){if(nn.set(ln,ar>0),Ii.fileName=tt,Ii.path=ln,Ii.resolvedPath=er(tt),Ii.originalFileName=Hn,Ii.packageJsonLocations=(Gn=rs.packageJsonLocations)!=null&&Gn.length?rs.packageJsonLocations:void 0,Ii.packageJsonScope=rs.packageJsonScope,Jc(Ii,Er,!1),Ct.useCaseSensitiveFileNames()){let Ia=wy(ln),Es=he.get(Ia);Es?nr(tt,Es,Er):he.set(Ia,Ii)}vn=vn||Ii.hasNoDefaultLib&&!tr,ae.noResolve||(Qh(Ii,ht),Jv(Ii)),ae.noLib||zv(Ii),xt(Ii),ht?ve.push(Ii):Pe.push(Ii),(ze??(ze=new Set)).add(Ii.path)}return Ii}function Jc(tt,ht,tr){return tt&&(!tr||!QS(ht)||!ze?.has(ht.file))?(Te.getFileReasons().add(tt.path,ht),!0):!1}function Kl(tt,ht,tr,Er){Er?(hl(tr,Er,tt),hl(tr,ht,tt||!1)):hl(tr,ht,tt)}function hl(tt,ht,tr){ft.set(ht,tr),tr!==void 0?Qt.delete(ht):Qt.set(ht,tt)}function yl(tt){let ht=ru(tt);return ht&&Nu(ht,tt)}function ru(tt){if(!(!wt||!wt.length||Wu(tt)||il(tt,".json")))return Au(tt)}function Nu(tt,ht){let tr=tt.commandLine.options.outFile;return tr?I0(tr,".d.ts"):tA(ht,tt.commandLine,!Ct.useCaseSensitiveFileNames())}function Au(tt){Ue===void 0&&(Ue=new Map,Y_(tr=>{er(ae.configFilePath)!==tr.sourceFile.path&&tr.commandLine.fileNames.forEach(Er=>Ue.set(er(Er),tr.sourceFile.path))}));let ht=Ue.get(er(tt));return ht&&gd(ht)}function Y_(tt){return QX(wt,tt)}function qf(tt){if(Wu(tt))return pt===void 0&&(pt=new Map,Y_(ht=>{let tr=ht.commandLine.options.outFile;if(tr){let Er=I0(tr,".d.ts");pt.set(er(Er),!0)}else{let Er=Cu(()=>rC(ht.commandLine,!Ct.useCaseSensitiveFileNames()));Ge(ht.commandLine.fileNames,hn=>{if(!Wu(hn)&&!il(hn,".json")){let Gn=tA(hn,ht.commandLine,!Ct.useCaseSensitiveFileNames(),Er);pt.set(er(Gn),hn)}})}})),pt.get(tt)}function Tg(tt){return vt&&!!Au(tt)}function gd(tt){if(oe)return oe.get(tt)||void 0}function Qh(tt,ht){Ge(tt.referencedFiles,(tr,Er)=>{Bf(oee(tr.fileName,tt.fileName),ht,!1,void 0,{kind:4,file:tt.path,index:Er})})}function Jv(tt){let ht=tt.typeReferenceDirectives;if(!ht.length)return;let tr=je?.get(tt.path)||Mr(ht,tt),Er=GN();(qe??(qe=new Map)).set(tt.path,Er);for(let hn=0;hn<ht.length;hn++){let Gn=tt.typeReferenceDirectives[hn],ln=tr[hn],Hn=Gn.fileName,_a=G1(Gn,tt);Er.set(Hn,_a,ln),n_(Hn,_a,ln,{kind:5,file:tt.path,index:hn})}}function Bd(tt){var ht;return((ht=yn(tt))==null?void 0:ht.commandLine.options)||ae}function n_(tt,ht,tr,Er){var hn,Gn;(hn=Fn)==null||hn.push(Fn.Phase.Program,"processTypeReferenceDirective",{directive:tt,hasResolved:!!tr.resolvedTypeReferenceDirective,refKind:Er.kind,refPath:QS(Er)?Er.file:void 0}),xf(tt,ht,tr,Er),(Gn=Fn)==null||Gn.pop()}function xf(tt,ht,tr,Er){kt(tr);let{resolvedTypeReferenceDirective:hn}=tr;hn?(hn.isExternalLibraryImport&&ar++,Bf(hn.resolvedFileName,!1,!1,hn.packageId,Er),hn.isExternalLibraryImport&&ar--):U(void 0,Er,y.Cannot_find_type_definition_file_for_0,[tt])}function Xh(tt){let ht=xe?.get(tt);if(ht)return ht.actual;let tr=hd(tt);return(xe??(xe=new Map)).set(tt,tr),tr.actual}function hd(tt){var ht,tr,Er,hn,Gn;let ln=nt?.get(tt);if(ln)return ln;if(ae.libReplacement===!1){let Ia={resolution:{resolvedModule:void 0},actual:gi(ts,tt)};return(nt??(nt=new Map)).set(tt,Ia),Ia}if(ut!==0&&de&&!Pi(tt)){let Ia=(ht=de.resolvedLibReferences)==null?void 0:ht.get(tt);if(Ia){if(Ia.resolution&&Ex(ae,Ct)){let Es=mee(tt),tp=DW(ae,hi,tt);es(Ct,Ia.resolution.resolvedModule?Ia.resolution.resolvedModule.packageId?y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Es,Qa(tp,hi),(tr=Ia.resolution.resolvedModule)==null?void 0:tr.resolvedFileName,((Er=Ia.resolution.resolvedModule)==null?void 0:Er.packageId)&&TS(Ia.resolution.resolvedModule.packageId))}return(nt??(nt=new Map)).set(tt,Ia),Ia}}let Hn=mee(tt),_a=DW(ae,hi,tt);(hn=Fn)==null||hn.push(Fn.Phase.Program,"resolveLibrary",{resolveFrom:_a}),Qc("beforeResolveLibrary");let rs=da(Hn,_a,ae,tt);Qc("afterResolveLibrary"),R_("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(Gn=Fn)==null||Gn.pop();let Ii={resolution:rs,actual:rs.resolvedModule?rs.resolvedModule.resolvedFileName:gi(ts,tt)};return(nt??(nt=new Map)).set(tt,Ii),Ii}function zv(tt){Ge(tt.libReferenceDirectives,(ht,tr)=>{let Er=KX(ht);Er?Wc(Xh(Er),!0,!0,{kind:7,file:tt.path,index:tr}):Te.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:tt.path,index:tr}})})}function _e(tt){return Ct.getCanonicalFileName(tt)}function xt(tt){if(Gl(tt),tt.imports.length||tt.moduleAugmentations.length){let ht=GBe(tt),tr=He?.get(tt.path)||or(ht,tt);I.assert(tr.length===ht.length);let Er=Bd(tt),hn=GN();(pe??(pe=new Map)).set(tt.path,hn);for(let Gn=0;Gn<ht.length;Gn++){let ln=tr[Gn].resolvedModule,Hn=ht[Gn].text,_a=CW(tt,ht[Gn],Er);if(hn.set(Hn,_a,tr[Gn]),dr(tt,Hn,tr[Gn],_a),!ln)continue;let rs=ln.isExternalLibraryImport,Ii=!A4(ln.extension)&&!ru(ln.resolvedFileName),Ia=rs&&Ii&&(!ln.originalPath||Ox(ln.resolvedFileName)),Es=ln.resolvedFileName;rs&&ar++;let tp=Ia&&ar>jt,qd=Es&&!vee(Er,ln,tt)&&!Er.noResolve&&Gn<tt.imports.length&&!tp&&!(Ii&&!bx(Er))&&(jn(tt.imports[Gn])||!(tt.imports[Gn].flags&16777216));tp?Or.set(tt.path,!0):qd&&za(Es,!1,!1,{kind:3,file:tt.path,index:Gn},ln.packageId),rs&&ar--}}}function gr(tt,ht){let tr=!0,Er=Ct.getCanonicalFileName(Qa(ht,hi));for(let hn of tt)hn.isDeclarationFile||Ct.getCanonicalFileName(Qa(hn.fileName,hi)).indexOf(Er)!==0&&(Te.addLazyConfigDiagnostic(hn,y.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,hn.fileName,ht),tr=!1);return tr}function yr(tt){oe||(oe=new Map);let ht=qE(tt),tr=er(ht),Er=oe.get(tr);if(Er!==void 0)return Er||void 0;let hn,Gn;if(Ct.getParsedCommandLine){if(hn=Ct.getParsedCommandLine(ht),!hn){Kl(void 0,tr,ht,void 0),oe.set(tr,!1);return}Gn=I.checkDefined(hn.options.configFile),I.assert(!Gn.path||Gn.path===tr),Kl(Gn,tr,ht,void 0)}else{let Hn=Qa(Ei(ht),hi);if(Gn=Ct.getSourceFile(ht,100),Kl(Gn,tr,ht,void 0),Gn===void 0){oe.set(tr,!1);return}hn=DM(Gn,pr,Hn,void 0,ht)}Gn.fileName=ht,Gn.path=tr,Gn.resolvedPath=tr,Gn.originalFileName=ht;let ln={commandLine:hn,sourceFile:Gn};return oe.set(tr,ln),hn.projectReferences&&(ln.references=hn.projectReferences.map(yr)),ln}function Qr(){ae.strictPropertyInitialization&&!Bp(ae,"strictNullChecks")&&aa(y.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),ae.exactOptionalPropertyTypes&&!Bp(ae,"strictNullChecks")&&aa(y.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(ae.isolatedModules||ae.verbatimModuleSyntax)&&ae.outFile&&aa(y.Option_0_cannot_be_specified_with_option_1,"outFile",ae.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),ae.isolatedDeclarations&&(bx(ae)&&aa(y.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),y_(ae)||aa(y.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),ae.inlineSourceMap&&(ae.sourceMap&&aa(y.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),ae.mapRoot&&aa(y.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),ae.composite&&(ae.declaration===!1&&aa(y.Composite_projects_may_not_disable_declaration_emit,"declaration"),ae.incremental===!1&&aa(y.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let tt=ae.outFile;if(!ae.tsBuildInfoFile&&ae.incremental&&!tt&&!ae.configFilePath&&Te.addConfigDiagnostic(ll(y.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Ki(),rt(),ae.composite){let ln=new Set(ne.map(er));for(let Hn of Oe)k2(Hn,lr)&&!ln.has(Hn.path)&&Te.addLazyConfigDiagnostic(Hn,y.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,Hn.fileName,ae.configFilePath||"")}if(ae.paths){for(let ln in ae.paths)if(ec(ae.paths,ln))if(wX(ln)||Xr(!0,ln,y.Pattern_0_can_have_at_most_one_Asterisk_character,ln),cs(ae.paths[ln])){let Hn=ae.paths[ln].length;Hn===0&&Xr(!1,ln,y.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,ln);for(let _a=0;_a<Hn;_a++){let rs=ae.paths[ln][_a],Ii=typeof rs;Ii==="string"?(wX(rs)||Yt(ln,_a,y.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,rs,ln),!ae.baseUrl&&!pd(rs)&&!FI(rs)&&Yt(ln,_a,y.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Yt(ln,_a,y.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,rs,ln,Ii)}}else Xr(!1,ln,y.Substitutions_for_pattern_0_should_be_an_array,ln)}!ae.sourceMap&&!ae.inlineSourceMap&&(ae.inlineSources&&aa(y.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),ae.sourceRoot&&aa(y.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),ae.mapRoot&&!(ae.sourceMap||ae.declarationMap)&&aa(y.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),ae.declarationDir&&(y_(ae)||aa(y.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),tt&&aa(y.Option_0_cannot_be_specified_with_option_1,"declarationDir","outFile")),ae.declarationMap&&!y_(ae)&&aa(y.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),ae.lib&&ae.noLib&&aa(y.Option_0_cannot_be_specified_with_option_1,"lib","noLib");let ht=Po(ae),tr=Ir(Oe,ln=>Du(ln)&&!ln.isDeclarationFile);if(ae.isolatedModules||ae.verbatimModuleSyntax)ae.module===0&&ht<2&&ae.isolatedModules&&aa(y.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ae.preserveConstEnums===!1&&aa(y.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ae.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(tr&&ht<2&&ae.module===0){let ln=Tk(tr,typeof tr.externalModuleIndicator=="boolean"?tr:tr.externalModuleIndicator);Te.addConfigDiagnostic(Eu(tr,ln.start,ln.length,y.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(tt&&!ae.emitDeclarationOnly){if(ae.module&&!(ae.module===2||ae.module===4))aa(y.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(ae.module===void 0&&tr){let ln=Tk(tr,typeof tr.externalModuleIndicator=="boolean"?tr:tr.externalModuleIndicator);Te.addConfigDiagnostic(Eu(tr,ln.start,ln.length,y.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(O2(ae)&&(Xp(ae)===1?aa(y.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):FJ(ae)||aa(y.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),ae.outDir||ae.rootDir||ae.sourceRoot||ae.mapRoot||y_(ae)&&ae.declarationDir){let ln=zr();ae.outDir&&ln===""&&Oe.some(Hn=>Lg(Hn.fileName)>1)&&aa(y.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ae.checkJs&&!bx(ae)&&aa(y.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),ae.emitDeclarationOnly&&(y_(ae)||aa(y.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),ae.emitDecoratorMetadata&&!ae.experimentalDecorators&&aa(y.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ae.jsxFactory?(ae.reactNamespace&&aa(y.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ae.jsx===4||ae.jsx===5)&&aa(y.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",wM.get(""+ae.jsx)),IE(ae.jsxFactory,ht)||qa("jsxFactory",y.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ae.jsxFactory)):ae.reactNamespace&&!m_(ae.reactNamespace,ht)&&qa("reactNamespace",y.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ae.reactNamespace),ae.jsxFragmentFactory&&(ae.jsxFactory||aa(y.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ae.jsx===4||ae.jsx===5)&&aa(y.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",wM.get(""+ae.jsx)),IE(ae.jsxFragmentFactory,ht)||qa("jsxFragmentFactory",y.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ae.jsxFragmentFactory)),ae.reactNamespace&&(ae.jsx===4||ae.jsx===5)&&aa(y.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",wM.get(""+ae.jsx)),ae.jsxImportSource&&ae.jsx===2&&aa(y.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",wM.get(""+ae.jsx));let Er=hf(ae);ae.verbatimModuleSyntax&&(Er===2||Er===3||Er===4)&&aa(y.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ae.allowImportingTsExtensions&&!(ae.noEmit||ae.emitDeclarationOnly||ae.rewriteRelativeImportExtensions)&&qa("allowImportingTsExtensions",y.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let hn=Xp(ae);if(ae.resolvePackageJsonExports&&!TN(hn)&&aa(y.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ae.resolvePackageJsonImports&&!TN(hn)&&aa(y.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ae.customConditions&&!TN(hn)&&aa(y.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),hn===100&&!z5(Er)&&Er!==200&&qa("moduleResolution",y.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),mn[Er]&&100<=Er&&Er<=199&&!(3<=hn&&hn<=99)){let ln=mn[Er],Hn=Jr[ln]?ln:"Node16";qa("moduleResolution",y.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,Hn,ln)}else if(Jr[hn]&&3<=hn&&hn<=99&&!(100<=Er&&Er<=199)){let ln=Jr[hn];qa("module",y.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,ln,ln)}if(!ae.noEmit&&!ae.suppressOutputPathCheck){let ln=ji(),Hn=new Set;KZ(ln,_a=>{ae.emitDeclarationOnly||Gn(_a.jsFilePath,Hn),Gn(_a.declarationFilePath,Hn)})}function Gn(ln,Hn){if(ln){let _a=er(ln);if(ft.has(_a)){let Ii;ae.configFilePath||(Ii=vs(void 0,y.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Ii=vs(Ii,y.Cannot_write_file_0_because_it_would_overwrite_input_file,ln),Zg(ln,NJ(Ii))}let rs=Ct.useCaseSensitiveFileNames()?_a:wy(_a);Hn.has(rs)?Zg(ln,ll(y.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,ln)):Hn.add(rs)}}}function Tn(){let tt=ae.ignoreDeprecations;if(tt){if(tt==="5.0")return new F_(tt);me()}return F_.zero}function vi(tt,ht,tr,Er){let hn=new F_(tt),Gn=new F_(ht),ln=new F_(fe||le),Hn=Tn(),_a=Gn.compareTo(ln)!==1,rs=!_a&&Hn.compareTo(hn)===-1;(_a||rs)&&Er((Ii,Ia,Es)=>{_a?Ia===void 0?tr(Ii,Ia,Es,y.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Ii):tr(Ii,Ia,Es,y.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Ii,Ia):Ia===void 0?tr(Ii,Ia,Es,y.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Ii,ht,tt):tr(Ii,Ia,Es,y.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Ii,Ia,ht,tt)})}function Ki(){function tt(ht,tr,Er,hn,...Gn){if(Er){let ln=vs(void 0,y.Use_0_instead,Er),Hn=vs(ln,hn,...Gn);Uc(!tr,ht,void 0,Hn)}else Uc(!tr,ht,void 0,hn,...Gn)}vi("5.0","5.5",tt,ht=>{ae.target===0&&ht("target","ES3"),ae.noImplicitUseStrict&&ht("noImplicitUseStrict"),ae.keyofStringsOnly&&ht("keyofStringsOnly"),ae.suppressExcessPropertyErrors&&ht("suppressExcessPropertyErrors"),ae.suppressImplicitAnyIndexErrors&&ht("suppressImplicitAnyIndexErrors"),ae.noStrictGenericChecks&&ht("noStrictGenericChecks"),ae.charset&&ht("charset"),ae.out&&ht("out",void 0,"outFile"),ae.importsNotUsedAsValues&&ht("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ae.preserveValueImports&&ht("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Na(tt,ht,tr){function Er(hn,Gn,ln,Hn,..._a){ss(ht,tr,Hn,..._a)}vi("5.0","5.5",Er,hn=>{tt.prepend&&hn("prepend")})}function U(tt,ht,tr,Er){Te.addFileProcessingDiagnostic({kind:1,file:tt&&tt.path,fileProcessingReason:ht,diagnostic:tr,args:Er})}function rt(){let tt=ae.suppressOutputPathCheck?void 0:KS(ae);W4(Ee,wt,(ht,tr,Er)=>{let hn=(tr?tr.commandLine.projectReferences:Ee)[Er],Gn=tr&&tr.sourceFile;if(Na(hn,Gn,Er),!ht){ss(Gn,Er,y.File_0_not_found,hn.path);return}let ln=ht.commandLine.options;(!ln.composite||ln.noEmit)&&(tr?tr.commandLine.fileNames:ne).length&&(ln.composite||ss(Gn,Er,y.Referenced_project_0_must_have_setting_composite_Colon_true,hn.path),ln.noEmit&&ss(Gn,Er,y.Referenced_project_0_may_not_disable_emit,hn.path)),!tr&&tt&&tt===KS(ln)&&(ss(Gn,Er,y.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,tt,hn.path),Wn.set(er(tt),!0))})}function Yt(tt,ht,tr,...Er){let hn=!0;Ya(Gn=>{So(Gn.initializer)&&sN(Gn.initializer,tt,ln=>{let Hn=ln.initializer;kp(Hn)&&Hn.elements.length>ht&&(Te.addConfigDiagnostic(om(ae.configFile,Hn.elements[ht],tr,...Er)),hn=!1)})}),hn&&lo(tr,...Er)}function Xr(tt,ht,tr,...Er){let hn=!0;Ya(Gn=>{So(Gn.initializer)&&vm(Gn.initializer,tt,ht,void 0,tr,...Er)&&(hn=!1)}),hn&&lo(tr,...Er)}function Ya(tt){return YX(Tu(),"paths",tt)}function aa(tt,ht,tr,Er){Uc(!0,ht,tr,tt,ht,tr,Er)}function qa(tt,ht,...tr){Uc(!1,tt,void 0,ht,...tr)}function ss(tt,ht,tr,...Er){let hn=YF(tt||ae.configFile,"references",Gn=>kp(Gn.initializer)?Gn.initializer:void 0);hn&&hn.elements.length>ht?Te.addConfigDiagnostic(om(tt||ae.configFile,hn.elements[ht],tr,...Er)):Te.addConfigDiagnostic(ll(tr,...Er))}function Uc(tt,ht,tr,Er,...hn){let Gn=Tu();(!Gn||!vm(Gn,tt,ht,tr,Er,...hn))&&lo(Er,...hn)}function lo(tt,...ht){let tr=Z_();tr?"messageText"in tt?Te.addConfigDiagnostic(Cv(ae.configFile,tr.name,tt)):Te.addConfigDiagnostic(om(ae.configFile,tr.name,tt,...ht)):"messageText"in tt?Te.addConfigDiagnostic(NJ(tt)):Te.addConfigDiagnostic(ll(tt,...ht))}function Tu(){if(Gi===void 0){let tt=Z_();Gi=tt&&_i(tt.initializer,So)||!1}return Gi||void 0}function Z_(){return at===void 0&&(at=sN(a4(ae.configFile),"compilerOptions",vc)||!1),at||void 0}function vm(tt,ht,tr,Er,hn,...Gn){let ln=!1;return sN(tt,tr,Hn=>{"messageText"in hn?Te.addConfigDiagnostic(Cv(ae.configFile,ht?Hn.name:Hn.initializer,hn)):Te.addConfigDiagnostic(om(ae.configFile,ht?Hn.name:Hn.initializer,hn,...Gn)),ln=!0},Er),ln}function Zg(tt,ht){Wn.set(er(tt),!0),Te.addConfigDiagnostic(ht)}function U0(tt){if(ae.noEmit)return!1;let ht=er(tt);if(el(ht))return!1;let tr=ae.outFile;if(tr)return Wv(ht,tr)||Wv(ht,yf(tr)+".d.ts");if(ae.declarationDir&&am(ae.declarationDir,ht,hi,!Ct.useCaseSensitiveFileNames()))return!0;if(ae.outDir)return am(ae.outDir,ht,hi,!Ct.useCaseSensitiveFileNames());if(Wl(ht,wN)||Wu(ht)){let Er=yf(ht);return!!el(Er+".ts")||!!el(Er+".tsx")}return!1}function Wv(tt,ht){return S0(tt,ht,hi,!Ct.useCaseSensitiveFileNames())===0}function x_(){return Ct.getSymlinkCache?Ct.getSymlinkCache():(ie||(ie=kX(hi,_e)),Oe&&!ie.hasProcessedResolutions()&&ie.setSymlinksFromResolutions($,Ke,Tt),ie)}function eh(tt,ht){return CW(tt,ht,Bd(tt))}function Yh(tt,ht){return WBe(tt,ht,Bd(tt))}function Km(tt,ht){return eh(tt,eR(tt,ht))}function jx(tt){return NW(tt,Bd(tt))}function yd(tt){return nC(tt,Bd(tt))}function H1(tt){return O3(tt,Bd(tt))}function Lx(tt){return HBe(tt,Bd(tt))}function G1(tt,ht){return tt.resolutionMode||jx(ht)}}function HBe(e,t){let n=hf(t);return 100<=n&&n<=199||n===200?!1:O3(e,t)<5}function O3(e,t){return nC(e,t)??hf(t)}function nC(e,t){var n,i;let s=hf(t);if(100<=s&&s<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((n=e.packageJsonScope)==null?void 0:n.contents.packageJsonContent.type)==="commonjs"||Wl(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((i=e.packageJsonScope)==null?void 0:i.contents.packageJsonContent.type)==="module"||Wl(e.fileName,[".mjs",".mts"])))return 99}function NW(e,t){return SX(t)?nC(e,t):void 0}function D8t(e){let t,n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,l=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ko,fileExists:m};e.compilerHost.fileExists=m;let p;return i&&(p=e.compilerHost.directoryExists=E=>i.call(e.compilerHost,E)?(S(E),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(N=>{let F=N.commandLine.options.outFile;if(F)t.add(Ei(e.toPath(F)));else{let M=N.commandLine.options.declarationDir||N.commandLine.options.outDir;M&&t.add(e.toPath(M))}})),P(E,!1)):!1),s&&(e.compilerHost.getDirectories=E=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,E)?s.call(e.compilerHost,E):[]),l&&(e.compilerHost.realpath=E=>{var N;return((N=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:N.get(e.toPath(E)))||l.call(e.compilerHost,E)}),{onProgramCreateComplete:g,fileExists:m,directoryExists:p};function g(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function m(E){return n.call(e.compilerHost,E)?!0:!e.getResolvedProjectReferences()||!Wu(E)?!1:P(E,!0)}function x(E){let N=e.getSourceOfProjectReferenceRedirect(e.toPath(E));return N!==void 0?Ua(N)?n.call(e.compilerHost,N):!0:void 0}function b(E){let N=e.toPath(E),F=`${N}${jc}`;return wv(t,M=>N===M||La(M,F)||La(N,`${M}/`))}function S(E){var N;if(!e.getResolvedProjectReferences()||L4(E)||!l||!E.includes(Bv))return;let F=e.getSymlinkCache(),M=ju(e.toPath(E));if((N=F.getSymlinkedDirectories())!=null&&N.has(M))return;let L=Zs(l.call(e.compilerHost,E)),W;if(L===E||(W=ju(e.toPath(L)))===M){F.setSymlinkedDirectory(M,!1);return}F.setSymlinkedDirectory(E,{real:ju(L),realPath:W})}function P(E,N){var F;let M=N?X=>x(X):X=>b(X),L=M(E);if(L!==void 0)return L;let W=e.getSymlinkCache(),z=W.getSymlinkedDirectories();if(!z)return!1;let H=e.toPath(E);return H.includes(Bv)?N&&((F=W.getSymlinkedFiles())!=null&&F.has(H))?!0:si(z.entries(),([X,ne])=>{if(!ne||!La(H,X))return;let ae=M(H.replace(X,ne.realPath));if(N&&ae){let Y=Qa(E,e.compilerHost.getCurrentDirectory());W.setSymlinkedFile(H,`${ne.real}${Y.replace(new RegExp(X,"i"),"")}`)}return ae})||!1:!1}}var hee={diagnostics:ce,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function yee(e,t,n,i){let s=e.getCompilerOptions();if(s.noEmit)return t?hee:e.emitBuildInfo(n,i);if(!s.noEmitOnError)return;let l=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(l.length===0&&y_(e.getCompilerOptions())&&(l=e.getDeclarationDiagnostics(void 0,i)),!l.length)return;let p;if(!t){let g=e.emitBuildInfo(n,i);g.diagnostics&&(l=[...l,...g.diagnostics]),p=g.emittedFiles}return{diagnostics:l,sourceMaps:void 0,emittedFiles:p,emitSkipped:!0}}function AW(e,t){return Cn(e,n=>!n.skippedOn||!t[n.skippedOn])}function IW(e,t=e){return{fileExists:n=>t.fileExists(n),readDirectory(n,i,s,l,p){return I.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,i,s,l,p)},readFile:n=>t.readFile(n),directoryExists:Ra(t,t.directoryExists),getDirectories:Ra(t,t.getDirectories),realpath:Ra(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Rg,trace:e.trace?n=>e.trace(n):void 0}}function qE(e){return Gee(e.path)}function vee(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||s();case".js":case".mjs":case".cjs":return s();case".json":return l();default:return p()}function i(){return e.jsx?void 0:y.Module_0_was_resolved_to_1_but_jsx_is_not_set}function s(){return bx(e)||!Bp(e,"noImplicitAny")?void 0:y.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function l(){return O2(e)?void 0:y.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function p(){return n||e.allowArbitraryExtensions?void 0:y.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function GBe({imports:e,moduleAugmentations:t}){let n=e.map(i=>i);for(let i of t)i.kind===11&&n.push(i);return n}function eR({imports:e,moduleAugmentations:t},n){if(n<e.length)return e[n];let i=e.length;for(let s of t)if(s.kind===11){if(n===i)return s;i++}I.fail("should never ask for module name at index higher than possible module name")}function N0e(e){let t,n=Zl(),i,s,l,p,g,m;return{addConfigDiagnostic(E){I.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(l??(l=y4())).add(E)},addLazyConfigDiagnostic(E,N,...F){I.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(p??(p=[])).push({file:E,diagnostic:N,args:F})},addFileProcessingDiagnostic(E){I.assert(t===void 0,"Cannot modify program diagnostic state after requesting combined diagnostics"),(i??(i=[])).push(E)},setCommonSourceDirectory(E){s=E},reuseStateFromOldProgram(E,N){n=E.getFileReasons(),i=E.getFileProcessingDiagnostics(),N&&(s=E.getCommonSourceDirectory(),l=E.getConfigDiagnostics(),p=E.getLazyConfigDiagnostics())},getFileProcessingDiagnostics(){return i},getFileReasons(){return n},getCommonSourceDirectory(){return s},getConfigDiagnostics(){return l},getLazyConfigDiagnostics(){return p},getCombinedDiagnostics(E){return t||(t=y4(),l?.getDiagnostics().forEach(N=>t.add(N)),i?.forEach(N=>{switch(N.kind){case 1:return t.add(b(E,N.file&&E.getSourceFileByPath(N.file),N.fileProcessingReason,N.diagnostic,N.args||ce));case 0:return t.add(x(E,N));case 2:return N.diagnostics.forEach(F=>t.add(F));default:I.assertNever(N)}}),p?.forEach(({file:N,diagnostic:F,args:M})=>t.add(b(E,N,void 0,F,M))),g=void 0,m=void 0,t)}};function x(E,{reason:N}){let{file:F,pos:M,end:L}=D3(E,N),W=F.libReferenceDirectives[N.index],z=GX(W),H=a2(kP(z,"lib."),".d.ts"),X=x0(H,jz,vc);return Eu(F,I.checkDefined(M),I.checkDefined(L)-M,X?y.Cannot_find_lib_definition_for_0_Did_you_mean_1:y.Cannot_find_lib_definition_for_0,z,X)}function b(E,N,F,M,L){let W,z,H,X,ne,ae,Y=N&&n.get(N.path),Ee=QS(F)?F:void 0,fe=N&&g?.get(N.path);fe?(fe.fileIncludeReasonDetails?(W=new Set(Y),Y?.forEach(ve)):Y?.forEach(me),ne=fe.redirectInfo):(Y?.forEach(me),ne=N&&Ree(N,E.getCompilerOptionsForFile(N))),F&&me(F);let te=W?.size!==Y?.length;Ee&&W?.size===1&&(W=void 0),W&&fe&&(fe.details&&!te?ae=vs(fe.details,M,...L??ce):fe.fileIncludeReasonDetails&&(te?Pe()?z=Zr(fe.fileIncludeReasonDetails.next.slice(0,Y.length),z[0]):z=[...fe.fileIncludeReasonDetails.next,z[0]]:Pe()?z=fe.fileIncludeReasonDetails.next.slice(0,Y.length):X=fe.fileIncludeReasonDetails)),ae||(X||(X=W&&vs(z,y.The_file_is_in_the_program_because_Colon)),ae=vs(ne?X?[X,...ne]:ne:X,M,...L||ce)),N&&(fe?(!fe.fileIncludeReasonDetails||!te&&X)&&(fe.fileIncludeReasonDetails=X):(g??(g=new Map)).set(N.path,fe={fileIncludeReasonDetails:X,redirectInfo:ne}),!fe.details&&!te&&(fe.details=ae.next));let de=Ee&&D3(E,Ee);return de&&nA(de)?jq(de.file,de.pos,de.end-de.pos,ae,H):NJ(ae,H);function me(Oe){W?.has(Oe)||((W??(W=new Set)).add(Oe),(z??(z=[])).push(Bee(E,Oe)),ve(Oe))}function ve(Oe){!Ee&&QS(Oe)?Ee=Oe:Ee!==Oe&&(H=Zr(H,S(E,Oe)))}function Pe(){var Oe;return((Oe=fe.fileIncludeReasonDetails.next)==null?void 0:Oe.length)!==Y?.length}}function S(E,N){let F=m?.get(N);return F===void 0&&(m??(m=new Map)).set(N,F=P(E,N)??!1),F||void 0}function P(E,N){if(QS(N)){let H=D3(E,N),X;switch(N.kind){case 3:X=y.File_is_included_via_import_here;break;case 4:X=y.File_is_included_via_reference_here;break;case 5:X=y.File_is_included_via_type_library_reference_here;break;case 7:X=y.File_is_included_via_library_reference_here;break;default:I.assertNever(N)}return nA(H)?Eu(H.file,H.pos,H.end-H.pos,X):void 0}let F=E.getCurrentDirectory(),M=E.getRootFileNames(),L=E.getCompilerOptions();if(!L.configFile)return;let W,z;switch(N.kind){case 0:if(!L.configFile.configFileSpecs)return;let H=Qa(M[N.index],F),X=jee(E,H);if(X){W=Wq(L.configFile,"files",X),z=y.File_is_matched_by_files_list_specified_here;break}let ne=Lee(E,H);if(!ne||!Ua(ne))return;W=Wq(L.configFile,"include",ne),z=y.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let ae=E.getResolvedProjectReferences(),Y=E.getProjectReferences(),Ee=I.checkDefined(ae?.[N.index]),fe=W4(Y,ae,(Pe,Oe,ie)=>Pe===Ee?{sourceFile:Oe?.sourceFile||L.configFile,index:ie}:void 0);if(!fe)return;let{sourceFile:te,index:de}=fe,me=YF(te,"references",Pe=>kp(Pe.initializer)?Pe.initializer:void 0);return me&&me.elements.length>de?om(te,me.elements[de],N.kind===2?y.File_is_output_from_referenced_project_specified_here:y.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!L.types)return;W=XX(e(),"types",N.typeReference),z=y.File_is_entry_point_of_type_library_specified_here;break;case 6:if(N.index!==void 0){W=XX(e(),"lib",L.lib[N.index]),z=y.File_is_library_specified_here;break}let ve=MJ(Po(L));W=ve?rhe(e(),"target",ve):void 0,z=y.File_is_default_library_for_target_specified_here;break;default:I.assertNever(N)}return W&&om(L.configFile,W,z)}}function A0e(e,t,n,i,s,l){let p=[],{emitSkipped:g,diagnostics:m}=e.emit(t,x,i,n,s,l);return{outputFiles:p,emitSkipped:g,diagnostics:m};function x(b,S,P){p.push({name:b,writeByteOrderMark:P,text:S})}}var I0e=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(I0e||{}),Qg;(e=>{function t(){function fe(te,de,me){let ve={getKeys:Pe=>de.get(Pe),getValues:Pe=>te.get(Pe),keys:()=>te.keys(),size:()=>te.size,deleteKey:Pe=>{(me||(me=new Set)).add(Pe);let Oe=te.get(Pe);return Oe?(Oe.forEach(ie=>i(de,ie,Pe)),te.delete(Pe),!0):!1},set:(Pe,Oe)=>{me?.delete(Pe);let ie=te.get(Pe);return te.set(Pe,Oe),ie?.forEach(Ne=>{Oe.has(Ne)||i(de,Ne,Pe)}),Oe.forEach(Ne=>{ie?.has(Ne)||n(de,Ne,Pe)}),ve}};return ve}return fe(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n(fe,te,de){let me=fe.get(te);me||(me=new Set,fe.set(te,me)),me.add(de)}function i(fe,te,de){let me=fe.get(te);return me?.delete(de)?(me.size||fe.delete(te),!0):!1}function s(fe){return Bi(fe.declarations,te=>{var de;return(de=rn(te))==null?void 0:de.resolvedPath})}function l(fe,te){let de=fe.getSymbolAtLocation(te);return de&&s(de)}function p(fe,te,de,me){return Ec(fe.getProjectReferenceRedirect(te)||te,de,me)}function g(fe,te,de){let me;if(te.imports&&te.imports.length>0){let ie=fe.getTypeChecker();for(let Ne of te.imports){let it=l(ie,Ne);it?.forEach(Oe)}}let ve=Ei(te.resolvedPath);if(te.referencedFiles&&te.referencedFiles.length>0)for(let ie of te.referencedFiles){let Ne=p(fe,ie.fileName,ve,de);Oe(Ne)}if(fe.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ie})=>{if(!ie)return;let Ne=ie.resolvedFileName,it=p(fe,Ne,ve,de);Oe(it)},te),te.moduleAugmentations.length){let ie=fe.getTypeChecker();for(let Ne of te.moduleAugmentations){if(!vo(Ne))continue;let it=ie.getSymbolAtLocation(Ne);it&&Pe(it)}}for(let ie of fe.getTypeChecker().getAmbientModules())ie.declarations&&ie.declarations.length>1&&Pe(ie);return me;function Pe(ie){if(ie.declarations)for(let Ne of ie.declarations){let it=rn(Ne);it&&it!==te&&Oe(it.resolvedPath)}}function Oe(ie){(me||(me=new Set)).add(ie)}}function m(fe,te){return te&&!te.referencedMap==!fe}e.canReuseOldState=m;function x(fe){return fe.module!==0&&!fe.outFile?t():void 0}e.createReferencedMap=x;function b(fe,te,de){var me,ve;let Pe=new Map,Oe=fe.getCompilerOptions(),ie=x(Oe),Ne=m(ie,te);fe.getTypeChecker();for(let it of fe.getSourceFiles()){let ze=I.checkDefined(it.version,"Program intended to be used with Builder should have source files with versions set"),ge=Ne?(me=te.oldSignatures)==null?void 0:me.get(it.resolvedPath):void 0,Me=ge===void 0?Ne?(ve=te.fileInfos.get(it.resolvedPath))==null?void 0:ve.signature:void 0:ge||void 0;if(ie){let Te=g(fe,it,fe.getCanonicalFileName);Te&&ie.set(it.resolvedPath,Te)}Pe.set(it.resolvedPath,{version:ze,signature:Me,affectsGlobalScope:Oe.outFile?void 0:ne(it)||void 0,impliedFormat:it.impliedNodeFormat})}return{fileInfos:Pe,referencedMap:ie,useFileVersionAsSignature:!de&&!Ne}}e.create=b;function S(fe){fe.allFilesExcludingDefaultLibraryFile=void 0,fe.allFileNames=void 0}e.releaseCache=S;function P(fe,te,de,me,ve){var Pe;let Oe=E(fe,te,de,me,ve);return(Pe=fe.oldSignatures)==null||Pe.clear(),Oe}e.getFilesAffectedBy=P;function E(fe,te,de,me,ve){let Pe=te.getSourceFileByPath(de);return Pe?M(fe,te,Pe,me,ve)?(fe.referencedMap?Ee:Y)(fe,te,Pe,me,ve):[Pe]:ce}e.getFilesAffectedByWithOldState=E;function N(fe,te,de){fe.fileInfos.get(de).signature=te,(fe.hasCalledUpdateShapeSignature||(fe.hasCalledUpdateShapeSignature=new Set)).add(de)}e.updateSignatureOfFile=N;function F(fe,te,de,me,ve){fe.emit(te,(Pe,Oe,ie,Ne,it,ze)=>{I.assert(Wu(Pe),`File extension for signature expected to be dts: Got:: ${Pe}`),ve(See(fe,te,Oe,me,ze),it)},de,2,void 0,!0)}e.computeDtsSignature=F;function M(fe,te,de,me,ve,Pe=fe.useFileVersionAsSignature){var Oe;if((Oe=fe.hasCalledUpdateShapeSignature)!=null&&Oe.has(de.resolvedPath))return!1;let ie=fe.fileInfos.get(de.resolvedPath),Ne=ie.signature,it;return!de.isDeclarationFile&&!Pe&&F(te,de,me,ve,ze=>{it=ze,ve.storeSignatureInfo&&(fe.signatureInfo??(fe.signatureInfo=new Map)).set(de.resolvedPath,0)}),it===void 0&&(it=de.version,ve.storeSignatureInfo&&(fe.signatureInfo??(fe.signatureInfo=new Map)).set(de.resolvedPath,2)),(fe.oldSignatures||(fe.oldSignatures=new Map)).set(de.resolvedPath,Ne||!1),(fe.hasCalledUpdateShapeSignature||(fe.hasCalledUpdateShapeSignature=new Set)).add(de.resolvedPath),ie.signature=it,it!==Ne}e.updateShapeSignature=M;function L(fe,te,de){if(te.getCompilerOptions().outFile||!fe.referencedMap||ne(de))return W(fe,te);let ve=new Set,Pe=[de.resolvedPath];for(;Pe.length;){let Oe=Pe.pop();if(!ve.has(Oe)){ve.add(Oe);let ie=fe.referencedMap.getValues(Oe);if(ie)for(let Ne of ie.keys())Pe.push(Ne)}}return Ka(pf(ve.keys(),Oe=>{var ie;return((ie=te.getSourceFileByPath(Oe))==null?void 0:ie.fileName)??Oe}))}e.getAllDependencies=L;function W(fe,te){if(!fe.allFileNames){let de=te.getSourceFiles();fe.allFileNames=de===ce?ce:de.map(me=>me.fileName)}return fe.allFileNames}function z(fe,te){let de=fe.referencedMap.getKeys(te);return de?Ka(de.keys()):[]}e.getReferencedByPaths=z;function H(fe){for(let te of fe.statements)if(!Fq(te))return!1;return!0}function X(fe){return Pt(fe.moduleAugmentations,te=>Oy(te.parent))}function ne(fe){return X(fe)||!q_(fe)&&!cm(fe)&&!H(fe)}function ae(fe,te,de){if(fe.allFilesExcludingDefaultLibraryFile)return fe.allFilesExcludingDefaultLibraryFile;let me;de&&ve(de);for(let Pe of te.getSourceFiles())Pe!==de&&ve(Pe);return fe.allFilesExcludingDefaultLibraryFile=me||ce,fe.allFilesExcludingDefaultLibraryFile;function ve(Pe){te.isSourceFileDefaultLibrary(Pe)||(me||(me=[])).push(Pe)}}e.getAllFilesExcludingDefaultLibraryFile=ae;function Y(fe,te,de){let me=te.getCompilerOptions();return me&&me.outFile?[de]:ae(fe,te,de)}function Ee(fe,te,de,me,ve){if(ne(de))return ae(fe,te,de);let Pe=te.getCompilerOptions();if(Pe&&(zm(Pe)||Pe.outFile))return[de];let Oe=new Map;Oe.set(de.resolvedPath,de);let ie=z(fe,de.resolvedPath);for(;ie.length>0;){let Ne=ie.pop();if(!Oe.has(Ne)){let it=te.getSourceFileByPath(Ne);Oe.set(Ne,it),it&&M(fe,te,it,me,ve)&&ie.push(...z(fe,it.resolvedPath))}}return Ka(pf(Oe.values(),Ne=>Ne))}})(Qg||(Qg={}));var F0e=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(F0e||{});function iA(e){return e.program!==void 0}function O8t(e){return I.assert(iA(e)),e}function Ix(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),y_(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function FW(e,t){let n=t&&(nm(t)?t:Ix(t)),i=nm(e)?e:Ix(e);if(n===i)return 0;if(!n||!i)return i;let s=n^i,l=0;return s&7&&(l=i&7),s&8&&(l=l|i&8),s&48&&(l=l|i&48),l}function N8t(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!wv(e,n=>!t.has(n))}function A8t(e,t){var n,i;let s=Qg.create(e,t,!1);s.program=e;let l=e.getCompilerOptions();s.compilerOptions=l;let p=l.outFile;s.semanticDiagnosticsPerFile=new Map,p&&l.composite&&t?.outSignature&&p===t.compilerOptions.outFile&&(s.outSignature=t.outSignature&&KBe(l,t.compilerOptions,t.outSignature)),s.changedFilesSet=new Set,s.latestChangedDtsFile=l.composite?t?.latestChangedDtsFile:void 0,s.checkPending=s.compilerOptions.noCheck?!0:void 0;let g=Qg.canReuseOldState(s.referencedMap,t),m=g?t.compilerOptions:void 0,x=g&&!kge(l,m),b=l.composite&&t?.emitSignatures&&!p&&!Pge(l,t.compilerOptions),S=!0;g?((n=t.changedFilesSet)==null||n.forEach(L=>s.changedFilesSet.add(L)),!p&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending,p&&s.changedFilesSet.size&&(x=!1,S=!1),s.hasErrorsFromOldState=t.hasErrors):s.buildInfoEmitPending=N2(l);let P=s.referencedMap,E=g?t.referencedMap:void 0,N=x&&!l.skipLibCheck==!m.skipLibCheck,F=N&&!l.skipDefaultLibCheck==!m.skipDefaultLibCheck;if(s.fileInfos.forEach((L,W)=>{var z;let H,X;if(!g||!(H=t.fileInfos.get(W))||H.version!==L.version||H.impliedFormat!==L.impliedFormat||!N8t(X=P&&P.getValues(W),E&&E.getValues(W))||X&&wv(X,ne=>!s.fileInfos.has(ne)&&t.fileInfos.has(ne)))M(W);else{let ne=e.getSourceFileByPath(W),ae=S?(z=t.emitDiagnosticsPerFile)==null?void 0:z.get(W):void 0;if(ae&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(W,t.hasReusableDiagnostic?XBe(ae,W,e):QBe(ae,e)),x){if(ne.isDeclarationFile&&!N||ne.hasNoDefaultLib&&!F)return;let Y=t.semanticDiagnosticsPerFile.get(W);Y&&(s.semanticDiagnosticsPerFile.set(W,t.hasReusableDiagnostic?XBe(Y,W,e):QBe(Y,e)),(s.semanticDiagnosticsFromOldState??(s.semanticDiagnosticsFromOldState=new Set)).add(W))}}if(b){let ne=t.emitSignatures.get(W);ne&&(s.emitSignatures??(s.emitSignatures=new Map)).set(W,KBe(l,t.compilerOptions,ne))}}),g&&Lu(t.fileInfos,(L,W)=>s.fileInfos.has(W)?!1:L.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!!p)))Qg.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(L=>M(L.resolvedPath));else if(m){let L=Cge(l,m)?Ix(l):FW(l,m);L!==0&&(p?s.changedFilesSet.size||(s.programEmitPending=s.programEmitPending?s.programEmitPending|L:L):(e.getSourceFiles().forEach(W=>{s.changedFilesSet.has(W.resolvedPath)||wee(s,W.resolvedPath,L)}),I.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set),s.buildInfoEmitPending=!0)}return g&&s.semanticDiagnosticsPerFile.size!==s.fileInfos.size&&t.checkPending!==s.checkPending&&(s.buildInfoEmitPending=!0),s;function M(L){s.changedFilesSet.add(L),p&&(x=!1,S=!1,s.semanticDiagnosticsFromOldState=void 0,s.semanticDiagnosticsPerFile.clear(),s.emitDiagnosticsPerFile=void 0),s.buildInfoEmitPending=!0,s.programEmitPending=void 0}}function KBe(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Ua(n)?[n]:n[0]}function QBe(e,t){return e.length?ia(e,n=>{if(Ua(n.messageText))return n;let i=M0e(n.messageText,n.file,t,s=>{var l;return(l=s.repopulateInfo)==null?void 0:l.call(s)});return i===n.messageText?n:{...n,messageText:i}}):e}function M0e(e,t,n,i){let s=i(e);if(s===!0)return{...tQ(t),next:R0e(e.next,t,n,i)};if(s)return{...Dq(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:R0e(e.next,t,n,i)};let l=R0e(e.next,t,n,i);return l===e.next?e:{...e,next:l}}function R0e(e,t,n,i){return ia(e,s=>M0e(s,t,n,i))}function XBe(e,t,n){if(!e.length)return ce;let i;return e.map(l=>{let p=YBe(l,t,n,s);p.reportsUnnecessary=l.reportsUnnecessary,p.reportsDeprecated=l.reportDeprecated,p.source=l.source,p.skippedOn=l.skippedOn;let{relatedInformation:g}=l;return p.relatedInformation=g?g.length?g.map(m=>YBe(m,t,n,s)):[]:void 0,p});function s(l){return i??(i=Ei(Qa(KS(n.getCompilerOptions()),n.getCurrentDirectory()))),Ec(l,i,n.getCanonicalFileName)}}function YBe(e,t,n,i){let{file:s}=e,l=s!==!1?n.getSourceFileByPath(s?i(s):t):void 0;return{...e,file:l,messageText:Ua(e.messageText)?e.messageText:M0e(e.messageText,l,n,p=>p.info)}}function I8t(e){Qg.releaseCache(e),e.program=void 0}function j0e(e,t){I.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function ZBe(e,t,n){for(var i;;){let{affectedFiles:s}=e;if(s){let g=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m<s.length;){let x=s[m];if(!g.has(x.resolvedPath))return e.affectedFilesIndex=m,wee(e,x.resolvedPath,Ix(e.compilerOptions)),R8t(e,x,t,n),x;m++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),e.affectedFiles=void 0}let l=e.changedFilesSet.keys().next();if(l.done)return;if(e.program.getCompilerOptions().outFile)return e.program;e.affectedFiles=Qg.getFilesAffectedByWithOldState(e,e.program,l.value,t,n),e.currentChangedFilePath=l.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function eqe(e,t,n){var i,s;if(!(!((i=e.affectedFilesPendingEmit)!=null&&i.size)&&!e.programEmitPending)&&(!t&&!n&&(e.affectedFilesPendingEmit=void 0,e.programEmitPending=void 0),(s=e.affectedFilesPendingEmit)==null||s.forEach((l,p)=>{let g=n?l&55:l&7;g?e.affectedFilesPendingEmit.set(p,g):e.affectedFilesPendingEmit.delete(p)}),e.programEmitPending)){let l=n?e.programEmitPending&55:e.programEmitPending&7;l?e.programEmitPending=l:e.programEmitPending=void 0}}function MW(e,t,n,i){let s=FW(e,t);return n&&(s=s&56),i&&(s=s&8),s}function bee(e){return e?8:56}function F8t(e,t,n){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Lu(e.affectedFilesPendingEmit,(s,l)=>{var p;let g=e.program.getSourceFileByPath(l);if(!g||!k2(g,e.program)){e.affectedFilesPendingEmit.delete(l);return}let m=(p=e.seenEmittedFiles)==null?void 0:p.get(g.resolvedPath),x=MW(s,m,t,n);if(x)return{affectedFile:g,emitKind:x}})}function M8t(e,t){var n;if((n=e.emitDiagnosticsPerFile)!=null&&n.size)return Lu(e.emitDiagnosticsPerFile,(i,s)=>{var l;let p=e.program.getSourceFileByPath(s);if(!p||!k2(p,e.program)){e.emitDiagnosticsPerFile.delete(s);return}let g=((l=e.seenEmittedFiles)==null?void 0:l.get(p.resolvedPath))||0;if(!(g&bee(t)))return{affectedFile:p,diagnostics:i,seenKind:g}})}function tqe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=e.program.getCompilerOptions();Ge(e.program.getSourceFiles(),n=>e.program.isSourceFileDefaultLibrary(n)&&!Lge(n,t,e.program)&&B0e(e,n.resolvedPath))}}function R8t(e,t,n,i){if(B0e(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){tqe(e),Qg.updateShapeSignature(e,e.program,t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||j8t(e,t,n,i)}function L0e(e,t,n,i,s){if(B0e(e,t),!e.changedFilesSet.has(t)){let l=e.program.getSourceFileByPath(t);l&&(Qg.updateShapeSignature(e,e.program,l,i,s,!0),n?wee(e,t,Ix(e.compilerOptions)):y_(e.compilerOptions)&&wee(e,t,e.compilerOptions.declarationMap?56:24))}}function B0e(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function rqe(e,t){let n=I.checkDefined(e.oldSignatures).get(t)||void 0;return I.checkDefined(e.fileInfos.get(t)).signature!==n}function q0e(e,t,n,i,s){var l;return(l=e.fileInfos.get(t))!=null&&l.affectsGlobalScope?(Qg.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(p=>L0e(e,p.resolvedPath,n,i,s)),tqe(e),!0):!1}function j8t(e,t,n,i){var s,l;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!rqe(e,t.resolvedPath))return;if(zm(e.compilerOptions)){let m=new Map;m.set(t.resolvedPath,!0);let x=Qg.getReferencedByPaths(e,t.resolvedPath);for(;x.length>0;){let b=x.pop();if(!m.has(b)){if(m.set(b,!0),q0e(e,b,!1,n,i))return;if(L0e(e,b,!1,n,i),rqe(e,b)){let S=e.program.getSourceFileByPath(b);x.push(...Qg.getReferencedByPaths(e,S.resolvedPath))}}}}let p=new Set,g=!!((s=t.symbol)!=null&&s.exports)&&!!Lu(t.symbol.exports,m=>{if(m.flags&128)return!0;let x=Tp(m,e.program.getTypeChecker());return x===m?!1:(x.flags&128)!==0&&Pt(x.declarations,b=>rn(b)===t)});(l=e.referencedMap.getKeys(t.resolvedPath))==null||l.forEach(m=>{if(q0e(e,m,g,n,i))return!0;let x=e.referencedMap.getKeys(m);return x&&wv(x,b=>nqe(e,b,g,p,n,i))})}function nqe(e,t,n,i,s,l){var p;if(Ty(i,t)){if(q0e(e,t,n,s,l))return!0;L0e(e,t,n,s,l),(p=e.referencedMap.getKeys(t))==null||p.forEach(g=>nqe(e,g,n,i,s,l))}}function xee(e,t,n,i){return e.compilerOptions.noCheck?ce:ya(L8t(e,t,n,i),e.program.getProgramDiagnostics(t))}function L8t(e,t,n,i){i??(i=e.semanticDiagnosticsPerFile);let s=t.resolvedPath,l=i.get(s);if(l)return AW(l,e.compilerOptions);let p=e.program.getBindAndCheckDiagnostics(t,n);return i.set(s,p),e.buildInfoEmitPending=!0,AW(p,e.compilerOptions)}function J0e(e){var t;return!!((t=e.options)!=null&&t.outFile)}function tR(e){return!!e.fileNames}function B8t(e){return!tR(e)&&!!e.root}function iqe(e){e.hasErrors===void 0&&(N2(e.compilerOptions)?e.hasErrors=!Pt(e.program.getSourceFiles(),t=>{var n,i;let s=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return s===void 0||!!s.length||!!((i=(n=e.emitDiagnosticsPerFile)==null?void 0:n.get(t.resolvedPath))!=null&&i.length)})&&(aqe(e)||Pt(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=Pt(e.program.getSourceFiles(),t=>{var n,i;let s=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!s?.length||!!((i=(n=e.emitDiagnosticsPerFile)==null?void 0:n.get(t.resolvedPath))!=null&&i.length)})||aqe(e))}function aqe(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function sqe(e){return iqe(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function q8t(e){var t,n;let i=e.program.getCurrentDirectory(),s=Ei(Qa(KS(e.compilerOptions),i)),l=e.latestChangedDtsFile?W(e.latestChangedDtsFile):void 0,p=[],g=new Map,m=new Set(e.program.getRootFileNames().map(ie=>Ec(ie,i,e.program.getCanonicalFileName)));if(iqe(e),!N2(e.compilerOptions))return{root:Ka(m,Ne=>z(Ne)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:ye};let x=[];if(e.compilerOptions.outFile){let ie=Ka(e.fileInfos.entries(),([it,ze])=>{let ge=H(it);return ne(it,ge),ze.impliedFormat?{version:ze.version,impliedFormat:ze.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:ze.version});return{fileNames:p,fileInfos:ie,root:x,resolvedRoot:ae(),options:Y(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:fe(),emitDiagnosticsPerFile:te(),changeFileSet:Oe(),outSignature:e.outSignature,latestChangedDtsFile:l,pendingEmit:e.programEmitPending?e.programEmitPending===Ix(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:ye}}let b,S,P,E=Ka(e.fileInfos.entries(),([ie,Ne])=>{var it,ze;let ge=H(ie);ne(ie,ge),I.assert(p[ge-1]===z(ie));let Me=(it=e.oldSignatures)==null?void 0:it.get(ie),Te=Me!==void 0?Me||void 0:Ne.signature;if(e.compilerOptions.composite){let gt=e.program.getSourceFileByPath(ie);if(!cm(gt)&&k2(gt,e.program)){let Tt=(ze=e.emitSignatures)==null?void 0:ze.get(ie);Tt!==Te&&(P=Zr(P,Tt===void 0?ge:[ge,!Ua(Tt)&&Tt[0]===Te?ce:Tt]))}}return Ne.version===Te?Ne.affectsGlobalScope||Ne.impliedFormat?{version:Ne.version,signature:void 0,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:Ne.version:Te!==void 0?Me===void 0?Ne:{version:Ne.version,signature:Te,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:{version:Ne.version,signature:!1,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}}),N;(t=e.referencedMap)!=null&&t.size()&&(N=Ka(e.referencedMap.keys()).sort(fp).map(ie=>[H(ie),X(e.referencedMap.getValues(ie))]));let F=fe(),M;if((n=e.affectedFilesPendingEmit)!=null&&n.size){let ie=Ix(e.compilerOptions),Ne=new Set;for(let it of Ka(e.affectedFilesPendingEmit.keys()).sort(fp))if(Ty(Ne,it)){let ze=e.program.getSourceFileByPath(it);if(!ze||!k2(ze,e.program))continue;let ge=H(it),Me=e.affectedFilesPendingEmit.get(it);M=Zr(M,Me===ie?ge:Me===24?[ge]:[ge,Me])}}return{fileNames:p,fileIdsList:b,fileInfos:E,root:x,resolvedRoot:ae(),options:Y(e.compilerOptions),referencedMap:N,semanticDiagnosticsPerFile:F,emitDiagnosticsPerFile:te(),changeFileSet:Oe(),affectedFilesPendingEmit:M,emitSignatures:P,latestChangedDtsFile:l,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:ye};function W(ie){return z(Qa(ie,i))}function z(ie){return _k(Pd(s,ie,e.program.getCanonicalFileName))}function H(ie){let Ne=g.get(ie);return Ne===void 0&&(p.push(z(ie)),g.set(ie,Ne=p.length)),Ne}function X(ie){let Ne=Ka(ie.keys(),H).sort(mc),it=Ne.join(),ze=S?.get(it);return ze===void 0&&(b=Zr(b,Ne),(S??(S=new Map)).set(it,ze=b.length)),ze}function ne(ie,Ne){let it=e.program.getSourceFile(ie);if(!e.program.getFileIncludeReasons().get(it.path).some(Te=>Te.kind===0))return;if(!x.length)return x.push(Ne);let ze=x[x.length-1],ge=cs(ze);if(ge&&ze[1]===Ne-1)return ze[1]=Ne;if(ge||x.length===1||ze!==Ne-1)return x.push(Ne);let Me=x[x.length-2];return!nm(Me)||Me!==ze-1?x.push(Ne):(x[x.length-2]=[Me,Ne],x.length=x.length-1)}function ae(){let ie;return m.forEach(Ne=>{let it=e.program.getSourceFileByPath(Ne);it&&Ne!==it.resolvedPath&&(ie=Zr(ie,[H(it.resolvedPath),H(Ne)]))}),ie}function Y(ie){let Ne,{optionsNameMap:it}=VN();for(let ze of rm(ie).sort(fp)){let ge=it.get(ze.toLowerCase());ge?.affectsBuildInfo&&((Ne||(Ne={}))[ze]=Ee(ge,ie[ze]))}return Ne}function Ee(ie,Ne){if(ie){if(I.assert(ie.type!=="listOrElement"),ie.type==="list"){let it=Ne;if(ie.element.isFilePath&&it.length)return it.map(W)}else if(ie.isFilePath)return W(Ne)}return Ne}function fe(){let ie;return e.fileInfos.forEach((Ne,it)=>{let ze=e.semanticDiagnosticsPerFile.get(it);ze?ze.length&&(ie=Zr(ie,[H(it),de(ze,it)])):e.changedFilesSet.has(it)||(ie=Zr(ie,H(it)))}),ie}function te(){var ie;let Ne;if(!((ie=e.emitDiagnosticsPerFile)!=null&&ie.size))return Ne;for(let it of Ka(e.emitDiagnosticsPerFile.keys()).sort(fp)){let ze=e.emitDiagnosticsPerFile.get(it);Ne=Zr(Ne,[H(it),de(ze,it)])}return Ne}function de(ie,Ne){return I.assert(!!ie.length),ie.map(it=>{let ze=me(it,Ne);ze.reportsUnnecessary=it.reportsUnnecessary,ze.reportDeprecated=it.reportsDeprecated,ze.source=it.source,ze.skippedOn=it.skippedOn;let{relatedInformation:ge}=it;return ze.relatedInformation=ge?ge.length?ge.map(Me=>me(Me,Ne)):[]:void 0,ze})}function me(ie,Ne){let{file:it}=ie;return{...ie,file:it?it.resolvedPath===Ne?void 0:z(it.resolvedPath):!1,messageText:Ua(ie.messageText)?ie.messageText:ve(ie.messageText)}}function ve(ie){if(ie.repopulateInfo)return{info:ie.repopulateInfo(),next:Pe(ie.next)};let Ne=Pe(ie.next);return Ne===ie.next?ie:{...ie,next:Ne}}function Pe(ie){return ie&&(Ge(ie,(Ne,it)=>{let ze=ve(Ne);if(Ne===ze)return;let ge=it>0?ie.slice(0,it-1):[];ge.push(ze);for(let Me=it+1;Me<ie.length;Me++)ge.push(ve(ie[Me]));return ge})||ie)}function Oe(){let ie;if(e.changedFilesSet.size)for(let Ne of Ka(e.changedFilesSet.keys()).sort(fp))ie=Zr(ie,H(Ne));return ie}}var z0e=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(z0e||{});function RW(e,t,n,i,s,l){let p,g,m;return e===void 0?(I.assert(t===void 0),p=n,m=i,I.assert(!!m),g=m.getProgram()):cs(e)?(m=i,g=ZM({rootNames:e,options:t,host:n,oldProgram:m&&m.getProgramOrUndefined(),configFileParsingDiagnostics:s,projectReferences:l}),p=n):(g=e,p=t,m=n,s=i),{host:p,newProgram:g,oldProgram:m,configFileParsingDiagnostics:s||ce}}function oqe(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function See(e,t,n,i,s){var l;n=oqe(n,s);let p;return(l=s?.diagnostics)!=null&&l.length&&(n+=s.diagnostics.map(x=>`${m(x)}${mr[x.category]}${x.code}: ${g(x.messageText)}`).join(`
|
|
`)),(i.createHash??mv)(n);function g(x){return Ua(x)?x:x===void 0?"":x.next?x.messageText+x.next.map(g).join(`
|
|
`):x.messageText}function m(x){return x.file.resolvedPath===t.resolvedPath?`(${x.start},${x.length})`:(p===void 0&&(p=Ei(t.resolvedPath)),`${_k(Pd(p,x.file.resolvedPath,e.getCanonicalFileName))}(${x.start},${x.length})`)}}function J8t(e,t,n){return(t.createHash??mv)(oqe(e,n))}function Tee(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:s}){let l=i&&i.state;if(l&&t===l.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,l=void 0,i;let p=A8t(t,l);t.getBuildInfo=()=>q8t(O8t(p)),t=void 0,i=void 0,l=void 0;let g=Cee(p,s);return g.state=p,g.hasChangedEmitSignature=()=>!!p.hasChangedEmitSignature,g.getAllDependencies=W=>Qg.getAllDependencies(p,I.checkDefined(p.program),W),g.getSemanticDiagnostics=L,g.getDeclarationDiagnostics=F,g.emit=E,g.releaseProgram=()=>I8t(p),e===0?g.getSemanticDiagnosticsOfNextAffectedFile=M:e===1?(g.getSemanticDiagnosticsOfNextAffectedFile=M,g.emitNextAffectedFile=S,g.emitBuildInfo=m):zs(),g;function m(W,z){if(I.assert(iA(p)),sqe(p)){let H=p.program.emitBuildInfo(W||Ra(n,n.writeFile),z);return p.buildInfoEmitPending=!1,H}return hee}function x(W,z,H,X,ne){var ae,Y,Ee,fe;I.assert(iA(p));let te=ZBe(p,z,n),de=Ix(p.compilerOptions),me=ne?8:H?de&56:de;if(!te){if(p.compilerOptions.outFile){if(p.programEmitPending&&(me=MW(p.programEmitPending,p.seenProgramEmit,H,ne),me&&(te=p.program)),!te&&((ae=p.emitDiagnosticsPerFile)!=null&&ae.size)){let Oe=p.seenProgramEmit||0;if(!(Oe&bee(ne))){p.seenProgramEmit=bee(ne)|Oe;let ie=[];return p.emitDiagnosticsPerFile.forEach(Ne=>ti(ie,Ne)),{result:{emitSkipped:!0,diagnostics:ie},affected:p.program}}}}else{let Oe=F8t(p,H,ne);if(Oe)({affectedFile:te,emitKind:me}=Oe);else{let ie=M8t(p,ne);if(ie)return(p.seenEmittedFiles??(p.seenEmittedFiles=new Map)).set(ie.affectedFile.resolvedPath,ie.seenKind|bee(ne)),{result:{emitSkipped:!0,diagnostics:ie.diagnostics},affected:ie.affectedFile}}}if(!te){if(ne||!sqe(p))return;let Oe=p.program,ie=Oe.emitBuildInfo(W||Ra(n,n.writeFile),z);return p.buildInfoEmitPending=!1,{result:ie,affected:Oe}}}let ve;me&7&&(ve=0),me&56&&(ve=ve===void 0?1:void 0);let Pe=ne?{emitSkipped:!0,diagnostics:p.program.getDeclarationDiagnostics(te===p.program?void 0:te,z)}:p.program.emit(te===p.program?void 0:te,P(W,X),z,ve,X,void 0,!0);if(te!==p.program){let Oe=te;p.seenAffectedFiles.add(Oe.resolvedPath),p.affectedFilesIndex!==void 0&&p.affectedFilesIndex++,p.buildInfoEmitPending=!0;let ie=((Y=p.seenEmittedFiles)==null?void 0:Y.get(Oe.resolvedPath))||0;(p.seenEmittedFiles??(p.seenEmittedFiles=new Map)).set(Oe.resolvedPath,me|ie);let Ne=((Ee=p.affectedFilesPendingEmit)==null?void 0:Ee.get(Oe.resolvedPath))||de,it=FW(Ne,me|ie);it?(p.affectedFilesPendingEmit??(p.affectedFilesPendingEmit=new Map)).set(Oe.resolvedPath,it):(fe=p.affectedFilesPendingEmit)==null||fe.delete(Oe.resolvedPath),Pe.diagnostics.length&&(p.emitDiagnosticsPerFile??(p.emitDiagnosticsPerFile=new Map)).set(Oe.resolvedPath,Pe.diagnostics)}else p.changedFilesSet.clear(),p.programEmitPending=p.changedFilesSet.size?FW(de,me):p.programEmitPending?FW(p.programEmitPending,me):void 0,p.seenProgramEmit=me|(p.seenProgramEmit||0),b(Pe.diagnostics),p.buildInfoEmitPending=!0;return{result:Pe,affected:te}}function b(W){let z;W.forEach(H=>{if(!H.file)return;let X=z?.get(H.file.resolvedPath);X||(z??(z=new Map)).set(H.file.resolvedPath,X=[]),X.push(H)}),z&&(p.emitDiagnosticsPerFile=z)}function S(W,z,H,X){return x(W,z,H,X,!1)}function P(W,z){return I.assert(iA(p)),y_(p.compilerOptions)?(H,X,ne,ae,Y,Ee)=>{var fe,te,de;if(Wu(H))if(p.compilerOptions.outFile){if(p.compilerOptions.composite){let ve=me(p.outSignature,void 0);if(!ve)return Ee.skippedDtsWrite=!0;p.outSignature=ve}}else{I.assert(Y?.length===1);let ve;if(!z){let Pe=Y[0],Oe=p.fileInfos.get(Pe.resolvedPath);if(Oe.signature===Pe.version){let ie=See(p.program,Pe,X,n,Ee);(fe=Ee?.diagnostics)!=null&&fe.length||(ve=ie),ie!==Pe.version&&(n.storeSignatureInfo&&(p.signatureInfo??(p.signatureInfo=new Map)).set(Pe.resolvedPath,1),p.affectedFiles&&((te=p.oldSignatures)==null?void 0:te.get(Pe.resolvedPath))===void 0&&(p.oldSignatures??(p.oldSignatures=new Map)).set(Pe.resolvedPath,Oe.signature||!1),Oe.signature=ie)}}if(p.compilerOptions.composite){let Pe=Y[0].resolvedPath;if(ve=me((de=p.emitSignatures)==null?void 0:de.get(Pe),ve),!ve)return Ee.skippedDtsWrite=!0;(p.emitSignatures??(p.emitSignatures=new Map)).set(Pe,ve)}}W?W(H,X,ne,ae,Y,Ee):n.writeFile?n.writeFile(H,X,ne,ae,Y,Ee):p.program.writeFile(H,X,ne,ae,Y,Ee);function me(ve,Pe){let Oe=!ve||Ua(ve)?ve:ve[0];if(Pe??(Pe=J8t(X,n,Ee)),Pe===Oe){if(ve===Oe)return;Ee?Ee.differsOnlyInMap=!0:Ee={differsOnlyInMap:!0}}else p.hasChangedEmitSignature=!0,p.latestChangedDtsFile=H;return Pe}}:W||Ra(n,n.writeFile)}function E(W,z,H,X,ne){I.assert(iA(p)),e===1&&j0e(p,W);let ae=yee(g,W,z,H);if(ae)return ae;if(!W)if(e===1){let Ee=[],fe=!1,te,de=[],me;for(;me=S(z,H,X,ne);)fe=fe||me.result.emitSkipped,te=ti(te,me.result.diagnostics),de=ti(de,me.result.emittedFiles),Ee=ti(Ee,me.result.sourceMaps);return{emitSkipped:fe,diagnostics:te||ce,emittedFiles:de,sourceMaps:Ee}}else eqe(p,X,!1);let Y=p.program.emit(W,P(z,ne),H,X,ne);return N(W,X,!1,Y.diagnostics),Y}function N(W,z,H,X){!W&&e!==1&&(eqe(p,z,H),b(X))}function F(W,z){var H;if(I.assert(iA(p)),e===1){j0e(p,W);let X,ne;for(;X=x(void 0,z,void 0,void 0,!0);)W||(ne=ti(ne,X.result.diagnostics));return(W?(H=p.emitDiagnosticsPerFile)==null?void 0:H.get(W.resolvedPath):ne)||ce}else{let X=p.program.getDeclarationDiagnostics(W,z);return N(W,void 0,!0,X),X}}function M(W,z){for(I.assert(iA(p));;){let H=ZBe(p,W,n),X;if(H)if(H!==p.program){let ne=H;if((!z||!z(ne))&&(X=xee(p,ne,W)),p.seenAffectedFiles.add(ne.resolvedPath),p.affectedFilesIndex++,p.buildInfoEmitPending=!0,!X)continue}else{let ne,ae=new Map;p.program.getSourceFiles().forEach(Y=>ne=ti(ne,xee(p,Y,W,ae))),p.semanticDiagnosticsPerFile=ae,X=ne||ce,p.changedFilesSet.clear(),p.programEmitPending=Ix(p.compilerOptions),p.compilerOptions.noCheck||(p.checkPending=void 0),p.buildInfoEmitPending=!0}else{p.checkPending&&!p.compilerOptions.noCheck&&(p.checkPending=void 0,p.buildInfoEmitPending=!0);return}return{result:X,affected:H}}}function L(W,z){if(I.assert(iA(p)),j0e(p,W),W)return xee(p,W,z);for(;;){let X=M(z);if(!X)break;if(X.affected===p.program)return X.result}let H;for(let X of p.program.getSourceFiles())H=ti(H,xee(p,X,z));return p.checkPending&&!p.compilerOptions.noCheck&&(p.checkPending=void 0,p.buildInfoEmitPending=!0),H||ce}}function wee(e,t,n){var i,s;let l=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,l|n),(s=e.emitDiagnosticsPerFile)==null||s.delete(t)}function W0e(e){return Ua(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ua(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function U0e(e,t){return nm(e)?t:e[1]||24}function $0e(e,t){return e||Ix(t||{})}function V0e(e,t,n){var i,s,l,p;let g=Ei(Qa(t,n.getCurrentDirectory())),m=Xu(n.useCaseSensitiveFileNames()),x,b=(i=e.fileNames)==null?void 0:i.map(F),S,P=e.latestChangedDtsFile?M(e.latestChangedDtsFile):void 0,E=new Map,N=new Set(Dt(e.changeFileSet,L));if(J0e(e))e.fileInfos.forEach((ne,ae)=>{let Y=L(ae+1);E.set(Y,Ua(ne)?{version:ne,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ne)}),x={fileInfos:E,compilerOptions:e.options?Vz(e.options,M):{},semanticDiagnosticsPerFile:H(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:X(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:N,latestChangedDtsFile:P,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:$0e(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{S=(s=e.fileIdsList)==null?void 0:s.map(Y=>new Set(Y.map(L)));let ne=(l=e.options)!=null&&l.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((Y,Ee)=>{let fe=L(Ee+1),te=W0e(Y);E.set(fe,te),ne&&te.signature&&ne.set(fe,te.signature)}),(p=e.emitSignatures)==null||p.forEach(Y=>{if(nm(Y))ne.delete(L(Y));else{let Ee=L(Y[0]);ne.set(Ee,!Ua(Y[1])&&!Y[1].length?[ne.get(Ee)]:Y[1])}});let ae=e.affectedFilesPendingEmit?Ix(e.options||{}):void 0;x={fileInfos:E,compilerOptions:e.options?Vz(e.options,M):{},referencedMap:z(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:H(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:X(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:N,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&ck(e.affectedFilesPendingEmit,Y=>L(nm(Y)?Y:Y[0]),Y=>U0e(Y,ae)),latestChangedDtsFile:P,emitSignatures:ne?.size?ne:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:x,getProgram:zs,getProgramOrUndefined:Rg,releaseProgram:Ko,getCompilerOptions:()=>x.compilerOptions,getSourceFile:zs,getSourceFiles:zs,getOptionsDiagnostics:zs,getGlobalDiagnostics:zs,getConfigFileParsingDiagnostics:zs,getSyntacticDiagnostics:zs,getDeclarationDiagnostics:zs,getSemanticDiagnostics:zs,emit:zs,getAllDependencies:zs,getCurrentDirectory:zs,emitNextAffectedFile:zs,getSemanticDiagnosticsOfNextAffectedFile:zs,emitBuildInfo:zs,close:Ko,hasChangedEmitSignature:cd};function F(ne){return Ec(ne,g,m)}function M(ne){return Qa(ne,g)}function L(ne){return b[ne-1]}function W(ne){return S[ne-1]}function z(ne,ae){let Y=Qg.createReferencedMap(ae);return!Y||!ne||ne.forEach(([Ee,fe])=>Y.set(L(Ee),W(fe))),Y}function H(ne){let ae=new Map(pf(E.keys(),Y=>N.has(Y)?void 0:[Y,ce]));return ne?.forEach(Y=>{nm(Y)?ae.delete(L(Y)):ae.set(L(Y[0]),Y[1])}),ae}function X(ne){return ne&&ck(ne,ae=>L(ae[0]),ae=>ae[1])}}function kee(e,t,n){let i=Ei(Qa(t,n.getCurrentDirectory())),s=Xu(n.useCaseSensitiveFileNames()),l=new Map,p=0,g=new Map,m=new Map(e.resolvedRoot);return e.fileInfos.forEach((b,S)=>{let P=Ec(e.fileNames[S],i,s),E=Ua(b)?b:b.version;if(l.set(P,E),p<e.root.length){let N=e.root[p],F=S+1;cs(N)?N[0]<=F&&F<=N[1]&&(x(F,P),N[1]===F&&p++):N===F&&(x(F,P),p++)}}),{fileInfos:l,roots:g};function x(b,S){let P=m.get(b);P?g.set(Ec(e.fileNames[P-1],i,s),S):g.set(S,void 0)}}function H0e(e,t,n){if(!B8t(e))return;let i=Ei(Qa(t,n.getCurrentDirectory())),s=Xu(n.useCaseSensitiveFileNames());return e.root.map(l=>Ec(l,i,s))}function Cee(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:i=>n().getSourceFile(i),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:i=>n().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>n().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>n().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>n().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>n().getSemanticDiagnostics(i,s),emit:(i,s,l,p,g)=>n().emit(i,s,l,p,g),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:zs,getCurrentDirectory:()=>n().getCurrentDirectory(),close:Ko};function n(){return I.checkDefined(e.program)}}function cqe(e,t,n,i,s,l){return Tee(0,RW(e,t,n,i,s,l))}function Pee(e,t,n,i,s,l){return Tee(1,RW(e,t,n,i,s,l))}function lqe(e,t,n,i,s,l){let{newProgram:p,configFileParsingDiagnostics:g}=RW(e,t,n,i,s,l);return Cee({program:p,compilerOptions:p.getCompilerOptions()},g)}function jW(e){return bc(e,"/node_modules/.staging")?a2(e,"/.staging"):Pt(KB,t=>e.includes(t))?void 0:e}function G0e(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-z]:/i)===0;if(e[0]!==jc&&!i&&e[1].search(/[a-z]\$$/i)===0){if(t===2)return 2;n=2,i=!0}return i&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function Eee(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let n=G0e(e,t);return t>n+1}function rR(e){return Eee(jp(e))}function K0e(e){return pqe(Ei(e))}function uqe(e,t){if(t.length<t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function pqe(e){return rR(e)}function Q0e(e){return pqe(e)}function Dee(e,t,n,i,s,l,p,g){let m=jp(t);e=j_(e)?Zs(e):Qa(e,p());let x=jp(e),b=G0e(m,m.length);if(m.length<=b+1)return;let S=m.indexOf("node_modules");if(S!==-1&&S+1<=b+1)return;let P=m.lastIndexOf("node_modules");return l&&uqe(s,m)?m.length>s.length+1?X0e(x,m,Math.max(s.length+1,b+1),P):{dir:n,dirPath:i,nonRecursive:!0}:fqe(x,m,m.length-1,b,S,s,P,g)}function fqe(e,t,n,i,s,l,p,g){if(s!==-1)return X0e(e,t,s+1,p);let m=!0,x=n;if(!g){for(let b=0;b<n;b++)if(t[b]!==l[b]){m=!1,x=Math.max(b+1,i+1);break}}return X0e(e,t,x,p,m)}function X0e(e,t,n,i,s){let l;return i!==-1&&i+1>=n&&i+2<t.length&&(La(t[i+1],"@")?i+3<t.length&&(l=i+3):l=i+2),{dir:vS(e,n),dirPath:vS(t,n),nonRecursive:s,packageDir:l!==void 0?vS(e,l):void 0,packageDirPath:l!==void 0?vS(t,l):void 0}}function Y0e(e,t,n,i,s,l,p,g){let m=jp(t);if(s&&uqe(i,m))return n;e=j_(e)?Zs(e):Qa(e,l());let x=fqe(jp(e),m,m.length,G0e(m,m.length),m.indexOf("node_modules"),i,m.lastIndexOf("node_modules"),p);return x&&g(x.dirPath)?x.dirPath:void 0}function Z0e(e,t){let n=Qa(e,t());return hK(n)?n:T1(n)}function LW(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function e1e(e,t,n,i,s){return{nameAndMode:PW,resolve:(l,p)=>z8t(i,s,l,e,n,t,p)}}function z8t(e,t,n,i,s,l,p){let g=LW(e),m=Yk(n,i,s,g,t,l,p);if(!e.getGlobalTypingsCacheLocation)return m;let x=e.getGlobalTypingsCacheLocation();if(x!==void 0&&!Hu(n)&&!(m.resolvedModule&&HJ(m.resolvedModule.extension))){let{resolvedModule:b,failedLookupLocations:S,affectingLocations:P,resolutionDiagnostics:E}=pve(I.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,s,g,x,t);if(b)return m.resolvedModule=b,m.failedLookupLocations=HN(m.failedLookupLocations,S),m.affectingLocations=HN(m.affectingLocations,P),m.resolutionDiagnostics=HN(m.resolutionDiagnostics,E),m}return m}function Oee(e,t,n){let i,s,l,p=new Set,g=new Set,m=new Set,x=new Map,b=new Map,S=!1,P,E,N,F,M,L=!1,W=Cu(()=>e.getCurrentDirectory()),z=e.getCachedDirectoryStructureHost(),H=new Map,X=KN(W(),e.getCanonicalFileName,e.getCompilationSettings()),ne=new Map,ae=rW(W(),e.getCanonicalFileName,e.getCompilationSettings(),X.getPackageJsonInfoCache(),X.optionsToRedirectsKey),Y=new Map,Ee=KN(W(),e.getCanonicalFileName,pZ(e.getCompilationSettings()),X.getPackageJsonInfoCache()),fe=new Map,te=new Map,de=Z0e(t,W),me=e.toPath(de),ve=jp(me),Pe=Eee(ve),Oe=new Map,ie=new Map,Ne=new Map,it=new Map;return{rootDirForResolution:t,resolvedModuleNames:H,resolvedTypeReferenceDirectives:ne,resolvedLibraries:Y,resolvedFileToResolution:x,resolutionsWithFailedLookups:g,resolutionsWithOnlyAffectingLocations:m,directoryWatchesOfFailedLookups:fe,fileWatchesOfAffectingLocations:te,packageDirWatchers:ie,dirPathToSymlinkPackageRefCount:Ne,watchFailedLookupLocationsOfExternalModuleResolutions:pr,getModuleResolutionCache:()=>X,startRecordingFilesWithChangedResolutions:Me,finishRecordingFilesWithChangedResolutions:Te,startCachingPerDirectoryResolution:xe,finishCachingPerDirectoryResolution:pe,resolveModuleNameLiterals:ar,resolveTypeReferenceDirectiveReferences:jt,resolveLibrary:Or,resolveSingleModuleNameWithoutWatching:nn,removeResolutionsFromProjectReferenceRedirects:Pi,removeResolutionsOfFile:da,hasChangedAutomaticTypeDirectiveNames:()=>S,invalidateResolutionOfFile:no,invalidateResolutionsOfFailedLookupLocations:Qt,setFilesWithInvalidatedNonRelativeUnresolvedImports:Vr,createHasInvalidatedResolutions:Tt,isFileWithInvalidatedNonRelativeUnresolvedImports:gt,updateTypeRootsWatch:vt,closeTypeRootsWatch:Ue,clear:ze,onChangesAffectModuleResolution:ge};function ze(){h_(fe,ym),h_(te,ym),Oe.clear(),ie.clear(),Ne.clear(),p.clear(),Ue(),H.clear(),ne.clear(),x.clear(),g.clear(),m.clear(),N=void 0,F=void 0,M=void 0,E=void 0,P=void 0,L=!1,X.clear(),ae.clear(),X.update(e.getCompilationSettings()),ae.update(e.getCompilationSettings()),Ee.clear(),b.clear(),Y.clear(),S=!1}function ge(){L=!0,X.clearAllExceptPackageJsonInfoCache(),ae.clearAllExceptPackageJsonInfoCache(),X.update(e.getCompilationSettings()),ae.update(e.getCompilationSettings())}function Me(){i=[]}function Te(){let Qe=i;return i=void 0,Qe}function gt(Qe){if(!l)return!1;let Lt=l.get(Qe);return!!Lt&&!!Lt.length}function Tt(Qe,Lt){Qt();let Rt=s;return s=void 0,{hasInvalidatedResolutions:Xt=>Qe(Xt)||L||!!Rt?.has(Xt)||gt(Xt),hasInvalidatedLibResolutions:Xt=>{var ut;return Lt(Xt)||!!((ut=Y?.get(Xt))!=null&&ut.isInvalidated)}}}function xe(){X.isReadonly=void 0,ae.isReadonly=void 0,Ee.isReadonly=void 0,X.getPackageJsonInfoCache().isReadonly=void 0,X.clearAllExceptPackageJsonInfoCache(),ae.clearAllExceptPackageJsonInfoCache(),Ee.clearAllExceptPackageJsonInfoCache(),$a(),Oe.clear()}function nt(Qe){Y.forEach((Lt,Rt)=>{var Xt;(Xt=Qe?.resolvedLibReferences)!=null&&Xt.has(Rt)||(It(Lt,e.toPath(DW(e.getCompilationSettings(),W(),Rt)),WP),Y.delete(Rt))})}function pe(Qe,Lt){l=void 0,L=!1,$a(),Qe!==Lt&&(nt(Qe),Qe?.getSourceFiles().forEach(Rt=>{var Xt;let ut=((Xt=Rt.packageJsonLocations)==null?void 0:Xt.length)??0,lr=b.get(Rt.resolvedPath)??ce;for(let In=lr.length;In<ut;In++)Gt(Rt.packageJsonLocations[In],!1);if(lr.length>ut)for(let In=ut;In<lr.length;In++)te.get(lr[In]).files--;ut?b.set(Rt.resolvedPath,Rt.packageJsonLocations):b.delete(Rt.resolvedPath)}),b.forEach((Rt,Xt)=>{let ut=Qe?.getSourceFileByPath(Xt);(!ut||ut.resolvedPath!==Xt)&&(Rt.forEach(lr=>te.get(lr).files--),b.delete(Xt))})),fe.forEach(qe),te.forEach(je),ie.forEach(He),S=!1,X.isReadonly=!0,ae.isReadonly=!0,Ee.isReadonly=!0,X.getPackageJsonInfoCache().isReadonly=!0,Oe.clear()}function He(Qe,Lt){Qe.dirPathToWatcher.size===0&&ie.delete(Lt)}function qe(Qe,Lt){Qe.refCount===0&&(fe.delete(Lt),Qe.watcher.close())}function je(Qe,Lt){var Rt;Qe.files===0&&Qe.resolutions===0&&!((Rt=Qe.symlinks)!=null&&Rt.size)&&(te.delete(Lt),Qe.watcher.close())}function st({entries:Qe,containingFile:Lt,containingSourceFile:Rt,redirectedReference:Xt,options:ut,perFileCache:lr,reusedNames:In,loader:We,getResolutionWithResolvedFileName:qt,deferWatchingNonRelativeResolution:ke,shouldRetryResolution:$,logChanges:Ke}){let re=e.toPath(Lt),Ft=lr.get(re)||lr.set(re,GN()).get(re),rr=[],Le=Ke&>(re),kt=e.getCurrentProgram(),dr=kt&&kt.getResolvedProjectReferenceToRedirect(Lt),kn=dr?!Xt||Xt.sourceFile.path!==dr.sourceFile.path:!!Xt,Kr=GN();for(let yt of Qe){let Bt=We.nameAndMode.getName(yt),cr=We.nameAndMode.getMode(yt,Rt,Xt?.commandLine.options||ut),er=Ft.get(Bt,cr);if(!Kr.has(Bt,cr)&&(L||kn||!er||er.isInvalidated||Le&&!Hu(Bt)&&$(er))){let zr=er;er=We.resolve(Bt,cr),e.onDiscoveredSymlink&&W8t(er)&&e.onDiscoveredSymlink(),Ft.set(Bt,cr,er),er!==zr&&(pr(Bt,er,re,qt,ke),zr&&It(zr,re,qt)),Ke&&i&&!yn(zr,er)&&(i.push(re),Ke=!1)}else{let zr=LW(e);if(Ex(ut,zr)&&!Kr.has(Bt,cr)){let Pr=qt(er);es(zr,lr===H?Pr?.resolvedFileName?Pr.packageId?y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Pr?.resolvedFileName?Pr.packageId?y.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:y.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:y.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Bt,Lt,Pr?.resolvedFileName,Pr?.packageId&&TS(Pr.packageId))}}I.assert(er!==void 0&&!er.isInvalidated),Kr.set(Bt,cr,!0),rr.push(er)}return In?.forEach(yt=>Kr.set(We.nameAndMode.getName(yt),We.nameAndMode.getMode(yt,Rt,Xt?.commandLine.options||ut),!0)),Ft.size()!==Kr.size()&&Ft.forEach((yt,Bt,cr)=>{Kr.has(Bt,cr)||(It(yt,re,qt),Ft.delete(Bt,cr))}),rr;function yn(yt,Bt){if(yt===Bt)return!0;if(!yt||!Bt)return!1;let cr=qt(yt),er=qt(Bt);return cr===er?!0:!cr||!er?!1:cr.resolvedFileName===er.resolvedFileName}}function jt(Qe,Lt,Rt,Xt,ut,lr){return st({entries:Qe,containingFile:Lt,containingSourceFile:ut,redirectedReference:Rt,options:Xt,reusedNames:lr,perFileCache:ne,loader:EW(Lt,Rt,Xt,LW(e),ae),getResolutionWithResolvedFileName:Eq,shouldRetryResolution:In=>In.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function ar(Qe,Lt,Rt,Xt,ut,lr){return st({entries:Qe,containingFile:Lt,containingSourceFile:ut,redirectedReference:Rt,options:Xt,reusedNames:lr,perFileCache:H,loader:e1e(Lt,Rt,Xt,e,X),getResolutionWithResolvedFileName:WP,shouldRetryResolution:In=>!In.resolvedModule||!A4(In.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function Or(Qe,Lt,Rt,Xt){let ut=LW(e),lr=Y?.get(Xt);if(!lr||lr.isInvalidated){let In=lr;lr=nW(Qe,Lt,Rt,ut,Ee);let We=e.toPath(Lt);pr(Qe,lr,We,WP,!1),Y.set(Xt,lr),In&&It(In,We,WP)}else if(Ex(Rt,ut)){let In=WP(lr);es(ut,In?.resolvedFileName?In.packageId?y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:y.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Qe,Lt,In?.resolvedFileName,In?.packageId&&TS(In.packageId))}return lr}function nn(Qe,Lt){var Rt,Xt;let ut=e.toPath(Lt),lr=H.get(ut),In=lr?.get(Qe,void 0);if(In&&!In.isInvalidated)return In;let We=(Rt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:Rt.call(e,X),qt=LW(e),ke=Yk(Qe,Lt,e.getCompilationSettings(),qt,X);return(Xt=e.afterResolveSingleModuleNameWithoutWatching)==null||Xt.call(e,X,Qe,Lt,ke,We),ke}function Ct(Qe){return bc(Qe,"/node_modules/@types")}function pr(Qe,Lt,Rt,Xt,ut){if((Lt.files??(Lt.files=new Set)).add(Rt),Lt.files.size!==1)return;!ut||Hu(Qe)?ta(Lt):p.add(Lt);let lr=Xt(Lt);if(lr&&lr.resolvedFileName){let In=e.toPath(lr.resolvedFileName),We=x.get(In);We||x.set(In,We=new Set),We.add(Lt)}}function vn(Qe,Lt){let Rt=e.toPath(Qe),Xt=Dee(Qe,Rt,de,me,ve,Pe,W,e.preferNonRecursiveWatch);if(Xt){let{dir:ut,dirPath:lr,nonRecursive:In,packageDir:We,packageDirPath:qt}=Xt;lr===me?(I.assert(In),I.assert(!We),Lt=!0):Wn(ut,lr,We,qt,In)}return Lt}function ta(Qe){var Lt;I.assert(!!((Lt=Qe.files)!=null&&Lt.size));let{failedLookupLocations:Rt,affectingLocations:Xt,alternateResult:ut}=Qe;if(!Rt?.length&&!Xt?.length&&!ut)return;(Rt?.length||ut)&&g.add(Qe);let lr=!1;if(Rt)for(let In of Rt)lr=vn(In,lr);ut&&(lr=vn(ut,lr)),lr&&Wn(de,me,void 0,void 0,!0),ts(Qe,!Rt?.length&&!ut)}function ts(Qe,Lt){var Rt;I.assert(!!((Rt=Qe.files)!=null&&Rt.size));let{affectingLocations:Xt}=Qe;if(Xt?.length){Lt&&m.add(Qe);for(let ut of Xt)Gt(ut,!0)}}function Gt(Qe,Lt){let Rt=te.get(Qe);if(Rt){Lt?Rt.resolutions++:Rt.files++;return}let Xt=Qe,ut=!1,lr;e.realpath&&(Xt=e.realpath(Qe),Qe!==Xt&&(ut=!0,lr=te.get(Xt)));let In=Lt?1:0,We=Lt?0:1;if(!ut||!lr){let qt={watcher:Q0e(e.toPath(Xt))?e.watchAffectingFileLocation(Xt,(ke,$)=>{z?.addOrDeleteFile(ke,e.toPath(Xt),$),hi(Xt,X.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):sA,resolutions:ut?0:In,files:ut?0:We,symlinks:void 0};te.set(Xt,qt),ut&&(lr=qt)}if(ut){I.assert(!!lr);let qt={watcher:{close:()=>{var ke;let $=te.get(Xt);(ke=$?.symlinks)!=null&&ke.delete(Qe)&&!$.symlinks.size&&!$.resolutions&&!$.files&&(te.delete(Xt),$.watcher.close())}},resolutions:In,files:We,symlinks:void 0};te.set(Qe,qt),(lr.symlinks??(lr.symlinks=new Set)).add(Qe)}}function hi(Qe,Lt){var Rt;let Xt=te.get(Qe);Xt?.resolutions&&(E??(E=new Set)).add(Qe),Xt?.files&&(P??(P=new Set)).add(Qe),(Rt=Xt?.symlinks)==null||Rt.forEach(ut=>hi(ut,Lt)),Lt?.delete(e.toPath(Qe))}function $a(){p.forEach(ta),p.clear()}function ui(Qe,Lt,Rt,Xt,ut){I.assert(!ut);let lr=Oe.get(Xt),In=ie.get(Xt);if(lr===void 0){let ke=e.realpath(Rt);lr=ke!==Rt&&e.toPath(ke)!==Xt,Oe.set(Xt,lr),In?In.isSymlink!==lr&&(In.dirPathToWatcher.forEach($=>{Cr(In.isSymlink?Xt:Lt),$.watcher=qt()}),In.isSymlink=lr):ie.set(Xt,In={dirPathToWatcher:new Map,isSymlink:lr})}else I.assertIsDefined(In),I.assert(lr===In.isSymlink);let We=In.dirPathToWatcher.get(Lt);We?We.refCount++:(In.dirPathToWatcher.set(Lt,{watcher:qt(),refCount:1}),lr&&Ne.set(Lt,(Ne.get(Lt)??0)+1));function qt(){return lr?Gi(Rt,Xt,ut):Gi(Qe,Lt,ut)}}function Wn(Qe,Lt,Rt,Xt,ut){!Xt||!e.realpath?Gi(Qe,Lt,ut):ui(Qe,Lt,Rt,Xt,ut)}function Gi(Qe,Lt,Rt){let Xt=fe.get(Lt);return Xt?(I.assert(!!Rt==!!Xt.nonRecursive),Xt.refCount++):fe.set(Lt,Xt={watcher:wn(Qe,Lt,Rt),refCount:1,nonRecursive:Rt}),Xt}function at(Qe,Lt){let Rt=e.toPath(Qe),Xt=Dee(Qe,Rt,de,me,ve,Pe,W,e.preferNonRecursiveWatch);if(Xt){let{dirPath:ut,packageDirPath:lr}=Xt;if(ut===me)Lt=!0;else if(lr&&e.realpath){let In=ie.get(lr),We=In.dirPathToWatcher.get(ut);if(We.refCount--,We.refCount===0&&(Cr(In.isSymlink?lr:ut),In.dirPathToWatcher.delete(ut),In.isSymlink)){let qt=Ne.get(ut)-1;qt===0?Ne.delete(ut):Ne.set(ut,qt)}}else Cr(ut)}return Lt}function It(Qe,Lt,Rt){if(I.checkDefined(Qe.files).delete(Lt),Qe.files.size)return;Qe.files=void 0;let Xt=Rt(Qe);if(Xt&&Xt.resolvedFileName){let We=e.toPath(Xt.resolvedFileName),qt=x.get(We);qt?.delete(Qe)&&!qt.size&&x.delete(We)}let{failedLookupLocations:ut,affectingLocations:lr,alternateResult:In}=Qe;if(g.delete(Qe)){let We=!1;if(ut)for(let qt of ut)We=at(qt,We);In&&(We=at(In,We)),We&&Cr(me)}else lr?.length&&m.delete(Qe);if(lr)for(let We of lr){let qt=te.get(We);qt.resolutions--}}function Cr(Qe){let Lt=fe.get(Qe);Lt.refCount--}function wn(Qe,Lt,Rt){return e.watchDirectoryOfFailedLookupLocation(Qe,Xt=>{let ut=e.toPath(Xt);z&&z.addOrDeleteFileOrDirectory(Xt,ut),_s(ut,Lt===ut)},Rt?0:1)}function Di(Qe,Lt,Rt){let Xt=Qe.get(Lt);Xt&&(Xt.forEach(ut=>It(ut,Lt,Rt)),Qe.delete(Lt))}function Pi(Qe){if(!il(Qe,".json"))return;let Lt=e.getCurrentProgram();if(!Lt)return;let Rt=Lt.getResolvedProjectReferenceByPath(Qe);Rt&&Rt.commandLine.fileNames.forEach(Xt=>da(e.toPath(Xt)))}function da(Qe){Di(H,Qe,WP),Di(ne,Qe,Eq)}function ks(Qe,Lt){if(!Qe)return!1;let Rt=!1;return Qe.forEach(Xt=>{if(!(Xt.isInvalidated||!Lt(Xt))){Xt.isInvalidated=Rt=!0;for(let ut of I.checkDefined(Xt.files))(s??(s=new Set)).add(ut),S=S||bc(ut,E3)}}),Rt}function no(Qe){da(Qe);let Lt=S;ks(x.get(Qe),v1)&&S&&!Lt&&e.onChangedAutomaticTypeDirectiveNames()}function Vr(Qe){I.assert(l===Qe||l===void 0),l=Qe}function _s(Qe,Lt){if(Lt)(M||(M=new Set)).add(Qe);else{let Rt=jW(Qe);if(!Rt||(Qe=Rt,e.fileIsOpen(Qe)))return!1;let Xt=Ei(Qe);if(Ct(Qe)||eq(Qe)||Ct(Xt)||eq(Xt))(N||(N=new Set)).add(Qe),(F||(F=new Set)).add(Qe);else{if(b0e(e.getCurrentProgram(),Qe)||il(Qe,".map"))return!1;(N||(N=new Set)).add(Qe),(F||(F=new Set)).add(Qe);let ut=IM(Qe,!0);ut&&(F||(F=new Set)).add(ut)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ft(){let Qe=X.getPackageJsonInfoCache().getInternalMap();Qe&&(N||F||M)&&Qe.forEach((Lt,Rt)=>wt(Rt)?Qe.delete(Rt):void 0)}function Qt(){var Qe;if(L)return P=void 0,ft(),(N||F||M||E)&&ks(Y,he),N=void 0,F=void 0,M=void 0,E=void 0,!0;let Lt=!1;return P&&((Qe=e.getCurrentProgram())==null||Qe.getSourceFiles().forEach(Rt=>{Pt(Rt.packageJsonLocations,Xt=>P.has(Xt))&&((s??(s=new Set)).add(Rt.path),Lt=!0)}),P=void 0),!N&&!F&&!M&&!E||(Lt=ks(g,he)||Lt,ft(),N=void 0,F=void 0,M=void 0,Lt=ks(m,oe)||Lt,E=void 0),Lt}function he(Qe){var Lt;return oe(Qe)?!0:!N&&!F&&!M?!1:((Lt=Qe.failedLookupLocations)==null?void 0:Lt.some(Rt=>wt(e.toPath(Rt))))||!!Qe.alternateResult&&wt(e.toPath(Qe.alternateResult))}function wt(Qe){return N?.has(Qe)||si(F?.keys()||[],Lt=>La(Qe,Lt)?!0:void 0)||si(M?.keys()||[],Lt=>Qe.length>Lt.length&&La(Qe,Lt)&&(hK(Lt)||Qe[Lt.length]===jc)?!0:void 0)}function oe(Qe){var Lt;return!!E&&((Lt=Qe.affectingLocations)==null?void 0:Lt.some(Rt=>E.has(Rt)))}function Ue(){h_(it,hg)}function pt(Qe){return $t(Qe)?e.watchTypeRootsDirectory(Qe,Lt=>{let Rt=e.toPath(Lt);z&&z.addOrDeleteFileOrDirectory(Lt,Rt),S=!0,e.onChangedAutomaticTypeDirectiveNames();let Xt=Y0e(Qe,e.toPath(Qe),me,ve,Pe,W,e.preferNonRecursiveWatch,ut=>fe.has(ut)||Ne.has(ut));Xt&&_s(Rt,Xt===Rt)},1):sA}function vt(){let Qe=e.getCompilationSettings();if(Qe.types){Ue();return}let Lt=f3(Qe,{getCurrentDirectory:W});Lt?P4(it,new Set(Lt),{createNewValue:pt,onDeleteValue:hg}):Ue()}function $t(Qe){return e.getCompilationSettings().typeRoots?!0:K0e(e.toPath(Qe))}}function W8t(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var _qe=Ru?{getCurrentDirectory:()=>Ru.getCurrentDirectory(),getNewLine:()=>Ru.newLine,getCanonicalFileName:Xu(Ru.useCaseSensitiveFileNames)}:void 0;function JE(e,t){let n=e===Ru&&_qe?_qe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Xu(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(uee(s,n));let i=new Array(1);return s=>{i[0]=s,e.write(P0e(i,n)+n.getNewLine()),i[0]=void 0}}function dqe(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&Ta(mqe,t.code)?(e.clearScreen(),!0):!1}var mqe=[y.Starting_compilation_in_watch_mode.code,y.File_change_detected_Starting_incremental_compilation.code];function U8t(e,t){return Ta(mqe,e.code)?t+t:t}function nR(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function Nee(e,t){return t?(n,i,s)=>{dqe(e,n,s);let l=`[${K2(nR(e),"\x1B[90m")}] `;l+=`${Uh(n.messageText,e.newLine)}${i+i}`,e.write(l)}:(n,i,s)=>{let l="";dqe(e,n,s)||(l+=i),l+=`${nR(e)} - `,l+=`${Uh(n.messageText,e.newLine)}${U8t(n,i)}`,e.write(l)}}function t1e(e,t,n,i,s,l){let p=s;p.onUnRecoverableConfigFileDiagnostic=m=>yqe(s,l,m);let g=CM(e,t,p,n,i);return p.onUnRecoverableConfigFileDiagnostic=void 0,g}function BW(e){return Vu(e,t=>t.category===1)}function qW(e){return Cn(e,n=>n.category===1).map(n=>{if(n.file!==void 0)return`${n.file.fileName}`}).map(n=>{if(n===void 0)return;let i=Ir(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){let{line:s}=$s(i.file,i.start);return{fileName:n,line:s+1}}})}function Aee(e){return e===1?y.Found_1_error_Watching_for_file_changes:y.Found_0_errors_Watching_for_file_changes}function gqe(e,t){let n=K2(":"+e.line,"\x1B[90m");return FI(e.fileName)&&FI(t)?Pd(t,e.fileName,!1)+n:e.fileName+n}function Iee(e,t,n,i){if(e===0)return"";let s=t.filter(b=>b!==void 0),l=s.map(b=>`${b.fileName}:${b.line}`).filter((b,S,P)=>P.indexOf(b)===S),p=s[0]&&gqe(s[0],i.getCurrentDirectory()),g;e===1?g=t[0]!==void 0?[y.Found_1_error_in_0,p]:[y.Found_1_error]:g=l.length===0?[y.Found_0_errors,e]:l.length===1?[y.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,p]:[y.Found_0_errors_in_1_files,e,l.length];let m=ll(...g),x=l.length>1?$8t(s,i):"";return`${n}${Uh(m.messageText,n)}${n}${n}${x}`}function $8t(e,t){let n=e.filter((S,P,E)=>P===E.findIndex(N=>N?.fileName===S?.fileName));if(n.length===0)return"";let i=S=>Math.log(S)*Math.LOG10E+1,s=n.map(S=>[S,Vu(e,P=>P.fileName===S.fileName)]),l=hI(s,0,S=>S[1]),p=y.Errors_Files.message,g=p.split(" ")[0].length,m=Math.max(g,i(l)),x=Math.max(i(l)-g,0),b="";return b+=" ".repeat(x)+p+`
|
|
`,s.forEach(S=>{let[P,E]=S,N=Math.log(E)*Math.LOG10E+1|0,F=N<m?" ".repeat(m-N):"",M=gqe(P,t.getCurrentDirectory());b+=`${F}${E} ${M}
|
|
`}),b}function Fee(e){return!!e.state}function V8t(e,t){let n=e.getCompilerOptions();n.explainFiles?Mee(Fee(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&Ge(e.getSourceFiles(),i=>{t(i.fileName)})}function Mee(e,t){var n,i;let s=e.getFileIncludeReasons(),l=p=>MI(p,e.getCurrentDirectory(),e.getCanonicalFileName);for(let p of e.getSourceFiles())t(`${aA(p,l)}`),(n=s.get(p.path))==null||n.forEach(g=>t(` ${Bee(e,g,l).messageText}`)),(i=Ree(p,e.getCompilerOptionsForFile(p),l))==null||i.forEach(g=>t(` ${g.messageText}`))}function Ree(e,t,n){var i;let s;if(e.path!==e.resolvedPath&&(s??(s=[])).push(vs(void 0,y.File_is_output_of_project_reference_source_0,aA(e.originalFileName,n))),e.redirectInfo&&(s??(s=[])).push(vs(void 0,y.File_redirects_to_file_0,aA(e.redirectInfo.redirectTarget,n))),q_(e))switch(nC(e,t)){case 99:e.packageJsonScope&&(s??(s=[])).push(vs(void 0,y.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,aA(ao(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(s??(s=[])).push(vs(void 0,e.packageJsonScope.contents.packageJsonContent.type?y.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:y.File_is_CommonJS_module_because_0_does_not_have_field_type,aA(ao(e.packageJsonLocations),n))):(i=e.packageJsonLocations)!=null&&i.length&&(s??(s=[])).push(vs(void 0,y.File_is_CommonJS_module_because_package_json_was_not_found));break}return s}function jee(e,t){var n;let i=e.getCompilerOptions().configFile;if(!((n=i?.configFileSpecs)!=null&&n.validatedFilesSpec))return;let s=e.getCanonicalFileName(t),l=Ei(Qa(i.fileName,e.getCurrentDirectory())),p=Va(i.configFileSpecs.validatedFilesSpec,g=>e.getCanonicalFileName(Qa(g,l))===s);return p!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[p]:void 0}function Lee(e,t){var n,i;let s=e.getCompilerOptions().configFile;if(!((n=s?.configFileSpecs)!=null&&n.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;let l=il(t,".json"),p=Ei(Qa(s.fileName,e.getCurrentDirectory())),g=e.useCaseSensitiveFileNames(),m=Va((i=s?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,x=>{if(l&&!bc(x,".json"))return!1;let b=EX(x,p,"files");return!!b&&N1(`(${b})$`,g).test(t)});return m!==-1?s.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[m]:void 0}function Bee(e,t,n){var i,s;let l=e.getCompilerOptions();if(QS(t)){let p=D3(e,t),g=nA(p)?p.file.text.substring(p.pos,p.end):`"${p.text}"`,m;switch(I.assert(nA(p)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:nA(p)?m=p.packageId?y.Imported_via_0_from_file_1_with_packageId_2:y.Imported_via_0_from_file_1:p.text===lx?m=p.packageId?y.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:y.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:m=p.packageId?y.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:y.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:I.assert(!p.packageId),m=y.Referenced_via_0_from_file_1;break;case 5:m=p.packageId?y.Type_library_referenced_via_0_from_file_1_with_packageId_2:y.Type_library_referenced_via_0_from_file_1;break;case 7:I.assert(!p.packageId),m=y.Library_referenced_via_0_from_file_1;break;default:I.assertNever(t)}return vs(void 0,m,g,aA(p.file,n),p.packageId&&TS(p.packageId))}switch(t.kind){case 0:if(!((i=l.configFile)!=null&&i.configFileSpecs))return vs(void 0,y.Root_file_specified_for_compilation);let p=Qa(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(jee(e,p))return vs(void 0,y.Part_of_files_list_in_tsconfig_json);let m=Lee(e,p);return Ua(m)?vs(void 0,y.Matched_by_include_pattern_0_in_1,m,aA(l.configFile,n)):vs(void 0,m?y.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:y.Root_file_specified_for_compilation);case 1:case 2:let x=t.kind===2,b=I.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return vs(void 0,l.outFile?x?y.Output_from_referenced_project_0_included_because_1_specified:y.Source_from_referenced_project_0_included_because_1_specified:x?y.Output_from_referenced_project_0_included_because_module_is_specified_as_none:y.Source_from_referenced_project_0_included_because_module_is_specified_as_none,aA(b.sourceFile.fileName,n),l.outFile?"--outFile":"--out");case 8:{let S=l.types?t.packageId?[y.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,TS(t.packageId)]:[y.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[y.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,TS(t.packageId)]:[y.Entry_point_for_implicit_type_library_0,t.typeReference];return vs(void 0,...S)}case 6:{if(t.index!==void 0)return vs(void 0,y.Library_0_specified_in_compilerOptions,l.lib[t.index]);let S=MJ(Po(l)),P=S?[y.Default_library_for_target_0,S]:[y.Default_library];return vs(void 0,...P)}default:I.assertNever(t)}}function aA(e,t){let n=Ua(e)?e:e.fileName;return t?t(n):n}function JW(e,t,n,i,s,l,p,g){let m=e.getCompilerOptions(),x=e.getConfigFileParsingDiagnostics().slice(),b=x.length;ti(x,e.getSyntacticDiagnostics(void 0,l)),x.length===b&&(ti(x,e.getOptionsDiagnostics(l)),m.listFilesOnly||(ti(x,e.getGlobalDiagnostics(l)),x.length===b&&ti(x,e.getSemanticDiagnostics(void 0,l)),m.noEmit&&y_(m)&&x.length===b&&ti(x,e.getDeclarationDiagnostics(void 0,l))));let S=m.listFilesOnly?{emitSkipped:!0,diagnostics:ce}:e.emit(void 0,s,l,p,g);ti(x,S.diagnostics);let P=VO(x);if(P.forEach(t),n){let E=e.getCurrentDirectory();Ge(S.emittedFiles,N=>{let F=Qa(N,E);n(`TSFILE: ${F}`)}),V8t(e,n)}return i&&i(BW(P),qW(P)),{emitResult:S,diagnostics:P}}function qee(e,t,n,i,s,l,p,g){let{emitResult:m,diagnostics:x}=JW(e,t,n,i,s,l,p,g);return m.emitSkipped&&x.length>0?1:x.length>0?2:0}var sA={close:Ko},N3=()=>sA;function Jee(e=Ru,t){return{onWatchStatusChange:t||Nee(e),watchFile:Ra(e,e.watchFile)||N3,watchDirectory:Ra(e,e.watchDirectory)||N3,setTimeout:Ra(e,e.setTimeout)||Ko,clearTimeout:Ra(e,e.clearTimeout)||Ko,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var ep={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function zee(e,t){let n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?l=>e.trace(l):Ko,s=aee(e,n,i);return s.writeLog=i,s}function Wee(e,t,n=e){let i=e.useCaseSensitiveFileNames(),s={getSourceFile:cee((l,p)=>p?e.readFile(l,p):s.readFile(l),void 0),getDefaultLibLocation:Ra(e,e.getDefaultLibLocation),getDefaultLibFileName:l=>e.getDefaultLibFileName(l),writeFile:lee((l,p,g)=>e.writeFile(l,p,g),l=>e.createDirectory(l),l=>e.directoryExists(l)),getCurrentDirectory:Cu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Xu(i),getNewLine:()=>O1(t()),fileExists:l=>e.fileExists(l),readFile:l=>e.readFile(l),trace:Ra(e,e.trace),directoryExists:Ra(n,n.directoryExists),getDirectories:Ra(n,n.getDirectories),realpath:Ra(e,e.realpath),getEnvironmentVariable:Ra(e,e.getEnvironmentVariable)||(()=>""),createHash:Ra(e,e.createHash),readDirectory:Ra(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return s}function zW(e,t){if(t.match(Cve)){let n=t.length,i=n;for(let s=n-1;s>=0;s--){let l=t.charCodeAt(s);switch(l){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(l<127||!Gp(l)){i=s;continue}break}let p=t.substring(i,n);if(p.match(AZ)){t=t.substring(0,i);break}else if(!p.match(IZ))break;n=i}}return(e.createHash||mv)(t)}function WW(e){let t=e.getSourceFile;e.getSourceFile=(...n)=>{let i=t.call(e,...n);return i&&(i.version=zW(e,i.text)),i}}function Uee(e,t){let n=Cu(()=>Ei(Zs(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Cu(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>gi(n(),xF(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,l,p,g)=>e.readDirectory(i,s,l,p,g),realpath:Ra(e,e.realpath),getEnvironmentVariable:Ra(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,l)=>e.writeFile(i,s,l),createHash:Ra(e,e.createHash),createProgram:t||Pee,storeSignatureInfo:e.storeSignatureInfo,now:Ra(e,e.now)}}function hqe(e=Ru,t,n,i){let s=p=>e.write(p+e.newLine),l=Uee(e,t);return yP(l,Jee(e,i)),l.afterProgramCreate=p=>{let g=p.getCompilerOptions(),m=O1(g);JW(p,n,s,x=>l.onWatchStatusChange(ll(Aee(x),x),m,g,x))},l}function yqe(e,t,n){t(n),e.exit(1)}function $ee({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:l,reportDiagnostic:p,reportWatchStatus:g}){let m=p||JE(s),x=hqe(s,l,m,g);return x.onUnRecoverableConfigFileDiagnostic=b=>yqe(s,m,b),x.configFileName=e,x.optionsToExtend=t,x.watchOptionsToExtend=n,x.extraFileExtensions=i,x}function Vee({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:l,reportDiagnostic:p,reportWatchStatus:g}){let m=hqe(s,l,p||JE(s),g);return m.rootFiles=e,m.options=t,m.watchOptions=n,m.projectReferences=i,m}function r1e(e){let t=e.system||Ru,n=e.host||(e.host=$W(e.options,t)),i=n1e(e),s=qee(i,e.reportDiagnostic||JE(t),l=>n.trace&&n.trace(l),e.reportErrorSummary||e.options.pretty?(l,p)=>t.write(Iee(l,p,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}function UW(e,t){let n=KS(e);if(!n)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(n,e.configFilePath);else{let s=t.readFile(n);if(!s)return;i=tee(n,s)}if(!(!i||i.version!==ye||!tR(i)))return V0e(i,n,t)}function $W(e,t=Ru){let n=kW(e,void 0,t);return n.createHash=Ra(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,WW(n),P3(n,i=>Ec(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function n1e({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:l}){s=s||$W(t),l=l||Pee;let p=UW(t,s);return l(e,t,s,p,n,i)}function vqe(e,t,n,i,s,l,p,g){return cs(e)?Vee({rootFiles:e,options:t,watchOptions:g,projectReferences:p,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:l}):$ee({configFileName:e,optionsToExtend:t,watchOptionsToExtend:p,extraFileExtensions:g,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:l})}function Hee(e){let t,n,i,s,l=new Map([[void 0,void 0]]),p,g,m,x,b=e.extendedConfigCache,S=!1,P=new Map,E,N=!1,F=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:L,optionsToExtend:W={},watchOptionsToExtend:z,extraFileExtensions:H,createProgram:X}=e,{rootFiles:ne,options:ae,watchOptions:Y,projectReferences:Ee}=e,fe,te,de=!1,me=!1,ve=L===void 0?void 0:SW(e,M,F),Pe=ve||e,Oe=IW(e,Pe),ie=nn();L&&e.configFileParsingResult&&(Vr(e.configFileParsingResult),ie=nn()),ui(y.Starting_compilation_in_watch_mode),L&&!e.configFileParsingResult&&(ie=O1(W),I.assert(!ne),no(),ie=nn()),I.assert(ae),I.assert(ne);let{watchFile:Ne,watchDirectory:it,writeLog:ze}=zee(e,ae),ge=Xu(F);ze(`Current directory: ${M} CaseSensitiveFileNames: ${F}`);let Me;L&&(Me=Ne(L,wn,2e3,Y,ep.ConfigFile));let Te=Wee(e,()=>ae,Pe);WW(Te);let gt=Te.getSourceFile;Te.getSourceFile=(Rt,...Xt)=>ts(Rt,Ct(Rt),...Xt),Te.getSourceFileByPath=ts,Te.getNewLine=()=>ie,Te.fileExists=ta,Te.onReleaseOldSourceFile=$a,Te.onReleaseParsedCommandLine=Qt,Te.toPath=Ct,Te.getCompilationSettings=()=>ae,Te.useSourceOfProjectReferenceRedirect=Ra(e,e.useSourceOfProjectReferenceRedirect),Te.preferNonRecursiveWatch=e.preferNonRecursiveWatch,Te.watchDirectoryOfFailedLookupLocation=(Rt,Xt,ut)=>it(Rt,Xt,ut,Y,ep.FailedLookupLocations),Te.watchAffectingFileLocation=(Rt,Xt)=>Ne(Rt,Xt,2e3,Y,ep.AffectingFileLocation),Te.watchTypeRootsDirectory=(Rt,Xt,ut)=>it(Rt,Xt,ut,Y,ep.TypeRoots),Te.getCachedDirectoryStructureHost=()=>ve,Te.scheduleInvalidateResolutionsOfFailedLookupLocations=at,Te.onInvalidatedResolution=Cr,Te.onChangedAutomaticTypeDirectiveNames=Cr,Te.fileIsOpen=cd,Te.getCurrentProgram=st,Te.writeLog=ze,Te.getParsedCommandLine=_s;let Tt=Oee(Te,L?Ei(Qa(L,M)):M,!1);Te.resolveModuleNameLiterals=Ra(e,e.resolveModuleNameLiterals),Te.resolveModuleNames=Ra(e,e.resolveModuleNames),!Te.resolveModuleNameLiterals&&!Te.resolveModuleNames&&(Te.resolveModuleNameLiterals=Tt.resolveModuleNameLiterals.bind(Tt)),Te.resolveTypeReferenceDirectiveReferences=Ra(e,e.resolveTypeReferenceDirectiveReferences),Te.resolveTypeReferenceDirectives=Ra(e,e.resolveTypeReferenceDirectives),!Te.resolveTypeReferenceDirectiveReferences&&!Te.resolveTypeReferenceDirectives&&(Te.resolveTypeReferenceDirectiveReferences=Tt.resolveTypeReferenceDirectiveReferences.bind(Tt)),Te.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Tt.resolveLibrary.bind(Tt),Te.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Ra(e,e.getModuleResolutionCache):()=>Tt.getModuleResolutionCache();let nt=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Ra(e,e.hasInvalidatedResolutions)||v1:cd,pe=e.resolveLibrary?Ra(e,e.hasInvalidatedLibResolutions)||v1:cd;return t=UW(ae,Te),jt(),L?{getCurrentProgram:je,getProgram:Pi,close:He,getResolutionCache:qe}:{getCurrentProgram:je,getProgram:Pi,updateRootFileNames:Or,close:He,getResolutionCache:qe};function He(){Gi(),Tt.clear(),h_(P,Rt=>{Rt&&Rt.fileWatcher&&(Rt.fileWatcher.close(),Rt.fileWatcher=void 0)}),Me&&(Me.close(),Me=void 0),b?.clear(),b=void 0,x&&(h_(x,ym),x=void 0),s&&(h_(s,ym),s=void 0),i&&(h_(i,hg),i=void 0),m&&(h_(m,Rt=>{var Xt;(Xt=Rt.watcher)==null||Xt.close(),Rt.watcher=void 0,Rt.watchedDirectories&&h_(Rt.watchedDirectories,ym),Rt.watchedDirectories=void 0}),m=void 0),t=void 0}function qe(){return Tt}function je(){return t}function st(){return t&&t.getProgramOrUndefined()}function jt(){ze("Synchronizing program"),I.assert(ae),I.assert(ne),Gi();let Rt=je();N&&(ie=nn(),Rt&&Cq(Rt.getCompilerOptions(),ae)&&Tt.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:Xt,hasInvalidatedLibResolutions:ut}=Tt.createHasInvalidatedResolutions(nt,pe),{originalReadFile:lr,originalFileExists:In,originalDirectoryExists:We,originalCreateDirectory:qt,originalWriteFile:ke,readFileWithCache:$}=P3(Te,Ct);return gee(st(),ne,ae,Ke=>hi(Ke,$),Ke=>Te.fileExists(Ke),Xt,ut,Wn,_s,Ee)?me&&(S&&ui(y.File_change_detected_Starting_incremental_compilation),t=X(void 0,void 0,Te,t,te,Ee),me=!1):(S&&ui(y.File_change_detected_Starting_incremental_compilation),ar(Xt,ut)),S=!1,e.afterProgramCreate&&Rt!==t&&e.afterProgramCreate(t),Te.readFile=lr,Te.fileExists=In,Te.directoryExists=We,Te.createDirectory=qt,Te.writeFile=ke,l?.forEach((Ke,re)=>{if(!re)vt(),L&&Qe(Ct(L),ae,Y,ep.ExtendedConfigFile);else{let Ft=m?.get(re);Ft&&Lt(Ke,re,Ft)}}),l=void 0,t}function ar(Rt,Xt){ze("CreatingProgramWith::"),ze(` roots: ${JSON.stringify(ne)}`),ze(` options: ${JSON.stringify(ae)}`),Ee&&ze(` projectReferences: ${JSON.stringify(Ee)}`);let ut=N||!st();N=!1,me=!1,Tt.startCachingPerDirectoryResolution(),Te.hasInvalidatedResolutions=Rt,Te.hasInvalidatedLibResolutions=Xt,Te.hasChangedAutomaticTypeDirectiveNames=Wn;let lr=st();if(t=X(ne,ae,Te,t,te,Ee),Tt.finishCachingPerDirectoryResolution(t.getProgram(),lr),iee(t.getProgram(),i||(i=new Map),Ue),ut&&Tt.updateTypeRootsWatch(),E){for(let In of E)i.has(In)||P.delete(In);E=void 0}}function Or(Rt){I.assert(!L,"Cannot update root file names with config file watch mode"),ne=Rt,Cr()}function nn(){return O1(ae||W)}function Ct(Rt){return Ec(Rt,M,ge)}function pr(Rt){return typeof Rt=="boolean"}function vn(Rt){return typeof Rt.version=="boolean"}function ta(Rt){let Xt=Ct(Rt);return pr(P.get(Xt))?!1:Pe.fileExists(Rt)}function ts(Rt,Xt,ut,lr,In){let We=P.get(Xt);if(pr(We))return;let qt=typeof ut=="object"?ut.impliedNodeFormat:void 0;if(We===void 0||In||vn(We)||We.sourceFile.impliedNodeFormat!==qt){let ke=gt(Rt,ut,lr);if(We)ke?(We.sourceFile=ke,We.version=ke.version,We.fileWatcher||(We.fileWatcher=he(Xt,Rt,wt,250,Y,ep.SourceFile))):(We.fileWatcher&&We.fileWatcher.close(),P.set(Xt,!1));else if(ke){let $=he(Xt,Rt,wt,250,Y,ep.SourceFile);P.set(Xt,{sourceFile:ke,version:ke.version,fileWatcher:$})}else P.set(Xt,!1);return ke}return We.sourceFile}function Gt(Rt){let Xt=P.get(Rt);Xt!==void 0&&(pr(Xt)?P.set(Rt,{version:!1}):Xt.version=!1)}function hi(Rt,Xt){let ut=P.get(Rt);if(!ut)return;if(ut.version)return ut.version;let lr=Xt(Rt);return lr!==void 0?zW(Te,lr):void 0}function $a(Rt,Xt,ut){let lr=P.get(Rt.resolvedPath);lr!==void 0&&(pr(lr)?(E||(E=[])).push(Rt.path):lr.sourceFile===Rt&&(lr.fileWatcher&&lr.fileWatcher.close(),P.delete(Rt.resolvedPath),ut||Tt.removeResolutionsOfFile(Rt.path)))}function ui(Rt){e.onWatchStatusChange&&e.onWatchStatusChange(ll(Rt),ie,ae||W)}function Wn(){return Tt.hasChangedAutomaticTypeDirectiveNames()}function Gi(){return g?(e.clearTimeout(g),g=void 0,!0):!1}function at(){if(!e.setTimeout||!e.clearTimeout)return Tt.invalidateResolutionsOfFailedLookupLocations();let Rt=Gi();ze(`Scheduling invalidateFailedLookup${Rt?", Cancelled earlier one":""}`),g=e.setTimeout(It,250,"timerToInvalidateFailedLookupResolutions")}function It(){g=void 0,Tt.invalidateResolutionsOfFailedLookupLocations()&&Cr()}function Cr(){!e.setTimeout||!e.clearTimeout||(p&&e.clearTimeout(p),ze("Scheduling update"),p=e.setTimeout(Di,250,"timerToUpdateProgram"))}function wn(){I.assert(!!L),n=2,Cr()}function Di(){p=void 0,S=!0,Pi()}function Pi(){switch(n){case 1:da();break;case 2:ks();break;default:jt();break}return je()}function da(){ze("Reloading new file names and options"),I.assert(ae),I.assert(L),n=0,ne=u3(ae.configFile.configFileSpecs,Qa(Ei(L),M),ae,Oe,H),Kz(ne,Qa(L,M),ae.configFile.configFileSpecs,te,de)&&(me=!0),jt()}function ks(){I.assert(L),ze(`Reloading config file: ${L}`),n=0,ve&&ve.clearCache(),no(),N=!0,(l??(l=new Map)).set(void 0,void 0),jt()}function no(){I.assert(L),Vr(CM(L,W,Oe,b||(b=new Map),z,H))}function Vr(Rt){ne=Rt.fileNames,ae=Rt.options,Y=Rt.watchOptions,Ee=Rt.projectReferences,fe=Rt.wildcardDirectories,te=Q2(Rt).slice(),de=NM(Rt.raw),me=!0}function _s(Rt){let Xt=Ct(Rt),ut=m?.get(Xt);if(ut){if(!ut.updateLevel)return ut.parsedCommandLine;if(ut.parsedCommandLine&&ut.updateLevel===1&&!e.getParsedCommandLine){ze("Reloading new file names and options"),I.assert(ae);let In=u3(ut.parsedCommandLine.options.configFile.configFileSpecs,Qa(Ei(Rt),M),ae,Oe);return ut.parsedCommandLine={...ut.parsedCommandLine,fileNames:In},ut.updateLevel=void 0,ut.parsedCommandLine}}ze(`Loading config file: ${Rt}`);let lr=e.getParsedCommandLine?e.getParsedCommandLine(Rt):ft(Rt);return ut?(ut.parsedCommandLine=lr,ut.updateLevel=void 0):(m||(m=new Map)).set(Xt,ut={parsedCommandLine:lr}),(l??(l=new Map)).set(Xt,Rt),lr}function ft(Rt){let Xt=Oe.onUnRecoverableConfigFileDiagnostic;Oe.onUnRecoverableConfigFileDiagnostic=Ko;let ut=CM(Rt,void 0,Oe,b||(b=new Map),z);return Oe.onUnRecoverableConfigFileDiagnostic=Xt,ut}function Qt(Rt){var Xt;let ut=Ct(Rt),lr=m?.get(ut);lr&&(m.delete(ut),lr.watchedDirectories&&h_(lr.watchedDirectories,ym),(Xt=lr.watcher)==null||Xt.close(),nee(ut,x))}function he(Rt,Xt,ut,lr,In,We){return Ne(Xt,(qt,ke)=>ut(qt,ke,Rt),lr,In,We)}function wt(Rt,Xt,ut){oe(Rt,ut,Xt),Xt===2&&P.has(ut)&&Tt.invalidateResolutionOfFile(ut),Gt(ut),Cr()}function oe(Rt,Xt,ut){ve&&ve.addOrDeleteFile(Rt,Xt,ut)}function Ue(Rt,Xt){return m?.has(Rt)?sA:he(Rt,Xt,pt,500,Y,ep.MissingFile)}function pt(Rt,Xt,ut){oe(Rt,ut,Xt),Xt===0&&i.has(ut)&&(i.get(ut).close(),i.delete(ut),Gt(ut),Cr())}function vt(){GM(s||(s=new Map),fe,$t)}function $t(Rt,Xt){return it(Rt,ut=>{I.assert(L),I.assert(ae);let lr=Ct(ut);ve&&ve.addOrDeleteFileOrDirectory(ut,lr),Gt(lr),!KM({watchedDirPath:Ct(Rt),fileOrDirectory:ut,fileOrDirectoryPath:lr,configFileName:L,extraFileExtensions:H,options:ae,program:je()||ne,currentDirectory:M,useCaseSensitiveFileNames:F,writeLog:ze,toPath:Ct})&&n!==2&&(n=1,Cr())},Xt,Y,ep.WildcardDirectory)}function Qe(Rt,Xt,ut,lr){TW(Rt,Xt,x||(x=new Map),(In,We)=>Ne(In,(qt,ke)=>{var $;oe(In,We,ke),b&&wW(b,We,Ct);let Ke=($=x.get(We))==null?void 0:$.projects;Ke?.size&&Ke.forEach(re=>{if(L&&Ct(L)===re)n=2;else{let Ft=m?.get(re);Ft&&(Ft.updateLevel=2),Tt.removeResolutionsFromProjectReferenceRedirects(re)}Cr()})},2e3,ut,lr),Ct)}function Lt(Rt,Xt,ut){var lr,In,We,qt;ut.watcher||(ut.watcher=Ne(Rt,(ke,$)=>{oe(Rt,Xt,$);let Ke=m?.get(Xt);Ke&&(Ke.updateLevel=2),Tt.removeResolutionsFromProjectReferenceRedirects(Xt),Cr()},2e3,((lr=ut.parsedCommandLine)==null?void 0:lr.watchOptions)||Y,ep.ConfigFileOfReferencedProject)),GM(ut.watchedDirectories||(ut.watchedDirectories=new Map),(In=ut.parsedCommandLine)==null?void 0:In.wildcardDirectories,(ke,$)=>{var Ke;return it(ke,re=>{let Ft=Ct(re);ve&&ve.addOrDeleteFileOrDirectory(re,Ft),Gt(Ft);let rr=m?.get(Xt);rr?.parsedCommandLine&&(KM({watchedDirPath:Ct(ke),fileOrDirectory:re,fileOrDirectoryPath:Ft,configFileName:Rt,options:rr.parsedCommandLine.options,program:rr.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:F,writeLog:ze,toPath:Ct})||rr.updateLevel!==2&&(rr.updateLevel=1,Cr()))},$,((Ke=ut.parsedCommandLine)==null?void 0:Ke.watchOptions)||Y,ep.WildcardDirectoryOfReferencedProject)}),Qe(Xt,(We=ut.parsedCommandLine)==null?void 0:We.options,((qt=ut.parsedCommandLine)==null?void 0:qt.watchOptions)||Y,ep.ExtendedConfigOfReferencedProject)}}var i1e=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(i1e||{});function Gee(e){return il(e,".json")?e:gi(e,"tsconfig.json")}var H8t=new Date(-864e13);function G8t(e,t,n){let i=e.get(t),s;return i||(s=n(),e.set(t,s)),i||s}function a1e(e,t){return G8t(e,t,()=>new Map)}function Kee(e){return e.now?e.now():new Date}function zE(e){return!!e&&!!e.buildOrder}function iR(e){return zE(e)?e.buildOrder:e}function VW(e,t){return n=>{let i=t?`[${K2(nR(e),"\x1B[90m")}] `:`${nR(e)} - `;i+=`${Uh(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function bqe(e,t,n,i){let s=Uee(e,t);return s.getModifiedTime=e.getModifiedTime?l=>e.getModifiedTime(l):Rg,s.setModifiedTime=e.setModifiedTime?(l,p)=>e.setModifiedTime(l,p):Ko,s.deleteFile=e.deleteFile?l=>e.deleteFile(l):Ko,s.reportDiagnostic=n||JE(e),s.reportSolutionBuilderStatus=i||VW(e),s.now=Ra(e,e.now),s}function s1e(e=Ru,t,n,i,s){let l=bqe(e,t,n,i);return l.reportErrorSummary=s,l}function o1e(e=Ru,t,n,i,s){let l=bqe(e,t,n,i),p=Jee(e,s);return yP(l,p),l}function K8t(e){let t={};return Lz.forEach(n=>{ec(e,n.name)&&(t[n.name]=e[n.name])}),t.tscBuild=!0,t}function c1e(e,t,n){return Jqe(!1,e,t,n)}function l1e(e,t,n,i){return Jqe(!0,e,t,n,i)}function Q8t(e,t,n,i,s){let l=t,p=t,g=K8t(i),m=Wee(l,()=>F.projectCompilerOptions);WW(m),m.getParsedCommandLine=M=>oA(F,M,jy(F,M)),m.resolveModuleNameLiterals=Ra(l,l.resolveModuleNameLiterals),m.resolveTypeReferenceDirectiveReferences=Ra(l,l.resolveTypeReferenceDirectiveReferences),m.resolveLibrary=Ra(l,l.resolveLibrary),m.resolveModuleNames=Ra(l,l.resolveModuleNames),m.resolveTypeReferenceDirectives=Ra(l,l.resolveTypeReferenceDirectives),m.getModuleResolutionCache=Ra(l,l.getModuleResolutionCache);let x,b;!m.resolveModuleNameLiterals&&!m.resolveModuleNames&&(x=KN(m.getCurrentDirectory(),m.getCanonicalFileName),m.resolveModuleNameLiterals=(M,L,W,z,H)=>XM(M,L,W,z,H,l,x,dee),m.getModuleResolutionCache=()=>x),!m.resolveTypeReferenceDirectiveReferences&&!m.resolveTypeReferenceDirectives&&(b=rW(m.getCurrentDirectory(),m.getCanonicalFileName,void 0,x?.getPackageJsonInfoCache(),x?.optionsToRedirectsKey),m.resolveTypeReferenceDirectiveReferences=(M,L,W,z,H)=>XM(M,L,W,z,H,l,b,EW));let S;m.resolveLibrary||(S=KN(m.getCurrentDirectory(),m.getCanonicalFileName,void 0,x?.getPackageJsonInfoCache()),m.resolveLibrary=(M,L,W)=>nW(M,L,W,l,S)),m.getBuildInfo=(M,L)=>Aqe(F,M,jy(F,L),void 0);let{watchFile:P,watchDirectory:E,writeLog:N}=zee(p,i),F={host:l,hostWithWatch:p,parseConfigFileHost:IW(l),write:Ra(l,l.trace),options:i,baseCompilerOptions:g,rootNames:n,baseWatchOptions:s,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:m,moduleResolutionCache:x,typeReferenceDirectiveResolutionCache:b,libraryResolutionCache:S,buildOrder:void 0,readFileWithCache:M=>l.readFile(M),projectCompilerOptions:g,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:P,watchDirectory:E,writeLog:N};return F}function Sg(e,t){return Ec(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function jy(e,t){let{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;let s=Sg(e,t);return n.set(t,s),s}function xqe(e){return!!e.options}function X8t(e,t){let n=e.configFileCache.get(t);return n&&xqe(n)?n:void 0}function oA(e,t,n){let{configFileCache:i}=e,s=i.get(n);if(s)return xqe(s)?s:void 0;Qc("SolutionBuilder::beforeConfigFileParsing");let l,{parseConfigFileHost:p,baseCompilerOptions:g,baseWatchOptions:m,extendedConfigCache:x,host:b}=e,S;return b.getParsedCommandLine?(S=b.getParsedCommandLine(t),S||(l=ll(y.File_0_not_found,t))):(p.onUnRecoverableConfigFileDiagnostic=P=>l=P,S=CM(t,g,p,x,m),p.onUnRecoverableConfigFileDiagnostic=Ko),i.set(n,S||l),Qc("SolutionBuilder::afterConfigFileParsing"),R_("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),S}function aR(e,t){return Gee(Zb(e.compilerHost.getCurrentDirectory(),t))}function Sqe(e,t){let n=new Map,i=new Map,s=[],l,p;for(let m of t)g(m);return p?{buildOrder:l||ce,circularDiagnostics:p}:l||ce;function g(m,x){let b=jy(e,m);if(i.has(b))return;if(n.has(b)){x||(p||(p=[])).push(ll(y.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r
|
|
`)));return}n.set(b,!0),s.push(m);let S=oA(e,m,b);if(S&&S.projectReferences)for(let P of S.projectReferences){let E=aR(e,P.path);g(E,x||P.circular)}s.pop(),i.set(b,!0),(l||(l=[])).push(m)}}function HW(e){return e.buildOrder||Y8t(e)}function Y8t(e){let t=Sqe(e,e.rootNames.map(s=>aR(e,s)));e.resolvedConfigFilePaths.clear();let n=new Set(iR(t).map(s=>jy(e,s))),i={onDeleteValue:Ko};return Ov(e.configFileCache,n,i),Ov(e.projectStatus,n,i),Ov(e.builderPrograms,n,i),Ov(e.diagnostics,n,i),Ov(e.projectPendingBuild,n,i),Ov(e.projectErrorsReported,n,i),Ov(e.buildInfoCache,n,i),Ov(e.outputTimeStamps,n,i),Ov(e.lastCachedPackageJsonLookups,n,i),e.watch&&(Ov(e.allWatchedConfigFiles,n,{onDeleteValue:hg}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(l=>{n.has(l)||s.projects.delete(l)}),s.close()}),Ov(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(ym)}),Ov(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(hg)}),Ov(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(hg)})),e.buildOrder=t}function Tqe(e,t,n){let i=t&&aR(e,t),s=HW(e);if(zE(s))return s;if(i){let p=jy(e,i);if(Va(s,m=>jy(e,m)===p)===-1)return}let l=i?Sqe(e,[i]):s;return I.assert(!zE(l)),I.assert(!n||i!==void 0),I.assert(!n||l[l.length-1]===i),n?l.slice(0,l.length-1):l}function wqe(e){e.cache&&u1e(e);let{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:l,originalFileExists:p,originalDirectoryExists:g,originalCreateDirectory:m,originalWriteFile:x,getSourceFileWithCache:b,readFileWithCache:S}=P3(n,P=>Sg(e,P),(...P)=>s.call(t,...P));e.readFileWithCache=S,t.getSourceFile=b,e.cache={originalReadFile:l,originalFileExists:p,originalDirectoryExists:g,originalCreateDirectory:m,originalWriteFile:x,originalReadFileWithCache:i,originalGetSourceFile:s}}function u1e(e){if(!e.cache)return;let{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:p,libraryResolutionCache:g}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),l?.clear(),p?.clear(),g?.clear(),e.cache=void 0}function kqe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Cqe({projectPendingBuild:e},t,n){let i=e.get(t);(i===void 0||i<n)&&e.set(t,n)}function Pqe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&v1e(e,y.Starting_compilation_in_watch_mode),wqe(e),iR(HW(e)).forEach(i=>e.projectPendingBuild.set(jy(e,i),0)),t&&t.throwIfCancellationRequested()}var p1e=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(p1e||{});function Eqe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function Z8t(e,t,n,i,s){let l=!0;return{kind:1,project:t,projectPath:n,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{Fqe(e,i,n),l=!1},done:()=>(l&&Fqe(e,i,n),Qc("SolutionBuilder::Timestamps only updates"),Eqe(e,n))}}function e7t(e,t,n,i,s,l,p){let g=0,m,x;return{kind:0,project:t,projectPath:n,buildOrder:p,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>S(vc),getProgram:()=>S(M=>M.getProgramOrUndefined()),getSourceFile:M=>S(L=>L.getSourceFile(M)),getSourceFiles:()=>P(M=>M.getSourceFiles()),getOptionsDiagnostics:M=>P(L=>L.getOptionsDiagnostics(M)),getGlobalDiagnostics:M=>P(L=>L.getGlobalDiagnostics(M)),getConfigFileParsingDiagnostics:()=>P(M=>M.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(M,L)=>P(W=>W.getSyntacticDiagnostics(M,L)),getAllDependencies:M=>P(L=>L.getAllDependencies(M)),getSemanticDiagnostics:(M,L)=>P(W=>W.getSemanticDiagnostics(M,L)),getSemanticDiagnosticsOfNextAffectedFile:(M,L)=>S(W=>W.getSemanticDiagnosticsOfNextAffectedFile&&W.getSemanticDiagnosticsOfNextAffectedFile(M,L)),emit:(M,L,W,z,H)=>M||z?S(X=>{var ne,ae;return X.emit(M,L,W,z,H||((ae=(ne=e.host).getCustomTransformers)==null?void 0:ae.call(ne,t)))}):(F(0,W),N(L,W,H)),done:b};function b(M,L,W){return F(3,M,L,W),Qc("SolutionBuilder::Projects built"),Eqe(e,n)}function S(M){return F(0),m&&M(m)}function P(M){return S(M)||ce}function E(){var M,L,W;if(I.assert(m===void 0),e.options.dry){V_(e,y.A_non_dry_build_would_build_project_0,t),x=1,g=2;return}if(e.options.verbose&&V_(e,y.Building_project_0,t),s.fileNames.length===0){sR(e,n,Q2(s)),x=0,g=2;return}let{host:z,compilerHost:H}=e;if(e.projectCompilerOptions=s.options,(M=e.moduleResolutionCache)==null||M.update(s.options),(L=e.typeReferenceDirectiveResolutionCache)==null||L.update(s.options),m=z.createProgram(s.fileNames,s.options,H,t7t(e,n,s),Q2(s),s.projectReferences),e.watch){let X=(W=e.moduleResolutionCache)==null?void 0:W.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,X&&new Set(Ka(X.values(),ne=>e.host.realpath&&(tW(ne)||ne.directoryExists)?e.host.realpath(gi(ne.packageDirectory,"package.json")):gi(ne.packageDirectory,"package.json")))),e.builderPrograms.set(n,m)}g++}function N(M,L,W){var z,H,X;I.assertIsDefined(m),I.assert(g===1);let{host:ne,compilerHost:ae}=e,Y=new Map,Ee=m.getCompilerOptions(),fe=N2(Ee),te,de,{emitResult:me,diagnostics:ve}=JW(m,Pe=>ne.reportDiagnostic(Pe),e.write,void 0,(Pe,Oe,ie,Ne,it,ze)=>{var ge;let Me=Sg(e,Pe);if(Y.set(Sg(e,Pe),Pe),ze?.buildInfo){de||(de=Kee(e.host));let gt=(ge=m.hasChangedEmitSignature)==null?void 0:ge.call(m),Tt=Yee(e,Pe,n);Tt?(Tt.buildInfo=ze.buildInfo,Tt.modifiedTime=de,gt&&(Tt.latestChangedDtsTime=de)):e.buildInfoCache.set(n,{path:Sg(e,Pe),buildInfo:ze.buildInfo,modifiedTime:de,latestChangedDtsTime:gt?de:void 0})}let Te=ze?.differsOnlyInMap?l2(e.host,Pe):void 0;(M||ae.writeFile)(Pe,Oe,ie,Ne,it,ze),ze?.differsOnlyInMap?e.host.setModifiedTime(Pe,Te):!fe&&e.watch&&(te||(te=_1e(e,n))).set(Me,de||(de=Kee(e.host)))},L,void 0,W||((H=(z=e.host).getCustomTransformers)==null?void 0:H.call(z,t)));return(!Ee.noEmitOnError||!ve.length)&&(Y.size||l.type!==8)&&Iqe(e,s,n,y.Updating_unchanged_output_timestamps_of_project_0,Y),e.projectErrorsReported.set(n,!0),x=(X=m.hasChangedEmitSignature)!=null&&X.call(m)?0:2,ve.length?(e.diagnostics.set(n,ve),e.projectStatus.set(n,{type:0,reason:"it had errors"}),x|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:h1(Y.values())??YZ(s,!ne.useCaseSensitiveFileNames())})),r7t(e,m),g=2,me}function F(M,L,W,z){for(;g<=M&&g<3;){let H=g;switch(g){case 0:E();break;case 1:N(W,L,z);break;case 2:s7t(e,t,n,i,s,p,I.checkDefined(x)),g++;break;case 3:default:}I.assert(g>H)}}}function Dqe(e,t,n){if(!e.projectPendingBuild.size||zE(t))return;let{options:i,projectPendingBuild:s}=e;for(let l=0;l<t.length;l++){let p=t[l],g=jy(e,p),m=e.projectPendingBuild.get(g);if(m===void 0)continue;n&&(n=!1,Uqe(e,t));let x=oA(e,p,g);if(!x){zqe(e,g),s.delete(g);continue}m===2?(Lqe(e,p,g,x),Bqe(e,g,x),qqe(e,p,g,x),h1e(e,p,g,x),y1e(e,p,g,x)):m===1&&(x.fileNames=u3(x.options.configFile.configFileSpecs,Ei(p),x.options,e.parseConfigFileHost),Kz(x.fileNames,p,x.options.configFile.configFileSpecs,x.errors,NM(x.raw)),h1e(e,p,g,x),y1e(e,p,g,x));let b=m1e(e,x,g);if(!i.force){if(b.type===1){ete(e,p,b),sR(e,g,Q2(x)),s.delete(g),i.dry&&V_(e,y.Project_0_is_up_to_date,p);continue}if(b.type===2||b.type===15)return sR(e,g,Q2(x)),{kind:1,status:b,project:p,projectPath:g,projectIndex:l,config:x}}if(b.type===12){ete(e,p,b),sR(e,g,Q2(x)),s.delete(g),i.verbose&&V_(e,b.upstreamProjectBlocked?y.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:y.Skipping_build_of_project_0_because_its_dependency_1_has_errors,p,b.upstreamProjectName);continue}if(b.type===16){ete(e,p,b),sR(e,g,Q2(x)),s.delete(g);continue}return{kind:0,status:b,project:p,projectPath:g,projectIndex:l,config:x}}}function Oqe(e,t,n){return ete(e,t.project,t.status),t.kind!==1?e7t(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):Z8t(e,t.project,t.projectPath,t.config,n)}function f1e(e,t,n){let i=Dqe(e,t,n);return i&&Oqe(e,i,t)}function t7t({options:e,builderPrograms:t,compilerHost:n},i,s){if(e.force)return;let l=t.get(i);return l||UW(s.options,n)}function r7t(e,t){t&&(e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()),e.projectCompilerOptions=e.baseCompilerOptions}function Qee(e){return!!e.watcher}function Nqe(e,t){let n=Sg(e,t),i=e.filesWatched.get(n);if(e.watch&&i){if(!Qee(i))return i;if(i.modifiedTime)return i.modifiedTime}let s=l2(e.host,t);return e.watch&&(i?i.modifiedTime=s:e.filesWatched.set(n,s)),s}function Xee(e,t,n,i,s,l,p){let g=Sg(e,t),m=e.filesWatched.get(g);if(m&&Qee(m))m.callbacks.push(n);else{let x=e.watchFile(t,(b,S,P)=>{let E=I.checkDefined(e.filesWatched.get(g));I.assert(Qee(E)),E.modifiedTime=P,E.callbacks.forEach(N=>N(b,S,P))},i,s,l,p);e.filesWatched.set(g,{callbacks:[n],watcher:x,modifiedTime:m})}return{close:()=>{let x=I.checkDefined(e.filesWatched.get(g));I.assert(Qee(x)),x.callbacks.length===1?(e.filesWatched.delete(g),ym(x)):Vb(x.callbacks,n)}}}function _1e(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function Yee(e,t,n){let i=Sg(e,t),s=e.buildInfoCache.get(n);return s?.path===i?s:void 0}function Aqe(e,t,n,i){let s=Sg(e,t),l=e.buildInfoCache.get(n);if(l!==void 0&&l.path===s)return l.buildInfo||void 0;let p=e.readFileWithCache(t),g=p?tee(t,p):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:g||!1,modifiedTime:i||Hp}),g}function d1e(e,t,n,i){let s=Nqe(e,t);if(n<s)return{type:5,outOfDateOutputFileName:i,newerInputFileName:t}}function n7t(e,t,n){var i,s,l,p,g;if(aZ(t))return{type:16};let m,x=!!e.options.force;if(t.projectReferences){e.projectStatus.set(n,{type:13});for(let ve of t.projectReferences){let Pe=qE(ve),Oe=jy(e,Pe),ie=oA(e,Pe,Oe),Ne=m1e(e,ie,Oe);if(!(Ne.type===13||Ne.type===16)){if(e.options.stopBuildOnErrors&&(Ne.type===0||Ne.type===12))return{type:12,upstreamProjectName:ve.path,upstreamProjectBlocked:Ne.type===12};x||(m||(m=[])).push({ref:ve,refStatus:Ne,resolvedRefPath:Oe,resolvedConfig:ie})}}}if(x)return{type:17};let{host:b}=e,S=KS(t.options),P=N2(t.options),E=Yee(e,S,n),N=E?.modifiedTime||l2(b,S);if(N===Hp)return E||e.buildInfoCache.set(n,{path:Sg(e,S),buildInfo:!1,modifiedTime:N}),{type:3,missingOutputFileName:S};let F=Aqe(e,S,n,N);if(!F)return{type:4,fileName:S};let M=P&&tR(F)?F:void 0;if((M||!P)&&F.version!==ye)return{type:14,version:F.version};if(!t.options.noCheck&&(F.errors||F.checkPending))return{type:8,buildInfoFile:S};if(M){if(!t.options.noCheck&&((i=M.changeFileSet)!=null&&i.length||(s=M.semanticDiagnosticsPerFile)!=null&&s.length||y_(t.options)&&((l=M.emitDiagnosticsPerFile)!=null&&l.length)))return{type:8,buildInfoFile:S};if(!t.options.noEmit&&((p=M.changeFileSet)!=null&&p.length||(g=M.affectedFilesPendingEmit)!=null&&g.length||M.pendingEmit!==void 0))return{type:7,buildInfoFile:S};if((!t.options.noEmit||t.options.noEmit&&y_(t.options))&&MW(t.options,M.options||{},void 0,!!t.options.noEmit))return{type:9,buildInfoFile:S}}let L=N,W=S,z,H=H8t,X=!1,ne=new Set,ae;for(let ve of t.fileNames){let Pe=Nqe(e,ve);if(Pe===Hp)return{type:0,reason:`${ve} does not exist`};let Oe=Sg(e,ve);if(N<Pe){let ie,Ne;if(M){ae||(ae=kee(M,S,b));let it=ae.roots.get(Oe);ie=ae.fileInfos.get(it??Oe);let ze=ie?e.readFileWithCache(it??ve):void 0;Ne=ze!==void 0?zW(b,ze):void 0,ie&&ie===Ne&&(X=!0)}if(!ie||ie!==Ne)return{type:5,outOfDateOutputFileName:S,newerInputFileName:ve}}Pe>H&&(z=ve,H=Pe),ne.add(Oe)}let Y;if(M?(ae||(ae=kee(M,S,b)),Y=Lu(ae.roots,(ve,Pe)=>ne.has(Pe)?void 0:Pe)):Y=Ge(H0e(F,S,b),ve=>ne.has(ve)?void 0:ve),Y)return{type:10,buildInfoFile:S,inputFile:Y};if(!P){let ve=xW(t,!b.useCaseSensitiveFileNames()),Pe=_1e(e,n);for(let Oe of ve){if(Oe===S)continue;let ie=Sg(e,Oe),Ne=Pe?.get(ie);if(Ne||(Ne=l2(e.host,Oe),Pe?.set(ie,Ne)),Ne===Hp)return{type:3,missingOutputFileName:Oe};if(Ne<H)return{type:5,outOfDateOutputFileName:Oe,newerInputFileName:z};Ne<L&&(L=Ne,W=Oe)}}let Ee=!1;if(m)for(let{ref:ve,refStatus:Pe,resolvedConfig:Oe,resolvedRefPath:ie}of m){if(Pe.newestInputFileTime&&Pe.newestInputFileTime<=L)continue;if(i7t(e,E??(E=e.buildInfoCache.get(n)),ie))return{type:6,outOfDateOutputFileName:S,newerProjectName:ve.path};let Ne=a7t(e,Oe.options,ie);if(Ne&&Ne<=L){Ee=!0;continue}return I.assert(W!==void 0,"Should have an oldest output filename here"),{type:6,outOfDateOutputFileName:W,newerProjectName:ve.path}}let fe=d1e(e,t.options.configFilePath,L,W);if(fe)return fe;let te=Ge(t.options.configFile.extendedSourceFiles||ce,ve=>d1e(e,ve,L,W));if(te)return te;let de=e.lastCachedPackageJsonLookups.get(n),me=de&&wv(de,ve=>d1e(e,ve,L,W));return me||{type:Ee?2:X?15:1,newestInputFileTime:H,newestInputFileName:z,oldestOutputFileName:W}}function i7t(e,t,n){return e.buildInfoCache.get(n).path===t.path}function m1e(e,t,n){if(t===void 0)return{type:0,reason:"config file deleted mid-build"};let i=e.projectStatus.get(n);if(i!==void 0)return i;Qc("SolutionBuilder::beforeUpToDateCheck");let s=n7t(e,t,n);return Qc("SolutionBuilder::afterUpToDateCheck"),R_("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function Iqe(e,t,n,i,s){if(t.options.noEmit)return;let l,p=KS(t.options),g=N2(t.options);if(p&&g){s?.has(Sg(e,p))||(e.options.verbose&&V_(e,i,t.options.configFilePath),e.host.setModifiedTime(p,l=Kee(e.host)),Yee(e,p,n).modifiedTime=l),e.outputTimeStamps.delete(n);return}let{host:m}=e,x=xW(t,!m.useCaseSensitiveFileNames()),b=_1e(e,n),S=b?new Set:void 0;if(!s||x.length!==s.size){let P=!!e.options.verbose;for(let E of x){let N=Sg(e,E);s?.has(N)||(P&&(P=!1,V_(e,i,t.options.configFilePath)),m.setModifiedTime(E,l||(l=Kee(e.host))),E===p?Yee(e,p,n).modifiedTime=l:b&&(b.set(N,l),S.add(N)))}}b?.forEach((P,E)=>{!s?.has(E)&&!S.has(E)&&b.delete(E)})}function a7t(e,t,n){if(!t.composite)return;let i=I.checkDefined(e.buildInfoCache.get(n));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let s=i.buildInfo&&tR(i.buildInfo)&&i.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Qa(i.buildInfo.latestChangedDtsFile,Ei(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function Fqe(e,t,n){if(e.options.dry)return V_(e,y.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);Iqe(e,t,n,y.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:YZ(t,!e.host.useCaseSensitiveFileNames())})}function s7t(e,t,n,i,s,l,p){if(!(e.options.stopBuildOnErrors&&p&4)&&s.options.composite)for(let g=i+1;g<l.length;g++){let m=l[g],x=jy(e,m);if(e.projectPendingBuild.has(x))continue;let b=oA(e,m,x);if(!(!b||!b.projectReferences))for(let S of b.projectReferences){let P=aR(e,S.path);if(jy(e,P)!==n)continue;let E=e.projectStatus.get(x);if(E)switch(E.type){case 1:if(p&2){E.type=2;break}case 15:case 2:p&2||e.projectStatus.set(x,{type:6,outOfDateOutputFileName:E.oldestOutputFileName,newerProjectName:t});break;case 12:jy(e,aR(e,E.upstreamProjectName))===n&&kqe(e,x);break}Cqe(e,x,0);break}}}function Mqe(e,t,n,i,s,l){Qc("SolutionBuilder::beforeBuild");let p=o7t(e,t,n,i,s,l);return Qc("SolutionBuilder::afterBuild"),R_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),p}function o7t(e,t,n,i,s,l){let p=Tqe(e,t,l);if(!p)return 3;Pqe(e,n);let g=!0,m=0;for(;;){let x=f1e(e,p,g);if(!x)break;g=!1,x.done(n,i,s?.(x.project)),e.diagnostics.has(x.projectPath)||m++}return u1e(e),Wqe(e,p),p7t(e,p),zE(p)?4:p.some(x=>e.diagnostics.has(jy(e,x)))?m?2:1:0}function Rqe(e,t,n){Qc("SolutionBuilder::beforeClean");let i=c7t(e,t,n);return Qc("SolutionBuilder::afterClean"),R_("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function c7t(e,t,n){let i=Tqe(e,t,n);if(!i)return 3;if(zE(i))return Zee(e,i.circularDiagnostics),4;let{options:s,host:l}=e,p=s.dry?[]:void 0;for(let g of i){let m=jy(e,g),x=oA(e,g,m);if(x===void 0){zqe(e,m);continue}let b=xW(x,!l.useCaseSensitiveFileNames());if(!b.length)continue;let S=new Set(x.fileNames.map(P=>Sg(e,P)));for(let P of b)S.has(Sg(e,P))||l.fileExists(P)&&(p?p.push(P):(l.deleteFile(P),g1e(e,m,0)))}return p&&V_(e,y.A_non_dry_build_would_delete_the_following_files_Colon_0,p.map(g=>`\r
|
|
* ${g}`).join("")),0}function g1e(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,kqe(e,t),Cqe(e,t,n),wqe(e)}function GW(e,t,n){e.reportFileChangeDetected=!0,g1e(e,t,n),jqe(e,250,!0)}function jqe(e,t,n){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(l7t,t,"timerToBuildInvalidatedProject",e,n))}function l7t(e,t,n){Qc("SolutionBuilder::beforeBuild");let i=u7t(t,n);Qc("SolutionBuilder::afterBuild"),R_("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&Wqe(t,i)}function u7t(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),v1e(e,y.File_change_detected_Starting_incremental_compilation));let n=0,i=HW(e),s=f1e(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let l=Dqe(e,i,!1);if(!l)break;if(l.kind!==1&&(t||n===5)){jqe(e,100,!1);return}Oqe(e,l,i).done(),l.kind!==1&&n++}return u1e(e),i}function Lqe(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,Xee(e,t,()=>GW(e,n,2),2e3,i?.watchOptions,ep.ConfigFile,t))}function Bqe(e,t,n){TW(t,n?.options,e.allWatchedExtendedConfigFiles,(i,s)=>Xee(e,i,()=>{var l;return(l=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:l.projects.forEach(p=>GW(e,p,2))},2e3,n?.watchOptions,ep.ExtendedConfigFile),i=>Sg(e,i))}function qqe(e,t,n,i){e.watch&&GM(a1e(e.allWatchedWildcardDirectories,n),i.wildcardDirectories,(s,l)=>e.watchDirectory(s,p=>{var g;KM({watchedDirPath:Sg(e,s),fileOrDirectory:p,fileOrDirectoryPath:Sg(e,p),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((g=X8t(e,n))==null?void 0:g.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:m=>e.writeLog(m),toPath:m=>Sg(e,m)})||GW(e,n,1)},l,i?.watchOptions,ep.WildcardDirectory,t))}function h1e(e,t,n,i){e.watch&&P4(a1e(e.allWatchedInputFiles,n),new Set(i.fileNames),{createNewValue:s=>Xee(e,s,()=>GW(e,n,0),250,i?.watchOptions,ep.SourceFile,t),onDeleteValue:hg})}function y1e(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||P4(a1e(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:s=>Xee(e,s,()=>GW(e,n,0),2e3,i?.watchOptions,ep.PackageJson,t),onDeleteValue:hg})}function p7t(e,t){if(e.watchAllProjectsPending){Qc("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let n of iR(t)){let i=jy(e,n),s=oA(e,n,i);Lqe(e,n,i,s),Bqe(e,i,s),s&&(qqe(e,n,i,s),h1e(e,n,i,s),y1e(e,n,i,s))}Qc("SolutionBuilder::afterWatcherCreation"),R_("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function f7t(e){h_(e.allWatchedConfigFiles,hg),h_(e.allWatchedExtendedConfigFiles,ym),h_(e.allWatchedWildcardDirectories,t=>h_(t,ym)),h_(e.allWatchedInputFiles,t=>h_(t,hg)),h_(e.allWatchedPackageJsonFiles,t=>h_(t,hg))}function Jqe(e,t,n,i,s){let l=Q8t(e,t,n,i,s);return{build:(p,g,m,x)=>Mqe(l,p,g,m,x),clean:p=>Rqe(l,p),buildReferences:(p,g,m,x)=>Mqe(l,p,g,m,x,!0),cleanReferences:p=>Rqe(l,p,!0),getNextInvalidatedProject:p=>(Pqe(l,p),f1e(l,HW(l),!1)),getBuildOrder:()=>HW(l),getUpToDateStatusOfProject:p=>{let g=aR(l,p),m=jy(l,g);return m1e(l,oA(l,g,m),m)},invalidateProject:(p,g)=>g1e(l,p,g||0),close:()=>f7t(l)}}function Pp(e,t){return MI(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function V_(e,t,...n){e.host.reportSolutionBuilderStatus(ll(t,...n))}function v1e(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,ll(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function Zee({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function sR(e,t,n){Zee(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function zqe(e,t){sR(e,t,[e.configFileCache.get(t)])}function Wqe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,s=0,l=[];zE(t)?(Uqe(e,t.buildOrder),Zee(e,t.circularDiagnostics),n&&(s+=BW(t.circularDiagnostics)),n&&(l=[...l,...qW(t.circularDiagnostics)])):(t.forEach(p=>{let g=jy(e,p);e.projectErrorsReported.has(g)||Zee(e,i.get(g)||ce)}),n&&i.forEach(p=>s+=BW(p)),n&&i.forEach(p=>[...l,...qW(p)])),e.watch?v1e(e,Aee(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,l)}function Uqe(e,t){e.options.verbose&&V_(e,y.Projects_in_this_build_Colon_0,t.map(n=>`\r
|
|
* `+Pp(e,n)).join(""))}function _7t(e,t,n){switch(n.type){case 5:return V_(e,y.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Pp(e,t),Pp(e,n.outOfDateOutputFileName),Pp(e,n.newerInputFileName));case 6:return V_(e,y.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Pp(e,t),Pp(e,n.outOfDateOutputFileName),Pp(e,n.newerProjectName));case 3:return V_(e,y.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Pp(e,t),Pp(e,n.missingOutputFileName));case 4:return V_(e,y.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Pp(e,t),Pp(e,n.fileName));case 7:return V_(e,y.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Pp(e,t),Pp(e,n.buildInfoFile));case 8:return V_(e,y.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,Pp(e,t),Pp(e,n.buildInfoFile));case 9:return V_(e,y.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Pp(e,t),Pp(e,n.buildInfoFile));case 10:return V_(e,y.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Pp(e,t),Pp(e,n.buildInfoFile),Pp(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return V_(e,y.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Pp(e,t),Pp(e,n.newestInputFileName||""),Pp(e,n.oldestOutputFileName||""));break;case 2:return V_(e,y.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Pp(e,t));case 15:return V_(e,y.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Pp(e,t));case 11:return V_(e,y.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Pp(e,t),Pp(e,n.upstreamProjectName));case 12:return V_(e,n.upstreamProjectBlocked?y.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:y.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Pp(e,t),Pp(e,n.upstreamProjectName));case 0:return V_(e,y.Project_0_is_out_of_date_because_1,Pp(e,t),n.reason);case 14:return V_(e,y.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Pp(e,t),n.version,ye);case 17:return V_(e,y.Project_0_is_being_forcibly_rebuilt,Pp(e,t));case 16:case 13:break;default:}}function ete(e,t,n){e.options.verbose&&_7t(e,t,n)}var b1e=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(b1e||{});function d7t(e){let t=m7t();return Ge(e.getSourceFiles(),n=>{let i=g7t(e,n),s=hv(n).length;t.set(i,t.get(i)+s)}),t}function m7t(){let e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function g7t(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";let n=t.path;return Wl(n,OX)?"TypeScript":Wl(n,wN)?"JavaScript":il(n,".json")?"JSON":"Other"}function tte(e,t,n){return KW(e,n)?JE(e,!0):t}function $qe(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function KW(e,t){return!t||typeof t.pretty>"u"?$qe(e):t.pretty}function Vqe(e){return e.options.all?ff(xg.concat(Qk),(t,n)=>xP(t.name,n.name)):Cn(xg.concat(Qk),t=>!!t.showInSimplifiedHelpView)}function rte(e){e.write(t_(y.Version_0,ye)+e.newLine)}function nte(e){if(!$qe(e))return{bold:b=>b,blue:b=>b,blueBackground:b=>b,brightWhite:b=>b};function n(b){return`\x1B[1m${b}\x1B[22m`}let i=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),s=e.getEnvironmentVariable("WT_SESSION"),l=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function p(b){return i&&!s&&!l?x(b):`\x1B[94m${b}\x1B[39m`}let g=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function m(b){return g?`\x1B[48;5;68m${b}\x1B[39;49m`:`\x1B[44m${b}\x1B[39;49m`}function x(b){return`\x1B[97m${b}\x1B[39m`}return{bold:n,blue:p,brightWhite:x,blueBackground:m}}function Hqe(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function h7t(e,t,n,i){var s;let l=[],p=nte(e),g=Hqe(t),m=N(t),x=typeof t.defaultValueDescription=="object"?t_(t.defaultValueDescription):S(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),b=((s=e.getWidthOfTerminal)==null?void 0:s.call(e))??0;if(b>=80){let F="";t.description&&(F=t_(t.description)),l.push(...E(g,F,n,i,b,!0),e.newLine),P(m,t)&&(m&&l.push(...E(m.valueType,m.possibleValues,n,i,b,!1),e.newLine),x&&l.push(...E(t_(y.default_Colon),x,n,i,b,!1),e.newLine)),l.push(e.newLine)}else{if(l.push(p.blue(g),e.newLine),t.description){let F=t_(t.description);l.push(F)}if(l.push(e.newLine),P(m,t)){if(m&&l.push(`${m.valueType} ${m.possibleValues}`),x){m&&l.push(e.newLine);let F=t_(y.default_Colon);l.push(`${F} ${x}`)}l.push(e.newLine)}l.push(e.newLine)}return l;function S(F,M){return F!==void 0&&typeof M=="object"?Ka(M.entries()).filter(([,L])=>L===F).map(([L])=>L).join("/"):String(F)}function P(F,M){let L=["string"],W=[void 0,"false","n/a"],z=M.defaultValueDescription;return!(M.category===y.Command_line_Options||Ta(L,F?.possibleValues)&&Ta(W,z))}function E(F,M,L,W,z,H){let X=[],ne=!0,ae=M,Y=z-W;for(;ae.length>0;){let Ee="";ne?(Ee=F.padStart(L),Ee=Ee.padEnd(W),Ee=H?p.blue(Ee):Ee):Ee="".padStart(W);let fe=ae.substr(0,Y);ae=ae.slice(Y),X.push(`${Ee}${fe}`),ne=!1}return X}function N(F){if(F.type==="object")return;return{valueType:M(F),possibleValues:L(F)};function M(W){switch(I.assert(W.type!=="listOrElement"),W.type){case"string":case"number":case"boolean":return t_(y.type_Colon);case"list":return t_(y.one_or_more_Colon);default:return t_(y.one_of_Colon)}}function L(W){let z;switch(W.type){case"string":case"number":case"boolean":z=W.type;break;case"list":case"listOrElement":z=L(W.element);break;case"object":z="";break;default:let H={};return W.type.forEach((X,ne)=>{var ae;(ae=W.deprecatedKeys)!=null&&ae.has(ne)||(H[X]||(H[X]=[])).push(ne)}),Object.entries(H).map(([,X])=>X.join("/")).join(", ")}return z}}}function Gqe(e,t){let n=0;for(let p of t){let g=Hqe(p).length;n=n>g?n:g}let i=n+2,s=i+2,l=[];for(let p of t){let g=h7t(e,p,i,s);l=[...l,...g]}return l[l.length-2]!==e.newLine&&l.push(e.newLine),l}function oR(e,t,n,i,s,l){let p=[];if(p.push(nte(e).bold(t)+e.newLine+e.newLine),s&&p.push(s+e.newLine+e.newLine),!i)return p=[...p,...Gqe(e,n)],l&&p.push(l+e.newLine+e.newLine),p;let g=new Map;for(let m of n){if(!m.category)continue;let x=t_(m.category),b=g.get(x)??[];b.push(m),g.set(x,b)}return g.forEach((m,x)=>{p.push(`### ${x}${e.newLine}${e.newLine}`),p=[...p,...Gqe(e,m)]}),l&&p.push(l+e.newLine+e.newLine),p}function y7t(e,t){let n=nte(e),i=[...ite(e,`${t_(y.tsc_Colon_The_TypeScript_Compiler)} - ${t_(y.Version_0,ye)}`)];i.push(n.bold(t_(y.COMMON_COMMANDS))+e.newLine+e.newLine),p("tsc",y.Compiles_the_current_project_tsconfig_json_in_the_working_directory),p("tsc app.ts util.ts",y.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),p("tsc -b",y.Build_a_composite_project_in_the_working_directory),p("tsc --init",y.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),p("tsc -p ./path/to/tsconfig.json",y.Compiles_the_TypeScript_project_located_at_the_specified_path),p("tsc --help --all",y.An_expanded_version_of_this_information_showing_all_possible_compiler_options),p(["tsc --noEmit","tsc --target esnext"],y.Compiles_the_current_project_with_additional_settings);let s=t.filter(g=>g.isCommandLineOnly||g.category===y.Command_line_Options),l=t.filter(g=>!Ta(s,g));i=[...i,...oR(e,t_(y.COMMAND_LINE_FLAGS),s,!1,void 0,void 0),...oR(e,t_(y.COMMON_COMPILER_OPTIONS),l,!1,void 0,cE(y.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let g of i)e.write(g);function p(g,m){let x=typeof g=="string"?[g]:g;for(let b of x)i.push(" "+n.blue(b)+e.newLine);i.push(" "+t_(m)+e.newLine+e.newLine)}}function v7t(e,t,n,i){let s=[...ite(e,`${t_(y.tsc_Colon_The_TypeScript_Compiler)} - ${t_(y.Version_0,ye)}`)];s=[...s,...oR(e,t_(y.ALL_COMPILER_OPTIONS),t,!0,void 0,cE(y.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],s=[...s,...oR(e,t_(y.WATCH_OPTIONS),i,!1,t_(y.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],s=[...s,...oR(e,t_(y.BUILD_OPTIONS),Cn(n,l=>l!==Qk),!1,cE(y.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let l of s)e.write(l)}function Kqe(e,t){let n=[...ite(e,`${t_(y.tsc_Colon_The_TypeScript_Compiler)} - ${t_(y.Version_0,ye)}`)];n=[...n,...oR(e,t_(y.BUILD_OPTIONS),Cn(t,i=>i!==Qk),!1,cE(y.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let i of n)e.write(i)}function ite(e,t){var n;let i=nte(e),s=[],l=((n=e.getWidthOfTerminal)==null?void 0:n.call(e))??0,p=5,g=i.blueBackground("".padStart(p)),m=i.blueBackground(i.brightWhite("TS ".padStart(p)));if(l>=t.length+p){let b=(l>120?120:l)-p;s.push(t.padEnd(b)+g+e.newLine),s.push("".padStart(b)+m+e.newLine)}else s.push(t+e.newLine),s.push(e.newLine);return s}function Qqe(e,t){t.options.all?v7t(e,Vqe(t),HY,FE):y7t(e,Vqe(t))}function Xqe(e,t,n){let i=JE(e),s;if(n.options.locale&&OK(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return T7t(e,i,n.options,n.fileNames),e.exit(0);if(n.options.version)return rte(e),e.exit(0);if(n.options.help||n.options.all)return Qqe(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(ll(y.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(n.fileNames.length!==0)return i(ll(y.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);let g=Zs(n.options.project);if(!g||e.directoryExists(g)){if(s=gi(g,"tsconfig.json"),!e.fileExists(s))return i(ll(y.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(s=g,!e.fileExists(s))return i(ll(y.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else if(n.fileNames.length===0){let g=Zs(e.getCurrentDirectory());s=see(g,m=>e.fileExists(m))}if(n.fileNames.length===0&&!s)return n.options.showConfig?i(ll(y.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,Zs(e.getCurrentDirectory()))):(rte(e),Qqe(e,n)),e.exit(1);let l=e.getCurrentDirectory(),p=Vz(n.options,g=>Qa(g,l));if(s){let g=new Map,m=t1e(s,p,g,n.watchOptions,e,i);if(p.showConfig)return m.errors.length!==0?(i=tte(e,i,m.options),m.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(tZ(m,s,e),null,4)+e.newLine),e.exit(0));if(i=tte(e,i,m.options),dX(m.options))return S1e(e,i)?void 0:b7t(e,t,i,m,p,n.watchOptions,g);N2(m.options)?tJe(e,t,i,m):eJe(e,t,i,m)}else{if(p.showConfig)return e.write(JSON.stringify(tZ(n,gi(l,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=tte(e,i,p),dX(p))return S1e(e,i)?void 0:x7t(e,t,i,n.fileNames,p,n.watchOptions);N2(p)?tJe(e,t,i,{...n,options:p}):eJe(e,t,i,{...n,options:p})}}function x1e(e){if(e.length>0&&e[0].charCodeAt(0)===45){let t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t===Qk.name||t===Qk.shortName}return!1}function Yqe(e,t,n){if(x1e(n)){let{buildOptions:s,watchOptions:l,projects:p,errors:g}=Fye(n);if(s.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(s.generateCpuProfile,()=>Zqe(e,t,s,l,p,g));else return Zqe(e,t,s,l,p,g)}let i=Aye(n,s=>e.readFile(s));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>Xqe(e,t,i));else return Xqe(e,t,i)}function S1e(e,t){return!e.watchFile||!e.watchDirectory?(t(ll(y.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var QW=2;function Zqe(e,t,n,i,s,l){let p=tte(e,JE(e),n);if(n.locale&&OK(n.locale,e,l),l.length>0)return l.forEach(p),e.exit(1);if(n.help||s.length===0)return rte(e),Kqe(e,kM),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return p(ll(y.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(S1e(e,p))return;let S=o1e(e,void 0,p,VW(e,KW(e,n)),w1e(e,n));S.jsDocParsingMode=QW;let P=aJe(e,n);rJe(e,t,S,P);let E=S.onWatchStatusChange,N=!1;S.onWatchStatusChange=(M,L,W,z)=>{E?.(M,L,W,z),N&&(M.code===y.Found_0_errors_Watching_for_file_changes.code||M.code===y.Found_1_error_Watching_for_file_changes.code)&&k1e(F,P)};let F=l1e(S,s,n,i);return F.build(),k1e(F,P),N=!0,F}let g=s1e(e,void 0,p,VW(e,KW(e,n)),T1e(e,n));g.jsDocParsingMode=QW;let m=aJe(e,n);rJe(e,t,g,m);let x=c1e(g,s,n),b=n.clean?x.clean():x.build();return k1e(x,m),MO(),e.exit(b)}function T1e(e,t){return KW(e,t)?(n,i)=>e.write(Iee(n,i,e.newLine,e)):void 0}function eJe(e,t,n,i){let{fileNames:s,options:l,projectReferences:p}=i,g=kW(l,void 0,e);g.jsDocParsingMode=QW;let m=g.getCurrentDirectory(),x=Xu(g.useCaseSensitiveFileNames());P3(g,E=>Ec(E,m,x)),C1e(e,l,!1);let b={rootNames:s,options:l,projectReferences:p,host:g,configFileParsingDiagnostics:Q2(i)},S=ZM(b),P=qee(S,n,E=>e.write(E+e.newLine),T1e(e,l));return ste(e,S,void 0),t(S),e.exit(P)}function tJe(e,t,n,i){let{options:s,fileNames:l,projectReferences:p}=i;C1e(e,s,!1);let g=$W(s,e);g.jsDocParsingMode=QW;let m=r1e({host:g,system:e,rootNames:l,options:s,configFileParsingDiagnostics:Q2(i),projectReferences:p,reportDiagnostic:n,reportErrorSummary:T1e(e,s),afterProgramEmitAndDiagnostics:x=>{ste(e,x.getProgram(),void 0),t(x)}});return e.exit(m)}function rJe(e,t,n,i){nJe(e,n,!0),n.afterProgramEmitAndDiagnostics=s=>{ste(e,s.getProgram(),i),t(s)}}function nJe(e,t,n){let i=t.createProgram;t.createProgram=(s,l,p,g,m,x)=>(I.assert(s!==void 0||l===void 0&&!!g),l!==void 0&&C1e(e,l,n),i(s,l,p,g,m,x))}function iJe(e,t,n){n.jsDocParsingMode=QW,nJe(e,n,!1);let i=n.afterProgramCreate;n.afterProgramCreate=s=>{i(s),ste(e,s.getProgram(),void 0),t(s)}}function w1e(e,t){return Nee(e,KW(e,t))}function b7t(e,t,n,i,s,l,p){let g=$ee({configFileName:i.options.configFilePath,optionsToExtend:s,watchOptionsToExtend:l,system:e,reportDiagnostic:n,reportWatchStatus:w1e(e,i.options)});return iJe(e,t,g),g.configFileParsingResult=i,g.extendedConfigCache=p,Hee(g)}function x7t(e,t,n,i,s,l){let p=Vee({rootFiles:i,options:s,watchOptions:l,system:e,reportDiagnostic:n,reportWatchStatus:w1e(e,s)});return iJe(e,t,p),Hee(p)}function aJe(e,t){if(e===Ru&&t.extendedDiagnostics)return DI(),S7t()}function S7t(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:n,clear:i};function t(s){let l=e?.get(s.name);l?l.type===2?l.value=Math.max(l.value,s.value):l.value+=s.value:(e??(e=new Map)).set(s.name,s)}function n(s){e?.forEach(s)}function i(){e=void 0}}function k1e(e,t){if(!t)return;if(!EI()){Ru.write(y.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
|
|
`);return}let n=[];n.push({name:"Projects in scope",value:iR(e.getBuildOrder()).length,type:1}),i("SolutionBuilder::Projects built"),i("SolutionBuilder::Timestamps only updates"),i("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(l=>{l.name=`Aggregate ${l.name}`,n.push(l)}),gS((l,p)=>{ate(l)&&n.push({name:`${s(l)} time`,value:p,type:0})}),OB(),DI(),t.clear(),cJe(Ru,n);function i(l){let p=CI(l);p&&n.push({name:s(l),value:p,type:1})}function s(l){return l.replace("SolutionBuilder::","")}}function sJe(e,t){return e===Ru&&(t.diagnostics||t.extendedDiagnostics)}function oJe(e,t){return e===Ru&&t.generateTrace}function C1e(e,t,n){sJe(e,t)&&DI(e),oJe(e,t)&&aF(n?"build":"project",t.generateTrace,t.configFilePath)}function ate(e){return La(e,"SolutionBuilder::")}function ste(e,t,n){var i;let s=t.getCompilerOptions();oJe(e,s)&&((i=Fn)==null||i.stopTracing());let l;if(sJe(e,s)){l=[];let x=e.getMemoryUsage?e.getMemoryUsage():-1;g("Files",t.getSourceFiles().length);let b=d7t(t);if(s.extendedDiagnostics)for(let[M,L]of b.entries())g("Lines of "+M,L);else g("Lines",Oi(b.values(),(M,L)=>M+L,0));g("Identifiers",t.getIdentifierCount()),g("Symbols",t.getSymbolCount()),g("Types",t.getTypeCount()),g("Instantiations",t.getInstantiationCount()),x>=0&&p({name:"Memory used",value:x,type:2},!0);let S=EI(),P=S?c2("Program"):0,E=S?c2("Bind"):0,N=S?c2("Check"):0,F=S?c2("Emit"):0;if(s.extendedDiagnostics){let M=t.getRelationCacheSizes();g("Assignability cache size",M.assignable),g("Identity cache size",M.identity),g("Subtype cache size",M.subtype),g("Strict subtype cache size",M.strictSubtype),S&&gS((L,W)=>{ate(L)||m(`${L} time`,W,!0)})}else S&&(m("I/O read",c2("I/O Read"),!0),m("I/O write",c2("I/O Write"),!0),m("Parse time",P,!0),m("Bind time",E,!0),m("Check time",N,!0),m("Emit time",F,!0));S&&m("Total time",P+E+N+F,!1),cJe(e,l),S?n?(gS(M=>{ate(M)||iF(M)}),nF(M=>{ate(M)||PI(M)})):OB():e.write(y.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
|
|
`)}function p(x,b){l.push(x),b&&n?.addAggregateStatistic(x)}function g(x,b){p({name:x,value:b,type:1},!0)}function m(x,b,S){p({name:x,value:b,type:0},S)}}function cJe(e,t){let n=0,i=0;for(let s of t){s.name.length>n&&(n=s.name.length);let l=lJe(s);l.length>i&&(i=l.length)}for(let s of t)e.write(`${s.name}:`.padEnd(n+2)+lJe(s).toString().padStart(i)+e.newLine)}function lJe(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:I.assertNever(e.type)}}function T7t(e,t,n,i){let s=e.getCurrentDirectory(),l=Zs(gi(s,"tsconfig.json"));if(e.fileExists(l))t(ll(y.A_tsconfig_json_file_is_already_defined_at_Colon_0,l));else{e.writeFile(l,Bye(n,i,e.newLine));let p=[e.newLine,...ite(e,"Created a new tsconfig.json with:")];p.push(Lye(n,e.newLine)+e.newLine+e.newLine),p.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(let g of p)e.write(g)}}function $h(e,t=!0){return{type:e,reportFallback:t}}var uJe=$h(void 0,!1),pJe=$h(void 0,!1),A3=$h(void 0,!0);function P1e(e,t){let n=Bp(e,"strictNullChecks");return{serializeTypeOfDeclaration:b,serializeReturnTypeForSignature:P,serializeTypeOfExpression:x,serializeTypeOfAccessor:m,tryReuseExistingTypeNode(pe,He){if(t.canReuseTypeNode(pe,He))return s(pe,He)}};function i(pe,He,qe=He){return He===void 0?void 0:t.markNodeReuse(pe,He.flags&16?He:j.cloneNode(He),qe??He)}function s(pe,He){let{finalizeBoundary:qe,startRecoveryScope:je,hadError:st,markError:jt}=t.createRecoveryBoundary(pe),ar=dt(He,Or,Yi);if(!qe())return;return pe.approximateLength+=He.end-He.pos,ar;function Or(Gt){if(st())return Gt;let hi=je(),$a=the(Gt)?t.enterNewScope(pe,Gt):void 0,ui=ts(Gt);return $a?.(),st()?Yi(Gt)&&!SE(Gt)?(hi(),t.serializeExistingTypeNode(pe,Gt)):Gt:ui?t.markNodeReuse(pe,ui,Gt):void 0}function nn(Gt){let hi=p4(Gt);switch(hi.kind){case 183:return ta(hi);case 186:return vn(hi);case 199:return Ct(hi);case 198:let $a=hi;if($a.operator===143)return pr($a)}return dt(Gt,Or,Yi)}function Ct(Gt){let hi=nn(Gt.objectType);if(hi!==void 0)return j.updateIndexedAccessTypeNode(Gt,hi,dt(Gt.indexType,Or,Yi))}function pr(Gt){I.assertEqual(Gt.operator,143);let hi=nn(Gt.type);if(hi!==void 0)return j.updateTypeOperatorNode(Gt,hi)}function vn(Gt){let{introducesError:hi,node:$a}=t.trackExistingEntityName(pe,Gt.exprName);if(!hi)return j.updateTypeQueryNode(Gt,$a,dn(Gt.typeArguments,Or,Yi));let ui=t.serializeTypeName(pe,Gt.exprName,!0);if(ui)return t.markNodeReuse(pe,ui,Gt.exprName)}function ta(Gt){if(t.canReuseTypeNode(pe,Gt)){let{introducesError:hi,node:$a}=t.trackExistingEntityName(pe,Gt.typeName),ui=dn(Gt.typeArguments,Or,Yi);if(hi){let Wn=t.serializeTypeName(pe,Gt.typeName,!1,ui);if(Wn)return t.markNodeReuse(pe,Wn,Gt.typeName)}else{let Wn=j.updateTypeReferenceNode(Gt,$a,ui);return t.markNodeReuse(pe,Wn,Gt)}}}function ts(Gt){var hi;if(JS(Gt))return dt(Gt.type,Or,Yi);if(Whe(Gt)||Gt.kind===319)return j.createKeywordTypeNode(133);if(Uhe(Gt))return j.createKeywordTypeNode(159);if(jN(Gt))return j.createUnionTypeNode([dt(Gt.type,Or,Yi),j.createLiteralTypeNode(j.createNull())]);if(gY(Gt))return j.createUnionTypeNode([dt(Gt.type,Or,Yi),j.createKeywordTypeNode(157)]);if(Sz(Gt))return dt(Gt.type,Or);if(Tz(Gt))return j.createArrayTypeNode(dt(Gt.type,Or,Yi));if(Hk(Gt))return j.createTypeLiteralNode(Dt(Gt.jsDocPropertyTags,It=>{let Cr=dt(Ye(It.name)?It.name:It.name.right,Or,Ye),wn=t.getJsDocPropertyOverride(pe,Gt,It);return j.createPropertySignature(void 0,Cr,It.isBracketed||It.typeExpression&&gY(It.typeExpression.type)?j.createToken(58):void 0,wn||It.typeExpression&&dt(It.typeExpression.type,Or,Yi)||j.createKeywordTypeNode(133))}));if(W_(Gt)&&Ye(Gt.typeName)&&Gt.typeName.escapedText==="")return ii(j.createKeywordTypeNode(133),Gt);if((F0(Gt)||W_(Gt))&&Zq(Gt))return j.createTypeLiteralNode([j.createIndexSignature(void 0,[j.createParameterDeclaration(void 0,void 0,"x",void 0,dt(Gt.typeArguments[0],Or,Yi))],dt(Gt.typeArguments[1],Or,Yi))]);if(LN(Gt))if(XP(Gt)){let It;return j.createConstructorTypeNode(void 0,dn(Gt.typeParameters,Or,Hc),Bi(Gt.parameters,(Cr,wn)=>Cr.name&&Ye(Cr.name)&&Cr.name.escapedText==="new"?(It=Cr.type,void 0):j.createParameterDeclaration(void 0,Wn(Cr),t.markNodeReuse(pe,j.createIdentifier(Gi(Cr,wn)),Cr),j.cloneNode(Cr.questionToken),dt(Cr.type,Or,Yi),void 0)),dt(It||Gt.type,Or,Yi)||j.createKeywordTypeNode(133))}else return j.createFunctionTypeNode(dn(Gt.typeParameters,Or,Hc),Dt(Gt.parameters,(It,Cr)=>j.createParameterDeclaration(void 0,Wn(It),t.markNodeReuse(pe,j.createIdentifier(Gi(It,Cr)),It),j.cloneNode(It.questionToken),dt(It.type,Or,Yi),void 0)),dt(Gt.type,Or,Yi)||j.createKeywordTypeNode(133));if(X4(Gt))return t.canReuseTypeNode(pe,Gt)||jt(),Gt;if(Hc(Gt)){let{node:It}=t.trackExistingEntityName(pe,Gt.name);return j.updateTypeParameterDeclaration(Gt,dn(Gt.modifiers,Or,oo),It,dt(Gt.constraint,Or,Yi),dt(Gt.default,Or,Yi))}if(j2(Gt)){let It=Ct(Gt);return It||(jt(),Gt)}if(W_(Gt)){let It=ta(Gt);return It||(jt(),Gt)}if(C0(Gt)){if(((hi=Gt.attributes)==null?void 0:hi.token)===132)return jt(),Gt;if(!t.canReuseTypeNode(pe,Gt))return t.serializeExistingTypeNode(pe,Gt);let It=at(Gt,Gt.argument.literal),Cr=It===Gt.argument.literal?i(pe,Gt.argument.literal):It;return j.updateImportTypeNode(Gt,Cr===Gt.argument.literal?i(pe,Gt.argument):j.createLiteralTypeNode(Cr),dt(Gt.attributes,Or,$k),dt(Gt.qualifier,Or,Of),dn(Gt.typeArguments,Or,Yi),Gt.isTypeOf)}if(Gu(Gt)&&Gt.name.kind===167&&!t.hasLateBindableName(Gt)){if(!E0(Gt))return $a(Gt,Or);if(t.shouldRemoveDeclaration(pe,Gt))return}if(Ss(Gt)&&!Gt.type||is(Gt)&&!Gt.type&&!Gt.initializer||vf(Gt)&&!Gt.type&&!Gt.initializer||Da(Gt)&&!Gt.type&&!Gt.initializer){let It=$a(Gt,Or);return It===Gt&&(It=t.markNodeReuse(pe,j.cloneNode(Gt),Gt)),It.type=j.createKeywordTypeNode(133),Da(Gt)&&(It.modifiers=void 0),It}if(M2(Gt)){let It=vn(Gt);return It||(jt(),Gt)}if(po(Gt)&&Tc(Gt.expression)){let{node:It,introducesError:Cr}=t.trackExistingEntityName(pe,Gt.expression);if(Cr){let wn=t.serializeTypeOfExpression(pe,Gt.expression),Di;if(R1(wn))Di=wn.literal;else{let Pi=t.evaluateEntityNameExpression(Gt.expression),da=typeof Pi.value=="string"?j.createStringLiteral(Pi.value,void 0):typeof Pi.value=="number"?j.createNumericLiteral(Pi.value,0):void 0;if(!da)return jh(wn)&&t.trackComputedName(pe,Gt.expression),Gt;Di=da}return Di.kind===11&&m_(Di.text,Po(e))?j.createIdentifier(Di.text):Di.kind===9&&!Di.text.startsWith("-")?Di:j.updateComputedPropertyName(Gt,Di)}else return j.updateComputedPropertyName(Gt,It)}if(SE(Gt)){let It;if(Ye(Gt.parameterName)){let{node:Cr,introducesError:wn}=t.trackExistingEntityName(pe,Gt.parameterName);wn&&jt(),It=Cr}else It=j.cloneNode(Gt.parameterName);return j.updateTypePredicateNode(Gt,j.cloneNode(Gt.assertsModifier),It,dt(Gt.type,Or,Yi))}if(TE(Gt)||Ff(Gt)||zk(Gt)){let It=$a(Gt,Or),Cr=t.markNodeReuse(pe,It===Gt?j.cloneNode(Gt):It,Gt),wn=Ao(Cr);return qn(Cr,wn|(pe.flags&1024&&Ff(Gt)?0:1)),Cr}if(vo(Gt)&&pe.flags&268435456&&!Gt.singleQuote){let It=j.cloneNode(Gt);return It.singleQuote=!0,It}if(R2(Gt)){let It=dt(Gt.checkType,Or,Yi),Cr=t.enterNewScope(pe,Gt),wn=dt(Gt.extendsType,Or,Yi),Di=dt(Gt.trueType,Or,Yi);Cr();let Pi=dt(Gt.falseType,Or,Yi);return j.updateConditionalTypeNode(Gt,It,wn,Di,Pi)}if(MS(Gt)){if(Gt.operator===158&&Gt.type.kind===155){if(!t.canReuseTypeNode(pe,Gt))return jt(),Gt}else if(Gt.operator===143){let It=pr(Gt);return It||(jt(),Gt)}}return $a(Gt,Or);function $a(It,Cr){let wn=!pe.enclosingFile||pe.enclosingFile!==rn(It);return Gr(It,Cr,void 0,wn?ui:void 0)}function ui(It,Cr,wn,Di,Pi){let da=dn(It,Cr,wn,Di,Pi);return da&&(da.pos!==-1||da.end!==-1)&&(da===It&&(da=j.createNodeArray(It.slice(),It.hasTrailingComma)),$g(da,-1,-1)),da}function Wn(It){return It.dotDotDotToken||(It.type&&Tz(It.type)?j.createToken(26):void 0)}function Gi(It,Cr){return It.name&&Ye(It.name)&&It.name.escapedText==="this"?"this":Wn(It)?"args":`arg${Cr}`}function at(It,Cr){let wn=t.getModuleSpecifierOverride(pe,It,Cr);return wn?ii(j.createStringLiteral(wn),Cr):Cr}}}function l(pe,He,qe){if(!pe)return;let je;return(!qe||gt(pe))&&t.canReuseTypeNode(He,pe)&&(je=s(He,pe),je!==void 0&&(je=Te(je,qe,void 0,He))),je}function p(pe,He,qe,je,st,jt=st!==void 0){if(!pe||!t.canReuseTypeNodeAnnotation(He,qe,pe,je,st)&&(!st||!t.canReuseTypeNodeAnnotation(He,qe,pe,je,!1)))return;let ar;return(!st||gt(pe))&&(ar=l(pe,He,st)),ar!==void 0||!jt?ar:(He.tracker.reportInferenceFallback(qe),t.serializeExistingTypeNode(He,pe,st)??j.createKeywordTypeNode(133))}function g(pe,He,qe,je){if(!pe)return;let st=l(pe,He,qe);return st!==void 0?st:(He.tracker.reportInferenceFallback(je??pe),t.serializeExistingTypeNode(He,pe,qe)??j.createKeywordTypeNode(133))}function m(pe,He,qe){return F(pe,He,qe)??ae(pe,t.getAllAccessorDeclarations(pe),qe,He)}function x(pe,He,qe,je){let st=fe(pe,He,!1,qe,je);return st.type!==void 0?st.type:X(pe,He,st.reportFallback)}function b(pe,He,qe){switch(pe.kind){case 169:case 341:return L(pe,He,qe);case 260:return M(pe,He,qe);case 171:case 348:case 172:return z(pe,He,qe);case 208:return H(pe,He,qe);case 277:return x(pe.expression,qe,void 0,!0);case 211:case 212:case 226:return W(pe,He,qe);case 303:case 304:return S(pe,He,qe);default:I.assertNever(pe,`Node needs to be an inferrable node, found ${I.formatSyntaxKind(pe.kind)}`)}}function S(pe,He,qe){let je=hu(pe),st;if(je&&t.canReuseTypeNodeAnnotation(qe,pe,je,He)&&(st=l(je,qe)),!st&&pe.kind===303){let jt=pe.initializer,ar=W2(jt)?JN(jt):jt.kind===234||jt.kind===216?jt.type:void 0;ar&&!_g(ar)&&t.canReuseTypeNodeAnnotation(qe,pe,ar,He)&&(st=l(ar,qe))}return st??H(pe,He,qe,!1)}function P(pe,He,qe){switch(pe.kind){case 177:return m(pe,He,qe);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return Tt(pe,He,qe);default:I.assertNever(pe,`Node needs to be an inferrable node, found ${I.formatSyntaxKind(pe.kind)}`)}}function E(pe){if(pe)return pe.kind===177?jn(pe)&&rx(pe)||dd(pe):eX(pe)}function N(pe,He){let qe=E(pe);return!qe&&pe!==He.firstAccessor&&(qe=E(He.firstAccessor)),!qe&&He.secondAccessor&&pe!==He.secondAccessor&&(qe=E(He.secondAccessor)),qe}function F(pe,He,qe){let je=t.getAllAccessorDeclarations(pe),st=N(pe,je);if(st&&!SE(st))return Y(qe,pe,()=>p(st,qe,pe,He)??H(pe,He,qe));if(je.getAccessor)return Y(qe,je.getAccessor,()=>Tt(je.getAccessor,He,qe))}function M(pe,He,qe){var je;let st=hu(pe),jt=A3;return st?jt=$h(p(st,qe,pe,He)):pe.initializer&&(((je=He.declarations)==null?void 0:je.length)===1||Vu(He.declarations,Ui)===1)&&!t.isExpandoFunctionDeclaration(pe)&&!nt(pe)&&(jt=fe(pe.initializer,qe,void 0,void 0,ome(pe))),jt.type!==void 0?jt.type:H(pe,He,qe,jt.reportFallback)}function L(pe,He,qe){let je=pe.parent;if(je.kind===178)return m(je,void 0,qe);let st=hu(pe),jt=t.requiresAddingImplicitUndefined(pe,He,qe.enclosingDeclaration),ar=A3;return st?ar=$h(p(st,qe,pe,He,jt)):Da(pe)&&pe.initializer&&Ye(pe.name)&&!nt(pe)&&(ar=fe(pe.initializer,qe,void 0,jt)),ar.type!==void 0?ar.type:H(pe,He,qe,ar.reportFallback)}function W(pe,He,qe){let je=hu(pe),st;je&&(st=p(je,qe,pe,He));let jt=qe.suppressReportInferenceFallback;qe.suppressReportInferenceFallback=!0;let ar=st??H(pe,He,qe,!1);return qe.suppressReportInferenceFallback=jt,ar}function z(pe,He,qe){let je=hu(pe),st=t.requiresAddingImplicitUndefined(pe,He,qe.enclosingDeclaration),jt=A3;if(je)jt=$h(p(je,qe,pe,He,st));else{let ar=is(pe)?pe.initializer:void 0;if(ar&&!nt(pe)){let Or=GF(pe);jt=fe(ar,qe,void 0,st,Or)}}return jt.type!==void 0?jt.type:H(pe,He,qe,jt.reportFallback)}function H(pe,He,qe,je=!0){return je&&qe.tracker.reportInferenceFallback(pe),qe.noInferenceFallback===!0?j.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(qe,pe,He)}function X(pe,He,qe=!0,je){return I.assert(!je),qe&&He.tracker.reportInferenceFallback(pe),He.noInferenceFallback===!0?j.createKeywordTypeNode(133):t.serializeTypeOfExpression(He,pe)??j.createKeywordTypeNode(133)}function ne(pe,He,qe,je){return je&&He.tracker.reportInferenceFallback(pe),He.noInferenceFallback===!0?j.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(He,pe,qe)??j.createKeywordTypeNode(133)}function ae(pe,He,qe,je,st=!0){return pe.kind===177?Tt(pe,je,qe,st):(st&&qe.tracker.reportInferenceFallback(pe),(He.getAccessor&&Tt(He.getAccessor,je,qe,st))??t.serializeTypeOfDeclaration(qe,pe,je)??j.createKeywordTypeNode(133))}function Y(pe,He,qe){let je=t.enterNewScope(pe,He),st=qe();return je(),st}function Ee(pe,He,qe,je){return _g(He)?fe(pe,qe,!0,je):$h(g(He,qe,je))}function fe(pe,He,qe=!1,je=!1,st=!1){switch(pe.kind){case 217:return W2(pe)?Ee(pe.expression,JN(pe),He,je):fe(pe.expression,He,qe,je);case 80:if(t.isUndefinedIdentifierExpression(pe))return $h(ge());break;case 106:return $h(n?Te(j.createLiteralTypeNode(j.createNull()),je,pe,He):j.createKeywordTypeNode(133));case 219:case 218:return I.type(pe),Y(He,pe,()=>te(pe,He));case 216:case 234:let jt=pe;return Ee(jt.expression,jt.type,He,je);case 224:let ar=pe;if(rz(ar))return Me(ar.operator===40?ar.operand:ar,ar.operand.kind===10?163:150,He,qe||st,je);break;case 209:return me(pe,He,qe,je);case 210:return Pe(pe,He,qe,je);case 231:return $h(X(pe,He,!0,je));case 228:if(!qe&&!st)return $h(j.createKeywordTypeNode(154));break;default:let Or,nn=pe;switch(pe.kind){case 9:Or=150;break;case 15:nn=j.createStringLiteral(pe.text),Or=154;break;case 11:Or=154;break;case 10:Or=163;break;case 112:case 97:Or=136;break}if(Or)return Me(nn,Or,He,qe||st,je)}return A3}function te(pe,He){let qe=Tt(pe,void 0,He),je=Ne(pe.typeParameters,He),st=pe.parameters.map(jt=>ie(jt,He));return $h(j.createFunctionTypeNode(je,st,qe))}function de(pe,He,qe){if(!qe)return He.tracker.reportInferenceFallback(pe),!1;for(let je of pe.elements)if(je.kind===230)return He.tracker.reportInferenceFallback(je),!1;return!0}function me(pe,He,qe,je){if(!de(pe,He,qe))return je||Ku(gg(pe).parent)?pJe:$h(X(pe,He,!1,je));let st=He.noInferenceFallback;He.noInferenceFallback=!0;let jt=[];for(let Or of pe.elements)if(I.assert(Or.kind!==230),Or.kind===232)jt.push(ge());else{let nn=fe(Or,He,qe),Ct=nn.type!==void 0?nn.type:X(Or,He,nn.reportFallback);jt.push(Ct)}let ar=j.createTupleTypeNode(jt);return ar.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},He.noInferenceFallback=st,uJe}function ve(pe,He){let qe=!0;for(let je of pe.properties){if(je.flags&262144){qe=!1;break}if(je.kind===304||je.kind===305)He.tracker.reportInferenceFallback(je),qe=!1;else if(je.name.flags&262144){qe=!1;break}else if(je.name.kind===81)qe=!1;else if(je.name.kind===167){let st=je.name.expression;!rz(st,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(st)&&(He.tracker.reportInferenceFallback(je.name),qe=!1)}}return qe}function Pe(pe,He,qe,je){if(!ve(pe,He))return je||Ku(gg(pe).parent)?pJe:$h(X(pe,He,!1,je));let st=He.noInferenceFallback;He.noInferenceFallback=!0;let jt=[],ar=He.flags;He.flags|=4194304;for(let nn of pe.properties){I.assert(!Jp(nn)&&!Lv(nn));let Ct=nn.name,pr;switch(nn.kind){case 174:pr=Y(He,nn,()=>it(nn,Ct,He,qe));break;case 303:pr=Oe(nn,Ct,He,qe);break;case 178:case 177:pr=ze(nn,Ct,He);break}pr&&(yu(pr,nn),jt.push(pr))}He.flags=ar;let Or=j.createTypeLiteralNode(jt);return He.flags&1024||qn(Or,1),He.noInferenceFallback=st,uJe}function Oe(pe,He,qe,je){let st=je?[j.createModifier(148)]:[],jt=fe(pe.initializer,qe,je),ar=jt.type!==void 0?jt.type:H(pe,void 0,qe,jt.reportFallback);return j.createPropertySignature(st,i(qe,He),void 0,ar)}function ie(pe,He){return j.updateParameterDeclaration(pe,[],i(He,pe.dotDotDotToken),t.serializeNameOfParameter(He,pe),t.isOptionalParameter(pe)?j.createToken(58):void 0,L(pe,void 0,He),void 0)}function Ne(pe,He){return pe?.map(qe=>{var je;let{node:st}=t.trackExistingEntityName(He,qe.name);return j.updateTypeParameterDeclaration(qe,(je=qe.modifiers)==null?void 0:je.map(jt=>i(He,jt)),st,g(qe.constraint,He),g(qe.default,He))})}function it(pe,He,qe,je){let st=Tt(pe,void 0,qe),jt=Ne(pe.typeParameters,qe),ar=pe.parameters.map(Or=>ie(Or,qe));return je?j.createPropertySignature([j.createModifier(148)],i(qe,He),i(qe,pe.questionToken),j.createFunctionTypeNode(jt,ar,st)):(Ye(He)&&He.escapedText==="new"&&(He=j.createStringLiteral("new")),j.createMethodSignature([],i(qe,He),i(qe,pe.questionToken),jt,ar,st))}function ze(pe,He,qe){let je=t.getAllAccessorDeclarations(pe),st=je.getAccessor&&E(je.getAccessor),jt=je.setAccessor&&E(je.setAccessor);if(st!==void 0&&jt!==void 0)return Y(qe,pe,()=>{let ar=pe.parameters.map(Or=>ie(Or,qe));return Sv(pe)?j.updateGetAccessorDeclaration(pe,[],i(qe,He),ar,g(st,qe),void 0):j.updateSetAccessorDeclaration(pe,[],i(qe,He),ar,void 0)});if(je.firstAccessor===pe){let Or=(st?Y(qe,je.getAccessor,()=>g(st,qe)):jt?Y(qe,je.setAccessor,()=>g(jt,qe)):void 0)??ae(pe,je,qe,void 0);return j.createPropertySignature(je.setAccessor===void 0?[j.createModifier(148)]:[],i(qe,He),void 0,Or)}}function ge(){return n?j.createKeywordTypeNode(157):j.createKeywordTypeNode(133)}function Me(pe,He,qe,je,st){let jt;return je?(pe.kind===224&&pe.operator===40&&(jt=j.createLiteralTypeNode(i(qe,pe.operand))),jt=j.createLiteralTypeNode(i(qe,pe))):jt=j.createKeywordTypeNode(He),$h(Te(jt,st,pe,qe))}function Te(pe,He,qe,je){let st=qe&&gg(qe).parent,jt=st&&Ku(st)&&fE(st);return!n||!(He||jt)?pe:(gt(pe)||je.tracker.reportInferenceFallback(pe),M1(pe)?j.createUnionTypeNode([...pe.types,j.createKeywordTypeNode(157)]):j.createUnionTypeNode([pe,j.createKeywordTypeNode(157)]))}function gt(pe){return!n||Yf(pe.kind)||pe.kind===201||pe.kind===184||pe.kind===185||pe.kind===188||pe.kind===189||pe.kind===187||pe.kind===203||pe.kind===197?!0:pe.kind===196?gt(pe.type):pe.kind===192||pe.kind===193?pe.types.every(gt):!1}function Tt(pe,He,qe,je=!0){let st=A3,jt=XP(pe)?hu(pe.parameters[0]):dd(pe);return jt?st=$h(p(jt,qe,pe,He)):Ok(pe)&&(st=xe(pe,qe)),st.type!==void 0?st.type:ne(pe,qe,He,je&&st.reportFallback&&!jt)}function xe(pe,He){let qe;if(pe&&!Sl(pe.body)){if(eu(pe)&3)return A3;let st=pe.body;st&&Cs(st)?_x(st,jt=>{if(jt.parent!==st)return qe=void 0,!0;if(!qe)qe=jt.expression;else return qe=void 0,!0}):qe=st}if(qe)if(nt(qe)){let je=W2(qe)?JN(qe):AN(qe)||yz(qe)?qe.type:void 0;if(je&&!_g(je))return $h(l(je,He))}else return fe(qe,He);return A3}function nt(pe){return Br(pe.parent,He=>Ls(He)||!Dc(He)&&!!hu(He)||qh(He)||MN(He))}}var Fx={};w(Fx,{NameValidationResult:()=>yJe,discoverTypings:()=>C7t,isTypingUpToDate:()=>gJe,loadSafeList:()=>w7t,loadTypesMap:()=>k7t,nonRelativeModuleNameForTypingCache:()=>hJe,renderPackageNameValidationFailure:()=>E7t,validatePackageName:()=>P7t});var XW="action::set",YW="action::invalidate",ZW="action::packageInstalled",ote="event::typesRegistry",cte="event::beginInstallTypes",lte="event::endInstallTypes",E1e="event::initializationFailed",cR="action::watchTypingLocations",ute;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(ute||(ute={}));function fJe(e){return Ru.args.includes(e)}function _Je(e){let t=Ru.args.indexOf(e);return t>=0&&t<Ru.args.length-1?Ru.args[t+1]:void 0}function dJe(){let e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}var mJe=`
|
|
`;function I3(e){return mJe+e.replace(/\n/g,mJe)}function XS(e){return I3(JSON.stringify(e,void 0,2))}function gJe(e,t){return new F_(As(t,`ts${le}`)||As(t,"latest")).compareTo(e.version)<=0}function hJe(e){return PN.has(e)?"node":e}function w7t(e,t){let n=PM(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function k7t(e,t){var n;let i=PM(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function C7t(e,t,n,i,s,l,p,g,m,x){if(!p||!p.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let b=new Map;n=Bi(n,H=>{let X=Zs(H);if(Iv(X))return X});let S=[];p.include&&L(p.include,"Explicitly included types");let P=p.exclude||[];if(!x.types){let H=new Set(n.map(Ei));H.add(i),H.forEach(X=>{W(X,"bower.json","bower_components",S),W(X,"package.json","node_modules",S)})}if(p.disableFilenameBasedTypeAcquisition||z(n),g){let H=zb(g.map(hJe),fv,fp);L(H,"Inferred typings from unresolved imports")}for(let H of P)b.delete(H)&&t&&t(`Typing for ${H} is in exclude list, will be ignored.`);l.forEach((H,X)=>{let ne=m.get(X);b.get(X)===!1&&ne!==void 0&&gJe(H,ne)&&b.set(X,H.typingLocation)});let E=[],N=[];b.forEach((H,X)=>{H?N.push(H):E.push(X)});let F={cachedTypingPaths:N,newTypingNames:E,filesToWatch:S};return t&&t(`Finished typings discovery:${XS(F)}`),F;function M(H){b.has(H)||b.set(H,!1)}function L(H,X){t&&t(`${X}: ${JSON.stringify(H)}`),Ge(H,M)}function W(H,X,ne,ae){let Y=gi(H,X),Ee,fe;e.fileExists(Y)&&(ae.push(Y),Ee=PM(Y,ve=>e.readFile(ve)).config,fe=li([Ee.dependencies,Ee.devDependencies,Ee.optionalDependencies,Ee.peerDependencies],rm),L(fe,`Typing names in '${Y}' dependencies`));let te=gi(H,ne);if(ae.push(te),!e.directoryExists(te))return;let de=[],me=fe?fe.map(ve=>gi(te,ve,X)):e.readDirectory(te,[".json"],void 0,void 0,3).filter(ve=>{if(gu(ve)!==X)return!1;let Pe=jp(Zs(ve)),Oe=Pe[Pe.length-3][0]==="@";return Oe&&wy(Pe[Pe.length-4])===ne||!Oe&&wy(Pe[Pe.length-3])===ne});t&&t(`Searching for typing names in ${te}; all files: ${JSON.stringify(me)}`);for(let ve of me){let Pe=Zs(ve),ie=PM(Pe,it=>e.readFile(it)).config;if(!ie.name)continue;let Ne=ie.types||ie.typings;if(Ne){let it=Qa(Ne,Ei(Pe));e.fileExists(it)?(t&&t(` Package '${ie.name}' provides its own types.`),b.set(ie.name,it)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else de.push(ie.name)}L(de," Found package names")}function z(H){let X=Bi(H,ae=>{if(!Iv(ae))return;let Y=yf(wy(gu(ae))),Ee=bI(Y);return s.get(Ee)});X.length&&L(X,"Inferred typings from file names"),Pt(H,ae=>il(ae,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),M("react"))}}var yJe=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(yJe||{}),vJe=214;function P7t(e){return D1e(e,!0)}function D1e(e,t){if(!e)return 1;if(e.length>vJe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){let i=D1e(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};let s=D1e(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function E7t(e,t){return typeof e=="object"?bJe(t,e.result,e.name,e.isScopeName):bJe(t,e,t,!1)}function bJe(e,t,n,i){let s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${n}' cannot be empty`;case 2:return`'${e}':: ${s} name '${n}' should be less than ${vJe} characters`;case 3:return`'${e}':: ${s} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${n}' contains non URI safe characters`;case 0:return I.fail();default:I.assertNever(t)}}var eU;(e=>{class t{constructor(s){this.text=s}getText(s,l){return s===0&&l===this.text.length?this.text:this.text.substring(s,l)}getLength(){return this.text.length}getChangeRange(){}}function n(i){return new t(i)}e.fromString=n})(eU||(eU={}));var O1e=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(O1e||{}),N1e=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(N1e||{}),A1e=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(A1e||{}),Vm={},I1e=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(I1e||{}),pte=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(pte||{}),fte=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(fte||{}),F1e=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(F1e||{}),M1e=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(M1e||{}),R1e=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(R1e||{}),_te=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(_te||{});function tU(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
|
|
`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var xJe=tU(`
|
|
`),rU=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(rU||{}),j1e=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(j1e||{}),L1e=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(L1e||{}),B1e=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(B1e||{}),q1e=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(q1e||{}),J1e=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(J1e||{}),z1e=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(z1e||{}),W1e=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(W1e||{}),U1e=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(U1e||{}),dte=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(dte||{}),gp=bv(99,!0),$1e=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))($1e||{});function nU(e){switch(e.kind){case 260:return jn(e)&&FK(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return df(e)||j0(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function iC(e){e=Pte(e);let t=e.parent;return e.kind===307?1:Gc(t)||Yp(t)||M0(t)||bf(t)||vg(t)||zu(t)&&e===t.name?7:iU(e)?D7t(e):Ny(e)?nU(t):Of(e)&&Br(e,Df(n3,qP,zS))?7:I7t(e)?2:O7t(e)?4:Hc(t)?(I.assert(Um(t.parent)),2):R1(t)?3:1}function D7t(e){let t=e.kind===166?e:If(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function iU(e){for(;e.parent.kind===166;)e=e.parent;return kk(e.parent)&&e.parent.moduleReference===e}function O7t(e){return N7t(e)||A7t(e)}function N7t(e){let t=e,n=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;n=t.right===e}return t.parent.kind===183&&!n}function A7t(e){let t=e,n=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function I7t(e){switch(S4(e)&&(e=e.parent),e.kind){case 110:return!zg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Eh(e.parent)}return!1}function mte(e,t=!1,n=!1){return lR(e,Ls,hte,t,n)}function F3(e,t=!1,n=!1){return lR(e,L2,hte,t,n)}function gte(e,t=!1,n=!1){return lR(e,wh,hte,t,n)}function V1e(e,t=!1,n=!1){return lR(e,RS,F7t,t,n)}function H1e(e,t=!1,n=!1){return lR(e,qu,hte,t,n)}function G1e(e,t=!1,n=!1){return lR(e,Qp,M7t,t,n)}function hte(e){return e.expression}function F7t(e){return e.tag}function M7t(e){return e.tagName}function lR(e,t,n,i,s){let l=i?R7t(e):aU(e);return s&&(l=Ll(l)),!!l&&!!l.parent&&t(l.parent)&&n(l.parent)===l}function aU(e){return cA(e)?e.parent:e}function R7t(e){return cA(e)||xte(e)?e.parent:e}function sU(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function uR(e,t){return ai(e.expression)?e.expression.name.text===t:!1}function pR(e){var t;return Ye(e)&&((t=_i(e.parent,VI))==null?void 0:t.label)===e}function yte(e){var t;return Ye(e)&&((t=_i(e.parent,Cx))==null?void 0:t.label)===e}function vte(e){return yte(e)||pR(e)}function bte(e){var t;return((t=_i(e.parent,ZO))==null?void 0:t.tagName)===e}function K1e(e){var t;return((t=_i(e.parent,If))==null?void 0:t.right)===e}function cA(e){var t;return((t=_i(e.parent,ai))==null?void 0:t.name)===e}function xte(e){var t;return((t=_i(e.parent,Nc))==null?void 0:t.argumentExpression)===e}function Ste(e){var t;return((t=_i(e.parent,cu))==null?void 0:t.name)===e}function Tte(e){var t;return Ye(e)&&((t=_i(e.parent,Ss))==null?void 0:t.name)===e}function oU(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return ls(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function Q1e(e){return kS(e.parent.parent)&&o4(e.parent.parent)===e}function aC(e){for(Bm(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function X2(e){switch(e.kind){case 307:return Du(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Nh(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:n}=e;return Ss(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Ai(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=$l(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let p=X2(s);return p===""?"const":p;case 3:return Ic(s)?"method":"property";case 4:return"property";case 5:return Ic(s)?"method":"property";case 6:return"local class";default:return""}case 80:return vg(e.parent)?"alias":"";case 277:let l=X2(e.expression);return l===""?"const":l;default:return""}function t(n){return iN(n)?"const":Lq(n)?"let":"var"}}function lA(e){switch(e.kind){case 110:return!0;case 80:return ZQ(e)&&e.parent.kind===169;default:return!1}}var j7t=/^\/\/\/\s*</;function Hm(e,t){let n=hv(t),i=t.getLineAndCharacterOfPosition(e).line;return n[i]}function X1e(e,t){return fR(e,t.pos)&&fR(e,t.end)}function uA(e,t){return e.pos<=t&&t<=e.end}function fR(e,t){return e.pos<t&&t<e.end}function _R(e,t,n){return e.pos<=t&&e.end>=n}function M3(e,t,n){return lU(e.pos,e.end,t,n)}function cU(e,t,n,i){return lU(e.getStart(t),e.end,n,i)}function lU(e,t,n,i){let s=Math.max(e,n),l=Math.min(t,i);return s<l}function wte(e,t,n){return I.assert(e.pos<=t),t<e.end||!Xg(e,n)}function Xg(e,t){if(e===void 0||Sl(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return kte(e,20,t);case 299:return Xg(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return kte(e,22,t);case 184:case 185:return Xg(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?Xg(e.body,t):e.type?Xg(e.type,t):Cte(e,22,t);case 267:return!!e.body&&Xg(e.body,t);case 245:return e.elseStatement?Xg(e.elseStatement,t):Xg(e.thenStatement,t);case 244:return Xg(e.expression,t)||Cte(e,27,t);case 209:case 207:case 212:case 167:case 189:return kte(e,24,t);case 181:return e.type?Xg(e.type,t):Cte(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return Xg(e.statement,t);case 246:return Cte(e,117,t)?kte(e,22,t):Xg(e.statement,t);case 186:return Xg(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return Xg(e.expression,t);case 215:return Xg(e.template,t);case 228:let i=dc(e.templateSpans);return Xg(i,t);case 239:return jm(e.literal);case 278:case 272:return jm(e.moduleSpecifier);case 224:return Xg(e.operand,t);case 226:return Xg(e.right,t);case 227:return Xg(e.whenFalse,t);default:return!0}}function kte(e,t,n){let i=e.getChildren(n);if(i.length){let s=ao(i);if(s.kind===t)return!0;if(s.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Y1e(e){let t=uU(e);if(!t)return;let n=t.getChildren();return{listItemIndex:tN(n,e),list:t}}function Cte(e,t,n){return!!gc(e,t,n)}function gc(e,t,n){return Ir(e.getChildren(n),i=>i.kind===t)}function uU(e){let t=Ir(e.parent.getChildren(),n=>qN(n)&&Zf(n,e));return I.assert(!t||Ta(t.getChildren(),e)),t}function SJe(e){return e.kind===90}function L7t(e){return e.kind===86}function B7t(e){return e.kind===100}function q7t(e){if(Gu(e))return e.name;if(bu(e)){let t=e.modifiers&&Ir(e.modifiers,SJe);if(t)return t}if(vu(e)){let t=Ir(e.getChildren(),L7t);if(t)return t}}function J7t(e){if(Gu(e))return e.name;if(jl(e)){let t=Ir(e.modifiers,SJe);if(t)return t}if(Ic(e)){let t=Ir(e.getChildren(),B7t);if(t)return t}}function z7t(e){let t;return Br(e,n=>(Yi(n)&&(t=n),!If(n.parent)&&!Yi(n.parent)&&!f2(n.parent))),t}function pU(e,t){if(e.flags&16777216)return;let n=PU(e,t);if(n)return n;let i=z7t(e);return i&&t.getTypeAtLocation(i)}function W7t(e,t){if(!t)switch(e.kind){case 263:case 231:return q7t(e);case 262:case 218:return J7t(e);case 176:return e}if(Gu(e))return e.name}function TJe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Bh(e.importClause.namedBindings)){let n=Zd(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(jv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function wJe(e,t){if(e.exportClause){if(hm(e.exportClause))return Zd(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Fy(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function U7t(e){if(e.types.length===1)return e.types[0].expression}function kJe(e,t){let{parent:n}=e;if(oo(e)&&(t||e.kind!==90)?$m(n)&&Ta(n.modifiers,e):e.kind===86?bu(n)||vu(e):e.kind===100?jl(n)||Ic(e):e.kind===120?Cp(n):e.kind===94?B2(n):e.kind===156?Wm(n):e.kind===145||e.kind===144?cu(n):e.kind===102?zu(n):e.kind===139?mm(n):e.kind===153&&v_(n)){let i=W7t(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&mp(n)&&n.declarations.length===1){let i=n.declarations[0];if(Ye(i.name))return i.name}if(e.kind===156){if(vg(n)&&n.isTypeOnly){let i=TJe(n.parent,t);if(i)return i}if(tu(n)&&n.isTypeOnly){let i=wJe(n,t);if(i)return i}}if(e.kind===130){if(bf(n)&&n.propertyName||Yp(n)&&n.propertyName||jv(n)||Fy(n))return n.name;if(tu(n)&&n.exportClause&&Fy(n.exportClause))return n.exportClause.name}if(e.kind===102&&sl(n)){let i=TJe(n,t);if(i)return i}if(e.kind===95){if(tu(n)){let i=wJe(n,t);if(i)return i}if(Gc(n))return Ll(n.expression)}if(e.kind===149&&M0(n))return n.expression;if(e.kind===161&&(sl(n)||tu(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&U_(n)&&n.token===e.kind){let i=U7t(n);if(i)return i}if(e.kind===96){if(Hc(n)&&n.constraint&&W_(n.constraint))return n.constraint.typeName;if(R2(n)&&W_(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&qk(n))return n.typeParameter.name;if(e.kind===103&&Hc(n)&&zk(n.parent))return n.name;if(e.kind===143&&MS(n)&&n.operator===143&&W_(n.type))return n.type.typeName;if(e.kind===148&&MS(n)&&n.operator===148&&cM(n.type)&&W_(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&L2(n)||e.kind===116&&kE(n)||e.kind===114&&NN(n)||e.kind===135&&kx(n)||e.kind===127&&lM(n)||e.kind===91&&Ahe(n))&&n.expression)return Ll(n.expression);if((e.kind===103||e.kind===104)&&Vn(n)&&n.operatorToken===e)return Ll(n.right);if(e.kind===130&&AN(n)&&W_(n.type))return n.type.typeName;if(e.kind===103&&bz(n)||e.kind===165&&uM(n))return Ll(n.expression)}return e}function Pte(e){return kJe(e,!1)}function fU(e){return kJe(e,!0)}function r_(e,t){return pA(e,t,n=>Oh(n)||Yf(n.kind)||Ca(n))}function pA(e,t,n){return CJe(e,t,!1,n,!1)}function ca(e,t){return CJe(e,t,!0,void 0,!1)}function CJe(e,t,n,i,s){let l=e,p;e:for(;;){let m=l.getChildren(e),x=ko(m,t,(b,S)=>S,(b,S)=>{let P=m[b].getEnd();if(P<t)return-1;let E=n?m[b].getFullStart():m[b].getStart(e,!0);return E>t?1:g(m[b],E,P)?m[b-1]&&g(m[b-1])?1:0:i&&E===t&&m[b-1]&&m[b-1].getEnd()===t&&g(m[b-1])?1:-1});if(p)return p;if(x>=0&&m[x]){l=m[x];continue e}return l}function g(m,x,b){if(b??(b=m.getEnd()),b<t||(x??(x=n?m.getFullStart():m.getStart(e,!0)),x>t))return!1;if(t<b||t===b&&(m.kind===1||s))return!0;if(i&&b===t){let S=Ou(t,e,m);if(S&&i(S))return p=S,!0}return!1}}function Z1e(e,t){let n=ca(e,t);for(;_U(n);){let i=Y2(n,n.parent,e);if(!i)return;n=i}return n}function R3(e,t){let n=ca(e,t);return RP(n)&&t>n.getStart(e)&&t<n.getEnd()?n:Ou(t,e)}function Y2(e,t,n){return i(t);function i(s){return RP(s)&&s.pos===e.end?s:jr(s.getChildren(n),l=>(l.pos<=e.pos&&l.end>e.end||l.pos===e.end)&&abe(l,n)?i(l):void 0)}}function Ou(e,t,n,i){let s=l(n||t);return I.assert(!(s&&_U(s))),s;function l(p){if(PJe(p)&&p.kind!==1)return p;let g=p.getChildren(t),m=ko(g,e,(b,S)=>S,(b,S)=>e<g[b].end?!g[b-1]||e>=g[b-1].end?0:1:-1);if(m>=0&&g[m]){let b=g[m];if(e<b.end)if(b.getStart(t,!i)>=e||!abe(b,t)||_U(b)){let E=tbe(g,m,t,p.kind);return E?!i&&Sq(E)&&E.getChildren(t).length?l(E):ebe(E,t):void 0}else return l(b)}I.assert(n!==void 0||p.kind===307||p.kind===1||Sq(p));let x=tbe(g,g.length,t,p.kind);return x&&ebe(x,t)}}function PJe(e){return RP(e)&&!_U(e)}function ebe(e,t){if(PJe(e))return e;let n=e.getChildren(t);if(n.length===0)return e;let i=tbe(n,n.length,t,e.kind);return i&&ebe(i,t)}function tbe(e,t,n,i){for(let s=t-1;s>=0;s--){let l=e[s];if(_U(l))s===0&&(i===12||i===285)&&I.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(abe(e[s],n))return e[s]}}function WE(e,t,n=Ou(t,e)){if(n&&JK(n)){let i=n.getStart(e),s=n.getEnd();if(i<t&&t<s)return!0;if(t===s)return!!n.isUnterminated}return!1}function rbe(e,t){let n=ca(e,t);return n?!!(n.kind===12||n.kind===30&&n.parent.kind===12||n.kind===30&&n.parent.kind===294||n&&n.kind===20&&n.parent.kind===294||n.kind===30&&n.parent.kind===287):!1}function _U(e){return hE(e)&&e.containsOnlyTriviaWhiteSpaces}function Ete(e,t){let n=ca(e,t);return ix(n.kind)&&t>n.getStart(e)}function nbe(e,t){let n=ca(e,t);return!!(hE(n)||n.kind===19&&MN(n.parent)&&qh(n.parent.parent)||n.kind===30&&Qp(n.parent)&&qh(n.parent.parent))}function dU(e,t){function n(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return n(ca(e,t))}function mU(e,t,n){let i=to(e.kind),s=to(t),l=e.getFullStart(),p=n.text.lastIndexOf(s,l);if(p===-1)return;if(n.text.lastIndexOf(i,l-1)<p){let x=Ou(p+1,n);if(x&&x.kind===t)return x}let g=e.kind,m=0;for(;;){let x=Ou(e.getFullStart(),n);if(!x)return;if(e=x,e.kind===t){if(m===0)return e;m--}else e.kind===g&&m++}}function $7t(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}function dR(e,t,n){let i=Ote(e,t);return i!==void 0&&(Eh(i.called)||Dte(i.called,i.nTypeArguments,n).length!==0||dR(i.called,t,n))}function Dte(e,t,n){let i=n.getTypeAtLocation(e);return Kp(e.parent)&&(i=$7t(i,UI(e.parent),!0)),(L2(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(l=>!!l.typeParameters&&l.typeParameters.length>=t)}function Ote(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let n=e,i=0,s=0;for(;n;){switch(n.kind){case 30:if(n=Ou(n.getFullStart(),t),n&&n.kind===29&&(n=Ou(n.getFullStart(),t)),!n||!Ye(n))return;if(!i)return Ny(n)?void 0:{called:n,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(n=mU(n,19,t),!n)return;break;case 22:if(n=mU(n,21,t),!n)return;break;case 24:if(n=mU(n,23,t),!n)return;break;case 28:s++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Yi(n))break;return}n=Ou(n.getFullStart(),t)}}function q1(e,t,n){return Su.getRangeOfEnclosingComment(e,t,void 0,n)}function ibe(e,t){let n=ca(e,t);return!!Br(n,Gg)}function abe(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function j3(e,t=0){let n=[],i=Ku(e)?DK(e)&~t:0;return i&2&&n.push("private"),i&4&&n.push("protected"),i&1&&n.push("public"),(i&256||Al(e))&&n.push("static"),i&64&&n.push("abstract"),i&32&&n.push("export"),i&65536&&n.push("deprecated"),e.flags&33554432&&n.push("declare"),e.kind===277&&n.push("export"),n.length>0?n.join(","):""}function sbe(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Ss(e)||e.kind===263||e.kind===264)return e.typeParameters}function gU(e){return e===2||e===3}function Nte(e){return!!(e===11||e===14||ix(e))}function EJe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function obe(e){if(!e.isIntersection())return!1;let{types:t,checker:n}=e;return t.length===2&&(EJe(n,t[0],t[1])||EJe(n,t[1],t[0]))}function mR(e,t,n){return ix(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function Ate(e){switch(e){case 125:case 123:case 124:return!0}return!1}function Ite(e){let t=hB(e);return nZ(t,e&&e.configFile),t}function J1(e){return!!((e.kind===209||e.kind===210)&&(e.parent.kind===226&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===250&&e.parent.initializer===e||J1(e.parent.kind===303?e.parent.parent:e.parent)))}function cbe(e,t){return DJe(e,t,!0)}function lbe(e,t){return DJe(e,t,!1)}function DJe(e,t,n){let i=q1(e,t,void 0);return!!i&&n===j7t.test(e.text.substring(i.pos,i.end))}function Fte(e,t){if(e)switch(e.kind){case 11:case 15:return Mte(e,t);default:return Lf(e)}}function Lf(e,t,n){return Ul(e.getStart(t),(n||e).getEnd())}function Mte(e,t){let n=e.getEnd()-1;if(e.isUnterminated){if(e.getStart()===n)return;n=Math.min(t,e.getEnd())}return Ul(e.getStart()+1,n)}function Rte(e,t){return um(e.getStart(t),e.end)}function z1(e){return Ul(e.pos,e.end)}function hU(e){return um(e.start,e.start+e.length)}function yU(e,t,n){return gR(Sp(e,t),n)}function gR(e,t){return{span:e,newText:t}}var jte=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159];function L3(e){return Ta(jte,e)}function OJe(e){return e.kind===156}function vU(e){return OJe(e)||Ye(e)&&e.text==="type"}function fA(){let e=[];return t=>{let n=Wo(t);return!e[n]&&(e[n]=!0)}}function UE(e){return e.getText(0,e.getLength())}function hR(e,t){let n="";for(let i=0;i<t;i++)n+=e;return n}function Lte(e){return e.isTypeParameter()&&e.getConstraint()||e}function yR(e){return e.kind===167?Dd(e.expression)?e.expression.text:void 0:Ca(e)?fi(e):lm(e)}function ube(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function pbe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Bte(e){return!!e.module||Po(e)>=2||!!e.noEmit}function YS(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Ra(t,t.readFile),useCaseSensitiveFileNames:Ra(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:Ra(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Ra(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Ra(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Ra(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:n=>e.getDefaultResolutionModeForFile(n),getModeForResolutionAtIndex:(n,i)=>e.getModeForResolutionAtIndex(n,i)}}function qte(e,t){return{...YS(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function bU(e){return e===2||e>=3&&e<=99||e===100}function Mx(e,t,n,i,s){return j.createImportDeclaration(void 0,e||t?j.createImportClause(!!s,e,t&&t.length?j.createNamedImports(t):void 0):void 0,typeof n=="string"?B3(n,i):n,void 0)}function B3(e,t){return j.createStringLiteral(e,t===0)}var fbe=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(fbe||{});function Jte(e,t){return eJ(e,t)?1:0}function H_(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let n=Pv(e)&&e.imports&&Ir(e.imports,i=>vo(i)&&!Pc(i.parent));return n?Jte(n,e):1}}function zte(e){switch(e){case 0:return"'";case 1:return'"';default:return I.assertNever(e)}}function Wte(e){let t=xU(e);return t===void 0?void 0:ka(t)}function xU(e){return e.escapedName!=="default"?e.escapedName:jr(e.declarations,t=>{let n=ls(t);return n&&n.kind===80?n.escapedText:void 0})}function SU(e){return Ho(e)&&(M0(e.parent)||sl(e.parent)||zh(e.parent)||Xf(e.parent,!1)&&e.parent.arguments[0]===e||_d(e.parent)&&e.parent.arguments[0]===e)}function vR(e){return Do(e)&&Nd(e.parent)&&Ye(e.name)&&!e.propertyName}function TU(e,t){let n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function bR(e,t,n){if(e)for(;e.parent;){if(ba(e.parent)||!V7t(n,e.parent,t))return e;e=e.parent}}function V7t(e,t,n){return CK(e,t.getStart(n))&&t.getEnd()<=ml(e)}function _A(e,t){return $m(e)?Ir(e.modifiers,n=>n.kind===t):void 0}function Ute(e,t,n,i,s){var l;let g=(cs(n)?n[0]:n).kind===243?s5:$P,m=Cn(t.statements,g),{comparer:x,isSorted:b}=sT.getOrganizeImportsStringComparerWithDetection(m,s),S=cs(n)?ff(n,(P,E)=>sT.compareImportsOrRequireStatements(P,E,x)):[n];if(!m?.length){if(Pv(t))e.insertNodesAtTopOfFile(t,S,i);else for(let P of S)e.insertStatementsInNewFile(t.fileName,[P],(l=al(P))==null?void 0:l.getSourceFile());return}if(I.assert(Pv(t)),m&&b)for(let P of S){let E=sT.getImportDeclarationInsertionIndex(m,P,x);if(E===0){let N=m[0]===t.statements[0]?{leadingTriviaOption:Ln.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,m[0],P,!1,N)}else{let N=m[E-1];e.insertNodeAfter(t,N,P)}}else{let P=dc(m);P?e.insertNodesAfter(t,P,S):e.insertNodesAtTopOfFile(t,S,i)}}function $te(e,t){return I.assert(e.isTypeOnly),Js(e.getChildAt(0,t),OJe)}function dA(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function Vte(e,t,n){return(n?fv:cg)(e.fileName,t.fileName)&&dA(e.textSpan,t.textSpan)}function Hte(e){return(t,n)=>Vte(t,n,e)}function Gte(e,t){if(e){for(let n=0;n<e.length;n++)if(e.indexOf(e[n])===n){let i=t(e[n],n);if(i)return i}}}function _be(e,t,n){for(let i=t;i<n;i++)if(!yv(e.charCodeAt(i)))return!1;return!0}function q3(e,t,n){let i=t.tryGetSourcePosition(e);return i&&(!n||n(Zs(i.fileName))?i:void 0)}function wU(e,t,n){let{fileName:i,textSpan:s}=e,l=q3({fileName:i,pos:s.start},t,n);if(!l)return;let p=q3({fileName:i,pos:s.start+s.length},t,n),g=p?p.pos-l.pos:s.length;return{fileName:l.fileName,textSpan:{start:l.pos,length:g},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:Kte(e,t,n),originalContextSpan:e.contextSpan}}function Kte(e,t,n){let i=e.contextSpan&&q3({fileName:e.fileName,pos:e.contextSpan.start},t,n),s=e.contextSpan&&q3({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,n);return i&&s?{start:i.pos,length:s.pos-i.pos}:void 0}function Qte(e){let t=e.declarations?Yl(e.declarations):void 0;return!!Br(t,n=>Da(n)?!0:Do(n)||Nd(n)||j1(n)?!1:"quit")}var dbe=H7t();function H7t(){let e=ZI*10,t,n,i,s;b();let l=S=>g(S,17);return{displayParts:()=>{let S=t.length&&t[t.length-1].text;return s>e&&S&&S!=="..."&&(yv(S.charCodeAt(S.length-1))||t.push(b_(" ",16)),t.push(b_("...",15))),t},writeKeyword:S=>g(S,5),writeOperator:S=>g(S,12),writePunctuation:S=>g(S,15),writeTrailingSemicolon:S=>g(S,15),writeSpace:S=>g(S,16),writeStringLiteral:S=>g(S,8),writeParameter:S=>g(S,13),writeProperty:S=>g(S,14),writeLiteral:S=>g(S,8),writeSymbol:m,writeLine:x,write:l,writeComment:l,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:zs,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:b};function p(){if(!(s>e)&&n){let S=pJ(i);S&&(s+=S.length,t.push(b_(S,16))),n=!1}}function g(S,P){s>e||(p(),s+=S.length,t.push(b_(S,P)))}function m(S,P){s>e||(p(),s+=S.length,t.push(G7t(S,P)))}function x(){s>e||(s+=1,t.push(mA()),n=!0)}function b(){t=[],n=!0,i=0,s=0}}function G7t(e,t){return b_(e,n(t));function n(i){let s=i.flags;return s&3?Qte(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function b_(e,t){return{text:e,kind:rU[t]}}function Il(){return b_(" ",16)}function G_(e){return b_(to(e),5)}function tf(e){return b_(to(e),15)}function J3(e){return b_(to(e),12)}function mbe(e){return b_(e,13)}function gbe(e){return b_(e,14)}function Xte(e){let t=dk(e);return t===void 0?Rd(e):G_(t)}function Rd(e){return b_(e,17)}function hbe(e){return b_(e,0)}function ybe(e){return b_(e,18)}function vbe(e){return b_(e,24)}function K7t(e,t){return{text:e,kind:rU[23],target:{fileName:rn(t).fileName,textSpan:Lf(t)}}}function NJe(e){return b_(e,22)}function bbe(e,t){var n;let i=Jhe(e)?"link":zhe(e)?"linkcode":"linkplain",s=[NJe(`{@${i} `)];if(!e.name)e.text&&s.push(vbe(e.text));else{let l=t?.getSymbolAtLocation(e.name),p=l&&t?ere(l,t):void 0,g=X7t(e.text),m=cl(e.name)+e.text.slice(0,g),x=Q7t(e.text.slice(g)),b=p?.valueDeclaration||((n=p?.declarations)==null?void 0:n[0]);if(b)s.push(K7t(m,b)),x&&s.push(vbe(x));else{let S=g===0||e.text.charCodeAt(g)===124&&m.charCodeAt(m.length-1)!==32?" ":"";s.push(vbe(m+S+x))}}return s.push(NJe("}")),s}function Q7t(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function X7t(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let n=0,i=0;for(;i<e.length;)if(e[i]==="<"&&n++,e[i]===">"&&n--,i++,!n)return i}return 0}var Y7t=`
|
|
`;function B0(e,t){var n;return t?.newLineCharacter||((n=e.getNewLine)==null?void 0:n.call(e))||Y7t}function mA(){return b_(`
|
|
`,6)}function ZS(e){try{return e(dbe),dbe.displayParts()}finally{dbe.clear()}}function xR(e,t,n,i=0){return ZS(s=>{e.writeType(t,n,i|1024|16384,s)})}function z3(e,t,n,i,s=0){return ZS(l=>{e.writeSymbol(t,n,i,s|8,l)})}function Yte(e,t,n,i=0){return i|=25632,ZS(s=>{e.writeSignature(t,n,i,void 0,s)})}function xbe(e){return!!e.parent&&ax(e.parent)&&e.parent.propertyName===e}function Zte(e,t){return zJ(e,t.getScriptKind&&t.getScriptKind(e))}function ere(e,t){let n=e;for(;Z7t(n)||Tv(n)&&n.links.target;)Tv(n)&&n.links.target?n=n.links.target:n=Tp(n,t);return n}function Z7t(e){return(e.flags&2097152)!==0}function Sbe(e,t){return co(Tp(e,t))}function Tbe(e,t){for(;yv(e.charCodeAt(t));)t+=1;return t}function kU(e,t){for(;t>-1&&Th(e.charCodeAt(t));)t-=1;return t+1}function tc(e,t=!0){let n=e&&AJe(e);return n&&!t&&K_(n),IS(n,!1)}function SR(e,t,n){let i=n(e);return i?ii(i,e):i=AJe(e,n),i&&!t&&K_(i),i}function AJe(e,t){let n=t?l=>SR(l,!0,t):tc,s=Gr(e,n,void 0,t?l=>l&&tre(l,!0,t):l=>l&&Z2(l),n);if(s===e){let l=vo(e)?ii(j.createStringLiteralFromNode(e),e):e_(e)?ii(j.createNumericLiteral(e.text,e.numericLiteralFlags),e):j.cloneNode(e);return Ot(l,e)}return s.parent=void 0,s}function Z2(e,t=!0){if(e){let n=j.createNodeArray(e.map(i=>tc(i,t)),e.hasTrailingComma);return Ot(n,e),n}return e}function tre(e,t,n){return j.createNodeArray(e.map(i=>SR(i,t,n)),e.hasTrailingComma)}function K_(e){rre(e),wbe(e)}function rre(e){kbe(e,1024,tFt)}function wbe(e){kbe(e,2048,gX)}function sC(e,t){let n=e.getSourceFile(),i=n.text;eFt(e,i)?gA(e,t,n):wR(e,t,n),W3(e,t,n)}function eFt(e,t){let n=e.getFullStart(),i=e.getStart();for(let s=n;s<i;s++)if(t.charCodeAt(s)===10)return!0;return!1}function kbe(e,t,n){Mh(e,t);let i=n(e);i&&kbe(i,t,n)}function tFt(e){return e.forEachChild(t=>t)}function oC(e,t){let n=e;for(let i=1;!Nq(t,n);i++)n=`${e}_${i}`;return n}function TR(e,t,n,i){let s=0,l=-1;for(let{fileName:p,textChanges:g}of e){I.assert(p===t);for(let m of g){let{span:x,newText:b}=m,S=rFt(b,Ay(n));if(S!==-1&&(l=x.start+s+S,!i))return l;s+=b.length-x.length}}return I.assert(i),I.assert(l>=0),l}function gA(e,t,n,i,s){yF(n.text,e.pos,Cbe(t,n,i,s,F2))}function W3(e,t,n,i,s){vF(n.text,e.end,Cbe(t,n,i,s,$4))}function wR(e,t,n,i,s){vF(n.text,e.pos,Cbe(t,n,i,s,F2))}function Cbe(e,t,n,i,s){return(l,p,g,m)=>{g===3?(l+=2,p-=2):l+=2,s(e,n||g,t.text.slice(l,p),i!==void 0?i:m)}}function rFt(e,t){if(La(e,t))return 0;let n=e.indexOf(" "+t);return n===-1&&(n=e.indexOf("."+t)),n===-1&&(n=e.indexOf('"'+t)),n===-1?-1:n+1}function CU(e){return Vn(e)&&e.operatorToken.kind===28||So(e)||(AN(e)||IN(e))&&So(e.expression)}function PU(e,t,n){let i=gg(e.parent);switch(i.kind){case 214:return t.getContextualType(i,n);case 226:{let{left:s,operatorToken:l,right:p}=i;return EU(l.kind)?t.getTypeAtLocation(e===p?s:p):t.getContextualType(e,n)}case 296:return ire(i,t);default:return t.getContextualType(e,n)}}function U3(e,t,n){let i=H_(e,t),s=JSON.stringify(n);return i===0?`'${qm(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function EU(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Pbe(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function nre(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function ire(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var are="anonymous function";function $3(e,t,n,i){let s=n.getTypeChecker(),l=!0,p=()=>l=!1,g=s.typeToTypeNode(e,t,1,8,{trackSymbol:(m,x,b)=>(l=l&&s.isSymbolAccessible(m,x,b,!1).accessibility===0,!l),reportInaccessibleThisError:p,reportPrivateInBaseOfClassExpression:p,reportInaccessibleUniqueSymbolError:p,moduleResolverHost:qte(n,i)});return l?g:void 0}function Ebe(e){return e===179||e===180||e===181||e===171||e===173}function IJe(e){return e===262||e===176||e===174||e===177||e===178}function FJe(e){return e===267}function Dbe(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}var nFt=Df(Ebe,IJe,FJe,Dbe);function iFt(e,t){let n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(Ebe(e.kind)){if(n&&n.kind===28)return!1}else if(FJe(e.kind)){let g=ao(e.getChildren(t));if(g&&Lh(g))return!1}else if(IJe(e.kind)){let g=ao(e.getChildren(t));if(g&&y2(g))return!1}else if(!Dbe(e.kind))return!1;if(e.kind===246)return!0;let i=Br(e,g=>!g.parent),s=Y2(e,i,t);if(!s||s.kind===20)return!0;let l=t.getLineAndCharacterOfPosition(e.getEnd()).line,p=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return l!==p}function DU(e,t,n){let i=Br(t,s=>s.end!==e?"quit":nFt(s.kind));return!!i&&iFt(i,n)}function kR(e){let t=0,n=0,i=5;return xs(e,function s(l){if(Dbe(l.kind)){let p=l.getLastToken(e);p?.kind===27?t++:n++}else if(Ebe(l.kind)){let p=l.getLastToken(e);if(p?.kind===27)t++;else if(p&&p.kind!==28){let g=$s(e,p.getStart(e)).line,m=$s(e,Ch(e,p.end).start).line;g!==m&&n++}}return t+n>=i?!0:xs(l,s)}),t===0&&n<=1?!0:t/n>1/i}function OU(e,t){return Obe(e,e.getDirectories,t)||[]}function sre(e,t,n,i,s){return Obe(e,e.readDirectory,t,n,i,s)||ce}function V3(e,t){return Obe(e,e.fileExists,t)}function NU(e,t){return AU(()=>Wg(t,e))||!1}function AU(e){try{return e()}catch{return}}function Obe(e,t,...n){return AU(()=>t&&t.apply(e,n))}function ore(e,t){let n=[];return My(t,e,i=>{let s=gi(i,"package.json");V3(t,s)&&n.push(s)}),n}function Nbe(e,t){let n;return My(t,e,i=>{if(i==="node_modules"||(n=see(i,s=>V3(t,s),"package.json"),n))return!0}),n}function aFt(e,t){if(!t.fileExists)return[];let n=[];return My(t,Ei(e),i=>{let s=gi(i,"package.json");if(t.fileExists(s)){let l=cre(s,t);l&&n.push(l)}}),n}function cre(e,t){if(!t.readFile)return;let n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=wJ(i),l={};if(s)for(let m of n){let x=s[m];if(!x)continue;let b=new Map;for(let S in x)b.set(S,x[S]);l[m]=b}let p=[[1,l.dependencies],[2,l.devDependencies],[8,l.optionalDependencies],[4,l.peerDependencies]];return{...l,parseable:!!s,fileName:e,get:g,has(m,x){return!!g(m,x)}};function g(m,x=15){for(let[b,S]of p)if(S&&x&b){let P=S.get(m);if(P!==void 0)return P}}}function hA(e,t,n){let i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||aFt(e.fileName,n)).filter(N=>N.parseable),s,l,p;return{allowsImportingAmbientModule:m,getSourceFileInfo:x,allowsImportingSpecifier:b};function g(N){let F=E(N);for(let M of i)if(M.has(F)||M.has(sW(F)))return!0;return!1}function m(N,F){if(!i.length||!N.valueDeclaration)return!0;if(!l)l=new Map;else{let H=l.get(N);if(H!==void 0)return H}let M=qm(N.getName());if(S(M))return l.set(N,!0),!0;let L=N.valueDeclaration.getSourceFile(),W=P(L.fileName,F);if(typeof W>"u")return l.set(N,!0),!0;let z=g(W)||g(M);return l.set(N,z),z}function x(N,F){if(!i.length)return{importable:!0,packageName:void 0};if(!p)p=new Map;else{let z=p.get(N);if(z!==void 0)return z}let M=P(N.fileName,F);if(!M){let z={importable:!0,packageName:M};return p.set(N,z),z}let W={importable:g(M),packageName:M};return p.set(N,W),W}function b(N){return!i.length||S(N)||pd(N)||j_(N)?!0:g(N)}function S(N){return!!(Pv(e)&&Nf(e)&&PN.has(N)&&(s===void 0&&(s=IU(e)),s))}function P(N,F){if(!N.includes("node_modules"))return;let M=L0.getNodeModulesPackageName(n.getCompilationSettings(),e,N,F,t);if(M&&!pd(M)&&!j_(M))return E(M)}function E(N){let F=jp(g3(N)).slice(1);return La(F[0],"@")?`${F[0]}/${F[1]}`:F[0]}}function IU(e){return Pt(e.imports,({text:t})=>PN.has(t))}function CR(e){return Ta(jp(e),"node_modules")}function MJe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Abe(e,t){let n=Lf(e),i=ko(t,n,vc,$b);if(i>=0){let s=t[i];return I.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Js(s,MJe)}}function Ibe(e,t){var n;let i=ko(t,e.start,p=>p.start,mc);for(i<0&&(i=~i);((n=t[i-1])==null?void 0:n.start)===e.start;)i--;let s=[],l=ml(e);for(;;){let p=_i(t[i],MJe);if(!p||p.start>l)break;W_e(e,p)&&s.push(p),i++}return s}function $E({startPosition:e,endPosition:t}){return Ul(e,t===void 0?e:t)}function lre(e,t){let n=ca(e,t.start);return Br(n,s=>s.getStart(e)<t.start||s.getEnd()>ml(t)?"quit":At(s)&&dA(t,Lf(s,e)))}function ure(e,t,n=vc){return e?cs(e)?n(Dt(e,t)):t(e,0):void 0}function pre(e){return cs(e)?ho(e):e}function FU(e,t,n){return e.escapedName==="export="||e.escapedName==="default"?fre(e)||PR(sFt(e),t,!!n):e.name}function fre(e){return jr(e.declarations,t=>{var n,i,s;if(Gc(t))return(n=_i(Ll(t.expression),Ye))==null?void 0:n.text;if(Yp(t)&&t.symbol.flags===2097152)return(i=_i(t.propertyName,Ye))==null?void 0:i.text;let l=(s=_i(ls(t),Ye))==null?void 0:s.text;if(l)return l;if(e.parent&&!JP(e.parent))return e.parent.getName()})}function sFt(e){var t;return I.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${I.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(n=>{let i=I.formatSyntaxKind(n.kind),s=jn(n),{expression:l}=n;return(s?"[JS]":"")+i+(l?` (expression: ${I.formatSyntaxKind(l.kind)})`:"")}).join(", ")}.`)}function PR(e,t,n){return ER(yf(qm(e.name)),t,n)}function ER(e,t,n){let i=gu(a2(yf(e),"/index")),s="",l=!0,p=i.charCodeAt(0);Cy(p,t)?(s+=String.fromCharCode(p),n&&(s=s.toUpperCase())):l=!1;for(let g=1;g<i.length;g++){let m=i.charCodeAt(g),x=T0(m,t);if(x){let b=String.fromCharCode(m);l||(b=b.toUpperCase()),s+=b}l=x}return ZP(s)?`_${s}`:s||"_"}function Fbe(e,t,n){let i=t.length;if(i+n>e.length)return!1;for(let s=0;s<i;s++)if(t.charCodeAt(s)!==e.charCodeAt(s+n))return!1;return!0}function _re(e){return e.charCodeAt(0)===95}function MU(e){return!!(DK(e)&65536)}function RU(e,t){let n;for(let i of e.imports)if(PN.has(i.text)&&!iz.has(i.text)){if(La(i.text,"node:"))return!0;n=!1}return n??t.usesUriStyleNodeCoreModules}function DR(e){return e===`
|
|
`?1:0}function ew(e){return cs(e)?Nv(gs(e[0]),e.slice(1)):gs(e)}function jU({options:e},t){let n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!kR(t);return{...e,semicolons:i?"remove":"ignore"}}function dre(e){return e===2||e===3}function yA(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function LU(e,t){let n=new Set,i=new Set,s=new Set;for(let g of t)if(!r3(g)){let m=Qo(g.expression);if(hk(m))switch(m.kind){case 15:case 11:n.add(m.text);break;case 9:i.add(parseInt(m.text));break;case 10:let x=Bge(bc(m.text,"n")?m.text.slice(0,-1):m.text);x&&s.add(A2(x));break}else{let x=e.getSymbolAtLocation(g.expression);if(x&&x.valueDeclaration&&L1(x.valueDeclaration)){let b=e.getConstantValue(x.valueDeclaration);b!==void 0&&l(b)}}}return{addValue:l,hasValue:p};function l(g){switch(typeof g){case"string":n.add(g);break;case"number":i.add(g)}}function p(g){switch(typeof g){case"string":return n.has(g);case"number":return i.has(g);case"object":return s.has(A2(g))}}}function mre(e,t,n,i){var s;let l=typeof e=="string"?e:e.fileName;if(!Iv(l))return!1;let p=typeof e=="string"?t.getCompilerOptions():t.getCompilerOptionsForFile(e),g=hf(p),m=typeof e=="string"?{fileName:e,impliedNodeFormat:YM(Ec(e,n.getCurrentDirectory(),D0(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,p)}:e,x=nC(m,p);if(x===99)return!1;if(x===1||p.verbatimModuleSyntax&&g===1)return!0;if(p.verbatimModuleSyntax&&z5(g))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}function VE(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function BU(e,t,n,i){var s;let l=OW(e,(s=n.getPackageJsonInfoCache)==null?void 0:s.call(n),i,n.getCompilerOptions()),p,g;return typeof l=="object"&&(p=l.impliedNodeFormat,g=l.packageJsonScope),{path:Ec(e,n.getCurrentDirectory(),n.getCanonicalFileName),fileName:e,externalModuleIndicator:t===99?!0:void 0,commonJsModuleIndicator:t===1?!0:void 0,impliedNodeFormat:p,packageJsonScope:g,statements:ce,imports:ce}}var Mbe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(Mbe||{}),Rbe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(Rbe||{});function gre(e){let t=1,n=Zl(),i=new Map,s=new Map,l,p={isUsableByFile:E=>E===l,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),l=void 0},add:(E,N,F,M,L,W,z,H)=>{E!==l&&(p.clear(),l=E);let X;if(L){let Oe=YJ(L.fileName);if(Oe){let{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:Ne,packageRootIndex:it}=Oe;if(X=MM(g3(L.fileName.substring(Ne+1,it))),La(E,L.path.substring(0,ie))){let ze=s.get(X),ge=L.fileName.substring(0,Ne+1);if(ze){let Me=ze.indexOf(Bv);ie>Me&&s.set(X,ge)}else s.set(X,ge)}}}let ae=W===1&&T4(N)||N,Y=W===0||JP(ae)?ka(F):cFt(ae,H,void 0),Ee=typeof Y=="string"?Y:Y[0],fe=typeof Y=="string"?void 0:Y[1],te=qm(M.name),de=t++,me=Tp(N,H),ve=N.flags&33554432?void 0:N,Pe=M.flags&33554432?void 0:M;(!ve||!Pe)&&i.set(de,[N,M]),n.add(m(Ee,N,Hu(te)?void 0:te,H),{id:de,symbolTableKey:F,symbolName:Ee,capitalizedSymbolName:fe,moduleName:te,moduleFile:L,moduleFileName:L?.fileName,packageName:X,exportKind:W,targetFlags:me.flags,isFromPackageJson:z,symbol:ve,moduleSymbol:Pe})},get:(E,N)=>{if(E!==l)return;let F=n.get(N);return F?.map(g)},search:(E,N,F,M)=>{if(E===l)return Lu(n,(L,W)=>{let{symbolName:z,ambientModuleName:H}=x(W),X=N&&L[0].capitalizedSymbolName||z;if(F(X,L[0].targetFlags)){let ae=L.map(g).filter((Y,Ee)=>P(Y,L[Ee].packageName));if(ae.length){let Y=M(ae,X,!!H,W);if(Y!==void 0)return Y}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(E,N,F)=>b(E)&&b(N)?!1:l&&l!==N.path||F&&IU(E)!==IU(N)||!Rp(E.moduleAugmentations,N.moduleAugmentations)||!S(E,N)?(p.clear(),!0):(l=N.path,!1)};return I.isDebugging&&Object.defineProperty(p,"__cache",{value:n}),p;function g(E){if(E.symbol&&E.moduleSymbol)return E;let{id:N,exportKind:F,targetFlags:M,isFromPackageJson:L,moduleFileName:W}=E,[z,H]=i.get(N)||ce;if(z&&H)return{symbol:z,moduleSymbol:H,moduleFileName:W,exportKind:F,targetFlags:M,isFromPackageJson:L};let X=(L?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ne=E.moduleSymbol||H||I.checkDefined(E.moduleFile?X.getMergedSymbol(E.moduleFile.symbol):X.tryFindAmbientModule(E.moduleName)),ae=E.symbol||z||I.checkDefined(F===2?X.resolveExternalModuleSymbol(ne):X.tryGetMemberInModuleExportsAndProperties(ka(E.symbolTableKey),ne),`Could not find symbol '${E.symbolName}' by key '${E.symbolTableKey}' in module ${ne.name}`);return i.set(N,[ae,ne]),{symbol:ae,moduleSymbol:ne,moduleFileName:W,exportKind:F,targetFlags:M,isFromPackageJson:L}}function m(E,N,F,M){let L=F||"";return`${E.length} ${co(Tp(N,M))} ${E} ${L}`}function x(E){let N=E.indexOf(" "),F=E.indexOf(" ",N+1),M=parseInt(E.substring(0,N),10),L=E.substring(F+1),W=L.substring(0,M),z=L.substring(M+1);return{symbolName:W,ambientModuleName:z===""?void 0:z}}function b(E){return!E.commonJsModuleIndicator&&!E.externalModuleIndicator&&!E.moduleAugmentations&&!E.ambientModuleNames}function S(E,N){if(!Rp(E.ambientModuleNames,N.ambientModuleNames))return!1;let F=-1,M=-1;for(let L of N.ambientModuleNames){let W=z=>lQ(z)&&z.name.text===L;if(F=Va(E.statements,W,F+1),M=Va(N.statements,W,M+1),E.statements[F]!==N.statements[M])return!1}return!0}function P(E,N){if(!N||!E.moduleFileName)return!0;let F=e.getGlobalTypingsCacheLocation();if(F&&La(E.moduleFileName,F))return!0;let M=s.get(N);return!M||La(E.moduleFileName,M)}}function hre(e,t,n,i,s,l,p,g){var m;if(!n){let E,N=qm(i.name);return PN.has(N)&&(E=RU(t,e))!==void 0?E===La(N,"node:"):!l||l.allowsImportingAmbientModule(i,p)||jbe(t,N)}if(I.assertIsDefined(n),t===n)return!1;let x=g?.get(t.path,n.path,s,{});if(x?.isBlockedByPackageJsonDependencies!==void 0)return!x.isBlockedByPackageJsonDependencies||!!x.packageName&&jbe(t,x.packageName);let b=D0(p),S=(m=p.getGlobalTypingsCacheLocation)==null?void 0:m.call(p),P=!!L0.forEachFileNameOfModule(t.fileName,n.fileName,p,!1,E=>{let N=e.getSourceFile(E);return(N===n||!N)&&oFt(t.fileName,E,b,S,p)});if(l){let E=P?l.getSourceFileInfo(n,p):void 0;return g?.setBlockedByPackageJsonDependencies(t.path,n.path,s,{},E?.packageName,!E?.importable),!!E?.importable||P&&!!E?.packageName&&jbe(t,E.packageName)}return P}function jbe(e,t){return e.imports&&e.imports.some(n=>n.text===t||n.text.startsWith(t+"/"))}function oFt(e,t,n,i,s){let l=My(s,t,g=>gu(g)==="node_modules"?g:void 0),p=l&&Ei(n(l));return p===void 0||La(n(e),p)||!!i&&La(n(i),p)}function yre(e,t,n,i,s){var l,p;let g=Ak(t),m=n.autoImportFileExcludePatterns&&RJe(n,g);jJe(e.getTypeChecker(),e.getSourceFiles(),m,t,(b,S)=>s(b,S,e,!1));let x=i&&((l=t.getPackageJsonAutoImportProvider)==null?void 0:l.call(t));if(x){let b=xc(),S=e.getTypeChecker();jJe(x.getTypeChecker(),x.getSourceFiles(),m,t,(P,E)=>{(E&&!e.getSourceFile(E.fileName)||!E&&!S.resolveName(P.name,void 0,1536,!1))&&s(P,E,x,!0)}),(p=t.log)==null||p.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${xc()-b}`)}}function RJe(e,t){return Bi(e.autoImportFileExcludePatterns,n=>{let i=qJ(n,"","exclude");return i?N1(i,t):void 0})}function jJe(e,t,n,i,s){var l;let p=n&&LJe(n,i);for(let g of e.getAmbientModules())!g.name.includes("*")&&!(n&&((l=g.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&s(g,void 0);for(let g of t)q_(g)&&!p?.(g)&&s(e.getMergedSymbol(g.symbol),g)}function LJe(e,t){var n;let i=(n=t.getSymlinkCache)==null?void 0:n.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:s,path:l})=>{if(e.some(p=>p.test(s)))return!0;if(i?.size&&Ox(s)){let p=Ei(s);return My(t,Ei(l),g=>{let m=i.get(ju(g));if(m)return m.some(x=>e.some(b=>b.test(s.replace(p,x))));p=Ei(p)})??!1}return!1}}function Lbe(e,t){return t.autoImportFileExcludePatterns?LJe(RJe(t,Ak(e)),e):()=>!1}function OR(e,t,n,i,s){var l,p,g,m,x;let b=xc();(l=t.getPackageJsonAutoImportProvider)==null||l.call(t);let S=((p=t.getCachedExportInfoMap)==null?void 0:p.call(t))||gre({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var E;return(E=t.getPackageJsonAutoImportProvider)==null?void 0:E.call(t)},getGlobalTypingsCacheLocation:()=>{var E;return(E=t.getGlobalTypingsCacheLocation)==null?void 0:E.call(t)}});if(S.isUsableByFile(e.path))return(g=t.log)==null||g.call(t,"getExportInfoMap: cache hit"),S;(m=t.log)==null||m.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let P=0;try{yre(n,t,i,!0,(E,N,F,M)=>{++P%100===0&&s?.throwIfCancellationRequested();let L=new Set,W=F.getTypeChecker(),z=qU(E,W);z&&BJe(z.symbol,W)&&S.add(e.path,z.symbol,z.exportKind===1?"default":"export=",E,N,z.exportKind,M,W),W.forEachExportAndPropertyOfModule(E,(H,X)=>{H!==z?.symbol&&BJe(H,W)&&Jm(L,X)&&S.add(e.path,H,X,E,N,0,M,W)})})}catch(E){throw S.clear(),E}return(x=t.log)==null||x.call(t,`getExportInfoMap: done in ${xc()-b} ms`),S}function qU(e,t){let n=t.resolveExternalModuleSymbol(e);if(n!==e){let s=t.tryGetMemberInModuleExports("default",n);return s?{symbol:s,exportKind:1}:{symbol:n,exportKind:2}}let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function BJe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!w5(e)&&!Rme(e)}function cFt(e,t,n){let i;return JU(e,t,n,(s,l)=>(i=l?[s,l]:s,!0)),I.checkDefined(i)}function JU(e,t,n,i){let s,l=e,p=new Set;for(;l;){let g=fre(l);if(g){let m=i(g);if(m)return m}if(l.escapedName!=="default"&&l.escapedName!=="export="){let m=i(l.name);if(m)return m}if(s=Zr(s,l),!Jm(p,l))break;l=l.flags&2097152?t.getImmediateAliasedSymbol(l):void 0}for(let g of s??ce)if(g.parent&&JP(g.parent)){let m=i(PR(g.parent,n,!1),PR(g.parent,n,!0));if(m)return m}}function qJe(){let e=bv(99,!1);function t(i,s,l){return fFt(n(i,s,l),i)}function n(i,s,l){let p=0,g=0,m=[],{prefix:x,pushTemplate:b}=mFt(s);i=x+i;let S=x.length;b&&m.push(16),e.setText(i);let P=0,E=[],N=0;do{p=e.scan(),dN(p)||(F(),g=p);let M=e.getTokenEnd();if(pFt(e.getTokenStart(),M,S,yFt(p),E),M>=i.length){let L=uFt(e,p,dc(m));L!==void 0&&(P=L)}}while(p!==1);function F(){switch(p){case 44:case 69:!lFt[g]&&e.reScanSlashToken()===14&&(p=14);break;case 30:g===80&&N++;break;case 32:N>0&&N--;break;case 133:case 154:case 150:case 136:case 155:N>0&&!l&&(p=80);break;case 16:m.push(p);break;case 19:m.length>0&&m.push(p);break;case 20:if(m.length>0){let M=dc(m);M===16?(p=e.reScanTemplateToken(!1),p===18?m.pop():I.assertEqual(p,17,"Should have been a template middle.")):(I.assertEqual(M,19,"Should have been an open brace"),m.pop())}break;default:if(!Yf(p))break;(g===25||Yf(g)&&Yf(p)&&!dFt(g,p))&&(p=80)}}return{endOfLineState:P,spans:E}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}var lFt=lk([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function uFt(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),s=i.length-1,l=0;for(;i.charCodeAt(s-l)===92;)l++;return l&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(ix(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return I.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return n===16?6:void 0}}function pFt(e,t,n,i,s){if(i===8)return;e===0&&n>0&&(e+=n);let l=t-e;l>0&&s.push(e-n,l,i)}function fFt(e,t){let n=[],i=e.spans,s=0;for(let p=0;p<i.length;p+=3){let g=i[p],m=i[p+1],x=i[p+2];if(s>=0){let b=g-s;b>0&&n.push({length:b,classification:4})}n.push({length:m,classification:_Ft(x)}),s=g+m}let l=t.length-s;return l>0&&n.push({length:l,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function _Ft(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function dFt(e,t){if(!Ate(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function mFt(e){switch(e){case 3:return{prefix:`"\\
|
|
`};case 2:return{prefix:`'\\
|
|
`};case 1:return{prefix:`/*
|
|
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
|
|
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return I.assertNever(e)}}function gFt(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function hFt(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function yFt(e){if(Yf(e))return 3;if(gFt(e)||hFt(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return ix(e)?6:2}}function Bbe(e,t,n,i,s){return WJe(vre(e,t,n,i,s))}function JJe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function vre(e,t,n,i,s){let l=[];return n.forEachChild(function g(m){if(!(!m||!TF(s,m.pos,m.getFullWidth()))){if(JJe(t,m.kind),Ye(m)&&!Sl(m)&&i.has(m.escapedText)){let x=e.getSymbolAtLocation(m),b=x&&zJe(x,iC(m),e);b&&p(m.getStart(n),m.getEnd(),b)}m.forEachChild(g)}}),{spans:l,endOfLineState:0};function p(g,m,x){let b=m-g;I.assert(b>0,`Classification had non-positive length of ${b}`),l.push(g),l.push(b),l.push(x)}}function zJe(e,t,n){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&vFt(e)?14:void 0:i&2097152?zJe(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function vFt(e){return Pt(e.declarations,t=>cu(t)&&j0(t)===1)}function bFt(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function WJe(e){I.assert(e.spans.length%3===0);let t=e.spans,n=[];for(let i=0;i<t.length;i+=3)n.push({textSpan:Sp(t[i],t[i+1]),classificationType:bFt(t[i+2])});return n}function qbe(e,t,n){return WJe(bre(e,t,n))}function bre(e,t,n){let i=n.start,s=n.length,l=bv(99,!1,t.languageVariant,t.text),p=bv(99,!1,t.languageVariant,t.text),g=[];return H(t),{spans:g,endOfLineState:0};function m(X,ne,ae){g.push(X),g.push(ne),g.push(ae)}function x(X){for(l.resetTokenState(X.pos);;){let ne=l.getTokenEnd();if(!j_e(t.text,ne))return ne;let ae=l.scan(),Y=l.getTokenEnd(),Ee=Y-ne;if(!dN(ae))return ne;switch(ae){case 4:case 5:continue;case 2:case 3:b(X,ae,ne,Ee),l.resetTokenState(Y);continue;case 7:let fe=t.text,te=fe.charCodeAt(ne);if(te===60||te===62){m(ne,Ee,1);continue}I.assert(te===124||te===61),F(fe,ne,Y);break;case 6:break;default:I.assertNever(ae)}}}function b(X,ne,ae,Y){if(ne===3){let Ee=hye(t.text,ae,Y);if(Ee&&Ee.jsDoc){Xo(Ee.jsDoc,X),P(Ee.jsDoc);return}}else if(ne===2&&E(ae,Y))return;S(ae,Y)}function S(X,ne){m(X,ne,1)}function P(X){var ne,ae,Y,Ee,fe,te,de,me;let ve=X.pos;if(X.tags)for(let Oe of X.tags){Oe.pos!==ve&&S(ve,Oe.pos-ve),m(Oe.pos,1,10),m(Oe.tagName.pos,Oe.tagName.end-Oe.tagName.pos,18),ve=Oe.tagName.end;let ie=Oe.tagName.end;switch(Oe.kind){case 341:let Ne=Oe;Pe(Ne),ie=Ne.isNameFirst&&((ne=Ne.typeExpression)==null?void 0:ne.end)||Ne.name.end;break;case 348:let it=Oe;ie=it.isNameFirst&&((ae=it.typeExpression)==null?void 0:ae.end)||it.name.end;break;case 345:N(Oe),ve=Oe.end,ie=Oe.typeParameters.end;break;case 346:let ze=Oe;ie=((Y=ze.typeExpression)==null?void 0:Y.kind)===309&&((Ee=ze.fullName)==null?void 0:Ee.end)||((fe=ze.typeExpression)==null?void 0:fe.end)||ie;break;case 338:ie=Oe.typeExpression.end;break;case 344:H(Oe.typeExpression),ve=Oe.end,ie=Oe.typeExpression.end;break;case 343:case 340:ie=Oe.typeExpression.end;break;case 342:H(Oe.typeExpression),ve=Oe.end,ie=((te=Oe.typeExpression)==null?void 0:te.end)||ie;break;case 347:ie=((de=Oe.name)==null?void 0:de.end)||ie;break;case 328:case 329:ie=Oe.class.end;break;case 349:H(Oe.typeExpression),ve=Oe.end,ie=((me=Oe.typeExpression)==null?void 0:me.end)||ie;break}typeof Oe.comment=="object"?S(Oe.comment.pos,Oe.comment.end-Oe.comment.pos):typeof Oe.comment=="string"&&S(ie,Oe.end-ie)}ve!==X.end&&S(ve,X.end-ve);return;function Pe(Oe){Oe.isNameFirst&&(S(ve,Oe.name.pos-ve),m(Oe.name.pos,Oe.name.end-Oe.name.pos,17),ve=Oe.name.end),Oe.typeExpression&&(S(ve,Oe.typeExpression.pos-ve),H(Oe.typeExpression),ve=Oe.typeExpression.end),Oe.isNameFirst||(S(ve,Oe.name.pos-ve),m(Oe.name.pos,Oe.name.end-Oe.name.pos,17),ve=Oe.name.end)}}function E(X,ne){let ae=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/m,Y=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,Ee=t.text.substr(X,ne),fe=ae.exec(Ee);if(!fe||!fe[3]||!(fe[3]in fg))return!1;let te=X;S(te,fe[1].length),te+=fe[1].length,m(te,fe[2].length,10),te+=fe[2].length,m(te,fe[3].length,21),te+=fe[3].length;let de=fe[4],me=te;for(;;){let Pe=Y.exec(de);if(!Pe)break;let Oe=te+Pe.index+Pe[1].length;Oe>me&&(S(me,Oe-me),me=Oe),m(me,Pe[2].length,22),me+=Pe[2].length,Pe[3].length&&(S(me,Pe[3].length),me+=Pe[3].length),m(me,Pe[4].length,5),me+=Pe[4].length,Pe[5].length&&(S(me,Pe[5].length),me+=Pe[5].length),m(me,Pe[6].length,24),me+=Pe[6].length}te+=fe[4].length,te>me&&S(me,te-me),fe[5]&&(m(te,fe[5].length,10),te+=fe[5].length);let ve=X+ne;return te<ve&&S(te,ve-te),!0}function N(X){for(let ne of X.getChildren())H(ne)}function F(X,ne,ae){let Y;for(Y=ne;Y<ae&&!Gp(X.charCodeAt(Y));Y++);for(m(ne,Y-ne,1),p.resetTokenState(Y);p.getTokenEnd()<ae;)M()}function M(){let X=p.getTokenEnd(),ne=p.scan(),ae=p.getTokenEnd(),Y=z(ne);Y&&m(X,ae-X,Y)}function L(X){if(Gg(X)||Sl(X))return!0;let ne=W(X);if(!RP(X)&&X.kind!==12&&ne===void 0)return!1;let ae=X.kind===12?X.pos:x(X),Y=X.end-ae;if(I.assert(Y>=0),Y>0){let Ee=ne||z(X.kind,X);Ee&&m(ae,Y,Ee)}return!0}function W(X){switch(X.parent&&X.parent.kind){case 286:if(X.parent.tagName===X)return 19;break;case 287:if(X.parent.tagName===X)return 20;break;case 285:if(X.parent.tagName===X)return 21;break;case 291:if(X.parent.name===X)return 22;break}}function z(X,ne){if(Yf(X))return 3;if((X===30||X===32)&&ne&&sbe(ne.parent))return 10;if(RQ(X)){if(ne){let ae=ne.parent;if(X===64&&(ae.kind===260||ae.kind===172||ae.kind===169||ae.kind===291)||ae.kind===226||ae.kind===224||ae.kind===225||ae.kind===227)return 5}return 10}else{if(X===9)return 4;if(X===10)return 25;if(X===11)return ne&&ne.parent.kind===291?24:6;if(X===14)return 6;if(ix(X))return 6;if(X===12)return 23;if(X===80){if(ne){switch(ne.parent.kind){case 263:return ne.parent.name===ne?11:void 0;case 168:return ne.parent.name===ne?15:void 0;case 264:return ne.parent.name===ne?13:void 0;case 266:return ne.parent.name===ne?12:void 0;case 267:return ne.parent.name===ne?14:void 0;case 169:return ne.parent.name===ne?hx(ne)?3:17:void 0}if(_g(ne.parent))return 3}return 2}}}function H(X){if(X&&wF(i,s,X.pos,X.getFullWidth())){JJe(e,X.kind);for(let ne of X.getChildren(t))L(ne)||H(ne)}}}var zU;(e=>{function t(te,de,me,ve,Pe){let Oe=r_(me,ve);if(Oe.parent&&(Vg(Oe.parent)&&Oe.parent.tagName===Oe||q2(Oe.parent))){let{openingElement:ie,closingElement:Ne}=Oe.parent.parent,it=[ie,Ne].map(({tagName:ze})=>n(ze,me));return[{fileName:me.fileName,highlightSpans:it}]}return i(ve,Oe,te,de,Pe)||s(Oe,me)}e.getDocumentHighlights=t;function n(te,de){return{fileName:de.fileName,textSpan:Lf(te,de),kind:"none"}}function i(te,de,me,ve,Pe){let Oe=new Set(Pe.map(ze=>ze.fileName)),ie=qc.getReferenceEntriesForNode(te,de,me,Pe,ve,void 0,Oe);if(!ie)return;let Ne=Wb(ie.map(qc.toHighlightSpan),ze=>ze.fileName,ze=>ze.span),it=Xu(me.useCaseSensitiveFileNames());return Ka(pf(Ne.entries(),([ze,ge])=>{if(!Oe.has(ze)){if(!me.redirectTargetsMap.has(Ec(ze,me.getCurrentDirectory(),it)))return;let Me=me.getSourceFile(ze);ze=Ir(Pe,gt=>!!gt.redirectInfo&>.redirectInfo.redirectTarget===Me).fileName,I.assert(Oe.has(ze))}return{fileName:ze,highlightSpans:ge}}))}function s(te,de){let me=l(te,de);return me&&[{fileName:de.fileName,highlightSpans:me}]}function l(te,de){switch(te.kind){case 101:case 93:return LS(te.parent)?Y(te.parent,de):void 0;case 107:return ve(te.parent,md,H);case 111:return ve(te.parent,mY,z);case 113:case 85:case 98:let Oe=te.kind===85?te.parent.parent:te.parent;return ve(Oe,Uk,W);case 109:return ve(te.parent,e3,L);case 84:case 90:return r3(te.parent)||RN(te.parent)?ve(te.parent.parent.parent,e3,L):void 0;case 83:case 88:return ve(te.parent,VI,M);case 99:case 117:case 92:return ve(te.parent,ie=>cx(ie,!0),F);case 137:return me(ul,[137]);case 139:case 153:return me(ox,[139,153]);case 135:return ve(te.parent,kx,X);case 134:return Pe(X(te));case 127:return Pe(ne(te));case 103:case 147:return;default:return sx(te.kind)&&(Ku(te.parent)||Rl(te.parent))?Pe(P(te.kind,te.parent)):void 0}function me(Oe,ie){return ve(te.parent,Oe,Ne=>{var it;return Bi((it=_i(Ne,qg))==null?void 0:it.symbol.declarations,ze=>Oe(ze)?Ir(ze.getChildren(de),ge=>Ta(ie,ge.kind)):void 0)})}function ve(Oe,ie,Ne){return ie(Oe)?Pe(Ne(Oe,de)):void 0}function Pe(Oe){return Oe&&Oe.map(ie=>n(ie,de))}}function p(te){return mY(te)?[te]:Uk(te)?ya(te.catchClause?p(te.catchClause):te.tryBlock&&p(te.tryBlock),te.finallyBlock&&p(te.finallyBlock)):Ss(te)?void 0:x(te,p)}function g(te){let de=te;for(;de.parent;){let me=de.parent;if(y2(me)||me.kind===307)return me;if(Uk(me)&&me.tryBlock===de&&me.catchClause)return de;de=me}}function m(te){return VI(te)?[te]:Ss(te)?void 0:x(te,m)}function x(te,de){let me=[];return te.forEachChild(ve=>{let Pe=de(ve);Pe!==void 0&&me.push(...Sh(Pe))}),me}function b(te,de){let me=S(de);return!!me&&me===te}function S(te){return Br(te,de=>{switch(de.kind){case 255:if(te.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!te.label||fe(de,te.label.escapedText);default:return Ss(de)&&"quit"}})}function P(te,de){return Bi(E(de,rE(te)),me=>_A(me,te))}function E(te,de){let me=te.parent;switch(me.kind){case 268:case 307:case 241:case 296:case 297:return de&64&&bu(te)?[...te.members,te]:me.statements;case 176:case 174:case 262:return[...me.parameters,...Ri(me.parent)?me.parent.members:[]];case 263:case 231:case 264:case 187:let ve=me.members;if(de&15){let Pe=Ir(me.members,ul);if(Pe)return[...ve,...Pe.parameters]}else if(de&64)return[...ve,me];return ve;default:return}}function N(te,de,...me){return de&&Ta(me,de.kind)?(te.push(de),!0):!1}function F(te){let de=[];if(N(de,te.getFirstToken(),99,117,92)&&te.kind===246){let me=te.getChildren();for(let ve=me.length-1;ve>=0&&!N(de,me[ve],117);ve--);}return Ge(m(te.statement),me=>{b(te,me)&&N(de,me.getFirstToken(),83,88)}),de}function M(te){let de=S(te);if(de)switch(de.kind){case 248:case 249:case 250:case 246:case 247:return F(de);case 255:return L(de)}}function L(te){let de=[];return N(de,te.getFirstToken(),109),Ge(te.caseBlock.clauses,me=>{N(de,me.getFirstToken(),84,90),Ge(m(me),ve=>{b(te,ve)&&N(de,ve.getFirstToken(),83)})}),de}function W(te,de){let me=[];if(N(me,te.getFirstToken(),113),te.catchClause&&N(me,te.catchClause.getFirstToken(),85),te.finallyBlock){let ve=gc(te,98,de);N(me,ve,98)}return me}function z(te,de){let me=g(te);if(!me)return;let ve=[];return Ge(p(me),Pe=>{ve.push(gc(Pe,111,de))}),y2(me)&&_x(me,Pe=>{ve.push(gc(Pe,107,de))}),ve}function H(te,de){let me=Ed(te);if(!me)return;let ve=[];return _x(Js(me.body,Cs),Pe=>{ve.push(gc(Pe,107,de))}),Ge(p(me.body),Pe=>{ve.push(gc(Pe,111,de))}),ve}function X(te){let de=Ed(te);if(!de)return;let me=[];return de.modifiers&&de.modifiers.forEach(ve=>{N(me,ve,134)}),xs(de,ve=>{ae(ve,Pe=>{kx(Pe)&&N(me,Pe.getFirstToken(),135)})}),me}function ne(te){let de=Ed(te);if(!de)return;let me=[];return xs(de,ve=>{ae(ve,Pe=>{lM(Pe)&&N(me,Pe.getFirstToken(),127)})}),me}function ae(te,de){de(te),!Ss(te)&&!Ri(te)&&!Cp(te)&&!cu(te)&&!Wm(te)&&!Yi(te)&&xs(te,me=>ae(me,de))}function Y(te,de){let me=Ee(te,de),ve=[];for(let Pe=0;Pe<me.length;Pe++){if(me[Pe].kind===93&&Pe<me.length-1){let Oe=me[Pe],ie=me[Pe+1],Ne=!0;for(let it=ie.getStart(de)-1;it>=Oe.end;it--)if(!Th(de.text.charCodeAt(it))){Ne=!1;break}if(Ne){ve.push({fileName:de.fileName,textSpan:Ul(Oe.getStart(),ie.end),kind:"reference"}),Pe++;continue}}ve.push(n(me[Pe],de))}return ve}function Ee(te,de){let me=[];for(;LS(te.parent)&&te.parent.elseStatement===te;)te=te.parent;for(;;){let ve=te.getChildren(de);N(me,ve[0],101);for(let Pe=ve.length-1;Pe>=0&&!N(me,ve[Pe],93);Pe--);if(!te.elseStatement||!LS(te.elseStatement))break;te=te.elseStatement}return me}function fe(te,de){return!!Br(te.parent,me=>Cx(me)?me.label.escapedText===de:"quit")}})(zU||(zU={}));function NR(e){return!!e.sourceFile}function Jbe(e,t,n){return xre(e,t,n)}function xre(e,t="",n,i){let s=new Map,l=Xu(!!e);function p(){let M=Ka(s.keys()).filter(L=>L&&L.charAt(0)==="_").map(L=>{let W=s.get(L),z=[];return W.forEach((H,X)=>{NR(H)?z.push({name:X,scriptKind:H.sourceFile.scriptKind,refCount:H.languageServiceRefCount}):H.forEach((ne,ae)=>z.push({name:X,scriptKind:ae,refCount:ne.languageServiceRefCount}))}),z.sort((H,X)=>X.refCount-H.refCount),{bucket:L,sourceFiles:z}});return JSON.stringify(M,void 0,2)}function g(M){return typeof M.getCompilationSettings=="function"?M.getCompilationSettings():M}function m(M,L,W,z,H,X){let ne=Ec(M,t,l),ae=Sre(g(L));return x(M,ne,L,ae,W,z,H,X)}function x(M,L,W,z,H,X,ne,ae){return E(M,L,W,z,H,X,!0,ne,ae)}function b(M,L,W,z,H,X){let ne=Ec(M,t,l),ae=Sre(g(L));return S(M,ne,L,ae,W,z,H,X)}function S(M,L,W,z,H,X,ne,ae){return E(M,L,g(W),z,H,X,!1,ne,ae)}function P(M,L){let W=NR(M)?M:M.get(I.checkDefined(L,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return I.assert(L===void 0||!W||W.sourceFile.scriptKind===L,`Script kind should match provided ScriptKind:${L} and sourceFile.scriptKind: ${W?.sourceFile.scriptKind}, !entry: ${!W}`),W}function E(M,L,W,z,H,X,ne,ae,Y){var Ee,fe,te,de;ae=zJ(M,ae);let me=g(W),ve=W===me?void 0:W,Pe=ae===6?100:Po(me),Oe=typeof Y=="object"?Y:{languageVersion:Pe,impliedNodeFormat:ve&&YM(L,(de=(te=(fe=(Ee=ve.getCompilerHost)==null?void 0:Ee.call(ve))==null?void 0:fe.getModuleResolutionCache)==null?void 0:te.call(fe))==null?void 0:de.getPackageJsonInfoCache(),ve,me),setExternalModuleIndicator:L5(me),jsDocParsingMode:n};Oe.languageVersion=Pe,I.assertEqual(n,Oe.jsDocParsingMode);let ie=s.size,Ne=zbe(z,Oe.impliedNodeFormat),it=A_(s,Ne,()=>new Map);if(Fn){s.size>ie&&Fn.instant(Fn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:me.configFilePath,key:Ne});let Te=!Wu(L)&&Lu(s,(gt,Tt)=>Tt!==Ne&>.has(L)&&Tt);Te&&Fn.instant(Fn.Phase.Session,"documentRegistryBucketOverlap",{path:L,key1:Te,key2:Ne})}let ze=it.get(L),ge=ze&&P(ze,ae);if(!ge&&i){let Te=i.getDocument(Ne,L);Te&&Te.scriptKind===ae&&Te.text===UE(H)&&(I.assert(ne),ge={sourceFile:Te,languageServiceRefCount:0},Me())}if(ge)ge.sourceFile.version!==X&&(ge.sourceFile=tne(ge.sourceFile,H,X,H.getChangeRange(ge.sourceFile.scriptSnapshot)),i&&i.setDocument(Ne,L,ge.sourceFile)),ne&&ge.languageServiceRefCount++;else{let Te=i$(M,H,Oe,X,!1,ae);i&&i.setDocument(Ne,L,Te),ge={sourceFile:Te,languageServiceRefCount:1},Me()}return I.assert(ge.languageServiceRefCount!==0),ge.sourceFile;function Me(){if(!ze)it.set(L,ge);else if(NR(ze)){let Te=new Map;Te.set(ze.sourceFile.scriptKind,ze),Te.set(ae,ge),it.set(L,Te)}else ze.set(ae,ge)}}function N(M,L,W,z){let H=Ec(M,t,l),X=Sre(L);return F(H,X,W,z)}function F(M,L,W,z){let H=I.checkDefined(s.get(zbe(L,z))),X=H.get(M),ne=P(X,W);ne.languageServiceRefCount--,I.assert(ne.languageServiceRefCount>=0),ne.languageServiceRefCount===0&&(NR(X)?H.delete(M):(X.delete(W),X.size===1&&H.set(M,si(X.values(),vc))))}return{acquireDocument:m,acquireDocumentWithKey:x,updateDocument:b,updateDocumentWithKey:S,releaseDocument:N,releaseDocumentWithKey:F,getKeyForCompilationSettings:Sre,getDocumentRegistryBucketKeyWithMode:zbe,reportStats:p,getBuckets:()=>s}}function Sre(e){return uZ(e,VY)}function zbe(e,t){return t?`${e}|${t}`:e}function Wbe(e,t,n,i,s,l,p){let g=Ak(i),m=Xu(g),x=Tre(t,n,m,p),b=Tre(n,t,m,p);return Ln.ChangeTracker.with({host:i,formatContext:s,preferences:l},S=>{SFt(e,S,x,t,n,i.getCurrentDirectory(),g),TFt(e,S,x,b,i,m)})}function Tre(e,t,n,i){let s=n(e);return p=>{let g=i&&i.tryGetSourcePosition({fileName:p,pos:0}),m=l(g?g.fileName:p);return g?m===void 0?void 0:xFt(g.fileName,m,p,n):m};function l(p){if(n(p)===s)return t;let g=CX(p,s,n);return g===void 0?void 0:t+"/"+g}}function xFt(e,t,n,i){let s=WO(e,t,i);return Ube(Ei(n),s)}function SFt(e,t,n,i,s,l,p){let{configFile:g}=e.getCompilerOptions();if(!g)return;let m=Ei(g.fileName),x=a4(g);if(!x)return;$be(x,(E,N)=>{switch(N){case"files":case"include":case"exclude":{if(b(E)||N!=="include"||!kp(E.initializer))return;let M=Bi(E.initializer.elements,W=>vo(W)?W.text:void 0);if(M.length===0)return;let L=JJ(m,[],M,p,l);N1(I.checkDefined(L.includeFilePattern),p).test(i)&&!N1(I.checkDefined(L.includeFilePattern),p).test(s)&&t.insertNodeAfter(g,ao(E.initializer.elements),j.createStringLiteral(P(s)));return}case"compilerOptions":$be(E.initializer,(F,M)=>{let L=QY(M);I.assert(L?.type!=="listOrElement"),L&&(L.isFilePath||L.type==="list"&&L.element.isFilePath)?b(F):M==="paths"&&$be(F.initializer,W=>{if(kp(W.initializer))for(let z of W.initializer.elements)S(z)})});return}});function b(E){let N=kp(E.initializer)?E.initializer.elements:[E.initializer],F=!1;for(let M of N)F=S(M)||F;return F}function S(E){if(!vo(E))return!1;let N=Ube(m,E.text),F=n(N);return F!==void 0?(t.replaceRangeWithText(g,$Je(E,g),P(F)),!0):!1}function P(E){return Pd(m,E,!p)}}function TFt(e,t,n,i,s,l){let p=e.getSourceFiles();for(let g of p){let m=n(g.fileName),x=m??g.fileName,b=Ei(x),S=i(g.fileName),P=S||g.fileName,E=Ei(P),N=m!==void 0||S!==void 0;CFt(g,t,F=>{if(!pd(F))return;let M=Ube(E,F),L=n(M);return L===void 0?void 0:_k(Pd(b,L,l))},F=>{let M=e.getTypeChecker().getSymbolAtLocation(F);if(M?.declarations&&M.declarations.some(W=>df(W)))return;let L=S!==void 0?UJe(F,Yk(F.text,P,e.getCompilerOptions(),s),n,p):kFt(M,F,g,e,s,n);return L!==void 0&&(L.updated||N&&pd(F.text))?L0.updateModuleSpecifier(e.getCompilerOptions(),g,x,L.newFileName,YS(e,s),F.text):void 0})}}function wFt(e,t){return Zs(gi(e,t))}function Ube(e,t){return _k(wFt(e,t))}function kFt(e,t,n,i,s,l){if(e){let p=Ir(e.declarations,ba).fileName,g=l(p);return g===void 0?{newFileName:p,updated:!1}:{newFileName:g,updated:!0}}else{let p=i.getModeForUsageLocation(n,t),g=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t,n):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,p);return UJe(t,g,l,i.getSourceFiles())}}function UJe(e,t,n,i){if(!t)return;if(t.resolvedModule){let m=g(t.resolvedModule.resolvedFileName);if(m)return m}let s=Ge(t.failedLookupLocations,l)||pd(e.text)&&Ge(t.failedLookupLocations,p);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function l(m){let x=n(m);return x&&Ir(i,b=>b.fileName===x)?p(m):void 0}function p(m){return bc(m,"/package.json")?void 0:g(m)}function g(m){let x=n(m);return x&&{newFileName:x,updated:!0}}}function CFt(e,t,n,i){for(let s of e.referencedFiles||ce){let l=n(s.fileName);l!==void 0&&l!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,l)}for(let s of e.imports){let l=i(s);l!==void 0&&l!==s.text&&t.replaceRangeWithText(e,$Je(s,e),l)}}function $Je(e,t){return um(e.getStart(t)+1,e.end-1)}function $be(e,t){if(So(e))for(let n of e.properties)xu(n)&&vo(n.name)&&t(n,n.name.text)}var wre=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(wre||{});function H3(e,t){return{kind:e,isCaseSensitive:t}}function Vbe(e){let t=new Map,n=e.trim().split(".").map(i=>OFt(i.trim()));if(n.length===1&&n[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>H3(2,!0),getFullMatch:()=>H3(2,!0),patternContainsDots:!1};if(!n.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>PFt(i,s,n,t),getMatchForLastSegmentOfPattern:i=>Hbe(i,ao(n),t),patternContainsDots:n.length>1}}function PFt(e,t,n,i){if(!Hbe(t,ao(n),i)||n.length-1>e.length)return;let l;for(let p=n.length-2,g=e.length-1;p>=0;p-=1,g-=1)l=GJe(l,Hbe(e[g],n[p],i));return l}function VJe(e,t){let n=t.get(e);return n||t.set(e,n=Zbe(e)),n}function HJe(e,t,n){let i=NFt(e,t.textLowerCase);if(i===0)return H3(t.text.length===e.length?0:1,La(e,t.text));if(t.isLowerCase){if(i===-1)return;let s=VJe(e,n);for(let l of s)if(Gbe(e,l,t.text,!0))return H3(2,Gbe(e,l,t.text,!1));if(t.text.length<e.length&&vA(e.charCodeAt(i)))return H3(2,!1)}else{if(e.indexOf(t.text)>0)return H3(2,!0);if(t.characterSpans.length>0){let s=VJe(e,n),l=KJe(e,s,t,!1)?!0:KJe(e,s,t,!0)?!1:void 0;if(l!==void 0)return H3(3,l)}}}function Hbe(e,t,n){if(kre(t.totalTextChunk.text,l=>l!==32&&l!==42)){let l=HJe(e,t.totalTextChunk,n);if(l)return l}let i=t.subWordTextChunks,s;for(let l of i)s=GJe(s,HJe(e,l,n));return s}function GJe(e,t){return bP([e,t],EFt)}function EFt(e,t){return e===void 0?1:t===void 0?-1:mc(e.kind,t.kind)||_v(!e.isCaseSensitive,!t.isCaseSensitive)}function Gbe(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&ZJe(0,s.length,l=>DFt(n.charCodeAt(s.start+l),e.charCodeAt(t.start+l),i))}function DFt(e,t,n){return n?Kbe(e)===Kbe(t):e===t}function KJe(e,t,n,i){let s=n.characterSpans,l=0,p=0,g,m;for(;;){if(p===s.length)return!0;if(l===t.length)return!1;let x=t[l],b=!1;for(;p<s.length;p++){let S=s[p];if(b&&(!vA(n.text.charCodeAt(s[p-1].start))||!vA(n.text.charCodeAt(s[p].start)))||!Gbe(e,x,n.text,i,S))break;b=!0,g=g===void 0?l:g,m=m===void 0?!0:m,x=Sp(x.start+S.length,x.length-S.length)}!b&&m!==void 0&&(m=!1),l++}}function OFt(e){return{totalTextChunk:Xbe(e),subWordTextChunks:IFt(e)}}function vA(e){if(e>=65&&e<=90)return!0;if(e<127||!rq(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function QJe(e){if(e>=97&&e<=122)return!0;if(e<127||!rq(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function NFt(e,t){let n=e.length-t.length;for(let i=0;i<=n;i++)if(kre(t,(s,l)=>Kbe(e.charCodeAt(l+i))===s))return i;return-1}function Kbe(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Qbe(e){return e>=48&&e<=57}function AFt(e){return vA(e)||QJe(e)||Qbe(e)||e===95||e===36}function IFt(e){let t=[],n=0,i=0;for(let s=0;s<e.length;s++){let l=e.charCodeAt(s);AFt(l)?(i===0&&(n=s),i++):i>0&&(t.push(Xbe(e.substr(n,i))),i=0)}return i>0&&t.push(Xbe(e.substr(n,i))),t}function Xbe(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Ybe(e)}}function Ybe(e){return XJe(e,!1)}function Zbe(e){return XJe(e,!0)}function XJe(e,t){let n=[],i=0;for(let s=1;s<e.length;s++){let l=Qbe(e.charCodeAt(s-1)),p=Qbe(e.charCodeAt(s)),g=MFt(e,t,s),m=t&&FFt(e,s,i);(exe(e.charCodeAt(s-1))||exe(e.charCodeAt(s))||l!==p||g||m)&&(YJe(e,i,s)||n.push(Sp(i,s-i)),i=s)}return YJe(e,i,e.length)||n.push(Sp(i,e.length-i)),n}function exe(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function YJe(e,t,n){return kre(e,i=>exe(i)&&i!==95,t,n)}function FFt(e,t,n){return t!==n&&t+1<e.length&&vA(e.charCodeAt(t))&&QJe(e.charCodeAt(t+1))&&kre(e,vA,n,t)}function MFt(e,t,n){let i=vA(e.charCodeAt(n-1));return vA(e.charCodeAt(n))&&(!t||!i)}function ZJe(e,t,n){for(let i=e;i<t;i++)if(!n(i))return!1;return!0}function kre(e,t,n=0,i=e.length){return ZJe(n,i,s=>t(e.charCodeAt(s),s))}function eze(e,t=!0,n=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],l,p,g,m=0,x=!1;function b(){return p=g,g=gp.scan(),g===19?m++:g===20&&m--,g}function S(){let X=gp.getTokenValue(),ne=gp.getTokenStart();return{fileName:X,pos:ne,end:ne+X.length}}function P(){l||(l=[]),l.push({ref:S(),depth:m})}function E(){s.push(S()),N()}function N(){m===0&&(x=!0)}function F(){let X=gp.getToken();return X===138?(X=b(),X===144&&(X=b(),X===11&&P()),!0):!1}function M(){if(p===25)return!1;let X=gp.getToken();if(X===102){if(X=b(),X===21){if(X=b(),X===11||X===15)return E(),!0}else{if(X===11)return E(),!0;if(X===156&&gp.lookAhead(()=>{let ae=gp.scan();return ae!==161&&(ae===42||ae===19||ae===80||Yf(ae))})&&(X=b()),X===80||Yf(X))if(X=b(),X===161){if(X=b(),X===11)return E(),!0}else if(X===64){if(W(!0))return!0}else if(X===28)X=b();else return!0;if(X===19){for(X=b();X!==20&&X!==1;)X=b();X===20&&(X=b(),X===161&&(X=b(),X===11&&E()))}else X===42&&(X=b(),X===130&&(X=b(),(X===80||Yf(X))&&(X=b(),X===161&&(X=b(),X===11&&E()))))}return!0}return!1}function L(){let X=gp.getToken();if(X===95){if(N(),X=b(),X===156&&gp.lookAhead(()=>{let ae=gp.scan();return ae===42||ae===19})&&(X=b()),X===19){for(X=b();X!==20&&X!==1;)X=b();X===20&&(X=b(),X===161&&(X=b(),X===11&&E()))}else if(X===42)X=b(),X===161&&(X=b(),X===11&&E());else if(X===102&&(X=b(),X===156&&gp.lookAhead(()=>{let ae=gp.scan();return ae===80||Yf(ae)})&&(X=b()),(X===80||Yf(X))&&(X=b(),X===64&&W(!0))))return!0;return!0}return!1}function W(X,ne=!1){let ae=X?b():gp.getToken();return ae===149?(ae=b(),ae===21&&(ae=b(),(ae===11||ne&&ae===15)&&E()),!0):!1}function z(){let X=gp.getToken();if(X===80&&gp.getTokenValue()==="define"){if(X=b(),X!==21)return!0;if(X=b(),X===11||X===15)if(X=b(),X===28)X=b();else return!0;if(X!==23)return!0;for(X=b();X!==24&&X!==1;)(X===11||X===15)&&E(),X=b();return!0}return!1}function H(){for(gp.setText(e),b();gp.getToken()!==1;){if(gp.getToken()===16){let X=[gp.getToken()];e:for(;Re(X);){let ne=gp.scan();switch(ne){case 1:break e;case 102:M();break;case 16:X.push(ne);break;case 19:Re(X)&&X.push(ne);break;case 20:Re(X)&&(dc(X)===16?gp.reScanTemplateToken(!1)===18&&X.pop():X.pop());break}}b()}F()||M()||L()||n&&(W(!1,!0)||z())||b()}gp.setText(void 0)}if(t&&H(),JY(i,e),zY(i,Ko),x){if(l)for(let X of l)s.push(X.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let X;if(l)for(let ne of l)ne.depth===0?(X||(X=[]),X.push(ne.ref.fileName)):s.push(ne.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:X}}}var RFt=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function txe(e){let t=Xu(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:g,tryGetGeneratedPosition:m,toLineColumnOffset:P,clearCache:E,documentPositionMappers:s};function l(N){return Ec(N,n,t)}function p(N,F){let M=l(N),L=s.get(M);if(L)return L;let W;if(e.getDocumentPositionMapper)W=e.getDocumentPositionMapper(N,F);else if(e.readFile){let z=S(N);W=z&&Cre({getSourceFileLike:S,getCanonicalFileName:t,log:H=>e.log(H)},N,FZ(z.text,hv(z)),H=>!e.fileExists||e.fileExists(H)?e.readFile(H):void 0)}return s.set(M,W||RZ),W||RZ}function g(N){if(!Wu(N.fileName)||!x(N.fileName))return;let M=p(N.fileName).getSourcePosition(N);return!M||M===N?void 0:g(M)||M}function m(N){if(Wu(N.fileName))return;let F=x(N.fileName);if(!F)return;let M=e.getProgram();if(M.isSourceOfProjectReferenceRedirect(F.fileName))return;let W=M.getCompilerOptions().outFile,z=W?yf(W)+".d.ts":fJ(N.fileName,M.getCompilerOptions(),M);if(z===void 0)return;let H=p(z,N.fileName).getGeneratedPosition(N);return H===N?void 0:H}function x(N){let F=e.getProgram();if(!F)return;let M=l(N),L=F.getSourceFileByPath(M);return L&&L.resolvedPath===M?L:void 0}function b(N){let F=l(N),M=i.get(F);if(M!==void 0)return M||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(N)){i.set(F,!1);return}let L=e.readFile(N),W=L?jFt(L):!1;return i.set(F,W),W||void 0}function S(N){return e.getSourceFileLike?e.getSourceFileLike(N):x(N)||b(N)}function P(N,F){return S(N).getLineAndCharacterOfPosition(F)}function E(){i.clear(),s.clear()}}function Cre(e,t,n,i){let s=Pve(n);if(s){let g=RFt.exec(s);if(g){if(g[1]){let m=g[1];return tze(e,age(Ru,m),t)}s=void 0}}let l=[];s&&l.push(s),l.push(t+".map");let p=s&&Qa(s,Ei(t));for(let g of l){let m=Qa(g,Ei(t)),x=i(m,p);if(Ua(x))return tze(e,x,m);if(x!==void 0)return x||void 0}}function tze(e,t,n){let i=Eve(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Ua)))return Ove(e,i,n)}function jFt(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return UO(hv(this),n)}}}var rxe=new Map;function Pre(e,t,n){var i;t.getSemanticDiagnostics(e,n);let s=[],l=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||Wl(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(pbe(t)||Bte(t.getCompilerOptions()))&&LFt(e)&&s.push(Mn(zFt(e.commonJsModuleIndicator),y.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let g=Nf(e);if(rxe.clear(),m(e),lE(t.getCompilerOptions()))for(let x of e.imports){let b=u4(x),S=BFt(b);if(!S)continue;let P=(i=t.getResolvedModuleFromModuleSpecifier(x,e))==null?void 0:i.resolvedModule,E=P&&t.getSourceFile(P.resolvedFileName);E&&E.externalModuleIndicator&&E.externalModuleIndicator!==!0&&Gc(E.externalModuleIndicator)&&E.externalModuleIndicator.isExportEquals&&s.push(Mn(S,y.Import_may_be_converted_to_a_default_import))}return ti(s,e.bindSuggestionDiagnostics),ti(s,t.getSuggestionDiagnostics(e,n)),s.sort((x,b)=>x.start-b.start),s;function m(x){if(g)UFt(x,l)&&s.push(Mn(Ui(x.parent)?x.parent.name:x,y.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Rl(x)&&x.parent===e&&x.declarationList.flags&2&&x.declarationList.declarations.length===1){let S=x.declarationList.declarations[0].initializer;S&&Xf(S,!0)&&s.push(Mn(S,y.require_call_may_be_converted_to_an_import))}let b=rf.getJSDocTypedefNodes(x);for(let S of b)s.push(Mn(S,y.JSDoc_typedef_may_be_converted_to_TypeScript_type));rf.parameterShouldGetTypeFromJSDoc(x)&&s.push(Mn(x.name||x,y.JSDoc_types_may_be_moved_to_TypeScript_types))}Ore(x)&&qFt(x,l,s),x.forEachChild(m)}}function LFt(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(n=>!!n.initializer&&Xf(rze(n.initializer),!0));case 244:{let{expression:n}=t;if(!Vn(n))return Xf(n,!0);let i=$l(n);return i===1||i===2}default:return!1}})}function rze(e){return ai(e)?rze(e.expression):e}function BFt(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&vo(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function qFt(e,t,n){JFt(e,t)&&!rxe.has(sze(e))&&n.push(Mn(!e.name&&Ui(e.parent)&&Ye(e.parent.name)?e.parent.name:e,y.This_may_be_converted_to_an_async_function))}function JFt(e,t){return!m4(e)&&e.body&&Cs(e.body)&&WFt(e.body,t)&&Ere(e,t)}function Ere(e,t){let n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function zFt(e){return Vn(e)?e.left:e}function WFt(e,t){return!!_x(e,n=>WU(n,t))}function WU(e,t){return md(e)&&!!e.expression&&Dre(e.expression,t)}function Dre(e,t){if(!nze(e)||!ize(e)||!e.arguments.every(i=>aze(i,t)))return!1;let n=e.expression.expression;for(;nze(n)||ai(n);)if(Ls(n)){if(!ize(n)||!n.arguments.every(i=>aze(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function nze(e){return Ls(e)&&(uR(e,"then")||uR(e,"catch")||uR(e,"finally"))}function ize(e){let t=e.expression.name.text,n=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>n?!1:e.arguments.length<n?!0:n===1||Pt(e.arguments,i=>i.kind===106||Ye(i)&&i.text==="undefined")}function aze(e,t){switch(e.kind){case 262:case 218:if(eu(e)&1)return!1;case 219:rxe.set(sze(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||Pt(Tp(i,t).declarations,s=>Ss(s)||k1(s)&&!!s.initializer&&Ss(s.initializer)):!1}default:return!1}}function sze(e){return`${e.pos.toString()}:${e.end.toString()}`}function UFt(e,t){var n,i,s,l;if(Ic(e)){if(Ui(e.parent)&&((n=e.symbol.members)!=null&&n.size))return!0;let p=t.getSymbolOfExpando(e,!1);return!!(p&&((i=p.exports)!=null&&i.size||(s=p.members)!=null&&s.size))}return jl(e)?!!((l=e.symbol.members)!=null&&l.size):!1}function Ore(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var $Ft=new Set(["isolatedModules"]);function nxe(e,t){return cze(e,t,!1)}function oze(e,t){return cze(e,t,!0)}var VFt=`/// <reference no-default-lib="true"/>
|
|
interface Boolean {}
|
|
interface Function {}
|
|
interface CallableFunction {}
|
|
interface NewableFunction {}
|
|
interface IArguments {}
|
|
interface Number {}
|
|
interface Object {}
|
|
interface RegExp {}
|
|
interface String {}
|
|
interface Array<T> { length: number; [n: number]: T; }
|
|
interface SymbolConstructor {
|
|
(desc?: string | number): symbol;
|
|
for(name: string): symbol;
|
|
readonly toStringTag: symbol;
|
|
}
|
|
declare var Symbol: SymbolConstructor;
|
|
interface Symbol {
|
|
readonly [Symbol.toStringTag]: string;
|
|
}`,UU="lib.d.ts",ixe;function cze(e,t,n){ixe??(ixe=AE(UU,VFt,{languageVersion:99}));let i=[],s=t.compilerOptions?Nre(t.compilerOptions,i):{},l=n$();for(let F in l)ec(l,F)&&s[F]===void 0&&(s[F]=l[F]);for(let F of Pye)s.verbatimModuleSyntax&&$Ft.has(F.name)||(s[F.name]=F.transpileOptionValue);s.suppressOutputPathCheck=!0,s.allowNonTsExtensions=!0,n?(s.declaration=!0,s.emitDeclarationOnly=!0,s.isolatedDeclarations=!0):(s.declaration=!1,s.declarationMap=!1);let p=O1(s),g={getSourceFile:F=>F===Zs(m)?x:F===Zs(UU)?ixe:void 0,writeFile:(F,M)=>{il(F,".map")?(I.assertEqual(S,void 0,"Unexpected multiple source map outputs, file:",F),S=M):(I.assertEqual(b,void 0,"Unexpected multiple outputs, file:",F),b=M)},getDefaultLibFileName:()=>UU,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:F=>F,getCurrentDirectory:()=>"",getNewLine:()=>p,fileExists:F=>F===m||!!n&&F===UU,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},m=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),x=AE(m,e,{languageVersion:Po(s),impliedNodeFormat:YM(Ec(m,"",g.getCanonicalFileName),void 0,g,s),setExternalModuleIndicator:L5(s),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(x.moduleName=t.moduleName),t.renamedDependencies&&(x.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let b,S,E=ZM(n?[m,UU]:[m],s,g);t.reportDiagnostics&&(ti(i,E.getSyntacticDiagnostics(x)),ti(i,E.getOptionsDiagnostics()));let N=E.emit(void 0,void 0,void 0,n,t.transformers,n);return ti(i,N.diagnostics),b===void 0?I.fail("Output generation failed"):{outputText:b,diagnostics:i,sourceMapText:S}}function lze(e,t,n,i,s){let l=nxe(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return ti(i,l.diagnostics),l.outputText}var axe;function Nre(e,t){axe=axe||Cn(xg,n=>typeof n.type=="object"&&!Lu(n.type,i=>typeof i!="number")),e=Ite(e);for(let n of axe){if(!ec(e,n.name))continue;let i=e[n.name];Ua(i)?e[n.name]=Jz(n,i,t):Lu(n.type,s=>s===i)||t.push(Dye(n))}return e}var sxe={};w(sxe,{getNavigateToItems:()=>uze});function uze(e,t,n,i,s,l,p){let g=Vbe(i);if(!g)return ce;let m=[],x=e.length===1?e[0]:void 0;for(let b of e)n.throwIfCancellationRequested(),!(l&&b.isDeclarationFile)&&(pze(b,!!p,x)||b.getNamedDeclarations().forEach((S,P)=>{HFt(g,P,S,t,b.fileName,!!p,x,m)}));return m.sort(XFt),(s===void 0?m:m.slice(0,s)).map(YFt)}function pze(e,t,n){return e!==n&&t&&(CR(e.path)||e.hasNoDefaultLib)}function HFt(e,t,n,i,s,l,p,g){let m=e.getMatchForLastSegmentOfPattern(t);if(m){for(let x of n)if(GFt(x,i,l,p))if(e.patternContainsDots){let b=e.getFullMatch(QFt(x),t);b&&g.push({name:t,fileName:s,matchKind:b.kind,isCaseSensitive:b.isCaseSensitive,declaration:x})}else g.push({name:t,fileName:s,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:x})}}function GFt(e,t,n,i){var s;switch(e.kind){case 273:case 276:case 271:let l=t.getSymbolAtLocation(e.name),p=t.getAliasedSymbol(l);return l.escapedName!==p.escapedName&&!((s=p.declarations)!=null&&s.every(g=>pze(g.getSourceFile(),n,i)));default:return!0}}function KFt(e,t){let n=ls(e);return!!n&&(fze(n,t)||n.kind===167&&oxe(n.expression,t))}function oxe(e,t){return fze(e,t)||ai(e)&&(t.push(e.name.text),!0)&&oxe(e.expression,t)}function fze(e,t){return Oh(e)&&(t.push(lm(e)),!0)}function QFt(e){let t=[],n=ls(e);if(n&&n.kind===167&&!oxe(n.expression,t))return ce;t.shift();let i=aC(e);for(;i;){if(!KFt(i,t))return ce;i=aC(i)}return t.reverse(),t}function XFt(e,t){return mc(e.matchKind,t.matchKind)||DO(e.name,t.name)}function YFt(e){let t=e.declaration,n=aC(t),i=n&&ls(n);return{name:e.name,kind:X2(t),kindModifiers:j3(t),matchKind:wre[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Lf(t),containerName:i?i.text:"",containerKind:i?X2(n):""}}var cxe={};w(cxe,{getNavigationBarItems:()=>dze,getNavigationTree:()=>mze});var ZFt=/\s+/g,lxe=150,Are,AR,$U=[],W1,_ze=[],bA,uxe=[];function dze(e,t){Are=t,AR=e;try{return Dt(i5t(yze(e)),a5t)}finally{gze()}}function mze(e,t){Are=t,AR=e;try{return Pze(yze(e))}finally{gze()}}function gze(){AR=void 0,Are=void 0,$U=[],W1=void 0,uxe=[]}function VU(e){return G3(e.getText(AR))}function Ire(e){return e.node.kind}function hze(e,t){e.children?e.children.push(t):e.children=[t]}function yze(e){I.assert(!$U.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};W1=t;for(let n of e.statements)HE(n);return eT(),I.assert(!W1&&!$U.length),t}function tw(e,t){hze(W1,pxe(e,t))}function pxe(e,t){return{node:e,name:t||(Ku(e)||At(e)?ls(e):void 0),additionalNodes:void 0,parent:W1,children:void 0,indent:W1.indent+1}}function vze(e){bA||(bA=new Map),bA.set(e,!0)}function bze(e){for(let t=0;t<e;t++)eT()}function xze(e,t){let n=[];for(;!Oh(t);){let i=u5(t),s=P0(t);t=t.expression,!(s==="prototype"||Ca(i))&&n.push(i)}n.push(t);for(let i=n.length-1;i>0;i--){let s=n[i];rw(e,s)}return[n.length-1,n[0]]}function rw(e,t){let n=pxe(e,t);hze(W1,n),$U.push(W1),_ze.push(bA),bA=void 0,W1=n}function eT(){W1.children&&(Fre(W1.children,W1),dxe(W1.children)),W1=$U.pop(),bA=_ze.pop()}function tT(e,t,n){rw(e,n),HE(t),eT()}function Sze(e){e.initializer&&o5t(e.initializer)?(rw(e),xs(e.initializer,HE),eT()):tT(e,e.initializer)}function fxe(e){let t=ls(e);if(t===void 0)return!1;if(po(t)){let n=t.expression;return Tc(n)||e_(n)||Dd(n)}return!!t}function HE(e){if(Are.throwIfCancellationRequested(),!(!e||RP(e)))switch(e.kind){case 176:let t=e;tT(t,t.body);for(let p of t.parameters)L_(p,t)&&tw(p);break;case 174:case 177:case 178:case 173:fxe(e)&&tT(e,e.body);break;case 172:fxe(e)&&Sze(e);break;case 171:fxe(e)&&tw(e);break;case 273:let n=e;n.name&&tw(n.name);let{namedBindings:i}=n;if(i)if(i.kind===274)tw(i);else for(let p of i.elements)tw(p);break;case 304:tT(e,e.name);break;case 305:let{expression:s}=e;Ye(s)?tw(e,s):tw(e);break;case 208:case 303:case 260:{let p=e;Os(p.name)?HE(p.name):Sze(p);break}case 262:let l=e.name;l&&Ye(l)&&vze(l.text),tT(e,e.body);break;case 219:case 218:tT(e,e.body);break;case 266:rw(e);for(let p of e.members)s5t(p)||tw(p);eT();break;case 263:case 231:case 264:rw(e);for(let p of e.members)HE(p);eT();break;case 267:tT(e,Dze(e).body);break;case 277:{let p=e.expression,g=So(p)||Ls(p)?p:Bc(p)||Ic(p)?p.body:void 0;g?(rw(e),HE(g),eT()):tw(e);break}case 281:case 271:case 181:case 179:case 180:case 265:tw(e);break;case 213:case 226:{let p=$l(e);switch(p){case 1:case 2:tT(e,e.right);return;case 6:case 3:{let g=e,m=g.left,x=p===3?m.expression:m,b=0,S;Ye(x.expression)?(vze(x.expression.text),S=x.expression):[b,S]=xze(g,x.expression),p===6?So(g.right)&&g.right.properties.length>0&&(rw(g,S),xs(g.right,HE),eT()):Ic(g.right)||Bc(g.right)?tT(e,g.right,S):(rw(g,S),tT(e,g.right,m.name),eT()),bze(b);return}case 7:case 9:{let g=e,m=p===7?g.arguments[0]:g.arguments[0].expression,x=g.arguments[1],[b,S]=xze(e,m);rw(e,S),rw(e,Ot(j.createIdentifier(x.text),x)),HE(e.arguments[2]),eT(),eT(),bze(b);return}case 5:{let g=e,m=g.left,x=m.expression;if(Ye(x)&&P0(m)!=="prototype"&&bA&&bA.has(x.text)){Ic(g.right)||Bc(g.right)?tT(e,g.right,x):x2(m)&&(rw(g,x),tT(g.left,g.right,u5(m)),eT());return}break}case 4:case 0:case 8:break;default:I.assertNever(p)}}default:fd(e)&&Ge(e.jsDoc,p=>{Ge(p.tags,g=>{Bm(g)&&tw(g)})}),xs(e,HE)}}function Fre(e,t){let n=new Map;__(e,(i,s)=>{let l=i.name||ls(i.node),p=l&&VU(l);if(!p)return!0;let g=n.get(p);if(!g)return n.set(p,i),!0;if(g instanceof Array){for(let m of g)if(Tze(m,i,s,t))return!1;return g.push(i),!0}else{let m=g;return Tze(m,i,s,t)?!1:(n.set(p,[m,i]),!0)}})}var IR={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function e5t(e,t,n,i){function s(g){return Ic(g)||jl(g)||Ui(g)}let l=Vn(t.node)||Ls(t.node)?$l(t.node):0,p=Vn(e.node)||Ls(e.node)?$l(e.node):0;if(IR[l]&&IR[p]||s(e.node)&&IR[l]||s(t.node)&&IR[p]||bu(e.node)&&_xe(e.node)&&IR[l]||bu(t.node)&&IR[p]||bu(e.node)&&_xe(e.node)&&s(t.node)||bu(t.node)&&s(e.node)&&_xe(e.node)){let g=e.additionalNodes&&dc(e.additionalNodes)||e.node;if(!bu(e.node)&&!bu(t.node)||s(e.node)||s(t.node)){let x=s(e.node)?e.node:s(t.node)?t.node:void 0;if(x!==void 0){let b=Ot(j.createConstructorDeclaration(void 0,[],void 0),x),S=pxe(b);S.indent=e.indent+1,S.children=e.node===x?e.children:t.children,e.children=e.node===x?ya([S],t.children||[t]):ya(e.children||[{...e}],[S])}else(e.children||t.children)&&(e.children=ya(e.children||[{...e}],t.children||[t]),e.children&&(Fre(e.children,e),dxe(e.children)));g=e.node=Ot(j.createClassDeclaration(void 0,e.name||j.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ya(e.children,t.children),e.children&&Fre(e.children,e);let m=t.node;return i.children[n-1].node.end===g.end?Ot(g,{pos:g.pos,end:m.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Ot(j.createClassDeclaration(void 0,e.name||j.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return l!==0}function Tze(e,t,n,i){return e5t(e,t,n,i)?!0:t5t(e.node,t.node,i)?(r5t(e,t),!0):!1}function t5t(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(wze(e,n)&&wze(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Vs(e)===Vs(t);case 267:return kze(e,t)&&hxe(e)===hxe(t);default:return!0}}function _xe(e){return!!(e.flags&16)}function wze(e,t){if(e.parent===void 0)return!1;let n=Lh(e.parent)?e.parent.parent:e.parent;return n===t.node||Ta(t.additionalNodes,n)}function kze(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||kze(e.body,t.body))}function r5t(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=ya(e.children,t.children),e.children&&(Fre(e.children,e),dxe(e.children))}function dxe(e){e.sort(n5t)}function n5t(e,t){return DO(Cze(e.node),Cze(t.node))||mc(Ire(e),Ire(t))}function Cze(e){if(e.kind===267)return Eze(e);let t=ls(e);if(t&&su(t)){let n=Nk(t);return n&&ka(n)}switch(e.kind){case 218:case 219:case 231:return Nze(e);default:return}}function mxe(e,t){if(e.kind===267)return G3(Eze(e));if(t){let n=Ye(t)?t.text:Nc(t)?`[${VU(t.argumentExpression)}]`:VU(t);if(n.length>0)return G3(n)}switch(e.kind){case 307:let n=e;return Du(n)?`"${Ay(gu(yf(Zs(n.fileName))))}"`:"<global>";case 277:return Gc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return E1(e)&2048?"default":Nze(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function i5t(e){let t=[];function n(s){if(i(s)&&(t.push(s),s.children))for(let l of s.children)n(l)}return n(e),t;function i(s){if(s.children)return!0;switch(Ire(s)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return l(s);default:return!1}function l(p){if(!p.node.body)return!1;switch(Ire(p.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}function Pze(e){return{text:mxe(e.node,e.name),kind:X2(e.node),kindModifiers:Oze(e.node),spans:gxe(e),nameSpan:e.name&&yxe(e.name),childItems:Dt(e.children,Pze)}}function a5t(e){return{text:mxe(e.node,e.name),kind:X2(e.node),kindModifiers:Oze(e.node),spans:gxe(e),childItems:Dt(e.children,t)||uxe,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:mxe(n.node,n.name),kind:X2(n.node),kindModifiers:j3(n.node),spans:gxe(n),childItems:uxe,indent:0,bolded:!1,grayed:!1}}}function gxe(e){let t=[yxe(e.node)];if(e.additionalNodes)for(let n of e.additionalNodes)t.push(yxe(n));return t}function Eze(e){return df(e)?cl(e.name):hxe(e)}function hxe(e){let t=[lm(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(lm(e.name));return t.join(".")}function Dze(e){return e.body&&cu(e.body)?Dze(e.body):e}function s5t(e){return!e.name||e.name.kind===167}function yxe(e){return e.kind===307?z1(e):Lf(e,AR)}function Oze(e){return e.parent&&e.parent.kind===260&&(e=e.parent),j3(e)}function Nze(e){let{parent:t}=e;if(e.name&&qF(e.name)>0)return G3(Oc(e.name));if(Ui(t))return G3(Oc(t.name));if(Vn(t)&&t.operatorToken.kind===64)return VU(t.left).replace(ZFt,"");if(xu(t))return VU(t.name);if(E1(e)&2048)return"default";if(Ri(e))return"<class>";if(Ls(t)){let n=Aze(t.expression);if(n!==void 0){if(n=G3(n),n.length>lxe)return`${n} callback`;let i=G3(Bi(t.arguments,s=>Ho(s)||BP(s)?s.getText(AR):void 0).join(", "));return`${n}(${i}) callback`}}return"<function>"}function Aze(e){if(Ye(e))return e.text;if(ai(e)){let t=Aze(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function o5t(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function G3(e){return e=e.length>lxe?e.substring(0,lxe)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var GE={};w(GE,{addExportsInOldFile:()=>Dxe,addImportsForMovedSymbols:()=>Oxe,addNewFileToTsconfig:()=>Exe,addOrRemoveBracesToArrowFunction:()=>rMt,addTargetFileImports:()=>Bxe,containsJsx:()=>Ixe,convertArrowFunctionOrFunctionExpression:()=>oMt,convertParamsToDestructuredObject:()=>yMt,convertStringOrTemplateLiteral:()=>RMt,convertToOptionalChainExpression:()=>VMt,createNewFileName:()=>Axe,doChangeNamedToNamespaceOrDefault:()=>Lze,extractSymbol:()=>OWe,generateGetAccessorAndSetAccessor:()=>DRt,getApplicableRefactors:()=>c5t,getEditsForRefactor:()=>l5t,getExistingLocals:()=>jxe,getIdentifierForNode:()=>Lxe,getNewStatementsAndRemoveFromOldFile:()=>Pxe,getStatementsToMove:()=>FR,getUsageInfo:()=>HU,inferFunctionReturnType:()=>ORt,isInImport:()=>Wre,isRefactorErrorInfo:()=>q0,refactorKindBeginsWith:()=>rT,registerRefactor:()=>qv});var vxe=new Map;function qv(e,t){vxe.set(e,t)}function c5t(e,t){return Ka(Xl(vxe.values(),n=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=n.kinds)!=null&&i.some(s=>rT(s,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function l5t(e,t,n,i){let s=vxe.get(t);return s&&s.getEditsForAction(e,n,i)}var bxe="Convert export",Mre={name:"Convert default export to named export",description:gs(y.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},Rre={name:"Convert named export to default export",description:gs(y.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};qv(bxe,{kinds:[Mre.kind,Rre.kind],getAvailableActions:function(t){let n=Ize(t,t.triggerReason==="invoked");if(!n)return ce;if(!q0(n)){let i=n.wasDefault?Mre:Rre;return[{name:bxe,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:bxe,description:gs(y.Convert_default_export_to_named_export),actions:[{...Mre,notApplicableReason:n.error},{...Rre,notApplicableReason:n.error}]}]:ce},getEditsForAction:function(t,n){I.assert(n===Mre.name||n===Rre.name,"Unexpected action name");let i=Ize(t);return I.assert(i&&!q0(i),"Expected applicable refactor info"),{edits:Ln.ChangeTracker.with(t,l=>u5t(t.file,t.program,i,l,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function Ize(e,t=!0){let{file:n,program:i}=e,s=$E(e),l=ca(n,s.start),p=l.parent&&E1(l.parent)&32&&t?l.parent:bR(l,n,s);if(!p||!ba(p.parent)&&!(Lh(p.parent)&&df(p.parent.parent)))return{error:gs(y.Could_not_find_export_statement)};let g=i.getTypeChecker(),m=m5t(p.parent,g),x=E1(p)||(Gc(p)&&!p.isExportEquals?2080:0),b=!!(x&2048);if(!(x&32)||!b&&m.exports.has("default"))return{error:gs(y.This_file_already_has_a_default_export)};let S=P=>Ye(P)&&g.getSymbolAtLocation(P)?void 0:{error:gs(y.Can_only_convert_named_export)};switch(p.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let P=p;return P.name?S(P.name)||{exportNode:P,exportName:P.name,wasDefault:b,exportingModuleSymbol:m}:void 0}case 243:{let P=p;if(!(P.declarationList.flags&2)||P.declarationList.declarations.length!==1)return;let E=ho(P.declarationList.declarations);return E.initializer?(I.assert(!b,"Can't have a default flag here"),S(E.name)||{exportNode:P,exportName:E.name,wasDefault:b,exportingModuleSymbol:m}):void 0}case 277:{let P=p;return P.isExportEquals?void 0:S(P.expression)||{exportNode:P,exportName:P.expression,wasDefault:b,exportingModuleSymbol:m}}default:return}}function u5t(e,t,n,i,s){p5t(e,n,i,t.getTypeChecker()),f5t(t,n,i,s)}function p5t(e,{wasDefault:t,exportNode:n,exportName:i},s,l){if(t)if(Gc(n)&&!n.isExportEquals){let p=n.expression,g=Fze(p.text,p.text);s.replaceNode(e,n,j.createExportDeclaration(void 0,!1,j.createNamedExports([g])))}else s.delete(e,I.checkDefined(_A(n,90),"Should find a default keyword in modifier list"));else{let p=I.checkDefined(_A(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:s.insertNodeAfter(e,p,j.createToken(90));break;case 243:let g=ho(n.declarationList.declarations);if(!qc.Core.isSymbolReferencedInFile(i,l,e)&&!g.type){s.replaceNode(e,n,j.createExportDefault(I.checkDefined(g.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:s.deleteModifier(e,p),s.insertNodeAfter(e,n,j.createExportDefault(j.createIdentifier(i.text)));break;default:I.fail(`Unexpected exportNode kind ${n.kind}`)}}}function f5t(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,l){let p=e.getTypeChecker(),g=I.checkDefined(p.getSymbolAtLocation(n),"Export name should resolve to a symbol");qc.Core.eachExportReference(e.getSourceFiles(),p,l,g,i,n.text,t,m=>{if(n===m)return;let x=m.getSourceFile();t?_5t(x,m,s,n.text):d5t(x,m,s)})}function _5t(e,t,n,i){let{parent:s}=t;switch(s.kind){case 211:n.replaceNode(e,t,j.createIdentifier(i));break;case 276:case 281:{let p=s;n.replaceNode(e,p,xxe(i,p.name.text));break}case 273:{let p=s;I.assert(p.name===t,"Import clause name should match provided ref");let g=xxe(i,t.text),{namedBindings:m}=p;if(!m)n.replaceNode(e,t,j.createNamedImports([g]));else if(m.kind===274){n.deleteRange(e,{pos:t.getStart(e),end:m.getStart(e)});let x=vo(p.parent.moduleSpecifier)?Jte(p.parent.moduleSpecifier,e):1,b=Mx(void 0,[xxe(i,t.text)],p.parent.moduleSpecifier,x);n.insertNodeAfter(e,p.parent,b)}else n.delete(e,t),n.insertNodeAtEndOfList(e,m.elements,g);break}case 205:let l=s;n.replaceNode(e,s,j.createImportTypeNode(l.argument,l.attributes,j.createIdentifier(i),l.typeArguments,l.isTypeOf));break;default:I.failBadSyntaxKind(s)}}function d5t(e,t,n){let i=t.parent;switch(i.kind){case 211:n.replaceNode(e,t,j.createIdentifier("default"));break;case 276:{let s=j.createIdentifier(i.name.text);i.parent.elements.length===1?n.replaceNode(e,i.parent,s):(n.delete(e,i),n.insertNodeBefore(e,i.parent,s));break}case 281:{n.replaceNode(e,i,Fze("default",i.name.text));break}default:I.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function xxe(e,t){return j.createImportSpecifier(!1,e===t?void 0:j.createIdentifier(e),j.createIdentifier(t))}function Fze(e,t){return j.createExportSpecifier(!1,e===t?void 0:j.createIdentifier(e),j.createIdentifier(t))}function m5t(e,t){if(ba(e))return e.symbol;let n=e.parent.symbol;return n.valueDeclaration&&h2(n.valueDeclaration)?t.getMergedSymbol(n):n}var Sxe="Convert import",jre={0:{name:"Convert namespace import to named imports",description:gs(y.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:gs(y.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:gs(y.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};qv(Sxe,{kinds:_S(jre).map(e=>e.kind),getAvailableActions:function(t){let n=Mze(t,t.triggerReason==="invoked");if(!n)return ce;if(!q0(n)){let i=jre[n.convertTo];return[{name:Sxe,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?_S(jre).map(i=>({name:Sxe,description:i.description,actions:[{...i,notApplicableReason:n.error}]})):ce},getEditsForAction:function(t,n){I.assert(Pt(_S(jre),l=>l.name===n),"Unexpected action name");let i=Mze(t);return I.assert(i&&!q0(i),"Expected applicable refactor info"),{edits:Ln.ChangeTracker.with(t,l=>g5t(t.file,t.program,l,i)),renameFilename:void 0,renameLocation:void 0}}});function Mze(e,t=!0){let{file:n}=e,i=$E(e),s=ca(n,i.start),l=t?Br(s,Df(sl,zh)):bR(s,n,i);if(l===void 0||!(sl(l)||zh(l)))return{error:"Selection is not an import declaration."};let p=i.start+i.length,g=Y2(l,l.parent,n);if(g&&p>g.getStart())return;let{importClause:m}=l;return m?m.namedBindings?m.namedBindings.kind===274?{convertTo:0,import:m.namedBindings}:Rze(e.program,m)?{convertTo:1,import:m.namedBindings}:{convertTo:2,import:m.namedBindings}:{error:gs(y.Could_not_find_namespace_import_or_named_imports)}:{error:gs(y.Could_not_find_import_clause)}}function Rze(e,t){return lE(e.getCompilerOptions())&&v5t(t.parent.moduleSpecifier,e.getTypeChecker())}function g5t(e,t,n,i){let s=t.getTypeChecker();i.convertTo===0?h5t(e,s,n,i.import,lE(t.getCompilerOptions())):Lze(e,t,n,i.import,i.convertTo===1)}function h5t(e,t,n,i,s){let l=!1,p=[],g=new Map;qc.Core.eachSymbolReferenceInFile(i.name,t,e,S=>{if(!MF(S.parent))l=!0;else{let P=jze(S.parent).text;t.resolveName(P,S,-1,!0)&&g.set(P,!0),I.assert(y5t(S.parent)===S,"Parent expression should match id"),p.push(S.parent)}});let m=new Map;for(let S of p){let P=jze(S).text,E=m.get(P);E===void 0&&m.set(P,E=g.has(P)?oC(P,e):P),n.replaceNode(e,S,j.createIdentifier(E))}let x=[];m.forEach((S,P)=>{x.push(j.createImportSpecifier(!1,S===P?void 0:j.createIdentifier(P),j.createIdentifier(S)))});let b=i.parent.parent;if(l&&!s&&sl(b))n.insertNodeAfter(e,b,Bze(b,void 0,x));else{let S=l?j.createIdentifier(i.name.text):void 0;n.replaceNode(e,i.parent,qze(S,x))}}function jze(e){return ai(e)?e.name:e.right}function y5t(e){return ai(e)?e.expression:e.left}function Lze(e,t,n,i,s=Rze(t,i.parent)){let l=t.getTypeChecker(),p=i.parent.parent,{moduleSpecifier:g}=p,m=new Set;i.elements.forEach(N=>{let F=l.getSymbolAtLocation(N.name);F&&m.add(F)});let x=g&&vo(g)?ER(g.text,99):"module";function b(N){return!!qc.Core.eachSymbolReferenceInFile(N.name,l,e,F=>{let M=l.resolveName(x,F,-1,!0);return M?m.has(M)?Yp(F.parent):!0:!1})}let P=i.elements.some(b)?oC(x,e):x,E=new Set;for(let N of i.elements){let F=N.propertyName||N.name;qc.Core.eachSymbolReferenceInFile(N.name,l,e,M=>{let L=F.kind===11?j.createElementAccessExpression(j.createIdentifier(P),j.cloneNode(F)):j.createPropertyAccessExpression(j.createIdentifier(P),j.cloneNode(F));Jp(M.parent)?n.replaceNode(e,M.parent,j.createPropertyAssignment(M.text,L)):Yp(M.parent)?E.add(N):n.replaceNode(e,M,L)})}if(n.replaceNode(e,i,s?j.createIdentifier(P):j.createNamespaceImport(j.createIdentifier(P))),E.size&&sl(p)){let N=Ka(E.values(),F=>j.createImportSpecifier(F.isTypeOnly,F.propertyName&&j.cloneNode(F.propertyName),j.cloneNode(F.name)));n.insertNodeAfter(e,i.parent.parent,Bze(p,void 0,N))}}function v5t(e,t){let n=t.resolveExternalModuleName(e);if(!n)return!1;let i=t.resolveExternalModuleSymbol(n);return n!==i}function Bze(e,t,n){return j.createImportDeclaration(void 0,qze(t,n),e.moduleSpecifier,void 0)}function qze(e,t){return j.createImportClause(!1,e,t&&t.length?j.createNamedImports(t):void 0)}var Txe="Extract type",Lre={name:"Extract to type alias",description:gs(y.Extract_to_type_alias),kind:"refactor.extract.type"},Bre={name:"Extract to interface",description:gs(y.Extract_to_interface),kind:"refactor.extract.interface"},qre={name:"Extract to typedef",description:gs(y.Extract_to_typedef),kind:"refactor.extract.typedef"};qv(Txe,{kinds:[Lre.kind,Bre.kind,qre.kind],getAvailableActions:function(t){let{info:n,affectedTextRange:i}=Jze(t,t.triggerReason==="invoked");return n?q0(n)?t.preferences.provideRefactorNotApplicableReason?[{name:Txe,description:gs(y.Extract_type),actions:[{...qre,notApplicableReason:n.error},{...Lre,notApplicableReason:n.error},{...Bre,notApplicableReason:n.error}]}]:ce:[{name:Txe,description:gs(y.Extract_type),actions:n.isJS?[qre]:Zr([Lre],n.typeElements&&Bre)}].map(l=>({...l,actions:l.actions.map(p=>({...p,range:i?{start:{line:$s(t.file,i.pos).line,offset:$s(t.file,i.pos).character},end:{line:$s(t.file,i.end).line,offset:$s(t.file,i.end).character}}:void 0}))})):ce},getEditsForAction:function(t,n){let{file:i}=t,{info:s}=Jze(t);I.assert(s&&!q0(s),"Expected to find a range to extract");let l=oC("NewType",i),p=Ln.ChangeTracker.with(t,x=>{switch(n){case Lre.name:return I.assert(!s.isJS,"Invalid actionName/JS combo"),S5t(x,i,l,s);case qre.name:return I.assert(s.isJS,"Invalid actionName/JS combo"),w5t(x,t,i,l,s);case Bre.name:return I.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),T5t(x,i,l,s);default:I.fail("Unexpected action name")}}),g=i.fileName,m=TR(p,g,l,!1);return{edits:p,renameFilename:g,renameLocation:m}}});function Jze(e,t=!0){let{file:n,startPosition:i}=e,s=Nf(n),l=hU($E(e)),p=l.pos===l.end&&t,g=b5t(n,i,l,p);if(!g||!Yi(g))return{info:{error:gs(y.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let m=e.program.getTypeChecker(),x=k5t(g,s);if(x===void 0)return{info:{error:gs(y.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let b=C5t(g,x);if(!Yi(b))return{info:{error:gs(y.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let S=[];(M1(b.parent)||wE(b.parent))&&l.end>g.end&&ti(S,b.parent.types.filter(M=>cU(M,n,l.pos,l.end)));let P=S.length>1?S:b,{typeParameters:E,affectedTextRange:N}=x5t(m,P,x,n);if(!E)return{info:{error:gs(y.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let F=Jre(m,P);return{info:{isJS:s,selection:P,enclosingNode:x,typeParameters:E,typeElements:F},affectedTextRange:N}}function b5t(e,t,n,i){let s=[()=>ca(e,t),()=>pA(e,t,()=>!0)];for(let l of s){let p=l(),g=cU(p,e,n.pos,n.end),m=Br(p,x=>x.parent&&Yi(x)&&!nw(n,x.parent,e)&&(i||g));if(m)return m}}function Jre(e,t){if(t){if(cs(t)){let n=[];for(let i of t){let s=Jre(e,i);if(!s)return;ti(n,s)}return n}if(wE(t)){let n=[],i=new Set;for(let s of t.types){let l=Jre(e,s);if(!l||!l.every(p=>p.name&&Jm(i,yR(p.name))))return;ti(n,l)}return n}else{if(Jk(t))return Jre(e,t.type);if(Ff(t))return t.members}}}function nw(e,t,n){return _R(e,yo(n.text,t.pos),t.end)}function x5t(e,t,n,i){let s=[],l=Sh(t),p={pos:l[0].getStart(i),end:l[l.length-1].end};for(let m of l)if(g(m))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:s,affectedTextRange:p};function g(m){if(W_(m)){if(Ye(m.typeName)){let x=m.typeName,b=e.resolveName(x.text,x,262144,!0);for(let S of b?.declarations||ce)if(Hc(S)&&S.getSourceFile()===i){if(S.name.escapedText===x.escapedText&&nw(S,p,i))return!0;if(nw(n,S,i)&&!nw(p,S,i)){I_(s,S);break}}}}else if(qk(m)){let x=Br(m,b=>R2(b)&&nw(b.extendsType,m,i));if(!x||!nw(p,x,i))return!0}else if(SE(m)||X4(m)){let x=Br(m.parent,Ss);if(x&&x.type&&nw(x.type,m,i)&&!nw(p,x,i))return!0}else if(M2(m)){if(Ye(m.exprName)){let x=e.resolveName(m.exprName.text,m.exprName,111551,!1);if(x?.valueDeclaration&&nw(n,x.valueDeclaration,i)&&!nw(p,x.valueDeclaration,i))return!0}else if(hx(m.exprName.left)&&!nw(p,m.parent,i))return!0}return i&&TE(m)&&$s(i,m.pos).line===$s(i,m.end).line&&qn(m,1),xs(m,g)}}function S5t(e,t,n,i){let{enclosingNode:s,typeParameters:l}=i,{firstTypeNode:p,lastTypeNode:g,newTypeNode:m}=wxe(i),x=j.createTypeAliasDeclaration(void 0,n,l.map(b=>j.updateTypeParameterDeclaration(b,b.modifiers,b.name,b.constraint,void 0)),m);e.insertNodeBefore(t,s,aY(x),!0),e.replaceNodeRange(t,p,g,j.createTypeReferenceNode(n,l.map(b=>j.createTypeReferenceNode(b.name,void 0))),{leadingTriviaOption:Ln.LeadingTriviaOption.Exclude,trailingTriviaOption:Ln.TrailingTriviaOption.ExcludeWhitespace})}function T5t(e,t,n,i){var s;let{enclosingNode:l,typeParameters:p,typeElements:g}=i,m=j.createInterfaceDeclaration(void 0,n,p,void 0,g);Ot(m,(s=g[0])==null?void 0:s.parent),e.insertNodeBefore(t,l,aY(m),!0);let{firstTypeNode:x,lastTypeNode:b}=wxe(i);e.replaceNodeRange(t,x,b,j.createTypeReferenceNode(n,p.map(S=>j.createTypeReferenceNode(S.name,void 0))),{leadingTriviaOption:Ln.LeadingTriviaOption.Exclude,trailingTriviaOption:Ln.TrailingTriviaOption.ExcludeWhitespace})}function w5t(e,t,n,i,s){var l;Sh(s.selection).forEach(N=>{qn(N,7168)});let{enclosingNode:p,typeParameters:g}=s,{firstTypeNode:m,lastTypeNode:x,newTypeNode:b}=wxe(s),S=j.createJSDocTypedefTag(j.createIdentifier("typedef"),j.createJSDocTypeExpression(b),j.createIdentifier(i)),P=[];Ge(g,N=>{let F=GO(N),M=j.createTypeParameterDeclaration(void 0,N.name),L=j.createJSDocTemplateTag(j.createIdentifier("template"),F&&Js(F,JS),[M]);P.push(L)});let E=j.createJSDocComment(void 0,j.createNodeArray(ya(P,[S])));if(Gg(p)){let N=p.getStart(n),F=B0(t.host,(l=t.formatContext)==null?void 0:l.options);e.insertNodeAt(n,p.getStart(n),E,{suffix:F+F+n.text.slice(kU(n.text,N-1),N)})}else e.insertNodeBefore(n,p,E,!0);e.replaceNodeRange(n,m,x,j.createTypeReferenceNode(i,g.map(N=>j.createTypeReferenceNode(N.name,void 0))))}function wxe(e){return cs(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:M1(e.selection[0].parent)?j.createUnionTypeNode(e.selection):j.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function k5t(e,t){return Br(e,fa)||(t?Br(e,Gg):void 0)}function C5t(e,t){return Br(e,n=>n===t?"quit":!!(M1(n.parent)||wE(n.parent)))??e}var zre="Move to file",kxe=gs(y.Move_to_file),Cxe={name:"Move to file",description:kxe,kind:"refactor.move.file"};qv(zre,{kinds:[Cxe.kind],getAvailableActions:function(t,n){let i=t.file,s=FR(t);if(!n)return ce;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let l=Br(ca(i,t.startPosition),VE),p=Br(ca(i,t.endPosition),VE);if(l&&!ba(l)&&p&&!ba(p))return ce}if(t.preferences.allowTextChangesInNewFiles&&s){let l={start:{line:$s(i,s.all[0].getStart(i)).line,offset:$s(i,s.all[0].getStart(i)).character},end:{line:$s(i,ao(s.all).end).line,offset:$s(i,ao(s.all).end).character}};return[{name:zre,description:kxe,actions:[{...Cxe,range:l}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:zre,description:kxe,actions:[{...Cxe,notApplicableReason:gs(y.Selection_is_not_a_valid_statement_or_statements)}]}]:ce},getEditsForAction:function(t,n,i){I.assert(n===zre,"Wrong refactor invoked");let s=I.checkDefined(FR(t)),{host:l,program:p}=t;I.assert(i,"No interactive refactor arguments available");let g=i.targetFile;return Iv(g)||Mk(g)?l.fileExists(g)&&p.getSourceFile(g)===void 0?zze(gs(y.Cannot_move_statements_to_the_selected_file)):{edits:Ln.ChangeTracker.with(t,x=>P5t(t,t.file,i.targetFile,t.program,s,x,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:zze(gs(y.Cannot_move_to_file_selected_file_is_invalid))}});function zze(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function P5t(e,t,n,i,s,l,p,g){let m=i.getTypeChecker(),x=!p.fileExists(n),b=x?BU(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,p):I.checkDefined(i.getSourceFile(n)),S=rf.createImportAdder(t,e.program,e.preferences,e.host),P=rf.createImportAdder(b,e.program,e.preferences,e.host);Pxe(t,b,HU(t,s.all,m,x?void 0:jxe(b,s.all,m)),l,s,i,p,g,P,S),x&&Exe(i,l,t.fileName,n,D0(p))}function Pxe(e,t,n,i,s,l,p,g,m,x){let b=l.getTypeChecker(),S=Hb(e.statements,Ph),P=!mre(t.fileName,l,p,!!e.commonJsModuleIndicator),E=H_(e,g);Oxe(n.oldFileImportsFromTargetFile,t.fileName,x,l),D5t(e,s.all,n.unusedImportsFromOldFile,x),x.writeFixes(i,E),E5t(e,s.ranges,i),O5t(i,l,p,e,n.movedSymbols,t.fileName,E),Dxe(e,n.targetFileImportsFromOldFile,i,P),Bxe(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,b,l,m),!Pv(t)&&S.length&&i.insertStatementsInNewFile(t.fileName,S,e),m.writeFixes(i,E);let N=R5t(e,s.all,Ka(n.oldFileImportsFromTargetFile.keys()),P);Pv(t)&&t.statements.length>0?Y5t(i,l,N,t,s):Pv(t)?i.insertNodesAtEndOfFile(t,N,!1):i.insertStatementsInNewFile(t.fileName,m.hasFixes()?[4,...N]:N,e)}function Exe(e,t,n,i,s){let l=e.getCompilerOptions().configFile;if(!l)return;let p=Zs(gi(n,"..",i)),g=WO(l.fileName,p,s),m=l.statements[0]&&_i(l.statements[0].expression,So),x=m&&Ir(m.properties,b=>xu(b)&&vo(b.name)&&b.name.text==="files");x&&kp(x.initializer)&&t.insertNodeInListAfter(l,ao(x.initializer.elements),j.createStringLiteral(g),x.initializer.elements)}function E5t(e,t,n){for(let{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function D5t(e,t,n,i){for(let s of e.statements)Ta(t,s)||Uze(s,l=>{$ze(l,p=>{n.has(p.symbol)&&i.removeExistingImport(p)})})}function Dxe(e,t,n,i){let s=fA();t.forEach((l,p)=>{if(p.declarations)for(let g of p.declarations){if(!Rxe(g))continue;let m=U5t(g);if(!m)continue;let x=Kze(g);s(x)&&$5t(e,x,m,n,i)}})}function O5t(e,t,n,i,s,l,p){let g=t.getTypeChecker();for(let m of t.getSourceFiles())if(m!==i)for(let x of m.statements)Uze(x,b=>{if(g.getSymbolAtLocation(F5t(b))!==i.symbol)return;let S=M=>{let L=Do(M.parent)?TU(g,M.parent):Tp(g.getSymbolAtLocation(M),g);return!!L&&s.has(L)};j5t(m,b,e,S);let P=Zb(Ei(Qa(i.fileName,t.getCurrentDirectory())),l);if(uk(!t.useCaseSensitiveFileNames())(P,m.fileName)===0)return;let E=L0.getModuleSpecifier(t.getCompilerOptions(),m,m.fileName,P,YS(t,n)),N=J5t(b,B3(E,p),S);N&&e.insertNodeAfter(m,x,N);let F=N5t(b);F&&A5t(e,m,g,s,E,F,b,p)})}function N5t(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return _i(e.name,Ye);default:return I.assertNever(e,`Unexpected node kind ${e.kind}`)}}function A5t(e,t,n,i,s,l,p,g){let m=ER(s,99),x=!1,b=[];if(qc.Core.eachSymbolReferenceInFile(l,n,t,S=>{ai(S.parent)&&(x=x||!!n.resolveName(m,S,-1,!0),i.has(n.getSymbolAtLocation(S.parent.name))&&b.push(S))}),b.length){let S=x?oC(m,t):m;for(let P of b)e.replaceNode(t,P,j.createIdentifier(S));e.insertNodeAfter(t,p,I5t(p,m,s,g))}}function I5t(e,t,n,i){let s=j.createIdentifier(t),l=B3(n,i);switch(e.kind){case 272:return j.createImportDeclaration(void 0,j.createImportClause(!1,void 0,j.createNamespaceImport(s)),l,void 0);case 271:return j.createImportEqualsDeclaration(void 0,!1,s,j.createExternalModuleReference(l));case 260:return j.createVariableDeclaration(s,void 0,void 0,Wze(l));default:return I.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Wze(e){return j.createCallExpression(j.createIdentifier("require"),void 0,[e])}function F5t(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function Uze(e,t){if(sl(e))vo(e.moduleSpecifier)&&t(e);else if(zu(e))M0(e.moduleReference)&&Ho(e.moduleReference.expression)&&t(e);else if(Rl(e))for(let n of e.declarationList.declarations)n.initializer&&Xf(n.initializer,!0)&&t(n)}function $ze(e,t){var n,i,s,l,p;if(e.kind===272){if((n=e.importClause)!=null&&n.name&&t(e.importClause),((s=(i=e.importClause)==null?void 0:i.namedBindings)==null?void 0:s.kind)===274&&t(e.importClause.namedBindings),((p=(l=e.importClause)==null?void 0:l.namedBindings)==null?void 0:p.kind)===275)for(let g of e.importClause.namedBindings.elements)t(g)}else if(e.kind===271)t(e);else if(e.kind===260){if(e.name.kind===80)t(e);else if(e.name.kind===206)for(let g of e.name.elements)Ye(g.name)&&t(g)}}function Oxe(e,t,n,i){for(let[s,l]of e){let p=FU(s,Po(i.getCompilerOptions())),g=s.name==="default"&&s.parent?1:0;n.addImportForNonExistentExport(p,t,g,s.flags,l)}}function M5t(e,t,n,i=2){return j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(e,void 0,t,n)],i))}function R5t(e,t,n,i){return li(t,s=>{if(Hze(s)&&!Vze(e,s,i)&&Mxe(s,l=>{var p;return n.includes(I.checkDefined((p=_i(l,qg))==null?void 0:p.symbol))})){let l=L5t(tc(s),i);if(l)return l}return tc(s)})}function Vze(e,t,n,i){var s;return n?!Zu(t)&&Ai(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Nxe(t).some(l=>e.symbol.exports.has(gl(l)))}function j5t(e,t,n,i){if(t.kind===272&&t.importClause){let{name:s,namedBindings:l}=t.importClause;if((!s||i(s))&&(!l||l.kind===275&&l.elements.length!==0&&l.elements.every(p=>i(p.name))))return n.delete(e,t)}$ze(t,s=>{s.name&&Ye(s.name)&&i(s.name)&&n.delete(e,s)})}function Hze(e){return I.assert(ba(e.parent),"Node parent should be a SourceFile"),Yze(e)||Rl(e)}function L5t(e,t){return t?[B5t(e)]:q5t(e)}function B5t(e){let t=$m(e)?ya([j.createModifier(95)],u2(e)):void 0;switch(e.kind){case 262:return j.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let n=U2(e)?tx(e):void 0;return j.updateClassDeclaration(e,ya(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return j.updateVariableStatement(e,t,e.declarationList);case 267:return j.updateModuleDeclaration(e,t,e.name,e.body);case 266:return j.updateEnumDeclaration(e,t,e.name,e.members);case 265:return j.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return j.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return j.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return I.fail();default:return I.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function q5t(e){return[e,...Nxe(e).map(Gze)]}function Gze(e){return j.createExpressionStatement(j.createBinaryExpression(j.createPropertyAccessExpression(j.createIdentifier("exports"),j.createIdentifier(e)),64,j.createIdentifier(e)))}function Nxe(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Bi(e.declarationList.declarations,t=>Ye(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return ce;case 244:return I.fail("Can't export an ExpressionStatement");default:return I.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function J5t(e,t,n){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let s=i.name&&n(i.name)?i.name:void 0,l=i.namedBindings&&z5t(i.namedBindings,n);return s||l?j.createImportDeclaration(void 0,j.createImportClause(i.isTypeOnly,s,l),tc(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{let i=W5t(e.name,n);return i?M5t(i,e.type,Wze(t),e.parent.flags):void 0}default:return I.assertNever(e,`Unexpected import kind ${e.kind}`)}}function z5t(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let n=e.elements.filter(i=>t(i.name));return n.length?j.createNamedImports(n):void 0}}function W5t(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let n=e.elements.filter(i=>i.propertyName||!Ye(i.name)||t(i.name));return n.length?j.createObjectBindingPattern(n):void 0}}}function U5t(e){return Zu(e)?_i(e.expression.left.name,Ye):_i(e.name,Ye)}function Kze(e){switch(e.kind){case 260:return e.parent.parent;case 208:return Kze(Js(e.parent.parent,t=>Ui(t)||Do(t)));default:return e}}function $5t(e,t,n,i,s){if(!Vze(e,t,s,n))if(s)Zu(t)||i.insertExportModifier(e,t);else{let l=Nxe(t);l.length!==0&&i.insertNodesAfter(e,t,l.map(Gze))}}function Axe(e,t,n,i){let s=t.getTypeChecker();if(i){let l=HU(e,i.all,s),p=Ei(e.fileName),g=I4(e.fileName);return gi(p,K5t(Q5t(l.oldFileImportsFromTargetFile,l.movedSymbols),g,p,n))+g}return""}function V5t(e){let{file:t}=e,n=hU($E(e)),{statements:i}=t,s=Va(i,x=>x.end>n.pos);if(s===-1)return;let l=i[s],p=Zze(t,l);p&&(s=p.start);let g=Va(i,x=>x.end>=n.end,s);g!==-1&&n.end<=i[g].getStart()&&g--;let m=Zze(t,i[g]);return m&&(g=m.end),{toMove:i.slice(s,g===-1?i.length:g+1),afterLast:g===-1?void 0:i[g+1]}}function FR(e){let t=V5t(e);if(t===void 0)return;let n=[],i=[],{toMove:s,afterLast:l}=t;return gP(s,H5t,(p,g)=>{for(let m=p;m<g;m++)n.push(s[m]);i.push({first:s[p],afterLast:l})}),n.length===0?void 0:{all:n,ranges:i}}function Ixe(e){return Ir(e,t=>!!(t.transformFlags&2))}function H5t(e){return!G5t(e)&&!Ph(e)}function G5t(e){switch(e.kind){case 272:return!0;case 271:return!Ai(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Xf(t.initializer,!0));default:return!1}}function HU(e,t,n,i=new Set,s){var l;let p=new Set,g=new Map,m=new Map,x=P(Ixe(t));x&&g.set(x,[!1,_i((l=x.declarations)==null?void 0:l[0],E=>bf(E)||vg(E)||jv(E)||zu(E)||Do(E)||Ui(E))]);for(let E of t)Mxe(E,N=>{p.add(I.checkDefined(Zu(N)?n.getSymbolAtLocation(N.expression.left):N.symbol,"Need a symbol here"))});let b=new Set;for(let E of t)Fxe(E,n,s,(N,F)=>{if(!Pt(N.declarations))return;if(i.has(Tp(N,n))){b.add(N);return}let M=Ir(N.declarations,Wre);if(M){let L=g.get(N);g.set(N,[(L===void 0||L)&&F,_i(M,W=>bf(W)||vg(W)||jv(W)||zu(W)||Do(W)||Ui(W))])}else!p.has(N)&&sn(N.declarations,L=>Rxe(L)&&X5t(L)===e)&&m.set(N,F)});for(let E of g.keys())b.add(E);let S=new Map;for(let E of e.statements)Ta(t,E)||(x&&E.transformFlags&2&&b.delete(x),Fxe(E,n,s,(N,F)=>{p.has(N)&&S.set(N,F),b.delete(N)}));return{movedSymbols:p,targetFileImportsFromOldFile:m,oldFileImportsFromTargetFile:S,oldImportsNeededByTargetFile:g,unusedImportsFromOldFile:b};function P(E){if(E===void 0)return;let N=n.getJsxNamespace(E),F=n.resolveName(N,E,1920,!0);return F&&Pt(F.declarations,Wre)?F:void 0}}function K5t(e,t,n,i){let s=e;for(let l=1;;l++){let p=gi(n,s+t);if(!i.fileExists(p))return s;s=`${e}.${l}`}}function Q5t(e,t){return wv(e,Wte)||wv(t,Wte)||"newFile"}function Fxe(e,t,n,i){e.forEachChild(function s(l){if(Ye(l)&&!Ny(l)){if(n&&!Zf(n,l))return;let p=t.getSymbolAtLocation(l);p&&i(p,AS(l))}else l.forEachChild(s)})}function Mxe(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return jr(e.declarationList.declarations,n=>Xze(n.name,t));case 244:{let{expression:n}=e;return Vn(n)&&$l(n)===1?t(e):void 0}}}function Wre(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return Qze(e);case 208:return Ui(e.parent.parent)&&Qze(e.parent.parent);default:return!1}}function Qze(e){return ba(e.parent.parent.parent)&&!!e.initializer&&Xf(e.initializer,!0)}function Rxe(e){return Yze(e)&&ba(e.parent)||Ui(e)&&ba(e.parent.parent.parent)}function X5t(e){return Ui(e)?e.parent.parent.parent:e.parent}function Xze(e,t){switch(e.kind){case 80:return t(Js(e.parent,n=>Ui(n)||Do(n)));case 207:case 206:return jr(e.elements,n=>Ju(n)?void 0:Xze(n.name,t));default:return I.assertNever(e,`Unexpected name kind ${e.kind}`)}}function Yze(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function Y5t(e,t,n,i,s){var l;let p=new Set,g=(l=i.symbol)==null?void 0:l.exports;if(g){let x=t.getTypeChecker(),b=new Map;for(let S of s.all)Hze(S)&&Ai(S,32)&&Mxe(S,P=>{var E;let N=qg(P)?(E=g.get(P.symbol.escapedName))==null?void 0:E.declarations:void 0,F=jr(N,M=>tu(M)?M:Yp(M)?_i(M.parent.parent,tu):void 0);F&&F.moduleSpecifier&&b.set(F,(b.get(F)||new Set).add(P))});for(let[S,P]of Ka(b))if(S.exportClause&&hm(S.exportClause)&&Re(S.exportClause.elements)){let E=S.exportClause.elements,N=Cn(E,F=>Ir(Tp(F.symbol,x).declarations,M=>Rxe(M)&&P.has(M))===void 0);if(Re(N)===0){e.deleteNode(i,S),p.add(S);continue}Re(N)<Re(E)&&e.replaceNode(i,S,j.updateExportDeclaration(S,S.modifiers,S.isTypeOnly,j.updateNamedExports(S.exportClause,j.createNodeArray(N,E.hasTrailingComma)),S.moduleSpecifier,S.attributes))}}let m=Ks(i.statements,x=>tu(x)&&!!x.moduleSpecifier&&!p.has(x));m?e.insertNodesBefore(i,m,n,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],n)}function Zze(e,t){if(Dc(t)){let n=t.symbol.declarations;if(n===void 0||Re(n)<=1||!Ta(n,t))return;let i=n[0],s=n[Re(n)-1],l=Bi(n,m=>rn(m)===e&&fa(m)?m:void 0),p=Va(e.statements,m=>m.end>=s.end),g=Va(e.statements,m=>m.end>=i.end);return{toMove:l,start:g,end:p}}}function jxe(e,t,n){let i=new Set;for(let s of e.imports){let l=u4(s);if(sl(l)&&l.importClause&&l.importClause.namedBindings&&Bh(l.importClause.namedBindings))for(let p of l.importClause.namedBindings.elements){let g=n.getSymbolAtLocation(p.propertyName||p.name);g&&i.add(Tp(g,n))}if(a5(l.parent)&&Nd(l.parent.name))for(let p of l.parent.name.elements){let g=n.getSymbolAtLocation(p.propertyName||p.name);g&&i.add(Tp(g,n))}}for(let s of t)Fxe(s,n,void 0,l=>{let p=Tp(l,n);p.valueDeclaration&&rn(p.valueDeclaration).path===e.path&&i.add(p)});return i}function q0(e){return e.error!==void 0}function rT(e,t){return t?e.substr(0,t.length)===t:!0}function Lxe(e,t,n,i){return ai(e)&&!Ri(t)&&!n.resolveName(e.name.text,e,111551,!1)&&!Ca(e.name)&&!mk(e.name)?e.name.text:oC(Ri(t)?"newProperty":"newLocal",i)}function Bxe(e,t,n,i,s,l){t.forEach(([p,g],m)=>{var x;let b=Tp(m,i);i.isUnknownSymbol(b)?l.addVerbatimImport(I.checkDefined(g??Br((x=m.declarations)==null?void 0:x[0],Yde))):b.parent===void 0?(I.assert(g!==void 0,"expected module symbol to have a declaration"),l.addImportForModuleSymbol(m,p,g)):l.addImportFromExportedSymbol(b,p,g)}),Oxe(n,e.fileName,l,s)}var GU="Inline variable",qxe=gs(y.Inline_variable),Jxe={name:GU,description:qxe,kind:"refactor.inline.variable"};qv(GU,{kinds:[Jxe.kind],getAvailableActions(e){let{file:t,program:n,preferences:i,startPosition:s,triggerReason:l}=e,p=eWe(t,s,l==="invoked",n);return p?GE.isRefactorErrorInfo(p)?i.provideRefactorNotApplicableReason?[{name:GU,description:qxe,actions:[{...Jxe,notApplicableReason:p.error}]}]:ce:[{name:GU,description:qxe,actions:[Jxe]}]:ce},getEditsForAction(e,t){I.assert(t===GU,"Unexpected refactor invoked");let{file:n,program:i,startPosition:s}=e,l=eWe(n,s,!0,i);if(!l||GE.isRefactorErrorInfo(l))return;let{references:p,declaration:g,replacement:m}=l;return{edits:Ln.ChangeTracker.with(e,b=>{for(let S of p){let P=vo(m)&&Ye(S)&&gg(S.parent);P&&FN(P)&&!RS(P.parent.parent)?eMt(b,n,P,m):b.replaceNode(n,S,Z5t(S,m))}b.delete(n,g)})}}});function eWe(e,t,n,i){var s,l;let p=i.getTypeChecker(),g=r_(e,t),m=g.parent;if(Ye(g)){if(R5(m)&&i4(m)&&Ye(m.name)){if(((s=p.getMergedSymbol(m.symbol).declarations)==null?void 0:s.length)!==1)return{error:gs(y.Variables_with_multiple_declarations_cannot_be_inlined)};if(tWe(m))return;let x=rWe(m,p,e);return x&&{references:x,declaration:m,replacement:m.initializer}}if(n){let x=p.resolveName(g.text,g,111551,!1);if(x=x&&p.getMergedSymbol(x),((l=x?.declarations)==null?void 0:l.length)!==1)return{error:gs(y.Variables_with_multiple_declarations_cannot_be_inlined)};let b=x.declarations[0];if(!R5(b)||!i4(b)||!Ye(b.name)||tWe(b))return;let S=rWe(b,p,e);return S&&{references:S,declaration:b,replacement:b.initializer}}return{error:gs(y.Could_not_find_variable_to_inline)}}}function tWe(e){let t=Js(e.parent.parent,Rl);return Pt(t.modifiers,vE)}function rWe(e,t,n){let i=[],s=qc.Core.eachSymbolReferenceInFile(e.name,t,n,l=>{if(qc.isWriteAccessForReference(l)&&!Jp(l.parent)||Yp(l.parent)||Gc(l.parent)||M2(l.parent)||SF(e,l.pos))return!0;i.push(l)});return i.length===0||s?void 0:i}function Z5t(e,t){t=tc(t);let{parent:n}=e;return At(n)&&(h4(t)<h4(n)||CU(n))||Ss(t)&&(_2(n)||ai(n))||ai(n)&&(e_(t)||So(t))?j.createParenthesizedExpression(t):Ye(e)&&Jp(n)?j.createPropertyAssignment(e,t):t}function eMt(e,t,n,i){let s=n.parent,l=s.templateSpans.indexOf(n),p=l===0?s.head:s.templateSpans[l-1];e.replaceRangeWithText(t,{pos:p.getEnd()-2,end:n.literal.getStart()+1},i.text.replace(/\\/g,"\\\\").replace(/`/g,"\\`"))}var KU="Move to a new file",zxe=gs(y.Move_to_a_new_file),Wxe={name:KU,description:zxe,kind:"refactor.move.newFile"};qv(KU,{kinds:[Wxe.kind],getAvailableActions:function(t){let n=FR(t),i=t.file;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let s=Br(ca(i,t.startPosition),VE),l=Br(ca(i,t.endPosition),VE);if(s&&!ba(s)&&l&&!ba(l))return ce}if(t.preferences.allowTextChangesInNewFiles&&n){let s=t.file,l={start:{line:$s(s,n.all[0].getStart(s)).line,offset:$s(s,n.all[0].getStart(s)).character},end:{line:$s(s,ao(n.all).end).line,offset:$s(s,ao(n.all).end).character}};return[{name:KU,description:zxe,actions:[{...Wxe,range:l}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:KU,description:zxe,actions:[{...Wxe,notApplicableReason:gs(y.Selection_is_not_a_valid_statement_or_statements)}]}]:ce},getEditsForAction:function(t,n){I.assert(n===KU,"Wrong refactor invoked");let i=I.checkDefined(FR(t));return{edits:Ln.ChangeTracker.with(t,l=>tMt(t.file,t.program,i,l,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function tMt(e,t,n,i,s,l,p){let g=t.getTypeChecker(),m=HU(e,n.all,g),x=Axe(e,t,s,n),b=BU(x,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,s),S=rf.createImportAdder(e,l.program,l.preferences,l.host),P=rf.createImportAdder(b,l.program,l.preferences,l.host);Pxe(e,b,m,i,n,t,s,p,P,S),Exe(t,i,e.fileName,x,D0(s))}var rMt={},Uxe="Convert overload list to single signature",nWe=gs(y.Convert_overload_list_to_single_signature),iWe={name:Uxe,description:nWe,kind:"refactor.rewrite.function.overloadList"};qv(Uxe,{kinds:[iWe.kind],getEditsForAction:iMt,getAvailableActions:nMt});function nMt(e){let{file:t,startPosition:n,program:i}=e;return sWe(t,n,i)?[{name:Uxe,description:nWe,actions:[iWe]}]:ce}function iMt(e){let{file:t,startPosition:n,program:i}=e,s=sWe(t,n,i);if(!s)return;let l=i.getTypeChecker(),p=s[s.length-1],g=p;switch(p.kind){case 173:{g=j.updateMethodSignature(p,p.modifiers,p.name,p.questionToken,p.typeParameters,x(s),p.type);break}case 174:{g=j.updateMethodDeclaration(p,p.modifiers,p.asteriskToken,p.name,p.questionToken,p.typeParameters,x(s),p.type,p.body);break}case 179:{g=j.updateCallSignature(p,p.typeParameters,x(s),p.type);break}case 176:{g=j.updateConstructorDeclaration(p,p.modifiers,x(s),p.body);break}case 180:{g=j.updateConstructSignature(p,p.typeParameters,x(s),p.type);break}case 262:{g=j.updateFunctionDeclaration(p,p.modifiers,p.asteriskToken,p.name,p.typeParameters,x(s),p.type,p.body);break}default:return I.failBadSyntaxKind(p,"Unhandled signature kind in overload list conversion refactoring")}if(g===p)return;return{renameFilename:void 0,renameLocation:void 0,edits:Ln.ChangeTracker.with(e,P=>{P.replaceNodeRange(t,s[0],s[s.length-1],g)})};function x(P){let E=P[P.length-1];return Dc(E)&&E.body&&(P=P.slice(0,P.length-1)),j.createNodeArray([j.createParameterDeclaration(void 0,j.createToken(26),"args",void 0,j.createUnionTypeNode(Dt(P,b)))])}function b(P){let E=Dt(P.parameters,S);return qn(j.createTupleTypeNode(E),Pt(E,N=>!!Re(EN(N)))?0:1)}function S(P){I.assert(Ye(P.name));let E=Ot(j.createNamedTupleMember(P.dotDotDotToken,P.name,P.questionToken,P.type||j.createKeywordTypeNode(133)),P),N=P.symbol&&P.symbol.getDocumentationComment(l);if(N){let F=jR(N);F.length&&FS(E,[{text:`*
|
|
${F.split(`
|
|
`).map(M=>` * ${M}`).join(`
|
|
`)}
|
|
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return E}}function aWe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function sWe(e,t,n){let i=ca(e,t),s=Br(i,aWe);if(!s||Dc(s)&&s.body&&uA(s.body,t))return;let l=n.getTypeChecker(),p=s.symbol;if(!p)return;let g=p.declarations;if(Re(g)<=1||!sn(g,P=>rn(P)===e)||!aWe(g[0]))return;let m=g[0].kind;if(!sn(g,P=>P.kind===m))return;let x=g;if(Pt(x,P=>!!P.typeParameters||Pt(P.parameters,E=>!!E.modifiers||!Ye(E.name))))return;let b=Bi(x,P=>l.getSignatureFromDeclaration(P));if(Re(b)!==Re(g))return;let S=l.getReturnTypeOfSignature(b[0]);if(sn(b,P=>l.getReturnTypeOfSignature(P)===S))return x}var $xe="Add or remove braces in an arrow function",oWe=gs(y.Add_or_remove_braces_in_an_arrow_function),Ure={name:"Add braces to arrow function",description:gs(y.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},QU={name:"Remove braces from arrow function",description:gs(y.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};qv($xe,{kinds:[QU.kind],getEditsForAction:sMt,getAvailableActions:aMt});function aMt(e){let{file:t,startPosition:n,triggerReason:i}=e,s=cWe(t,n,i==="invoked");return s?q0(s)?e.preferences.provideRefactorNotApplicableReason?[{name:$xe,description:oWe,actions:[{...Ure,notApplicableReason:s.error},{...QU,notApplicableReason:s.error}]}]:ce:[{name:$xe,description:oWe,actions:[s.addBraces?Ure:QU]}]:ce}function sMt(e,t){let{file:n,startPosition:i}=e,s=cWe(n,i);I.assert(s&&!q0(s),"Expected applicable refactor info");let{expression:l,returnStatement:p,func:g}=s,m;if(t===Ure.name){let b=j.createReturnStatement(l);m=j.createBlock([b],!0),gA(l,b,n,3,!0)}else if(t===QU.name&&p){let b=l||j.createVoidZero();m=CU(b)?j.createParenthesizedExpression(b):b,wR(p,m,n,3,!1),gA(p,m,n,3,!1),W3(p,m,n,3,!1)}else I.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Ln.ChangeTracker.with(e,b=>{b.replaceNode(n,g.body,m)})}}function cWe(e,t,n=!0,i){let s=ca(e,t),l=Ed(s);if(!l)return{error:gs(y.Could_not_find_a_containing_arrow_function)};if(!Bc(l))return{error:gs(y.Containing_function_is_not_an_arrow_function)};if(!(!Zf(l,s)||Zf(l.body,s)&&!n)){if(rT(Ure.kind,i)&&At(l.body))return{func:l,addBraces:!0,expression:l.body};if(rT(QU.kind,i)&&Cs(l.body)&&l.body.statements.length===1){let p=ho(l.body.statements);if(md(p)){let g=p.expression&&So(SN(p.expression,!1))?j.createParenthesizedExpression(p.expression):p.expression;return{func:l,addBraces:!1,expression:g,returnStatement:p}}}}}var oMt={},lWe="Convert arrow function or function expression",cMt=gs(y.Convert_arrow_function_or_function_expression),XU={name:"Convert to anonymous function",description:gs(y.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},YU={name:"Convert to named function",description:gs(y.Convert_to_named_function),kind:"refactor.rewrite.function.named"},ZU={name:"Convert to arrow function",description:gs(y.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};qv(lWe,{kinds:[XU.kind,YU.kind,ZU.kind],getEditsForAction:uMt,getAvailableActions:lMt});function lMt(e){let{file:t,startPosition:n,program:i,kind:s}=e,l=pWe(t,n,i);if(!l)return ce;let{selectedVariableDeclaration:p,func:g}=l,m=[],x=[];if(rT(YU.kind,s)){let b=p||Bc(g)&&Ui(g.parent)?void 0:gs(y.Could_not_convert_to_named_function);b?x.push({...YU,notApplicableReason:b}):m.push(YU)}if(rT(XU.kind,s)){let b=!p&&Bc(g)?void 0:gs(y.Could_not_convert_to_anonymous_function);b?x.push({...XU,notApplicableReason:b}):m.push(XU)}if(rT(ZU.kind,s)){let b=Ic(g)?void 0:gs(y.Could_not_convert_to_arrow_function);b?x.push({...ZU,notApplicableReason:b}):m.push(ZU)}return[{name:lWe,description:cMt,actions:m.length===0&&e.preferences.provideRefactorNotApplicableReason?x:m}]}function uMt(e,t){let{file:n,startPosition:i,program:s}=e,l=pWe(n,i,s);if(!l)return;let{func:p}=l,g=[];switch(t){case XU.name:g.push(...dMt(e,p));break;case YU.name:let m=_Mt(p);if(!m)return;g.push(...mMt(e,p,m));break;case ZU.name:if(!Ic(p))return;g.push(...gMt(e,p));break;default:return I.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:g}}function uWe(e){let t=!1;return e.forEachChild(function n(i){if(lA(i)){t=!0;return}!Ri(i)&&!jl(i)&&!Ic(i)&&xs(i,n)}),t}function pWe(e,t,n){let i=ca(e,t),s=n.getTypeChecker(),l=fMt(e,s,i.parent);if(l&&!uWe(l.body)&&!s.containsArgumentsReference(l))return{selectedVariableDeclaration:!0,func:l};let p=Ed(i);if(p&&(Ic(p)||Bc(p))&&!Zf(p.body,i)&&!uWe(p.body)&&!s.containsArgumentsReference(p))return Ic(p)&&_We(e,s,p)?void 0:{selectedVariableDeclaration:!1,func:p}}function pMt(e){return Ui(e)||mp(e)&&e.declarations.length===1}function fMt(e,t,n){if(!pMt(n))return;let s=(Ui(n)?n:ho(n.declarations)).initializer;if(s&&(Bc(s)||Ic(s)&&!_We(e,t,s)))return s}function fWe(e){if(At(e)){let t=j.createReturnStatement(e),n=e.getSourceFile();return Ot(t,e),K_(t),wR(e,t,n,void 0,!0),j.createBlock([t],!0)}else return e}function _Mt(e){let t=e.parent;if(!Ui(t)||!i4(t))return;let n=t.parent,i=n.parent;if(!(!mp(n)||!Rl(i)||!Ye(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function dMt(e,t){let{file:n}=e,i=fWe(t.body),s=j.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return Ln.ChangeTracker.with(e,l=>l.replaceNode(n,t,s))}function mMt(e,t,n){let{file:i}=e,s=fWe(t.body),{variableDeclaration:l,variableDeclarationList:p,statement:g,name:m}=n;rre(g);let x=bS(l)&32|gf(t),b=j.createModifiersFromModifierFlags(x),S=j.createFunctionDeclaration(Re(b)?b:void 0,t.asteriskToken,m,t.typeParameters,t.parameters,t.type,s);return p.declarations.length===1?Ln.ChangeTracker.with(e,P=>P.replaceNode(i,g,S)):Ln.ChangeTracker.with(e,P=>{P.delete(i,l),P.insertNodeAfter(i,g,S)})}function gMt(e,t){let{file:n}=e,s=t.body.statements[0],l;hMt(t.body,s)?(l=s.expression,K_(l),sC(s,l)):l=t.body;let p=j.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,j.createToken(39),l);return Ln.ChangeTracker.with(e,g=>g.replaceNode(n,t,p))}function hMt(e,t){return e.statements.length===1&&md(t)&&!!t.expression}function _We(e,t,n){return!!n.name&&qc.Core.isSymbolReferencedInFile(n.name,t,e)}var yMt={},$re="Convert parameters to destructured object",vMt=1,dWe=gs(y.Convert_parameters_to_destructured_object),mWe={name:$re,description:dWe,kind:"refactor.rewrite.parameters.toDestructured"};qv($re,{kinds:[mWe.kind],getEditsForAction:xMt,getAvailableActions:bMt});function bMt(e){let{file:t,startPosition:n}=e;return Nf(t)||!yWe(t,n,e.program.getTypeChecker())?ce:[{name:$re,description:dWe,actions:[mWe]}]}function xMt(e,t){I.assert(t===$re,"Unexpected action name");let{file:n,startPosition:i,program:s,cancellationToken:l,host:p}=e,g=yWe(n,i,s.getTypeChecker());if(!g||!l)return;let m=TMt(g,s,l);return m.valid?{renameFilename:void 0,renameLocation:void 0,edits:Ln.ChangeTracker.with(e,b=>SMt(n,s,p,b,g,m))}:{edits:[]}}function SMt(e,t,n,i,s,l){let p=l.signature,g=Dt(SWe(s,t,n),b=>tc(b));if(p){let b=Dt(SWe(p,t,n),S=>tc(S));x(p,b)}x(s,g);let m=hP(l.functionCalls,(b,S)=>mc(b.pos,S.pos));for(let b of m)if(b.arguments&&b.arguments.length){let S=tc(IMt(s,b.arguments),!0);i.replaceNodeRange(rn(b),ho(b.arguments),ao(b.arguments),S,{leadingTriviaOption:Ln.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Ln.TrailingTriviaOption.Include})}function x(b,S){i.replaceNodeRangeWithNodes(e,ho(b.parameters),ao(b.parameters),S,{joiner:", ",indentation:0,leadingTriviaOption:Ln.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Ln.TrailingTriviaOption.Include})}}function TMt(e,t,n){let i=MMt(e),s=ul(e)?FMt(e):[],l=zb([...i,...s],pv),p=t.getTypeChecker(),g=li(l,S=>qc.getReferenceEntriesForNode(-1,S,t,t.getSourceFiles(),n)),m=x(g);return sn(m.declarations,S=>Ta(l,S))||(m.valid=!1),m;function x(S){let P={accessExpressions:[],typeUsages:[]},E={functionCalls:[],declarations:[],classReferences:P,valid:!0},N=Dt(i,b),F=Dt(s,b),M=ul(e),L=Dt(i,W=>Vxe(W,p));for(let W of S){if(W.kind===qc.EntryKind.Span){E.valid=!1;continue}if(Ta(L,b(W.node))){if(PMt(W.node.parent)){E.signature=W.node.parent;continue}let H=hWe(W);if(H){E.functionCalls.push(H);continue}}let z=Vxe(W.node,p);if(z&&Ta(L,z)){let H=Hxe(W);if(H){E.declarations.push(H);continue}}if(Ta(N,b(W.node))||F3(W.node)){if(gWe(W))continue;let X=Hxe(W);if(X){E.declarations.push(X);continue}let ne=hWe(W);if(ne){E.functionCalls.push(ne);continue}}if(M&&Ta(F,b(W.node))){if(gWe(W))continue;let X=Hxe(W);if(X){E.declarations.push(X);continue}let ne=wMt(W);if(ne){P.accessExpressions.push(ne);continue}if(bu(e.parent)){let ae=kMt(W);if(ae){P.typeUsages.push(ae);continue}}}E.valid=!1}return E}function b(S){let P=p.getSymbolAtLocation(S);return P&&ere(P,p)}}function Vxe(e,t){let n=LR(e);if(n){let i=t.getContextualTypeForObjectLiteralElement(n),s=i?.getSymbol();if(s&&!(Tl(s)&6))return s}}function gWe(e){let t=e.node;if(bf(t.parent)||vg(t.parent)||zu(t.parent)||jv(t.parent)||Yp(t.parent)||Gc(t.parent))return t}function Hxe(e){if(Ku(e.node.parent))return e.node}function hWe(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 213:case 214:let i=_i(n,wh);if(i&&i.expression===t)return i;break;case 211:let s=_i(n,ai);if(s&&s.parent&&s.name===t){let p=_i(s.parent,wh);if(p&&p.expression===s)return p}break;case 212:let l=_i(n,Nc);if(l&&l.parent&&l.argumentExpression===t){let p=_i(l.parent,wh);if(p&&p.expression===l)return p}break}}}function wMt(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 211:let i=_i(n,ai);if(i&&i.expression===t)return i;break;case 212:let s=_i(n,Nc);if(s&&s.expression===t)return s;break}}}function kMt(e){let t=e.node;if(iC(t)===2||xJ(t.parent))return t}function yWe(e,t,n){let i=pA(e,t),s=mme(i);if(!CMt(i)&&s&&EMt(s,n)&&Zf(s,i)&&!(s.body&&Zf(s.body,i)))return s}function CMt(e){let t=Br(e,YO);if(t){let n=Br(t,i=>!YO(i));return!!n&&Dc(n)}return!1}function PMt(e){return yg(e)&&(Cp(e.parent)||Ff(e.parent))}function EMt(e,t){var n;if(!DMt(e.parameters,t))return!1;switch(e.kind){case 262:return vWe(e)&&e$(e,t);case 174:if(So(e.parent)){let i=Vxe(e.name,t);return((n=i?.declarations)==null?void 0:n.length)===1&&e$(e,t)}return e$(e,t);case 176:return bu(e.parent)?vWe(e.parent)&&e$(e,t):bWe(e.parent.parent)&&e$(e,t);case 218:case 219:return bWe(e.parent)}return!1}function e$(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function vWe(e){return e.name?!0:!!_A(e,90)}function DMt(e,t){return NMt(e)>=vMt&&sn(e,n=>OMt(n,t))}function OMt(e,t){if(Ey(e)){let n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Ye(e.name)}function bWe(e){return Ui(e)&&iN(e)&&Ye(e.name)&&!e.type}function Gxe(e){return e.length>0&&lA(e[0].name)}function NMt(e){return Gxe(e)?e.length-1:e.length}function xWe(e){return Gxe(e)&&(e=j.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function AMt(e,t){return Ye(t)&&lm(t)===e?j.createShorthandPropertyAssignment(e):j.createPropertyAssignment(e,t)}function IMt(e,t){let n=xWe(e.parameters),i=Ey(ao(n)),s=i?t.slice(0,n.length-1):t,l=Dt(s,(g,m)=>{let x=Vre(n[m]),b=AMt(x,g);return K_(b.name),xu(b)&&K_(b.initializer),sC(g,b),b});if(i&&t.length>=n.length){let g=t.slice(n.length-1),m=j.createPropertyAssignment(Vre(ao(n)),j.createArrayLiteralExpression(g));l.push(m)}return j.createObjectLiteralExpression(l,!1)}function SWe(e,t,n){let i=t.getTypeChecker(),s=xWe(e.parameters),l=Dt(s,b),p=j.createObjectBindingPattern(l),g=S(s),m;sn(s,N)&&(m=j.createObjectLiteralExpression());let x=j.createParameterDeclaration(void 0,void 0,p,void 0,g,m);if(Gxe(e.parameters)){let F=e.parameters[0],M=j.createParameterDeclaration(void 0,void 0,F.name,void 0,F.type);return K_(M.name),sC(F.name,M.name),F.type&&(K_(M.type),sC(F.type,M.type)),j.createNodeArray([M,x])}return j.createNodeArray([x]);function b(F){let M=j.createBindingElement(void 0,void 0,Vre(F),Ey(F)&&N(F)?j.createArrayLiteralExpression():F.initializer);return K_(M),F.initializer&&M.initializer&&sC(F.initializer,M.initializer),M}function S(F){let M=Dt(F,P);return Mh(j.createTypeLiteralNode(M),1)}function P(F){let M=F.type;!M&&(F.initializer||Ey(F))&&(M=E(F));let L=j.createPropertySignature(void 0,Vre(F),N(F)?j.createToken(58):F.questionToken,M);return K_(L),sC(F.name,L.name),F.type&&L.type&&sC(F.type,L.type),L}function E(F){let M=i.getTypeAtLocation(F);return $3(M,F,t,n)}function N(F){if(Ey(F)){let M=i.getTypeAtLocation(F);return!i.isTupleType(M)}return i.isOptionalParameter(F)}}function Vre(e){return lm(e.name)}function FMt(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[I.checkDefined(_A(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,s=e.parent.parent,l=i.name;return l?[l,s.name]:[s.name]}}function MMt(e){switch(e.kind){case 262:return e.name?[e.name]:[I.checkDefined(_A(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let n=I.checkDefined(gc(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,n]:[n];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return I.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var RMt={},Kxe="Convert to template string",Qxe=gs(y.Convert_to_template_string),Xxe={name:Kxe,description:Qxe,kind:"refactor.rewrite.string"};qv(Kxe,{kinds:[Xxe.kind],getEditsForAction:LMt,getAvailableActions:jMt});function jMt(e){let{file:t,startPosition:n}=e,i=TWe(t,n),s=Yxe(i),l=vo(s),p={name:Kxe,description:Qxe,actions:[]};return l&&e.triggerReason!=="invoked"?ce:zg(s)&&(l||Vn(s)&&Zxe(s).isValidConcatenation)?(p.actions.push(Xxe),[p]):e.preferences.provideRefactorNotApplicableReason?(p.actions.push({...Xxe,notApplicableReason:gs(y.Can_only_convert_string_concatenations_and_string_literals)}),[p]):ce}function TWe(e,t){let n=ca(e,t),i=Yxe(n);return!Zxe(i).isValidConcatenation&&Mf(i.parent)&&Vn(i.parent.parent)?i.parent.parent:n}function LMt(e,t){let{file:n,startPosition:i}=e,s=TWe(n,i);switch(t){case Qxe:return{edits:BMt(e,s)};default:return I.fail("invalid action")}}function BMt(e,t){let n=Yxe(t),i=e.file,s=UMt(Zxe(n),i),l=ex(i.text,n.end);if(l){let p=l[l.length-1],g={pos:l[0].pos,end:p.end};return Ln.ChangeTracker.with(e,m=>{m.deleteRange(i,g),m.replaceNode(i,n,s)})}else return Ln.ChangeTracker.with(e,p=>p.replaceNode(i,n,s))}function qMt(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Yxe(e){return Br(e.parent,n=>{switch(n.kind){case 211:case 212:return!1;case 228:case 226:return!(Vn(n.parent)&&qMt(n.parent));default:return"quit"}})||e}function Zxe(e){let t=p=>{if(!Vn(p))return{nodes:[p],operators:[],validOperators:!0,hasString:vo(p)||Bk(p)};let{nodes:g,operators:m,hasString:x,validOperators:b}=t(p.left);if(!(x||vo(p.right)||vz(p.right)))return{nodes:[p],operators:[],hasString:!1,validOperators:!0};let S=p.operatorToken.kind===40,P=b&&S;return g.push(p.right),m.push(p.operatorToken),{nodes:g,operators:m,hasString:!0,validOperators:P}},{nodes:n,operators:i,validOperators:s,hasString:l}=t(e);return{nodes:n,operators:i,isValidConcatenation:s&&l}}var JMt=(e,t)=>(n,i)=>{n<e.length&&W3(e[n],i,t,3,!1)},zMt=(e,t,n)=>(i,s)=>{for(;i.length>0;){let l=i.shift();W3(e[l],s,t,3,!1),n(l,s)}};function WMt(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function wWe(e){let t=yE(e)||oY(e)?-2:-1;return cl(e).slice(1,t)}function kWe(e,t){let n=[],i="",s="";for(;e<t.length;){let l=t[e];if(Ho(l))i+=l.text,s+=WMt(cl(l).slice(1,-1)),n.push(e),e++;else if(vz(l)){i+=l.head.text,s+=wWe(l.head);break}else break}return[e,i,s,n]}function UMt({nodes:e,operators:t},n){let i=JMt(t,n),s=zMt(e,n,i),[l,p,g,m]=kWe(0,e);if(l===e.length){let S=j.createNoSubstitutionTemplateLiteral(p,g);return s(m,S),S}let x=[],b=j.createTemplateHead(p,g);s(m,b);for(let S=l;S<e.length;S++){let P=$Mt(e[S]);i(S,P);let[E,N,F,M]=kWe(S+1,e);S=E-1;let L=S===e.length-1;if(vz(P)){let W=Dt(P.templateSpans,(z,H)=>{CWe(z);let X=H===P.templateSpans.length-1,ne=z.literal.text+(X?N:""),ae=wWe(z.literal)+(X?F:"");return j.createTemplateSpan(z.expression,L&&X?j.createTemplateTail(ne,ae):j.createTemplateMiddle(ne,ae))});x.push(...W)}else{let W=L?j.createTemplateTail(N,F):j.createTemplateMiddle(N,F);s(M,W),x.push(j.createTemplateSpan(P,W))}}return j.createTemplateExpression(b,x)}function CWe(e){let t=e.getSourceFile();W3(e,e.expression,t,3,!1),wR(e.expression,e.expression,t,3,!1)}function $Mt(e){return Mf(e)&&(CWe(e),e=e.expression),e}var VMt={},Hre="Convert to optional chain expression",eSe=gs(y.Convert_to_optional_chain_expression),tSe={name:Hre,description:eSe,kind:"refactor.rewrite.expression.optionalChain"};qv(Hre,{kinds:[tSe.kind],getEditsForAction:GMt,getAvailableActions:HMt});function HMt(e){let t=PWe(e,e.triggerReason==="invoked");return t?q0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Hre,description:eSe,actions:[{...tSe,notApplicableReason:t.error}]}]:ce:[{name:Hre,description:eSe,actions:[tSe]}]:ce}function GMt(e,t){let n=PWe(e);return I.assert(n&&!q0(n),"Expected applicable refactor info"),{edits:Ln.ChangeTracker.with(e,s=>rRt(e.file,e.program.getTypeChecker(),s,n,t)),renameFilename:void 0,renameLocation:void 0}}function Gre(e){return Vn(e)||Wk(e)}function KMt(e){return Zu(e)||md(e)||Rl(e)}function Kre(e){return Gre(e)||KMt(e)}function PWe(e,t=!0){let{file:n,program:i}=e,s=$E(e),l=s.length===0;if(l&&!t)return;let p=ca(n,s.start),g=R3(n,s.start+s.length),m=Ul(p.pos,g&&g.end>=p.pos?g.getEnd():p.getEnd()),x=l?eRt(p):ZMt(p,m),b=x&&Kre(x)?tRt(x):void 0;if(!b)return{error:gs(y.Could_not_find_convertible_access_expression)};let S=i.getTypeChecker();return Wk(b)?QMt(b,S):XMt(b)}function QMt(e,t){let n=e.condition,i=nSe(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:gs(y.Could_not_find_convertible_access_expression)};if((ai(n)||Ye(n))&&rSe(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(Vn(n)){let s=EWe(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:gs(y.Could_not_find_matching_access_expressions)}}}function XMt(e){if(e.operatorToken.kind!==56)return{error:gs(y.Can_only_convert_logical_AND_access_chains)};let t=nSe(e.right);if(!t)return{error:gs(y.Could_not_find_convertible_access_expression)};let n=EWe(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:gs(y.Could_not_find_matching_access_expressions)}}function EWe(e,t){let n=[];for(;Vn(t)&&t.operatorToken.kind===56;){let s=rSe(Qo(e),Qo(t.right));if(!s)break;n.push(s),e=s,t=t.left}let i=rSe(e,t);return i&&n.push(i),n.length>0?n:void 0}function rSe(e,t){if(!(!Ye(t)&&!ai(t)&&!Nc(t)))return YMt(e,t)?t:void 0}function YMt(e,t){for(;(Ls(e)||ai(e)||Nc(e))&&MR(e)!==MR(t);)e=e.expression;for(;ai(e)&&ai(t)||Nc(e)&&Nc(t);){if(MR(e)!==MR(t))return!1;e=e.expression,t=t.expression}return Ye(e)&&Ye(t)&&e.getText()===t.getText()}function MR(e){if(Ye(e)||Dd(e))return e.getText();if(ai(e))return MR(e.name);if(Nc(e))return MR(e.argumentExpression)}function ZMt(e,t){for(;e.parent;){if(Kre(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function eRt(e){for(;e.parent;){if(Kre(e)&&!Kre(e.parent))return e;e=e.parent}}function tRt(e){if(Gre(e))return e;if(Rl(e)){let t=YP(e),n=t?.initializer;return n&&Gre(n)?n:void 0}return e.expression&&Gre(e.expression)?e.expression:void 0}function nSe(e){if(e=Qo(e),Vn(e))return nSe(e.left);if((ai(e)||Nc(e)||Ls(e))&&!Kp(e))return e}function DWe(e,t,n){if(ai(t)||Nc(t)||Ls(t)){let i=DWe(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,l=s?.getText()===t.expression.getText();if(l&&n.pop(),Ls(t))return l?j.createCallChain(i,j.createToken(29),t.typeArguments,t.arguments):j.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(ai(t))return l?j.createPropertyAccessChain(i,j.createToken(29),t.name):j.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Nc(t))return l?j.createElementAccessChain(i,j.createToken(29),t.argumentExpression):j.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function rRt(e,t,n,i,s){let{finalExpression:l,occurrences:p,expression:g}=i,m=p[p.length-1],x=DWe(t,l,p);x&&(ai(x)||Nc(x)||Ls(x))&&(Vn(g)?n.replaceNodeRange(e,m,l,x):Wk(g)&&n.replaceNode(e,g,j.createBinaryExpression(x,j.createToken(61),g.whenFalse)))}var OWe={};w(OWe,{Messages:()=>Ep,RangeFacts:()=>IWe,getRangeToExtract:()=>iSe,getRefactorActionsToExtractSymbol:()=>NWe,getRefactorEditsToExtractSymbol:()=>AWe});var K3="Extract Symbol",Q3={name:"Extract Constant",description:gs(y.Extract_constant),kind:"refactor.extract.constant"},X3={name:"Extract Function",description:gs(y.Extract_function),kind:"refactor.extract.function"};qv(K3,{kinds:[Q3.kind,X3.kind],getEditsForAction:AWe,getAvailableActions:NWe});function NWe(e){let t=e.kind,n=iSe(e.file,$E(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return ce;let F=[];return rT(X3.kind,t)&&F.push({name:K3,description:X3.description,actions:[{...X3,notApplicableReason:N(n.errors)}]}),rT(Q3.kind,t)&&F.push({name:K3,description:Q3.description,actions:[{...Q3,notApplicableReason:N(n.errors)}]}),F}let{affectedTextRange:s,extractions:l}=cRt(i,e);if(l===void 0)return ce;let p=[],g=new Map,m,x=[],b=new Map,S,P=0;for(let{functionExtraction:F,constantExtraction:M}of l){if(rT(X3.kind,t)){let L=F.description;F.errors.length===0?g.has(L)||(g.set(L,!0),p.push({description:L,name:`function_scope_${P}`,kind:X3.kind,range:{start:{line:$s(e.file,s.pos).line,offset:$s(e.file,s.pos).character},end:{line:$s(e.file,s.end).line,offset:$s(e.file,s.end).character}}})):m||(m={description:L,name:`function_scope_${P}`,notApplicableReason:N(F.errors),kind:X3.kind})}if(rT(Q3.kind,t)){let L=M.description;M.errors.length===0?b.has(L)||(b.set(L,!0),x.push({description:L,name:`constant_scope_${P}`,kind:Q3.kind,range:{start:{line:$s(e.file,s.pos).line,offset:$s(e.file,s.pos).character},end:{line:$s(e.file,s.end).line,offset:$s(e.file,s.end).character}}})):S||(S={description:L,name:`constant_scope_${P}`,notApplicableReason:N(M.errors),kind:Q3.kind})}P++}let E=[];return p.length?E.push({name:K3,description:gs(y.Extract_function),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:K3,description:gs(y.Extract_function),actions:[m]}),x.length?E.push({name:K3,description:gs(y.Extract_constant),actions:x}):e.preferences.provideRefactorNotApplicableReason&&S&&E.push({name:K3,description:gs(y.Extract_constant),actions:[S]}),E.length?E:ce;function N(F){let M=F[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function AWe(e,t){let i=iSe(e.file,$E(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){let p=+s[1];return I.assert(isFinite(p),"Expected to parse a finite number from the function scope index"),sRt(i,e,p)}let l=/^constant_scope_(\d+)$/.exec(t);if(l){let p=+l[1];return I.assert(isFinite(p),"Expected to parse a finite number from the constant scope index"),oRt(i,e,p)}I.fail("Unrecognized action name")}var Ep;(e=>{function t(n){return{message:n,code:0,category:3,key:n}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Ep||(Ep={}));var IWe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(IWe||{});function iSe(e,t,n=!0){let{length:i}=t;if(i===0&&!n)return{errors:[Eu(e,t.start,i,Ep.cannotExtractEmpty)]};let s=i===0&&n,l=Z1e(e,t.start),p=R3(e,ml(t)),g=l&&p&&n?nRt(l,p,e):t,m=s?ERt(l):bR(l,e,g),x=s?m:bR(p,e,g),b=0,S;if(!m||!x)return{errors:[Eu(e,t.start,i,Ep.cannotExtractRange)]};if(m.flags&16777216)return{errors:[Eu(e,t.start,i,Ep.cannotExtractJSDoc)]};if(m.parent!==x.parent)return{errors:[Eu(e,t.start,i,Ep.cannotExtractRange)]};if(m!==x){if(!VE(m.parent))return{errors:[Eu(e,t.start,i,Ep.cannotExtractRange)]};let W=[];for(let z of m.parent.statements){if(z===m||W.length){let H=L(z);if(H)return{errors:H};W.push(z)}if(z===x)break}return W.length?{targetRange:{range:W,facts:b,thisNode:S}}:{errors:[Eu(e,t.start,i,Ep.cannotExtractRange)]}}if(md(m)&&!m.expression)return{errors:[Eu(e,t.start,i,Ep.cannotExtractRange)]};let P=N(m),E=F(P)||L(P);if(E)return{errors:E};return{targetRange:{range:iRt(P),facts:b,thisNode:S}};function N(W){if(md(W)){if(W.expression)return W.expression}else if(Rl(W)||mp(W)){let z=Rl(W)?W.declarationList.declarations:W.declarations,H=0,X;for(let ne of z)ne.initializer&&(H++,X=ne.initializer);if(H===1)return X}else if(Ui(W)&&W.initializer)return W.initializer;return W}function F(W){if(Ye(Zu(W)?W.expression:W))return[Mn(W,Ep.cannotExtractIdentifier)]}function M(W,z){let H=W;for(;H!==z;){if(H.kind===172){Vs(H)&&(b|=32);break}else if(H.kind===169){Ed(H).kind===176&&(b|=32);break}else H.kind===174&&Vs(H)&&(b|=32);H=H.parent}}function L(W){let z;if((Ee=>{Ee[Ee.None=0]="None",Ee[Ee.Break=1]="Break",Ee[Ee.Continue=2]="Continue",Ee[Ee.Return=4]="Return"})(z||(z={})),I.assert(W.pos<=W.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),I.assert(!Ug(W.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!fa(W)&&!(zg(W)&&FWe(W))&&!lSe(W))return[Mn(W,Ep.statementOrExpressionExpected)];if(W.flags&33554432)return[Mn(W,Ep.cannotExtractAmbientBlock)];let H=dp(W);H&&M(W,H);let X,ne=4,ae;if(Y(W),b&8){let Ee=mf(W,!1,!1);(Ee.kind===262||Ee.kind===174&&Ee.parent.kind===210||Ee.kind===218)&&(b|=16)}return X;function Y(Ee){if(X)return!0;if(Ku(Ee)){let te=Ee.kind===260?Ee.parent.parent:Ee;if(Ai(te,32))return(X||(X=[])).push(Mn(Ee,Ep.cannotExtractExportedEntity)),!0}switch(Ee.kind){case 272:return(X||(X=[])).push(Mn(Ee,Ep.cannotExtractImport)),!0;case 277:return(X||(X=[])).push(Mn(Ee,Ep.cannotExtractExportedEntity)),!0;case 108:if(Ee.parent.kind===213){let te=dp(Ee);if(te===void 0||te.pos<t.start||te.end>=t.start+t.length)return(X||(X=[])).push(Mn(Ee,Ep.cannotExtractSuper)),!0}else b|=8,S=Ee;break;case 219:xs(Ee,function te(de){if(lA(de))b|=8,S=Ee;else{if(Ri(de)||Ss(de)&&!Bc(de))return!1;xs(de,te)}});case 263:case 262:ba(Ee.parent)&&Ee.parent.externalModuleIndicator===void 0&&(X||(X=[])).push(Mn(Ee,Ep.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let fe=ne;switch(Ee.kind){case 245:ne&=-5;break;case 258:ne=0;break;case 241:Ee.parent&&Ee.parent.kind===258&&Ee.parent.finallyBlock===Ee&&(ne=4);break;case 297:case 296:ne|=1;break;default:cx(Ee,!1)&&(ne|=3);break}switch(Ee.kind){case 197:case 110:b|=8,S=Ee;break;case 256:{let te=Ee.label;(ae||(ae=[])).push(te.escapedText),xs(Ee,Y),ae.pop();break}case 252:case 251:{let te=Ee.label;te?Ta(ae,te.escapedText)||(X||(X=[])).push(Mn(Ee,Ep.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ne&(Ee.kind===252?1:2)||(X||(X=[])).push(Mn(Ee,Ep.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:b|=4;break;case 229:b|=2;break;case 253:ne&4?b|=1:(X||(X=[])).push(Mn(Ee,Ep.cannotExtractRangeContainingConditionalReturnStatement));break;default:xs(Ee,Y);break}ne=fe}}}function nRt(e,t,n){let i=e.getStart(n),s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function iRt(e){if(fa(e))return[e];if(zg(e))return Zu(e.parent)?[e.parent]:e;if(lSe(e))return e}function aSe(e){return Bc(e)?GK(e.body):Dc(e)||ba(e)||Lh(e)||Ri(e)}function aRt(e){let t=U1(e.range)?ho(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=dp(t);if(i){let s=Br(t,Dc);return s?[s,i]:[i]}}let n=[];for(;;)if(t=t.parent,t.kind===169&&(t=Br(t,i=>Dc(i)).parent),aSe(t)&&(n.push(t),t.kind===307))return n}function sRt(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:l,functionErrorsPerScope:p,exposedVariableDeclarations:g}}=sSe(e,t);return I.assert(!p[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),dRt(s,i[n],l[n],g,e,t)}function oRt(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:l,constantErrorsPerScope:p,exposedVariableDeclarations:g}}=sSe(e,t);I.assert(!p[n].length,"The extraction went missing? How?"),I.assert(g.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let m=At(s)?s:s.statements[0].expression;return mRt(m,i[n],l[n],e.facts,t)}function cRt(e,t){let{scopes:n,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:s,constantErrorsPerScope:l}}=sSe(e,t),p=n.map((g,m)=>{let x=lRt(g),b=uRt(g),S=Dc(g)?pRt(g):Ri(g)?fRt(g):_Rt(g),P,E;return S===1?(P=Nv(gs(y.Extract_to_0_in_1_scope),[x,"global"]),E=Nv(gs(y.Extract_to_0_in_1_scope),[b,"global"])):S===0?(P=Nv(gs(y.Extract_to_0_in_1_scope),[x,"module"]),E=Nv(gs(y.Extract_to_0_in_1_scope),[b,"module"])):(P=Nv(gs(y.Extract_to_0_in_1),[x,S]),E=Nv(gs(y.Extract_to_0_in_1),[b,S])),m===0&&!Ri(g)&&(E=Nv(gs(y.Extract_to_0_in_enclosing_scope),[b])),{functionExtraction:{description:P,errors:s[m]},constantExtraction:{description:E,errors:l[m]}}});return{affectedTextRange:i,extractions:p}}function sSe(e,t){let{file:n}=t,i=aRt(e),s=CRt(e,n),l=PRt(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:s,readsAndWrites:l}}function lRt(e){return Dc(e)?"inner function":Ri(e)?"method":"function"}function uRt(e){return Ri(e)?"readonly field":"constant"}function pRt(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:are;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:I.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function fRt(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function _Rt(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function dRt(e,t,{usages:n,typeParameterUsages:i,substitutions:s},l,p,g){let m=g.program.getTypeChecker(),x=Po(g.program.getCompilerOptions()),b=rf.createImportAdder(g.file,g.program,g.preferences,g.host),S=t.getSourceFile(),P=oC(Ri(t)?"newMethod":"newFunction",S),E=jn(t),N=j.createIdentifier(P),F,M=[],L=[],W;n.forEach((ge,Me)=>{let Te;if(!E){let Tt=m.getTypeOfSymbolAtLocation(ge.symbol,ge.node);Tt=m.getBaseTypeOfLiteralType(Tt),Te=rf.typeToAutoImportableTypeNode(m,b,Tt,t,x,1,8)}let gt=j.createParameterDeclaration(void 0,void 0,Me,void 0,Te);M.push(gt),ge.usage===2&&(W||(W=[])).push(ge),L.push(j.createIdentifier(Me))});let z=Ka(i.values(),ge=>({type:ge,declaration:hRt(ge,g.startPosition)}));z.sort(yRt);let H=z.length===0?void 0:Bi(z,({declaration:ge})=>ge),X=H!==void 0?H.map(ge=>j.createTypeReferenceNode(ge.name,void 0)):void 0;if(At(e)&&!E){let ge=m.getContextualType(e);F=m.typeToTypeNode(ge,t,1,8)}let{body:ne,returnValueProperty:ae}=bRt(e,l,W,s,!!(p.facts&1));K_(ne);let Y,Ee=!!(p.facts&16);if(Ri(t)){let ge=E?[]:[j.createModifier(123)];p.facts&32&&ge.push(j.createModifier(126)),p.facts&4&&ge.push(j.createModifier(134)),Y=j.createMethodDeclaration(ge.length?ge:void 0,p.facts&2?j.createToken(42):void 0,N,void 0,H,M,F,ne)}else Ee&&M.unshift(j.createParameterDeclaration(void 0,void 0,"this",void 0,m.typeToTypeNode(m.getTypeAtLocation(p.thisNode),t,1,8),void 0)),Y=j.createFunctionDeclaration(p.facts&4?[j.createToken(134)]:void 0,p.facts&2?j.createToken(42):void 0,N,H,M,F,ne);let fe=Ln.ChangeTracker.fromContext(g),te=(U1(p.range)?ao(p.range):p.range).end,de=TRt(te,t);de?fe.insertNodeBefore(g.file,de,Y,!0):fe.insertNodeAtEndOfScope(g.file,t,Y),b.writeFixes(fe);let me=[],ve=vRt(t,p,P);Ee&&L.unshift(j.createIdentifier("this"));let Pe=j.createCallExpression(Ee?j.createPropertyAccessExpression(ve,"call"):ve,X,L);if(p.facts&2&&(Pe=j.createYieldExpression(j.createToken(42),Pe)),p.facts&4&&(Pe=j.createAwaitExpression(Pe)),cSe(e)&&(Pe=j.createJsxExpression(void 0,Pe)),l.length&&!W)if(I.assert(!ae,"Expected no returnValueProperty"),I.assert(!(p.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),l.length===1){let ge=l[0];me.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(tc(ge.name),void 0,tc(ge.type),Pe)],ge.parent.flags)))}else{let ge=[],Me=[],Te=l[0].parent.flags,gt=!1;for(let xe of l){ge.push(j.createBindingElement(void 0,void 0,tc(xe.name)));let nt=m.typeToTypeNode(m.getBaseTypeOfLiteralType(m.getTypeAtLocation(xe)),t,1,8);Me.push(j.createPropertySignature(void 0,xe.symbol.name,void 0,nt)),gt=gt||xe.type!==void 0,Te=Te&xe.parent.flags}let Tt=gt?j.createTypeLiteralNode(Me):void 0;Tt&&qn(Tt,1),me.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(j.createObjectBindingPattern(ge),void 0,Tt,Pe)],Te)))}else if(l.length||W){if(l.length)for(let Me of l){let Te=Me.parent.flags;Te&2&&(Te=Te&-3|1),me.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(Me.symbol.name,void 0,ze(Me.type))],Te)))}ae&&me.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(ae,void 0,ze(F))],1)));let ge=oSe(l,W);ae&&ge.unshift(j.createShorthandPropertyAssignment(ae)),ge.length===1?(I.assert(!ae,"Shouldn't have returnValueProperty here"),me.push(j.createExpressionStatement(j.createAssignment(ge[0].name,Pe))),p.facts&1&&me.push(j.createReturnStatement())):(me.push(j.createExpressionStatement(j.createAssignment(j.createObjectLiteralExpression(ge),Pe))),ae&&me.push(j.createReturnStatement(j.createIdentifier(ae))))}else p.facts&1?me.push(j.createReturnStatement(Pe)):U1(p.range)?me.push(j.createExpressionStatement(Pe)):me.push(Pe);U1(p.range)?fe.replaceNodeRangeWithNodes(g.file,ho(p.range),ao(p.range),me):fe.replaceNodeWithNodes(g.file,p.range,me);let Oe=fe.getChanges(),Ne=(U1(p.range)?ho(p.range):p.range).getSourceFile().fileName,it=TR(Oe,Ne,P,!1);return{renameFilename:Ne,renameLocation:it,edits:Oe};function ze(ge){if(ge===void 0)return;let Me=tc(ge),Te=Me;for(;Jk(Te);)Te=Te.type;return M1(Te)&&Ir(Te.types,gt=>gt.kind===157)?Me:j.createUnionTypeNode([Me,j.createKeywordTypeNode(157)])}}function mRt(e,t,{substitutions:n},i,s){let l=s.program.getTypeChecker(),p=t.getSourceFile(),g=Lxe(e,t,l,p),m=jn(t),x=m||!l.isContextSensitive(e)?void 0:l.typeToTypeNode(l.getContextualType(e),t,1,8),b=xRt(Qo(e),n);({variableType:x,initializer:b}=F(x,b)),K_(b);let S=Ln.ChangeTracker.fromContext(s);if(Ri(t)){I.assert(!m,"Cannot extract to a JS class");let M=[];M.push(j.createModifier(123)),i&32&&M.push(j.createModifier(126)),M.push(j.createModifier(148));let L=j.createPropertyDeclaration(M,g,void 0,x,b),W=j.createPropertyAccessExpression(i&32?j.createIdentifier(t.name.getText()):j.createThis(),j.createIdentifier(g));cSe(e)&&(W=j.createJsxExpression(void 0,W));let z=e.pos,H=wRt(z,t);S.insertNodeBefore(s.file,H,L,!0),S.replaceNode(s.file,e,W)}else{let M=j.createVariableDeclaration(g,void 0,x,b),L=gRt(e,t);if(L){S.insertNodeBefore(s.file,L,M);let W=j.createIdentifier(g);S.replaceNode(s.file,e,W)}else if(e.parent.kind===244&&t===Br(e,aSe)){let W=j.createVariableStatement(void 0,j.createVariableDeclarationList([M],2));S.replaceNode(s.file,e.parent,W)}else{let W=j.createVariableStatement(void 0,j.createVariableDeclarationList([M],2)),z=kRt(e,t);if(z.pos===0?S.insertNodeAtTopOfFile(s.file,W,!1):S.insertNodeBefore(s.file,z,W,!1),e.parent.kind===244)S.delete(s.file,e.parent);else{let H=j.createIdentifier(g);cSe(e)&&(H=j.createJsxExpression(void 0,H)),S.replaceNode(s.file,e,H)}}}let P=S.getChanges(),E=e.getSourceFile().fileName,N=TR(P,E,g,!0);return{renameFilename:E,renameLocation:N,edits:P};function F(M,L){if(M===void 0)return{variableType:M,initializer:L};if(!Ic(L)&&!Bc(L)||L.typeParameters)return{variableType:M,initializer:L};let W=l.getTypeAtLocation(e),z=Zd(l.getSignaturesOfType(W,0));if(!z)return{variableType:M,initializer:L};if(z.getTypeParameters())return{variableType:M,initializer:L};let H=[],X=!1;for(let ne of L.parameters)if(ne.type)H.push(ne);else{let ae=l.getTypeAtLocation(ne);ae===l.getAnyType()&&(X=!0),H.push(j.updateParameterDeclaration(ne,ne.modifiers,ne.dotDotDotToken,ne.name,ne.questionToken,ne.type||l.typeToTypeNode(ae,t,1,8),ne.initializer))}if(X)return{variableType:M,initializer:L};if(M=void 0,Bc(L))L=j.updateArrowFunction(L,$m(e)?u2(e):void 0,L.typeParameters,H,L.type||l.typeToTypeNode(z.getReturnType(),t,1,8),L.equalsGreaterThanToken,L.body);else{if(z&&z.thisParameter){let ne=Yl(H);if(!ne||Ye(ne.name)&&ne.name.escapedText!=="this"){let ae=l.getTypeOfSymbolAtLocation(z.thisParameter,e);H.splice(0,0,j.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(ae,t,1,8)))}}L=j.updateFunctionExpression(L,$m(e)?u2(e):void 0,L.asteriskToken,L.name,L.typeParameters,H,L.type||l.typeToTypeNode(z.getReturnType(),t,1),L.body)}return{variableType:M,initializer:L}}}function gRt(e,t){let n;for(;e!==void 0&&e!==t;){if(Ui(e)&&e.initializer===n&&mp(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function hRt(e,t){let n,i=e.symbol;if(i&&i.declarations)for(let s of i.declarations)(n===void 0||s.pos<n.pos)&&s.pos<t&&(n=s);return n}function yRt({type:e,declaration:t},{type:n,declaration:i}){return pk(t,i,"pos",mc)||fp(e.symbol?e.symbol.getName():"",n.symbol?n.symbol.getName():"")||mc(e.id,n.id)}function vRt(e,t,n){let i=j.createIdentifier(n);if(Ri(e)){let s=t.facts&32?j.createIdentifier(e.name.text):j.createThis();return j.createPropertyAccessExpression(s,i)}else return i}function bRt(e,t,n,i,s){let l=n!==void 0||t.length>0;if(Cs(e)&&!l&&i.size===0)return{body:j.createBlock(e.statements,!0),returnValueProperty:void 0};let p,g=!1,m=j.createNodeArray(Cs(e)?e.statements.slice(0):[fa(e)?e:j.createReturnStatement(Qo(e))]);if(l||i.size){let b=dn(m,x,fa).slice();if(l&&!s&&fa(e)){let S=oSe(t,n);S.length===1?b.push(j.createReturnStatement(S[0].name)):b.push(j.createReturnStatement(j.createObjectLiteralExpression(S)))}return{body:j.createBlock(b,!0),returnValueProperty:p}}else return{body:j.createBlock(m,!0),returnValueProperty:void 0};function x(b){if(!g&&md(b)&&l){let S=oSe(t,n);return b.expression&&(p||(p="__return"),S.unshift(j.createPropertyAssignment(p,dt(b.expression,x,At)))),S.length===1?j.createReturnStatement(S[0].name):j.createReturnStatement(j.createObjectLiteralExpression(S))}else{let S=g;g=g||Dc(b)||Ri(b);let P=i.get(Wo(b).toString()),E=P?tc(P):Gr(b,x,void 0);return g=S,E}}}function xRt(e,t){return t.size?n(e):e;function n(i){let s=t.get(Wo(i).toString());return s?tc(s):Gr(i,n,void 0)}}function SRt(e){if(Dc(e)){let t=e.body;if(Cs(t))return t.statements}else{if(Lh(e)||ba(e))return e.statements;if(Ri(e))return e.members;}return ce}function TRt(e,t){return Ir(SRt(t),n=>n.pos>=e&&Dc(n)&&!ul(n))}function wRt(e,t){let n=t.members;I.assert(n.length>0,"Found no members");let i,s=!0;for(let l of n){if(l.pos>e)return i||n[0];if(s&&!is(l)){if(i!==void 0)return l;s=!1}i=l}return i===void 0?I.fail():i}function kRt(e,t){I.assert(!Ri(t));let n;for(let i=e;i!==t;i=i.parent)aSe(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(VE(i)){let s;for(let l of i.statements){if(l.pos>e.pos)break;s=l}return!s&&RN(i)?(I.assert(e3(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):I.checkDefined(s,"prevStatement failed to get set")}I.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function oSe(e,t){let n=Dt(e,s=>j.createShorthandPropertyAssignment(s.symbol.name)),i=Dt(t,s=>j.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function U1(e){return cs(e)}function CRt(e,t){return U1(e.range)?{pos:ho(e.range).getStart(t),end:ao(e.range).getEnd()}:e.range}function PRt(e,t,n,i,s,l){let p=new Map,g=[],m=[],x=[],b=[],S=[],P=new Map,E=[],N,F=U1(e.range)?e.range.length===1&&Zu(e.range[0])?e.range[0].expression:void 0:e.range,M;if(F===void 0){let me=e.range,ve=ho(me).getStart(),Pe=ao(me).end;M=Eu(i,ve,Pe-ve,Ep.expressionExpected)}else s.getTypeAtLocation(F).flags&147456&&(M=Mn(F,Ep.uselessConstantType));for(let me of t){g.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),m.push(new Map),x.push([]);let ve=[];M&&ve.push(M),Ri(me)&&jn(me)&&ve.push(Mn(me,Ep.cannotExtractToJSClass)),Bc(me)&&!Cs(me.body)&&ve.push(Mn(me,Ep.cannotExtractToExpressionArrowFunction)),b.push(ve)}let L=new Map,W=U1(e.range)?j.createBlock(e.range):e.range,z=U1(e.range)?ho(e.range):e.range,H=X(z);if(ae(W),H&&!U1(e.range)&&!Jh(e.range)){let me=s.getContextualType(e.range);ne(me)}if(p.size>0){let me=new Map,ve=0;for(let Pe=z;Pe!==void 0&&ve<t.length;Pe=Pe.parent)if(Pe===t[ve]&&(me.forEach((Oe,ie)=>{g[ve].typeParameterUsages.set(ie,Oe)}),ve++),mQ(Pe))for(let Oe of nx(Pe)){let ie=s.getTypeAtLocation(Oe);p.has(ie.id.toString())&&me.set(ie.id.toString(),ie)}I.assert(ve===t.length,"Should have iterated all scopes")}if(S.length){let me=dQ(t[0],t[0].parent)?t[0]:Jg(t[0]);xs(me,fe)}for(let me=0;me<t.length;me++){let ve=g[me];if(me>0&&(ve.usages.size>0||ve.typeParameterUsages.size>0)){let ie=U1(e.range)?e.range[0]:e.range;b[me].push(Mn(ie,Ep.cannotAccessVariablesFromNestedScopes))}e.facts&16&&Ri(t[me])&&x[me].push(Mn(e.thisNode,Ep.cannotExtractFunctionsContainingThisToMethod));let Pe=!1,Oe;if(g[me].usages.forEach(ie=>{ie.usage===2&&(Pe=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&z_(ie.symbol.valueDeclaration,8)&&(Oe=ie.symbol.valueDeclaration))}),I.assert(U1(e.range)||E.length===0,"No variable declarations expected if something was extracted"),Pe&&!U1(e.range)){let ie=Mn(e.range,Ep.cannotWriteInExpression);x[me].push(ie),b[me].push(ie)}else if(Oe&&me>0){let ie=Mn(Oe,Ep.cannotExtractReadonlyPropertyInitializerOutsideConstructor);x[me].push(ie),b[me].push(ie)}else if(N){let ie=Mn(N,Ep.cannotExtractExportedEntity);x[me].push(ie),b[me].push(ie)}}return{target:W,usagesPerScope:g,functionErrorsPerScope:x,constantErrorsPerScope:b,exposedVariableDeclarations:E};function X(me){return!!Br(me,ve=>mQ(ve)&&nx(ve).length!==0)}function ne(me){let ve=s.getSymbolWalker(()=>(l.throwIfCancellationRequested(),!0)),{visitedTypes:Pe}=ve.walkType(me);for(let Oe of Pe)Oe.isTypeParameter()&&p.set(Oe.id.toString(),Oe)}function ae(me,ve=1){if(H){let Pe=s.getTypeAtLocation(me);ne(Pe)}if(Ku(me)&&me.symbol&&S.push(me),Yu(me))ae(me.left,2),ae(me.right);else if(wde(me))ae(me.operand,2);else if(ai(me)||Nc(me))xs(me,ae);else if(Ye(me)){if(!me.parent||If(me.parent)&&me!==me.parent.left||ai(me.parent)&&me!==me.parent.expression)return;Y(me,ve,Eh(me))}else xs(me,ae)}function Y(me,ve,Pe){let Oe=Ee(me,ve,Pe);if(Oe)for(let ie=0;ie<t.length;ie++){let Ne=m[ie].get(Oe);Ne&&g[ie].substitutions.set(Wo(me).toString(),Ne)}}function Ee(me,ve,Pe){let Oe=te(me);if(!Oe)return;let ie=co(Oe).toString(),Ne=L.get(ie);if(Ne&&Ne>=ve)return ie;if(L.set(ie,ve),Ne){for(let ge of g)ge.usages.get(me.text)&&ge.usages.set(me.text,{usage:ve,symbol:Oe,node:me});return ie}let it=Oe.getDeclarations(),ze=it&&Ir(it,ge=>ge.getSourceFile()===i);if(ze&&!_R(n,ze.getStart(),ze.end)){if(e.facts&2&&ve===2){let ge=Mn(me,Ep.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Me of x)Me.push(ge);for(let Me of b)Me.push(ge)}for(let ge=0;ge<t.length;ge++){let Me=t[ge];if(s.resolveName(Oe.name,Me,Oe.flags,!1)!==Oe&&!m[ge].has(ie)){let gt=de(Oe.exportSymbol||Oe,Me,Pe);if(gt)m[ge].set(ie,gt);else if(Pe){if(!(Oe.flags&262144)){let Tt=Mn(me,Ep.typeWillNotBeVisibleInTheNewScope);x[ge].push(Tt),b[ge].push(Tt)}}else g[ge].usages.set(me.text,{usage:ve,symbol:Oe,node:me})}}return ie}}function fe(me){if(me===e.range||U1(e.range)&&e.range.includes(me))return;let ve=Ye(me)?te(me):s.getSymbolAtLocation(me);if(ve){let Pe=Ir(S,Oe=>Oe.symbol===ve);if(Pe)if(Ui(Pe)){let Oe=Pe.symbol.id.toString();P.has(Oe)||(E.push(Pe),P.set(Oe,!0))}else N=N||Pe}xs(me,fe)}function te(me){return me.parent&&Jp(me.parent)&&me.parent.name===me?s.getShorthandAssignmentValueSymbol(me.parent):s.getSymbolAtLocation(me)}function de(me,ve,Pe){if(!me)return;let Oe=me.getDeclarations();if(Oe&&Oe.some(Ne=>Ne.parent===ve))return j.createIdentifier(me.name);let ie=de(me.parent,ve,Pe);if(ie!==void 0)return Pe?j.createQualifiedName(ie,j.createIdentifier(me.name)):j.createPropertyAccessExpression(ie,me.name)}}function ERt(e){return Br(e,t=>t.parent&&FWe(t)&&!Vn(t.parent))}function FWe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function cSe(e){return lSe(e)||(qh(e)||Vk(e)||qS(e))&&(qh(e.parent)||qS(e.parent))}function lSe(e){return vo(e)&&e.parent&&Jh(e.parent)}var DRt={},Qre="Generate 'get' and 'set' accessors",uSe=gs(y.Generate_get_and_set_accessors),pSe={name:Qre,description:uSe,kind:"refactor.rewrite.property.generateAccessors"};qv(Qre,{kinds:[pSe.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;let i=rf.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);I.assert(i&&!q0(i),"Expected applicable refactor info");let s=rf.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,n);if(!s)return;let l=t.file.fileName,p=i.renameAccessor?i.accessorName:i.fieldName,m=(Ye(p)?0:-1)+TR(s,l,p.text,Da(i.declaration));return{renameFilename:l,renameLocation:m,edits:s}},getAvailableActions(e){if(!e.endPosition)return ce;let t=rf.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?q0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Qre,description:uSe,actions:[{...pSe,notApplicableReason:t.error}]}]:ce:[{name:Qre,description:uSe,actions:[pSe]}]:ce}});var ORt={},Xre="Infer function return type",fSe=gs(y.Infer_function_return_type),Yre={name:Xre,description:fSe,kind:"refactor.rewrite.function.returnType"};qv(Xre,{kinds:[Yre.kind],getEditsForAction:NRt,getAvailableActions:ARt});function NRt(e){let t=MWe(e);if(t&&!q0(t))return{renameFilename:void 0,renameLocation:void 0,edits:Ln.ChangeTracker.with(e,i=>IRt(e.file,i,t.declaration,t.returnTypeNode))}}function ARt(e){let t=MWe(e);return t?q0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Xre,description:fSe,actions:[{...Yre,notApplicableReason:t.error}]}]:ce:[{name:Xre,description:fSe,actions:[Yre]}]:ce}function IRt(e,t,n,i){let s=gc(n,22,e),l=Bc(n)&&s===void 0,p=l?ho(n.parameters):s;p&&(l&&(t.insertNodeBefore(e,p,j.createToken(21)),t.insertNodeAfter(e,p,j.createToken(22))),t.insertNodeAt(e,p.end,i,{prefix:": "}))}function MWe(e){if(jn(e.file)||!rT(Yre.kind,e.kind))return;let t=r_(e.file,e.startPosition),n=Br(t,p=>Cs(p)||p.parent&&Bc(p.parent)&&(p.kind===39||p.parent.body===p)?"quit":FRt(p));if(!n||!n.body||n.type)return{error:gs(y.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),s;if(i.isImplementationOfOverload(n)){let p=i.getTypeAtLocation(n).getCallSignatures();p.length>1&&(s=i.getUnionType(Bi(p,g=>g.getReturnType())))}if(!s){let p=i.getSignatureFromDeclaration(n);if(p){let g=i.getTypePredicateOfSignature(p);if(g&&g.type){let m=i.typePredicateToTypePredicateNode(g,n,1,8);if(m)return{declaration:n,returnTypeNode:m}}else s=i.getReturnTypeOfSignature(p)}}if(!s)return{error:gs(y.Could_not_determine_function_return_type)};let l=i.typeToTypeNode(s,n,1,8);if(l)return{declaration:n,returnTypeNode:l}}function FRt(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}var RWe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(RWe||{}),jWe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(jWe||{}),LWe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(LWe||{});function BWe(e,t,n,i){let s=_Se(e,t,n,i);I.assert(s.spans.length%3===0);let l=s.spans,p=[];for(let g=0;g<l.length;g+=3)p.push({textSpan:Sp(l[g],l[g+1]),classificationType:l[g+2]});return p}function _Se(e,t,n,i){return{spans:MRt(e,n,i,t),endOfLineState:0}}function MRt(e,t,n,i){let s=[];return e&&t&&RRt(e,t,n,(p,g,m)=>{s.push(p.getStart(t),p.getWidth(t),(g+1<<8)+m)},i),s}function RRt(e,t,n,i,s){let l=e.getTypeChecker(),p=!1;function g(m){switch(m.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:s.throwIfCancellationRequested()}if(!m||!TF(n,m.pos,m.getFullWidth())||m.getFullWidth()===0)return;let x=p;if((qh(m)||Vk(m))&&(p=!0),MN(m)&&(p=!1),Ye(m)&&!p&&!qRt(m)&&!B4(m.escapedText)){let b=l.getSymbolAtLocation(m);if(b){b.flags&2097152&&(b=l.getAliasedSymbol(b));let S=jRt(b,iC(m));if(S!==void 0){let P=0;m.parent&&(Do(m.parent)||zWe.get(m.parent.kind)===S)&&m.parent.name===m&&(P=1),S===6&&JWe(m)&&(S=9),S=LRt(l,m,S);let E=b.valueDeclaration;if(E){let N=bS(E),F=w0(E);N&256&&(P|=2),N&1024&&(P|=4),S!==0&&S!==2&&(N&8||F&2||b.getFlags()&8)&&(P|=8),(S===7||S===10)&&BRt(E,t)&&(P|=32),e.isSourceFileDefaultLibrary(E.getSourceFile())&&(P|=16)}else b.declarations&&b.declarations.some(N=>e.isSourceFileDefaultLibrary(N.getSourceFile()))&&(P|=16);i(m,S,P)}}}xs(m,g),p=x}g(t)}function jRt(e,t){let n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Do(i)&&(i=qWe(i)),i&&zWe.get(i.kind)}function LRt(e,t,n){if(n===7||n===9||n===6){let i=e.getTypeAtLocation(t);if(i){let s=l=>l(i)||i.isUnion()&&i.types.some(l);if(n!==6&&s(l=>l.getConstructSignatures().length>0))return 0;if(s(l=>l.getCallSignatures().length>0)&&!s(l=>l.getProperties().length>0)||JRt(t))return n===9?11:10}}return n}function BRt(e,t){return Do(e)&&(e=qWe(e)),Ui(e)?(!ba(e.parent.parent.parent)||z2(e.parent))&&e.getSourceFile()===t:jl(e)?!ba(e.parent)&&e.getSourceFile()===t:!1}function qWe(e){for(;;)if(Do(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function qRt(e){let t=e.parent;return t&&(vg(t)||bf(t)||jv(t))}function JRt(e){for(;JWe(e);)e=e.parent;return Ls(e.parent)&&e.parent.expression===e}function JWe(e){return If(e.parent)&&e.parent.right===e||ai(e.parent)&&e.parent.name===e}var zWe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),WWe="0.8";function UWe(e,t,n,i){let s=dq(e)?new dSe(e,t,n):e===80?new VWe(80,t,n):e===81?new HWe(81,t,n):new $We(e,t,n);return s.parent=i,s.flags=i.flags&101441536,s}var dSe=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){I.assert(!Ug(this.pos)&&!Ug(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return rn(this)}getStart(e,t){return this.assertHasRealPosition(),px(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=rn(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),wY(this,e)??Hhe(this,e,zRt(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=Ir(t,i=>i.kind<309||i.kind>351);return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),n=dc(t);if(n)return n.kind<166?n:n.getLastToken(e)}forEachChild(e,t){return xs(this,e,t)}};function zRt(e,t){let n=[];if(Sq(e))return e.forEachChild(p=>{n.push(p)}),n;gp.setText((t||e.getSourceFile()).text);let i=e.pos,s=p=>{t$(n,i,p.pos,e),n.push(p),i=p.end},l=p=>{t$(n,i,p.pos,e),n.push(WRt(p,e)),i=p.end};return Ge(e.jsDoc,s),i=e.pos,e.forEachChild(s,l),t$(n,i,e.end,e),gp.setText(void 0),n}function t$(e,t,n,i){for(gp.resetTokenState(t);t<n;){let s=gp.scan(),l=gp.getTokenEnd();if(l<=n){if(s===80){if(Vge(i))continue;I.fail(`Did not expect ${I.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(UWe(s,t,l,i))}if(t=l,s===1)break}}function WRt(e,t){let n=UWe(352,e.pos,e.end,t),i=[],s=e.pos;for(let l of e)t$(i,s,l.pos,t),i.push(l),s=l.end;return t$(i,s,e.end,t),n._children=i,n}var mSe=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}getSourceFile(){return rn(this)}getStart(e,t){return px(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||ce}getFirstToken(){}getLastToken(){}forEachChild(){}},URt=class{constructor(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}getFlags(){return this.flags}get name(){return Ml(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=ce,!this.declarations&&Tv(this)&&this.links.target&&Tv(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=r$([t],e)}else this.documentationComment=r$(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Sv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=ce,this.contextualGetAccessorDocumentationComment=r$(Cn(this.declarations,Sv),t)),Re(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(kh(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=ce,this.contextualSetAccessorDocumentationComment=r$(Cn(this.declarations,kh),t)),Re(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=ce,this.tags=Zre(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Sv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=ce,this.contextualGetAccessorTags=Zre(Cn(this.declarations,Sv),t)),Re(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(kh(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=ce,this.contextualSetAccessorTags=Zre(Cn(this.declarations,kh),t)),Re(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},$We=class extends mSe{constructor(e,t,n){super(e,t,n)}},VWe=class extends mSe{constructor(e,t,n){super(e,t,n)}get text(){return fi(this)}},HWe=class extends mSe{constructor(e,t,n){super(e,t,n)}get text(){return fi(this)}},$Rt=class{constructor(e,t){this.flags=t,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(oi(this)&3)}isClass(){return!!(oi(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(oi(this)&4)return this.checker.getTypeArguments(this)}},VRt=class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&q4(t.type)){let n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=r$(lg(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Zre(lg(this.declaration),this.checker))}};function GWe(e){return SS(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function Zre(e,t){if(!e)return ce;let n=aT.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(GWe))){let i=new Set;for(let s of e){let l=KWe(t,s,p=>{var g;if(!i.has(p))return i.add(p),s.kind===177||s.kind===178?p.getContextualJsDocTags(s,t):((g=p.declarations)==null?void 0:g.length)===1?p.getJsDocTags(t):void 0});l&&(n=[...l,...n])}}return n}function r$(e,t){if(!e)return ce;let n=aT.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(GWe))){let i=new Set;for(let s of e){let l=KWe(t,s,p=>{if(!i.has(p))return i.add(p),s.kind===177||s.kind===178?p.getContextualDocumentationComment(s,t):p.getDocumentationComment(t)});l&&(n=n.length===0?l.slice():l.concat(mA(),n))}}return n}function KWe(e,t,n){var i;let s=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!s)return;let l=Pu(t);return jr(_4(s),p=>{let g=e.getTypeAtLocation(p),m=l&&g.symbol?e.getTypeOfSymbol(g.symbol):g,x=e.getPropertyOfType(m,t.symbol.name);return x?n(x):void 0})}var HRt=class extends dSe{constructor(e,t,n){super(e,t,n)}update(e,t){return BY(this,e,t)}getLineAndCharacterOfPosition(e){return $s(this,e)}getLineStarts(){return hv(this)}getPositionOfLineAndCharacter(e,t,n){return nq(hv(this),e,t,this.text,n)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts(),i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);let s=this.getFullText();return s[i]===`
|
|
`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Zl();return this.forEachChild(s),e;function t(l){let p=i(l);p&&e.add(p,l)}function n(l){let p=e.get(l);return p||e.set(l,p=[]),p}function i(l){let p=sq(l);return p&&(po(p)&&ai(p.expression)?p.expression.name.text:su(p)?yR(p):void 0)}function s(l){switch(l.kind){case 262:case 218:case 174:case 173:let p=l,g=i(p);if(g){let b=n(g),S=dc(b);S&&p.parent===S.parent&&p.symbol===S.symbol?p.body&&!S.body&&(b[b.length-1]=p):b.push(p)}xs(l,s);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(l),xs(l,s);break;case 169:if(!Ai(l,31))break;case 260:case 208:{let b=l;if(Os(b.name)){xs(b.name,s);break}b.initializer&&s(b.initializer)}case 306:case 172:case 171:t(l);break;case 278:let m=l;m.exportClause&&(hm(m.exportClause)?Ge(m.exportClause.elements,s):s(m.exportClause.name));break;case 272:let x=l.importClause;x&&(x.name&&t(x.name),x.namedBindings&&(x.namedBindings.kind===274?t(x.namedBindings):Ge(x.namedBindings.elements,s)));break;case 226:$l(l)!==0&&t(l);default:xs(l,s)}}}},GRt=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}getLineAndCharacterOfPosition(e){return $s(this,e)}};function KRt(){return{getNodeConstructor:()=>dSe,getTokenConstructor:()=>$We,getIdentifierConstructor:()=>VWe,getPrivateIdentifierConstructor:()=>HWe,getSourceFileConstructor:()=>HRt,getSymbolConstructor:()=>URt,getTypeConstructor:()=>$Rt,getSignatureConstructor:()=>VRt,getSourceMapSourceConstructor:()=>GRt}}function RR(e){let t=!0;for(let i in e)if(ec(e,i)&&!QWe(i)){t=!1;break}if(t)return e;let n={};for(let i in e)if(ec(e,i)){let s=QWe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function QWe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function jR(e){return e?Dt(e,t=>t.text).join(""):""}function n$(){return{target:1,jsx:1}}function ene(){return rf.getSupportedErrorCodes()}var QRt=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,l,p,g,m;let x=this.host.getScriptSnapshot(e);if(!x)throw new Error("Could not find file: '"+e+"'.");let b=Zte(e,this.host),S=this.host.getScriptVersion(e),P;if(this.currentFileName!==e){let E={languageVersion:99,impliedNodeFormat:YM(Ec(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||D0(this.host)),(m=(g=(p=(l=(s=this.host).getCompilerHost)==null?void 0:l.call(s))==null?void 0:p.getModuleResolutionCache)==null?void 0:g.call(p))==null?void 0:m.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:L5(this.host.getCompilationSettings()),jsDocParsingMode:0};P=i$(e,x,E,S,!0,b)}else if(this.currentFileVersion!==S){let E=x.getChangeRange(this.currentFileScriptSnapshot);P=tne(this.currentSourceFile,x,S,E)}return P&&(this.currentFileVersion=S,this.currentFileName=e,this.currentFileScriptSnapshot=x,this.currentSourceFile=P),this.currentSourceFile}};function XWe(e,t,n){e.version=n,e.scriptSnapshot=t}function i$(e,t,n,i,s,l){let p=AE(e,UE(t),n,s,l);return XWe(p,t,i),p}function tne(e,t,n,i,s){if(i&&n!==e.version){let p,g=i.span.start!==0?e.text.substr(0,i.span.start):"",m=ml(i.span)!==e.text.length?e.text.substr(ml(i.span)):"";if(i.newLength===0)p=g&&m?g+m:g||m;else{let b=t.getText(i.span.start,i.span.start+i.newLength);p=g&&m?g+b+m:g?g+b:b+m}let x=BY(e,p,i,s);return XWe(x,t,n),x.nameTable=void 0,e!==x&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),x}let l={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return i$(e.fileName,t,l,n,!0,e.scriptKind)}var XRt={isCancellationRequested:cd,throwIfCancellationRequested:Ko},YRt=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Fn)==null||e.instant(Fn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new DP}},gSe=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=xc();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Fn)==null||e.instant(Fn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new DP}},YWe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],ZRt=[...YWe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function hSe(e,t=Jbe(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;let l=new QRt(e),p,g,m=0,x=e.getCancellationToken?new YRt(e.getCancellationToken()):XRt,b=e.getCurrentDirectory();hge((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function S(yt){e.log&&e.log(yt)}let P=Ak(e),E=Xu(P),N=txe({useCaseSensitiveFileNames:()=>P,getCurrentDirectory:()=>b,getProgram:W,fileExists:Ra(e,e.fileExists),readFile:Ra(e,e.readFile),getDocumentPositionMapper:Ra(e,e.getDocumentPositionMapper),getSourceFileLike:Ra(e,e.getSourceFileLike),log:S});function F(yt){let Bt=p.getSourceFile(yt);if(!Bt){let cr=new Error(`Could not find source file: '${yt}'.`);throw cr.ProgramFiles=p.getSourceFiles().map(er=>er.fileName),cr}return Bt}function M(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():L()}function L(){var yt,Bt,cr;if(I.assert(s!==2),e.getProjectVersion){let as=e.getProjectVersion();if(as){if(g===as&&!((yt=e.hasChangedAutomaticTypeDirectiveNames)!=null&&yt.call(e)))return;g=as}}let er=e.getTypeRootsVersion?e.getTypeRootsVersion():0;m!==er&&(S("TypeRoots version has changed; provide new program"),p=void 0,m=er);let zr=e.getScriptFileNames().slice(),Pr=e.getCompilationSettings()||n$(),or=e.hasInvalidatedResolutions||cd,Mr=Ra(e,e.hasInvalidatedLibResolutions)||cd,Wr=Ra(e,e.hasChangedAutomaticTypeDirectiveNames),$r=(Bt=e.getProjectReferences)==null?void 0:Bt.call(e),Sr,ji={getSourceFile:el,getSourceFileByPath:Q_,getCancellationToken:()=>x,getCanonicalFileName:E,useCaseSensitiveFileNames:()=>P,getNewLine:()=>O1(Pr),getDefaultLibFileName:as=>e.getDefaultLibFileName(as),writeFile:Ko,getCurrentDirectory:()=>b,fileExists:as=>e.fileExists(as),readFile:as=>e.readFile&&e.readFile(as),getSymlinkCache:Ra(e,e.getSymlinkCache),realpath:Ra(e,e.realpath),directoryExists:as=>Wg(as,e),getDirectories:as=>e.getDirectories?e.getDirectories(as):[],readDirectory:(as,Gs,qo,jo,fr)=>(I.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(as,Gs,qo,jo,fr)),onReleaseOldSourceFile:Ro,onReleaseParsedCommandLine:lu,hasInvalidatedResolutions:or,hasInvalidatedLibResolutions:Mr,hasChangedAutomaticTypeDirectiveNames:Wr,trace:Ra(e,e.trace),resolveModuleNames:Ra(e,e.resolveModuleNames),getModuleResolutionCache:Ra(e,e.getModuleResolutionCache),createHash:Ra(e,e.createHash),resolveTypeReferenceDirectives:Ra(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Ra(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Ra(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Ra(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Ra(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:la,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:Ra(e,e.getGlobalTypingsCacheLocation)},Is=ji.getSourceFile,{getSourceFileWithCache:Xs}=P3(ji,as=>Ec(as,b,E),(...as)=>Is.call(ji,...as));ji.getSourceFile=Xs,(cr=e.setCompilerHost)==null||cr.call(e,ji);let Ps={useCaseSensitiveFileNames:P,fileExists:as=>ji.fileExists(as),readFile:as=>ji.readFile(as),directoryExists:as=>ji.directoryExists(as),getDirectories:as=>ji.getDirectories(as),realpath:ji.realpath,readDirectory:(...as)=>ji.readDirectory(...as),trace:ji.trace,getCurrentDirectory:ji.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ko},Vl=t.getKeyForCompilationSettings(Pr),pl=new Set;if(gee(p,zr,Pr,(as,Gs)=>e.getScriptVersion(Gs),as=>ji.fileExists(as),or,Mr,Wr,la,$r)){ji=void 0,Sr=void 0,pl=void 0;return}p=ZM({rootNames:zr,options:Pr,host:ji,oldProgram:p,projectReferences:$r}),ji=void 0,Sr=void 0,pl=void 0,N.clearCache(),p.getTypeChecker();return;function la(as){let Gs=Ec(as,b,E),qo=Sr?.get(Gs);if(qo!==void 0)return qo||void 0;let jo=e.getParsedCommandLine?e.getParsedCommandLine(as):us(as);return(Sr||(Sr=new Map)).set(Gs,jo||!1),jo}function us(as){let Gs=el(as,100);if(Gs)return Gs.path=Ec(as,b,E),Gs.resolvedPath=Gs.path,Gs.originalFileName=Gs.fileName,DM(Gs,Ps,Qa(Ei(as),b),void 0,Qa(as,b))}function lu(as,Gs,qo){var jo;e.getParsedCommandLine?(jo=e.onReleaseParsedCommandLine)==null||jo.call(e,as,Gs,qo):Gs&&Kc(Gs.sourceFile,qo)}function Kc(as,Gs){let qo=t.getKeyForCompilationSettings(Gs);t.releaseDocumentWithKey(as.resolvedPath,qo,as.scriptKind,as.impliedNodeFormat)}function Ro(as,Gs,qo,jo){var fr;Kc(as,Gs),(fr=e.onReleaseOldSourceFile)==null||fr.call(e,as,Gs,qo,jo)}function el(as,Gs,qo,jo){return Q_(as,Ec(as,b,E),Gs,qo,jo)}function Q_(as,Gs,qo,jo,fr){I.assert(ji,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let hc=e.getScriptSnapshot(as);if(!hc)return;let uu=Zte(as,e),Cl=e.getScriptVersion(as);if(!fr){let hp=p&&p.getSourceFileByPath(Gs);if(hp){if(uu===hp.scriptKind||pl.has(hp.resolvedPath))return t.updateDocumentWithKey(as,Gs,e,Vl,hc,Cl,uu,qo);t.releaseDocumentWithKey(hp.resolvedPath,t.getKeyForCompilationSettings(p.getCompilerOptions()),hp.scriptKind,hp.impliedNodeFormat),pl.add(hp.resolvedPath)}}return t.acquireDocumentWithKey(as,Gs,e,Vl,hc,Cl,uu,qo)}}function W(){if(s===2){I.assert(p===void 0);return}return M(),p}function z(){var yt;return(yt=e.getPackageJsonAutoImportProvider)==null?void 0:yt.call(e)}function H(yt,Bt){let cr=p.getTypeChecker(),er=zr();if(!er)return!1;for(let or of yt)for(let Mr of or.references){let Wr=Pr(Mr);if(I.assertIsDefined(Wr),Bt.has(Mr)||qc.isDeclarationOfSymbol(Wr,er)){Bt.add(Mr),Mr.isDefinition=!0;let $r=wU(Mr,N,Ra(e,e.fileExists));$r&&Bt.add($r)}else Mr.isDefinition=!1}return!0;function zr(){for(let or of yt)for(let Mr of or.references){if(Bt.has(Mr)){let $r=Pr(Mr);return I.assertIsDefined($r),cr.getSymbolAtLocation($r)}let Wr=wU(Mr,N,Ra(e,e.fileExists));if(Wr&&Bt.has(Wr)){let $r=Pr(Wr);if($r)return cr.getSymbolAtLocation($r)}}}function Pr(or){let Mr=p.getSourceFile(or.fileName);if(!Mr)return;let Wr=r_(Mr,or.textSpan.start);return qc.Core.getAdjustedNode(Wr,{use:qc.FindReferencesUse.References})}}function X(){if(p){let yt=t.getKeyForCompilationSettings(p.getCompilerOptions());Ge(p.getSourceFiles(),Bt=>t.releaseDocumentWithKey(Bt.resolvedPath,yt,Bt.scriptKind,Bt.impliedNodeFormat)),p=void 0}}function ne(){X(),e=void 0}function ae(yt){return M(),p.getSyntacticDiagnostics(F(yt),x).slice()}function Y(yt){M();let Bt=F(yt),cr=p.getSemanticDiagnostics(Bt,x);if(!y_(p.getCompilerOptions()))return cr.slice();let er=p.getDeclarationDiagnostics(Bt,x);return[...cr,...er]}function Ee(yt,Bt){M();let cr=F(yt),er=p.getCompilerOptions();if(kN(cr,er,p)||!M4(cr,er)||p.getCachedSemanticDiagnostics(cr))return;let zr=fe(cr,Bt);if(!zr)return;let Pr=EK(zr.map(Mr=>Ul(Mr.getFullStart(),Mr.getEnd())));return{diagnostics:p.getSemanticDiagnostics(cr,x,zr).slice(),spans:Pr}}function fe(yt,Bt){let cr=[],er=EK(Bt.map(zr=>z1(zr)));for(let zr of er){let Pr=te(yt,zr);if(!Pr)return;cr.push(...Pr)}if(cr.length)return cr}function te(yt,Bt){if(PK(Bt,yt))return;let cr=R3(yt,ml(Bt))||yt,er=Br(cr,Pr=>U_e(Pr,Bt)),zr=[];if(de(Bt,er,zr),yt.end===Bt.start+Bt.length&&zr.push(yt.endOfFileToken),!Pt(zr,ba))return zr}function de(yt,Bt,cr){return me(Bt,yt)?PK(yt,Bt)?(ve(Bt,cr),!0):VE(Bt)?Pe(yt,Bt,cr):Ri(Bt)?Oe(yt,Bt,cr):(ve(Bt,cr),!0):!1}function me(yt,Bt){let cr=Bt.start+Bt.length;return yt.pos<cr&&yt.end>Bt.start}function ve(yt,Bt){for(;yt.parent&&!Qge(yt);)yt=yt.parent;Bt.push(yt)}function Pe(yt,Bt,cr){let er=[];return Bt.statements.filter(Pr=>de(yt,Pr,er)).length===Bt.statements.length?(ve(Bt,cr),!0):(cr.push(...er),!1)}function Oe(yt,Bt,cr){var er,zr,Pr;let or=$r=>G_e($r,yt);if((er=Bt.modifiers)!=null&&er.some(or)||Bt.name&&or(Bt.name)||(zr=Bt.typeParameters)!=null&&zr.some(or)||(Pr=Bt.heritageClauses)!=null&&Pr.some(or))return ve(Bt,cr),!0;let Mr=[];return Bt.members.filter($r=>de(yt,$r,Mr)).length===Bt.members.length?(ve(Bt,cr),!0):(cr.push(...Mr),!1)}function ie(yt){return M(),Pre(F(yt),p,x)}function Ne(){return M(),[...p.getOptionsDiagnostics(x),...p.getGlobalDiagnostics(x)]}function it(yt,Bt,cr=Vm,er){let zr={...cr,includeCompletionsForModuleExports:cr.includeCompletionsForModuleExports||cr.includeExternalModuleExports,includeCompletionsWithInsertText:cr.includeCompletionsWithInsertText||cr.includeInsertTextCompletions};return M(),eD.getCompletionsAtPosition(e,p,S,F(yt),Bt,zr,cr.triggerCharacter,cr.triggerKind,x,er&&Su.getFormatContext(er,e),cr.includeSymbol)}function ze(yt,Bt,cr,er,zr,Pr=Vm,or){return M(),eD.getCompletionEntryDetails(p,S,F(yt),Bt,{name:cr,source:zr,data:or},e,er&&Su.getFormatContext(er,e),Pr,x)}function ge(yt,Bt,cr,er,zr=Vm){return M(),eD.getCompletionEntrySymbol(p,S,F(yt),Bt,{name:cr,source:er},e,zr)}function Me(yt,Bt){M();let cr=F(yt),er=r_(cr,Bt);if(er===cr)return;let zr=p.getTypeChecker(),Pr=Tt(er),or=njt(Pr,zr);if(!or||zr.isUnknownSymbol(or)){let ji=xe(cr,Pr,Bt)?zr.getTypeAtLocation(Pr):void 0;return ji&&{kind:"",kindModifiers:"",textSpan:Lf(Pr,cr),displayParts:zr.runWithCancellationToken(x,Is=>xR(Is,ji,aC(Pr))),documentation:ji.symbol?ji.symbol.getDocumentationComment(zr):void 0,tags:ji.symbol?ji.symbol.getJsDocTags(zr):void 0}}let{symbolKind:Mr,displayParts:Wr,documentation:$r,tags:Sr}=zr.runWithCancellationToken(x,ji=>$1.getSymbolDisplayPartsDocumentationAndSymbolKind(ji,or,cr,aC(Pr),Pr));return{kind:Mr,kindModifiers:$1.getSymbolModifiers(zr,or),textSpan:Lf(Pr,cr),displayParts:Wr,documentation:$r,tags:Sr}}function Te(yt,Bt){return M(),_ie.preparePasteEdits(F(yt),Bt,p.getTypeChecker())}function gt(yt,Bt){return M(),die.pasteEditsProvider(F(yt.targetFile),yt.pastedText,yt.pasteLocations,yt.copiedFrom?{file:F(yt.copiedFrom.file),range:yt.copiedFrom.range}:void 0,e,yt.preferences,Su.getFormatContext(Bt,e),x)}function Tt(yt){return L2(yt.parent)&&yt.pos===yt.parent.pos?yt.parent.expression:ON(yt.parent)&&yt.pos===yt.parent.pos||aN(yt.parent)&&yt.parent.name===yt||Hg(yt.parent)?yt.parent:yt}function xe(yt,Bt,cr){switch(Bt.kind){case 80:return Bt.flags&16777216&&!jn(Bt)&&(Bt.parent.kind===171&&Bt.parent.name===Bt||Br(Bt,er=>er.kind===169))?!1:!vte(Bt)&&!bte(Bt)&&!_g(Bt.parent);case 211:case 166:return!q1(yt,cr);case 110:case 197:case 108:case 202:return!0;case 236:return aN(Bt);default:return!1}}function nt(yt,Bt,cr,er){return M(),wA.getDefinitionAtPosition(p,F(yt),Bt,cr,er)}function pe(yt,Bt){return M(),wA.getDefinitionAndBoundSpan(p,F(yt),Bt)}function He(yt,Bt){return M(),wA.getTypeDefinitionAtPosition(p.getTypeChecker(),F(yt),Bt)}function qe(yt,Bt){return M(),qc.getImplementationsAtPosition(p,x,p.getSourceFiles(),F(yt),Bt)}function je(yt,Bt,cr){let er=Zs(yt);I.assert(cr.some(or=>Zs(or)===er)),M();let zr=Bi(cr,or=>p.getSourceFile(or)),Pr=F(yt);return zU.getDocumentHighlights(p,x,Pr,Bt,zr)}function st(yt,Bt,cr,er,zr){M();let Pr=F(yt),or=fU(r_(Pr,Bt));if(k$.nodeIsEligibleForRename(or))if(Ye(or)&&(Vg(or.parent)||q2(or.parent))&&gN(or.escapedText)){let{openingElement:Mr,closingElement:Wr}=or.parent.parent;return[Mr,Wr].map($r=>{let Sr=Lf($r.tagName,Pr);return{fileName:Pr.fileName,textSpan:Sr,...qc.toContextSpan(Sr,Pr,$r.parent)}})}else{let Mr=H_(Pr,zr??Vm),Wr=typeof zr=="boolean"?zr:zr?.providePrefixAndSuffixTextForRename;return ar(or,Bt,{findInStrings:cr,findInComments:er,providePrefixAndSuffixTextForRename:Wr,use:qc.FindReferencesUse.Rename},($r,Sr,ji)=>qc.toRenameLocation($r,Sr,ji,Wr||!1,Mr))}}function jt(yt,Bt){return M(),ar(r_(F(yt),Bt),Bt,{use:qc.FindReferencesUse.References},qc.toReferenceEntry)}function ar(yt,Bt,cr,er){M();let zr=cr&&cr.use===qc.FindReferencesUse.Rename?p.getSourceFiles().filter(Pr=>!p.isSourceFileDefaultLibrary(Pr)):p.getSourceFiles();return qc.findReferenceOrRenameEntries(p,x,zr,yt,Bt,cr,er)}function Or(yt,Bt){return M(),qc.findReferencedSymbols(p,x,p.getSourceFiles(),F(yt),Bt)}function nn(yt){return M(),qc.Core.getReferencesForFileName(yt,p,p.getSourceFiles()).map(qc.toReferenceEntry)}function Ct(yt,Bt,cr,er=!1,zr=!1){M();let Pr=cr?[F(cr)]:p.getSourceFiles();return uze(Pr,p.getTypeChecker(),x,yt,Bt,er,zr)}function pr(yt,Bt,cr){M();let er=F(yt),zr=e.getCustomTransformers&&e.getCustomTransformers();return A0e(p,er,!!Bt,x,zr,cr)}function vn(yt,Bt,{triggerReason:cr}=Vm){M();let er=F(yt);return ZR.getSignatureHelpItems(p,er,Bt,cr,x)}function ta(yt){return l.getCurrentSourceFile(yt)}function ts(yt,Bt,cr){let er=l.getCurrentSourceFile(yt),zr=r_(er,Bt);if(zr===er)return;switch(zr.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Pr=zr;for(;;)if(cA(Pr)||K1e(Pr))Pr=Pr.parent;else if(Ste(Pr))if(Pr.parent.parent.kind===267&&Pr.parent.parent.body===Pr.parent)Pr=Pr.parent.parent.name;else break;else break;return Ul(Pr.getStart(),zr.getEnd())}function Gt(yt,Bt){let cr=l.getCurrentSourceFile(yt);return nne.spanInSourceFileAtLocation(cr,Bt)}function hi(yt){return dze(l.getCurrentSourceFile(yt),x)}function $a(yt){return mze(l.getCurrentSourceFile(yt),x)}function ui(yt,Bt,cr){return M(),(cr||"original")==="2020"?BWe(p,x,F(yt),Bt):Bbe(p.getTypeChecker(),x,F(yt),p.getClassifiableNames(),Bt)}function Wn(yt,Bt,cr){return M(),(cr||"original")==="original"?vre(p.getTypeChecker(),x,F(yt),p.getClassifiableNames(),Bt):_Se(p,x,F(yt),Bt)}function Gi(yt,Bt){return qbe(x,l.getCurrentSourceFile(yt),Bt)}function at(yt,Bt){return bre(x,l.getCurrentSourceFile(yt),Bt)}function It(yt){let Bt=l.getCurrentSourceFile(yt);return Yne.collectElements(Bt,x)}let Cr=new Map(Object.entries({19:20,21:22,23:24,32:30}));Cr.forEach((yt,Bt)=>Cr.set(yt.toString(),Number(Bt)));function wn(yt,Bt){let cr=l.getCurrentSourceFile(yt),er=pA(cr,Bt),zr=er.getStart(cr)===Bt?Cr.get(er.kind.toString()):void 0,Pr=zr&&gc(er.parent,zr,cr);return Pr?[Lf(er,cr),Lf(Pr,cr)].sort((or,Mr)=>or.start-Mr.start):ce}function Di(yt,Bt,cr){let er=xc(),zr=RR(cr),Pr=l.getCurrentSourceFile(yt);S("getIndentationAtPosition: getCurrentSourceFile: "+(xc()-er)),er=xc();let or=Su.SmartIndenter.getIndentation(Bt,Pr,zr);return S("getIndentationAtPosition: computeIndentation : "+(xc()-er)),or}function Pi(yt,Bt,cr,er){let zr=l.getCurrentSourceFile(yt);return Su.formatSelection(Bt,cr,zr,Su.getFormatContext(RR(er),e))}function da(yt,Bt){return Su.formatDocument(l.getCurrentSourceFile(yt),Su.getFormatContext(RR(Bt),e))}function ks(yt,Bt,cr,er){let zr=l.getCurrentSourceFile(yt),Pr=Su.getFormatContext(RR(er),e);if(!q1(zr,Bt))switch(cr){case"{":return Su.formatOnOpeningCurly(Bt,zr,Pr);case"}":return Su.formatOnClosingCurly(Bt,zr,Pr);case";":return Su.formatOnSemicolon(Bt,zr,Pr);case`
|
|
`:return Su.formatOnEnter(Bt,zr,Pr)}return[]}function no(yt,Bt,cr,er,zr,Pr=Vm){M();let or=F(yt),Mr=Ul(Bt,cr),Wr=Su.getFormatContext(zr,e);return li(zb(er,pv,mc),$r=>(x.throwIfCancellationRequested(),rf.getFixes({errorCode:$r,sourceFile:or,span:Mr,program:p,host:e,cancellationToken:x,formatContext:Wr,preferences:Pr})))}function Vr(yt,Bt,cr,er=Vm){M(),I.assert(yt.type==="file");let zr=F(yt.fileName),Pr=Su.getFormatContext(cr,e);return rf.getAllFixes({fixId:Bt,sourceFile:zr,program:p,host:e,cancellationToken:x,formatContext:Pr,preferences:er})}function _s(yt,Bt,cr=Vm){M(),I.assert(yt.type==="file");let er=F(yt.fileName);if(UP(er))return ce;let zr=Su.getFormatContext(Bt,e),Pr=yt.mode??(yt.skipDestructiveCodeActions?"SortAndCombine":"All");return sT.organizeImports(er,zr,e,p,cr,Pr)}function ft(yt,Bt,cr,er=Vm){return Wbe(W(),yt,Bt,e,Su.getFormatContext(cr,e),er,N)}function Qt(yt,Bt){let cr=typeof yt=="string"?Bt:yt;return cs(cr)?Promise.all(cr.map(er=>he(er))):he(cr)}function he(yt){let Bt=cr=>Ec(cr,b,E);return I.assertEqual(yt.type,"install package"),e.installPackage?e.installPackage({fileName:Bt(yt.file),packageName:yt.packageName}):Promise.reject("Host does not implement `installPackage`")}function wt(yt,Bt,cr,er){let zr=er?Su.getFormatContext(er,e).options:void 0;return aT.getDocCommentTemplateAtPosition(B0(e,zr),l.getCurrentSourceFile(yt),Bt,cr)}function oe(yt,Bt,cr){if(cr===60)return!1;let er=l.getCurrentSourceFile(yt);if(WE(er,Bt))return!1;if(rbe(er,Bt))return cr===123;if(Ete(er,Bt))return!1;switch(cr){case 39:case 34:case 96:return!q1(er,Bt)}return!0}function Ue(yt,Bt){let cr=l.getCurrentSourceFile(yt),er=Ou(Bt,cr);if(!er)return;let zr=er.kind===32&&Vg(er.parent)?er.parent.parent:hE(er)&&qh(er.parent)?er.parent:void 0;if(zr&&Xt(zr))return{newText:`</${zr.openingElement.tagName.getText(cr)}>`};let Pr=er.kind===32&&bg(er.parent)?er.parent.parent:hE(er)&&qS(er.parent)?er.parent:void 0;if(Pr&&ut(Pr))return{newText:"</>"}}function pt(yt,Bt){let cr=l.getCurrentSourceFile(yt),er=Ou(Bt,cr);if(!er||er.parent.kind===307)return;let zr="[a-zA-Z0-9:\\-\\._$]*";if(qS(er.parent.parent)){let Pr=er.parent.parent.openingFragment,or=er.parent.parent.closingFragment;if(UP(Pr)||UP(or))return;let Mr=Pr.getStart(cr)+1,Wr=or.getStart(cr)+2;return Bt!==Mr&&Bt!==Wr?void 0:{ranges:[{start:Mr,length:0},{start:Wr,length:0}],wordPattern:zr}}else{let Pr=Br(er.parent,Xs=>!!(Vg(Xs)||q2(Xs)));if(!Pr)return;I.assert(Vg(Pr)||q2(Pr),"tag should be opening or closing element");let or=Pr.parent.openingElement,Mr=Pr.parent.closingElement,Wr=or.tagName.getStart(cr),$r=or.tagName.end,Sr=Mr.tagName.getStart(cr),ji=Mr.tagName.end;return Wr===or.getStart(cr)||Sr===Mr.getStart(cr)||$r===or.getEnd()||ji===Mr.getEnd()||!(Wr<=Bt&&Bt<=$r||Sr<=Bt&&Bt<=ji)||or.tagName.getText(cr)!==Mr.tagName.getText(cr)?void 0:{ranges:[{start:Wr,length:$r-Wr},{start:Sr,length:ji-Sr}],wordPattern:zr}}}function vt(yt,Bt){return{lineStarts:yt.getLineStarts(),firstLine:yt.getLineAndCharacterOfPosition(Bt.pos).line,lastLine:yt.getLineAndCharacterOfPosition(Bt.end).line}}function $t(yt,Bt,cr){let er=l.getCurrentSourceFile(yt),zr=[],{lineStarts:Pr,firstLine:or,lastLine:Mr}=vt(er,Bt),Wr=cr||!1,$r=Number.MAX_VALUE,Sr=new Map,ji=new RegExp(/\S/),Is=dU(er,Pr[or]),Xs=Is?"{/*":"//";for(let Ps=or;Ps<=Mr;Ps++){let Vl=er.text.substring(Pr[Ps],er.getLineEndOfPosition(Pr[Ps])),pl=ji.exec(Vl);pl&&($r=Math.min($r,pl.index),Sr.set(Ps.toString(),pl.index),Vl.substr(pl.index,Xs.length)!==Xs&&(Wr=cr===void 0||cr))}for(let Ps=or;Ps<=Mr;Ps++){if(or!==Mr&&Pr[Ps]===Bt.end)continue;let Vl=Sr.get(Ps.toString());Vl!==void 0&&(Is?zr.push(...Qe(yt,{pos:Pr[Ps]+$r,end:er.getLineEndOfPosition(Pr[Ps])},Wr,Is)):Wr?zr.push({newText:Xs,span:{length:0,start:Pr[Ps]+$r}}):er.text.substr(Pr[Ps]+Vl,Xs.length)===Xs&&zr.push({newText:"",span:{length:Xs.length,start:Pr[Ps]+Vl}}))}return zr}function Qe(yt,Bt,cr,er){var zr;let Pr=l.getCurrentSourceFile(yt),or=[],{text:Mr}=Pr,Wr=!1,$r=cr||!1,Sr=[],{pos:ji}=Bt,Is=er!==void 0?er:dU(Pr,ji),Xs=Is?"{/*":"/*",Ps=Is?"*/}":"*/",Vl=Is?"\\{\\/\\*":"\\/\\*",pl=Is?"\\*\\/\\}":"\\*\\/";for(;ji<=Bt.end;){let Bl=Mr.substr(ji,Xs.length)===Xs?Xs.length:0,la=q1(Pr,ji+Bl);if(la)Is&&(la.pos--,la.end++),Sr.push(la.pos),la.kind===3&&Sr.push(la.end),Wr=!0,ji=la.end+1;else{let us=Mr.substring(ji,Bt.end).search(`(${Vl})|(${pl})`);$r=cr!==void 0?cr:$r||!_be(Mr,ji,us===-1?Bt.end:ji+us),ji=us===-1?Bt.end+1:ji+us+Ps.length}}if($r||!Wr){((zr=q1(Pr,Bt.pos))==null?void 0:zr.kind)!==2&&Mg(Sr,Bt.pos,mc),Mg(Sr,Bt.end,mc);let Bl=Sr[0];Mr.substr(Bl,Xs.length)!==Xs&&or.push({newText:Xs,span:{length:0,start:Bl}});for(let la=1;la<Sr.length-1;la++)Mr.substr(Sr[la]-Ps.length,Ps.length)!==Ps&&or.push({newText:Ps,span:{length:0,start:Sr[la]}}),Mr.substr(Sr[la],Xs.length)!==Xs&&or.push({newText:Xs,span:{length:0,start:Sr[la]}});or.length%2!==0&&or.push({newText:Ps,span:{length:0,start:Sr[Sr.length-1]}})}else for(let Bl of Sr){let la=Bl-Ps.length>0?Bl-Ps.length:0,us=Mr.substr(la,Ps.length)===Ps?Ps.length:0;or.push({newText:"",span:{length:Xs.length,start:Bl-us}})}return or}function Lt(yt,Bt){let cr=l.getCurrentSourceFile(yt),{firstLine:er,lastLine:zr}=vt(cr,Bt);return er===zr&&Bt.pos!==Bt.end?Qe(yt,Bt,!0):$t(yt,Bt,!0)}function Rt(yt,Bt){let cr=l.getCurrentSourceFile(yt),er=[],{pos:zr}=Bt,{end:Pr}=Bt;zr===Pr&&(Pr+=dU(cr,zr)?2:1);for(let or=zr;or<=Pr;or++){let Mr=q1(cr,or);if(Mr){switch(Mr.kind){case 2:er.push(...$t(yt,{end:Mr.end,pos:Mr.pos+1},!1));break;case 3:er.push(...Qe(yt,{end:Mr.end,pos:Mr.pos+1},!1))}or=Mr.end+1}}return er}function Xt({openingElement:yt,closingElement:Bt,parent:cr}){return!VS(yt.tagName,Bt.tagName)||qh(cr)&&VS(yt.tagName,cr.openingElement.tagName)&&Xt(cr)}function ut({closingFragment:yt,parent:Bt}){return!!(yt.flags&262144)||qS(Bt)&&ut(Bt)}function lr(yt,Bt,cr){let er=l.getCurrentSourceFile(yt),zr=Su.getRangeOfEnclosingComment(er,Bt);return zr&&(!cr||zr.kind===3)?z1(zr):void 0}function In(yt,Bt){M();let cr=F(yt);x.throwIfCancellationRequested();let er=cr.text,zr=[];if(Bt.length>0&&!Wr(cr.fileName)){let $r=or(),Sr;for(;Sr=$r.exec(er);){x.throwIfCancellationRequested();let ji=3;I.assert(Sr.length===Bt.length+ji);let Is=Sr[1],Xs=Sr.index+Is.length;if(!q1(cr,Xs))continue;let Ps;for(let pl=0;pl<Bt.length;pl++)Sr[pl+ji]&&(Ps=Bt[pl]);if(Ps===void 0)return I.fail();if(Mr(er.charCodeAt(Xs+Ps.text.length)))continue;let Vl=Sr[2];zr.push({descriptor:Ps,message:Vl,position:Xs})}}return zr;function Pr($r){return $r.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function or(){let $r=/(?:\/{2,}\s*)/.source,Sr=/(?:\/\*+\s*)/.source,Is="("+/(?:^(?:\s|\*)*)/.source+"|"+$r+"|"+Sr+")",Xs="(?:"+Dt(Bt,la=>"("+Pr(la.text)+")").join("|")+")",Ps=/(?:$|\*\/)/.source,Vl=/(?:.*?)/.source,pl="("+Xs+Vl+")",Bl=Is+pl+Ps;return new RegExp(Bl,"gim")}function Mr($r){return $r>=97&&$r<=122||$r>=65&&$r<=90||$r>=48&&$r<=57}function Wr($r){return $r.includes("/node_modules/")}}function We(yt,Bt,cr){return M(),k$.getRenameInfo(p,F(yt),Bt,cr||{})}function qt(yt,Bt,cr,er,zr,Pr){let[or,Mr]=typeof Bt=="number"?[Bt,void 0]:[Bt.pos,Bt.end];return{file:yt,startPosition:or,endPosition:Mr,program:W(),host:e,formatContext:Su.getFormatContext(er,e),cancellationToken:x,preferences:cr,triggerReason:zr,kind:Pr}}function ke(yt,Bt,cr){return{file:yt,program:W(),host:e,span:Bt,preferences:cr,cancellationToken:x}}function $(yt,Bt){return tie.getSmartSelectionRange(Bt,l.getCurrentSourceFile(yt))}function Ke(yt,Bt,cr=Vm,er,zr,Pr){M();let or=F(yt);return GE.getApplicableRefactors(qt(or,Bt,cr,Vm,er,zr),Pr)}function re(yt,Bt,cr=Vm){M();let er=F(yt),zr=I.checkDefined(p.getSourceFiles()),Pr=I4(yt),or=FR(qt(er,Bt,cr,Vm)),Mr=Ixe(or?.all),Wr=Bi(zr,$r=>{let Sr=I4($r.fileName);return!p?.isSourceFileFromExternalLibrary(er)&&!(er===F($r.fileName)||Pr===".ts"&&Sr===".d.ts"||Pr===".d.ts"&&La(gu($r.fileName),"lib.")&&Sr===".d.ts")&&(Pr===Sr||(Pr===".tsx"&&Sr===".ts"||Pr===".jsx"&&Sr===".js")&&!Mr)?$r.fileName:void 0});return{newFileName:Axe(er,p,e,or),files:Wr}}function Ft(yt,Bt,cr,er,zr,Pr=Vm,or){M();let Mr=F(yt);return GE.getEditsForRefactor(qt(Mr,cr,Pr,Bt),er,zr,or)}function rr(yt,Bt){return Bt===0?{line:0,character:0}:N.toLineColumnOffset(yt,Bt)}function Le(yt,Bt){M();let cr=KE.resolveCallHierarchyDeclaration(p,r_(F(yt),Bt));return cr&&ure(cr,er=>KE.createCallHierarchyItem(p,er))}function kt(yt,Bt){M();let cr=F(yt),er=pre(KE.resolveCallHierarchyDeclaration(p,Bt===0?cr:r_(cr,Bt)));return er?KE.getIncomingCalls(p,er,x):[]}function dr(yt,Bt){M();let cr=F(yt),er=pre(KE.resolveCallHierarchyDeclaration(p,Bt===0?cr:r_(cr,Bt)));return er?KE.getOutgoingCalls(p,er):[]}function kn(yt,Bt,cr=Vm){M();let er=F(yt);return Kne.provideInlayHints(ke(er,Bt,cr))}function Kr(yt,Bt,cr,er,zr){return Qne.mapCode(l.getCurrentSourceFile(yt),Bt,cr,e,Su.getFormatContext(er,e),zr)}let yn={dispose:ne,cleanupSemanticCache:X,getSyntacticDiagnostics:ae,getSemanticDiagnostics:Y,getRegionSemanticDiagnostics:Ee,getSuggestionDiagnostics:ie,getCompilerOptionsDiagnostics:Ne,getSyntacticClassifications:Gi,getSemanticClassifications:ui,getEncodedSyntacticClassifications:at,getEncodedSemanticClassifications:Wn,getCompletionsAtPosition:it,getCompletionEntryDetails:ze,getCompletionEntrySymbol:ge,getSignatureHelpItems:vn,getQuickInfoAtPosition:Me,getDefinitionAtPosition:nt,getDefinitionAndBoundSpan:pe,getImplementationAtPosition:qe,getTypeDefinitionAtPosition:He,getReferencesAtPosition:jt,findReferences:Or,getFileReferences:nn,getDocumentHighlights:je,getNameOrDottedNameSpan:ts,getBreakpointStatementAtPosition:Gt,getNavigateToItems:Ct,getRenameInfo:We,getSmartSelectionRange:$,findRenameLocations:st,getNavigationBarItems:hi,getNavigationTree:$a,getOutliningSpans:It,getTodoComments:In,getBraceMatchingAtPosition:wn,getIndentationAtPosition:Di,getFormattingEditsForRange:Pi,getFormattingEditsForDocument:da,getFormattingEditsAfterKeystroke:ks,getDocCommentTemplateAtPosition:wt,isValidBraceCompletionAtPosition:oe,getJsxClosingTagAtPosition:Ue,getLinkedEditingRangeAtPosition:pt,getSpanOfEnclosingComment:lr,getCodeFixesAtPosition:no,getCombinedCodeFix:Vr,applyCodeActionCommand:Qt,organizeImports:_s,getEditsForFileRename:ft,getEmitOutput:pr,getNonBoundSourceFile:ta,getProgram:W,getCurrentProgram:()=>p,getAutoImportProvider:z,updateIsDefinitionOfReferencedSymbols:H,getApplicableRefactors:Ke,getEditsForRefactor:Ft,getMoveToRefactoringFileSuggestions:re,toLineColumnOffset:rr,getSourceMapper:()=>N,clearSourceMapperCache:()=>N.clearCache(),prepareCallHierarchy:Le,provideCallHierarchyIncomingCalls:kt,provideCallHierarchyOutgoingCalls:dr,toggleLineComment:$t,toggleMultilineComment:Qe,commentSelection:Lt,uncommentSelection:Rt,provideInlayHints:kn,getSupportedCodeFixes:ene,preparePasteEditsForFile:Te,getPasteEdits:gt,mapCode:Kr};switch(s){case 0:break;case 1:YWe.forEach(yt=>yn[yt]=()=>{throw new Error(`LanguageService Operation: ${yt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:ZRt.forEach(yt=>yn[yt]=()=>{throw new Error(`LanguageService Operation: ${yt} not allowed in LanguageServiceMode.Syntactic`)});break;default:I.assertNever(s)}return yn}function rne(e){return e.nameTable||ejt(e),e.nameTable}function ejt(e){let t=e.nameTable=new Map;e.forEachChild(function n(i){if(Ye(i)&&!bte(i)&&i.escapedText||Dd(i)&&tjt(i)){let s=g4(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Ca(i)){let s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(xs(i,n),fd(i))for(let s of i.jsDoc)xs(s,n)})}function tjt(e){return Ny(e)||e.parent.kind===283||ijt(e)||b5(e)}function LR(e){let t=rjt(e);return t&&(So(t.parent)||J2(t.parent))?t:void 0}function rjt(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return QK(e.parent.parent)?e.parent.parent:void 0;case 80:return QK(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function njt(e,t){let n=LR(e);if(n){let i=t.getContextualType(n.parent),s=i&&a$(n,t,i,!1);if(s&&s.length===1)return ho(s)}return t.getSymbolAtLocation(e)}function a$(e,t,n,i){let s=yR(e.name);if(!s)return ce;if(!n.isUnion()){let g=n.getProperty(s);return g?[g]:ce}let l=So(e.parent)||J2(e.parent)?Cn(n.types,g=>!t.isTypeInvalidDueToUnionDiscriminant(g,e.parent)):n.types,p=Bi(l,g=>g.getProperty(s));if(i&&(p.length===0||p.length===n.types.length)){let g=n.getProperty(s);if(g)return[g]}return!l.length&&!p.length?Bi(n.types,g=>g.getProperty(s)):zb(p,pv)}function ijt(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function ySe(e){if(Ru)return gi(Ei(Zs(Ru.getExecutingFilePath())),xF(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}mge(KRt());function ZWe(e,t,n){let i=[];n=Nre(n,i);let s=cs(e)?e:[e],l=$M(void 0,void 0,j,n,s,t,!0);return l.diagnostics=ya(l.diagnostics,i),l}var nne={};w(nne,{spanInSourceFileAtLocation:()=>ajt});function ajt(e,t){if(e.isDeclarationFile)return;let n=ca(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>i){let S=Ou(n.pos,e);if(!S||e.getLineAndCharacterOfPosition(S.getEnd()).line!==i)return;n=S}if(n.flags&33554432)return;return b(n);function s(S,P){let E=U2(S)?Ks(S.modifiers,qu):void 0,N=E?yo(e.text,E.end):S.getStart(e);return Ul(N,(P||S).getEnd())}function l(S,P){return s(S,Y2(P,P.parent,e))}function p(S,P){return S&&i===e.getLineAndCharacterOfPosition(S.getStart(e)).line?b(S):b(P)}function g(S,P,E){if(S){let N=S.indexOf(P);if(N>=0){let F=N,M=N+1;for(;F>0&&E(S[F-1]);)F--;for(;M<S.length&&E(S[M]);)M++;return Ul(yo(e.text,S[F].pos),S[M-1].end)}}return s(P)}function m(S){return b(Ou(S.pos,e))}function x(S){return b(Y2(S,S.parent,e))}function b(S){if(S){let{parent:ie}=S;switch(S.kind){case 243:return E(S.declarationList.declarations[0]);case 260:case 172:case 171:return E(S);case 169:return F(S);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return L(S);case 241:if(y2(S))return W(S);case 268:return z(S);case 299:return z(S.block);case 244:return s(S.expression);case 253:return s(S.getChildAt(0),S.expression);case 247:return l(S,S.expression);case 246:return b(S.statement);case 259:return s(S.getChildAt(0));case 245:return l(S,S.expression);case 256:return b(S.statement);case 252:case 251:return s(S.getChildAt(0),S.label);case 248:return X(S);case 249:return l(S,S.expression);case 250:return H(S);case 255:return l(S,S.expression);case 296:case 297:return b(S.statements[0]);case 258:return z(S.tryBlock);case 257:return s(S,S.expression);case 277:return s(S,S.expression);case 271:return s(S,S.moduleReference);case 272:return s(S,S.moduleSpecifier);case 278:return s(S,S.moduleSpecifier);case 267:if(j0(S)!==1)return;case 263:case 266:case 306:case 208:return s(S);case 254:return b(S.statement);case 170:return g(ie.modifiers,S,qu);case 206:case 207:return ne(S);case 264:case 265:return;case 27:case 1:return p(Ou(S.pos,e));case 28:return m(S);case 19:return Y(S);case 20:return Ee(S);case 24:return fe(S);case 21:return te(S);case 22:return de(S);case 59:return me(S);case 32:case 30:return ve(S);case 117:return Pe(S);case 93:case 85:case 98:return x(S);case 165:return Oe(S);default:if(J1(S))return ae(S);if((S.kind===80||S.kind===230||S.kind===303||S.kind===304)&&J1(ie))return s(S);if(S.kind===226){let{left:Ne,operatorToken:it}=S;if(J1(Ne))return ae(Ne);if(it.kind===64&&J1(S.parent))return s(S);if(it.kind===28)return b(Ne)}if(zg(S))switch(ie.kind){case 246:return m(S);case 170:return b(S.parent);case 248:case 250:return s(S);case 226:if(S.parent.operatorToken.kind===28)return s(S);break;case 219:if(S.parent.body===S)return s(S);break}switch(S.parent.kind){case 303:if(S.parent.name===S&&!J1(S.parent.parent))return b(S.parent.initializer);break;case 216:if(S.parent.type===S)return x(S.parent.type);break;case 260:case 169:{let{initializer:Ne,type:it}=S.parent;if(Ne===S||it===S||O0(S.kind))return m(S);break}case 226:{let{left:Ne}=S.parent;if(J1(Ne)&&S!==Ne)return m(S);break}default:if(Ss(S.parent)&&S.parent.type===S)return m(S)}return b(S.parent)}}function P(ie){return mp(ie.parent)&&ie.parent.declarations[0]===ie?s(Ou(ie.pos,e,ie.parent),ie):s(ie)}function E(ie){if(ie.parent.parent.kind===249)return b(ie.parent.parent);let Ne=ie.parent;if(Os(ie.name))return ne(ie.name);if(xk(ie)&&ie.initializer||Ai(ie,32)||Ne.parent.kind===250)return P(ie);if(mp(ie.parent)&&ie.parent.declarations[0]!==ie)return b(Ou(ie.pos,e,ie.parent))}function N(ie){return!!ie.initializer||ie.dotDotDotToken!==void 0||Ai(ie,3)}function F(ie){if(Os(ie.name))return ne(ie.name);if(N(ie))return s(ie);{let Ne=ie.parent,it=Ne.parameters.indexOf(ie);return I.assert(it!==-1),it!==0?F(Ne.parameters[it-1]):b(Ne.body)}}function M(ie){return Ai(ie,32)||ie.parent.kind===263&&ie.kind!==176}function L(ie){if(ie.body)return M(ie)?s(ie):b(ie.body)}function W(ie){let Ne=ie.statements.length?ie.statements[0]:ie.getLastToken();return M(ie.parent)?p(ie.parent,Ne):b(Ne)}function z(ie){switch(ie.parent.kind){case 267:if(j0(ie.parent)!==1)return;case 247:case 245:case 249:return p(ie.parent,ie.statements[0]);case 248:case 250:return p(Ou(ie.pos,e,ie.parent),ie.statements[0])}return b(ie.statements[0])}function H(ie){if(ie.initializer.kind===261){let Ne=ie.initializer;if(Ne.declarations.length>0)return b(Ne.declarations[0])}else return b(ie.initializer)}function X(ie){if(ie.initializer)return H(ie);if(ie.condition)return s(ie.condition);if(ie.incrementor)return s(ie.incrementor)}function ne(ie){let Ne=Ge(ie.elements,it=>it.kind!==232?it:void 0);return Ne?b(Ne):ie.parent.kind===208?s(ie.parent):P(ie.parent)}function ae(ie){I.assert(ie.kind!==207&&ie.kind!==206);let Ne=ie.kind===209?ie.elements:ie.properties,it=Ge(Ne,ze=>ze.kind!==232?ze:void 0);return it?b(it):s(ie.parent.kind===226?ie.parent:ie)}function Y(ie){switch(ie.parent.kind){case 266:let Ne=ie.parent;return p(Ou(ie.pos,e,ie.parent),Ne.members.length?Ne.members[0]:Ne.getLastToken(e));case 263:let it=ie.parent;return p(Ou(ie.pos,e,ie.parent),it.members.length?it.members[0]:it.getLastToken(e));case 269:return p(ie.parent.parent,ie.parent.clauses[0])}return b(ie.parent)}function Ee(ie){switch(ie.parent.kind){case 268:if(j0(ie.parent.parent)!==1)return;case 266:case 263:return s(ie);case 241:if(y2(ie.parent))return s(ie);case 299:return b(dc(ie.parent.statements));case 269:let Ne=ie.parent,it=dc(Ne.clauses);return it?b(dc(it.statements)):void 0;case 206:let ze=ie.parent;return b(dc(ze.elements)||ze);default:if(J1(ie.parent)){let ge=ie.parent;return s(dc(ge.properties)||ge)}return b(ie.parent)}}function fe(ie){switch(ie.parent.kind){case 207:let Ne=ie.parent;return s(dc(Ne.elements)||Ne);default:if(J1(ie.parent)){let it=ie.parent;return s(dc(it.elements)||it)}return b(ie.parent)}}function te(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?m(ie):ie.parent.kind===217?x(ie):b(ie.parent)}function de(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return m(ie);default:return b(ie.parent)}}function me(ie){return Ss(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?m(ie):b(ie.parent)}function ve(ie){return ie.parent.kind===216?x(ie):b(ie.parent)}function Pe(ie){return ie.parent.kind===246?l(ie,ie.parent.expression):b(ie.parent)}function Oe(ie){return ie.parent.kind===250?x(ie):b(ie.parent)}}}var KE={};w(KE,{createCallHierarchyItem:()=>vSe,getIncomingCalls:()=>_jt,getOutgoingCalls:()=>Tjt,resolveCallHierarchyDeclaration:()=>oUe});function sjt(e){return(Ic(e)||vu(e))&&Gu(e)}function eUe(e){return is(e)||Ui(e)}function BR(e){return(Ic(e)||Bc(e)||vu(e))&&eUe(e.parent)&&e===e.parent.initializer&&Ye(e.parent.name)&&(!!(w0(e.parent)&2)||is(e.parent))}function tUe(e){return ba(e)||cu(e)||jl(e)||Ic(e)||bu(e)||vu(e)||Al(e)||wl(e)||yg(e)||mm(e)||v_(e)}function xA(e){return ba(e)||cu(e)&&Ye(e.name)||jl(e)||bu(e)||Al(e)||wl(e)||yg(e)||mm(e)||v_(e)||sjt(e)||BR(e)}function rUe(e){return ba(e)?e:Gu(e)?e.name:BR(e)?e.parent.name:I.checkDefined(e.modifiers&&Ir(e.modifiers,nUe))}function nUe(e){return e.kind===90}function iUe(e,t){let n=rUe(t);return n&&e.getSymbolAtLocation(n)}function ojt(e,t){if(ba(t))return{text:t.fileName,pos:0,end:0};if((jl(t)||bu(t))&&!Gu(t)){let s=t.modifiers&&Ir(t.modifiers,nUe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(Al(t)){let s=t.getSourceFile(),l=yo(s.text,Fh(t).pos),p=l+6,g=e.getTypeChecker(),m=g.getSymbolAtLocation(t.parent);return{text:`${m?`${g.symbolToString(m,t.parent)} `:""}static {}`,pos:l,end:p}}let n=BR(t)?t.parent.name:I.checkDefined(ls(t),"Expected call hierarchy item to have a name"),i=Ye(n)?fi(n):Dd(n)?n.text:po(n)&&Dd(n.expression)?n.expression.text:void 0;if(i===void 0){let s=e.getTypeChecker(),l=s.getSymbolAtLocation(n);l&&(i=s.symbolToString(l,t))}if(i===void 0){let s=ree();i=eN(l=>s.writeNode(4,t,t.getSourceFile(),l))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function cjt(e){var t,n,i,s;if(BR(e))return is(e.parent)&&Ri(e.parent.parent)?vu(e.parent.parent)?(t=oq(e.parent.parent))==null?void 0:t.getText():(n=e.parent.parent.name)==null?void 0:n.getText():Lh(e.parent.parent.parent.parent)&&Ye(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=oq(e.parent))==null?void 0:i.getText():(s=ls(e.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(Lh(e.parent)&&Ye(e.parent.parent.name))return e.parent.parent.name.getText()}}function aUe(e,t){if(t.body)return t;if(ul(t))return Dv(t.parent);if(jl(t)||wl(t)){let n=iUe(e,t);return n&&n.valueDeclaration&&Dc(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function sUe(e,t){let n=iUe(e,t),i;if(n&&n.declarations){let s=pI(n.declarations),l=Dt(n.declarations,m=>({file:m.getSourceFile().fileName,pos:m.pos}));s.sort((m,x)=>fp(l[m].file,l[x].file)||l[m].pos-l[x].pos);let p=Dt(s,m=>n.declarations[m]),g;for(let m of p)xA(m)&&((!g||g.parent!==m.parent||g.end!==m.pos)&&(i=Zr(i,m)),g=m)}return i}function ine(e,t){return Al(t)?t:Dc(t)?aUe(e,t)??sUe(e,t)??t:sUe(e,t)??t}function oUe(e,t){let n=e.getTypeChecker(),i=!1;for(;;){if(xA(t))return ine(n,t);if(tUe(t)){let s=Br(t,xA);return s&&ine(n,s)}if(Ny(t)){if(xA(t.parent))return ine(n,t.parent);if(tUe(t.parent)){let s=Br(t.parent,xA);return s&&ine(n,s)}return eUe(t.parent)&&t.parent.initializer&&BR(t.parent.initializer)?t.parent.initializer:void 0}if(ul(t))return xA(t.parent)?t.parent:void 0;if(t.kind===126&&Al(t.parent)){t=t.parent;continue}if(Ui(t)&&t.initializer&&BR(t.initializer))return t.initializer;if(!i){let s=n.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=n.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function vSe(e,t){let n=t.getSourceFile(),i=ojt(e,t),s=cjt(t),l=X2(t),p=j3(t),g=Ul(yo(n.text,t.getFullStart(),!1,!0),t.getEnd()),m=Ul(i.pos,i.end);return{file:n.fileName,kind:l,kindModifiers:p,name:i.text,containerName:s,span:g,selectionSpan:m}}function ljt(e){return e!==void 0}function ujt(e){if(e.kind===qc.EntryKind.Node){let{node:t}=e;if(gte(t,!0,!0)||V1e(t,!0,!0)||H1e(t,!0,!0)||G1e(t,!0,!0)||cA(t)||xte(t)){let n=t.getSourceFile();return{declaration:Br(t,xA)||n,range:Rte(t,n)}}}}function cUe(e){return Wo(e.declaration)}function pjt(e,t){return{from:e,fromSpans:t}}function fjt(e,t){return pjt(vSe(e,t[0].declaration),Dt(t,n=>z1(n.range)))}function _jt(e,t,n){if(ba(t)||cu(t)||Al(t))return[];let i=rUe(t),s=Cn(qc.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:qc.FindReferencesUse.References},ujt),ljt);return s?dS(s,cUe,l=>fjt(e,l)):[]}function djt(e,t){function n(s){let l=RS(s)?s.tag:Qp(s)?s.tagName:Lc(s)||Al(s)?s:s.expression,p=oUe(e,l);if(p){let g=Rte(l,s.getSourceFile());if(cs(p))for(let m of p)t.push({declaration:m,range:g});else t.push({declaration:p,range:g})}}function i(s){if(s&&!(s.flags&33554432)){if(xA(s)){if(Ri(s))for(let l of s.members)l.name&&po(l.name)&&i(l.name.expression);return}switch(s.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:n(s);return;case 216:case 234:i(s.expression);return;case 260:case 169:i(s.name),i(s.initializer);return;case 213:n(s),i(s.expression),Ge(s.arguments,i);return;case 214:n(s),i(s.expression),Ge(s.arguments,i);return;case 215:n(s),i(s.tag),i(s.template);return;case 286:case 285:n(s),i(s.tagName),i(s.attributes);return;case 170:n(s),i(s.expression);return;case 211:case 212:n(s),xs(s,i);break;case 238:i(s.expression);return}Eh(s)||xs(s,i)}}return i}function mjt(e,t){Ge(e.statements,t)}function gjt(e,t){!Ai(e,128)&&e.body&&Lh(e.body)&&Ge(e.body.statements,t)}function hjt(e,t,n){let i=aUe(e,t);i&&(Ge(i.parameters,n),n(i.body))}function yjt(e,t){t(e.body)}function vjt(e,t){Ge(e.modifiers,t);let n=w2(e);n&&t(n.expression);for(let i of e.members)$m(i)&&Ge(i.modifiers,t),is(i)?t(i.initializer):ul(i)&&i.body?(Ge(i.parameters,t),t(i.body)):Al(i)&&t(i)}function bjt(e,t){let n=[],i=djt(e,n);switch(t.kind){case 307:mjt(t,i);break;case 267:gjt(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:hjt(e.getTypeChecker(),t,i);break;case 263:case 231:vjt(t,i);break;case 175:yjt(t,i);break;default:I.assertNever(t)}return n}function xjt(e,t){return{to:e,fromSpans:t}}function Sjt(e,t){return xjt(vSe(e,t[0].declaration),Dt(t,n=>z1(n.range)))}function Tjt(e,t){return t.flags&33554432||yg(t)?[]:dS(bjt(e,t),cUe,n=>Sjt(e,n))}var bSe={};w(bSe,{v2020:()=>lUe});var lUe={};w(lUe,{TokenEncodingConsts:()=>RWe,TokenModifier:()=>LWe,TokenType:()=>jWe,getEncodedSemanticClassifications:()=>_Se,getSemanticClassifications:()=>BWe});var rf={};w(rf,{PreserveOptionalFlags:()=>TGe,addNewNodeForMemberSymbol:()=>wGe,codeFixAll:()=>uc,createCodeFixAction:()=>Bs,createCodeFixActionMaybeFixAll:()=>TSe,createCodeFixActionWithoutFixAll:()=>Yg,createCombinedCodeActions:()=>QE,createFileTextChanges:()=>uUe,createImportAdder:()=>aw,createImportSpecifierResolver:()=>ALt,createMissingMemberNodes:()=>UTe,createSignatureDeclarationFromCallExpression:()=>$Te,createSignatureDeclarationFromSignature:()=>One,createStubbedBody:()=>f$,eachDiagnostic:()=>XE,findAncestorMatchingSpan:()=>YTe,generateAccessorFromProperty:()=>AGe,getAccessorConvertiblePropertyAtPosition:()=>MGe,getAllFixes:()=>Pjt,getAllSupers:()=>ZTe,getFixes:()=>Cjt,getImportCompletionAction:()=>ILt,getImportKind:()=>mne,getJSDocTypedefNodes:()=>OLt,getNoopSymbolTrackerWithResolver:()=>TA,getPromoteTypeOnlyCompletionAction:()=>FLt,getSupportedErrorCodes:()=>wjt,importFixName:()=>A$e,importSymbols:()=>cC,parameterShouldGetTypeFromJSDoc:()=>JUe,registerCodeFix:()=>ro,setJsonCompilerOptionValue:()=>QTe,setJsonCompilerOptionValues:()=>KTe,tryGetAutoImportableReferenceFromTypeNode:()=>sw,typeNodeToAutoImportableTypeNode:()=>VTe,typePredicateToAutoImportableTypeNode:()=>PGe,typeToAutoImportableTypeNode:()=>Nne,typeToMinimizedReferenceType:()=>CGe});var xSe=Zl(),SSe=new Map;function Yg(e,t,n){return wSe(e,ew(n),t,void 0,void 0)}function Bs(e,t,n,i,s,l){return wSe(e,ew(n),t,i,ew(s),l)}function TSe(e,t,n,i,s,l){return wSe(e,ew(n),t,i,s&&ew(s),l)}function wSe(e,t,n,i,s,l){return{fixName:e,description:t,changes:n,fixId:i,fixAllDescription:s,commands:l?[l]:void 0}}function ro(e){for(let t of e.errorCodes)kSe=void 0,xSe.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)I.assert(!SSe.has(t)),SSe.set(t,e)}var kSe;function wjt(){return kSe??(kSe=Ka(xSe.keys()))}function kjt(e,t){let{errorCodes:n}=e,i=0;for(let l of t)if(Ta(n,l.code)&&i++,i>1)break;let s=i<2;return({fixId:l,fixAllDescription:p,...g})=>s?g:{...g,fixId:l,fixAllDescription:p}}function Cjt(e){let t=pUe(e),n=xSe.get(String(e.errorCode));return li(n,i=>Dt(i.getCodeActions(e),kjt(i,t)))}function Pjt(e){return SSe.get(Js(e.fixId,Ua)).getAllCodeActions(e)}function QE(e,t){return{changes:e,commands:t}}function uUe(e,t){return{fileName:e,textChanges:t}}function uc(e,t,n){let i=[],s=Ln.ChangeTracker.with(e,l=>XE(e,t,p=>n(l,p,i)));return QE(s,i.length===0?void 0:i)}function XE(e,t,n){for(let i of pUe(e))Ta(t,i.code)&&n(i)}function pUe({program:e,sourceFile:t,cancellationToken:n}){let i=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...Pre(t,e,n)];return y_(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,n)),i}var CSe="addConvertToUnknownForNonOverlappingTypes",fUe=[y.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];ro({errorCodes:fUe,getCodeActions:function(t){let n=dUe(t.sourceFile,t.span.start);if(n===void 0)return;let i=Ln.ChangeTracker.with(t,s=>_Ue(s,t.sourceFile,n));return[Bs(CSe,i,y.Add_unknown_conversion_for_non_overlapping_types,CSe,y.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[CSe],getAllCodeActions:e=>uc(e,fUe,(t,n)=>{let i=dUe(n.file,n.start);i&&_Ue(t,n.file,i)})});function _Ue(e,t,n){let i=AN(n)?j.createAsExpression(n.expression,j.createKeywordTypeNode(159)):j.createTypeAssertion(j.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function dUe(e,t){if(!jn(e))return Br(ca(e,t),n=>AN(n)||yz(n))}ro({errorCodes:[y.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,y.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,y.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:n}=t,i=Ln.ChangeTracker.with(t,s=>{let l=j.createExportDeclaration(void 0,!1,j.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,l)});return[Yg("addEmptyExportDeclaration",i,y.Add_export_to_make_this_file_into_a_module)]}});var PSe="addMissingAsync",mUe=[y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,y.Type_0_is_not_assignable_to_type_1.code,y.Type_0_is_not_comparable_to_type_1.code];ro({fixIds:[PSe],errorCodes:mUe,getCodeActions:function(t){let{sourceFile:n,errorCode:i,cancellationToken:s,program:l,span:p}=t,g=Ir(l.getTypeChecker().getDiagnostics(n,s),Djt(p,i)),m=g&&g.relatedInformation&&Ir(g.relatedInformation,S=>S.code===y.Did_you_mean_to_mark_this_function_as_async.code),x=hUe(n,m);return x?[gUe(t,x,S=>Ln.ChangeTracker.with(t,S))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,n=new Set;return uc(e,mUe,(i,s)=>{let l=s.relatedInformation&&Ir(s.relatedInformation,m=>m.code===y.Did_you_mean_to_mark_this_function_as_async.code),p=hUe(t,l);return p?gUe(e,p,m=>(m(i),[]),n):void 0})}});function gUe(e,t,n,i){let s=n(l=>Ejt(l,e.sourceFile,t,i));return Bs(PSe,s,y.Add_async_modifier_to_containing_function,PSe,y.Add_all_missing_async_modifiers)}function Ejt(e,t,n,i){if(i&&i.has(Wo(n)))return;i?.add(Wo(n));let s=j.replaceModifiers(tc(n,!0),j.createNodeArray(j.createModifiersFromModifierFlags(E1(n)|1024)));e.replaceNode(t,n,s)}function hUe(e,t){if(!t)return;let n=ca(e,t.start);return Br(n,s=>s.getStart(e)<t.start||s.getEnd()>ml(t)?"quit":(Bc(s)||wl(s)||Ic(s)||jl(s))&&dA(t,Lf(s,e)))}function Djt(e,t){return({start:n,length:i,relatedInformation:s,code:l})=>nm(n)&&nm(i)&&dA({start:n,length:i},e)&&l===t&&!!s&&Pt(s,p=>p.code===y.Did_you_mean_to_mark_this_function_as_async.code)}var ESe="addMissingAwait",yUe=y.Property_0_does_not_exist_on_type_1.code,vUe=[y.This_expression_is_not_callable.code,y.This_expression_is_not_constructable.code],DSe=[y.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,y.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,y.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,y.Operator_0_cannot_be_applied_to_type_1.code,y.Operator_0_cannot_be_applied_to_types_1_and_2.code,y.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,y.This_condition_will_always_return_true_since_this_0_is_always_defined.code,y.Type_0_is_not_an_array_type.code,y.Type_0_is_not_an_array_type_or_a_string_type.code,y.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,y.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,y.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,y.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,y.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,yUe,...vUe];ro({fixIds:[ESe],errorCodes:DSe,getCodeActions:function(t){let{sourceFile:n,errorCode:i,span:s,cancellationToken:l,program:p}=t,g=bUe(n,i,s,l,p);if(!g)return;let m=t.program.getTypeChecker(),x=b=>Ln.ChangeTracker.with(t,b);return PO([xUe(t,g,i,m,x),SUe(t,g,i,m,x)])},getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),l=new Set;return uc(e,DSe,(p,g)=>{let m=bUe(t,g.code,g,i,n);if(!m)return;let x=b=>(b(p),[]);return xUe(e,m,g.code,s,x,l)||SUe(e,m,g.code,s,x,l)})}});function bUe(e,t,n,i,s){let l=lre(e,n);return l&&Ojt(e,t,n,i,s)&&TUe(l)?l:void 0}function xUe(e,t,n,i,s,l){let{sourceFile:p,program:g,cancellationToken:m}=e,x=Njt(t,p,m,g,i);if(x){let b=s(S=>{Ge(x.initializers,({expression:P})=>OSe(S,n,p,i,P,l)),l&&x.needsSecondPassForFixAll&&OSe(S,n,p,i,t,l)});return Yg("addMissingAwaitToInitializer",b,x.initializers.length===1?[y.Add_await_to_initializer_for_0,x.initializers[0].declarationSymbol.name]:y.Add_await_to_initializers)}}function SUe(e,t,n,i,s,l){let p=s(g=>OSe(g,n,e.sourceFile,i,t,l));return Bs(ESe,p,y.Add_await,ESe,y.Fix_all_expressions_possibly_missing_await)}function Ojt(e,t,n,i,s){let p=s.getTypeChecker().getDiagnostics(e,i);return Pt(p,({start:g,length:m,relatedInformation:x,code:b})=>nm(g)&&nm(m)&&dA({start:g,length:m},n)&&b===t&&!!x&&Pt(x,S=>S.code===y.Did_you_forget_to_use_await.code))}function Njt(e,t,n,i,s){let l=Ajt(e,s);if(!l)return;let p=l.isCompleteFix,g;for(let m of l.identifiers){let x=s.getSymbolAtLocation(m);if(!x)continue;let b=_i(x.valueDeclaration,Ui),S=b&&_i(b.name,Ye),P=DS(b,243);if(!b||!P||b.type||!b.initializer||P.getSourceFile()!==t||Ai(P,32)||!S||!TUe(b.initializer)){p=!1;continue}let E=i.getSemanticDiagnostics(t,n);if(qc.Core.eachSymbolReferenceInFile(S,s,t,F=>m!==F&&!Ijt(F,E,t,s))){p=!1;continue}(g||(g=[])).push({expression:b.initializer,declarationSymbol:x})}return g&&{initializers:g,needsSecondPassForFixAll:!p}}function Ajt(e,t){if(ai(e.parent)&&Ye(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ye(e))return{identifiers:[e],isCompleteFix:!0};if(Vn(e)){let n,i=!0;for(let s of[e.left,e.right]){let l=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(l)){if(!Ye(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function Ijt(e,t,n,i){let s=ai(e.parent)?e.parent.name:Vn(e.parent)?e.parent:e,l=Ir(t,p=>p.start===s.getStart(n)&&p.start+p.length===s.getEnd());return l&&Ta(DSe,l.code)||i.getTypeAtLocation(s).flags&1}function TUe(e){return e.flags&65536||!!Br(e,t=>t.parent&&Bc(t.parent)&&t.parent.body===t||Cs(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function OSe(e,t,n,i,s,l){if(uM(s.parent)&&!s.parent.awaitModifier){let p=i.getTypeAtLocation(s),g=i.getAnyAsyncIterableType();if(g&&i.isTypeAssignableTo(p,g)){let m=s.parent;e.replaceNode(n,m,j.updateForOfStatement(m,j.createToken(135),m.initializer,m.expression,m.statement));return}}if(Vn(s))for(let p of[s.left,s.right]){if(l&&Ye(p)){let x=i.getSymbolAtLocation(p);if(x&&l.has(co(x)))continue}let g=i.getTypeAtLocation(p),m=i.getPromisedTypeOfPromise(g)?j.createAwaitExpression(p):p;e.replaceNode(n,p,m)}else if(t===yUe&&ai(s.parent)){if(l&&Ye(s.parent.expression)){let p=i.getSymbolAtLocation(s.parent.expression);if(p&&l.has(co(p)))return}e.replaceNode(n,s.parent.expression,j.createParenthesizedExpression(j.createAwaitExpression(s.parent.expression))),wUe(e,s.parent.expression,n)}else if(Ta(vUe,t)&&wh(s.parent)){if(l&&Ye(s)){let p=i.getSymbolAtLocation(s);if(p&&l.has(co(p)))return}e.replaceNode(n,s,j.createParenthesizedExpression(j.createAwaitExpression(s))),wUe(e,s,n)}else{if(l&&Ui(s.parent)&&Ye(s.parent.name)){let p=i.getSymbolAtLocation(s.parent.name);if(p&&!Ty(l,co(p)))return}e.replaceNode(n,s,j.createAwaitExpression(s))}}function wUe(e,t,n){let i=Ou(t.pos,n);i&&DU(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var NSe="addMissingConst",kUe=[y.Cannot_find_name_0.code,y.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];ro({errorCodes:kUe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>CUe(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[Bs(NSe,n,y.Add_const_to_unresolved_variable,NSe,y.Add_const_to_all_unresolved_variables)]},fixIds:[NSe],getAllCodeActions:e=>{let t=new Set;return uc(e,kUe,(n,i)=>CUe(n,i.file,i.start,e.program,t))}});function CUe(e,t,n,i,s){let l=ca(t,n),p=Br(l,x=>bk(x.parent)?x.parent.initializer===x:Fjt(x)?!1:"quit");if(p)return ane(e,p,t,s);let g=l.parent;if(Vn(g)&&g.operatorToken.kind===64&&Zu(g.parent))return ane(e,l,t,s);if(kp(g)){let x=i.getTypeChecker();return sn(g.elements,b=>Mjt(b,x))?ane(e,g,t,s):void 0}let m=Br(l,x=>Zu(x.parent)?!0:Rjt(x)?!1:"quit");if(m){let x=i.getTypeChecker();return PUe(m,x)?ane(e,m,t,s):void 0}}function ane(e,t,n,i){(!i||Ty(i,t))&&e.insertModifierBefore(n,87,t)}function Fjt(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function Mjt(e,t){let n=Ye(e)?e:Yu(e,!0)&&Ye(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function Rjt(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function PUe(e,t){return Vn(e)?e.operatorToken.kind===28?sn([e.left,e.right],n=>PUe(n,t)):e.operatorToken.kind===64&&Ye(e.left)&&!t.getSymbolAtLocation(e.left):!1}var ASe="addMissingDeclareProperty",EUe=[y.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];ro({errorCodes:EUe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>DUe(i,t.sourceFile,t.span.start));if(n.length>0)return[Bs(ASe,n,y.Prefix_with_declare,ASe,y.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[ASe],getAllCodeActions:e=>{let t=new Set;return uc(e,EUe,(n,i)=>DUe(n,i.file,i.start,t))}});function DUe(e,t,n,i){let s=ca(t,n);if(!Ye(s))return;let l=s.parent;l.kind===172&&(!i||Ty(i,l))&&e.insertModifierBefore(t,138,l)}var ISe="addMissingInvocationForDecorator",OUe=[y._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];ro({errorCodes:OUe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>NUe(i,t.sourceFile,t.span.start));return[Bs(ISe,n,y.Call_decorator_expression,ISe,y.Add_to_all_uncalled_decorators)]},fixIds:[ISe],getAllCodeActions:e=>uc(e,OUe,(t,n)=>NUe(t,n.file,n.start))});function NUe(e,t,n){let i=ca(t,n),s=Br(i,qu);I.assert(!!s,"Expected position to be owned by a decorator.");let l=j.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,l)}var FSe="addMissingResolutionModeImportAttribute",AUe=[y.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,y.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];ro({errorCodes:AUe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>IUe(i,t.sourceFile,t.span.start,t.program,t.host,t.preferences));return[Bs(FSe,n,y.Add_resolution_mode_import_attribute,FSe,y.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[FSe],getAllCodeActions:e=>uc(e,AUe,(t,n)=>IUe(t,n.file,n.start,e.program,e.host,e.preferences))});function IUe(e,t,n,i,s,l){var p,g,m;let x=ca(t,n),b=Br(x,Df(sl,jh));I.assert(!!b,"Expected position to be owned by an ImportDeclaration or ImportType.");let S=H_(t,l)===0,P=GP(b),E=!P||((p=Yk(P.text,t.fileName,i.getCompilerOptions(),s,i.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:p.resolvedFileName)===((m=(g=i.getResolvedModuleFromModuleSpecifier(P,t))==null?void 0:g.resolvedModule)==null?void 0:m.resolvedFileName),N=b.attributes?j.updateImportAttributes(b.attributes,j.createNodeArray([...b.attributes.elements,j.createImportAttribute(j.createStringLiteral("resolution-mode",S),j.createStringLiteral(E?"import":"require",S))],b.attributes.elements.hasTrailingComma),b.attributes.multiLine):j.createImportAttributes(j.createNodeArray([j.createImportAttribute(j.createStringLiteral("resolution-mode",S),j.createStringLiteral(E?"import":"require",S))]));b.kind===272?e.replaceNode(t,b,j.updateImportDeclaration(b,b.modifiers,b.importClause,b.moduleSpecifier,N)):e.replaceNode(t,b,j.updateImportTypeNode(b,b.argument,N,b.qualifier,b.typeArguments))}var MSe="addNameToNamelessParameter",FUe=[y.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];ro({errorCodes:FUe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>MUe(i,t.sourceFile,t.span.start));return[Bs(MSe,n,y.Add_parameter_name,MSe,y.Add_names_to_all_parameters_without_names)]},fixIds:[MSe],getAllCodeActions:e=>uc(e,FUe,(t,n)=>MUe(t,n.file,n.start))});function MUe(e,t,n){let i=ca(t,n),s=i.parent;if(!Da(s))return I.fail("Tried to add a parameter name to a non-parameter: "+I.formatSyntaxKind(i.kind));let l=s.parent.parameters.indexOf(s);I.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),I.assert(l>-1,"Parameter not found in parent parameter list.");let p=s.name.getEnd(),g=j.createTypeReferenceNode(s.name,void 0),m=RUe(t,s);for(;m;)g=j.createArrayTypeNode(g),p=m.getEnd(),m=RUe(t,m);let x=j.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+l,s.questionToken,s.dotDotDotToken&&!cM(g)?j.createArrayTypeNode(g):g,s.initializer);e.replaceRange(t,um(s.getStart(t),p),x)}function RUe(e,t){let n=Y2(t.name,t.parent,e);if(n&&n.kind===23&&j1(n.parent)&&Da(n.parent.parent))return n.parent.parent}var jUe="addOptionalPropertyUndefined",jjt=[y.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,y.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];ro({errorCodes:jjt,getCodeActions(e){let t=e.program.getTypeChecker(),n=Ljt(e.sourceFile,e.span,t);if(!n.length)return;let i=Ln.ChangeTracker.with(e,s=>qjt(s,n));return[Yg(jUe,i,y.Add_undefined_to_optional_property_type)]},fixIds:[jUe]});function Ljt(e,t,n){var i,s;let l=LUe(lre(e,t),n);if(!l)return ce;let{source:p,target:g}=l,m=Bjt(p,g,n)?n.getTypeAtLocation(g.expression):n.getTypeAtLocation(g);return(s=(i=m.symbol)==null?void 0:i.declarations)!=null&&s.some(x=>rn(x).fileName.match(/\.d\.ts$/))?ce:n.getExactOptionalProperties(m)}function Bjt(e,t,n){return ai(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function LUe(e,t){var n;if(e){if(Vn(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Ui(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Ls(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!jP(i.valueDeclaration.kind)||!At(e))return;let s=e.parent.arguments.indexOf(e);if(s===-1)return;let l=i.valueDeclaration.parameters[s].name;if(Ye(l))return{source:e,target:l}}else if(xu(e.parent)&&Ye(e.parent.name)||Jp(e.parent)){let i=LUe(e.parent.parent,t);if(!i)return;let s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),l=(n=s?.declarations)==null?void 0:n[0];return l?{source:xu(e.parent)?e.parent.initializer:e.parent.name,target:l}:void 0}}else return}function qjt(e,t){for(let n of t){let i=n.valueDeclaration;if(i&&(vf(i)||is(i))&&i.type){let s=j.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],j.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var RSe="annotateWithTypeFromJSDoc",BUe=[y.JSDoc_types_may_be_moved_to_TypeScript_types.code];ro({errorCodes:BUe,getCodeActions(e){let t=qUe(e.sourceFile,e.span.start);if(!t)return;let n=Ln.ChangeTracker.with(e,i=>WUe(i,e.sourceFile,t));return[Bs(RSe,n,y.Annotate_with_type_from_JSDoc,RSe,y.Annotate_everything_with_types_from_JSDoc)]},fixIds:[RSe],getAllCodeActions:e=>uc(e,BUe,(t,n)=>{let i=qUe(n.file,n.start);i&&WUe(t,n.file,i)})});function qUe(e,t){let n=ca(e,t);return _i(Da(n.parent)?n.parent.parent:n.parent,JUe)}function JUe(e){return Jjt(e)&&zUe(e)}function zUe(e){return Dc(e)?e.parameters.some(zUe)||!e.type&&!!PF(e):!e.type&&!!rx(e)}function WUe(e,t,n){if(Dc(n)&&(PF(n)||n.parameters.some(i=>!!rx(i)))){if(!n.typeParameters){let s=yJ(n);s.length&&e.insertTypeParameters(t,n,s)}let i=Bc(n)&&!gc(n,21,t);i&&e.insertNodeBefore(t,ho(n.parameters),j.createToken(21));for(let s of n.parameters)if(!s.type){let l=rx(s);l&&e.tryInsertTypeAnnotation(t,s,dt(l,iw,Yi))}if(i&&e.insertNodeAfter(t,ao(n.parameters),j.createToken(22)),!n.type){let s=PF(n);s&&e.tryInsertTypeAnnotation(t,n,dt(s,iw,Yi))}}else{let i=I.checkDefined(rx(n),"A JSDocType for this declaration should exist");I.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,dt(i,iw,Yi))}}function Jjt(e){return Dc(e)||e.kind===260||e.kind===171||e.kind===172}function iw(e){switch(e.kind){case 312:case 313:return j.createTypeReferenceNode("any",ce);case 316:return Wjt(e);case 315:return iw(e.type);case 314:return Ujt(e);case 318:return $jt(e);case 317:return Vjt(e);case 183:return Gjt(e);case 322:return zjt(e);default:let t=Gr(e,iw,void 0);return qn(t,1),t}}function zjt(e){let t=j.createTypeLiteralNode(Dt(e.jsDocPropertyTags,n=>j.createPropertySignature(void 0,Ye(n.name)?n.name:n.name.right,Q5(n)?j.createToken(58):void 0,n.typeExpression&&dt(n.typeExpression.type,iw,Yi)||j.createKeywordTypeNode(133))));return qn(t,1),t}function Wjt(e){return j.createUnionTypeNode([dt(e.type,iw,Yi),j.createTypeReferenceNode("undefined",ce)])}function Ujt(e){return j.createUnionTypeNode([dt(e.type,iw,Yi),j.createTypeReferenceNode("null",ce)])}function $jt(e){return j.createArrayTypeNode(dt(e.type,iw,Yi))}function Vjt(e){return j.createFunctionTypeNode(ce,e.parameters.map(Hjt),e.type??j.createKeywordTypeNode(133))}function Hjt(e){let t=e.parent.parameters.indexOf(e),n=e.type.kind===318&&t===e.parent.parameters.length-1,i=e.name||(n?"rest":"arg"+t),s=n?j.createToken(26):e.dotDotDotToken;return j.createParameterDeclaration(e.modifiers,s,i,e.questionToken,dt(e.type,iw,Yi),e.initializer)}function Gjt(e){let t=e.typeName,n=e.typeArguments;if(Ye(e.typeName)){if(Zq(e))return Kjt(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=j.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?n=j.createNodeArray([j.createTypeReferenceNode("any",ce)]):n=dn(e.typeArguments,iw,Yi)}return j.createTypeReferenceNode(t,n)}function Kjt(e){let t=j.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,j.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),n=j.createTypeLiteralNode([j.createIndexSignature(void 0,[t],e.typeArguments[1])]);return qn(n,1),n}var jSe="convertFunctionToEs6Class",UUe=[y.This_constructor_function_may_be_converted_to_a_class_declaration.code];ro({errorCodes:UUe,getCodeActions(e){let t=Ln.ChangeTracker.with(e,n=>$Ue(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Bs(jSe,t,y.Convert_function_to_an_ES2015_class,jSe,y.Convert_all_constructor_functions_to_classes)]},fixIds:[jSe],getAllCodeActions:e=>uc(e,UUe,(t,n)=>$Ue(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function $Ue(e,t,n,i,s,l){let p=i.getSymbolAtLocation(ca(t,n));if(!p||!p.valueDeclaration||!(p.flags&19))return;let g=p.valueDeclaration;if(jl(g)||Ic(g))e.replaceNode(t,g,b(g));else if(Ui(g)){let S=x(g);if(!S)return;let P=g.parent.parent;mp(g.parent)&&g.parent.declarations.length>1?(e.delete(t,g),e.insertNodeAfter(t,P,S)):e.replaceNode(t,P,S)}function m(S){let P=[];return S.exports&&S.exports.forEach(F=>{if(F.name==="prototype"&&F.declarations){let M=F.declarations[0];if(F.declarations.length===1&&ai(M)&&Vn(M.parent)&&M.parent.operatorToken.kind===64&&So(M.parent.right)){let L=M.parent.right;N(L.symbol,void 0,P)}}else N(F,[j.createToken(126)],P)}),S.members&&S.members.forEach((F,M)=>{var L,W,z,H;if(M==="constructor"&&F.valueDeclaration){let X=(H=(z=(W=(L=S.exports)==null?void 0:L.get("prototype"))==null?void 0:W.declarations)==null?void 0:z[0])==null?void 0:H.parent;X&&Vn(X)&&So(X.right)&&Pt(X.right.properties,one)||e.delete(t,F.valueDeclaration.parent);return}N(F,void 0,P)}),P;function E(F,M){return Lc(F)?ai(F)&&one(F)?!0:Ss(M):sn(F.properties,L=>!!(wl(L)||DF(L)||xu(L)&&Ic(L.initializer)&&L.name||one(L)))}function N(F,M,L){if(!(F.flags&8192)&&!(F.flags&4096))return;let W=F.valueDeclaration,z=W.parent,H=z.right;if(!E(W,H)||Pt(L,Ee=>{let fe=ls(Ee);return!!(fe&&Ye(fe)&&fi(fe)===Ml(F))}))return;let X=z.parent&&z.parent.kind===244?z.parent:z;if(e.delete(t,X),!H){L.push(j.createPropertyDeclaration(M,F.name,void 0,void 0,void 0));return}if(Lc(W)&&(Ic(H)||Bc(H))){let Ee=H_(t,s),fe=Qjt(W,l,Ee);fe&&ne(L,H,fe);return}else if(So(H)){Ge(H.properties,Ee=>{(wl(Ee)||DF(Ee))&&L.push(Ee),xu(Ee)&&Ic(Ee.initializer)&&ne(L,Ee.initializer,Ee.name),one(Ee)});return}else{if(Nf(t)||!ai(W))return;let Ee=j.createPropertyDeclaration(M,W.name,void 0,void 0,H);gA(z.parent,Ee,t),L.push(Ee);return}function ne(Ee,fe,te){return Ic(fe)?ae(Ee,fe,te):Y(Ee,fe,te)}function ae(Ee,fe,te){let de=ya(M,sne(fe,134)),me=j.createMethodDeclaration(de,void 0,te,void 0,void 0,fe.parameters,void 0,fe.body);gA(z,me,t),Ee.push(me)}function Y(Ee,fe,te){let de=fe.body,me;de.kind===241?me=de:me=j.createBlock([j.createReturnStatement(de)]);let ve=ya(M,sne(fe,134)),Pe=j.createMethodDeclaration(ve,void 0,te,void 0,void 0,fe.parameters,void 0,me);gA(z,Pe,t),Ee.push(Pe)}}}function x(S){let P=S.initializer;if(!P||!Ic(P)||!Ye(S.name))return;let E=m(S.symbol);P.body&&E.unshift(j.createConstructorDeclaration(void 0,P.parameters,P.body));let N=sne(S.parent.parent,95);return j.createClassDeclaration(N,S.name,void 0,void 0,E)}function b(S){let P=m(p);S.body&&P.unshift(j.createConstructorDeclaration(void 0,S.parameters,S.body));let E=sne(S,95);return j.createClassDeclaration(E,S.name,void 0,void 0,P)}}function sne(e,t){return $m(e)?Cn(e.modifiers,n=>n.kind===t):void 0}function one(e){return e.name?!!(Ye(e.name)&&e.name.text==="constructor"):!1}function Qjt(e,t,n){if(ai(e))return e.name;let i=e.argumentExpression;if(e_(i))return i;if(Ho(i))return m_(i.text,Po(t))?j.createIdentifier(i.text):Bk(i)?j.createStringLiteral(i.text,n===0):i}var LSe="convertToAsyncFunction",VUe=[y.This_may_be_converted_to_an_async_function.code],cne=!0;ro({errorCodes:VUe,getCodeActions(e){cne=!0;let t=Ln.ChangeTracker.with(e,n=>HUe(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return cne?[Bs(LSe,t,y.Convert_to_async_function,LSe,y.Convert_all_to_async_functions)]:[]},fixIds:[LSe],getAllCodeActions:e=>uc(e,VUe,(t,n)=>HUe(t,n.file,n.start,e.program.getTypeChecker()))});function HUe(e,t,n,i){let s=ca(t,n),l;if(Ye(s)&&Ui(s.parent)&&s.parent.initializer&&Dc(s.parent.initializer)?l=s.parent.initializer:l=_i(Ed(ca(t,n)),Ore),!l)return;let p=new Map,g=jn(l),m=Yjt(l,i),x=Zjt(l,i,p);if(!Ere(x,i))return;let b=x.body&&Cs(x.body)?Xjt(x.body,i):ce,S={checker:i,synthNamesMap:p,setOfExpressionsToReturn:m,isInJSFile:g};if(!b.length)return;let P=yo(t.text,Fh(l).pos);e.insertModifierAt(t,P,134,{suffix:" "});for(let E of b)if(xs(E,function N(F){if(Ls(F)){let M=SA(F,F,S,!1);if(YE())return!0;e.replaceNodeWithNodes(t,E,M)}else if(!Ss(F)&&(xs(F,N),YE()))return!0}),YE())return}function Xjt(e,t){let n=[];return _x(e,i=>{WU(i,t)&&n.push(i)}),n}function Yjt(e,t){if(!e.body)return new Set;let n=new Set;return xs(e.body,function i(s){qR(s,t,"then")?(n.add(Wo(s)),Ge(s.arguments,i)):qR(s,t,"catch")||qR(s,t,"finally")?(n.add(Wo(s)),xs(s,i)):KUe(s,t)?n.add(Wo(s)):xs(s,i)}),n}function qR(e,t,n){if(!Ls(e))return!1;let s=uR(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function GUe(e,t){return(oi(e)&4)!==0&&e.target===t}function lne(e,t,n){if(e.expression.name.escapedText==="finally")return;let i=n.getTypeAtLocation(e.expression.expression);if(GUe(i,n.getPromiseType())||GUe(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===b0(e.arguments,0))return b0(e.typeArguments,0);if(t===b0(e.arguments,1))return b0(e.typeArguments,1)}else return b0(e.typeArguments,0)}function KUe(e,t){return At(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function Zjt(e,t,n){let i=new Map,s=Zl();return xs(e,function l(p){if(!Ye(p)){xs(p,l);return}let g=t.getSymbolAtLocation(p);if(g){let m=t.getTypeAtLocation(p),x=t$e(m,t),b=co(g).toString();if(x&&!Da(p.parent)&&!Dc(p.parent)&&!n.has(b)){let S=Yl(x.parameters),P=S?.valueDeclaration&&Da(S.valueDeclaration)&&_i(S.valueDeclaration.name,Ye)||j.createUniqueName("result",16),E=QUe(P,s);n.set(b,E),s.add(P.text,g)}else if(p.parent&&(Da(p.parent)||Ui(p.parent)||Do(p.parent))){let S=p.text,P=s.get(S);if(P&&P.some(E=>E!==g)){let E=QUe(p,s);i.set(b,E.identifier),n.set(b,E),s.add(S,g)}else{let E=tc(p);n.set(b,Y3(E)),s.add(S,g)}}}}),SR(e,!0,l=>{if(Do(l)&&Ye(l.name)&&Nd(l.parent)){let p=t.getSymbolAtLocation(l.name),g=p&&i.get(String(co(p)));if(g&&g.text!==(l.name||l.propertyName).getText())return j.createBindingElement(l.dotDotDotToken,l.propertyName||l.name,g,l.initializer)}else if(Ye(l)){let p=t.getSymbolAtLocation(l),g=p&&i.get(String(co(p)));if(g)return j.createIdentifier(g.text)}})}function QUe(e,t){let n=(t.get(e.text)||ce).length,i=n===0?e:j.createIdentifier(e.text+"_"+n);return Y3(i)}function YE(){return!cne}function nT(){return cne=!1,ce}function SA(e,t,n,i,s){if(qR(t,n.checker,"then"))return rLt(t,b0(t.arguments,0),b0(t.arguments,1),n,i,s);if(qR(t,n.checker,"catch"))return ZUe(t,b0(t.arguments,0),n,i,s);if(qR(t,n.checker,"finally"))return tLt(t,b0(t.arguments,0),n,i,s);if(ai(t))return SA(e,t.expression,n,i,s);let l=n.checker.getTypeAtLocation(t);return l&&n.checker.getPromisedTypeOfPromise(l)?(I.assertNode(al(t).parent,ai),nLt(e,t,n,i,s)):nT()}function une({checker:e},t){if(t.kind===106)return!0;if(Ye(t)&&!Xc(t)&&fi(t)==="undefined"){let n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function eLt(e){let t=j.createUniqueName(e.identifier.text,16);return Y3(t)}function XUe(e,t,n){let i;return n&&!zR(e,t)&&(JR(n)?(i=n,t.synthNamesMap.forEach((s,l)=>{if(s.identifier.text===n.identifier.text){let p=eLt(n);t.synthNamesMap.set(l,p)}})):i=Y3(j.createUniqueName("result",16),n.types),zSe(i)),i}function YUe(e,t,n,i,s){let l=[],p;if(i&&!zR(e,t)){p=tc(zSe(i));let g=i.types,m=t.checker.getUnionType(g,2),x=t.isInJSFile?void 0:t.checker.typeToTypeNode(m,void 0,void 0),b=[j.createVariableDeclaration(p,void 0,x)],S=j.createVariableStatement(void 0,j.createVariableDeclarationList(b,1));l.push(S)}return l.push(n),s&&p&&sLt(s)&&l.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(tc(a$e(s)),void 0,void 0,p)],2))),l}function tLt(e,t,n,i,s){if(!t||une(n,t))return SA(e,e.expression.expression,n,i,s);let l=XUe(e,n,s),p=SA(e,e.expression.expression,n,!0,l);if(YE())return nT();let g=qSe(t,i,void 0,void 0,e,n);if(YE())return nT();let m=j.createBlock(p),x=j.createBlock(g),b=j.createTryStatement(m,void 0,x);return YUe(e,n,b,l,s)}function ZUe(e,t,n,i,s){if(!t||une(n,t))return SA(e,e.expression.expression,n,i,s);let l=n$e(t,n),p=XUe(e,n,s),g=SA(e,e.expression.expression,n,!0,p);if(YE())return nT();let m=qSe(t,i,p,l,e,n);if(YE())return nT();let x=j.createBlock(g),b=j.createCatchClause(l&&tc(s$(l)),j.createBlock(m)),S=j.createTryStatement(x,b,void 0);return YUe(e,n,S,p,s)}function rLt(e,t,n,i,s,l){if(!t||une(i,t))return ZUe(e,n,i,s,l);if(n&&!une(i,n))return nT();let p=n$e(t,i),g=SA(e.expression.expression,e.expression.expression,i,!0,p);if(YE())return nT();let m=qSe(t,s,l,p,e,i);return YE()?nT():ya(g,m)}function nLt(e,t,n,i,s){if(zR(e,n)){let l=tc(t);return i&&(l=j.createAwaitExpression(l)),[j.createReturnStatement(l)]}return pne(s,j.createAwaitExpression(t),void 0)}function pne(e,t,n){return!e||i$e(e)?[j.createExpressionStatement(t)]:JR(e)&&e.hasBeenDeclared?[j.createExpressionStatement(j.createAssignment(tc(JSe(e)),t))]:[j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(tc(s$(e)),void 0,n,t)],2))]}function BSe(e,t){if(t&&e){let n=j.createUniqueName("result",16);return[...pne(Y3(n),e,t),j.createReturnStatement(n)]}return[j.createReturnStatement(e)]}function qSe(e,t,n,i,s,l){var p;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let g=j.createCallExpression(tc(e),void 0,JR(i)?[JSe(i)]:[]);if(zR(s,l))return BSe(g,lne(s,e,l.checker));let m=l.checker.getTypeAtLocation(e),x=l.checker.getSignaturesOfType(m,0);if(!x.length)return nT();let b=x[0].getReturnType(),S=pne(n,j.createAwaitExpression(g),lne(s,e,l.checker));return n&&n.types.push(l.checker.getAwaitedType(b)||b),S;case 218:case 219:{let P=e.body,E=(p=t$e(l.checker.getTypeAtLocation(e),l.checker))==null?void 0:p.getReturnType();if(Cs(P)){let N=[],F=!1;for(let M of P.statements)if(md(M))if(F=!0,WU(M,l.checker))N=N.concat(r$e(l,M,t,n));else{let L=E&&M.expression?e$e(l.checker,E,M.expression):M.expression;N.push(...BSe(L,lne(s,e,l.checker)))}else{if(t&&_x(M,v1))return nT();N.push(M)}return zR(s,l)?N.map(M=>tc(M)):iLt(N,n,l,F)}else{let N=Dre(P,l.checker)?r$e(l,j.createReturnStatement(P),t,n):ce;if(N.length>0)return N;if(E){let F=e$e(l.checker,E,P);if(zR(s,l))return BSe(F,lne(s,e,l.checker));{let M=pne(n,F,void 0);return n&&n.types.push(l.checker.getAwaitedType(E)||E),M}}else return nT()}}default:return nT()}return ce}function e$e(e,t,n){let i=tc(n);return e.getPromisedTypeOfPromise(t)?j.createAwaitExpression(i):i}function t$e(e,t){let n=t.getSignaturesOfType(e,0);return dc(n)}function iLt(e,t,n,i){let s=[];for(let l of e)if(md(l)){if(l.expression){let p=KUe(l.expression,n.checker)?j.createAwaitExpression(l.expression):l.expression;t===void 0?s.push(j.createExpressionStatement(p)):JR(t)&&t.hasBeenDeclared?s.push(j.createExpressionStatement(j.createAssignment(JSe(t),p))):s.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(s$(t),void 0,void 0,p)],2)))}}else s.push(tc(l));return!i&&t!==void 0&&s.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(s$(t),void 0,void 0,j.createIdentifier("undefined"))],2))),s}function r$e(e,t,n,i){let s=[];return xs(t,function l(p){if(Ls(p)){let g=SA(p,p,e,n,i);if(s=s.concat(g),s.length>0)return}else Ss(p)||xs(p,l)}),s}function n$e(e,t){let n=[],i;if(Dc(e)){if(e.parameters.length>0){let m=e.parameters[0].name;i=s(m)}}else Ye(e)?i=l(e):ai(e)&&Ye(e.name)&&(i=l(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(m){if(Ye(m))return l(m);let x=li(m.elements,b=>Ju(b)?[]:[s(b.name)]);return aLt(m,x)}function l(m){let x=g(m),b=p(x);return b&&t.synthNamesMap.get(co(b).toString())||Y3(m,n)}function p(m){var x;return((x=_i(m,qg))==null?void 0:x.symbol)??t.checker.getSymbolAtLocation(m)}function g(m){return m.original?m.original:m}}function i$e(e){return e?JR(e)?!e.identifier.text:sn(e.elements,i$e):!0}function Y3(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function aLt(e,t=ce,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function JSe(e){return e.hasBeenReferenced=!0,e.identifier}function s$(e){return JR(e)?zSe(e):a$e(e)}function a$e(e){for(let t of e.elements)s$(t);return e.bindingPattern}function zSe(e){return e.hasBeenDeclared=!0,e.identifier}function JR(e){return e.kind===0}function sLt(e){return e.kind===1}function zR(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Wo(e.original))}ro({errorCodes:[y.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:n,preferences:i}=e,s=Ln.ChangeTracker.with(e,l=>{if(cLt(t,n.getTypeChecker(),l,Po(n.getCompilerOptions()),H_(t,i)))for(let g of n.getSourceFiles())oLt(g,t,n,l,H_(g,i))});return[Yg("convertToEsModule",s,y.Convert_to_ES_module)]}});function oLt(e,t,n,i,s){var l;for(let p of e.imports){let g=(l=n.getResolvedModuleFromModuleSpecifier(p,e))==null?void 0:l.resolvedModule;if(!g||g.resolvedFileName!==t.fileName)continue;let m=u4(p);switch(m.kind){case 271:i.replaceNode(e,m,Mx(m.name,void 0,p,s));break;case 213:Xf(m,!1)&&i.replaceNode(e,m,j.createPropertyAccessExpression(tc(m),"default"));break}}}function cLt(e,t,n,i,s){let l={original:xLt(e),additional:new Set},p=lLt(e,t,l);uLt(e,p,n);let g=!1,m;for(let x of Cn(e.statements,Rl)){let b=o$e(e,x,n,t,l,i,s);b&&Pq(b,m??(m=new Map))}for(let x of Cn(e.statements,b=>!Rl(b))){let b=pLt(e,x,t,n,l,i,p,m,s);g=g||b}return m?.forEach((x,b)=>{n.replaceNode(e,b,x)}),g}function lLt(e,t,n){let i=new Map;return s$e(e,s=>{let{text:l}=s.name;!i.has(l)&&(LQ(s.name)||t.resolveName(l,s,111551,!0))&&i.set(l,fne(`_${l}`,n))}),i}function uLt(e,t,n){s$e(e,(i,s)=>{if(s)return;let{text:l}=i.name;n.replaceNode(e,i,j.createIdentifier(t.get(l)||l))})}function s$e(e,t){e.forEachChild(function n(i){if(ai(i)&&$2(e,i.expression)&&Ye(i.name)){let{parent:s}=i;t(i,Vn(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function pLt(e,t,n,i,s,l,p,g,m){switch(t.kind){case 243:return o$e(e,t,i,n,s,l,m),!1;case 244:{let{expression:x}=t;switch(x.kind){case 213:return Xf(x,!0)&&i.replaceNode(e,t,Mx(void 0,void 0,x.arguments[0],m)),!1;case 226:{let{operatorToken:b}=x;return b.kind===64&&_Lt(e,n,x,i,p,g)}}}default:return!1}}function o$e(e,t,n,i,s,l,p){let{declarationList:g}=t,m=!1,x=Dt(g.declarations,b=>{let{name:S,initializer:P}=b;if(P){if($2(e,P))return m=!0,Z3([]);if(Xf(P,!0))return m=!0,vLt(S,P.arguments[0],i,s,l,p);if(ai(P)&&Xf(P.expression,!0))return m=!0,fLt(S,P.name.text,P.expression.arguments[0],s,p)}return Z3([j.createVariableStatement(void 0,j.createVariableDeclarationList([b],g.flags))])});if(m){n.replaceNodeWithNodes(e,t,li(x,S=>S.newImports));let b;return Ge(x,S=>{S.useSitesToUnqualify&&Pq(S.useSitesToUnqualify,b??(b=new Map))}),b}}function fLt(e,t,n,i,s){switch(e.kind){case 206:case 207:{let l=fne(t,i);return Z3([p$e(l,t,n,s),_ne(void 0,e,j.createIdentifier(l))])}case 80:return Z3([p$e(e.text,t,n,s)]);default:return I.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function _Lt(e,t,n,i,s,l){let{left:p,right:g}=n;if(!ai(p))return!1;if($2(e,p))if($2(e,g))i.delete(e,n.parent);else{let m=So(g)?dLt(g,l):Xf(g,!0)?gLt(g.arguments[0],t):void 0;return m?(i.replaceNodeWithNodes(e,n.parent,m[0]),m[1]):(i.replaceRangeWithText(e,um(p.getStart(e),g.pos),"export default"),!0)}else $2(e,p.expression)&&mLt(e,n,i,s);return!1}function dLt(e,t){let n=ku(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ye(i.name)?yLt(i.name.text,i.initializer,t):void 0;case 174:return Ye(i.name)?u$e(i.name.text,[j.createToken(95)],i,t):void 0;default:I.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return n&&[n,!1]}function mLt(e,t,n,i){let{text:s}=t.left.name,l=i.get(s);if(l!==void 0){let p=[_ne(void 0,l,t.right),$Se([j.createExportSpecifier(!1,l,s)])];n.replaceNodeWithNodes(e,t.parent,p)}else hLt(t,e,n)}function gLt(e,t){let n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:mt;return s.has("export=")?[[WSe(n)],!0]:s.has("default")?s.size>1?[[c$e(n),WSe(n)],!0]:[[WSe(n)],!0]:[[c$e(n)],!1]}function c$e(e){return $Se(void 0,e)}function WSe(e){return $Se([j.createExportSpecifier(!1,void 0,"default")],e)}function hLt({left:e,right:t,parent:n},i,s){let l=e.name.text;if((Ic(t)||Bc(t)||vu(t))&&(!t.name||t.name.text===l)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},j.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,l);let p=gc(n,27,i);p&&s.delete(i,p)}else s.replaceNodeRangeWithNodes(i,e.expression,gc(e,25,i),[j.createToken(95),j.createToken(87)],{joiner:" ",suffix:" "})}function yLt(e,t,n){let i=[j.createToken(95)];switch(t.kind){case 218:{let{name:l}=t;if(l&&l.text!==e)return s()}case 219:return u$e(e,i,t,n);case 231:return TLt(e,i,t,n);default:return s()}function s(){return _ne(i,j.createIdentifier(e),USe(t,n))}}function USe(e,t){if(!t||!Pt(Ka(t.keys()),i=>Zf(e,i)))return e;return cs(e)?tre(e,!0,n):SR(e,!0,n);function n(i){if(i.kind===211){let s=t.get(i);return t.delete(i),s}}}function vLt(e,t,n,i,s,l){switch(e.kind){case 206:{let p=ku(e.elements,g=>g.dotDotDotToken||g.initializer||g.propertyName&&!Ye(g.propertyName)||!Ye(g.name)?void 0:f$e(g.propertyName&&g.propertyName.text,g.name.text));if(p)return Z3([Mx(void 0,p,t,l)])}case 207:{let p=fne(ER(t.text,s),i);return Z3([Mx(j.createIdentifier(p),void 0,t,l),_ne(void 0,tc(e),j.createIdentifier(p))])}case 80:return bLt(e,t,n,i,l);default:return I.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function bLt(e,t,n,i,s){let l=n.getSymbolAtLocation(e),p=new Map,g=!1,m;for(let b of i.original.get(e.text)){if(n.getSymbolAtLocation(b)!==l||b===e)continue;let{parent:S}=b;if(ai(S)){let{name:{text:P}}=S;if(P==="default"){g=!0;let E=b.getText();(m??(m=new Map)).set(S,j.createIdentifier(E))}else{I.assert(S.expression===b,"Didn't expect expression === use");let E=p.get(P);E===void 0&&(E=fne(P,i),p.set(P,E)),(m??(m=new Map)).set(S,j.createIdentifier(E))}}else g=!0}let x=p.size===0?void 0:Ka(ci(p.entries(),([b,S])=>j.createImportSpecifier(!1,b===S?void 0:j.createIdentifier(b),j.createIdentifier(S))));return x||(g=!0),Z3([Mx(g?tc(e):void 0,x,t,s)],m)}function fne(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function xLt(e){let t=Zl();return l$e(e,n=>t.add(n.text,n)),t}function l$e(e,t){Ye(e)&&SLt(e)&&t(e),e.forEachChild(n=>l$e(n,t))}function SLt(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function u$e(e,t,n,i){return j.createFunctionDeclaration(ya(t,Z2(n.modifiers)),tc(n.asteriskToken),e,Z2(n.typeParameters),Z2(n.parameters),tc(n.type),j.converters.convertToFunctionBlock(USe(n.body,i)))}function TLt(e,t,n,i){return j.createClassDeclaration(ya(t,Z2(n.modifiers)),e,Z2(n.typeParameters),Z2(n.heritageClauses),USe(n.members,i))}function p$e(e,t,n,i){return t==="default"?Mx(j.createIdentifier(e),void 0,n,i):Mx(void 0,[f$e(t,e)],n,i)}function f$e(e,t){return j.createImportSpecifier(!1,e!==void 0&&e!==t?j.createIdentifier(e):void 0,j.createIdentifier(t))}function _ne(e,t,n){return j.createVariableStatement(e,j.createVariableDeclarationList([j.createVariableDeclaration(t,void 0,void 0,n)],2))}function $Se(e,t){return j.createExportDeclaration(void 0,!1,e&&j.createNamedExports(e),t===void 0?void 0:j.createStringLiteral(t))}function Z3(e,t){return{newImports:e,useSitesToUnqualify:t}}var VSe="correctQualifiedNameToIndexedAccessType",_$e=[y.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];ro({errorCodes:_$e,getCodeActions(e){let t=d$e(e.sourceFile,e.span.start);if(!t)return;let n=Ln.ChangeTracker.with(e,s=>m$e(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[Bs(VSe,n,[y.Rewrite_as_the_indexed_access_type_0,i],VSe,y.Rewrite_all_as_indexed_access_types)]},fixIds:[VSe],getAllCodeActions:e=>uc(e,_$e,(t,n)=>{let i=d$e(n.file,n.start);i&&m$e(t,n.file,i)})});function d$e(e,t){let n=Br(ca(e,t),If);return I.assert(!!n,"Expected position to be owned by a qualified name."),Ye(n.left)?n:void 0}function m$e(e,t,n){let i=n.right.text,s=j.createIndexedAccessTypeNode(j.createTypeReferenceNode(n.left,void 0),j.createLiteralTypeNode(j.createStringLiteral(i)));e.replaceNode(t,n,s)}var HSe=[y.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],GSe="convertToTypeOnlyExport";ro({errorCodes:HSe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>h$e(i,g$e(t.span,t.sourceFile),t));if(n.length)return[Bs(GSe,n,y.Convert_to_type_only_export,GSe,y.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[GSe],getAllCodeActions:function(t){let n=new Set;return uc(t,HSe,(i,s)=>{let l=g$e(s,t.sourceFile);l&&Jm(n,Wo(l.parent.parent))&&h$e(i,l,t)})}});function g$e(e,t){return _i(ca(t,e.start).parent,Yp)}function h$e(e,t,n){if(!t)return;let i=t.parent,s=i.parent,l=wLt(t,n);if(l.length===i.elements.length)e.insertModifierBefore(n.sourceFile,156,i);else{let p=j.updateExportDeclaration(s,s.modifiers,!1,j.updateNamedExports(i,Cn(i.elements,m=>!Ta(l,m))),s.moduleSpecifier,void 0),g=j.createExportDeclaration(void 0,!0,j.createNamedExports(l),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,p,{leadingTriviaOption:Ln.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Ln.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,g)}}function wLt(e,t){let n=e.parent;if(n.elements.length===1)return n.elements;let i=Ibe(Lf(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Cn(n.elements,s=>{var l;return s===e||((l=Abe(s,i))==null?void 0:l.code)===HSe[0]})}var y$e=[y._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,y._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],dne="convertToTypeOnlyImport";ro({errorCodes:y$e,getCodeActions:function(t){var n;let i=v$e(t.sourceFile,t.span.start);if(i){let s=Ln.ChangeTracker.with(t,g=>o$(g,t.sourceFile,i)),l=i.kind===276&&sl(i.parent.parent.parent)&&b$e(i,t.sourceFile,t.program)?Ln.ChangeTracker.with(t,g=>o$(g,t.sourceFile,i.parent.parent.parent)):void 0,p=Bs(dne,s,i.kind===276?[y.Use_type_0,((n=i.propertyName)==null?void 0:n.text)??i.name.text]:y.Use_import_type,dne,y.Fix_all_with_type_only_imports);return Pt(l)?[Yg(dne,l,y.Use_import_type),p]:[p]}},fixIds:[dne],getAllCodeActions:function(t){let n=new Set;return uc(t,y$e,(i,s)=>{let l=v$e(s.file,s.start);l?.kind===272&&!n.has(l)?(o$(i,s.file,l),n.add(l)):l?.kind===276&&sl(l.parent.parent.parent)&&!n.has(l.parent.parent.parent)&&b$e(l,s.file,t.program)?(o$(i,s.file,l.parent.parent.parent),n.add(l.parent.parent.parent)):l?.kind===276&&o$(i,s.file,l)})}});function v$e(e,t){let{parent:n}=ca(e,t);return bf(n)||sl(n)&&n.importClause?n:void 0}function b$e(e,t,n){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(l=>!l.isTypeOnly);if(i.length===1)return!0;let s=n.getTypeChecker();for(let l of i)if(qc.Core.eachSymbolReferenceInFile(l.name,s,t,g=>{let m=s.getSymbolAtLocation(g);return!!m&&s.symbolIsValue(m)||!AS(g)}))return!1;return!0}function o$(e,t,n){var i;if(bf(n))e.replaceNode(t,n,j.updateImportSpecifier(n,!0,n.propertyName,n.name));else{let s=n.importClause;if(s.name&&s.namedBindings)e.replaceNodeWithNodes(t,n,[j.createImportDeclaration(Z2(n.modifiers,!0),j.createImportClause(!0,tc(s.name,!0),void 0),tc(n.moduleSpecifier,!0),tc(n.attributes,!0)),j.createImportDeclaration(Z2(n.modifiers,!0),j.createImportClause(!0,void 0,tc(s.namedBindings,!0)),tc(n.moduleSpecifier,!0),tc(n.attributes,!0))]);else{let l=((i=s.namedBindings)==null?void 0:i.kind)===275?j.updateNamedImports(s.namedBindings,ia(s.namedBindings.elements,g=>j.updateImportSpecifier(g,!1,g.propertyName,g.name))):s.namedBindings,p=j.updateImportDeclaration(n,n.modifiers,j.updateImportClause(s,!0,s.name,l),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,p)}}}var KSe="convertTypedefToType",x$e=[y.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];ro({fixIds:[KSe],errorCodes:x$e,getCodeActions(e){let t=B0(e.host,e.formatContext.options),n=ca(e.sourceFile,e.span.start);if(!n)return;let i=Ln.ChangeTracker.with(e,s=>S$e(s,n,e.sourceFile,t));if(i.length>0)return[Bs(KSe,i,y.Convert_typedef_to_TypeScript_type,KSe,y.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>uc(e,x$e,(t,n)=>{let i=B0(e.host,e.formatContext.options),s=ca(n.file,n.start);s&&S$e(t,s,n.file,i,!0)})});function S$e(e,t,n,i,s=!1){if(!Gk(t))return;let l=CLt(t);if(!l)return;let p=t.parent,{leftSibling:g,rightSibling:m}=kLt(t),x=p.getStart(),b="";!g&&p.comment&&(x=T$e(p,p.getStart(),t.getStart()),b=`${i} */${i}`),g&&(s&&Gk(g)?(x=t.getStart(),b=""):(x=T$e(p,g.getStart(),t.getStart()),b=`${i} */${i}`));let S=p.getEnd(),P="";m&&(s&&Gk(m)?(S=m.getStart(),P=`${i}${i}`):(S=m.getStart(),P=`${i}/**${i} * `)),e.replaceRange(n,{pos:x,end:S},l,{prefix:b,suffix:P})}function kLt(e){let t=e.parent,n=t.getChildCount()-1,i=t.getChildren().findIndex(p=>p.getStart()===e.getStart()&&p.getEnd()===e.getEnd()),s=i>0?t.getChildAt(i-1):void 0,l=i<n?t.getChildAt(i+1):void 0;return{leftSibling:s,rightSibling:l}}function T$e(e,t,n){let i=e.getText().substring(t-e.getStart(),n-e.getStart());for(let s=i.length;s>0;s--)if(!/[*/\s]/.test(i.substring(s-1,s)))return t+s;return n}function CLt(e){var t;let{typeExpression:n}=e;if(!n)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(n.kind===322)return PLt(i,n);if(n.kind===309)return ELt(i,n)}}function PLt(e,t){let n=w$e(t);if(Pt(n))return j.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function ELt(e,t){let n=tc(t.type);if(n)return j.createTypeAliasDeclaration(void 0,j.createIdentifier(e),void 0,n)}function w$e(e){let t=e.jsDocPropertyTags;return Pt(t)?Bi(t,i=>{var s;let l=DLt(i),p=(s=i.typeExpression)==null?void 0:s.type,g=i.isBracketed,m;if(p&&Hk(p)){let x=w$e(p);m=j.createTypeLiteralNode(x)}else p&&(m=tc(p));if(m&&l){let x=g?j.createToken(58):void 0;return j.createPropertySignature(void 0,l,x,m)}}):void 0}function DLt(e){return e.name.kind===80?e.name.text:e.name.right.text}function OLt(e){return fd(e)?li(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.filter(i=>Gk(i))}):[]}var QSe="convertLiteralTypeToMappedType",k$e=[y._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];ro({errorCodes:k$e,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=C$e(n,i.start);if(!s)return;let{name:l,constraint:p}=s,g=Ln.ChangeTracker.with(t,m=>P$e(m,n,s));return[Bs(QSe,g,[y.Convert_0_to_1_in_0,p,l],QSe,y.Convert_all_type_literals_to_mapped_type)]},fixIds:[QSe],getAllCodeActions:e=>uc(e,k$e,(t,n)=>{let i=C$e(n.file,n.start);i&&P$e(t,n.file,i)})});function C$e(e,t){let n=ca(e,t);if(Ye(n)){let i=Js(n.parent.parent,vf),s=n.getText(e);return{container:Js(i.parent,Ff),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function P$e(e,t,{container:n,typeNode:i,constraint:s,name:l}){e.replaceNode(t,n,j.createMappedTypeNode(void 0,j.createTypeParameterDeclaration(void 0,l,j.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var E$e=[y.Class_0_incorrectly_implements_interface_1.code,y.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],XSe="fixClassIncorrectlyImplementsInterface";ro({errorCodes:E$e,getCodeActions(e){let{sourceFile:t,span:n}=e,i=D$e(t,n.start);return Bi(_N(i),s=>{let l=Ln.ChangeTracker.with(e,p=>N$e(e,s,t,i,p,e.preferences));return l.length===0?void 0:Bs(XSe,l,[y.Implement_interface_0,s.getText(t)],XSe,y.Implement_all_unimplemented_interfaces)})},fixIds:[XSe],getAllCodeActions(e){let t=new Set;return uc(e,E$e,(n,i)=>{let s=D$e(i.file,i.start);if(Jm(t,Wo(s)))for(let l of _N(s))N$e(e,l,i.file,s,n,e.preferences)})}});function D$e(e,t){return I.checkDefined(dp(ca(e,t)),"There should be a containing class")}function O$e(e){return!e.valueDeclaration||!(gf(e.valueDeclaration)&2)}function N$e(e,t,n,i,s,l){let p=e.program.getTypeChecker(),g=NLt(i,p),m=p.getTypeAtLocation(t),b=p.getPropertiesOfType(m).filter(b1(O$e,M=>!g.has(M.escapedName))),S=p.getTypeAtLocation(i),P=Ir(i.members,M=>ul(M));S.getNumberIndexType()||N(m,1),S.getStringIndexType()||N(m,0);let E=aw(n,e.program,l,e.host);UTe(i,b,n,e,l,E,M=>F(n,i,M)),E.writeFixes(s);function N(M,L){let W=p.getIndexInfoOfType(M,L);W&&F(n,i,p.indexInfoToIndexSignatureDeclaration(W,i,void 0,void 0,TA(e)))}function F(M,L,W){P?s.insertNodeAfter(M,P,W):s.insertMemberAtStart(M,L,W)}}function NLt(e,t){let n=Dh(e);if(!n)return Qs();let i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return Qs(s.filter(O$e))}var A$e="import",I$e="fixMissingImport",F$e=[y.Cannot_find_name_0.code,y.Cannot_find_name_0_Did_you_mean_1.code,y.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,y.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,y.Cannot_find_namespace_0.code,y._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,y._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,y.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,y._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,y.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,y.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,y.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,y.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,y.Cannot_find_namespace_0_Did_you_mean_1.code,y.Cannot_extend_an_interface_0_Did_you_mean_implements.code,y.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];ro({errorCodes:F$e,getCodeActions(e){let{errorCode:t,preferences:n,sourceFile:i,span:s,program:l}=e,p=q$e(e,t,s.start,!0);if(p)return p.map(({fix:g,symbolName:m,errorIdentifierText:x})=>eTe(e,i,m,g,m!==x,l,n))},fixIds:[I$e],getAllCodeActions:e=>{let{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:l}=e,p=M$e(t,n,!0,i,s,l);return XE(e,F$e,g=>p.addImportFromDiagnostic(g,e)),QE(Ln.ChangeTracker.with(e,p.writeFixes))}});function aw(e,t,n,i,s){return M$e(e,t,!1,n,i,s)}function M$e(e,t,n,i,s,l){let p=t.getCompilerOptions(),g=[],m=[],x=new Map,b=new Set,S=new Set,P=new Map;return{addImportFromDiagnostic:F,addImportFromExportedSymbol:M,addImportForModuleSymbol:L,writeFixes:X,hasFixes:ae,addImportForUnresolvedIdentifier:N,addImportForNonExistentExport:W,removeExistingImport:z,addVerbatimImport:E};function E(Y){S.add(Y)}function N(Y,Ee,fe){let te=zLt(Y,Ee,fe);!te||!te.length||H(ho(te))}function F(Y,Ee){let fe=q$e(Ee,Y.code,Y.start,n);!fe||!fe.length||H(ho(fe))}function M(Y,Ee,fe){var te,de;let me=I.checkDefined(Y.parent,"Expected exported symbol to have module symbol as parent"),ve=FU(Y,Po(p)),Pe=t.getTypeChecker(),Oe=Pe.getMergedSymbol(Tp(Y,Pe)),ie=j$e(e,Oe,ve,me,!1,t,s,i,l);if(!ie){I.assert((te=i.autoImportFileExcludePatterns)==null?void 0:te.length);return}let Ne=WR(e,t),it=YSe(e,ie,t,void 0,!!Ee,Ne,s,i);if(it){let ze=((de=_i(fe?.name,Ye))==null?void 0:de.text)??ve,ge,Me;fe&&KO(fe)&&(it.kind===3||it.kind===2)&&it.addAsTypeOnly===1&&(ge=2),Y.name!==ze&&(Me=Y.name),it={...it,...ge===void 0?{}:{addAsTypeOnly:ge},...Me===void 0?{}:{propertyName:Me}},H({fix:it,symbolName:ze??ve,errorIdentifierText:void 0})}}function L(Y,Ee,fe){var te,de,me;let ve=t.getTypeChecker(),Pe=ve.getAliasedSymbol(Y);I.assert(Pe.flags&1536,"Expected symbol to be a module");let Oe=YS(t,s),ie=L0.getModuleSpecifiersWithCacheInfo(Pe,ve,p,e,Oe,i,void 0,!0),Ne=WR(e,t),it=l$(Ee,!0,void 0,Y.flags,t.getTypeChecker(),p);it=it===1&&KO(fe)?2:1;let ze=sl(fe)?Dk(fe)?1:2:bf(fe)?0:vg(fe)&&fe.name?1:2,ge=[{symbol:Y,moduleSymbol:Pe,moduleFileName:(me=(de=(te=Pe.declarations)==null?void 0:te[0])==null?void 0:de.getSourceFile())==null?void 0:me.fileName,exportKind:4,targetFlags:Y.flags,isFromPackageJson:!1}],Me=YSe(e,ge,t,void 0,!!Ee,Ne,s,i),Te;Me&&ze!==2?Te={...Me,addAsTypeOnly:it,importKind:ze}:Te={kind:3,moduleSpecifierKind:Me!==void 0?Me.moduleSpecifierKind:ie.kind,moduleSpecifier:Me!==void 0?Me.moduleSpecifier:ho(ie.moduleSpecifiers),importKind:ze,addAsTypeOnly:it,useRequire:Ne},H({fix:Te,symbolName:Y.name,errorIdentifierText:void 0})}function W(Y,Ee,fe,te,de){let me=t.getSourceFile(Ee),ve=WR(e,t);if(me&&me.symbol){let{fixes:Pe}=c$([{exportKind:fe,isFromPackageJson:!1,moduleFileName:Ee,moduleSymbol:me.symbol,targetFlags:te}],void 0,de,ve,t,e,s,i);Pe.length&&H({fix:Pe[0],symbolName:Y,errorIdentifierText:Y})}else{let Pe=BU(Ee,99,t,s),Oe=L0.getLocalModuleSpecifierBetweenFileNames(e,Ee,p,YS(t,s),i),ie=mne(Pe,fe,t),Ne=l$(de,!0,void 0,te,t.getTypeChecker(),p);H({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:Oe,importKind:ie,addAsTypeOnly:Ne,useRequire:ve},symbolName:Y,errorIdentifierText:Y})}}function z(Y){Y.kind===273&&I.assertIsDefined(Y.name,"ImportClause should have a name if it's being removed"),b.add(Y)}function H(Y){var Ee,fe,te;let{fix:de,symbolName:me}=Y;switch(de.kind){case 0:g.push(de);break;case 1:m.push(de);break;case 2:{let{importClauseOrBindingPattern:ie,importKind:Ne,addAsTypeOnly:it,propertyName:ze}=de,ge=x.get(ie);if(ge||x.set(ie,ge={importClauseOrBindingPattern:ie,defaultImport:void 0,namedImports:new Map}),Ne===0){let Me=(Ee=ge?.namedImports.get(me))==null?void 0:Ee.addAsTypeOnly;ge.namedImports.set(me,{addAsTypeOnly:ve(Me,it),propertyName:ze})}else I.assert(ge.defaultImport===void 0||ge.defaultImport.name===me,"(Add to Existing) Default import should be missing or match symbolName"),ge.defaultImport={name:me,addAsTypeOnly:ve((fe=ge.defaultImport)==null?void 0:fe.addAsTypeOnly,it)};break}case 3:{let{moduleSpecifier:ie,importKind:Ne,useRequire:it,addAsTypeOnly:ze,propertyName:ge}=de,Me=Pe(ie,Ne,it,ze);switch(I.assert(Me.useRequire===it,"(Add new) Tried to add an `import` and a `require` for the same module"),Ne){case 1:I.assert(Me.defaultImport===void 0||Me.defaultImport.name===me,"(Add new) Default import should be missing or match symbolName"),Me.defaultImport={name:me,addAsTypeOnly:ve((te=Me.defaultImport)==null?void 0:te.addAsTypeOnly,ze)};break;case 0:let Te=(Me.namedImports||(Me.namedImports=new Map)).get(me);Me.namedImports.set(me,[ve(Te,ze),ge]);break;case 3:if(p.verbatimModuleSyntax){let gt=(Me.namedImports||(Me.namedImports=new Map)).get(me);Me.namedImports.set(me,[ve(gt,ze),ge])}else I.assert(Me.namespaceLikeImport===void 0||Me.namespaceLikeImport.name===me,"Namespacelike import shoudl be missing or match symbolName"),Me.namespaceLikeImport={importKind:Ne,name:me,addAsTypeOnly:ze};break;case 2:I.assert(Me.namespaceLikeImport===void 0||Me.namespaceLikeImport.name===me,"Namespacelike import shoudl be missing or match symbolName"),Me.namespaceLikeImport={importKind:Ne,name:me,addAsTypeOnly:ze};break}break}case 4:break;default:I.assertNever(de,`fix wasn't never - got kind ${de.kind}`)}function ve(ie,Ne){return Math.max(ie??0,Ne)}function Pe(ie,Ne,it,ze){let ge=Oe(ie,!0),Me=Oe(ie,!1),Te=P.get(ge),gt=P.get(Me),Tt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:it};return Ne===1&&ze===2?Te||(P.set(ge,Tt),Tt):ze===1&&(Te||gt)?Te||gt:gt||(P.set(Me,Tt),Tt)}function Oe(ie,Ne){return`${Ne?1:0}|${ie}`}}function X(Y,Ee){var fe,te;let de;e.imports!==void 0&&e.imports.length===0&&Ee!==void 0?de=Ee:de=H_(e,i);for(let Pe of g)tTe(Y,e,Pe);for(let Pe of m)K$e(Y,e,Pe,de);let me;if(b.size){I.assert(Pv(e),"Cannot remove imports from a future source file");let Pe=new Set(Bi([...b],ze=>Br(ze,sl))),Oe=new Set(Bi([...b],ze=>Br(ze,a5))),ie=[...Pe].filter(ze=>{var ge,Me,Te;return!x.has(ze.importClause)&&(!((ge=ze.importClause)!=null&&ge.name)||b.has(ze.importClause))&&(!_i((Me=ze.importClause)==null?void 0:Me.namedBindings,jv)||b.has(ze.importClause.namedBindings))&&(!_i((Te=ze.importClause)==null?void 0:Te.namedBindings,Bh)||sn(ze.importClause.namedBindings.elements,gt=>b.has(gt)))}),Ne=[...Oe].filter(ze=>(ze.name.kind!==206||!x.has(ze.name))&&(ze.name.kind!==206||sn(ze.name.elements,ge=>b.has(ge)))),it=[...Pe].filter(ze=>{var ge,Me;return((ge=ze.importClause)==null?void 0:ge.namedBindings)&&ie.indexOf(ze)===-1&&!((Me=x.get(ze.importClause))!=null&&Me.namedImports)&&(ze.importClause.namedBindings.kind===274||sn(ze.importClause.namedBindings.elements,Te=>b.has(Te)))});for(let ze of[...ie,...Ne])Y.delete(e,ze);for(let ze of it)Y.replaceNode(e,ze.importClause,j.updateImportClause(ze.importClause,ze.importClause.isTypeOnly,ze.importClause.name,void 0));for(let ze of b){let ge=Br(ze,sl);ge&&ie.indexOf(ge)===-1&&it.indexOf(ge)===-1?ze.kind===273?Y.delete(e,ze.name):(I.assert(ze.kind===276,"NamespaceImport should have been handled earlier"),(fe=x.get(ge.importClause))!=null&&fe.namedImports?(me??(me=new Set)).add(ze):Y.delete(e,ze)):ze.kind===208?(te=x.get(ze.parent))!=null&&te.namedImports?(me??(me=new Set)).add(ze):Y.delete(e,ze):ze.kind===271&&Y.delete(e,ze)}}x.forEach(({importClauseOrBindingPattern:Pe,defaultImport:Oe,namedImports:ie})=>{G$e(Y,e,Pe,Oe,Ka(ie.entries(),([Ne,{addAsTypeOnly:it,propertyName:ze}])=>({addAsTypeOnly:it,propertyName:ze,name:Ne})),me,i)});let ve;P.forEach(({useRequire:Pe,defaultImport:Oe,namedImports:ie,namespaceLikeImport:Ne},it)=>{let ze=it.slice(2),Me=(Pe?Y$e:X$e)(ze,de,Oe,ie&&Ka(ie.entries(),([Te,[gt,Tt]])=>({addAsTypeOnly:gt,propertyName:Tt,name:Te})),Ne,p,i);ve=n2(ve,Me)}),ve=n2(ve,ne()),ve&&Ute(Y,e,ve,!0,i)}function ne(){if(!S.size)return;let Y=new Set(Bi([...S],fe=>Br(fe,sl))),Ee=new Set(Bi([...S],fe=>Br(fe,s5)));return[...Bi([...S],fe=>fe.kind===271?tc(fe,!0):void 0),...[...Y].map(fe=>{var te;return S.has(fe)?tc(fe,!0):tc(j.updateImportDeclaration(fe,fe.modifiers,fe.importClause&&j.updateImportClause(fe.importClause,fe.importClause.isTypeOnly,S.has(fe.importClause)?fe.importClause.name:void 0,S.has(fe.importClause.namedBindings)?fe.importClause.namedBindings:(te=_i(fe.importClause.namedBindings,Bh))!=null&&te.elements.some(de=>S.has(de))?j.updateNamedImports(fe.importClause.namedBindings,fe.importClause.namedBindings.elements.filter(de=>S.has(de))):void 0),fe.moduleSpecifier,fe.attributes),!0)}),...[...Ee].map(fe=>S.has(fe)?tc(fe,!0):tc(j.updateVariableStatement(fe,fe.modifiers,j.updateVariableDeclarationList(fe.declarationList,Bi(fe.declarationList.declarations,te=>S.has(te)?te:j.updateVariableDeclaration(te,te.name.kind===206?j.updateObjectBindingPattern(te.name,te.name.elements.filter(de=>S.has(de))):te.name,te.exclamationToken,te.type,te.initializer)))),!0))]}function ae(){return g.length>0||m.length>0||x.size>0||P.size>0||S.size>0||b.size>0}}function ALt(e,t,n,i){let s=hA(e,i,n),l=L$e(e,t);return{getModuleSpecifierForBestExportInfo:p};function p(g,m,x,b){let{fixes:S,computedWithoutCacheCount:P}=c$(g,m,x,!1,t,e,n,i,l,b),E=z$e(S,e,t,s,n,i);return E&&{...E,computedWithoutCacheCount:P}}}function ILt(e,t,n,i,s,l,p,g,m,x,b,S){let P;n?(P=OR(i,p,g,b,S).get(i.path,n),I.assertIsDefined(P,"Some exportInfo should match the specified exportMapKey")):(P=yK(qm(t.name))?[MLt(e,s,t,g,p)]:j$e(i,e,s,t,l,g,p,b,S),I.assertIsDefined(P,"Some exportInfo should match the specified symbol / moduleSymbol"));let E=WR(i,g),N=AS(ca(i,x)),F=I.checkDefined(YSe(i,P,g,x,N,E,p,b));return{moduleSpecifier:F.moduleSpecifier,codeAction:R$e(eTe({host:p,formatContext:m,preferences:b},i,s,F,!1,g,b))}}function FLt(e,t,n,i,s,l){let p=n.getCompilerOptions(),g=fS(ZSe(e,n.getTypeChecker(),t,p)),m=V$e(e,t,g,n),x=g!==t.text;return m&&R$e(eTe({host:i,formatContext:s,preferences:l},e,g,m,x,n,l))}function YSe(e,t,n,i,s,l,p,g){let m=hA(e,g,p);return z$e(c$(t,i,s,l,n,e,p,g).fixes,e,n,m,p,g)}function R$e({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function j$e(e,t,n,i,s,l,p,g,m){let x=B$e(l,p),b=g.autoImportFileExcludePatterns&&Lbe(p,g),S=l.getTypeChecker().getMergedSymbol(i),P=b&&S.declarations&&Zc(S,307),E=P&&b(P);return OR(e,p,l,g,m).search(e.path,s,N=>N===n,N=>{let F=x(N[0].isFromPackageJson);if(F.getMergedSymbol(Tp(N[0].symbol,F))===t&&(E||N.some(M=>F.getMergedSymbol(M.moduleSymbol)===i||M.symbol.parent===i)))return N})}function MLt(e,t,n,i,s){var l,p;let g=x(i.getTypeChecker(),!1);if(g)return g;let m=(p=(l=s.getPackageJsonAutoImportProvider)==null?void 0:l.call(s))==null?void 0:p.getTypeChecker();return I.checkDefined(m&&x(m,!0),"Could not find symbol in specified module for code actions");function x(b,S){let P=qU(n,b);if(P&&Tp(P.symbol,b)===e)return{symbol:P.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:P.exportKind,targetFlags:Tp(e,b).flags,isFromPackageJson:S};let E=b.tryGetMemberInModuleExportsAndProperties(t,n);if(E&&Tp(E,b)===e)return{symbol:E,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Tp(e,b).flags,isFromPackageJson:S}}}function c$(e,t,n,i,s,l,p,g,m=Pv(l)?L$e(l,s):void 0,x){let b=s.getTypeChecker(),S=m?li(e,m.getImportsForExportInfo):ce,P=t!==void 0&&RLt(S,t),E=LLt(S,n,b,s.getCompilerOptions());if(E)return{computedWithoutCacheCount:0,fixes:[...P?[P]:ce,E]};let{fixes:N,computedWithoutCacheCount:F=0}=qLt(e,S,s,l,t,n,i,p,g,x);return{computedWithoutCacheCount:F,fixes:[...P?[P]:ce,...N]}}function RLt(e,t){return jr(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;let l=jLt(n),p=l&&((s=GP(n))==null?void 0:s.text);if(p)return{kind:0,namespacePrefix:l,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:p}})}function jLt(e){var t,n,i;switch(e.kind){case 260:return(t=_i(e.name,Ye))==null?void 0:t.text;case 271:return e.name.text;case 351:case 272:return(i=_i((n=e.importClause)==null?void 0:n.namedBindings,jv))==null?void 0:i.name.text;default:return I.assertNever(e)}}function l$(e,t,n,i,s,l){return e?n&&l.verbatimModuleSyntax&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function LLt(e,t,n,i){let s;for(let p of e){let g=l(p);if(!g)continue;let m=KO(g.importClauseOrBindingPattern);if(g.addAsTypeOnly!==4&&m||g.addAsTypeOnly===4&&!m)return g;s??(s=g)}return s;function l({declaration:p,importKind:g,symbol:m,targetFlags:x}){if(g===3||g===2||p.kind===271)return;if(p.kind===260)return(g===0||g===1)&&p.name.kind===206?{kind:2,importClauseOrBindingPattern:p.name,importKind:g,moduleSpecifierKind:void 0,moduleSpecifier:p.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:b}=p;if(!b||!Ho(p.moduleSpecifier))return;let{name:S,namedBindings:P}=b;if(b.isTypeOnly&&!(g===0&&P))return;let E=l$(t,!1,m,x,n,i);if(!(g===1&&(S||E===2&&P))&&!(g===0&&P?.kind===274))return{kind:2,importClauseOrBindingPattern:b,importKind:g,moduleSpecifierKind:void 0,moduleSpecifier:p.moduleSpecifier.text,addAsTypeOnly:E}}}function L$e(e,t){let n=t.getTypeChecker(),i;for(let s of e.imports){let l=u4(s);if(a5(l.parent)){let p=n.resolveExternalModuleName(s);p&&(i||(i=Zl())).add(co(p),l.parent)}else if(l.kind===272||l.kind===271||l.kind===351){let p=n.getSymbolAtLocation(s);p&&(i||(i=Zl())).add(co(p),l)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:l,targetFlags:p,symbol:g})=>{let m=i?.get(co(s));if(!m||Nf(e)&&!(p&111551)&&!sn(m,zh))return ce;let x=mne(e,l,t);return m.map(b=>({declaration:b,importKind:x,symbol:g,targetFlags:p}))}}}function WR(e,t){if(!Iv(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let n=t.getCompilerOptions();if(n.configFile)return hf(n)<5;if(nTe(e,t)===1)return!0;if(nTe(e,t)===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!Nf(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function B$e(e,t){return im(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function BLt(e,t,n,i,s,l,p,g,m){let x=Iv(t.fileName),b=e.getCompilerOptions(),S=YS(e,p),P=B$e(e,p),E=Xp(b),N=bU(E),F=m?W=>L0.tryGetModuleSpecifiersFromCache(W.moduleSymbol,t,S,g):(W,z)=>L0.getModuleSpecifiersWithCacheInfo(W.moduleSymbol,z,b,t,S,g,void 0,!0),M=0,L=li(l,(W,z)=>{let H=P(W.isFromPackageJson),{computedWithoutCache:X,moduleSpecifiers:ne,kind:ae}=F(W,H)??{},Y=!!(W.targetFlags&111551),Ee=l$(i,!0,W.symbol,W.targetFlags,H,b);return M+=X?1:0,Bi(ne,fe=>{if(N&&Ox(fe))return;if(!Y&&x&&n!==void 0)return{kind:1,moduleSpecifierKind:ae,moduleSpecifier:fe,usagePosition:n,exportInfo:W,isReExport:z>0};let te=mne(t,W.exportKind,e),de;if(n!==void 0&&te===3&&W.exportKind===0){let me=H.resolveExternalModuleSymbol(W.moduleSymbol),ve;me!==W.moduleSymbol&&(ve=JU(me,H,Po(b),vc)),ve||(ve=PR(W.moduleSymbol,Po(b),!1)),de={namespacePrefix:ve,usagePosition:n}}return{kind:3,moduleSpecifierKind:ae,moduleSpecifier:fe,importKind:te,useRequire:s,addAsTypeOnly:Ee,exportInfo:W,isReExport:z>0,qualification:de}})});return{computedWithoutCacheCount:M,fixes:L}}function qLt(e,t,n,i,s,l,p,g,m,x){let b=jr(t,S=>JLt(S,l,p,n.getTypeChecker(),n.getCompilerOptions()));return b?{fixes:[b]}:BLt(n,i,s,l,p,e,g,m,x)}function JLt({declaration:e,importKind:t,symbol:n,targetFlags:i},s,l,p,g){var m;let x=(m=GP(e))==null?void 0:m.text;if(x){let b=l?4:l$(s,!0,n,i,p,g);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:x,importKind:t,addAsTypeOnly:b,useRequire:l}}}function q$e(e,t,n,i){let s=ca(e.sourceFile,n),l;if(t===y._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)l=VLt(e,s);else if(Ye(s))if(t===y._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let g=fS(ZSe(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),m=V$e(e.sourceFile,s,g,e.program);return m&&[{fix:m,symbolName:g,errorIdentifierText:s.text}]}else l=$$e(e,s,i);else return;let p=hA(e.sourceFile,e.preferences,e.host);return l&&J$e(l,e.sourceFile,e.program,p,e.host,e.preferences)}function J$e(e,t,n,i,s,l){let p=g=>Ec(g,s.getCurrentDirectory(),D0(s));return ff(e,(g,m)=>_v(!!g.isJsxNamespaceFix,!!m.isJsxNamespaceFix)||mc(g.fix.kind,m.fix.kind)||W$e(g.fix,m.fix,t,n,l,i.allowsImportingSpecifier,p))}function zLt(e,t,n){let i=$$e(e,t,n),s=hA(e.sourceFile,e.preferences,e.host);return i&&J$e(i,e.sourceFile,e.program,s,e.host,e.preferences)}function z$e(e,t,n,i,s,l){if(Pt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((p,g)=>W$e(g,p,t,n,l,i.allowsImportingSpecifier,m=>Ec(m,s.getCurrentDirectory(),D0(s)))===-1?g:p)}function W$e(e,t,n,i,s,l,p){return e.kind!==0&&t.kind!==0?_v(t.moduleSpecifierKind!=="node_modules"||l(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||l(e.moduleSpecifier))||WLt(e,t,s)||$Lt(e.moduleSpecifier,t.moduleSpecifier,n,i)||_v(U$e(e,n.path,p),U$e(t,n.path,p))||V5(e.moduleSpecifier,t.moduleSpecifier):0}function WLt(e,t,n){return n.importModuleSpecifierPreference==="non-relative"||n.importModuleSpecifierPreference==="project-relative"?_v(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function U$e(e,t,n){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&ULt(e.exportInfo.moduleFileName)){let s=n(Ei(e.exportInfo.moduleFileName));return La(t,s)}return!1}function ULt(e){return gu(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function $Lt(e,t,n,i){return La(e,"node:")&&!La(t,"node:")?RU(n,i)?-1:1:La(t,"node:")&&!La(e,"node:")?RU(n,i)?1:-1:0}function VLt({sourceFile:e,program:t,host:n,preferences:i},s){let l=t.getTypeChecker(),p=HLt(s,l);if(!p)return;let g=l.getAliasedSymbol(p),m=p.name,x=[{symbol:p,moduleSymbol:g,moduleFileName:void 0,exportKind:3,targetFlags:g.flags,isFromPackageJson:!1}],b=WR(e,t);return c$(x,void 0,!1,b,t,e,n,i).fixes.map(P=>{var E;return{fix:P,symbolName:m,errorIdentifierText:(E=_i(s,Ye))==null?void 0:E.text}})}function HLt(e,t){let n=Ye(e)?t.getSymbolAtLocation(e):void 0;if(EJ(n))return n;let{parent:i}=e;if(Qp(i)&&i.tagName===e||bg(i)){let s=t.resolveName(t.getJsxNamespace(i),Qp(i)?e:i,111551,!1);if(EJ(s))return s}}function mne(e,t,n,i){if(n.getCompilerOptions().verbatimModuleSyntax&&e9t(e,n)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return XLt(e,n.getCompilerOptions(),!!i);case 3:return GLt(e,n,!!i);case 4:return 2;default:return I.assertNever(t)}}function GLt(e,t,n){if(lE(t.getCompilerOptions()))return 1;let i=hf(t.getCompilerOptions());switch(i){case 2:case 1:case 3:return Iv(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 199:return nTe(e,t)===99?2:3;default:return I.assertNever(i,`Unexpected moduleKind ${i}`)}}function $$e({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},l,p){let g=t.getTypeChecker(),m=t.getCompilerOptions();return li(ZSe(e,g,l,m),x=>{if(x==="default")return;let b=AS(l),S=WR(e,t),P=QLt(x,cN(l),iC(l),n,e,t,p,i,s);return Ka(Xl(P.values(),E=>c$(E,l.getStart(e),b,S,t,e,i,s).fixes),E=>({fix:E,symbolName:x,errorIdentifierText:l.text,isJsxNamespaceFix:x!==l.text}))})}function V$e(e,t,n,i){let s=i.getTypeChecker(),l=s.resolveName(n,t,111551,!0);if(!l)return;let p=s.getTypeOnlyAliasDeclaration(l);if(!(!p||rn(p)!==e))return{kind:4,typeOnlyAliasDeclaration:p}}function ZSe(e,t,n,i){let s=n.parent;if((Qp(s)||q2(s))&&s.tagName===n&&dre(i.jsx)){let l=t.getJsxNamespace(e);if(KLt(l,n,t))return!gN(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,l]:[l]}return[n.text]}function KLt(e,t,n){if(gN(t.text))return!0;let i=n.resolveName(e,t,111551,!0);return!i||Pt(i.declarations,w1)&&!(i.flags&111551)}function QLt(e,t,n,i,s,l,p,g,m){var x;let b=Zl(),S=hA(s,m,g),P=(x=g.getModuleSpecifierCache)==null?void 0:x.call(g),E=im(F=>YS(F?g.getPackageJsonAutoImportProvider():l,g));function N(F,M,L,W,z,H){let X=E(H);if(hre(z,s,M,F,m,S,X,P)){let ne=z.getTypeChecker();b.add(Sbe(L,ne).toString(),{symbol:L,moduleSymbol:F,moduleFileName:M?.fileName,exportKind:W,targetFlags:Tp(L,ne).flags,isFromPackageJson:H})}}return yre(l,g,m,p,(F,M,L,W)=>{let z=L.getTypeChecker();i.throwIfCancellationRequested();let H=L.getCompilerOptions(),X=qU(F,z);X&&eVe(z.getSymbolFlags(X.symbol),n)&&JU(X.symbol,z,Po(H),(ae,Y)=>(t?Y??ae:ae)===e)&&N(F,M,X.symbol,X.exportKind,L,W);let ne=z.tryGetMemberInModuleExportsAndProperties(e,F);ne&&eVe(z.getSymbolFlags(ne),n)&&N(F,M,ne,0,L,W)}),b}function XLt(e,t,n){let i=lE(t),s=Iv(e.fileName);if(!s&&hf(t)>=5)return i?1:2;if(s)return e.externalModuleIndicator||n?i?1:2:3;for(let l of e.statements??ce)if(zu(l)&&!Sl(l.moduleReference))return 3;return i?1:3}function eTe(e,t,n,i,s,l,p){let g,m=Ln.ChangeTracker.with(e,x=>{g=YLt(x,t,n,i,s,l,p)});return Bs(A$e,m,g,I$e,y.Add_all_missing_imports)}function YLt(e,t,n,i,s,l,p){let g=H_(t,p);switch(i.kind){case 0:return tTe(e,t,i),[y.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return K$e(e,t,i,g),[y.Change_0_to_1,n,Q$e(i.moduleSpecifier,g)+n];case 2:{let{importClauseOrBindingPattern:m,importKind:x,addAsTypeOnly:b,moduleSpecifier:S}=i;G$e(e,t,m,x===1?{name:n,addAsTypeOnly:b}:void 0,x===0?[{name:n,addAsTypeOnly:b}]:ce,void 0,p);let P=qm(S);return s?[y.Import_0_from_1,n,P]:[y.Update_import_from_0,P]}case 3:{let{importKind:m,moduleSpecifier:x,addAsTypeOnly:b,useRequire:S,qualification:P}=i,E=S?Y$e:X$e,N=m===1?{name:n,addAsTypeOnly:b}:void 0,F=m===0?[{name:n,addAsTypeOnly:b}]:void 0,M=m===2||m===3?{importKind:m,name:P?.namespacePrefix||n,addAsTypeOnly:b}:void 0;return Ute(e,t,E(x,g,N,F,M,l.getCompilerOptions(),p),!0,p),P&&tTe(e,t,P),s?[y.Import_0_from_1,n,x]:[y.Add_import_from_0,x]}case 4:{let{typeOnlyAliasDeclaration:m}=i,x=ZLt(e,m,l,t,p);return x.kind===276?[y.Remove_type_from_import_of_0_from_1,n,H$e(x.parent.parent)]:[y.Remove_type_from_import_declaration_from_0,H$e(x)]}default:return I.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function H$e(e){var t,n;return e.kind===271?((n=_i((t=_i(e.moduleReference,M0))==null?void 0:t.expression,Ho))==null?void 0:n.text)||e.moduleReference.getText():Js(e.parent.moduleSpecifier,vo).text}function ZLt(e,t,n,i,s){let l=n.getCompilerOptions(),p=l.verbatimModuleSyntax;switch(t.kind){case 276:if(t.isTypeOnly){if(t.parent.elements.length>1){let m=j.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:x}=sT.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,s,i),b=sT.getImportSpecifierInsertionIndex(t.parent.elements,m,x);if(b!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,m,t.parent,b),t}return e.deleteRange(i,{pos:px(t.getFirstToken()),end:px(t.propertyName??t.name)}),t}else return I.assert(t.parent.parent.isTypeOnly),g(t.parent.parent),t.parent.parent;case 273:return g(t),t;case 274:return g(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:I.failBadSyntaxKind(t)}function g(m){var x;if(e.delete(i,$te(m,i)),!l.allowImportingTsExtensions){let b=GP(m.parent),S=b&&((x=n.getResolvedModuleFromModuleSpecifier(b,i))==null?void 0:x.resolvedModule);if(S?.resolvedUsingTsExtension){let P=mF(b.text,HM(b.text,l));e.replaceNode(i,b,j.createStringLiteral(P))}}if(p){let b=_i(m.namedBindings,Bh);if(b&&b.elements.length>1){sT.getNamedImportSpecifierComparerWithDetection(m.parent,s,i).isSorted!==!1&&t.kind===276&&b.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,b,0));for(let P of b.elements)P!==t&&!P.isTypeOnly&&e.insertModifierBefore(i,156,P)}}}}function G$e(e,t,n,i,s,l,p){var g;if(n.kind===206){if(l&&n.elements.some(S=>l.has(S))){e.replaceNode(t,n,j.createObjectBindingPattern([...n.elements.filter(S=>!l.has(S)),...i?[j.createBindingElement(void 0,"default",i.name)]:ce,...s.map(S=>j.createBindingElement(void 0,S.propertyName,S.name))]));return}i&&b(n,i.name,"default");for(let S of s)b(n,S.name,S.propertyName);return}let m=n.isTypeOnly&&Pt([i,...s],S=>S?.addAsTypeOnly===4),x=n.namedBindings&&((g=_i(n.namedBindings,Bh))==null?void 0:g.elements);if(i&&(I.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),j.createIdentifier(i.name),{suffix:", "})),s.length){let{specifierComparer:S,isSorted:P}=sT.getNamedImportSpecifierComparerWithDetection(n.parent,p,t),E=ff(s.map(N=>j.createImportSpecifier((!n.isTypeOnly||m)&&gne(N,p),N.propertyName===void 0?void 0:j.createIdentifier(N.propertyName),j.createIdentifier(N.name))),S);if(l)e.replaceNode(t,n.namedBindings,j.updateNamedImports(n.namedBindings,ff([...x.filter(N=>!l.has(N)),...E],S)));else if(x?.length&&P!==!1){let N=m&&x?j.updateNamedImports(n.namedBindings,ia(x,F=>j.updateImportSpecifier(F,!0,F.propertyName,F.name))).elements:x;for(let F of E){let M=sT.getImportSpecifierInsertionIndex(N,F,S);e.insertImportSpecifierAtIndex(t,F,n.namedBindings,M)}}else if(x?.length)for(let N of E)e.insertNodeInListAfter(t,ao(x),N,x);else if(E.length){let N=j.createNamedImports(E);n.namedBindings?e.replaceNode(t,n.namedBindings,N):e.insertNodeAfter(t,I.checkDefined(n.name,"Import clause must have either named imports or a default import"),N)}}if(m&&(e.delete(t,$te(n,t)),x))for(let S of x)e.insertModifierBefore(t,156,S);function b(S,P,E){let N=j.createBindingElement(void 0,E,P);S.elements.length?e.insertNodeInListAfter(t,ao(S.elements),N):e.replaceNode(t,S,j.createObjectBindingPattern([N]))}}function tTe(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function K$e(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,Q$e(n,s))}function Q$e(e,t){let n=zte(t);return`import(${n}${e}${n}).`}function rTe({addAsTypeOnly:e}){return e===2}function gne(e,t){return rTe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function X$e(e,t,n,i,s,l,p){let g=B3(e,t),m;if(n!==void 0||i?.length){let x=(!n||rTe(n))&&sn(i,rTe)||(l.verbatimModuleSyntax||p.preferTypeOnlyAutoImports)&&n?.addAsTypeOnly!==4&&!Pt(i,b=>b.addAsTypeOnly===4);m=n2(m,Mx(n&&j.createIdentifier(n.name),i?.map(b=>j.createImportSpecifier(!x&&gne(b,p),b.propertyName===void 0?void 0:j.createIdentifier(b.propertyName),j.createIdentifier(b.name))),e,t,x))}if(s){let x=s.importKind===3?j.createImportEqualsDeclaration(void 0,gne(s,p),j.createIdentifier(s.name),j.createExternalModuleReference(g)):j.createImportDeclaration(void 0,j.createImportClause(gne(s,p),void 0,j.createNamespaceImport(j.createIdentifier(s.name))),g,void 0);m=n2(m,x)}return I.checkDefined(m)}function Y$e(e,t,n,i,s){let l=B3(e,t),p;if(n||i?.length){let g=i?.map(({name:x,propertyName:b})=>j.createBindingElement(void 0,b,x))||[];n&&g.unshift(j.createBindingElement(void 0,"default",n.name));let m=Z$e(j.createObjectBindingPattern(g),l);p=n2(p,m)}if(s){let g=Z$e(s.name,l);p=n2(p,g)}return I.checkDefined(p)}function Z$e(e,t){return j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(typeof e=="string"?j.createIdentifier(e):e,void 0,void 0,j.createCallExpression(j.createIdentifier("require"),void 0,[t]))],2))}function eVe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function nTe(e,t){return Pv(e)?t.getImpliedNodeFormatForEmit(e):nC(e,t.getCompilerOptions())}function e9t(e,t){return Pv(e)?t.getEmitModuleFormatOfFile(e):O3(e,t.getCompilerOptions())}var iTe="addMissingConstraint",tVe=[y.Type_0_is_not_comparable_to_type_1.code,y.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,y.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,y.Type_0_is_not_assignable_to_type_1.code,y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,y.Property_0_is_incompatible_with_index_signature.code,y.Property_0_in_type_1_is_not_assignable_to_type_2.code,y.Type_0_does_not_satisfy_the_constraint_1.code];ro({errorCodes:tVe,getCodeActions(e){let{sourceFile:t,span:n,program:i,preferences:s,host:l}=e,p=rVe(i,t,n);if(p===void 0)return;let g=Ln.ChangeTracker.with(e,m=>nVe(m,i,s,l,t,p));return[Bs(iTe,g,y.Add_extends_constraint,iTe,y.Add_extends_constraint_to_all_type_parameters)]},fixIds:[iTe],getAllCodeActions:e=>{let{program:t,preferences:n,host:i}=e,s=new Set;return QE(Ln.ChangeTracker.with(e,l=>{XE(e,tVe,p=>{let g=rVe(t,p.file,Sp(p.start,p.length));if(g&&Jm(s,Wo(g.declaration)))return nVe(l,t,n,i,p.file,g)})}))}});function rVe(e,t,n){let i=Ir(e.getSemanticDiagnostics(t),p=>p.start===n.start&&p.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=Ir(i.relatedInformation,p=>p.code===y.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let l=YTe(s.file,Sp(s.start,s.length));if(l!==void 0&&(Ye(l)&&Hc(l.parent)&&(l=l.parent),Hc(l))){if(zk(l.parent))return;let p=ca(t,n.start),g=e.getTypeChecker();return{constraint:r9t(g,p)||t9t(s.messageText),declaration:l,token:p}}}function nVe(e,t,n,i,s,l){let{declaration:p,constraint:g}=l,m=t.getTypeChecker();if(Ua(g))e.insertText(s,p.name.end,` extends ${g}`);else{let x=Po(t.getCompilerOptions()),b=TA({program:t,host:i}),S=aw(s,t,n,i),P=Nne(m,S,g,void 0,x,void 0,void 0,b);P&&(e.replaceNode(s,p,j.updateTypeParameterDeclaration(p,void 0,p.name,P,p.default)),S.writeFixes(e))}}function t9t(e){let[,t]=Uh(e,`
|
|
`,0).match(/`extends (.*)`/)||[];return t}function r9t(e,t){return Yi(t.parent)?e.getTypeArgumentConstraint(t.parent):(At(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var iVe="fixOverrideModifier",UR="fixAddOverrideModifier",u$="fixRemoveOverrideModifier",aVe=[y.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,y.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,y.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,y.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,y.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,y.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,y.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],sVe={[y.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:y.Add_override_modifier,fixId:UR,fixAllDescriptions:y.Add_all_missing_override_modifiers},[y.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:y.Add_override_modifier,fixId:UR,fixAllDescriptions:y.Add_all_missing_override_modifiers},[y.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:y.Remove_override_modifier,fixId:u$,fixAllDescriptions:y.Remove_all_unnecessary_override_modifiers},[y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:y.Remove_override_modifier,fixId:u$,fixAllDescriptions:y.Remove_override_modifier},[y.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:y.Add_override_modifier,fixId:UR,fixAllDescriptions:y.Add_all_missing_override_modifiers},[y.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:y.Add_override_modifier,fixId:UR,fixAllDescriptions:y.Add_all_missing_override_modifiers},[y.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:y.Add_override_modifier,fixId:UR,fixAllDescriptions:y.Remove_all_unnecessary_override_modifiers},[y.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:y.Remove_override_modifier,fixId:u$,fixAllDescriptions:y.Remove_all_unnecessary_override_modifiers},[y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:y.Remove_override_modifier,fixId:u$,fixAllDescriptions:y.Remove_all_unnecessary_override_modifiers}};ro({errorCodes:aVe,getCodeActions:function(t){let{errorCode:n,span:i}=t,s=sVe[n];if(!s)return ce;let{descriptions:l,fixId:p,fixAllDescriptions:g}=s,m=Ln.ChangeTracker.with(t,x=>oVe(x,t,n,i.start));return[TSe(iVe,m,l,p,g)]},fixIds:[iVe,UR,u$],getAllCodeActions:e=>uc(e,aVe,(t,n)=>{let{code:i,start:s}=n,l=sVe[i];!l||l.fixId!==e.fixId||oVe(t,e,i,s)})});function oVe(e,t,n,i){switch(n){case y.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case y.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case y.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case y.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case y.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return n9t(e,t.sourceFile,i);case y.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case y.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return i9t(e,t.sourceFile,i);default:I.fail("Unexpected error code: "+n)}}function n9t(e,t,n){let i=lVe(t,n);if(Nf(t)){e.addJSDocTags(t,i,[j.createJSDocOverrideTag(j.createIdentifier("override"))]);return}let s=i.modifiers||ce,l=Ir(s,bE),p=Ir(s,Phe),g=Ir(s,S=>Ate(S.kind)),m=Ks(s,qu),x=p?p.end:l?l.end:g?g.end:m?yo(t.text,m.end):i.getStart(t),b=g||l||p?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,x,164,b)}function i9t(e,t,n){let i=lVe(t,n);if(Nf(t)){e.filterJSDocTags(t,i,NO(wz));return}let s=Ir(i.modifiers,Ehe);I.assertIsDefined(s),e.deleteModifier(t,s)}function cVe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return L_(e,e.parent);default:return!1}}function lVe(e,t){let n=ca(e,t),i=Br(n,s=>Ri(s)?"quit":cVe(s));return I.assert(i&&cVe(i)),i}var aTe="fixNoPropertyAccessFromIndexSignature",uVe=[y.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];ro({errorCodes:uVe,fixIds:[aTe],getCodeActions(e){let{sourceFile:t,span:n,preferences:i}=e,s=fVe(t,n.start),l=Ln.ChangeTracker.with(e,p=>pVe(p,e.sourceFile,s,i));return[Bs(aTe,l,[y.Use_element_access_for_0,s.name.text],aTe,y.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>uc(e,uVe,(t,n)=>pVe(t,n.file,fVe(n.file,n.start),e.preferences))});function pVe(e,t,n,i){let s=H_(t,i),l=j.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,pq(n)?j.createElementAccessChain(n.expression,n.questionDotToken,l):j.createElementAccessExpression(n.expression,l))}function fVe(e,t){return Js(ca(e,t).parent,ai)}var sTe="fixImplicitThis",_Ve=[y.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ro({errorCodes:_Ve,getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,l,p=Ln.ChangeTracker.with(t,g=>{l=dVe(g,n,s.start,i.getTypeChecker())});return l?[Bs(sTe,p,l,sTe,y.Fix_all_implicit_this_errors)]:ce},fixIds:[sTe],getAllCodeActions:e=>uc(e,_Ve,(t,n)=>{dVe(t,n.file,n.start,e.program.getTypeChecker())})});function dVe(e,t,n,i){let s=ca(t,n);if(!lA(s))return;let l=mf(s,!1,!1);if(!(!jl(l)&&!Ic(l))&&!ba(mf(l,!1,!1))){let p=I.checkDefined(gc(l,100,t)),{name:g}=l,m=I.checkDefined(l.body);return Ic(l)?g&&qc.Core.isSymbolReferencedInFile(g,i,t,m)?void 0:(e.delete(t,p),g&&e.delete(t,g),e.insertText(t,m.pos," =>"),[y.Convert_function_expression_0_to_arrow_function,g?g.text:are]):(e.replaceNode(t,p,j.createToken(87)),e.insertText(t,g.end," = "),e.insertText(t,m.pos," =>"),[y.Convert_function_declaration_0_to_arrow_function,g.text])}}var oTe="fixImportNonExportedMember",mVe=[y.Module_0_declares_1_locally_but_it_is_not_exported.code];ro({errorCodes:mVe,fixIds:[oTe],getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=gVe(t,n.start,i);if(s===void 0)return;let l=Ln.ChangeTracker.with(e,p=>a9t(p,i,s));return[Bs(oTe,l,[y.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],oTe,y.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return QE(Ln.ChangeTracker.with(e,n=>{let i=new Map;XE(e,mVe,s=>{let l=gVe(s.file,s.start,t);if(l===void 0)return;let{exportName:p,node:g,moduleSourceFile:m}=l;if(hne(m,p.isTypeOnly)===void 0&&K5(g))n.insertExportModifier(m,g);else{let x=i.get(m)||{typeOnlyExports:[],exports:[]};p.isTypeOnly?x.typeOnlyExports.push(p):x.exports.push(p),i.set(m,x)}}),i.forEach((s,l)=>{let p=hne(l,!0);p&&p.isTypeOnly?(cTe(n,t,l,s.typeOnlyExports,p),cTe(n,t,l,s.exports,hne(l,!1))):cTe(n,t,l,[...s.exports,...s.typeOnlyExports],p)})}))}});function gVe(e,t,n){var i,s;let l=ca(e,t);if(Ye(l)){let p=Br(l,sl);if(p===void 0)return;let g=vo(p.moduleSpecifier)?p.moduleSpecifier:void 0;if(g===void 0)return;let m=(i=n.getResolvedModuleFromModuleSpecifier(g,e))==null?void 0:i.resolvedModule;if(m===void 0)return;let x=n.getSourceFile(m.resolvedFileName);if(x===void 0||yA(n,x))return;let b=x.symbol,S=(s=_i(b.valueDeclaration,Py))==null?void 0:s.locals;if(S===void 0)return;let P=S.get(l.escapedText);if(P===void 0)return;let E=s9t(P);return E===void 0?void 0:{exportName:{node:l,isTypeOnly:pE(E)},node:E,moduleSourceFile:x,moduleSpecifier:g.text}}}function a9t(e,t,{exportName:n,node:i,moduleSourceFile:s}){let l=hne(s,n.isTypeOnly);l?hVe(e,t,s,l,[n]):K5(i)?e.insertExportModifier(s,i):yVe(e,t,s,[n])}function cTe(e,t,n,i,s){Re(i)&&(s?hVe(e,t,n,s,i):yVe(e,t,n,i))}function hne(e,t){let n=i=>tu(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Ks(e.statements,n)}function hVe(e,t,n,i,s){let l=i.exportClause&&hm(i.exportClause)?i.exportClause.elements:j.createNodeArray([]),p=!i.isTypeOnly&&!!(zm(t.getCompilerOptions())||Ir(l,g=>g.isTypeOnly));e.replaceNode(n,i,j.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,j.createNamedExports(j.createNodeArray([...l,...vVe(s,p)],l.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function yVe(e,t,n,i){e.insertNodeAtEndOfScope(n,n,j.createExportDeclaration(void 0,!1,j.createNamedExports(vVe(i,zm(t.getCompilerOptions()))),void 0,void 0))}function vVe(e,t){return j.createNodeArray(Dt(e,n=>j.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function s9t(e){if(e.valueDeclaration===void 0)return Yl(e.declarations);let t=e.valueDeclaration,n=Ui(t)?_i(t.parent.parent,Rl):void 0;return n&&Re(n.declarationList.declarations)===1?n:t}var lTe="fixIncorrectNamedTupleSyntax",o9t=[y.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,y.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];ro({errorCodes:o9t,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=c9t(n,i.start),l=Ln.ChangeTracker.with(t,p=>l9t(p,n,s));return[Bs(lTe,l,y.Move_labeled_tuple_element_modifiers_to_labels,lTe,y.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[lTe]});function c9t(e,t){let n=ca(e,t);return Br(n,i=>i.kind===202)}function l9t(e,t,n){if(!n)return;let i=n.type,s=!1,l=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?s=!0:i.kind===191&&(l=!0),i=i.type;let p=j.updateNamedTupleMember(n,n.dotDotDotToken||(l?j.createToken(26):void 0),n.name,n.questionToken||(s?j.createToken(58):void 0),i);p!==n&&e.replaceNode(t,n,p)}var bVe="fixSpelling",xVe=[y.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,y.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y.Cannot_find_name_0_Did_you_mean_1.code,y.Could_not_find_name_0_Did_you_mean_1.code,y.Cannot_find_namespace_0_Did_you_mean_1.code,y.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,y.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,y._0_has_no_exported_member_named_1_Did_you_mean_2.code,y.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,y.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,y.No_overload_matches_this_call.code,y.Type_0_is_not_assignable_to_type_1.code];ro({errorCodes:xVe,getCodeActions(e){let{sourceFile:t,errorCode:n}=e,i=SVe(t,e.span.start,e,n);if(!i)return;let{node:s,suggestedSymbol:l}=i,p=Po(e.host.getCompilationSettings()),g=Ln.ChangeTracker.with(e,m=>TVe(m,t,s,l,p));return[Bs("spelling",g,[y.Change_spelling_to_0,Ml(l)],bVe,y.Fix_all_detected_spelling_errors)]},fixIds:[bVe],getAllCodeActions:e=>uc(e,xVe,(t,n)=>{let i=SVe(n.file,n.start,e,n.code),s=Po(e.host.getCompilationSettings());i&&TVe(t,e.sourceFile,i.node,i.suggestedSymbol,s)})});function SVe(e,t,n,i){let s=ca(e,t),l=s.parent;if((i===y.No_overload_matches_this_call.code||i===y.Type_0_is_not_assignable_to_type_1.code)&&!Jh(l))return;let p=n.program.getTypeChecker(),g;if(ai(l)&&l.name===s){I.assert(xv(s),"Expected an identifier for spelling (property access)");let m=p.getTypeAtLocation(l.expression);l.flags&64&&(m=p.getNonNullableType(m)),g=p.getSuggestedSymbolForNonexistentProperty(s,m)}else if(Vn(l)&&l.operatorToken.kind===103&&l.left===s&&Ca(s)){let m=p.getTypeAtLocation(l.right);g=p.getSuggestedSymbolForNonexistentProperty(s,m)}else if(If(l)&&l.right===s){let m=p.getSymbolAtLocation(l.left);m&&m.flags&1536&&(g=p.getSuggestedSymbolForNonexistentModule(l.right,m))}else if(bf(l)&&l.name===s){I.assertNode(s,Ye,"Expected an identifier for spelling (import)");let m=Br(s,sl),x=p9t(n,m,e);x&&x.symbol&&(g=p.getSuggestedSymbolForNonexistentModule(s,x.symbol))}else if(Jh(l)&&l.name===s){I.assertNode(s,Ye,"Expected an identifier for JSX attribute");let m=Br(s,Qp),x=p.getContextualTypeForArgumentAtIndex(m,0);g=p.getSuggestedSymbolForNonexistentJSXAttribute(s,x)}else if(vJ(l)&&ou(l)&&l.name===s){let m=Br(s,Ri),x=m?Dh(m):void 0,b=x?p.getTypeAtLocation(x):void 0;b&&(g=p.getSuggestedSymbolForNonexistentClassMember(cl(s),b))}else{let m=iC(s),x=cl(s);I.assert(x!==void 0,"name should be defined"),g=p.getSuggestedSymbolForNonexistentSymbol(s,x,u9t(m))}return g===void 0?void 0:{node:s,suggestedSymbol:g}}function TVe(e,t,n,i,s){let l=Ml(i);if(!m_(l,s)&&ai(n.parent)){let p=i.valueDeclaration;p&&Gu(p)&&Ca(p.name)?e.replaceNode(t,n,j.createIdentifier(l)):e.replaceNode(t,n.parent,j.createElementAccessExpression(n.parent.expression,j.createStringLiteral(l)))}else e.replaceNode(t,n,j.createIdentifier(l))}function u9t(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function p9t(e,t,n){var i;if(!t||!Ho(t.moduleSpecifier))return;let s=(i=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))==null?void 0:i.resolvedModule;if(s)return e.program.getSourceFile(s.resolvedFileName)}var uTe="returnValueCorrect",pTe="fixAddReturnStatement",fTe="fixRemoveBracesFromArrowFunctionBody",_Te="fixWrapTheBlockWithParen",wVe=[y.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,y.Type_0_is_not_assignable_to_type_1.code,y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];ro({errorCodes:wVe,fixIds:[pTe,fTe,_Te],getCodeActions:function(t){let{program:n,sourceFile:i,span:{start:s},errorCode:l}=t,p=CVe(n.getTypeChecker(),i,s,l);if(p)return p.kind===0?Zr([_9t(t,p.expression,p.statement)],Bc(p.declaration)?d9t(t,p.declaration,p.expression,p.commentSource):void 0):[m9t(t,p.declaration,p.expression)]},getAllCodeActions:e=>uc(e,wVe,(t,n)=>{let i=CVe(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case pTe:PVe(t,n.file,i.expression,i.statement);break;case fTe:if(!Bc(i.declaration))return;EVe(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case _Te:if(!Bc(i.declaration))return;DVe(t,n.file,i.declaration,i.expression);break;default:I.fail(JSON.stringify(e.fixId))}})});function kVe(e,t,n){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);let s=Qs([i]);return e.createAnonymousType(void 0,s,[],[],[])}function dTe(e,t,n,i){if(!t.body||!Cs(t.body)||Re(t.body.statements)!==1)return;let s=ho(t.body.statements);if(Zu(s)&&mTe(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(Cx(s)&&Zu(s.statement)){let l=j.createObjectLiteralExpression([j.createPropertyAssignment(s.label,s.statement.expression)]),p=kVe(e,s.label,s.statement.expression);if(mTe(e,t,p,n,i))return Bc(t)?{declaration:t,kind:1,expression:l,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:l,statement:s,commentSource:s.statement.expression}}else if(Cs(s)&&Re(s.statements)===1){let l=ho(s.statements);if(Cx(l)&&Zu(l.statement)){let p=j.createObjectLiteralExpression([j.createPropertyAssignment(l.label,l.statement.expression)]),g=kVe(e,l.label,l.statement.expression);if(mTe(e,t,g,n,i))return{declaration:t,kind:0,expression:p,statement:s,commentSource:l}}}}function mTe(e,t,n,i,s){if(s){let l=e.getSignatureFromDeclaration(t);if(l){Ai(t,1024)&&(n=e.createPromiseType(n));let p=e.createSignature(t,l.typeParameters,l.thisParameter,l.parameters,n,void 0,l.minArgumentCount,l.flags);n=e.createAnonymousType(void 0,Qs(),[p],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function CVe(e,t,n,i){let s=ca(t,n);if(!s.parent)return;let l=Br(s.parent,Dc);switch(i){case y.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!l||!l.body||!l.type||!Zf(l.type,s)?void 0:dTe(e,l,e.getTypeFromTypeNode(l.type),!1);case y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!l||!Ls(l.parent)||!l.body)return;let p=l.parent.arguments.indexOf(l);if(p===-1)return;let g=e.getContextualTypeForArgumentAtIndex(l.parent,p);return g?dTe(e,l,g,!0):void 0;case y.Type_0_is_not_assignable_to_type_1.code:if(!Ny(s)||!n4(s.parent)&&!Jh(s.parent))return;let m=f9t(s.parent);return!m||!Dc(m)||!m.body?void 0:dTe(e,m,e.getTypeAtLocation(s.parent),!0)}}function f9t(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(MN(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}function PVe(e,t,n,i){K_(n);let s=kR(t);e.replaceNode(t,i,j.createReturnStatement(n),{leadingTriviaOption:Ln.LeadingTriviaOption.Exclude,trailingTriviaOption:Ln.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function EVe(e,t,n,i,s,l){let p=l||CU(i)?j.createParenthesizedExpression(i):i;K_(s),sC(s,p),e.replaceNode(t,n.body,p)}function DVe(e,t,n,i){e.replaceNode(t,n.body,j.createParenthesizedExpression(i))}function _9t(e,t,n){let i=Ln.ChangeTracker.with(e,s=>PVe(s,e.sourceFile,t,n));return Bs(uTe,i,y.Add_a_return_statement,pTe,y.Add_all_missing_return_statement)}function d9t(e,t,n,i){let s=Ln.ChangeTracker.with(e,l=>EVe(l,e.sourceFile,t,n,i,!1));return Bs(uTe,s,y.Remove_braces_from_arrow_function_body,fTe,y.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function m9t(e,t,n){let i=Ln.ChangeTracker.with(e,s=>DVe(s,e.sourceFile,t,n));return Bs(uTe,i,y.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,_Te,y.Wrap_all_object_literal_with_parentheses)}var iT="fixMissingMember",yne="fixMissingProperties",vne="fixMissingAttributes",bne="fixMissingFunctionDeclaration",OVe=[y.Property_0_does_not_exist_on_type_1.code,y.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,y.Property_0_is_missing_in_type_1_but_required_in_type_2.code,y.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,y.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,y.Cannot_find_name_0.code,y.Type_0_does_not_satisfy_the_expected_type_1.code];ro({errorCodes:OVe,getCodeActions(e){let t=e.program.getTypeChecker(),n=NVe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){let i=Ln.ChangeTracker.with(e,s=>JVe(s,e,n));return[Bs(yne,i,y.Add_missing_properties,yne,y.Add_all_missing_properties)]}if(n.kind===4){let i=Ln.ChangeTracker.with(e,s=>qVe(s,e,n));return[Bs(vne,i,y.Add_missing_attributes,vne,y.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){let i=Ln.ChangeTracker.with(e,s=>BVe(s,e,n));return[Bs(bne,i,[y.Add_missing_function_declaration_0,n.token.text],bne,y.Add_all_missing_function_declarations)]}if(n.kind===1){let i=Ln.ChangeTracker.with(e,s=>LVe(s,e.program.getTypeChecker(),n));return[Bs(iT,i,[y.Add_missing_enum_member_0,n.token.text],iT,y.Add_all_missing_members)]}return ya(b9t(e,n),g9t(e,n))}},fixIds:[iT,bne,yne,vne],getAllCodeActions:e=>{let{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Set,l=new Map;return QE(Ln.ChangeTracker.with(e,p=>{XE(e,OVe,g=>{let m=NVe(g.file,g.start,g.code,i,e.program);if(m===void 0)return;let x=Wo(m.parentDeclaration)+"#"+(m.kind===3?m.identifier||Wo(m.token):m.token.text);if(Jm(s,x)){if(n===bne&&(m.kind===2||m.kind===5))BVe(p,e,m);else if(n===yne&&m.kind===3)JVe(p,e,m);else if(n===vne&&m.kind===4)qVe(p,e,m);else if(m.kind===1&&LVe(p,i,m),m.kind===0){let{parentDeclaration:b,token:S}=m,P=A_(l,b,()=>[]);P.some(E=>E.token.text===S.text)||P.push(m)}}}),l.forEach((g,m)=>{let x=Ff(m)?void 0:ZTe(m,i);for(let b of g){if(x?.some(L=>{let W=l.get(L);return!!W&&W.some(({token:z})=>z.text===b.token.text)}))continue;let{parentDeclaration:S,declSourceFile:P,modifierFlags:E,token:N,call:F,isJSFile:M}=b;if(F&&!Ca(N))jVe(e,p,F,N,E&256,S,P);else if(M&&!Cp(S)&&!Ff(S))AVe(p,P,S,N,!!(E&256));else{let L=FVe(i,S,N);MVe(p,P,S,N.text,L,E&256)}}})}))}});function NVe(e,t,n,i,s){var l,p;let g=ca(e,t),m=g.parent;if(n===y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(g.kind===19&&So(m)&&Ls(m.parent)))return;let N=Va(m.parent.arguments,W=>W===m);if(N<0)return;let F=i.getResolvedSignature(m.parent);if(!(F&&F.declaration&&F.parameters[N]))return;let M=F.parameters[N].valueDeclaration;if(!(M&&Da(M)&&Ye(M.name)))return;let L=Ka(i.getUnmatchedProperties(i.getTypeAtLocation(m),i.getParameterType(F,N).getNonNullableType(),!1,!1));return Re(L)?{kind:3,token:M.name,identifier:M.name.text,properties:L,parentDeclaration:m}:void 0}if(g.kind===19||IN(m)||md(m)){let N=(IN(m)||md(m))&&m.expression?m.expression:m;if(So(N)){let F=IN(m)?i.getTypeFromTypeNode(m.type):i.getContextualType(N)||i.getTypeAtLocation(N),M=Ka(i.getUnmatchedProperties(i.getTypeAtLocation(m),F.getNonNullableType(),!1,!1));return Re(M)?{kind:3,token:m,identifier:void 0,properties:M,parentDeclaration:N,indentation:md(N.parent)||lM(N.parent)?0:void 0}:void 0}}if(!xv(g))return;if(Ye(g)&&k1(m)&&m.initializer&&So(m.initializer)){let N=(l=i.getContextualType(g)||i.getTypeAtLocation(g))==null?void 0:l.getNonNullableType(),F=Ka(i.getUnmatchedProperties(i.getTypeAtLocation(m.initializer),N,!1,!1));return Re(F)?{kind:3,token:g,identifier:g.text,properties:F,parentDeclaration:m.initializer}:void 0}if(Ye(g)&&Qp(g.parent)){let N=Po(s.getCompilerOptions()),F=S9t(i,N,g.parent);return Re(F)?{kind:4,token:g,attributes:F,parentDeclaration:g.parent}:void 0}if(Ye(g)){let N=(p=i.getContextualType(g))==null?void 0:p.getNonNullableType();if(N&&oi(N)&16){let F=Yl(i.getSignaturesOfType(N,0));return F===void 0?void 0:{kind:5,token:g,signature:F,sourceFile:e,parentDeclaration:zVe(g)}}if(Ls(m)&&m.expression===g)return{kind:2,token:g,call:m,sourceFile:e,modifierFlags:0,parentDeclaration:zVe(g)}}if(!ai(m))return;let x=Lte(i.getTypeAtLocation(m.expression)),b=x.symbol;if(!b||!b.declarations)return;if(Ye(g)&&Ls(m.parent)){let N=Ir(b.declarations,cu),F=N?.getSourceFile();if(N&&F&&!yA(s,F))return{kind:2,token:g,call:m.parent,sourceFile:F,modifierFlags:32,parentDeclaration:N};let M=Ir(b.declarations,ba);if(e.commonJsModuleIndicator)return;if(M&&!yA(s,M))return{kind:2,token:g,call:m.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}let S=Ir(b.declarations,Ri);if(!S&&Ca(g))return;let P=S||Ir(b.declarations,N=>Cp(N)||Ff(N));if(P&&!yA(s,P.getSourceFile())){let N=!Ff(P)&&(x.target||x)!==i.getDeclaredTypeOfSymbol(b);if(N&&(Ca(g)||Cp(P)))return;let F=P.getSourceFile(),M=Ff(P)?0:(N?256:0)|(_re(g.text)?2:0),L=Nf(F),W=_i(m.parent,Ls);return{kind:0,token:g,call:W,modifierFlags:M,parentDeclaration:P,declSourceFile:F,isJSFile:L}}let E=Ir(b.declarations,B2);if(E&&!(x.flags&1056)&&!Ca(g)&&!yA(s,E.getSourceFile()))return{kind:1,token:g,parentDeclaration:E}}function g9t(e,t){return t.isJSFile?lg(h9t(e,t)):y9t(e,t)}function h9t(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(Cp(t)||Ff(t))return;let l=Ln.ChangeTracker.with(e,g=>AVe(g,n,t,s,!!(i&256)));if(l.length===0)return;let p=i&256?y.Initialize_static_property_0:Ca(s)?y.Declare_a_private_field_named_0:y.Initialize_property_0_in_the_constructor;return Bs(iT,l,[p,s.text],iT,y.Add_all_missing_members)}function AVe(e,t,n,i,s){let l=i.text;if(s){if(n.kind===231)return;let p=n.name.getText(),g=IVe(j.createIdentifier(p),l);e.insertNodeAfter(t,n,g)}else if(Ca(i)){let p=j.createPropertyDeclaration(void 0,l,void 0,void 0,void 0),g=RVe(n);g?e.insertNodeAfter(t,g,p):e.insertMemberAtStart(t,n,p)}else{let p=Dv(n);if(!p)return;let g=IVe(j.createThis(),l);e.insertNodeAtConstructorEnd(t,p,g)}}function IVe(e,t){return j.createExpressionStatement(j.createAssignment(j.createPropertyAccessExpression(e,t),ZE()))}function y9t(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){let l=s.text,p=i&256,g=FVe(e.program.getTypeChecker(),t,s),m=b=>Ln.ChangeTracker.with(e,S=>MVe(S,n,t,l,g,b)),x=[Bs(iT,m(i&256),[p?y.Declare_static_property_0:y.Declare_property_0,l],iT,y.Add_all_missing_members)];return p||Ca(s)||(i&2&&x.unshift(Yg(iT,m(2),[y.Declare_private_property_0,l])),x.push(v9t(e,n,t,s.text,g))),x}function FVe(e,t,n){let i;if(n.parent.parent.kind===226){let s=n.parent.parent,l=n.parent===s.left?s.right:s.left,p=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(l)));i=e.typeToTypeNode(p,t,1,8)}else{let s=e.getContextualType(n.parent);i=s?e.typeToTypeNode(s,void 0,1,8):void 0}return i||j.createKeywordTypeNode(133)}function MVe(e,t,n,i,s,l){let p=l?j.createNodeArray(j.createModifiersFromModifierFlags(l)):void 0,g=Ri(n)?j.createPropertyDeclaration(p,i,void 0,s,void 0):j.createPropertySignature(void 0,i,void 0,s),m=RVe(n);m?e.insertNodeAfter(t,m,g):e.insertMemberAtStart(t,n,g)}function RVe(e){let t;for(let n of e.members){if(!is(n))break;t=n}return t}function v9t(e,t,n,i,s){let l=j.createKeywordTypeNode(154),p=j.createParameterDeclaration(void 0,void 0,"x",void 0,l,void 0),g=j.createIndexSignature(void 0,[p],s),m=Ln.ChangeTracker.with(e,x=>x.insertMemberAtStart(t,n,g));return Yg(iT,m,[y.Add_index_signature_for_property_0,i])}function b9t(e,t){let{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:l,call:p}=t;if(p===void 0)return;let g=l.text,m=b=>Ln.ChangeTracker.with(e,S=>jVe(e,S,p,l,b,n,i)),x=[Bs(iT,m(s&256),[s&256?y.Declare_static_method_0:y.Declare_method_0,g],iT,y.Add_all_missing_members)];return s&2&&x.unshift(Yg(iT,m(2),[y.Declare_private_method_0,g])),x}function jVe(e,t,n,i,s,l,p){let g=aw(p,e.program,e.preferences,e.host),m=Ri(l)?174:173,x=$Te(m,e,g,n,i,s,l),b=T9t(l,n);b?t.insertNodeAfter(p,b,x):t.insertMemberAtStart(p,l,x),g.writeFixes(t)}function LVe(e,t,{token:n,parentDeclaration:i}){let s=Pt(i.members,m=>{let x=t.getTypeAtLocation(m);return!!(x&&x.flags&402653316)}),l=i.getSourceFile(),p=j.createEnumMember(n,s?j.createStringLiteral(n.text):void 0),g=dc(i.members);g?e.insertNodeInListAfter(l,g,p,i.members):e.insertMemberAtStart(l,i,p)}function BVe(e,t,n){let i=H_(t.sourceFile,t.preferences),s=aw(t.sourceFile,t.program,t.preferences,t.host),l=n.kind===2?$Te(262,t,s,n.call,fi(n.token),n.modifierFlags,n.parentDeclaration):One(262,t,i,n.signature,f$(y.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);l===void 0&&I.fail("fixMissingFunctionDeclaration codefix got unexpected error."),md(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,l,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,l),s.writeFixes(e)}function qVe(e,t,n){let i=aw(t.sourceFile,t.program,t.preferences,t.host),s=H_(t.sourceFile,t.preferences),l=t.program.getTypeChecker(),p=n.parentDeclaration.attributes,g=Pt(p.properties,EE),m=Dt(n.attributes,S=>{let P=xne(t,l,i,s,l.getTypeOfSymbol(S),n.parentDeclaration),E=j.createIdentifier(S.name),N=j.createJsxAttribute(E,j.createJsxExpression(void 0,P));return Xo(E,N),N}),x=j.createJsxAttributes(g?[...m,...p.properties]:[...p.properties,...m]),b={prefix:p.pos===p.end?" ":void 0};e.replaceNode(t.sourceFile,p,x,b),i.writeFixes(e)}function JVe(e,t,n){let i=aw(t.sourceFile,t.program,t.preferences,t.host),s=H_(t.sourceFile,t.preferences),l=Po(t.program.getCompilerOptions()),p=t.program.getTypeChecker(),g=Dt(n.properties,x=>{let b=xne(t,p,i,s,p.getTypeOfSymbol(x),n.parentDeclaration);return j.createPropertyAssignment(w9t(x,l,s,p),b)}),m={leadingTriviaOption:Ln.LeadingTriviaOption.Exclude,trailingTriviaOption:Ln.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,j.createObjectLiteralExpression([...n.parentDeclaration.properties,...g],!0),m),i.writeFixes(e)}function xne(e,t,n,i,s,l){if(s.flags&3)return ZE();if(s.flags&134217732)return j.createStringLiteral("",i===0);if(s.flags&8)return j.createNumericLiteral(0);if(s.flags&64)return j.createBigIntLiteral("0n");if(s.flags&16)return j.createFalse();if(s.flags&1056){let p=s.symbol.exports?h1(s.symbol.exports.values()):s.symbol,g=s.symbol.parent&&s.symbol.parent.flags&256?s.symbol.parent:s.symbol,m=t.symbolToExpression(g,111551,void 0,64);return p===void 0||m===void 0?j.createNumericLiteral(0):j.createPropertyAccessExpression(m,t.symbolToString(p))}if(s.flags&256)return j.createNumericLiteral(s.value);if(s.flags&2048)return j.createBigIntLiteral(s.value);if(s.flags&128)return j.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?j.createFalse():j.createTrue();if(s.flags&65536)return j.createNull();if(s.flags&1048576)return jr(s.types,g=>xne(e,t,n,i,g,l))??ZE();if(t.isArrayLikeType(s))return j.createArrayLiteralExpression();if(x9t(s)){let p=Dt(t.getPropertiesOfType(s),g=>{let m=xne(e,t,n,i,t.getTypeOfSymbol(g),l);return j.createPropertyAssignment(g.name,m)});return j.createObjectLiteralExpression(p,!0)}if(oi(s)&16){if(Ir(s.symbol.declarations||ce,Df(Iy,yg,wl))===void 0)return ZE();let g=t.getSignaturesOfType(s,0);return g===void 0?ZE():One(218,e,i,g[0],f$(y.Function_not_implemented.message,i),void 0,void 0,void 0,l,n)??ZE()}if(oi(s)&1){let p=A0(s.symbol);if(p===void 0||D2(p))return ZE();let g=Dv(p);return g&&Re(g.parameters)?ZE():j.createNewExpression(j.createIdentifier(s.symbol.name),void 0,void 0)}return ZE()}function ZE(){return j.createIdentifier("undefined")}function x9t(e){return e.flags&524288&&(oi(e)&128||e.symbol&&_i(Zd(e.symbol.declarations),Ff))}function S9t(e,t,n){let i=e.getContextualType(n.attributes);if(i===void 0)return ce;let s=i.getProperties();if(!Re(s))return ce;let l=new Set;for(let p of n.attributes.properties)if(Jh(p)&&l.add(J4(p.name)),EE(p)){let g=e.getTypeAtLocation(p.expression);for(let m of g.getProperties())l.add(m.escapedName)}return Cn(s,p=>m_(p.name,t,1)&&!(p.flags&16777216||Tl(p)&48||l.has(p.escapedName)))}function T9t(e,t){if(Ff(e))return;let n=Br(t,i=>wl(i)||ul(i));return n&&n.parent===e?n:void 0}function w9t(e,t,n,i){if(Tv(e)){let s=i.symbolToNode(e,111551,void 0,void 0,1);if(s&&po(s))return s}return XJ(e.name,t,n===0,!1,!1)}function zVe(e){if(Br(e,MN)){let t=Br(e.parent,md);if(t)return t}return rn(e)}var gTe="addMissingNewOperator",WVe=[y.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];ro({errorCodes:WVe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=Ln.ChangeTracker.with(e,s=>UVe(s,t,n));return[Bs(gTe,i,y.Add_missing_new_operator_to_call,gTe,y.Add_missing_new_operator_to_all_calls)]},fixIds:[gTe],getAllCodeActions:e=>uc(e,WVe,(t,n)=>UVe(t,e.sourceFile,n))});function UVe(e,t,n){let i=Js(k9t(t,n),Ls),s=j.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function k9t(e,t){let n=ca(e,t.start),i=ml(t);for(;n.end<i;)n=n.parent;return n}var Sne="addMissingParam",Tne="addOptionalParam",$Ve=[y.Expected_0_arguments_but_got_1.code];ro({errorCodes:$Ve,fixIds:[Sne,Tne],getCodeActions(e){let t=VVe(e.sourceFile,e.program,e.span.start);if(t===void 0)return;let{name:n,declarations:i,newParameters:s,newOptionalParameters:l}=t,p=[];return Re(s)&&Zr(p,Bs(Sne,Ln.ChangeTracker.with(e,g=>wne(g,e.program,e.preferences,e.host,i,s)),[Re(s)>1?y.Add_missing_parameters_to_0:y.Add_missing_parameter_to_0,n],Sne,y.Add_all_missing_parameters)),Re(l)&&Zr(p,Bs(Tne,Ln.ChangeTracker.with(e,g=>wne(g,e.program,e.preferences,e.host,i,l)),[Re(l)>1?y.Add_optional_parameters_to_0:y.Add_optional_parameter_to_0,n],Tne,y.Add_all_optional_parameters)),p},getAllCodeActions:e=>uc(e,$Ve,(t,n)=>{let i=VVe(e.sourceFile,e.program,n.start);if(i){let{declarations:s,newParameters:l,newOptionalParameters:p}=i;e.fixId===Sne&&wne(t,e.program,e.preferences,e.host,s,l),e.fixId===Tne&&wne(t,e.program,e.preferences,e.host,s,p)}})});function VVe(e,t,n){let i=ca(e,n),s=Br(i,Ls);if(s===void 0||Re(s.arguments)===0)return;let l=t.getTypeChecker(),p=l.getTypeAtLocation(s.expression),g=Cn(p.symbol.declarations,HVe);if(g===void 0)return;let m=dc(g);if(m===void 0||m.body===void 0||yA(t,m.getSourceFile()))return;let x=C9t(m);if(x===void 0)return;let b=[],S=[],P=Re(m.parameters),E=Re(s.arguments);if(P>E)return;let N=[m,...E9t(m,g)];for(let F=0,M=0,L=0;F<E;F++){let W=s.arguments[F],z=Lc(W)?yX(W):W,H=l.getWidenedType(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(W))),X=M<P?m.parameters[M]:void 0;if(X&&l.isTypeAssignableTo(H,l.getTypeAtLocation(X))){M++;continue}let ne=z&&Ye(z)?z.text:`p${L++}`,ae=P9t(l,H,m);Zr(b,{pos:F,declaration:KVe(ne,ae,void 0)}),!O9t(N,M)&&Zr(S,{pos:F,declaration:KVe(ne,ae,j.createToken(58))})}return{newParameters:b,newOptionalParameters:S,name:Oc(x),declarations:N}}function C9t(e){let t=ls(e);if(t)return t;if(Ui(e.parent)&&Ye(e.parent.name)||is(e.parent)||Da(e.parent))return e.parent.name}function P9t(e,t,n){return e.typeToTypeNode(e.getWidenedType(t),n,1,8)??j.createKeywordTypeNode(159)}function wne(e,t,n,i,s,l){let p=Po(t.getCompilerOptions());Ge(s,g=>{let m=rn(g),x=aw(m,t,n,i);Re(g.parameters)?e.replaceNodeRangeWithNodes(m,ho(g.parameters),ao(g.parameters),GVe(x,p,g,l),{joiner:", ",indentation:0,leadingTriviaOption:Ln.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Ln.TrailingTriviaOption.Include}):Ge(GVe(x,p,g,l),(b,S)=>{Re(g.parameters)===0&&S===0?e.insertNodeAt(m,g.parameters.end,b):e.insertNodeAtEndOfList(m,g.parameters,b)}),x.writeFixes(e)})}function HVe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function GVe(e,t,n,i){let s=Dt(n.parameters,l=>j.createParameterDeclaration(l.modifiers,l.dotDotDotToken,l.name,l.questionToken,l.type,l.initializer));for(let{pos:l,declaration:p}of i){let g=l>0?s[l-1]:void 0;s.splice(l,0,j.updateParameterDeclaration(p,p.modifiers,p.dotDotDotToken,p.name,g&&g.questionToken?j.createToken(58):p.questionToken,N9t(e,p.type,t),p.initializer))}return s}function E9t(e,t){let n=[];for(let i of t)if(D9t(i)){if(Re(i.parameters)===Re(e.parameters)){n.push(i);continue}if(Re(i.parameters)>Re(e.parameters))return[]}return n}function D9t(e){return HVe(e)&&e.body===void 0}function KVe(e,t,n){return j.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function O9t(e,t){return Re(e)&&Pt(e,n=>t<Re(n.parameters)&&!!n.parameters[t]&&n.parameters[t].questionToken===void 0)}function N9t(e,t,n){let i=sw(t,n);return i?(cC(e,i.symbols),i.typeNode):t}var A9t="fixCannotFindModule",hTe="installTypesPackage",QVe=y.Cannot_find_module_0_or_its_corresponding_type_declarations.code,XVe=y.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed.code,YVe=[QVe,y.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,XVe];ro({errorCodes:YVe,getCodeActions:function(t){let{host:n,sourceFile:i,span:{start:s},errorCode:l}=t,p=l===XVe?W5(t.program.getCompilerOptions(),i):eHe(i,s);if(p===void 0)return;let g=tHe(p,n,l);return g===void 0?[]:[Bs(A9t,[],[y.Install_0,g],hTe,y.Install_all_missing_types_packages,ZVe(i.fileName,g))]},fixIds:[hTe],getAllCodeActions:e=>uc(e,YVe,(t,n,i)=>{let s=eHe(n.file,n.start);if(s!==void 0)switch(e.fixId){case hTe:{let l=tHe(s,e.host,n.code);l&&i.push(ZVe(n.file.fileName,l));break}default:I.fail(`Bad fixId: ${e.fixId}`)}})});function ZVe(e,t){return{type:"install package",file:e,packageName:t}}function eHe(e,t){let n=_i(ca(e,t),vo);if(!n)return;let i=n.text,{packageName:s}=iW(i);return Hu(s)?void 0:s}function tHe(e,t,n){var i;return n===QVe?PN.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?sW(e):void 0}var rHe=[y.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,y.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,y.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,y.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,y.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,y.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],yTe="fixClassDoesntImplementInheritedAbstractMember";ro({errorCodes:rHe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=Ln.ChangeTracker.with(t,l=>iHe(nHe(n,i.start),n,t,l,t.preferences));return s.length===0?void 0:[Bs(yTe,s,y.Implement_inherited_abstract_class,yTe,y.Implement_all_inherited_abstract_classes)]},fixIds:[yTe],getAllCodeActions:function(t){let n=new Set;return uc(t,rHe,(i,s)=>{let l=nHe(s.file,s.start);Jm(n,Wo(l))&&iHe(l,t.sourceFile,t,i,t.preferences)})}});function nHe(e,t){let n=ca(e,t);return Js(n.parent,Ri)}function iHe(e,t,n,i,s){let l=Dh(e),p=n.program.getTypeChecker(),g=p.getTypeAtLocation(l),m=p.getPropertiesOfType(g).filter(I9t),x=aw(t,n.program,s,n.host);UTe(e,m,t,n,s,x,b=>i.insertMemberAtStart(t,e,b)),x.writeFixes(i)}function I9t(e){let t=E1(ho(e.getDeclarations()));return!(t&2)&&!!(t&64)}var vTe="classSuperMustPrecedeThisAccess",aHe=[y.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];ro({errorCodes:aHe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=oHe(t,n.start);if(!i)return;let{constructor:s,superCall:l}=i,p=Ln.ChangeTracker.with(e,g=>sHe(g,t,s,l));return[Bs(vTe,p,y.Make_super_call_the_first_statement_in_the_constructor,vTe,y.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[vTe],getAllCodeActions(e){let{sourceFile:t}=e,n=new Set;return uc(e,aHe,(i,s)=>{let l=oHe(s.file,s.start);if(!l)return;let{constructor:p,superCall:g}=l;Jm(n,Wo(p.parent))&&sHe(i,t,p,g)})}});function sHe(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function oHe(e,t){let n=ca(e,t);if(n.kind!==110)return;let i=Ed(n),s=cHe(i.body);return s&&!s.expression.arguments.some(l=>ai(l)&&l.expression===n)?{constructor:i,superCall:s}:void 0}function cHe(e){return Zu(e)&&wk(e.expression)?e:Ss(e)?void 0:xs(e,cHe)}var bTe="constructorForDerivedNeedSuperCall",lHe=[y.Constructors_for_derived_classes_must_contain_a_super_call.code];ro({errorCodes:lHe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=uHe(t,n.start),s=Ln.ChangeTracker.with(e,l=>pHe(l,t,i));return[Bs(bTe,s,y.Add_missing_super_call,bTe,y.Add_all_missing_super_calls)]},fixIds:[bTe],getAllCodeActions:e=>uc(e,lHe,(t,n)=>pHe(t,e.sourceFile,uHe(n.file,n.start)))});function uHe(e,t){let n=ca(e,t);return I.assert(ul(n.parent),"token should be at the constructor declaration"),n.parent}function pHe(e,t,n){let i=j.createExpressionStatement(j.createCallExpression(j.createSuper(),void 0,ce));e.insertNodeAtConstructorStart(t,n,i)}var fHe="fixEnableJsxFlag",_He=[y.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];ro({errorCodes:_He,getCodeActions:function(t){let{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;let i=Ln.ChangeTracker.with(t,s=>dHe(s,n));return[Yg(fHe,i,y.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[fHe],getAllCodeActions:e=>uc(e,_He,t=>{let{configFile:n}=e.program.getCompilerOptions();n!==void 0&&dHe(t,n)})});function dHe(e,t){QTe(e,t,"jsx",j.createStringLiteral("react"))}var xTe="fixNaNEquality",mHe=[y.This_condition_will_always_return_0.code];ro({errorCodes:mHe,getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=gHe(i,t,n);if(s===void 0)return;let{suggestion:l,expression:p,arg:g}=s,m=Ln.ChangeTracker.with(e,x=>hHe(x,t,g,p));return[Bs(xTe,m,[y.Use_0,l],xTe,y.Use_Number_isNaN_in_all_conditions)]},fixIds:[xTe],getAllCodeActions:e=>uc(e,mHe,(t,n)=>{let i=gHe(e.program,n.file,Sp(n.start,n.length));i&&hHe(t,n.file,i.arg,i.expression)})});function gHe(e,t,n){let i=Ir(e.getSemanticDiagnostics(t),p=>p.start===n.start&&p.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=Ir(i.relatedInformation,p=>p.code===y.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let l=YTe(s.file,Sp(s.start,s.length));if(l!==void 0&&At(l)&&Vn(l.parent))return{suggestion:F9t(s.messageText),expression:l.parent,arg:l}}function hHe(e,t,n,i){let s=j.createCallExpression(j.createPropertyAccessExpression(j.createIdentifier("Number"),j.createIdentifier("isNaN")),void 0,[n]),l=i.operatorToken.kind;e.replaceNode(t,i,l===38||l===36?j.createPrefixUnaryExpression(54,s):s)}function F9t(e){let[,t]=Uh(e,`
|
|
`,0).match(/'(.*)'/)||[];return t}ro({errorCodes:[y.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,y.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,y.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let n=t.program.getCompilerOptions(),{configFile:i}=n;if(i===void 0)return;let s=[],l=hf(n);if(l>=5&&l<99){let x=Ln.ChangeTracker.with(t,b=>{QTe(b,i,"module",j.createStringLiteral("esnext"))});s.push(Yg("fixModuleOption",x,[y.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let g=Po(n);if(g<4||g>99){let x=Ln.ChangeTracker.with(t,b=>{if(!a4(i))return;let P=[["target",j.createStringLiteral("es2017")]];l===1&&P.push(["module",j.createStringLiteral("commonjs")]),KTe(b,i,P)});s.push(Yg("fixTargetOption",x,[y.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}});var STe="fixPropertyAssignment",yHe=[y.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];ro({errorCodes:yHe,fixIds:[STe],getCodeActions(e){let{sourceFile:t,span:n}=e,i=bHe(t,n.start),s=Ln.ChangeTracker.with(e,l=>vHe(l,e.sourceFile,i));return[Bs(STe,s,[y.Change_0_to_1,"=",":"],STe,[y.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>uc(e,yHe,(t,n)=>vHe(t,n.file,bHe(n.file,n.start)))});function vHe(e,t,n){e.replaceNode(t,n,j.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function bHe(e,t){return Js(ca(e,t).parent,Jp)}var TTe="extendsInterfaceBecomesImplements",xHe=[y.Cannot_extend_an_interface_0_Did_you_mean_implements.code];ro({errorCodes:xHe,getCodeActions(e){let{sourceFile:t}=e,n=SHe(t,e.span.start);if(!n)return;let{extendsToken:i,heritageClauses:s}=n,l=Ln.ChangeTracker.with(e,p=>THe(p,t,i,s));return[Bs(TTe,l,y.Change_extends_to_implements,TTe,y.Change_all_extended_interfaces_to_implements)]},fixIds:[TTe],getAllCodeActions:e=>uc(e,xHe,(t,n)=>{let i=SHe(n.file,n.start);i&&THe(t,n.file,i.extendsToken,i.heritageClauses)})});function SHe(e,t){let n=ca(e,t),i=dp(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function THe(e,t,n,i){if(e.replaceNode(t,n,j.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let s=i[1].getFirstToken(),l=s.getFullStart();e.replaceRange(t,{pos:l,end:l},j.createToken(28));let p=t.text,g=s.end;for(;g<p.length&&Th(p.charCodeAt(g));)g++;e.deleteRange(t,{pos:s.getStart(),end:g})}}var wTe="forgottenThisPropertyAccess",wHe=y.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,kHe=[y.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,y.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,wHe];ro({errorCodes:kHe,getCodeActions(e){let{sourceFile:t}=e,n=CHe(t,e.span.start,e.errorCode);if(!n)return;let i=Ln.ChangeTracker.with(e,s=>PHe(s,t,n));return[Bs(wTe,i,[y.Add_0_to_unresolved_variable,n.className||"this"],wTe,y.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[wTe],getAllCodeActions:e=>uc(e,kHe,(t,n)=>{let i=CHe(n.file,n.start,n.code);i&&PHe(t,e.sourceFile,i)})});function CHe(e,t,n){let i=ca(e,t);if(Ye(i)||Ca(i))return{node:i,className:n===wHe?dp(i).name.text:void 0}}function PHe(e,t,{node:n,className:i}){K_(n),e.replaceNode(t,n,j.createPropertyAccessExpression(i?j.createIdentifier(i):j.createThis(),n))}var kTe="fixInvalidJsxCharacters_expression",kne="fixInvalidJsxCharacters_htmlEntity",EHe=[y.Unexpected_token_Did_you_mean_or_gt.code,y.Unexpected_token_Did_you_mean_or_rbrace.code];ro({errorCodes:EHe,fixIds:[kTe,kne],getCodeActions(e){let{sourceFile:t,preferences:n,span:i}=e,s=Ln.ChangeTracker.with(e,p=>CTe(p,n,t,i.start,!1)),l=Ln.ChangeTracker.with(e,p=>CTe(p,n,t,i.start,!0));return[Bs(kTe,s,y.Wrap_invalid_character_in_an_expression_container,kTe,y.Wrap_all_invalid_characters_in_an_expression_container),Bs(kne,l,y.Convert_invalid_character_to_its_html_entity_code,kne,y.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return uc(e,EHe,(t,n)=>CTe(t,e.preferences,n.file,n.start,e.fixId===kne))}});var DHe={">":">","}":"}"};function M9t(e){return ec(DHe,e)}function CTe(e,t,n,i,s){let l=n.getText()[i];if(!M9t(l))return;let p=s?DHe[l]:`{${U3(n,t,l)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},p)}var Cne="deleteUnmatchedParameter",OHe="renameUnmatchedParameter",NHe=[y.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];ro({fixIds:[Cne,OHe],errorCodes:NHe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=[],l=AHe(n,i.start);if(l)return Zr(s,R9t(t,l)),Zr(s,j9t(t,l)),s},getAllCodeActions:function(t){let n=new Map;return QE(Ln.ChangeTracker.with(t,i=>{XE(t,NHe,({file:s,start:l})=>{let p=AHe(s,l);p&&n.set(p.signature,Zr(n.get(p.signature),p.jsDocParameterTag))}),n.forEach((s,l)=>{if(t.fixId===Cne){let p=new Set(s);i.filterJSDocTags(l.getSourceFile(),l,g=>!p.has(g))}})}))}});function R9t(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){let s=Ln.ChangeTracker.with(e,l=>l.filterJSDocTags(e.sourceFile,n,p=>p!==i));return Bs(Cne,s,[y.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Cne,y.Delete_all_unused_param_tags)}function j9t(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!Re(i.parameters))return;let l=e.sourceFile,p=SS(i),g=new Set;for(let S of p)Ad(S)&&Ye(S.name)&&g.add(S.name.escapedText);let m=jr(i.parameters,S=>Ye(S.name)&&!g.has(S.name.escapedText)?S.name.getText(l):void 0);if(m===void 0)return;let x=j.updateJSDocParameterTag(s,s.tagName,j.createIdentifier(m),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),b=Ln.ChangeTracker.with(e,S=>S.replaceJSDocComment(l,n,Dt(p,P=>P===s?x:P)));return Yg(OHe,b,[y.Rename_param_tag_name_0_to_1,t.getText(l),m])}function AHe(e,t){let n=ca(e,t);if(n.parent&&Ad(n.parent)&&Ye(n.parent.name)){let i=n.parent,s=S2(i),l=PS(i);if(s&&l)return{jsDocHost:s,signature:l,name:n.parent.name,jsDocParameterTag:i}}}var PTe="fixUnreferenceableDecoratorMetadata",L9t=[y.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];ro({errorCodes:L9t,getCodeActions:e=>{let t=B9t(e.sourceFile,e.program,e.span.start);if(!t)return;let n=Ln.ChangeTracker.with(e,l=>t.kind===276&&J9t(l,e.sourceFile,t,e.program)),i=Ln.ChangeTracker.with(e,l=>q9t(l,e.sourceFile,t,e.program)),s;return n.length&&(s=Zr(s,Yg(PTe,n,y.Convert_named_imports_to_namespace_import))),i.length&&(s=Zr(s,Yg(PTe,i,y.Use_import_type))),s},fixIds:[PTe]});function B9t(e,t,n){let i=_i(ca(e,n),Ye);if(!i||i.parent.kind!==183)return;let l=t.getTypeChecker().getSymbolAtLocation(i);return Ir(l?.declarations||ce,Df(vg,bf,zu))}function q9t(e,t,n,i){if(n.kind===271){e.insertModifierBefore(t,156,n.name);return}let s=n.kind===273?n:n.parent.parent;if(s.name&&s.namedBindings)return;let l=i.getTypeChecker();Pme(s,g=>{if(Tp(g.symbol,l).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function J9t(e,t,n,i){GE.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var p$="unusedIdentifier",ETe="unusedIdentifier_prefix",DTe="unusedIdentifier_delete",Pne="unusedIdentifier_deleteImports",OTe="unusedIdentifier_infer",IHe=[y._0_is_declared_but_its_value_is_never_read.code,y._0_is_declared_but_never_used.code,y.Property_0_is_declared_but_its_value_is_never_read.code,y.All_imports_in_import_declaration_are_unused.code,y.All_destructured_elements_are_unused.code,y.All_variables_are_unused.code,y.All_type_parameters_are_unused.code];ro({errorCodes:IHe,getCodeActions(e){let{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,l=i.getTypeChecker(),p=i.getSourceFiles(),g=ca(n,e.span.start);if(Um(g))return[e8(Ln.ChangeTracker.with(e,S=>S.delete(n,g)),y.Remove_template_tag)];if(g.kind===30){let S=Ln.ChangeTracker.with(e,P=>MHe(P,n,g));return[e8(S,y.Remove_type_parameters)]}let m=RHe(g);if(m){let S=Ln.ChangeTracker.with(e,P=>P.delete(n,m));return[Bs(p$,S,[y.Remove_import_from_0,fge(m)],Pne,y.Delete_all_unused_imports)]}else if(NTe(g)){let S=Ln.ChangeTracker.with(e,P=>Ene(n,g,P,l,p,i,s,!1));if(S.length)return[Bs(p$,S,[y.Remove_unused_declaration_for_Colon_0,g.getText(n)],Pne,y.Delete_all_unused_imports)]}if(Nd(g.parent)||j1(g.parent)){if(Da(g.parent.parent)){let S=g.parent.elements,P=[S.length>1?y.Remove_unused_declarations_for_Colon_0:y.Remove_unused_declaration_for_Colon_0,Dt(S,E=>E.getText(n)).join(", ")];return[e8(Ln.ChangeTracker.with(e,E=>z9t(E,n,g.parent)),P)]}return[e8(Ln.ChangeTracker.with(e,S=>W9t(e,S,n,g.parent)),y.Remove_unused_destructuring_declaration)]}if(jHe(n,g))return[e8(Ln.ChangeTracker.with(e,S=>LHe(S,n,g.parent)),y.Remove_variable_statement)];if(Ye(g)&&jl(g.parent))return[e8(Ln.ChangeTracker.with(e,S=>zHe(S,n,g.parent)),[y.Remove_unused_declaration_for_Colon_0,g.getText(n)])];let x=[];if(g.kind===140){let S=Ln.ChangeTracker.with(e,E=>FHe(E,n,g)),P=Js(g.parent,qk).typeParameter.name.text;x.push(Bs(p$,S,[y.Replace_infer_0_with_unknown,P],OTe,y.Replace_all_unused_infer_with_unknown))}else{let S=Ln.ChangeTracker.with(e,P=>Ene(n,g,P,l,p,i,s,!1));if(S.length){let P=po(g.parent)?g.parent:g;x.push(e8(S,[y.Remove_unused_declaration_for_Colon_0,P.getText(n)]))}}let b=Ln.ChangeTracker.with(e,S=>BHe(S,t,n,g));return b.length&&x.push(Bs(p$,b,[y.Prefix_0_with_an_underscore,g.getText(n)],ETe,y.Prefix_all_unused_declarations_with_where_possible)),x},fixIds:[ETe,DTe,Pne,OTe],getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),l=n.getSourceFiles();return uc(e,IHe,(p,g)=>{let m=ca(t,g.start);switch(e.fixId){case ETe:BHe(p,g.code,t,m);break;case Pne:{let x=RHe(m);x?p.delete(t,x):NTe(m)&&Ene(t,m,p,s,l,n,i,!0);break}case DTe:{if(m.kind===140||NTe(m))break;if(Um(m))p.delete(t,m);else if(m.kind===30)MHe(p,t,m);else if(Nd(m.parent)){if(m.parent.parent.initializer)break;(!Da(m.parent.parent)||qHe(m.parent.parent,s,l))&&p.delete(t,m.parent.parent)}else{if(j1(m.parent.parent)&&m.parent.parent.parent.initializer)break;jHe(t,m)?LHe(p,t,m.parent):Ye(m)&&jl(m.parent)?zHe(p,t,m.parent):Ene(t,m,p,s,l,n,i,!0)}break}case OTe:m.kind===140&&FHe(p,t,m);break;default:I.fail(JSON.stringify(e.fixId))}})}});function FHe(e,t,n){e.replaceNode(t,n.parent,j.createKeywordTypeNode(159))}function e8(e,t){return Bs(p$,e,t,DTe,y.Delete_all_unused_declarations)}function MHe(e,t,n){e.delete(t,I.checkDefined(Js(n.parent,gQ).typeParameters,"The type parameter to delete should exist"))}function NTe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function RHe(e){return e.kind===102?_i(e.parent,sl):void 0}function jHe(e,t){return mp(t.parent)&&ho(t.parent.getChildren(e))===t}function LHe(e,t,n){e.delete(t,n.parent.kind===243?n.parent:n)}function z9t(e,t,n){Ge(n.elements,i=>e.delete(t,i))}function W9t(e,t,n,{parent:i}){if(Ui(i)&&i.initializer&&_2(i.initializer))if(mp(i.parent)&&Re(i.parent.declarations)>1){let s=i.parent.parent,l=s.getStart(n),p=s.end;t.delete(n,i),t.insertNodeAt(n,p,i.initializer,{prefix:B0(e.host,e.formatContext.options)+n.text.slice(kU(n.text,l-1),l),suffix:kR(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function BHe(e,t,n,i){t!==y.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Js(i.parent,qk).typeParameter.name),Ye(i)&&U9t(i)&&(e.replaceNode(n,i,j.createIdentifier(`_${i.text}`)),Da(i.parent)&&HO(i.parent).forEach(s=>{Ye(s.name)&&e.replaceNode(n,s.name,j.createIdentifier(`_${s.name.text}`))})))}function U9t(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function Ene(e,t,n,i,s,l,p,g){$9t(t,n,e,i,s,l,p,g),Ye(t)&&qc.Core.eachSymbolReferenceInFile(t,i,e,m=>{ai(m.parent)&&m.parent.name===m&&(m=m.parent),!g&&K9t(m)&&n.delete(e,m.parent.parent)})}function $9t(e,t,n,i,s,l,p,g){let{parent:m}=e;if(Da(m))V9t(t,n,m,i,s,l,p,g);else if(!(g&&Ye(e)&&qc.Core.isSymbolReferencedInFile(e,i,n))){let x=vg(m)?e:po(m)?m.parent:m;I.assert(x!==n,"should not delete whole source file"),t.delete(n,x)}}function V9t(e,t,n,i,s,l,p,g=!1){if(H9t(i,t,n,s,l,p,g))if(n.modifiers&&n.modifiers.length>0&&(!Ye(n.name)||qc.Core.isSymbolReferencedInFile(n.name,i,t)))for(let m of n.modifiers)oo(m)&&e.deleteModifier(t,m);else!n.initializer&&qHe(n,i,s)&&e.delete(t,n)}function qHe(e,t,n){let i=e.parent.parameters.indexOf(e);return!qc.Core.someSignatureUsage(e.parent,n,t,(s,l)=>!l||l.arguments.length>i)}function H9t(e,t,n,i,s,l,p){let{parent:g}=n;switch(g.kind){case 174:case 176:let m=g.parameters.indexOf(n),x=wl(g)?g.name:g,b=qc.Core.getReferencedSymbolsForNode(g.pos,x,s,i,l);if(b){for(let S of b)for(let P of S.references)if(P.kind===qc.EntryKind.Node){let E=K4(P.node)&&Ls(P.node.parent)&&P.node.parent.arguments.length>m,N=ai(P.node.parent)&&K4(P.node.parent.expression)&&Ls(P.node.parent.parent)&&P.node.parent.parent.arguments.length>m,F=(wl(P.node.parent)||yg(P.node.parent))&&P.node.parent!==n.parent&&P.node.parent.parameters.length>m;if(E||N||F)return!1}}return!0;case 262:return g.name&&G9t(e,t,g.name)?JHe(g,n,p):!0;case 218:case 219:return JHe(g,n,p);case 178:return!1;case 177:return!0;default:return I.failBadSyntaxKind(g)}}function G9t(e,t,n){return!!qc.Core.eachSymbolReferenceInFile(n,e,t,i=>Ye(i)&&Ls(i.parent)&&i.parent.arguments.includes(i))}function JHe(e,t,n){let i=e.parameters,s=i.indexOf(t);return I.assert(s!==-1,"The parameter should already be in the list"),n?i.slice(s+1).every(l=>Ye(l.name)&&!l.symbol.isReferenced):s===i.length-1}function K9t(e){return(Vn(e.parent)&&e.parent.left===e||(fY(e.parent)||jS(e.parent))&&e.parent.operand===e)&&Zu(e.parent.parent)}function zHe(e,t,n){let i=n.symbol.declarations;if(i)for(let s of i)e.delete(t,s)}var ATe="fixUnreachableCode",WHe=[y.Unreachable_code_detected.code];ro({errorCodes:WHe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let n=Ln.ChangeTracker.with(e,i=>UHe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Bs(ATe,n,y.Remove_unreachable_code,ATe,y.Remove_all_unreachable_code)]},fixIds:[ATe],getAllCodeActions:e=>uc(e,WHe,(t,n)=>UHe(t,n.file,n.start,n.length,n.code))});function UHe(e,t,n,i,s){let l=ca(t,n),p=Br(l,fa);if(p.getStart(t)!==l.getStart(t)){let m=JSON.stringify({statementKind:I.formatSyntaxKind(p.kind),tokenKind:I.formatSyntaxKind(l.kind),errorCode:s,start:n,length:i});I.fail("Token and statement should start at the same point. "+m)}let g=(Cs(p.parent)?p.parent:p).parent;if(!Cs(p.parent)||p===ho(p.parent.statements))switch(g.kind){case 245:if(g.elseStatement){if(Cs(p.parent))break;e.replaceNode(t,p,j.createBlock(ce));return}case 247:case 248:e.delete(t,g);return}if(Cs(p.parent)){let m=n+i,x=I.checkDefined(Q9t(MX(p.parent.statements,p),b=>b.pos<m),"Some statement should be last");e.deleteNodeRange(t,p,x)}else e.delete(t,p)}function Q9t(e,t){let n;for(let i of e){if(!t(i))break;n=i}return n}var ITe="fixUnusedLabel",$He=[y.Unused_label.code];ro({errorCodes:$He,getCodeActions(e){let t=Ln.ChangeTracker.with(e,n=>VHe(n,e.sourceFile,e.span.start));return[Bs(ITe,t,y.Remove_unused_label,ITe,y.Remove_all_unused_labels)]},fixIds:[ITe],getAllCodeActions:e=>uc(e,$He,(t,n)=>VHe(t,n.file,n.start))});function VHe(e,t,n){let i=ca(t,n),s=Js(i.parent,Cx),l=i.getStart(t),p=s.statement.getStart(t),g=pm(l,p,t)?p:yo(t.text,gc(s,59,t).end,!0);e.deleteRange(t,{pos:l,end:g})}var HHe="fixJSDocTypes_plain",FTe="fixJSDocTypes_nullable",GHe=[y.JSDoc_types_can_only_be_used_inside_documentation_comments.code,y._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,y._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];ro({errorCodes:GHe,getCodeActions(e){let{sourceFile:t}=e,n=e.program.getTypeChecker(),i=QHe(t,e.span.start,n);if(!i)return;let{typeNode:s,type:l}=i,p=s.getText(t),g=[m(l,HHe,y.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===314&&g.push(m(l,FTe,y.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),g;function m(x,b,S){let P=Ln.ChangeTracker.with(e,E=>KHe(E,t,s,x,n));return Bs("jdocTypes",P,[y.Change_0_to_1,p,n.typeToString(x)],b,S)}},fixIds:[HHe,FTe],getAllCodeActions(e){let{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return uc(e,GHe,(l,p)=>{let g=QHe(p.file,p.start,s);if(!g)return;let{typeNode:m,type:x}=g,b=m.kind===314&&t===FTe?s.getNullableType(x,32768):x;KHe(l,i,m,b,s)})}});function KHe(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function QHe(e,t,n){let i=Br(ca(e,t),X9t),s=i&&i.type;return s&&{typeNode:s,type:Y9t(n,s)}}function X9t(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function Y9t(e,t){if(jN(t)){let n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(Zr([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var MTe="fixMissingCallParentheses",XHe=[y.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];ro({errorCodes:XHe,fixIds:[MTe],getCodeActions(e){let{sourceFile:t,span:n}=e,i=ZHe(t,n.start);if(!i)return;let s=Ln.ChangeTracker.with(e,l=>YHe(l,e.sourceFile,i));return[Bs(MTe,s,y.Add_missing_call_parentheses,MTe,y.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>uc(e,XHe,(t,n)=>{let i=ZHe(n.file,n.start);i&&YHe(t,n.file,i)})});function YHe(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function ZHe(e,t){let n=ca(e,t);if(ai(n.parent)){let i=n.parent;for(;ai(i.parent);)i=i.parent;return i.name}if(Ye(n))return n}var eGe="fixMissingTypeAnnotationOnExports",RTe="add-annotation",jTe="add-type-assertion",Z9t="extract-expression",tGe=[y.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,y.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,y.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,y.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,y.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,y.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,y.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,y.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,y.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,y.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,y.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,y.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,y.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,y.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,y.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,y.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,y.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,y.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,y.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,y.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,y.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],eBt=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),rGe=531469,nGe=1;ro({errorCodes:tGe,fixIds:[eGe],getCodeActions(e){let t=[];return t8(RTe,t,e,0,n=>n.addTypeAnnotation(e.span)),t8(RTe,t,e,1,n=>n.addTypeAnnotation(e.span)),t8(RTe,t,e,2,n=>n.addTypeAnnotation(e.span)),t8(jTe,t,e,0,n=>n.addInlineAssertion(e.span)),t8(jTe,t,e,1,n=>n.addInlineAssertion(e.span)),t8(jTe,t,e,2,n=>n.addInlineAssertion(e.span)),t8(Z9t,t,e,0,n=>n.extractAsVariable(e.span)),t},getAllCodeActions:e=>{let t=iGe(e,0,n=>{XE(e,tGe,i=>{n.addTypeAnnotation(i)})});return QE(t.textChanges)}});function t8(e,t,n,i,s){let l=iGe(n,i,s);l.result&&l.textChanges.length&&t.push(Bs(e,l.textChanges,l.result,eGe,y.Add_all_missing_type_annotations))}function iGe(e,t,n){let i={typeNode:void 0,mutatedTarget:!1},s=Ln.ChangeTracker.fromContext(e),l=e.sourceFile,p=e.program,g=p.getTypeChecker(),m=Po(p.getCompilerOptions()),x=aw(e.sourceFile,e.program,e.preferences,e.host),b=new Set,S=new Set,P=Ax({preserveSourceNewlines:!1}),E=n({addTypeAnnotation:N,addInlineAssertion:z,extractAsVariable:H});return x.writeFixes(s),{result:E,textChanges:s.getChanges()};function N(pe){e.cancellationToken.throwIfCancellationRequested();let He=ca(l,pe.start),qe=X(He);if(qe)return jl(qe)?F(qe):ne(qe);let je=xe(He);if(je)return ne(je)}function F(pe){var He;if(S?.has(pe))return;S?.add(pe);let qe=g.getTypeAtLocation(pe),je=g.getPropertiesOfType(qe);if(!pe.name||je.length===0)return;let st=[];for(let Or of je)m_(Or.name,Po(p.getCompilerOptions()))&&(Or.valueDeclaration&&Ui(Or.valueDeclaration)||st.push(j.createVariableStatement([j.createModifier(95)],j.createVariableDeclarationList([j.createVariableDeclaration(Or.name,void 0,Me(g.getTypeOfSymbol(Or),pe),void 0)]))));if(st.length===0)return;let jt=[];(He=pe.modifiers)!=null&&He.some(Or=>Or.kind===95)&&jt.push(j.createModifier(95)),jt.push(j.createModifier(138));let ar=j.createModuleDeclaration(jt,pe.name,j.createModuleBlock(st),101441696);return s.insertNodeAfter(l,pe,ar),[y.Annotate_types_of_properties_expando_function_in_a_namespace]}function M(pe){return!Tc(pe)&&!Ls(pe)&&!So(pe)&&!kp(pe)}function L(pe,He){return M(pe)&&(pe=j.createParenthesizedExpression(pe)),j.createAsExpression(pe,He)}function W(pe,He){return M(pe)&&(pe=j.createParenthesizedExpression(pe)),j.createAsExpression(j.createSatisfiesExpression(pe,tc(He)),He)}function z(pe){e.cancellationToken.throwIfCancellationRequested();let He=ca(l,pe.start);if(X(He))return;let je=nt(He,pe);if(!je||Ok(je)||Ok(je.parent))return;let st=At(je),jt=Jp(je);if(!jt&&Ku(je)||Br(je,Os)||Br(je,L1)||st&&(Br(je,U_)||Br(je,Yi))||gm(je))return;let ar=Br(je,Ui),Or=ar&&g.getTypeAtLocation(ar);if(Or&&Or.flags&8192||!(st||jt))return;let{typeNode:nn,mutatedTarget:Ct}=Pe(je,Or);if(!(!nn||Ct))return jt?s.insertNodeAt(l,je.end,L(tc(je.name),nn),{prefix:": "}):st?s.replaceNode(l,je,W(tc(je),nn)):I.assertNever(je),[y.Add_satisfies_and_an_inline_type_assertion_with_0,Tt(nn)]}function H(pe){e.cancellationToken.throwIfCancellationRequested();let He=ca(l,pe.start),qe=nt(He,pe);if(!qe||Ok(qe)||Ok(qe.parent)||!At(qe))return;if(kp(qe))return s.replaceNode(l,qe,L(qe,j.createTypeReferenceNode("const"))),[y.Mark_array_literal_as_const];let st=Br(qe,xu);if(st){if(st===qe.parent&&Tc(qe))return;let jt=j.createUniqueName(Lxe(qe,l,g,l),16),ar=qe,Or=qe;if(gm(ar)&&(ar=gg(ar.parent),ze(ar.parent)?Or=ar=ar.parent:Or=L(ar,j.createTypeReferenceNode("const"))),Tc(ar))return;let nn=j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(jt,void 0,void 0,Or)],2)),Ct=Br(qe,fa);return s.insertNodeBefore(l,Ct,nn),s.replaceNode(l,ar,j.createAsExpression(j.cloneNode(jt),j.createTypeQueryNode(j.cloneNode(jt)))),[y.Extract_to_variable_and_replace_with_0_as_typeof_0,Tt(jt)]}}function X(pe){let He=Br(pe,qe=>fa(qe)?"quit":dE(qe));if(He&&dE(He)){let qe=He;if(Vn(qe)&&(qe=qe.left,!dE(qe)))return;let je=g.getTypeAtLocation(qe.expression);if(!je)return;let st=g.getPropertiesOfType(je);if(Pt(st,jt=>jt.valueDeclaration===He||jt.valueDeclaration===He.parent)){let jt=je.symbol.valueDeclaration;if(jt){if(xx(jt)&&Ui(jt.parent))return jt.parent;if(jl(jt))return jt}}}}function ne(pe){if(!b?.has(pe))switch(b?.add(pe),pe.kind){case 169:case 172:case 260:return gt(pe);case 219:case 218:case 262:case 174:case 177:return ae(pe,l);case 277:return Y(pe);case 263:return Ee(pe);case 206:case 207:return te(pe);default:throw new Error(`Cannot find a fix for the given node ${pe.kind}`)}}function ae(pe,He){if(pe.type)return;let{typeNode:qe}=Pe(pe);if(qe)return s.tryInsertTypeAnnotation(He,pe,qe),[y.Add_return_type_0,Tt(qe)]}function Y(pe){if(pe.isExportEquals)return;let{typeNode:He}=Pe(pe.expression);if(!He)return;let qe=j.createUniqueName("_default");return s.replaceNodeWithNodes(l,pe,[j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(qe,void 0,He,pe.expression)],2)),j.updateExportAssignment(pe,pe?.modifiers,qe)]),[y.Extract_default_export_to_variable]}function Ee(pe){var He,qe;let je=(He=pe.heritageClauses)==null?void 0:He.find(pr=>pr.token===96),st=je?.types[0];if(!st)return;let{typeNode:jt}=Pe(st.expression);if(!jt)return;let ar=j.createUniqueName(pe.name?pe.name.text+"Base":"Anonymous",16),Or=j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(ar,void 0,jt,st.expression)],2));s.insertNodeBefore(l,pe,Or);let nn=ex(l.text,st.end),Ct=((qe=nn?.[nn.length-1])==null?void 0:qe.end)??st.end;return s.replaceRange(l,{pos:st.getFullStart(),end:Ct},ar,{prefix:" "}),[y.Extract_base_class_to_variable]}let fe;(pe=>{pe[pe.Text=0]="Text",pe[pe.Computed=1]="Computed",pe[pe.ArrayAccess=2]="ArrayAccess",pe[pe.Identifier=3]="Identifier"})(fe||(fe={}));function te(pe){var He;let qe=pe.parent,je=pe.parent.parent.parent;if(!qe.initializer)return;let st,jt=[];if(Ye(qe.initializer))st={expression:{kind:3,identifier:qe.initializer}};else{let nn=j.createUniqueName("dest",16);st={expression:{kind:3,identifier:nn}},jt.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(nn,void 0,void 0,qe.initializer)],2)))}let ar=[];j1(pe)?de(pe,ar,st):me(pe,ar,st);let Or=new Map;for(let nn of ar){if(nn.element.propertyName&&po(nn.element.propertyName)){let pr=nn.element.propertyName.expression,vn=j.getGeneratedNameForNode(pr),ta=j.createVariableDeclaration(vn,void 0,void 0,pr),ts=j.createVariableDeclarationList([ta],2),Gt=j.createVariableStatement(void 0,ts);jt.push(Gt),Or.set(pr,vn)}let Ct=nn.element.name;if(j1(Ct))de(Ct,ar,nn);else if(Nd(Ct))me(Ct,ar,nn);else{let{typeNode:pr}=Pe(Ct),vn=ve(nn,Or);if(nn.element.initializer){let ts=(He=nn.element)==null?void 0:He.propertyName,Gt=j.createUniqueName(ts&&Ye(ts)?ts.text:"temp",16);jt.push(j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(Gt,void 0,void 0,vn)],2))),vn=j.createConditionalExpression(j.createBinaryExpression(Gt,j.createToken(37),j.createIdentifier("undefined")),j.createToken(58),nn.element.initializer,j.createToken(59),vn)}let ta=Ai(je,32)?[j.createToken(95)]:void 0;jt.push(j.createVariableStatement(ta,j.createVariableDeclarationList([j.createVariableDeclaration(Ct,void 0,pr,vn)],2)))}}return je.declarationList.declarations.length>1&&jt.push(j.updateVariableStatement(je,je.modifiers,j.updateVariableDeclarationList(je.declarationList,je.declarationList.declarations.filter(nn=>nn!==pe.parent)))),s.replaceNodeWithNodes(l,je,jt),[y.Extract_binding_expressions_to_variable]}function de(pe,He,qe){for(let je=0;je<pe.elements.length;++je){let st=pe.elements[je];Ju(st)||He.push({element:st,parent:qe,expression:{kind:2,arrayIndex:je}})}}function me(pe,He,qe){for(let je of pe.elements){let st;if(je.propertyName)if(po(je.propertyName)){He.push({element:je,parent:qe,expression:{kind:1,computed:je.propertyName.expression}});continue}else st=je.propertyName.text;else st=je.name.text;He.push({element:je,parent:qe,expression:{kind:0,text:st}})}}function ve(pe,He){let qe=[pe];for(;pe.parent;)pe=pe.parent,qe.push(pe);let je=qe[qe.length-1].expression.identifier;for(let st=qe.length-2;st>=0;--st){let jt=qe[st].expression;jt.kind===0?je=j.createPropertyAccessChain(je,void 0,j.createIdentifier(jt.text)):jt.kind===1?je=j.createElementAccessExpression(je,He.get(jt.computed)):jt.kind===2&&(je=j.createElementAccessExpression(je,jt.arrayIndex))}return je}function Pe(pe,He){if(t===1)return ge(pe);let qe;if(Ok(pe)){let jt=g.getSignatureFromDeclaration(pe);if(jt){let ar=g.getTypePredicateOfSignature(jt);if(ar)return ar.type?{typeNode:Te(ar,Br(pe,Ku)??l,st(ar.type)),mutatedTarget:!1}:i;qe=g.getReturnTypeOfSignature(jt)}}else qe=g.getTypeAtLocation(pe);if(!qe)return i;if(t===2){He&&(qe=He);let jt=g.getWidenedLiteralType(qe);if(g.isTypeAssignableTo(jt,qe))return i;qe=jt}let je=Br(pe,Ku)??l;return Da(pe)&&g.requiresAddingImplicitUndefined(pe,je)&&(qe=g.getUnionType([g.getUndefinedType(),qe],0)),{typeNode:Me(qe,je,st(qe)),mutatedTarget:!1};function st(jt){return(Ui(pe)||is(pe)&&Ai(pe,264))&&jt.flags&8192?1048576:0}}function Oe(pe){return j.createTypeQueryNode(tc(pe))}function ie(pe,He="temp"){let qe=!!Br(pe,ze);return qe?it(pe,He,qe,je=>je.elements,gm,j.createSpreadElement,je=>j.createArrayLiteralExpression(je,!0),je=>j.createTupleTypeNode(je.map(j.createRestTypeNode))):i}function Ne(pe,He="temp"){let qe=!!Br(pe,ze);return it(pe,He,qe,je=>je.properties,Lv,j.createSpreadAssignment,je=>j.createObjectLiteralExpression(je,!0),j.createIntersectionTypeNode)}function it(pe,He,qe,je,st,jt,ar,Or){let nn=[],Ct=[],pr,vn=Br(pe,fa);for(let Gt of je(pe))st(Gt)?(ts(),Tc(Gt.expression)?(nn.push(Oe(Gt.expression)),Ct.push(Gt)):ta(Gt.expression)):(pr??(pr=[])).push(Gt);if(Ct.length===0)return i;return ts(),s.replaceNode(l,pe,ar(Ct)),{typeNode:Or(nn),mutatedTarget:!0};function ta(Gt){let hi=j.createUniqueName(He+"_Part"+(Ct.length+1),16),$a=qe?j.createAsExpression(Gt,j.createTypeReferenceNode("const")):Gt,ui=j.createVariableStatement(void 0,j.createVariableDeclarationList([j.createVariableDeclaration(hi,void 0,void 0,$a)],2));s.insertNodeBefore(l,vn,ui),nn.push(Oe(hi)),Ct.push(jt(hi))}function ts(){pr&&(ta(ar(pr)),pr=void 0)}}function ze(pe){return d2(pe)&&_g(pe.type)}function ge(pe){if(Da(pe))return i;if(Jp(pe))return{typeNode:Oe(pe.name),mutatedTarget:!1};if(Tc(pe))return{typeNode:Oe(pe),mutatedTarget:!1};if(ze(pe))return ge(pe.expression);if(kp(pe)){let He=Br(pe,Ui),qe=He&&Ye(He.name)?He.name.text:void 0;return ie(pe,qe)}if(So(pe)){let He=Br(pe,Ui),qe=He&&Ye(He.name)?He.name.text:void 0;return Ne(pe,qe)}if(Ui(pe)&&pe.initializer)return ge(pe.initializer);if(Wk(pe)){let{typeNode:He,mutatedTarget:qe}=ge(pe.whenTrue);if(!He)return i;let{typeNode:je,mutatedTarget:st}=ge(pe.whenFalse);return je?{typeNode:j.createUnionTypeNode([He,je]),mutatedTarget:qe||st}:i}return i}function Me(pe,He,qe=0){let je=!1,st=CGe(g,pe,He,rGe|qe,nGe,{moduleResolverHost:p,trackSymbol(){return!0},reportTruncationError(){je=!0}});if(!st)return;let jt=VTe(st,x,m);return je?j.createKeywordTypeNode(133):jt}function Te(pe,He,qe=0){let je=!1,st=PGe(g,x,pe,He,m,rGe|qe,nGe,{moduleResolverHost:p,trackSymbol(){return!0},reportTruncationError(){je=!0}});return je?j.createKeywordTypeNode(133):st}function gt(pe){let{typeNode:He}=Pe(pe);if(He)return pe.type?s.replaceNode(rn(pe),pe.type,He):s.tryInsertTypeAnnotation(rn(pe),pe,He),[y.Add_annotation_of_type_0,Tt(He)]}function Tt(pe){qn(pe,1);let He=P.printNode(4,pe,l);return He.length>ZI?He.substring(0,ZI-3)+"...":(qn(pe,0),He)}function xe(pe){return Br(pe,He=>eBt.has(He.kind)&&(!Nd(He)&&!j1(He)||Ui(He.parent)))}function nt(pe,He){for(;pe&&pe.end<He.start+He.length;)pe=pe.parent;for(;pe.parent.pos===pe.pos&&pe.parent.end===pe.end;)pe=pe.parent;return Ye(pe)&&k1(pe.parent)&&pe.parent.initializer?pe.parent.initializer:pe}}var LTe="fixAwaitInSyncFunction",aGe=[y.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,y.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,y.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,y.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];ro({errorCodes:aGe,getCodeActions(e){let{sourceFile:t,span:n}=e,i=sGe(t,n.start);if(!i)return;let s=Ln.ChangeTracker.with(e,l=>oGe(l,t,i));return[Bs(LTe,s,y.Add_async_modifier_to_containing_function,LTe,y.Add_all_missing_async_modifiers)]},fixIds:[LTe],getAllCodeActions:function(t){let n=new Set;return uc(t,aGe,(i,s)=>{let l=sGe(s.file,s.start);!l||!Jm(n,Wo(l.insertBefore))||oGe(i,t.sourceFile,l)})}});function tBt(e){if(e.type)return e.type;if(Ui(e.parent)&&e.parent.type&&Iy(e.parent.type))return e.parent.type.type}function sGe(e,t){let n=ca(e,t),i=Ed(n);if(!i)return;let s;switch(i.kind){case 174:s=i.name;break;case 262:case 218:s=gc(i,100,e);break;case 219:let l=i.typeParameters?30:21;s=gc(i,l,e)||ho(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:tBt(i)}}function oGe(e,t,{insertBefore:n,returnType:i}){if(i){let s=t5(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,j.createTypeReferenceNode("Promise",j.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var cGe=[y._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,y._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],BTe="fixPropertyOverrideAccessor";ro({errorCodes:cGe,getCodeActions(e){let t=lGe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[Bs(BTe,t,y.Generate_get_and_set_accessors,BTe,y.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[BTe],getAllCodeActions:e=>uc(e,cGe,(t,n)=>{let i=lGe(n.file,n.start,n.length,n.code,e);if(i)for(let s of i)t.pushRaw(e.sourceFile,s)})});function lGe(e,t,n,i,s){let l,p;if(i===y._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)l=t,p=t+n;else if(i===y._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let g=s.program.getTypeChecker(),m=ca(e,t).parent;I.assert(ox(m),"error span of fixPropertyOverrideAccessor should only be on an accessor");let x=m.parent;I.assert(Ri(x),"erroneous accessors should only be inside classes");let b=Zd(ZTe(x,g));if(!b)return[];let S=ka(VP(m.name)),P=g.getPropertyOfType(g.getTypeAtLocation(b),S);if(!P||!P.valueDeclaration)return[];l=P.valueDeclaration.pos,p=P.valueDeclaration.end,e=rn(P.valueDeclaration)}else I.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return AGe(e,s.program,l,p,s,y.Generate_get_and_set_accessors.message)}var qTe="inferFromUsage",uGe=[y.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,y.Variable_0_implicitly_has_an_1_type.code,y.Parameter_0_implicitly_has_an_1_type.code,y.Rest_parameter_0_implicitly_has_an_any_type.code,y.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,y._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,y.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,y.Member_0_implicitly_has_an_1_type.code,y.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,y.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,y.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,y.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,y.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,y._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,y.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,y.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,y.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];ro({errorCodes:uGe,getCodeActions(e){let{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:l,host:p,preferences:g}=e,m=ca(t,i),x,b=Ln.ChangeTracker.with(e,P=>{x=pGe(P,t,m,s,n,l,v1,p,g)}),S=x&&ls(x);return!S||b.length===0?void 0:[Bs(qTe,b,[rBt(s,m),cl(S)],qTe,y.Infer_all_types_from_usage)]},fixIds:[qTe],getAllCodeActions(e){let{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:l}=e,p=fA();return uc(e,uGe,(g,m)=>{pGe(g,t,ca(m.file,m.start),m.code,n,i,p,s,l)})}});function rBt(e,t){switch(e){case y.Parameter_0_implicitly_has_an_1_type.code:case y.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return v_(Ed(t))?y.Infer_type_of_0_from_usage:y.Infer_parameter_types_from_usage;case y.Rest_parameter_0_implicitly_has_an_any_type.code:case y.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return y.Infer_parameter_types_from_usage;case y.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return y.Infer_this_type_of_0_from_usage;default:return y.Infer_type_of_0_from_usage}}function nBt(e){switch(e){case y.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return y.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case y.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return y.Variable_0_implicitly_has_an_1_type.code;case y.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return y.Parameter_0_implicitly_has_an_1_type.code;case y.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return y.Rest_parameter_0_implicitly_has_an_any_type.code;case y.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return y.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case y._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return y._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case y.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return y.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case y.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return y.Member_0_implicitly_has_an_1_type.code}return e}function pGe(e,t,n,i,s,l,p,g,m){if(!KI(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;let{parent:x}=n,b=aw(t,s,m,g);switch(i=nBt(i),i){case y.Member_0_implicitly_has_an_1_type.code:case y.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Ui(x)&&p(x)||is(x)||vf(x))return fGe(e,b,t,x,s,g,l),b.writeFixes(e),x;if(ai(x)){let E=$R(x.name,s,l),N=$3(E,x,s,g);if(N){let F=j.createJSDocTypeTag(void 0,j.createJSDocTypeExpression(N),void 0);e.addJSDocTags(t,Js(x.parent.parent,Zu),[F])}return b.writeFixes(e),x}return;case y.Variable_0_implicitly_has_an_1_type.code:{let E=s.getTypeChecker().getSymbolAtLocation(n);return E&&E.valueDeclaration&&Ui(E.valueDeclaration)&&p(E.valueDeclaration)?(fGe(e,b,rn(E.valueDeclaration),E.valueDeclaration,s,g,l),b.writeFixes(e),E.valueDeclaration):void 0}}let S=Ed(n);if(S===void 0)return;let P;switch(i){case y.Parameter_0_implicitly_has_an_1_type.code:if(v_(S)){_Ge(e,b,t,S,s,g,l),P=S;break}case y.Rest_parameter_0_implicitly_has_an_any_type.code:if(p(S)){let E=Js(x,Da);iBt(e,b,t,E,S,s,g,l),P=E}break;case y.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case y._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:mm(S)&&Ye(S.name)&&(Dne(e,b,t,S,$R(S.name,s,l),s,g),P=S);break;case y.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:v_(S)&&(_Ge(e,b,t,S,s,g,l),P=S);break;case y.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Ln.isThisTypeAnnotatable(S)&&p(S)&&(aBt(e,t,S,s,g,l),P=S);break;default:return I.fail(String(i))}return b.writeFixes(e),P}function fGe(e,t,n,i,s,l,p){Ye(i.name)&&Dne(e,t,n,i,$R(i.name,s,p),s,l)}function iBt(e,t,n,i,s,l,p,g){if(!Ye(i.name))return;let m=cBt(s,n,l,g);if(I.assert(s.parameters.length===m.length,"Parameter count and inference count should match"),jn(s))dGe(e,n,m,l,p);else{let x=Bc(s)&&!gc(s,21,n);x&&e.insertNodeBefore(n,ho(s.parameters),j.createToken(21));for(let{declaration:b,type:S}of m)b&&!b.type&&!b.initializer&&Dne(e,t,n,b,S,l,p);x&&e.insertNodeAfter(n,ao(s.parameters),j.createToken(22))}}function aBt(e,t,n,i,s,l){let p=mGe(n,t,i,l);if(!p||!p.length)return;let g=zTe(i,p,l).thisParameter(),m=$3(g,n,i,s);m&&(jn(n)?sBt(e,t,n,m):e.tryInsertThisTypeAnnotation(t,n,m))}function sBt(e,t,n,i){e.addJSDocTags(t,n,[j.createJSDocThisTag(void 0,j.createJSDocTypeExpression(i))])}function _Ge(e,t,n,i,s,l,p){let g=Yl(i.parameters);if(g&&Ye(i.name)&&Ye(g.name)){let m=$R(i.name,s,p);m===s.getTypeChecker().getAnyType()&&(m=$R(g.name,s,p)),jn(i)?dGe(e,n,[{declaration:g,type:m}],s,l):Dne(e,t,n,g,m,s,l)}}function Dne(e,t,n,i,s,l,p){let g=$3(s,i,l,p);if(g)if(jn(n)&&i.kind!==171){let m=Ui(i)?_i(i.parent.parent,Rl):i;if(!m)return;let x=j.createJSDocTypeExpression(g),b=mm(i)?j.createJSDocReturnTag(void 0,x,void 0):j.createJSDocTypeTag(void 0,x,void 0);e.addJSDocTags(n,m,[b])}else oBt(g,i,n,e,t,Po(l.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,g)}function oBt(e,t,n,i,s,l){let p=sw(e,l);return p&&i.tryInsertTypeAnnotation(n,t,p.typeNode)?(Ge(p.symbols,g=>s.addImportFromExportedSymbol(g,!0)),!0):!1}function dGe(e,t,n,i,s){let l=n.length&&n[0].declaration.parent;if(!l)return;let p=Bi(n,g=>{let m=g.declaration;if(m.initializer||rx(m)||!Ye(m.name))return;let x=g.type&&$3(g.type,m,i,s);if(x){let b=j.cloneNode(m.name);return qn(b,7168),{name:j.cloneNode(m.name),param:m,isOptional:!!g.isOptional,typeNode:x}}});if(p.length)if(Bc(l)||Ic(l)){let g=Bc(l)&&!gc(l,21,t);g&&e.insertNodeBefore(t,ho(l.parameters),j.createToken(21)),Ge(p,({typeNode:m,param:x})=>{let b=j.createJSDocTypeTag(void 0,j.createJSDocTypeExpression(m)),S=j.createJSDocComment(void 0,[b]);e.insertNodeAt(t,x.getStart(t),S,{suffix:" "})}),g&&e.insertNodeAfter(t,ao(l.parameters),j.createToken(22))}else{let g=Dt(p,({name:m,typeNode:x,isOptional:b})=>j.createJSDocParameterTag(void 0,m,!!b,j.createJSDocTypeExpression(x),!1,void 0));e.addJSDocTags(t,l,g)}}function JTe(e,t,n){return Bi(qc.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==qc.EntryKind.Span?_i(i.node,Ye):void 0)}function $R(e,t,n){let i=JTe(e,t,n);return zTe(t,i,n).single()}function cBt(e,t,n,i){let s=mGe(e,t,n,i);return s&&zTe(n,s,i).parameters(e)||e.parameters.map(l=>({declaration:l,type:Ye(l.name)?$R(l.name,n,i):n.getTypeChecker().getAnyType()}))}function mGe(e,t,n,i){let s;switch(e.kind){case 176:s=gc(e,137,t);break;case 219:case 218:let l=e.parent;s=(Ui(l)||is(l))&&Ye(l.name)?l.name:e.name;break;case 262:case 174:case 173:s=e.name;break}if(s)return JTe(s,n,i)}function zTe(e,t,n){let i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Me=>i.createArrayType(Me),Promise:Me=>i.createPromiseType(Me)},l=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:m,parameters:x,thisParameter:b};function p(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function g(Me){let Te=new Map;for(let Tt of Me)Tt.properties&&Tt.properties.forEach((xe,nt)=>{Te.has(nt)||Te.set(nt,[]),Te.get(nt).push(xe)});let gt=new Map;return Te.forEach((Tt,xe)=>{gt.set(xe,g(Tt))}),{isNumber:Me.some(Tt=>Tt.isNumber),isString:Me.some(Tt=>Tt.isString),isNumberOrString:Me.some(Tt=>Tt.isNumberOrString),candidateTypes:li(Me,Tt=>Tt.candidateTypes),properties:gt,calls:li(Me,Tt=>Tt.calls),constructs:li(Me,Tt=>Tt.constructs),numberIndex:Ge(Me,Tt=>Tt.numberIndex),stringIndex:Ge(Me,Tt=>Tt.stringIndex),candidateThisTypes:li(Me,Tt=>Tt.candidateThisTypes),inferredTypes:void 0}}function m(){return Ee(S(t))}function x(Me){if(t.length===0||!Me.parameters)return;let Te=p();for(let Tt of t)n.throwIfCancellationRequested(),P(Tt,Te);let gt=[...Te.constructs||[],...Te.calls||[]];return Me.parameters.map((Tt,xe)=>{let nt=[],pe=Ey(Tt),He=!1;for(let je of gt)if(je.argumentTypes.length<=xe)He=jn(Me),nt.push(i.getUndefinedType());else if(pe)for(let st=xe;st<je.argumentTypes.length;st++)nt.push(i.getBaseTypeOfLiteralType(je.argumentTypes[st]));else nt.push(i.getBaseTypeOfLiteralType(je.argumentTypes[xe]));if(Ye(Tt.name)){let je=S(JTe(Tt.name,e,n));nt.push(...pe?Bi(je,i.getElementTypeOfArrayType):je)}let qe=Ee(nt);return{type:pe?i.createArrayType(qe):qe,isOptional:He&&!pe,declaration:Tt}})}function b(){let Me=p();for(let Te of t)n.throwIfCancellationRequested(),P(Te,Me);return Ee(Me.candidateThisTypes||ce)}function S(Me){let Te=p();for(let gt of Me)n.throwIfCancellationRequested(),P(gt,Te);return te(Te)}function P(Me,Te){for(;S4(Me);)Me=Me.parent;switch(Me.parent.kind){case 244:N(Me,Te);break;case 225:Te.isNumber=!0;break;case 224:F(Me.parent,Te);break;case 226:M(Me,Me.parent,Te);break;case 296:case 297:L(Me.parent,Te);break;case 213:case 214:Me.parent.expression===Me?W(Me.parent,Te):E(Me,Te);break;case 211:z(Me.parent,Te);break;case 212:H(Me.parent,Me,Te);break;case 303:case 304:X(Me.parent,Te);break;case 172:ne(Me.parent,Te);break;case 260:{let{name:gt,initializer:Tt}=Me.parent;if(Me===gt){Tt&&ze(Te,i.getTypeAtLocation(Tt));break}}default:return E(Me,Te)}}function E(Me,Te){zg(Me)&&ze(Te,i.getContextualType(Me))}function N(Me,Te){ze(Te,Ls(Me)?i.getVoidType():i.getAnyType())}function F(Me,Te){switch(Me.operator){case 46:case 47:case 41:case 55:Te.isNumber=!0;break;case 40:Te.isNumberOrString=!0;break}}function M(Me,Te,gt){switch(Te.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:let Tt=i.getTypeAtLocation(Te.left===Me?Te.right:Te.left);Tt.flags&1056?ze(gt,Tt):gt.isNumber=!0;break;case 65:case 40:let xe=i.getTypeAtLocation(Te.left===Me?Te.right:Te.left);xe.flags&1056?ze(gt,xe):xe.flags&296?gt.isNumber=!0:xe.flags&402653316?gt.isString=!0:xe.flags&1||(gt.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:ze(gt,i.getTypeAtLocation(Te.left===Me?Te.right:Te.left));break;case 103:Me===Te.left&&(gt.isString=!0);break;case 57:case 61:Me===Te.left&&(Me.parent.parent.kind===260||Yu(Me.parent.parent,!0))&&ze(gt,i.getTypeAtLocation(Te.right));break;case 56:case 28:case 104:break}}function L(Me,Te){ze(Te,i.getTypeAtLocation(Me.parent.parent.expression))}function W(Me,Te){let gt={argumentTypes:[],return_:p()};if(Me.arguments)for(let Tt of Me.arguments)gt.argumentTypes.push(i.getTypeAtLocation(Tt));P(Me,gt.return_),Me.kind===213?(Te.calls||(Te.calls=[])).push(gt):(Te.constructs||(Te.constructs=[])).push(gt)}function z(Me,Te){let gt=gl(Me.name.text);Te.properties||(Te.properties=new Map);let Tt=Te.properties.get(gt)||p();P(Me,Tt),Te.properties.set(gt,Tt)}function H(Me,Te,gt){if(Te===Me.argumentExpression){gt.isNumberOrString=!0;return}else{let Tt=i.getTypeAtLocation(Me.argumentExpression),xe=p();P(Me,xe),Tt.flags&296?gt.numberIndex=xe:gt.stringIndex=xe}}function X(Me,Te){let gt=Ui(Me.parent.parent)?Me.parent.parent:Me.parent;ge(Te,i.getTypeAtLocation(gt))}function ne(Me,Te){ge(Te,i.getTypeAtLocation(Me.parent))}function ae(Me,Te){let gt=[];for(let Tt of Me)for(let{high:xe,low:nt}of Te)xe(Tt)&&(I.assert(!nt(Tt),"Priority can't have both low and high"),gt.push(nt));return Me.filter(Tt=>gt.every(xe=>!xe(Tt)))}function Y(Me){return Ee(te(Me))}function Ee(Me){if(!Me.length)return i.getAnyType();let Te=i.getUnionType([i.getStringType(),i.getNumberType()]),Tt=ae(Me,[{high:nt=>nt===i.getStringType()||nt===i.getNumberType(),low:nt=>nt===Te},{high:nt=>!(nt.flags&16385),low:nt=>!!(nt.flags&16385)},{high:nt=>!(nt.flags&114689)&&!(oi(nt)&16),low:nt=>!!(oi(nt)&16)}]),xe=Tt.filter(nt=>oi(nt)&16);return xe.length&&(Tt=Tt.filter(nt=>!(oi(nt)&16)),Tt.push(fe(xe))),i.getWidenedType(i.getUnionType(Tt.map(i.getBaseTypeOfLiteralType),2))}function fe(Me){if(Me.length===1)return Me[0];let Te=[],gt=[],Tt=[],xe=[],nt=!1,pe=!1,He=Zl();for(let st of Me){for(let Or of i.getPropertiesOfType(st))He.add(Or.escapedName,Or.valueDeclaration?i.getTypeOfSymbolAtLocation(Or,Or.valueDeclaration):i.getAnyType());Te.push(...i.getSignaturesOfType(st,0)),gt.push(...i.getSignaturesOfType(st,1));let jt=i.getIndexInfoOfType(st,0);jt&&(Tt.push(jt.type),nt=nt||jt.isReadonly);let ar=i.getIndexInfoOfType(st,1);ar&&(xe.push(ar.type),pe=pe||ar.isReadonly)}let qe=ok(He,(st,jt)=>{let ar=jt.length<Me.length?16777216:0,Or=i.createSymbol(4|ar,st);return Or.links.type=i.getUnionType(jt),[st,Or]}),je=[];return Tt.length&&je.push(i.createIndexInfo(i.getStringType(),i.getUnionType(Tt),nt)),xe.length&&je.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(xe),pe)),i.createAnonymousType(Me[0].symbol,qe,Te,gt,je)}function te(Me){var Te,gt,Tt;let xe=[];Me.isNumber&&xe.push(i.getNumberType()),Me.isString&&xe.push(i.getStringType()),Me.isNumberOrString&&xe.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Me.numberIndex&&xe.push(i.createArrayType(Y(Me.numberIndex))),((Te=Me.properties)!=null&&Te.size||(gt=Me.constructs)!=null&>.length||Me.stringIndex)&&xe.push(de(Me));let nt=(Me.candidateTypes||[]).map(He=>i.getBaseTypeOfLiteralType(He)),pe=(Tt=Me.calls)!=null&&Tt.length?de(Me):void 0;return pe&&nt?xe.push(i.getUnionType([pe,...nt],2)):(pe&&xe.push(pe),Re(nt)&&xe.push(...nt)),xe.push(...me(Me)),xe}function de(Me){let Te=new Map;Me.properties&&Me.properties.forEach((nt,pe)=>{let He=i.createSymbol(4,pe);He.links.type=Y(nt),Te.set(pe,He)});let gt=Me.calls?[it(Me.calls)]:[],Tt=Me.constructs?[it(Me.constructs)]:[],xe=Me.stringIndex?[i.createIndexInfo(i.getStringType(),Y(Me.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Te,gt,Tt,xe)}function me(Me){if(!Me.properties||!Me.properties.size)return[];let Te=l.filter(gt=>ve(gt,Me));return 0<Te.length&&Te.length<3?Te.map(gt=>Pe(gt,Me)):[]}function ve(Me,Te){return Te.properties?!Lu(Te.properties,(gt,Tt)=>{let xe=i.getTypeOfPropertyOfType(Me,Tt);return xe?gt.calls?!i.getSignaturesOfType(xe,0).length||!i.isTypeAssignableTo(xe,Ne(gt.calls)):!i.isTypeAssignableTo(xe,Y(gt)):!0}):!1}function Pe(Me,Te){if(!(oi(Me)&4)||!Te.properties)return Me;let gt=Me.target,Tt=Zd(gt.typeParameters);if(!Tt)return Me;let xe=[];return Te.properties.forEach((nt,pe)=>{let He=i.getTypeOfPropertyOfType(gt,pe);I.assert(!!He,"generic should have all the properties of its reference."),xe.push(...Oe(He,Y(nt),Tt))}),s[Me.symbol.escapedName](Ee(xe))}function Oe(Me,Te,gt){if(Me===gt)return[Te];if(Me.flags&3145728)return li(Me.types,nt=>Oe(nt,Te,gt));if(oi(Me)&4&&oi(Te)&4){let nt=i.getTypeArguments(Me),pe=i.getTypeArguments(Te),He=[];if(nt&&pe)for(let qe=0;qe<nt.length;qe++)pe[qe]&&He.push(...Oe(nt[qe],pe[qe],gt));return He}let Tt=i.getSignaturesOfType(Me,0),xe=i.getSignaturesOfType(Te,0);return Tt.length===1&&xe.length===1?ie(Tt[0],xe[0],gt):[]}function ie(Me,Te,gt){var Tt;let xe=[];for(let He=0;He<Me.parameters.length;He++){let qe=Me.parameters[He],je=Te.parameters[He],st=Me.declaration&&Ey(Me.declaration.parameters[He]);if(!je)break;let jt=qe.valueDeclaration?i.getTypeOfSymbolAtLocation(qe,qe.valueDeclaration):i.getAnyType(),ar=st&&i.getElementTypeOfArrayType(jt);ar&&(jt=ar);let Or=((Tt=_i(je,Tv))==null?void 0:Tt.links.type)||(je.valueDeclaration?i.getTypeOfSymbolAtLocation(je,je.valueDeclaration):i.getAnyType());xe.push(...Oe(jt,Or,gt))}let nt=i.getReturnTypeOfSignature(Me),pe=i.getReturnTypeOfSignature(Te);return xe.push(...Oe(nt,pe,gt)),xe}function Ne(Me){return i.createAnonymousType(void 0,Qs(),[it(Me)],ce,ce)}function it(Me){let Te=[],gt=Math.max(...Me.map(xe=>xe.argumentTypes.length));for(let xe=0;xe<gt;xe++){let nt=i.createSymbol(1,gl(`arg${xe}`));nt.links.type=Ee(Me.map(pe=>pe.argumentTypes[xe]||i.getUndefinedType())),Me.some(pe=>pe.argumentTypes[xe]===void 0)&&(nt.flags|=16777216),Te.push(nt)}let Tt=Y(g(Me.map(xe=>xe.return_)));return i.createSignature(void 0,void 0,void 0,Te,Tt,void 0,gt,0)}function ze(Me,Te){Te&&!(Te.flags&1)&&!(Te.flags&131072)&&(Me.candidateTypes||(Me.candidateTypes=[])).push(Te)}function ge(Me,Te){Te&&!(Te.flags&1)&&!(Te.flags&131072)&&(Me.candidateThisTypes||(Me.candidateThisTypes=[])).push(Te)}}var WTe="fixReturnTypeInAsyncFunction",gGe=[y.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];ro({errorCodes:gGe,fixIds:[WTe],getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,l=i.getTypeChecker(),p=hGe(n,i.getTypeChecker(),s.start);if(!p)return;let{returnTypeNode:g,returnType:m,promisedTypeNode:x,promisedType:b}=p,S=Ln.ChangeTracker.with(t,P=>yGe(P,n,g,x));return[Bs(WTe,S,[y.Replace_0_with_Promise_1,l.typeToString(m),l.typeToString(b)],WTe,y.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>uc(e,gGe,(t,n)=>{let i=hGe(n.file,e.program.getTypeChecker(),n.start);i&&yGe(t,n.file,i.returnTypeNode,i.promisedTypeNode)})});function hGe(e,t,n){if(jn(e))return;let i=ca(e,n),s=Br(i,Dc),l=s?.type;if(!l)return;let p=t.getTypeFromTypeNode(l),g=t.getAwaitedType(p)||t.getVoidType(),m=t.typeToTypeNode(g,l,void 0);if(m)return{returnTypeNode:l,returnType:p,promisedTypeNode:m,promisedType:g}}function yGe(e,t,n,i){e.replaceNode(t,n,j.createTypeReferenceNode("Promise",[i]))}var vGe="disableJsDiagnostics",bGe="disableJsDiagnostics",xGe=Bi(Object.keys(y),e=>{let t=y[e];return t.category===1?t.code:void 0});ro({errorCodes:xGe,getCodeActions:function(t){let{sourceFile:n,program:i,span:s,host:l,formatContext:p}=t;if(!jn(n)||!F4(n,i.getCompilerOptions()))return;let g=n.checkJsDirective?"":B0(l,p.options),m=[Yg(vGe,[uUe(n.fileName,[gR(n.checkJsDirective?Ul(n.checkJsDirective.pos,n.checkJsDirective.end):Sp(0,0),`// @ts-nocheck${g}`)])],y.Disable_checking_for_this_file)];return Ln.isValidLocationToAddComment(n,s.start)&&m.unshift(Bs(vGe,Ln.ChangeTracker.with(t,x=>SGe(x,n,s.start)),y.Ignore_this_error_message,bGe,y.Add_ts_ignore_to_all_error_messages)),m},fixIds:[bGe],getAllCodeActions:e=>{let t=new Set;return uc(e,xGe,(n,i)=>{Ln.isValidLocationToAddComment(i.file,i.start)&&SGe(n,i.file,i.start,t)})}});function SGe(e,t,n,i){let{line:s}=$s(t,n);(!i||Ty(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}function UTe(e,t,n,i,s,l,p){let g=e.symbol.members;for(let m of t)g.has(m.escapedName)||wGe(m,e,n,i,s,l,p,void 0)}function TA(e){return{trackSymbol:()=>!1,moduleResolverHost:qte(e.program,e.host)}}var TGe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(TGe||{});function wGe(e,t,n,i,s,l,p,g,m=3,x=!1){let b=e.getDeclarations(),S=Yl(b),P=i.program.getTypeChecker(),E=Po(i.program.getCompilerOptions()),N=S?.kind??171,F=ve(e,S),M=S?gf(S):0,L=M&256;L|=M&1?1:M&4?4:0,S&&Kf(S)&&(L|=512);let W=Ee(),z=P.getWidenedType(P.getTypeOfSymbolAtLocation(e,t)),H=!!(e.flags&16777216),X=!!(t.flags&33554432)||x,ne=H_(n,s),ae=1|(ne===0?268435456:0);switch(N){case 171:case 172:let Pe=P.typeToTypeNode(z,t,ae,8,TA(i));if(l){let ie=sw(Pe,E);ie&&(Pe=ie.typeNode,cC(l,ie.symbols))}p(j.createPropertyDeclaration(W,S?te(F):e.getName(),H&&m&2?j.createToken(58):void 0,Pe,void 0));break;case 177:case 178:{I.assertIsDefined(b);let ie=P.typeToTypeNode(z,t,ae,void 0,TA(i)),Ne=E2(b,S),it=Ne.secondAccessor?[Ne.firstAccessor,Ne.secondAccessor]:[Ne.firstAccessor];if(l){let ze=sw(ie,E);ze&&(ie=ze.typeNode,cC(l,ze.symbols))}for(let ze of it)if(mm(ze))p(j.createGetAccessorDeclaration(W,te(F),ce,me(ie),de(g,ne,X)));else{I.assertNode(ze,v_,"The counterpart to a getter should be a setter");let ge=b4(ze),Me=ge&&Ye(ge.name)?fi(ge.name):void 0;p(j.createSetAccessorDeclaration(W,te(F),HTe(1,[Me],[me(ie)],1,!1),de(g,ne,X)))}break}case 173:case 174:I.assertIsDefined(b);let Oe=z.isUnion()?li(z.types,ie=>ie.getCallSignatures()):z.getCallSignatures();if(!Pt(Oe))break;if(b.length===1){I.assert(Oe.length===1,"One declaration implies one signature");let ie=Oe[0];Y(ne,ie,W,te(F),de(g,ne,X));break}for(let ie of Oe)ie.declaration&&ie.declaration.flags&33554432||Y(ne,ie,W,te(F));if(!X)if(b.length>Oe.length){let ie=P.getSignatureFromDeclaration(b[b.length-1]);Y(ne,ie,W,te(F),de(g,ne))}else I.assert(b.length===Oe.length,"Declarations and signatures should match count"),p(_Bt(P,i,t,Oe,te(F),H&&!!(m&1),W,ne,g));break}function Y(Pe,Oe,ie,Ne,it){let ze=One(174,i,Pe,Oe,it,Ne,ie,H&&!!(m&1),t,l);ze&&p(ze)}function Ee(){let Pe;return L&&(Pe=n2(Pe,j.createModifiersFromModifierFlags(L))),fe()&&(Pe=Zr(Pe,j.createToken(164))),Pe&&j.createNodeArray(Pe)}function fe(){return!!(i.program.getCompilerOptions().noImplicitOverride&&S&&D2(S))}function te(Pe){return Ye(Pe)&&Pe.escapedText==="constructor"?j.createComputedPropertyName(j.createStringLiteral(fi(Pe),ne===0)):tc(Pe,!1)}function de(Pe,Oe,ie){return ie?void 0:tc(Pe,!1)||GTe(Oe)}function me(Pe){return tc(Pe,!1)}function ve(Pe,Oe){if(Tl(Pe)&262144){let ie=Pe.links.nameType;if(ie&&_m(ie))return j.createIdentifier(ka(dm(ie)))}return tc(ls(Oe),!1)}}function One(e,t,n,i,s,l,p,g,m,x){let b=t.program,S=b.getTypeChecker(),P=Po(b.getCompilerOptions()),E=jn(m),N=524545|(n===0?268435456:0),F=S.signatureToSignatureDeclaration(i,e,m,N,8,TA(t));if(!F)return;let M=E?void 0:F.typeParameters,L=F.parameters,W=E?void 0:tc(F.type);if(x){if(M){let ne=ia(M,ae=>{let Y=ae.constraint,Ee=ae.default;if(Y){let fe=sw(Y,P);fe&&(Y=fe.typeNode,cC(x,fe.symbols))}if(Ee){let fe=sw(Ee,P);fe&&(Ee=fe.typeNode,cC(x,fe.symbols))}return j.updateTypeParameterDeclaration(ae,ae.modifiers,ae.name,Y,Ee)});M!==ne&&(M=Ot(j.createNodeArray(ne,M.hasTrailingComma),M))}let X=ia(L,ne=>{let ae=E?void 0:ne.type;if(ae){let Y=sw(ae,P);Y&&(ae=Y.typeNode,cC(x,Y.symbols))}return j.updateParameterDeclaration(ne,ne.modifiers,ne.dotDotDotToken,ne.name,E?void 0:ne.questionToken,ae,ne.initializer)});if(L!==X&&(L=Ot(j.createNodeArray(X,L.hasTrailingComma),L)),W){let ne=sw(W,P);ne&&(W=ne.typeNode,cC(x,ne.symbols))}}let z=g?j.createToken(58):void 0,H=F.asteriskToken;if(Ic(F))return j.updateFunctionExpression(F,p,F.asteriskToken,_i(l,Ye),M,L,W,s??F.body);if(Bc(F))return j.updateArrowFunction(F,p,M,L,W,F.equalsGreaterThanToken,s??F.body);if(wl(F))return j.updateMethodDeclaration(F,p,H,l??j.createIdentifier(""),z,M,L,W,s);if(jl(F))return j.updateFunctionDeclaration(F,p,F.asteriskToken,_i(l,Ye),M,L,W,s??F.body)}function $Te(e,t,n,i,s,l,p){let g=H_(t.sourceFile,t.preferences),m=Po(t.program.getCompilerOptions()),x=TA(t),b=t.program.getTypeChecker(),S=jn(p),{typeArguments:P,arguments:E,parent:N}=i,F=S?void 0:b.getContextualType(i),M=Dt(E,Ee=>Ye(Ee)?Ee.text:ai(Ee)&&Ye(Ee.name)?Ee.name.text:void 0),L=S?[]:Dt(E,Ee=>b.getTypeAtLocation(Ee)),{argumentTypeNodes:W,argumentTypeParameters:z}=pBt(b,n,L,p,m,1,8,x),H=l?j.createNodeArray(j.createModifiersFromModifierFlags(l)):void 0,X=lM(N)?j.createToken(42):void 0,ne=S?void 0:lBt(b,z,P),ae=HTe(E.length,M,W,void 0,S),Y=S||F===void 0?void 0:b.typeToTypeNode(F,p,void 0,void 0,x);switch(e){case 174:return j.createMethodDeclaration(H,X,s,void 0,ne,ae,Y,GTe(g));case 173:return j.createMethodSignature(H,s,void 0,ne,ae,Y===void 0?j.createKeywordTypeNode(159):Y);case 262:return I.assert(typeof s=="string"||Ye(s),"Unexpected name"),j.createFunctionDeclaration(H,X,s,ne,ae,Y,f$(y.Function_not_implemented.message,g));default:I.fail("Unexpected kind")}}function lBt(e,t,n){let i=new Set(t.map(l=>l[0])),s=new Map(t);if(n){let l=n.filter(g=>!t.some(m=>{var x;return e.getTypeAtLocation(g)===((x=m[1])==null?void 0:x.argumentType)})),p=i.size+l.length;for(let g=0;i.size<p;g+=1)i.add(kGe(g))}return Ka(i.values(),l=>{var p;return j.createTypeParameterDeclaration(void 0,l,(p=s.get(l))==null?void 0:p.constraint)})}function kGe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Nne(e,t,n,i,s,l,p,g){let m=e.typeToTypeNode(n,i,l,p,g);if(m)return VTe(m,t,s)}function VTe(e,t,n){let i=sw(e,n);return i&&(cC(t,i.symbols),e=i.typeNode),tc(e)}function uBt(e,t){I.assert(t.typeArguments);let n=t.typeArguments,i=t.target;for(let s=0;s<n.length;s++){let l=n.slice(0,s);if(e.fillMissingTypeArguments(l,i.typeParameters,s,!1).every((g,m)=>g===n[m]))return s}return n.length}function CGe(e,t,n,i,s,l){let p=e.typeToTypeNode(t,n,i,s,l);if(p){if(W_(p)){let g=t;if(g.typeArguments&&p.typeArguments){let m=uBt(e,g);if(m<p.typeArguments.length){let x=j.createNodeArray(p.typeArguments.slice(0,m));p=j.updateTypeReferenceNode(p,p.typeName,x)}}}return p}}function PGe(e,t,n,i,s,l,p,g){let m=e.typePredicateToTypePredicateNode(n,i,l,p,g);if(m?.type&&jh(m.type)){let x=sw(m.type,s);x&&(cC(t,x.symbols),m=j.updateTypePredicateNode(m,m.assertsModifier,m.parameterName,x.typeNode))}return tc(m)}function EGe(e){return e.isUnionOrIntersection()?e.types.some(EGe):e.flags&262144}function pBt(e,t,n,i,s,l,p,g){let m=[],x=new Map;for(let b=0;b<n.length;b+=1){let S=n[b];if(S.isUnionOrIntersection()&&S.types.some(EGe)){let M=kGe(b);m.push(j.createTypeReferenceNode(M)),x.set(M,void 0);continue}let P=e.getBaseTypeOfLiteralType(S),E=Nne(e,t,P,i,s,l,p,g);if(!E)continue;m.push(E);let N=DGe(S),F=S.isTypeParameter()&&S.constraint&&!fBt(S.constraint)?Nne(e,t,S.constraint,i,s,l,p,g):void 0;N&&x.set(N,{argumentType:S,constraint:F})}return{argumentTypeNodes:m,argumentTypeParameters:Ka(x.entries())}}function fBt(e){return e.flags&524288&&e.objectFlags===16}function DGe(e){var t;if(e.flags&3145728)for(let n of e.types){let i=DGe(n);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function HTe(e,t,n,i,s){let l=[],p=new Map;for(let g=0;g<e;g++){let m=t?.[g]||`arg${g}`,x=p.get(m);p.set(m,(x||0)+1);let b=j.createParameterDeclaration(void 0,void 0,m+(x||""),i!==void 0&&g>=i?j.createToken(58):void 0,s?void 0:n?.[g]||j.createKeywordTypeNode(159),void 0);l.push(b)}return l}function _Bt(e,t,n,i,s,l,p,g,m){let x=i[0],b=i[0].minArgumentCount,S=!1;for(let F of i)b=Math.min(F.minArgumentCount,b),ef(F)&&(S=!0),F.parameters.length>=x.parameters.length&&(!ef(F)||ef(x))&&(x=F);let P=x.parameters.length-(ef(x)?1:0),E=x.parameters.map(F=>F.name),N=HTe(P,E,void 0,b,!1);if(S){let F=j.createParameterDeclaration(void 0,j.createToken(26),E[P]||"rest",P>=b?j.createToken(58):void 0,j.createArrayTypeNode(j.createKeywordTypeNode(159)),void 0);N.push(F)}return mBt(p,s,l,void 0,N,dBt(i,e,t,n),g,m)}function dBt(e,t,n,i){if(Re(e)){let s=t.getUnionType(Dt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,8,TA(n))}}function mBt(e,t,n,i,s,l,p,g){return j.createMethodDeclaration(e,void 0,t,n?j.createToken(58):void 0,i,s,l,g||GTe(p))}function GTe(e){return f$(y.Method_not_implemented.message,e)}function f$(e,t){return j.createBlock([j.createThrowStatement(j.createNewExpression(j.createIdentifier("Error"),void 0,[j.createStringLiteral(e,t===0)]))],!0)}function KTe(e,t,n){let i=a4(t);if(!i)return;let s=OGe(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,XTe("compilerOptions",j.createObjectLiteralExpression(n.map(([p,g])=>XTe(p,g)),!0)));return}let l=s.initializer;if(So(l))for(let[p,g]of n){let m=OGe(l,p);m===void 0?e.insertNodeAtObjectStart(t,l,XTe(p,g)):e.replaceNode(t,m.initializer,g)}}function QTe(e,t,n,i){KTe(e,t,[[n,i]])}function XTe(e,t){return j.createPropertyAssignment(j.createStringLiteral(e),t)}function OGe(e,t){return Ir(e.properties,n=>xu(n)&&!!n.name&&vo(n.name)&&n.name.text===t)}function sw(e,t){let n,i=dt(e,s,Yi);if(n&&i)return{typeNode:i,symbols:n};function s(l){if(C0(l)&&l.qualifier){let p=Af(l.qualifier);if(!p.symbol)return Gr(l,s,void 0);let g=FU(p.symbol,t),m=g!==p.text?NGe(l.qualifier,j.createIdentifier(g)):l.qualifier;n=Zr(n,p.symbol);let x=dn(l.typeArguments,s,Yi);return j.createTypeReferenceNode(m,x)}return Gr(l,s,void 0)}}function NGe(e,t){return e.kind===80?t:j.createQualifiedName(NGe(e.left,t),e.right)}function cC(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function YTe(e,t){let n=ml(t),i=ca(e,t.start);for(;i.end<n;)i=i.parent;return i}function AGe(e,t,n,i,s,l){let p=MGe(e,t,n,i);if(!p||GE.isRefactorErrorInfo(p))return;let g=Ln.ChangeTracker.fromContext(s),{isStatic:m,isReadonly:x,fieldName:b,accessorName:S,originalName:P,type:E,container:N,declaration:F}=p;K_(b),K_(S),K_(F),K_(N);let M,L;if(Ri(N)){let z=gf(F);if(Nf(e)){let H=j.createModifiersFromModifierFlags(z);M=H,L=H}else M=j.createModifiersFromModifierFlags(yBt(z)),L=j.createModifiersFromModifierFlags(vBt(z));U2(F)&&(L=ya(tx(F),L))}wBt(g,e,F,E,b,L);let W=bBt(b,S,E,M,m,N);if(K_(W),RGe(g,e,W,F,N),x){let z=Dv(N);z&&kBt(g,e,z,b.text,P)}else{let z=xBt(b,S,E,M,m,N);K_(z),RGe(g,e,z,F,N)}return g.getChanges()}function gBt(e){return Ye(e)||vo(e)}function hBt(e){return L_(e,e.parent)||is(e)||xu(e)}function IGe(e,t){return Ye(t)?j.createIdentifier(e):j.createStringLiteral(e)}function FGe(e,t,n){let i=t?n.name:j.createThis();return Ye(e)?j.createPropertyAccessExpression(i,e):j.createElementAccessExpression(i,j.createStringLiteralFromNode(e))}function yBt(e){return e&=-9,e&=-3,e&4||(e|=1),e}function vBt(e){return e&=-2,e&=-5,e|=2,e}function MGe(e,t,n,i,s=!0){let l=ca(e,n),p=n===i&&s,g=Br(l.parent,hBt),m=271;if(!g||!(cU(g.name,e,n,i)||p))return{error:gs(y.Could_not_find_property_for_which_to_generate_accessor)};if(!gBt(g.name))return{error:gs(y.Name_is_not_valid)};if((gf(g)&98303|m)!==m)return{error:gs(y.Can_only_convert_property_with_modifier)};let x=g.name.text,b=_re(x),S=IGe(b?x:oC(`_${x}`,e),g.name),P=IGe(b?oC(x.substring(1),e):x,g.name);return{isStatic:Pu(g),isReadonly:Ik(g),type:CBt(g,t),container:g.kind===169?g.parent.parent:g.parent,originalName:g.name.text,declaration:g,fieldName:S,accessorName:P,renameAccessor:b}}function bBt(e,t,n,i,s,l){return j.createGetAccessorDeclaration(i,t,[],n,j.createBlock([j.createReturnStatement(FGe(e,s,l))],!0))}function xBt(e,t,n,i,s,l){return j.createSetAccessorDeclaration(i,t,[j.createParameterDeclaration(void 0,void 0,j.createIdentifier("value"),void 0,n)],j.createBlock([j.createExpressionStatement(j.createAssignment(FGe(e,s,l),j.createIdentifier("value")))],!0))}function SBt(e,t,n,i,s,l){let p=j.updatePropertyDeclaration(n,l,s,n.questionToken||n.exclamationToken,i,n.initializer);e.replaceNode(t,n,p)}function TBt(e,t,n,i){let s=j.updatePropertyAssignment(n,i,n.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===n&&(s=j.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,n,s)}function wBt(e,t,n,i,s,l){is(n)?SBt(e,t,n,i,s,l):xu(n)?TBt(e,t,n,s):e.replaceNode(t,n,j.updateParameterDeclaration(n,l,n.dotDotDotToken,Js(s,Ye),n.questionToken,n.type,n.initializer))}function RGe(e,t,n,i,s){L_(i,i.parent)?e.insertMemberAtStart(t,s,n):xu(i)?e.insertNodeAfterComma(t,i,n):e.insertNodeAfter(t,i,n)}function kBt(e,t,n,i,s){n.body&&n.body.forEachChild(function l(p){Nc(p)&&p.expression.kind===110&&vo(p.argumentExpression)&&p.argumentExpression.text===s&&iE(p)&&e.replaceNode(t,p.argumentExpression,j.createStringLiteral(i)),ai(p)&&p.expression.kind===110&&p.name.text===s&&iE(p)&&e.replaceNode(t,p.name,j.createIdentifier(i)),!Ss(p)&&!Ri(p)&&p.forEachChild(l)})}function CBt(e,t){let n=$me(e);if(is(e)&&n&&e.questionToken){let i=t.getTypeChecker(),s=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){let l=M1(n)?n.types:[n];return j.createUnionTypeNode([...l,j.createKeywordTypeNode(157)])}}return n}function ZTe(e,t){let n=[];for(;e;){let i=w2(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;let l=s.flags&2097152?t.getAliasedSymbol(s):s,p=l.declarations&&Ir(l.declarations,Ri);if(!p)break;n.push(p),e=p}return n}var jGe="invalidImportSyntax";function PBt(e,t){let n=rn(t),i=uN(t),s=e.program.getCompilerOptions(),l=[];return l.push(LGe(e,n,t,Mx(i.name,void 0,t.moduleSpecifier,H_(n,e.preferences)))),hf(s)===1&&l.push(LGe(e,n,t,j.createImportEqualsDeclaration(void 0,!1,i.name,j.createExternalModuleReference(t.moduleSpecifier)))),l}function LGe(e,t,n,i){let s=Ln.ChangeTracker.with(e,l=>l.replaceNode(t,n,i));return Yg(jGe,s,[y.Replace_import_with_0,s[0].textChanges[0].newText])}ro({errorCodes:[y.This_expression_is_not_callable.code,y.This_expression_is_not_constructable.code],getCodeActions:EBt});function EBt(e){let t=e.sourceFile,n=y.This_expression_is_not_callable.code===e.errorCode?213:214,i=Br(ca(t,e.span.start),l=>l.kind===n);if(!i)return[];let s=i.expression;return BGe(e,s)}ro({errorCodes:[y.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,y.Type_0_does_not_satisfy_the_constraint_1.code,y.Type_0_is_not_assignable_to_type_1.code,y.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,y.Type_predicate_0_is_not_assignable_to_1.code,y.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,y._0_index_type_1_is_not_assignable_to_2_index_type_3.code,y.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,y.Property_0_in_type_1_is_not_assignable_to_type_2.code,y.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,y.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:DBt});function DBt(e){let t=e.sourceFile,n=Br(ca(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?BGe(e,n):[]}function BGe(e,t){let n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Tv(n.symbol)&&n.symbol.links.originatingImport))return[];let i=[],s=n.symbol.links.originatingImport;if(_d(s)||ti(i,PBt(e,s)),At(t)&&!(Gu(t.parent)&&t.parent.name===t)){let l=e.sourceFile,p=Ln.ChangeTracker.with(e,g=>g.replaceNode(l,t,j.createPropertyAccessExpression(t,"default"),{}));i.push(Yg(jGe,p,y.Use_synthetic_default_member))}return i}var e2e="strictClassInitialization",t2e="addMissingPropertyDefiniteAssignmentAssertions",r2e="addMissingPropertyUndefinedType",n2e="addMissingPropertyInitializer",qGe=[y.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];ro({errorCodes:qGe,getCodeActions:function(t){let n=JGe(t.sourceFile,t.span.start);if(!n)return;let i=[];return Zr(i,NBt(t,n)),Zr(i,OBt(t,n)),Zr(i,ABt(t,n)),i},fixIds:[t2e,r2e,n2e],getAllCodeActions:e=>uc(e,qGe,(t,n)=>{let i=JGe(n.file,n.start);if(i)switch(e.fixId){case t2e:zGe(t,n.file,i.prop);break;case r2e:WGe(t,n.file,i);break;case n2e:let s=e.program.getTypeChecker(),l=$Ge(s,i.prop);if(!l)return;UGe(t,n.file,i.prop,l);break;default:I.fail(JSON.stringify(e.fixId))}})});function JGe(e,t){let n=ca(e,t);if(Ye(n)&&is(n.parent)){let i=hu(n.parent);if(i)return{type:i,prop:n.parent,isJs:jn(n.parent)}}}function OBt(e,t){if(t.isJs)return;let n=Ln.ChangeTracker.with(e,i=>zGe(i,e.sourceFile,t.prop));return Bs(e2e,n,[y.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],t2e,y.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function zGe(e,t,n){K_(n);let i=j.updatePropertyDeclaration(n,n.modifiers,n.name,j.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function NBt(e,t){let n=Ln.ChangeTracker.with(e,i=>WGe(i,e.sourceFile,t));return Bs(e2e,n,[y.Add_undefined_type_to_property_0,t.prop.name.getText()],r2e,y.Add_undefined_type_to_all_uninitialized_properties)}function WGe(e,t,n){let i=j.createKeywordTypeNode(157),s=M1(n.type)?n.type.types.concat(i):[n.type,i],l=j.createUnionTypeNode(s);n.isJs?e.addJSDocTags(t,n.prop,[j.createJSDocTypeTag(void 0,j.createJSDocTypeExpression(l))]):e.replaceNode(t,n.type,l)}function ABt(e,t){if(t.isJs)return;let n=e.program.getTypeChecker(),i=$Ge(n,t.prop);if(!i)return;let s=Ln.ChangeTracker.with(e,l=>UGe(l,e.sourceFile,t.prop,i));return Bs(e2e,s,[y.Add_initializer_to_property_0,t.prop.name.getText()],n2e,y.Add_initializers_to_all_uninitialized_properties)}function UGe(e,t,n,i){K_(n);let s=j.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function $Ge(e,t){return VGe(e,e.getTypeFromTypeNode(t.type))}function VGe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?j.createFalse():j.createTrue();if(t.isStringLiteral())return j.createStringLiteral(t.value);if(t.isNumberLiteral())return j.createNumericLiteral(t.value);if(t.flags&2048)return j.createBigIntLiteral(t.value);if(t.isUnion())return jr(t.types,n=>VGe(e,n));if(t.isClass()){let n=A0(t.symbol);if(!n||Ai(n,64))return;let i=Dv(n);return i&&i.parameters.length?void 0:j.createNewExpression(j.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return j.createArrayLiteralExpression()}var i2e="requireInTs",HGe=[y.require_call_may_be_converted_to_an_import.code];ro({errorCodes:HGe,getCodeActions(e){let t=KGe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;let n=Ln.ChangeTracker.with(e,i=>GGe(i,e.sourceFile,t));return[Bs(i2e,n,y.Convert_require_to_import,i2e,y.Convert_all_require_to_import)]},fixIds:[i2e],getAllCodeActions:e=>uc(e,HGe,(t,n)=>{let i=KGe(n.file,e.program,n.start,e.preferences);i&&GGe(t,e.sourceFile,i)})});function GGe(e,t,n){let{allowSyntheticDefaults:i,defaultImportName:s,namedImports:l,statement:p,moduleSpecifier:g}=n;e.replaceNode(t,p,s&&!i?j.createImportEqualsDeclaration(void 0,!1,s,j.createExternalModuleReference(g)):j.createImportDeclaration(void 0,j.createImportClause(!1,s,l),g,void 0))}function KGe(e,t,n,i){let{parent:s}=ca(e,n);Xf(s,!0)||I.failBadSyntaxKind(s);let l=Js(s.parent,Ui),p=H_(e,i),g=_i(l.name,Ye),m=Nd(l.name)?IBt(l.name):void 0;if(g||m){let x=ho(s.arguments);return{allowSyntheticDefaults:lE(t.getCompilerOptions()),defaultImportName:g,namedImports:m,statement:Js(l.parent.parent,Rl),moduleSpecifier:Bk(x)?j.createStringLiteral(x.text,p===0):x}}}function IBt(e){let t=[];for(let n of e.elements){if(!Ye(n.name)||n.initializer)return;t.push(j.createImportSpecifier(!1,_i(n.propertyName,Ye),n.name))}if(t.length)return j.createNamedImports(t)}var a2e="useDefaultImport",QGe=[y.Import_may_be_converted_to_a_default_import.code];ro({errorCodes:QGe,getCodeActions(e){let{sourceFile:t,span:{start:n}}=e,i=XGe(t,n);if(!i)return;let s=Ln.ChangeTracker.with(e,l=>YGe(l,t,i,e.preferences));return[Bs(a2e,s,y.Convert_to_default_import,a2e,y.Convert_all_to_default_imports)]},fixIds:[a2e],getAllCodeActions:e=>uc(e,QGe,(t,n)=>{let i=XGe(n.file,n.start);i&&YGe(t,n.file,i,e.preferences)})});function XGe(e,t){let n=ca(e,t);if(!Ye(n))return;let{parent:i}=n;if(zu(i)&&M0(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(jv(i)&&sl(i.parent.parent)){let s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function YGe(e,t,n,i){e.replaceNode(t,n.importNode,Mx(n.name,void 0,n.moduleSpecifier,H_(t,i)))}var s2e="useBigintLiteral",ZGe=[y.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];ro({errorCodes:ZGe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>eKe(i,t.sourceFile,t.span));if(n.length>0)return[Bs(s2e,n,y.Convert_to_a_bigint_numeric_literal,s2e,y.Convert_all_to_bigint_numeric_literals)]},fixIds:[s2e],getAllCodeActions:e=>uc(e,ZGe,(t,n)=>eKe(t,n.file,n))});function eKe(e,t,n){let i=_i(ca(t,n.start),e_);if(!i)return;let s=i.getText(t)+"n";e.replaceNode(t,i,j.createBigIntLiteral(s))}var FBt="fixAddModuleReferTypeMissingTypeof",o2e=FBt,tKe=[y.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];ro({errorCodes:tKe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=rKe(n,i.start),l=Ln.ChangeTracker.with(t,p=>nKe(p,n,s));return[Bs(o2e,l,y.Add_missing_typeof,o2e,y.Add_missing_typeof)]},fixIds:[o2e],getAllCodeActions:e=>uc(e,tKe,(t,n)=>nKe(t,e.sourceFile,rKe(n.file,n.start)))});function rKe(e,t){let n=ca(e,t);return I.assert(n.kind===102,"This token should be an ImportKeyword"),I.assert(n.parent.kind===205,"Token parent should be an ImportType"),n.parent}function nKe(e,t,n){let i=j.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var c2e="wrapJsxInFragment",iKe=[y.JSX_expressions_must_have_one_parent_element.code];ro({errorCodes:iKe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=aKe(n,i.start);if(!s)return;let l=Ln.ChangeTracker.with(t,p=>sKe(p,n,s));return[Bs(c2e,l,y.Wrap_in_JSX_fragment,c2e,y.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[c2e],getAllCodeActions:e=>uc(e,iKe,(t,n)=>{let i=aKe(e.sourceFile,n.start);i&&sKe(t,e.sourceFile,i)})});function aKe(e,t){let s=ca(e,t).parent.parent;if(!(!Vn(s)&&(s=s.parent,!Vn(s)))&&Sl(s.operatorToken))return s}function sKe(e,t,n){let i=MBt(n);i&&e.replaceNode(t,n,j.createJsxFragment(j.createJsxOpeningFragment(),i,j.createJsxJsxClosingFragment()))}function MBt(e){let t=[],n=e;for(;;)if(Vn(n)&&Sl(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),BF(n.right))return t.push(n.right),t;if(Vn(n.right)){n=n.right;continue}else return}else return}var l2e="wrapDecoratorInParentheses",oKe=[y.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];ro({errorCodes:oKe,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>cKe(i,t.sourceFile,t.span.start));return[Bs(l2e,n,y.Wrap_in_parentheses,l2e,y.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[l2e],getAllCodeActions:e=>uc(e,oKe,(t,n)=>cKe(t,n.file,n.start))});function cKe(e,t,n){let i=ca(t,n),s=Br(i,qu);I.assert(!!s,"Expected position to be owned by a decorator.");let l=j.createParenthesizedExpression(s.expression);e.replaceNode(t,s.expression,l)}var u2e="fixConvertToMappedObjectType",lKe=[y.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];ro({errorCodes:lKe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=uKe(n,i.start);if(!s)return;let l=Ln.ChangeTracker.with(t,g=>pKe(g,n,s)),p=fi(s.container.name);return[Bs(u2e,l,[y.Convert_0_to_mapped_object_type,p],u2e,[y.Convert_0_to_mapped_object_type,p])]},fixIds:[u2e],getAllCodeActions:e=>uc(e,lKe,(t,n)=>{let i=uKe(n.file,n.start);i&&pKe(t,n.file,i)})});function uKe(e,t){let n=ca(e,t),i=_i(n.parent.parent,wx);if(!i)return;let s=Cp(i.parent)?i.parent:_i(i.parent.parent,Wm);if(s)return{indexSignature:i,container:s}}function RBt(e,t){return j.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function pKe(e,t,{indexSignature:n,container:i}){let l=(Cp(i)?i.members:i.type.members).filter(b=>!wx(b)),p=ho(n.parameters),g=j.createTypeParameterDeclaration(void 0,Js(p.name,Ye),p.type),m=j.createMappedTypeNode(Ik(n)?j.createModifier(148):void 0,g,void 0,n.questionToken,n.type,void 0),x=j.createIntersectionTypeNode([..._4(i),m,...l.length?[j.createTypeLiteralNode(l)]:ce]);e.replaceNode(t,i,RBt(i,x))}var fKe="removeAccidentalCallParentheses",jBt=[y.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];ro({errorCodes:jBt,getCodeActions(e){let t=Br(ca(e.sourceFile,e.span.start),Ls);if(!t)return;let n=Ln.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Yg(fKe,n,y.Remove_parentheses)]},fixIds:[fKe]});var p2e="removeUnnecessaryAwait",_Ke=[y.await_has_no_effect_on_the_type_of_this_expression.code];ro({errorCodes:_Ke,getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>dKe(i,t.sourceFile,t.span));if(n.length>0)return[Bs(p2e,n,y.Remove_unnecessary_await,p2e,y.Remove_all_unnecessary_uses_of_await)]},fixIds:[p2e],getAllCodeActions:e=>uc(e,_Ke,(t,n)=>dKe(t,n.file,n))});function dKe(e,t,n){let i=_i(ca(t,n.start),g=>g.kind===135),s=i&&_i(i.parent,kx);if(!s)return;let l=s;if(Mf(s.parent)){let g=SN(s.expression,!1);if(Ye(g)){let m=Ou(s.parent.pos,t);m&&m.kind!==105&&(l=s.parent)}}e.replaceNode(t,l,s.expression)}var mKe=[y.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],f2e="splitTypeOnlyImport";ro({errorCodes:mKe,fixIds:[f2e],getCodeActions:function(t){let n=Ln.ChangeTracker.with(t,i=>hKe(i,gKe(t.sourceFile,t.span),t));if(n.length)return[Bs(f2e,n,y.Split_into_two_separate_import_declarations,f2e,y.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>uc(e,mKe,(t,n)=>{hKe(t,gKe(e.sourceFile,n),e)})});function gKe(e,t){return Br(ca(e,t.start),sl)}function hKe(e,t,n){if(!t)return;let i=I.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,j.updateImportDeclaration(t,t.modifiers,j.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,j.createImportDeclaration(void 0,j.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var _2e="fixConvertConstToLet",yKe=[y.Cannot_assign_to_0_because_it_is_a_constant.code];ro({errorCodes:yKe,getCodeActions:function(t){let{sourceFile:n,span:i,program:s}=t,l=vKe(n,i.start,s);if(l===void 0)return;let p=Ln.ChangeTracker.with(t,g=>bKe(g,n,l.token));return[TSe(_2e,p,y.Convert_const_to_let,_2e,y.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,n=new Set;return QE(Ln.ChangeTracker.with(e,i=>{XE(e,yKe,s=>{let l=vKe(s.file,s.start,t);if(l&&Jm(n,co(l.symbol)))return bKe(i,s.file,l.token)})}))},fixIds:[_2e]});function vKe(e,t,n){var i;let l=n.getTypeChecker().getSymbolAtLocation(ca(e,t));if(l===void 0)return;let p=_i((i=l?.valueDeclaration)==null?void 0:i.parent,mp);if(p===void 0)return;let g=gc(p,87,e);if(g!==void 0)return{symbol:l,token:g}}function bKe(e,t,n){e.replaceNode(t,n,j.createToken(121))}var d2e="fixExpectedComma",LBt=y._0_expected.code,xKe=[LBt];ro({errorCodes:xKe,getCodeActions(e){let{sourceFile:t}=e,n=SKe(t,e.span.start,e.errorCode);if(!n)return;let i=Ln.ChangeTracker.with(e,s=>TKe(s,t,n));return[Bs(d2e,i,[y.Change_0_to_1,";",","],d2e,[y.Change_0_to_1,";",","])]},fixIds:[d2e],getAllCodeActions:e=>uc(e,xKe,(t,n)=>{let i=SKe(n.file,n.start,n.code);i&&TKe(t,e.sourceFile,i)})});function SKe(e,t,n){let i=ca(e,t);return i.kind===27&&i.parent&&(So(i.parent)||kp(i.parent))?{node:i}:void 0}function TKe(e,t,{node:n}){let i=j.createToken(28);e.replaceNode(t,n,i)}var BBt="addVoidToPromise",wKe="addVoidToPromise",kKe=[y.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,y.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];ro({errorCodes:kKe,fixIds:[wKe],getCodeActions(e){let t=Ln.ChangeTracker.with(e,n=>CKe(n,e.sourceFile,e.span,e.program));if(t.length>0)return[Bs(BBt,t,y.Add_void_to_Promise_resolved_without_a_value,wKe,y.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return uc(e,kKe,(t,n)=>CKe(t,n.file,n,e.program,new Set))}});function CKe(e,t,n,i,s){let l=ca(t,n.start);if(!Ye(l)||!Ls(l.parent)||l.parent.expression!==l||l.parent.arguments.length!==0)return;let p=i.getTypeChecker(),g=p.getSymbolAtLocation(l),m=g?.valueDeclaration;if(!m||!Da(m)||!L2(m.parent.parent)||s?.has(m))return;s?.add(m);let x=qBt(m.parent.parent);if(Pt(x)){let b=x[0],S=!M1(b)&&!Jk(b)&&Jk(j.createUnionTypeNode([b,j.createKeywordTypeNode(116)]).types[0]);S&&e.insertText(t,b.pos,"("),e.insertText(t,b.end,S?") | void":" | void")}else{let b=p.getResolvedSignature(l.parent),S=b?.parameters[0],P=S&&p.getTypeOfSymbolAtLocation(S,m.parent.parent);jn(m)?(!P||P.flags&3)&&(e.insertText(t,m.parent.parent.end,")"),e.insertText(t,yo(t.text,m.parent.parent.pos),"/** @type {Promise<void>} */(")):(!P||P.flags&2)&&e.insertText(t,m.parent.parent.expression.end,"<void>")}}function qBt(e){var t;if(jn(e)){if(Mf(e.parent)){let n=(t=xS(e.parent))==null?void 0:t.typeExpression.type;if(n&&W_(n)&&Ye(n.typeName)&&fi(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var eD={};w(eD,{CompletionKind:()=>WKe,CompletionSource:()=>EKe,SortText:()=>nf,StringCompletions:()=>Wne,SymbolOriginInfoKind:()=>DKe,createCompletionDetails:()=>m$,createCompletionDetailsForSymbol:()=>T2e,getCompletionEntriesFromSymbols:()=>x2e,getCompletionEntryDetails:()=>hqt,getCompletionEntrySymbol:()=>vqt,getCompletionsAtPosition:()=>GBt,getDefaultCommitCharacters:()=>lC,getPropertiesForObjectExpression:()=>qne,moduleSpecifierResolutionCacheAttemptLimit:()=>PKe,moduleSpecifierResolutionLimit:()=>m2e});var m2e=100,PKe=1e3,nf={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},Vh=[".",",",";"],Ane=[".",";"],EKe=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(EKe||{}),DKe=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(DKe||{});function JBt(e){return!!(e.kind&1)}function zBt(e){return!!(e.kind&2)}function _$(e){return!!(e&&e.kind&4)}function r8(e){return!!(e&&e.kind===32)}function WBt(e){return _$(e)||r8(e)||g2e(e)}function UBt(e){return(_$(e)||r8(e))&&!!e.isFromPackageJson}function $Bt(e){return!!(e.kind&8)}function VBt(e){return!!(e.kind&16)}function OKe(e){return!!(e&&e.kind&64)}function NKe(e){return!!(e&&e.kind&128)}function HBt(e){return!!(e&&e.kind&256)}function g2e(e){return!!(e&&e.kind&512)}function AKe(e,t,n,i,s,l,p,g,m){var x,b,S,P;let E=xc(),N=p||B5(i.getCompilerOptions())||((x=l.autoImportSpecifierExcludeRegexes)==null?void 0:x.length),F=!1,M=0,L=0,W=0,z=0,H=m({tryResolve:ne,skippedAny:()=>F,resolvedAny:()=>L>0,resolvedBeyondLimit:()=>L>m2e}),X=z?` (${(W/z*100).toFixed(1)}% hit rate)`:"";return(b=t.log)==null||b.call(t,`${e}: resolved ${L} module specifiers, plus ${M} ambient and ${W} from cache${X}`),(S=t.log)==null||S.call(t,`${e}: response is ${F?"incomplete":"complete"}`),(P=t.log)==null||P.call(t,`${e}: ${xc()-E}`),H;function ne(ae,Y){if(Y){let de=n.getModuleSpecifierForBestExportInfo(ae,s,g);return de&&M++,de||"failed"}let Ee=N||l.allowIncompleteCompletions&&L<m2e,fe=!Ee&&l.allowIncompleteCompletions&&z<PKe,te=Ee||fe?n.getModuleSpecifierForBestExportInfo(ae,s,g,fe):void 0;return(!Ee&&!fe||fe&&!te)&&(F=!0),L+=te?.computedWithoutCacheCount||0,W+=ae.length-(te?.computedWithoutCacheCount||0),fe&&z++,te||(N?"failed":"skipped")}}function lC(e){return e?[]:Vh}function GBt(e,t,n,i,s,l,p,g,m,x,b=!1){var S;let{previousToken:P}=Rne(s,i);if(p&&!WE(i,s,P)&&!Oqt(i,p,P,s))return;if(p===" ")return l.includeCompletionsForImportStatements&&l.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[],defaultCommitCharacters:lC(!0)}:void 0;let E=t.getCompilerOptions(),N=t.getTypeChecker(),F=l.allowIncompleteCompletions?(S=e.getIncompleteCompletionsCache)==null?void 0:S.call(e):void 0;if(F&&g===3&&P&&Ye(P)){let W=KBt(F,i,P,t,e,l,m,s);if(W)return W}else F?.clear();let M=Wne.getStringLiteralCompletions(i,s,P,E,e,t,n,l,b);if(M)return M;if(P&&VI(P.parent)&&(P.kind===83||P.kind===88||P.kind===80))return mqt(P.parent);let L=UKe(t,n,i,E,s,l,void 0,e,x,m);if(L)switch(L.kind){case 0:let W=eqt(i,e,t,E,n,L,l,x,s,b);return W?.isIncomplete&&F?.set(W),W;case 1:return h2e([...aT.getJSDocTagNameCompletions(),...FKe(i,s,N,E,l,!0)]);case 2:return h2e([...aT.getJSDocTagCompletions(),...FKe(i,s,N,E,l,!1)]);case 3:return h2e(aT.getJSDocParameterNameCompletions(L.tag));case 4:return YBt(L.keywordCompletions,L.isNewIdentifierLocation);default:return I.assertNever(L)}}function d$(e,t){var n,i;let s=DO(e.sortText,t.sortText);return s===0&&(s=DO(e.name,t.name)),s===0&&((n=e.data)!=null&&n.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(s=V5(e.data.moduleSpecifier,t.data.moduleSpecifier)),s===0?-1:s}function IKe(e){return!!e?.moduleSpecifier}function KBt(e,t,n,i,s,l,p,g){let m=e.get();if(!m)return;let x=r_(t,g),b=n.text.toLowerCase(),S=OR(t,s,i,l,p),P=AKe("continuePreviousIncompleteResponse",s,rf.createImportSpecifierResolver(t,i,s,l),i,n.getStart(),l,!1,AS(n),E=>{let N=Bi(m.entries,F=>{var M;if(!F.hasAction||!F.source||!F.data||IKe(F.data))return F;if(!aQe(F.name,b))return;let{origin:L}=I.checkDefined($Ke(F.name,F.data,i,s)),W=S.get(t.path,F.data.exportMapKey),z=W&&E.tryResolve(W,!Hu(qm(L.moduleSymbol.name)));if(z==="skipped")return F;if(!z||z==="failed"){(M=s.log)==null||M.call(s,`Unexpected failure resolving auto import for '${F.name}' from '${F.source}'`);return}let H={...L,kind:32,moduleSpecifier:z.moduleSpecifier};return F.data=JKe(H),F.source=b2e(H),F.sourceDisplay=[Rd(H.moduleSpecifier)],F});return E.skippedAny()||(m.isIncomplete=void 0),N});return m.entries=P,m.flags=(m.flags||0)|4,m.optionalReplacementSpan=jKe(x),m}function h2e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:lC(!1)}}function FKe(e,t,n,i,s,l){let p=ca(e,t);if(!ZO(p)&&!Gg(p))return[];let g=Gg(p)?p:p.parent;if(!Gg(g))return[];let m=g.parent;if(!Ss(m))return[];let x=Nf(e),b=s.includeCompletionsWithSnippetText||void 0,S=Vu(g.tags,P=>Ad(P)&&P.getEnd()<=t);return Bi(m.parameters,P=>{if(!HO(P).length){if(Ye(P.name)){let E={tabstop:1},N=P.name.text,F=VR(N,P.initializer,P.dotDotDotToken,x,!1,!1,n,i,s),M=b?VR(N,P.initializer,P.dotDotDotToken,x,!1,!0,n,i,s,E):void 0;return l&&(F=F.slice(1),M&&(M=M.slice(1))),{name:F,kind:"parameter",sortText:nf.LocationPriority,insertText:b?M:void 0,isSnippet:b}}else if(P.parent.parameters.indexOf(P)===S){let E=`param${S}`,N=MKe(E,P.name,P.initializer,P.dotDotDotToken,x,!1,n,i,s),F=b?MKe(E,P.name,P.initializer,P.dotDotDotToken,x,!0,n,i,s):void 0,M=N.join(O1(i)+"* "),L=F?.join(O1(i)+"* ");return l&&(M=M.slice(1),L&&(L=L.slice(1))),{name:M,kind:"parameter",sortText:nf.LocationPriority,insertText:b?L:void 0,isSnippet:b}}}})}function MKe(e,t,n,i,s,l,p,g,m){if(!s)return[VR(e,n,i,s,!1,l,p,g,m,{tabstop:1})];return x(e,t,n,i,{tabstop:1});function x(S,P,E,N,F){if(Nd(P)&&!N){let L={tabstop:F.tabstop},W=VR(S,E,N,s,!0,l,p,g,m,L),z=[];for(let H of P.elements){let X=b(S,H,L);if(X)z.push(...X);else{z=void 0;break}}if(z)return F.tabstop=L.tabstop,[W,...z]}return[VR(S,E,N,s,!1,l,p,g,m,F)]}function b(S,P,E){if(!P.propertyName&&Ye(P.name)||Ye(P.name)){let N=P.propertyName?r4(P.propertyName):P.name.text;if(!N)return;let F=`${S}.${N}`;return[VR(F,P.initializer,P.dotDotDotToken,s,!1,l,p,g,m,E)]}else if(P.propertyName){let N=r4(P.propertyName);return N&&x(`${S}.${N}`,P.name,P.initializer,P.dotDotDotToken,E)}}}function VR(e,t,n,i,s,l,p,g,m,x){if(l&&I.assertIsDefined(x),t&&(e=QBt(e,t)),l&&(e=I2(e)),i){let b="*";if(s)I.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),b="Object";else{if(t){let E=p.getTypeAtLocation(t.parent);if(!(E.flags&16385)){let N=t.getSourceFile(),M=H_(N,m)===0?268435456:0,L=p.typeToTypeNode(E,Br(t,Ss),M);if(L){let W=l?Mne({removeComments:!0,module:g.module,moduleResolution:g.moduleResolution,target:g.target}):Ax({removeComments:!0,module:g.module,moduleResolution:g.moduleResolution,target:g.target});qn(L,1),b=W.printNode(4,L,N)}}}l&&b==="*"&&(b=`\${${x.tabstop++}:${b}}`)}let S=!s&&n?"...":"",P=l?`\${${x.tabstop++}}`:"";return`@param {${S}${b}} ${e} ${P}`}else{let b=l?`\${${x.tabstop++}}`:"";return`@param ${e} ${b}`}}function QBt(e,t){let n=t.getText().trim();return n.includes(`
|
|
`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function XBt(e){return{name:to(e),kind:"keyword",kindModifiers:"",sortText:nf.GlobalsOrKeywords}}function YBt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:lC(t)}}function RKe(e,t,n){return{kind:4,keywordCompletions:HKe(e,t),isNewIdentifierLocation:n}}function ZBt(e){switch(e){case 156:return 8;default:I.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function jKe(e){return e?.kind===80?Lf(e):void 0}function eqt(e,t,n,i,s,l,p,g,m,x){let{symbols:b,contextToken:S,completionKind:P,isInSnippetScope:E,isNewIdentifierLocation:N,location:F,propertyAccessToConvert:M,keywordFilters:L,symbolToOriginInfoMap:W,recommendedCompletion:z,isJsxInitializer:H,isTypeOnlyLocation:X,isJsxIdentifierExpected:ne,isRightOfOpenTag:ae,isRightOfDotOrQuestionDot:Y,importStatementCompletion:Ee,insideJsDocTagTypeExpression:fe,symbolToSortTextMap:te,hasUnresolvedAutoImports:de,defaultCommitCharacters:me}=l,ve=l.literals,Pe=n.getTypeChecker();if(j5(e.scriptKind)===1){let ge=rqt(F,e);if(ge)return ge}let Oe=Br(S,RN);if(Oe&&(Ohe(S)||T2(S,Oe.expression))){let ge=LU(Pe,Oe.parent.clauses);ve=ve.filter(Me=>!ge.hasValue(Me)),b.forEach((Me,Te)=>{if(Me.valueDeclaration&&L1(Me.valueDeclaration)){let gt=Pe.getConstantValue(Me.valueDeclaration);gt!==void 0&&ge.hasValue(gt)&&(W[Te]={kind:256})}})}let ie=pp(),Ne=LKe(e,i);if(Ne&&!N&&(!b||b.length===0)&&L===0)return;let it=x2e(b,ie,void 0,S,F,m,e,t,n,Po(i),s,P,p,i,g,X,M,ne,H,Ee,z,W,te,ne,ae,x);if(L!==0)for(let ge of HKe(L,!fe&&Nf(e)))(X&&L3(dk(ge.name))||!X&&Bqt(ge.name)||!it.has(ge.name))&&(it.add(ge.name),Mg(ie,ge,d$,void 0,!0));for(let ge of kqt(S,m))it.has(ge.name)||(it.add(ge.name),Mg(ie,ge,d$,void 0,!0));for(let ge of ve){let Me=iqt(e,p,ge);it.add(Me.name),Mg(ie,Me,d$,void 0,!0)}Ne||nqt(e,F.pos,it,Po(i),ie);let ze;if(p.includeCompletionsWithInsertText&&S&&!ae&&!Y&&(ze=Br(S,t3))){let ge=BKe(ze,e,p,i,t,n,g);ge&&ie.push(ge.entry)}return{flags:l.flags,isGlobalCompletion:E,isIncomplete:p.allowIncompleteCompletions&&de?!0:void 0,isMemberCompletion:tqt(P),isNewIdentifierLocation:N,optionalReplacementSpan:jKe(F),entries:ie,defaultCommitCharacters:me??lC(N)}}function LKe(e,t){return!Nf(e)||!!F4(e,t)}function BKe(e,t,n,i,s,l,p){let g=e.clauses,m=l.getTypeChecker(),x=m.getTypeAtLocation(e.parent.expression);if(x&&x.isUnion()&&sn(x.types,b=>b.isLiteral())){let b=LU(m,g),S=Po(i),P=H_(t,n),E=rf.createImportAdder(t,l,n,s),N=[];for(let X of x.types)if(X.flags&1024){I.assert(X.symbol,"An enum member type should have a symbol"),I.assert(X.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let ne=X.symbol.valueDeclaration&&m.getConstantValue(X.symbol.valueDeclaration);if(ne!==void 0){if(b.hasValue(ne))continue;b.addValue(ne)}let ae=rf.typeToAutoImportableTypeNode(m,E,X,e,S);if(!ae)return;let Y=Ine(ae,S,P);if(!Y)return;N.push(Y)}else if(!b.hasValue(X.value))switch(typeof X.value){case"object":N.push(X.value.negative?j.createPrefixUnaryExpression(41,j.createBigIntLiteral({negative:!1,base10Value:X.value.base10Value})):j.createBigIntLiteral(X.value));break;case"number":N.push(X.value<0?j.createPrefixUnaryExpression(41,j.createNumericLiteral(-X.value)):j.createNumericLiteral(X.value));break;case"string":N.push(j.createStringLiteral(X.value,P===0));break}if(N.length===0)return;let F=Dt(N,X=>j.createCaseClause(X,[])),M=B0(s,p?.options),L=Mne({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:DR(M)}),W=p?X=>L.printAndFormatNode(4,X,t,p):X=>L.printNode(4,X,t),z=Dt(F,(X,ne)=>n.includeCompletionsWithSnippetText?`${W(X)}$${ne+1}`:`${W(X)}`).join(M);return{entry:{name:`${L.printNode(4,F[0],t)} ...`,kind:"",sortText:nf.GlobalsOrKeywords,insertText:z,hasAction:E.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:E}}}function Ine(e,t,n){switch(e.kind){case 183:let i=e.typeName;return Fne(i,t,n);case 199:let s=Ine(e.objectType,t,n),l=Ine(e.indexType,t,n);return s&&l&&j.createElementAccessExpression(s,l);case 201:let p=e.literal;switch(p.kind){case 11:return j.createStringLiteral(p.text,n===0);case 9:return j.createNumericLiteral(p.text,p.numericLiteralFlags)}return;case 196:let g=Ine(e.type,t,n);return g&&(Ye(g)?g:j.createParenthesizedExpression(g));case 186:return Fne(e.exprName,t,n);case 205:I.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Fne(e,t,n){if(Ye(e))return e;let i=ka(e.right.escapedText);return JX(i,t)?j.createPropertyAccessExpression(Fne(e.left,t,n),i):j.createElementAccessExpression(Fne(e.left,t,n),j.createStringLiteral(i,n===0))}function tqt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function rqt(e,t){let n=Br(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(n){let i=!!gc(n,32,t),p=n.parent.openingElement.tagName.getText(t)+(i?"":">"),g=Lf(n.tagName),m={name:p,kind:"class",kindModifiers:void 0,sortText:nf.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:g,entries:[m],defaultCommitCharacters:lC(!1)}}}function nqt(e,t,n,i,s){rne(e).forEach((l,p)=>{if(l===t)return;let g=ka(p);!n.has(g)&&m_(g,i)&&(n.add(g),Mg(s,{name:g,kind:"warning",kindModifiers:"",sortText:nf.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},d$))})}function y2e(e,t,n){return typeof n=="object"?A2(n)+"n":Ua(n)?U3(e,t,n):JSON.stringify(n)}function iqt(e,t,n){return{name:y2e(e,t,n),kind:"string",kindModifiers:"",sortText:nf.LocationPriority,commitCharacters:[]}}function aqt(e,t,n,i,s,l,p,g,m,x,b,S,P,E,N,F,M,L,W,z,H,X,ne,ae){var Y,Ee;let fe,te,de=Fte(n,l),me,ve,Pe=b2e(S),Oe,ie,Ne,it=m.getTypeChecker(),ze=S&&VBt(S),ge=S&&zBt(S)||b;if(S&&JBt(S))fe=b?`this${ze?"?.":""}[${v2e(p,W,x)}]`:`this${ze?"?.":"."}${x}`;else if((ge||ze)&&E){fe=ge?b?`[${v2e(p,W,x)}]`:`[${x}]`:x,(ze||E.questionDotToken)&&(fe=`?.${fe}`);let Tt=gc(E,25,p)||gc(E,29,p);if(!Tt)return;let xe=La(x,E.name.text)?E.name.end:Tt.end;de=Ul(Tt.getStart(p),xe)}if(N&&(fe===void 0&&(fe=x),fe=`{${fe}}`,typeof N!="boolean"&&(de=Lf(N,p))),S&&$Bt(S)&&E){fe===void 0&&(fe=x);let Tt=Ou(E.pos,p),xe="";Tt&&DU(Tt.end,Tt.parent,p)&&(xe=";"),xe+=`(await ${E.expression.getText()})`,fe=b?`${xe}${fe}`:`${xe}${ze?"?.":"."}${fe}`;let pe=_i(E.parent,kx)?E.parent:E.expression;de=Ul(pe.getStart(p),E.end)}if(r8(S)&&(Oe=[Rd(S.moduleSpecifier)],F&&({insertText:fe,replacementSpan:de}=_qt(x,F,S,M,p,m,W),ve=W.includeCompletionsWithSnippetText?!0:void 0)),S?.kind===64&&(ie=!0),z===0&&i&&((Y=Ou(i.pos,p,i))==null?void 0:Y.kind)!==28&&(wl(i.parent.parent)||mm(i.parent.parent)||v_(i.parent.parent)||Lv(i.parent)||((Ee=Br(i.parent,xu))==null?void 0:Ee.getLastToken(p))===i||Jp(i.parent)&&$s(p,i.getEnd()).line!==$s(p,l).line)&&(Pe="ObjectLiteralMemberWithComma/",ie=!0),W.includeCompletionsWithClassMemberSnippets&&W.includeCompletionsWithInsertText&&z===3&&oqt(e,s,p)){let Tt,xe=qKe(g,m,L,W,x,e,s,l,i,H);if(xe)({insertText:fe,filterText:te,isSnippet:ve,importAdder:Tt}=xe),(Tt?.hasFixes()||xe.eraseRange)&&(ie=!0,Pe="ClassMemberSnippet/");else return}if(S&&NKe(S)&&({insertText:fe,isSnippet:ve,labelDetails:Ne}=S,W.useLabelDetailsInCompletionEntries||(x=x+Ne.detail,Ne=void 0),Pe="ObjectLiteralMethodSnippet/",t=nf.SortBelow(t)),X&&!ne&&W.includeCompletionsWithSnippetText&&W.jsxAttributeCompletionStyle&&W.jsxAttributeCompletionStyle!=="none"&&!(Jh(s.parent)&&s.parent.initializer)){let Tt=W.jsxAttributeCompletionStyle==="braces",xe=it.getTypeOfSymbolAtLocation(e,s);W.jsxAttributeCompletionStyle==="auto"&&!(xe.flags&528)&&!(xe.flags&1048576&&Ir(xe.types,nt=>!!(nt.flags&528)))&&(xe.flags&402653316||xe.flags&1048576&&sn(xe.types,nt=>!!(nt.flags&402686084||obe(nt)))?(fe=`${I2(x)}=${U3(p,W,"$1")}`,ve=!0):Tt=!0),Tt&&(fe=`${I2(x)}={$1}`,ve=!0)}if(fe!==void 0&&!W.includeCompletionsWithInsertText)return;(_$(S)||r8(S))&&(me=JKe(S),ie=!F);let Me=Br(s,DJ);if(Me){let Tt=Po(g.getCompilationSettings());if(!m_(x,Tt))fe=v2e(p,W,x),Me.kind===275&&(gp.setText(p.text),gp.resetTokenState(l),gp.scan()===130&&gp.scan()===80||(fe+=" as "+sqt(x,Tt)));else if(Me.kind===275){let xe=dk(x);xe&&(xe===135||jQ(xe))&&(fe=`${x} as ${x}_`)}}let Te=$1.getSymbolKind(it,e,s),gt=Te==="warning"||Te==="string"?[]:void 0;return{name:x,kind:Te,kindModifiers:$1.getSymbolModifiers(it,e),sortText:t,source:Pe,hasAction:ie?!0:void 0,isRecommended:dqt(e,P,it)||void 0,insertText:fe,filterText:te,replacementSpan:de,sourceDisplay:Oe,labelDetails:Ne,isSnippet:ve,isPackageJsonImport:UBt(S)||void 0,isImportStatementCompletion:!!F||void 0,data:me,commitCharacters:gt,...ae?{symbol:e}:void 0}}function sqt(e,t){let n=!1,i="",s;for(let l=0;l<e.length;l+=s!==void 0&&s>=65536?2:1)s=e.codePointAt(l),s!==void 0&&(l===0?Cy(s,t):T0(s,t))?(n&&(i+="_"),i+=String.fromCodePoint(s),n=!1):n=!0;return n&&(i+="_"),i||"_"}function oqt(e,t,n){return jn(t)?!1:!!(e.flags&106500)&&(Ri(t)||t.parent&&t.parent.parent&&ou(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&Ri(t.parent.parent)||t.parent&&qN(t)&&Ri(t.parent))}function qKe(e,t,n,i,s,l,p,g,m,x){let b=Br(p,Ri);if(!b)return;let S,P=s,E=s,N=t.getTypeChecker(),F=p.getSourceFile(),M=Mne({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:DR(B0(e,x?.options))}),L=rf.createImportAdder(F,t,i,e),W;if(i.includeCompletionsWithSnippetText){S=!0;let Ee=j.createEmptyStatement();W=j.createBlock([Ee],!0),iY(Ee,{kind:0,order:0})}else W=j.createBlock([],!0);let z=0,{modifiers:H,range:X,decorators:ne}=cqt(m,F,g),ae=H&64&&b.modifierFlagsCache&64,Y=[];if(rf.addNewNodeForMemberSymbol(l,b,F,{program:t,host:e},i,L,Ee=>{let fe=0;ae&&(fe|=64),ou(Ee)&&N.getMemberOverrideModifierStatus(b,Ee,l)===1&&(fe|=16),Y.length||(z=Ee.modifierFlagsCache|fe),Ee=j.replaceModifiers(Ee,z),Y.push(Ee)},W,rf.PreserveOptionalFlags.Property,!!ae),Y.length){let Ee=l.flags&8192,fe=z|16|1;Ee?fe|=1024:fe|=136;let te=H&fe;if(H&~fe)return;if(z&4&&te&1&&(z&=-5),te!==0&&!(te&1)&&(z&=-2),z|=te,Y=Y.map(me=>j.replaceModifiers(me,z)),ne?.length){let me=Y[Y.length-1];U2(me)&&(Y[Y.length-1]=j.replaceDecoratorsAndModifiers(me,ne.concat(u2(me)||[])))}let de=131073;x?P=M.printAndFormatSnippetList(de,j.createNodeArray(Y),F,x):P=M.printSnippetList(de,j.createNodeArray(Y),F)}return{insertText:P,filterText:E,isSnippet:S,importAdder:L,eraseRange:X}}function cqt(e,t,n){if(!e||$s(t,n).line>$s(t,e.getEnd()).line)return{modifiers:0};let i=0,s,l,p={pos:n,end:n};if(is(e.parent)&&(l=lqt(e))){e.parent.modifiers&&(i|=Ih(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(qu)||[],p.pos=Math.min(...e.parent.modifiers.map(m=>m.getStart(t))));let g=rE(l);i&g||(i|=g,p.pos=Math.min(p.pos,e.getStart(t))),e.parent.name!==e&&(p.end=e.parent.name.getStart(t))}return{modifiers:i,decorators:s,range:p.pos<p.end?p:void 0}}function lqt(e){if(oo(e))return e.kind;if(Ye(e)){let t=mk(e);if(t&&sx(t))return t}}function uqt(e,t,n,i,s,l,p,g){let m=p.includeCompletionsWithSnippetText||void 0,x=t,b=n.getSourceFile(),S=pqt(e,n,b,i,s,p);if(!S)return;let P=Mne({removeComments:!0,module:l.module,moduleResolution:l.moduleResolution,target:l.target,omitTrailingSemicolon:!1,newLine:DR(B0(s,g?.options))});g?x=P.printAndFormatSnippetList(80,j.createNodeArray([S],!0),b,g):x=P.printSnippetList(80,j.createNodeArray([S],!0),b);let E=Ax({removeComments:!0,module:l.module,moduleResolution:l.moduleResolution,target:l.target,omitTrailingSemicolon:!0}),N=j.createMethodSignature(void 0,"",S.questionToken,S.typeParameters,S.parameters,S.type),F={detail:E.printNode(4,N,b)};return{isSnippet:m,insertText:x,labelDetails:F}}function pqt(e,t,n,i,s,l){let p=e.getDeclarations();if(!(p&&p.length))return;let g=i.getTypeChecker(),m=p[0],x=tc(ls(m),!1),b=g.getWidenedType(g.getTypeOfSymbolAtLocation(e,t)),P=33554432|(H_(n,l)===0?268435456:0);switch(m.kind){case 171:case 172:case 173:case 174:{let E=b.flags&1048576&&b.types.length<10?g.getUnionType(b.types,2):b;if(E.flags&1048576){let W=Cn(E.types,z=>g.getSignaturesOfType(z,0).length>0);if(W.length===1)E=W[0];else return}if(g.getSignaturesOfType(E,0).length!==1)return;let F=g.typeToTypeNode(E,t,P,void 0,rf.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!F||!Iy(F))return;let M;if(l.includeCompletionsWithSnippetText){let W=j.createEmptyStatement();M=j.createBlock([W],!0),iY(W,{kind:0,order:0})}else M=j.createBlock([],!0);let L=F.parameters.map(W=>j.createParameterDeclaration(void 0,W.dotDotDotToken,W.name,void 0,void 0,W.initializer));return j.createMethodDeclaration(void 0,void 0,x,void 0,void 0,L,void 0,M)}default:return}}function Mne(e){let t,n=Ln.createWriter(O1(e)),i=Ax(e,n),s={...n,write:P=>l(P,()=>n.write(P)),nonEscapingWrite:n.write,writeLiteral:P=>l(P,()=>n.writeLiteral(P)),writeStringLiteral:P=>l(P,()=>n.writeStringLiteral(P)),writeSymbol:(P,E)=>l(P,()=>n.writeSymbol(P,E)),writeParameter:P=>l(P,()=>n.writeParameter(P)),writeComment:P=>l(P,()=>n.writeComment(P)),writeProperty:P=>l(P,()=>n.writeProperty(P))};return{printSnippetList:p,printAndFormatSnippetList:m,printNode:x,printAndFormatNode:S};function l(P,E){let N=I2(P);if(N!==P){let F=n.getTextPos();E();let M=n.getTextPos();t=Zr(t||(t=[]),{newText:N,span:{start:F,length:M-F}})}else E()}function p(P,E,N){let F=g(P,E,N);return t?Ln.applyChanges(F,t):F}function g(P,E,N){return t=void 0,s.clear(),i.writeList(P,E,N,s),s.getText()}function m(P,E,N,F){let M={text:g(P,E,N),getLineAndCharacterOfPosition(H){return $s(this,H)}},L=jU(F,N),W=li(E,H=>{let X=Ln.assignPositionsToNode(H);return Su.formatNodeGivenIndentation(X,M,N.languageVariant,0,0,{...F,options:L})}),z=t?ff(ya(W,t),(H,X)=>$b(H.span,X.span)):W;return Ln.applyChanges(M.text,z)}function x(P,E,N){let F=b(P,E,N);return t?Ln.applyChanges(F,t):F}function b(P,E,N){return t=void 0,s.clear(),i.writeNode(P,E,N,s),s.getText()}function S(P,E,N,F){let M={text:b(P,E,N),getLineAndCharacterOfPosition(X){return $s(this,X)}},L=jU(F,N),W=Ln.assignPositionsToNode(E),z=Su.formatNodeGivenIndentation(W,M,N.languageVariant,0,0,{...F,options:L}),H=t?ff(ya(z,t),(X,ne)=>$b(X.span,ne.span)):z;return Ln.applyChanges(M.text,H)}}function JKe(e){let t=e.fileName?void 0:qm(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return r8(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:qm(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function fqt(e,t,n){let i=e.exportName==="default",s=!!e.isPackageJsonImport;return IKe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}}function _qt(e,t,n,i,s,l,p){let g=t.replacementSpan,m=I2(U3(s,p,n.moduleSpecifier)),x=n.isDefaultExport?1:n.exportName==="export="?2:0,b=p.includeCompletionsWithSnippetText?"$1":"",S=rf.getImportKind(s,x,l,!0),P=t.couldBeTypeOnlyImportSpecifier,E=t.isTopLevelTypeOnly?` ${to(156)} `:" ",N=P?`${to(156)} `:"",F=i?";":"";switch(S){case 3:return{replacementSpan:g,insertText:`import${E}${I2(e)}${b} = require(${m})${F}`};case 1:return{replacementSpan:g,insertText:`import${E}${I2(e)}${b} from ${m}${F}`};case 2:return{replacementSpan:g,insertText:`import${E}* as ${I2(e)} from ${m}${F}`};case 0:return{replacementSpan:g,insertText:`import${E}{ ${N}${I2(e)}${b} } from ${m}${F}`}}}function v2e(e,t,n){return/^\d+$/.test(n)?n:U3(e,t,n)}function dqt(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function b2e(e){if(_$(e))return qm(e.moduleSymbol.name);if(r8(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function x2e(e,t,n,i,s,l,p,g,m,x,b,S,P,E,N,F,M,L,W,z,H,X,ne,ae,Y,Ee=!1){let fe=xc(),te=Mqt(i,s),de=kR(p),me=m.getTypeChecker(),ve=new Map;for(let ie=0;ie<e.length;ie++){let Ne=e[ie],it=X?.[ie],ze=jne(Ne,x,it,S,!!L);if(!ze||ve.get(ze.name)&&(!it||!NKe(it))||S===1&&ne&&!Pe(Ne,ne)||!F&&jn(p)&&Oe(Ne))continue;let{name:ge,needsConvertPropertyAccess:Me}=ze,Te=ne?.[co(Ne)]??nf.LocationPriority,gt=jqt(Ne,me)?nf.Deprecated(Te):Te,Tt=aqt(Ne,gt,n,i,s,l,p,g,m,ge,Me,it,H,M,W,z,de,E,P,S,N,ae,Y,Ee);if(!Tt)continue;let xe=(!it||OKe(it))&&!(Ne.parent===void 0&&!Pt(Ne.declarations,nt=>nt.getSourceFile()===s.getSourceFile()));ve.set(ge,xe),Mg(t,Tt,d$,void 0,!0)}return b("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(xc()-fe)),{has:ie=>ve.has(ie),add:ie=>ve.set(ie,!0)};function Pe(ie,Ne){var it;let ze=ie.flags;if(!ba(s)){if(Gc(s.parent))return!0;if(_i(te,Ui)&&ie.valueDeclaration===te)return!1;let ge=ie.valueDeclaration??((it=ie.declarations)==null?void 0:it[0]);if(te&&ge){if(Da(te)&&Da(ge)){let Te=te.parent.parameters;if(ge.pos>=te.pos&&ge.pos<Te.end)return!1}else if(Hc(te)&&Hc(ge)){if(te===ge&&i?.kind===96)return!1;if(Rqt(i)&&!qk(te.parent)){let Te=te.parent.typeParameters;if(Te&&ge.pos>=te.pos&&ge.pos<Te.end)return!1}}}let Me=Tp(ie,me);if(p.externalModuleIndicator&&!E.allowUmdGlobalAccess&&Ne[co(ie)]===nf.GlobalsOrKeywords&&(Ne[co(Me)]===nf.AutoImportSuggestions||Ne[co(Me)]===nf.LocationPriority))return!1;if(ze|=bN(Me),iU(s))return!!(ze&1920);if(F)return C2e(ie,me)}return!!(ze&111551)}function Oe(ie){var Ne;let it=bN(Tp(ie,me));return!(it&111551)&&(!jn((Ne=ie.declarations)==null?void 0:Ne[0])||!!(it&788968))}}function mqt(e){let t=gqt(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:lC(!1)}}function gqt(e){let t=[],n=new Map,i=e;for(;i&&!Ss(i);){if(Cx(i)){let s=i.label.text;n.has(s)||(n.set(s,!0),t.push({name:s,kindModifiers:"",kind:"label",sortText:nf.LocationPriority}))}i=i.parent}return t}function zKe(e,t,n,i,s,l,p){if(s.source==="SwitchCases/")return{type:"cases"};if(s.data){let z=$Ke(s.name,s.data,e,l);if(z){let{contextToken:H,previousToken:X}=Rne(i,n);return{type:"symbol",symbol:z.symbol,location:r_(n,i),previousToken:X,contextToken:H,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:z.origin}}}let g=e.getCompilerOptions(),m=UKe(e,t,n,g,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},s,l,void 0);if(!m)return{type:"none"};if(m.kind!==0)return{type:"request",request:m};let{symbols:x,literals:b,location:S,completionKind:P,symbolToOriginInfoMap:E,contextToken:N,previousToken:F,isJsxInitializer:M,isTypeOnlyLocation:L}=m,W=Ir(b,z=>y2e(n,p,z)===s.name);return W!==void 0?{type:"literal",literal:W}:jr(x,(z,H)=>{let X=E[H],ne=jne(z,Po(g),X,P,m.isJsxIdentifierExpected);return ne&&ne.name===s.name&&(s.source==="ClassMemberSnippet/"&&z.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&z.flags&8196||b2e(X)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:z,location:S,origin:X,contextToken:N,previousToken:F,isJsxInitializer:M,isTypeOnlyLocation:L}:void 0})||{type:"none"}}function hqt(e,t,n,i,s,l,p,g,m){let x=e.getTypeChecker(),b=e.getCompilerOptions(),{name:S,source:P,data:E}=s,{previousToken:N,contextToken:F}=Rne(i,n);if(WE(n,i,N))return Wne.getStringLiteralCompletionDetails(S,n,i,N,e,l,m,g);let M=zKe(e,t,n,i,s,l,g);switch(M.type){case"request":{let{request:L}=M;switch(L.kind){case 1:return aT.getJSDocTagNameCompletionDetails(S);case 2:return aT.getJSDocTagCompletionDetails(S);case 3:return aT.getJSDocParameterNameCompletionDetails(S);case 4:return Pt(L.keywordCompletions,W=>W.name===S)?S2e(S,"keyword",5):void 0;default:return I.assertNever(L)}}case"symbol":{let{symbol:L,location:W,contextToken:z,origin:H,previousToken:X}=M,{codeActions:ne,sourceDisplay:ae}=yqt(S,W,z,H,L,e,l,b,n,i,X,p,g,E,P,m),Y=g2e(H)?H.symbolName:L.name;return T2e(L,Y,x,n,W,m,ne,ae)}case"literal":{let{literal:L}=M;return S2e(y2e(n,g,L),"string",typeof L=="string"?8:7)}case"cases":{let L=BKe(F.parent,n,g,e.getCompilerOptions(),l,e,void 0);if(L?.importAdder.hasFixes()){let{entry:W,importAdder:z}=L,H=Ln.ChangeTracker.with({host:l,formatContext:p,preferences:g},z.writeFixes);return{name:W.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:H,description:ew([y.Includes_imports_of_types_referenced_by_0,S])}]}}return{name:S,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return VKe().some(L=>L.name===S)?S2e(S,"keyword",5):void 0;default:I.assertNever(M)}}function S2e(e,t,n){return m$(e,"",t,[b_(e,n)])}function T2e(e,t,n,i,s,l,p,g){let{displayParts:m,documentation:x,symbolKind:b,tags:S}=n.runWithCancellationToken(l,P=>$1.getSymbolDisplayPartsDocumentationAndSymbolKind(P,e,i,s,s,7));return m$(t,$1.getSymbolModifiers(n,e),b,m,x,S,p,g)}function m$(e,t,n,i,s,l,p,g){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:l,codeActions:p,source:g,sourceDisplay:g}}function yqt(e,t,n,i,s,l,p,g,m,x,b,S,P,E,N,F){if(E?.moduleSpecifier&&b&&eQe(n||b,m).replacementSpan)return{codeActions:void 0,sourceDisplay:[Rd(E.moduleSpecifier)]};if(N==="ClassMemberSnippet/"){let{importAdder:ne,eraseRange:ae}=qKe(p,l,g,P,e,s,t,x,n,S);if(ne?.hasFixes()||ae)return{sourceDisplay:void 0,codeActions:[{changes:Ln.ChangeTracker.with({host:p,formatContext:S,preferences:P},Ee=>{ne&&ne.writeFixes(Ee),ae&&Ee.deleteRange(m,ae)}),description:ne?.hasFixes()?ew([y.Includes_imports_of_types_referenced_by_0,e]):ew([y.Update_modifiers_of_0,e])}]}}if(OKe(i)){let ne=rf.getPromoteTypeOnlyCompletionAction(m,i.declaration.name,l,p,S,P);return I.assertIsDefined(ne,"Expected to have a code action for promoting type-only alias"),{codeActions:[ne],sourceDisplay:void 0}}if(N==="ObjectLiteralMemberWithComma/"&&n){let ne=Ln.ChangeTracker.with({host:p,formatContext:S,preferences:P},ae=>ae.insertText(m,n.end,","));if(ne)return{sourceDisplay:void 0,codeActions:[{changes:ne,description:ew([y.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(_$(i)||r8(i)))return{codeActions:void 0,sourceDisplay:void 0};let M=i.isFromPackageJson?p.getPackageJsonAutoImportProvider().getTypeChecker():l.getTypeChecker(),{moduleSymbol:L}=i,W=M.getMergedSymbol(Tp(s.exportSymbol||s,M)),z=n?.kind===30&&Qp(n.parent),{moduleSpecifier:H,codeAction:X}=rf.getImportCompletionAction(W,L,E?.exportMapKey,m,e,z,p,l,S,b&&Ye(b)?b.getStart(m):x,P,F);return I.assert(!E?.moduleSpecifier||H===E.moduleSpecifier),{sourceDisplay:[Rd(H)],codeActions:[X]}}function vqt(e,t,n,i,s,l,p){let g=zKe(e,t,n,i,s,l,p);return g.type==="symbol"?g.symbol:void 0}var WKe=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(WKe||{});function bqt(e,t,n){return jr(t&&(t.isUnion()?t.types:[t]),i=>{let s=i&&i.symbol;return s&&s.flags&424&&!pge(s)?w2e(s,e,n):void 0})}function xqt(e,t,n,i){let{parent:s}=e;switch(e.kind){case 80:return PU(e,i);case 64:switch(s.kind){case 260:return i.getContextualType(s.initializer);case 226:return i.getTypeAtLocation(s.left);case 291:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:let l=_i(s,RN);return l?ire(l,i):void 0;case 19:return MN(s)&&!qh(s.parent)&&!qS(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:let p=ZR.getArgumentInfoForCompletions(e,t,n,i);return p?i.getContextualTypeForArgumentAtIndex(p.invocation,p.argumentIndex):EU(e.kind)&&Vn(s)&&EU(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function w2e(e,t,n){let i=n.getAccessibleSymbolChain(e,t,-1,!1);return i?ho(i):e.parent&&(Sqt(e.parent)?e:w2e(e.parent,t,n))}function Sqt(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===307))}function UKe(e,t,n,i,s,l,p,g,m,x){let b=e.getTypeChecker(),S=LKe(n,i),P=xc(),E=ca(n,s);t("getCompletionData: Get current token: "+(xc()-P)),P=xc();let N=q1(n,s,E);t("getCompletionData: Is inside comment: "+(xc()-P));let F=!1,M=!1,L=!1;if(N){if(ibe(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{let kt=Hm(s,n);if(!/[^*|\s(/)]/.test(n.text.substring(kt,s)))return{kind:2}}}let Le=Cqt(E,s);if(Le){if(Le.tagName.pos<=s&&s<=Le.tagName.end)return{kind:1};if(zh(Le))M=!0;else{let kt=Or(Le);if(kt&&(E=ca(n,s),(!E||!Ny(E)&&(E.parent.kind!==348||E.parent.name!==E))&&(F=rr(kt))),!F&&Ad(Le)&&(Sl(Le.name)||Le.name.pos<=s&&s<=Le.name.end))return{kind:3,tag:Le}}}if(!F&&!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}P=xc();let W=!F&&!M&&Nf(n),z=Rne(s,n),H=z.previousToken,X=z.contextToken;t("getCompletionData: Get previous token: "+(xc()-P));let ne=E,ae,Y=!1,Ee=!1,fe=!1,te=!1,de=!1,me=!1,ve,Pe=r_(n,s),Oe=0,ie=!1,Ne=0,it;if(X){let Le=eQe(X,n);if(Le.keywordCompletion){if(Le.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[XBt(Le.keywordCompletion)],isNewIdentifierLocation:Le.isNewIdentifierLocation};Oe=ZBt(Le.keywordCompletion)}if(Le.replacementSpan&&l.includeCompletionsForImportStatements&&l.includeCompletionsWithInsertText&&(Ne|=2,ve=Le,ie=Le.isNewIdentifierLocation),!Le.replacementSpan&&ks(X))return t("Returning an empty list because completion was requested in an invalid position."),Oe?RKe(Oe,W,Vr().isNewIdentifierLocation):void 0;let kt=X.parent;if(X.kind===25||X.kind===29)switch(Y=X.kind===25,Ee=X.kind===29,kt.kind){case 211:ae=kt,ne=ae.expression;let dr=xN(ae);if(Sl(dr)||(Ls(ne)||Ss(ne))&&ne.end===X.pos&&ne.getChildCount(n)&&ao(ne.getChildren(n)).kind!==22)return;break;case 166:ne=kt.left;break;case 267:ne=kt.name;break;case 205:ne=kt;break;case 236:ne=kt.getFirstToken(n),I.assert(ne.kind===102||ne.kind===105);break;default:return}else if(!ve){if(kt&&kt.kind===211&&(X=kt,kt=kt.parent),E.parent===Pe)switch(E.kind){case 32:(E.parent.kind===284||E.parent.kind===286)&&(Pe=E);break;case 44:E.parent.kind===285&&(Pe=E);break}switch(kt.kind){case 287:X.kind===44&&(te=!0,Pe=X);break;case 226:if(!ZKe(kt))break;case 285:case 284:case 286:me=!0,X.kind===30&&(fe=!0,Pe=X);break;case 294:case 293:(H.kind===20||H.kind===80&&H.parent.kind===291)&&(me=!0);break;case 291:if(kt.initializer===H&&H.end<s){me=!0;break}switch(H.kind){case 64:de=!0;break;case 80:me=!0,kt!==H.parent&&!kt.initializer&&gc(kt,64,n)&&(de=H)}break}}}let ze=xc(),ge=5,Me=!1,Te=[],gt,Tt=[],xe=[],nt=new Set,pe=Gi(),He=im(Le=>YS(Le?g.getPackageJsonAutoImportProvider():e,g));if(Y||Ee)nn();else if(fe)Te=b.getJsxIntrinsicTagNamesAt(Pe),I.assertEachIsDefined(Te,"getJsxIntrinsicTagNames() should all be defined"),ta(),ge=1,Oe=0;else if(te){let Le=X.parent.parent.openingElement.tagName,kt=b.getSymbolAtLocation(Le);kt&&(Te=[kt]),ge=1,Oe=0}else if(!ta())return Oe?RKe(Oe,W,ie):void 0;t("getCompletionData: Semantic work: "+(xc()-ze));let qe=H&&xqt(H,s,n,b),st=!_i(H,Ho)&&!me?Bi(qe&&(qe.isUnion()?qe.types:[qe]),Le=>Le.isLiteral()&&!(Le.flags&1024)?Le.value:void 0):[],jt=H&&qe&&bqt(H,qe,b);return{kind:0,symbols:Te,completionKind:ge,isInSnippetScope:L,propertyAccessToConvert:ae,isNewIdentifierLocation:ie,location:Pe,keywordFilters:Oe,literals:st,symbolToOriginInfoMap:Tt,recommendedCompletion:jt,previousToken:H,contextToken:X,isJsxInitializer:de,insideJsDocTagTypeExpression:F,symbolToSortTextMap:xe,isTypeOnlyLocation:pe,isJsxIdentifierExpected:me,isRightOfOpenTag:fe,isRightOfDotOrQuestionDot:Y||Ee,importStatementCompletion:ve,hasUnresolvedAutoImports:Me,flags:Ne,defaultCommitCharacters:it};function ar(Le){switch(Le.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!Le.constraint;default:return!1}}function Or(Le){if(ar(Le)){let kt=Um(Le)?Le.constraint:Le.typeExpression;return kt&&kt.kind===309?kt:void 0}if(DE(Le)||Cz(Le))return Le.class}function nn(){ge=2;let Le=C0(ne),kt=Le&&!ne.isTypeOf||Eh(ne.parent)||dR(X,n,b),dr=iU(ne);if(Of(ne)||Le||ai(ne)){let kn=cu(ne.parent);kn&&(ie=!0,it=[]);let Kr=b.getSymbolAtLocation(ne);if(Kr&&(Kr=Tp(Kr,b),Kr.flags&1920)){let yn=b.getExportsOfModule(Kr);I.assertEachIsDefined(yn,"getExportsOfModule() should all be defined");let yt=er=>b.isValidPropertyAccess(Le?ne:ne.parent,er.name),Bt=er=>C2e(er,b),cr=kn?er=>{var zr;return!!(er.flags&1920)&&!((zr=er.declarations)!=null&&zr.every(Pr=>Pr.parent===ne.parent))}:dr?er=>Bt(er)||yt(er):kt||F?Bt:yt;for(let er of yn)cr(er)&&Te.push(er);if(!kt&&!F&&Kr.declarations&&Kr.declarations.some(er=>er.kind!==307&&er.kind!==267&&er.kind!==266)){let er=b.getTypeOfSymbolAtLocation(Kr,ne).getNonOptionalType(),zr=!1;if(er.isNullableType()){let Pr=Y&&!Ee&&l.includeAutomaticOptionalChainCompletions!==!1;(Pr||Ee)&&(er=er.getNonNullableType(),Pr&&(zr=!0))}Ct(er,!!(ne.flags&65536),zr)}return}}if(!kt||eE(ne)){b.tryGetThisTypeAt(ne,!1);let kn=b.getTypeAtLocation(ne).getNonOptionalType();if(kt)Ct(kn.getNonNullableType(),!1,!1);else{let Kr=!1;if(kn.isNullableType()){let yn=Y&&!Ee&&l.includeAutomaticOptionalChainCompletions!==!1;(yn||Ee)&&(kn=kn.getNonNullableType(),yn&&(Kr=!0))}Ct(kn,!!(ne.flags&65536),Kr)}}}function Ct(Le,kt,dr){Le.getStringIndexType()&&(ie=!0,it=[]),Ee&&Pt(Le.getCallSignatures())&&(ie=!0,it??(it=Vh));let kn=ne.kind===205?ne:ne.parent;if(S)for(let Kr of Le.getApparentProperties())b.isValidPropertyAccessForCompletions(kn,Le,Kr)&&pr(Kr,!1,dr);else Te.push(...Cn(Jne(Le,b),Kr=>b.isValidPropertyAccessForCompletions(kn,Le,Kr)));if(kt&&l.includeCompletionsWithInsertText){let Kr=b.getPromisedTypeOfPromise(Le);if(Kr)for(let yn of Kr.getApparentProperties())b.isValidPropertyAccessForCompletions(kn,Kr,yn)&&pr(yn,!0,dr)}}function pr(Le,kt,dr){var kn;let Kr=jr(Le.declarations,cr=>_i(ls(cr),po));if(Kr){let cr=vn(Kr.expression),er=cr&&b.getSymbolAtLocation(cr),zr=er&&w2e(er,X,b),Pr=zr&&co(zr);if(Pr&&Jm(nt,Pr)){let or=Te.length;Te.push(zr);let Mr=zr.parent;if(!Mr||!JP(Mr)||b.tryGetMemberInModuleExportsAndProperties(zr.name,Mr)!==zr)Tt[or]={kind:Bt(2)};else{let Wr=Hu(qm(Mr.name))?(kn=JF(Mr))==null?void 0:kn.fileName:void 0,{moduleSpecifier:$r}=(gt||(gt=rf.createImportSpecifierResolver(n,e,g,l))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Wr,isFromPackageJson:!1,moduleSymbol:Mr,symbol:zr,targetFlags:Tp(zr,b).flags}],s,AS(Pe))||{};if($r){let Sr={kind:Bt(6),moduleSymbol:Mr,isDefaultExport:!1,symbolName:zr.name,exportName:zr.name,fileName:Wr,moduleSpecifier:$r};Tt[or]=Sr}}}else if(l.includeCompletionsWithInsertText){if(Pr&&nt.has(Pr))return;yt(Le),yn(Le),Te.push(Le)}}else yt(Le),yn(Le),Te.push(Le);function yn(cr){Aqt(cr)&&(xe[co(cr)]=nf.LocalDeclarationPriority)}function yt(cr){l.includeCompletionsWithInsertText&&(kt&&Jm(nt,co(cr))?Tt[Te.length]={kind:Bt(8)}:dr&&(Tt[Te.length]={kind:16}))}function Bt(cr){return dr?cr|16:cr}}function vn(Le){return Ye(Le)?Le:ai(Le)?vn(Le.expression):void 0}function ta(){return(ft()||Qt()||hi()||he()||wt()||oe()||ts()||Ue()||Gt()||($a(),1))===1}function ts(){return vt(X)?(ge=5,ie=!0,Oe=4,1):0}function Gt(){let Le=Qe(X),kt=Le&&b.getContextualType(Le.attributes);if(!kt)return 0;let dr=Le&&b.getContextualType(Le.attributes,4);return Te=ya(Te,Ft(qne(kt,dr,Le.attributes,b),Le.attributes.properties)),ke(),ge=3,ie=!1,1}function hi(){return ve?(ie=!0,Cr(),1):0}function $a(){Oe=$t(X)?5:1,ge=1,{isNewIdentifierLocation:ie,defaultCommitCharacters:it}=Vr(),H!==X&&I.assert(!!H,"Expected 'contextToken' to be defined when different from 'previousToken'.");let Le=H!==X?H.getStart():s,kt=da(X,Le,n)||n;L=Wn(kt);let dr=(pe?0:111551)|788968|1920|2097152,kn=H&&!AS(H);Te=ya(Te,b.getSymbolsInScope(kt,dr)),I.assertEachIsDefined(Te,"getSymbolsInScope() should all be defined");for(let Kr=0;Kr<Te.length;Kr++){let yn=Te[Kr];if(!b.isArgumentsSymbol(yn)&&!Pt(yn.declarations,yt=>yt.getSourceFile()===n)&&(xe[co(yn)]=nf.GlobalsOrKeywords),kn&&!(yn.flags&111551)){let yt=yn.declarations&&Ir(yn.declarations,KO);if(yt){let Bt={kind:64,declaration:yt};Tt[Kr]=Bt}}}if(l.includeCompletionsWithInsertText&&kt.kind!==307){let Kr=b.tryGetThisTypeAt(kt,!1,Ri(kt.parent)?kt:void 0);if(Kr&&!Nqt(Kr,n,b))for(let yn of Jne(Kr,b))Tt[Te.length]={kind:1},Te.push(yn),xe[co(yn)]=nf.SuggestedClassMembers}Cr(),pe&&(Oe=X&&d2(X.parent)?6:7)}function ui(){var Le;return ve?!0:l.includeCompletionsForModuleExports?n.externalModuleIndicator||n.commonJsModuleIndicator||Bte(e.getCompilerOptions())?!0:((Le=e.getSymlinkCache)==null?void 0:Le.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||ube(e):!1}function Wn(Le){switch(Le.kind){case 307:case 228:case 294:case 241:return!0;default:return fa(Le)}}function Gi(){return F||M||!!ve&&w1(Pe.parent)||!at(X)&&(dR(X,n,b)||Eh(Pe)||It(X))}function at(Le){return Le&&(Le.kind===114&&(Le.parent.kind===186||NN(Le.parent))||Le.kind===131&&Le.parent.kind===182)}function It(Le){if(Le){let kt=Le.parent.kind;switch(Le.kind){case 59:return kt===172||kt===171||kt===169||kt===260||jP(kt);case 64:return kt===265||kt===168;case 130:return kt===234;case 30:return kt===183||kt===216;case 96:return kt===168;case 152:return kt===238}}return!1}function Cr(){var Le,kt;if(!ui()||(I.assert(!p?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),p&&!p.source))return;Ne|=1;let kn=H===X&&ve?"":H&&Ye(H)?H.text.toLowerCase():"",Kr=(Le=g.getModuleSpecifierCache)==null?void 0:Le.call(g),yn=OR(n,g,e,l,x),yt=(kt=g.getPackageJsonAutoImportProvider)==null?void 0:kt.call(g),Bt=p?void 0:hA(n,l,g);AKe("collectAutoImports",g,gt||(gt=rf.createImportSpecifierResolver(n,e,g,l)),e,s,l,!!ve,AS(Pe),er=>{yn.search(n.path,fe,(zr,Pr)=>{if(!m_(zr,Po(g.getCompilationSettings()))||!p&&ZP(zr)||!pe&&!ve&&!(Pr&111551)||pe&&!(Pr&790504))return!1;let or=zr.charCodeAt(0);return fe&&(or<65||or>90)?!1:p?!0:aQe(zr,kn)},(zr,Pr,or,Mr)=>{if(p&&!Pt(zr,Xs=>p.source===qm(Xs.moduleSymbol.name))||(zr=Cn(zr,cr),!zr.length))return;let Wr=er.tryResolve(zr,or)||{};if(Wr==="failed")return;let $r=zr[0],Sr;Wr!=="skipped"&&({exportInfo:$r=zr[0],moduleSpecifier:Sr}=Wr);let ji=$r.exportKind===1,Is=ji&&T4(I.checkDefined($r.symbol))||I.checkDefined($r.symbol);wn(Is,{kind:Sr?32:4,moduleSpecifier:Sr,symbolName:Pr,exportMapKey:Mr,exportName:$r.exportKind===2?"export=":I.checkDefined($r.symbol).name,fileName:$r.moduleFileName,isDefaultExport:ji,moduleSymbol:$r.moduleSymbol,isFromPackageJson:$r.isFromPackageJson})}),Me=er.skippedAny(),Ne|=er.resolvedAny()?8:0,Ne|=er.resolvedBeyondLimit()?16:0});function cr(er){return hre(er.isFromPackageJson?yt:e,n,_i(er.moduleSymbol.valueDeclaration,ba),er.moduleSymbol,l,Bt,He(er.isFromPackageJson),Kr)}}function wn(Le,kt){let dr=co(Le);xe[dr]!==nf.GlobalsOrKeywords&&(Tt[Te.length]=kt,xe[dr]=ve?nf.LocationPriority:nf.AutoImportSuggestions,Te.push(Le))}function Di(Le,kt){jn(Pe)||Le.forEach(dr=>{if(!Pi(dr))return;let kn=jne(dr,Po(i),void 0,0,!1);if(!kn)return;let{name:Kr}=kn,yn=uqt(dr,Kr,kt,e,g,i,l,m);if(!yn)return;let yt={kind:128,...yn};Ne|=32,Tt[Te.length]=yt,Te.push(dr)})}function Pi(Le){return!!(Le.flags&8196)}function da(Le,kt,dr){let kn=Le;for(;kn&&!wte(kn,kt,dr);)kn=kn.parent;return kn}function ks(Le){let kt=xc(),dr=_s(Le)||Rt(Le)||lr(Le)||no(Le)||H4(Le);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(xc()-kt)),dr}function no(Le){if(Le.kind===12)return!0;if(Le.kind===32&&Le.parent){if(Pe===Le.parent&&(Pe.kind===286||Pe.kind===285))return!1;if(Le.parent.kind===286)return Pe.parent.kind!==286;if(Le.parent.kind===287||Le.parent.kind===285)return!!Le.parent.parent&&Le.parent.parent.kind===284}return!1}function Vr(){if(X){let Le=X.parent.kind,kt=Bne(X);switch(kt){case 28:switch(Le){case 213:case 214:{let dr=X.parent.expression;return $s(n,dr.end).line!==$s(n,s).line?{defaultCommitCharacters:Ane,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vh,isNewIdentifierLocation:!0}}case 226:return{defaultCommitCharacters:Ane,isNewIdentifierLocation:!0};case 176:case 184:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 209:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}case 21:switch(Le){case 213:case 214:{let dr=X.parent.expression;return $s(n,dr.end).line!==$s(n,s).line?{defaultCommitCharacters:Ane,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vh,isNewIdentifierLocation:!0}}case 217:return{defaultCommitCharacters:Ane,isNewIdentifierLocation:!0};case 176:case 196:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}case 23:switch(Le){case 209:case 181:case 189:case 167:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:switch(Le){case 267:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}case 19:switch(Le){case 263:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}case 64:switch(Le){case 260:case 226:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:Le===228};case 17:return{defaultCommitCharacters:Vh,isNewIdentifierLocation:Le===239};case 134:return Le===174||Le===304?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1};case 42:return Le===174?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}if(g$(kt))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:Vh,isNewIdentifierLocation:!1}}function _s(Le){return(sY(Le)||JK(Le))&&(fR(Le,s)||s===Le.end&&(!!Le.isUnterminated||sY(Le)))}function ft(){let Le=Dqt(X);if(!Le)return 0;let dr=(wE(Le.parent)?Le.parent:void 0)||Le,kn=YKe(dr,b);if(!kn)return 0;let Kr=b.getTypeFromTypeNode(dr),yn=Jne(kn,b),yt=Jne(Kr,b),Bt=new Set;return yt.forEach(cr=>Bt.add(cr.escapedName)),Te=ya(Te,Cn(yn,cr=>!Bt.has(cr.escapedName))),ge=0,ie=!0,1}function Qt(){if(X?.kind===26)return 0;let Le=Te.length,kt=Tqt(X,s,n);if(!kt)return 0;ge=0;let dr,kn;if(kt.kind===210){let Kr=Iqt(kt,b);if(Kr===void 0)return kt.flags&67108864?2:0;let yn=b.getContextualType(kt,4),yt=(yn||Kr).getStringIndexType(),Bt=(yn||Kr).getNumberIndexType();if(ie=!!yt||!!Bt,dr=qne(Kr,yn,kt,b),kn=kt.properties,dr.length===0&&!Bt)return 0}else{I.assert(kt.kind===206),ie=!1;let Kr=Nh(kt.parent);if(!n4(Kr))return I.fail("Root declaration is not variable-like.");let yn=k1(Kr)||!!hu(Kr)||Kr.parent.parent.kind===250;if(!yn&&Kr.kind===169&&(At(Kr.parent)?yn=!!b.getContextualType(Kr.parent):(Kr.parent.kind===174||Kr.parent.kind===178)&&(yn=At(Kr.parent.parent)&&!!b.getContextualType(Kr.parent.parent))),yn){let yt=b.getTypeAtLocation(kt);if(!yt)return 2;dr=b.getPropertiesOfType(yt).filter(Bt=>b.isPropertyAccessible(kt,!1,!1,yt,Bt)),kn=kt.elements}}if(dr&&dr.length>0){let Kr=We(dr,I.checkDefined(kn));Te=ya(Te,Kr),ke(),kt.kind===210&&l.includeCompletionsWithObjectLiteralMethodSnippets&&l.includeCompletionsWithInsertText&&(Ke(Le),Di(Kr,kt))}return 1}function he(){if(!X)return 0;let Le=X.kind===19||X.kind===28?_i(X.parent,DJ):vU(X)?_i(X.parent.parent,DJ):void 0;if(!Le)return 0;vU(X)||(Oe=8);let{moduleSpecifier:kt}=Le.kind===275?Le.parent.parent:Le.parent;if(!kt)return ie=!0,Le.kind===275?2:0;let dr=b.getSymbolAtLocation(kt);if(!dr)return ie=!0,2;ge=3,ie=!1;let kn=b.getExportsAndPropertiesOfModule(dr),Kr=new Set(Le.elements.filter(yt=>!rr(yt)).map(yt=>g2(yt.propertyName||yt.name))),yn=kn.filter(yt=>yt.escapedName!=="default"&&!Kr.has(yt.escapedName));return Te=ya(Te,yn),yn.length||(Oe=0),1}function wt(){if(X===void 0)return 0;let Le=X.kind===19||X.kind===28?_i(X.parent,$k):X.kind===59?_i(X.parent.parent,$k):void 0;if(Le===void 0)return 0;let kt=new Set(Le.elements.map(tz));return Te=Cn(b.getTypeAtLocation(Le).getApparentProperties(),dr=>!kt.has(dr.escapedName)),1}function oe(){var Le;let kt=X&&(X.kind===19||X.kind===28)?_i(X.parent,hm):void 0;if(!kt)return 0;let dr=Br(kt,Df(ba,cu));return ge=5,ie=!1,(Le=dr.locals)==null||Le.forEach((kn,Kr)=>{var yn,yt;Te.push(kn),(yt=(yn=dr.symbol)==null?void 0:yn.exports)!=null&&yt.has(Kr)&&(xe[co(kn)]=nf.OptionalMember)}),1}function Ue(){let Le=Eqt(n,X,Pe,s);if(!Le)return 0;if(ge=3,ie=!0,Oe=X.kind===42?0:Ri(Le)?2:3,!Ri(Le))return 1;let kt=X.kind===27?X.parent.parent:X.parent,dr=ou(kt)?gf(kt):0;if(X.kind===80&&!rr(X))switch(X.getText()){case"private":dr=dr|2;break;case"static":dr=dr|256;break;case"override":dr=dr|16;break}if(Al(kt)&&(dr|=256),!(dr&2)){let kn=Ri(Le)&&dr&16?lg(Dh(Le)):_4(Le),Kr=li(kn,yn=>{let yt=b.getTypeAtLocation(yn);return dr&256?yt?.symbol&&b.getPropertiesOfType(b.getTypeOfSymbolAtLocation(yt.symbol,Le)):yt&&b.getPropertiesOfType(yt)});Te=ya(Te,re(Kr,Le.members,dr)),Ge(Te,(yn,yt)=>{let Bt=yn?.valueDeclaration;if(Bt&&ou(Bt)&&Bt.name&&po(Bt.name)){let cr={kind:512,symbolName:b.symbolToString(yn)};Tt[yt]=cr}})}return 1}function pt(Le){return!!Le.parent&&Da(Le.parent)&&ul(Le.parent.parent)&&(KI(Le.kind)||Ny(Le))}function vt(Le){if(Le){let kt=Le.parent;switch(Le.kind){case 21:case 28:return ul(Le.parent)?Le.parent:void 0;default:if(pt(Le))return kt.parent}}}function $t(Le){if(Le){let kt,dr=Br(Le.parent,kn=>Ri(kn)?"quit":Dc(kn)&&kt===kn.body?!0:(kt=kn,!1));return dr&&dr}}function Qe(Le){if(Le){let kt=Le.parent;switch(Le.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(kt&&(kt.kind===285||kt.kind===286)){if(Le.kind===32){let dr=Ou(Le.pos,n,void 0);if(!kt.typeArguments||dr&&dr.kind===44)break}return kt}else if(kt.kind===291)return kt.parent.parent;break;case 11:if(kt&&(kt.kind===291||kt.kind===293))return kt.parent.parent;break;case 20:if(kt&&kt.kind===294&&kt.parent&&kt.parent.kind===291)return kt.parent.parent.parent;if(kt&&kt.kind===293)return kt.parent.parent;break}}}function Lt(Le,kt){return n.getLineEndOfPosition(Le.getEnd())<kt}function Rt(Le){let kt=Le.parent,dr=kt.kind;switch(Le.kind){case 28:return dr===260||In(Le)||dr===243||dr===266||ut(dr)||dr===264||dr===207||dr===265||Ri(kt)&&!!kt.typeParameters&&kt.typeParameters.end>=Le.pos;case 25:return dr===207;case 59:return dr===208;case 23:return dr===207;case 21:return dr===299||ut(dr);case 19:return dr===266;case 30:return dr===263||dr===231||dr===264||dr===265||jP(dr);case 126:return dr===172&&!Ri(kt.parent);case 26:return dr===169||!!kt.parent&&kt.parent.kind===207;case 125:case 123:case 124:return dr===169&&!ul(kt.parent);case 130:return dr===276||dr===281||dr===274;case 139:case 153:return!zne(Le);case 80:{if((dr===276||dr===281)&&Le===kt.name&&Le.text==="type"||Br(Le.parent,Ui)&&Lt(Le,s))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return dr!==276;case 42:return Ss(Le.parent)&&!wl(Le.parent)}if(g$(Bne(Le))&&zne(Le)||pt(Le)&&(!Ye(Le)||KI(Bne(Le))||rr(Le)))return!1;switch(Bne(Le)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return is(Le.parent)}if(Br(Le.parent,Ri)&&Le===H&&Xt(Le,s))return!1;let Kr=DS(Le.parent,172);if(Kr&&Le!==H&&Ri(H.parent.parent)&&s<=H.end){if(Xt(Le,H.end))return!1;if(Le.kind!==64&&(BM(Kr)||Tq(Kr)))return!0}return Ny(Le)&&!Jp(Le.parent)&&!Jh(Le.parent)&&!((Ri(Le.parent)||Cp(Le.parent)||Hc(Le.parent))&&(Le!==H||s>H.end))}function Xt(Le,kt){return Le.kind!==64&&(Le.kind===27||!pm(Le.end,kt,n))}function ut(Le){return jP(Le)&&Le!==176}function lr(Le){if(Le.kind===9){let kt=Le.getFullText();return kt.charAt(kt.length-1)==="."}return!1}function In(Le){return Le.parent.kind===261&&!dR(Le,n,b)}function We(Le,kt){if(kt.length===0)return Le;let dr=new Set,kn=new Set;for(let yn of kt){if(yn.kind!==303&&yn.kind!==304&&yn.kind!==208&&yn.kind!==174&&yn.kind!==177&&yn.kind!==178&&yn.kind!==305||rr(yn))continue;let yt;if(Lv(yn))qt(yn,dr);else if(Do(yn)&&yn.propertyName)yn.propertyName.kind===80&&(yt=yn.propertyName.escapedText);else{let Bt=ls(yn);yt=Bt&&Oh(Bt)?g4(Bt):void 0}yt!==void 0&&kn.add(yt)}let Kr=Le.filter(yn=>!kn.has(yn.escapedName));return $(dr,Kr),Kr}function qt(Le,kt){let dr=Le.expression,kn=b.getSymbolAtLocation(dr),Kr=kn&&b.getTypeOfSymbolAtLocation(kn,dr),yn=Kr&&Kr.properties;yn&&yn.forEach(yt=>{kt.add(yt.name)})}function ke(){Te.forEach(Le=>{if(Le.flags&16777216){let kt=co(Le);xe[kt]=xe[kt]??nf.OptionalMember}})}function $(Le,kt){if(Le.size!==0)for(let dr of kt)Le.has(dr.name)&&(xe[co(dr)]=nf.MemberDeclaredBySpreadAssignment)}function Ke(Le){for(let kt=Le;kt<Te.length;kt++){let dr=Te[kt],kn=co(dr),Kr=Tt?.[kt],yn=Po(i),yt=jne(dr,yn,Kr,0,!1);if(yt){let Bt=xe[kn]??nf.LocationPriority,{name:cr}=yt;xe[kn]=nf.ObjectLiteralProperty(Bt,cr)}}}function re(Le,kt,dr){let kn=new Set;for(let Kr of kt){if(Kr.kind!==172&&Kr.kind!==174&&Kr.kind!==177&&Kr.kind!==178||rr(Kr)||z_(Kr,2)||Vs(Kr)!==!!(dr&256))continue;let yn=Nk(Kr.name);yn&&kn.add(yn)}return Le.filter(Kr=>!kn.has(Kr.escapedName)&&!!Kr.declarations&&!(fm(Kr)&2)&&!(Kr.valueDeclaration&&_f(Kr.valueDeclaration)))}function Ft(Le,kt){let dr=new Set,kn=new Set;for(let yn of kt)rr(yn)||(yn.kind===291?dr.add(J4(yn.name)):EE(yn)&&qt(yn,kn));let Kr=Le.filter(yn=>!dr.has(yn.escapedName));return $(kn,Kr),Kr}function rr(Le){return Le.getStart(n)<=s&&s<=Le.getEnd()}}function Tqt(e,t,n){var i;if(e){let{parent:s}=e;switch(e.kind){case 19:case 28:if(So(s)||Nd(s))return s;break;case 42:return wl(s)?_i(s.parent,So):void 0;case 134:return _i(s.parent,So);case 80:if(e.text==="async"&&Jp(e.parent))return e.parent.parent;{if(So(e.parent.parent)&&(Lv(e.parent)||Jp(e.parent)&&$s(n,e.getEnd()).line!==$s(n,t).line))return e.parent.parent;let p=Br(s,xu);if(p?.getLastToken(n)===e&&So(p.parent))return p.parent}break;default:if((i=s.parent)!=null&&i.parent&&(wl(s.parent)||mm(s.parent)||v_(s.parent))&&So(s.parent.parent))return s.parent.parent;if(Lv(s)&&So(s.parent))return s.parent;let l=Br(s,xu);if(e.kind!==59&&l?.getLastToken(n)===e&&So(l.parent))return l.parent}}}function Rne(e,t){let n=Ou(e,t);return n&&e<=n.end&&(xv(n)||Yf(n.kind))?{contextToken:Ou(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function $Ke(e,t,n,i){let s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,l=s.getTypeChecker(),p=t.ambientModuleName?l.tryFindAmbientModule(t.ambientModuleName):t.fileName?l.getMergedSymbol(I.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!p)return;let g=t.exportName==="export="?l.resolveExternalModuleSymbol(p):l.tryGetMemberInModuleExportsAndProperties(t.exportName,p);return g?(g=t.exportName==="default"&&T4(g)||g,{symbol:g,origin:fqt(t,e,p)}):void 0}function jne(e,t,n,i,s){if(HBt(n))return;let l=WBt(n)?n.symbolName:e.name;if(l===void 0||e.flags&1536&&o5(l.charCodeAt(0))||w5(e))return;let p={name:l,needsConvertPropertyAccess:!1};if(m_(l,t,s?1:0)||e.valueDeclaration&&_f(e.valueDeclaration))return p;if(e.flags&2097152)return{name:l,needsConvertPropertyAccess:!0};switch(i){case 3:return g2e(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(l),needsConvertPropertyAccess:!1};case 2:case 1:return l.charCodeAt(0)===32?void 0:{name:l,needsConvertPropertyAccess:!0};case 5:case 4:return p;default:I.assertNever(i)}}var Lne=[],VKe=Cu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:to(t),kind:"keyword",kindModifiers:"",sortText:nf.GlobalsOrKeywords});return e});function HKe(e,t){if(!t)return GKe(e);let n=e+8+1;return Lne[n]||(Lne[n]=GKe(e).filter(i=>!wqt(dk(i.name))))}function GKe(e){return Lne[e]||(Lne[e]=VKe().filter(t=>{let n=dk(t.name);switch(e){case 0:return!1;case 1:return QKe(n)||n===138||n===144||n===156||n===145||n===128||L3(n)&&n!==157;case 5:return QKe(n);case 2:return g$(n);case 3:return KKe(n);case 4:return KI(n);case 6:return L3(n)||n===87;case 7:return L3(n);case 8:return n===156;default:return I.assertNever(e)}}))}function wqt(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function KKe(e){return e===148}function g$(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return zK(e)}}function QKe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!sJ(e)&&!g$(e)}function Bne(e){return Ye(e)?mk(e)??0:e.kind}function kqt(e,t){let n=[];if(e){let i=e.getSourceFile(),s=e.parent,l=i.getLineAndCharacterOfPosition(e.end).line,p=i.getLineAndCharacterOfPosition(t).line;(sl(s)||tu(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&l===p&&n.push({name:to(132),kind:"keyword",kindModifiers:"",sortText:nf.GlobalsOrKeywords})}return n}function Cqt(e,t){return Br(e,n=>ZO(n)&&uA(n,t)?!0:Gg(n)?"quit":!1)}function qne(e,t,n,i){let s=t&&t!==e,l=i.getUnionType(Cn(e.flags&1048576?e.types:[e],x=>!i.getPromisedTypeOfPromise(x))),p=s&&!(t.flags&3)?i.getUnionType([l,t]):l,g=Pqt(p,n,i);return p.isClass()&&XKe(g)?[]:s?Cn(g,m):g;function m(x){return Re(x.declarations)?Pt(x.declarations,b=>b.parent!==n):!0}}function Pqt(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(Cn(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&XKe(i.getApparentProperties())))):e.getApparentProperties()}function XKe(e){return Pt(e,t=>!!(fm(t)&6))}function Jne(e,t){return e.isUnion()?I.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):I.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Eqt(e,t,n,i){switch(n.kind){case 352:return _i(n.parent,aE);case 1:let s=_i(dc(Js(n.parent,ba).statements),aE);if(s&&!gc(s,20,e))return s;break;case 81:if(_i(n.parent,is))return Br(n,Ri);break;case 80:{if(mk(n)||is(n.parent)&&n.parent.initializer===n)return;if(zne(n))return Br(n,aE)}}if(t){if(n.kind===137||Ye(t)&&is(t.parent)&&Ri(n))return Br(t,Ri);switch(t.kind){case 64:return;case 27:case 20:return zne(n)&&n.parent.name===n?n.parent.parent:_i(n,aE);case 19:case 28:return _i(t.parent,aE);default:if(aE(n)){if($s(e,t.getEnd()).line!==$s(e,i).line)return n;let s=Ri(t.parent.parent)?g$:KKe;return s(t.kind)||t.kind===42||Ye(t)&&s(mk(t)??0)?t.parent.parent:void 0}return}}}function Dqt(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(Ff(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&Ff(t.parent))return t.parent;break}}function YKe(e,t){if(!e)return;if(Yi(e)&&wq(e.parent))return t.getTypeArgumentConstraint(e);let n=YKe(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function zne(e){return e.parent&&gq(e.parent)&&aE(e.parent.parent)}function Oqt(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&Pbe(n)&&i===n.getStart(e)+1;case"#":return!!n&&Ca(n)&&!!dp(n);case"<":return!!n&&n.kind===30&&(!Vn(n.parent)||ZKe(n.parent));case"/":return!!n&&(Ho(n)?!!d5(n):n.kind===44&&q2(n.parent));case" ":return!!n&&Q4(n)&&n.parent.kind===307;default:return I.assertNever(t)}}function ZKe({left:e}){return Sl(e)}function Nqt(e,t,n){let i=n.resolveName("self",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;let s=n.resolveName("global",void 0,111551,!1);if(s&&n.getTypeOfSymbolAtLocation(s,t)===e)return!0;let l=n.resolveName("globalThis",void 0,111551,!1);return!!(l&&n.getTypeOfSymbolAtLocation(l,t)===e)}function Aqt(e){return!!(e.valueDeclaration&&gf(e.valueDeclaration)&256&&Ri(e.valueDeclaration.parent))}function Iqt(e,t){let n=t.getContextualType(e);if(n)return n;let i=gg(e.parent);if(Vn(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(At(i))return t.getContextualType(i)}function eQe(e,t){var n,i,s;let l,p=!1,g=m();return{isKeywordOnlyCompletion:p,keywordCompletion:l,isNewIdentifierLocation:!!(g||l===156),isTopLevelTypeOnly:!!((i=(n=_i(g,sl))==null?void 0:n.importClause)!=null&&i.isTypeOnly)||!!((s=_i(g,zu))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!g&&rQe(g,e),replacementSpan:Fqt(g)};function m(){let x=e.parent;if(zu(x)){let b=x.getLastToken(t);if(Ye(e)&&b!==e){l=161,p=!0;return}return l=e.kind===156?void 0:156,k2e(x.moduleReference)?x:void 0}if(rQe(x,e)&&nQe(x.parent))return x;if(Bh(x)||jv(x)){if(!x.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(l=156),nQe(x))if(e.kind===20||e.kind===80)p=!0,l=161;else return x.parent.parent;return}if(tu(x)&&e.kind===42||hm(x)&&e.kind===20){p=!0,l=161;return}if(Q4(e)&&ba(x))return l=156,e;if(Q4(e)&&sl(x))return l=156,k2e(x.moduleSpecifier)?x:void 0}}function Fqt(e){var t;if(!e)return;let n=Br(e,Df(sl,zu,zh))??e,i=n.getSourceFile();if(Fk(n,i))return Lf(n,i);I.assert(n.kind!==102&&n.kind!==276);let s=n.kind===272||n.kind===351?tQe((t=n.importClause)==null?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,l={pos:n.getFirstToken().getStart(),end:s.pos};if(Fk(l,i))return z1(l)}function tQe(e){var t;return Ir((t=_i(e,Bh))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&ZP(n.name.text)&&((i=Ou(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function rQe(e,t){return bf(e)&&(e.isTypeOnly||t===e.name&&vU(t))}function nQe(e){if(!k2e(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Bh(e)){let t=tQe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function k2e(e){var t;return Sl(e)?!0:!((t=_i(M0(e)?e.expression:e,Ho))!=null&&t.text)}function Mqt(e,t){if(!e)return;let n=Br(e,i=>y2(i)||iQe(i)||Os(i)?"quit":(Da(i)||Hc(i))&&!wx(i.parent));return n||(n=Br(t,i=>y2(i)||iQe(i)||Os(i)?"quit":Ui(i))),n}function Rqt(e){if(!e)return!1;let t=e,n=e.parent;for(;n;){if(Hc(n))return n.default===t||t.kind===64;t=n,n=n.parent}return!1}function iQe(e){return e.parent&&Bc(e.parent)&&(e.parent.body===e||e.kind===39)}function C2e(e,t,n=new Set){return i(e)||i(Tp(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&Jm(n,s)&&t.getExportsOfModule(s).some(l=>C2e(l,t,n))}}function jqt(e,t){let n=Tp(e,t).declarations;return!!Re(n)&&sn(n,MU)}function aQe(e,t){if(t.length===0)return!0;let n=!1,i,s=0,l=e.length;for(let p=0;p<l;p++){let g=e.charCodeAt(p),m=t.charCodeAt(s);if((g===m||g===Lqt(m))&&(n||(n=i===void 0||97<=i&&i<=122&&65<=g&&g<=90||i===95&&g!==95),n&&s++,s===t.length))return!0;i=g}return!1}function Lqt(e){return 97<=e&&e<=122?e-32:e}function Bqt(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"||e==="satisfies"||e==="as"}var Wne={};w(Wne,{getStringLiteralCompletionDetails:()=>zqt,getStringLiteralCompletions:()=>qqt});var sQe={directory:0,script:1,"external module name":2};function P2e(){let e=new Map;function t(n){let i=e.get(n.name);(!i||sQe[i.kind]<sQe[n.kind])&&e.set(n.name,n)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function qqt(e,t,n,i,s,l,p,g,m){if(cbe(e,t)){let x=rJt(e,t,l,s,YS(l,s));return x&&oQe(x)}if(WE(e,t,n)){if(!n||!Ho(n))return;let x=lQe(e,n,t,l,s,g);return Jqt(x,n,e,s,l,p,i,g,t,m)}}function Jqt(e,t,n,i,s,l,p,g,m,x){if(e===void 0)return;let b=Mte(t,m);switch(e.kind){case 0:return oQe(e.paths);case 1:{let S=pp();return x2e(e.symbols,S,t,t,n,m,n,i,s,99,l,4,g,p,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,x),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:b,entries:S,defaultCommitCharacters:lC(e.hasIndexSignature)}}case 2:{let S=t.kind===15?96:La(cl(t),"'")?39:34,P=e.types.map(E=>({name:Ay(E.value,S),kindModifiers:"",kind:"string",sortText:nf.LocationPriority,replacementSpan:Fte(t,m),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:b,entries:P,defaultCommitCharacters:lC(e.isNewIdentifier)}}default:return I.assertNever(e)}}function zqt(e,t,n,i,s,l,p,g){if(!i||!Ho(i))return;let m=lQe(t,i,n,s,l,g);return m&&Wqt(e,i,m,t,s.getTypeChecker(),p)}function Wqt(e,t,n,i,s,l){switch(n.kind){case 0:{let p=Ir(n.paths,g=>g.name===e);return p&&m$(e,cQe(p.extension),p.kind,[Rd(e)])}case 1:{let p=Ir(n.symbols,g=>g.name===e);return p&&T2e(p,p.name,s,i,t,l)}case 2:return Ir(n.types,p=>p.value===e)?m$(e,"","string",[Rd(e)]):void 0;default:return I.assertNever(n)}}function oQe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:l,span:p,extension:g})=>({name:s,kind:l,kindModifiers:cQe(g),sortText:nf.LocationPriority,replacementSpan:p})),defaultCommitCharacters:lC(!0)}}function cQe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return I.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return I.assertNever(e)}}function lQe(e,t,n,i,s,l){let p=i.getTypeChecker(),g=E2e(t.parent);switch(g.kind){case 201:{let H=E2e(g.parent);return H.kind===205?{kind:0,paths:fQe(e,t,i,s,l)}:m(H)}case 303:return So(g.parent)&&g.name===t?Vqt(p,g.parent):x()||x(0);case 212:{let{expression:H,argumentExpression:X}=g;return t===Qo(X)?uQe(p.getTypeAtLocation(H)):void 0}case 213:case 214:case 291:if(!cJt(t)&&!_d(g)){let H=ZR.getArgumentInfoForCompletions(g.kind===291?g.parent:t,n,e,p);return H&&$qt(H.invocation,t,H,p)||x(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:fQe(e,t,i,s,l)};case 296:let b=LU(p,g.parent.clauses),S=x();return S?{kind:2,types:S.types.filter(H=>!b.hasValue(H.value)),isNewIdentifier:!1}:void 0;case 276:case 281:let E=g;if(E.propertyName&&t!==E.propertyName)return;let N=E.parent,{moduleSpecifier:F}=N.kind===275?N.parent.parent:N.parent;if(!F)return;let M=p.getSymbolAtLocation(F);if(!M)return;let L=p.getExportsAndPropertiesOfModule(M),W=new Set(N.elements.map(H=>g2(H.propertyName||H.name)));return{kind:1,symbols:L.filter(H=>H.escapedName!=="default"&&!W.has(H.escapedName)),hasIndexSignature:!1};default:return x()||x(0)}function m(b){switch(b.kind){case 233:case 183:{let E=Br(g,N=>N.parent===b);return E?{kind:2,types:Une(p.getTypeArgumentConstraint(E)),isNewIdentifier:!1}:void 0}case 199:let{indexType:S,objectType:P}=b;return uA(S,n)?uQe(p.getTypeFromTypeNode(P)):void 0;case 192:{let E=m(E2e(b.parent));if(!E)return;let N=Uqt(b,g);return E.kind===1?{kind:1,symbols:E.symbols.filter(F=>!Ta(N,F.name)),hasIndexSignature:E.hasIndexSignature}:{kind:2,types:E.types.filter(F=>!Ta(N,F.value)),isNewIdentifier:!1}}default:return}}function x(b=4){let S=Une(PU(t,p,b));if(S.length)return{kind:2,types:S,isNewIdentifier:!1}}}function E2e(e){switch(e.kind){case 196:return v5(e);case 217:return gg(e);default:return e}}function Uqt(e,t){return Bi(e.types,n=>n!==t&&R1(n)&&vo(n.literal)?n.literal.text:void 0)}function $qt(e,t,n,i){let s=!1,l=new Set,p=Qp(e)?I.checkDefined(Br(t.parent,Jh)):t,g=i.getCandidateSignaturesForStringLiteralCompletions(e,p),m=li(g,x=>{if(!ef(x)&&n.argumentCount>x.parameters.length)return;let b=x.getTypeParameterAtPosition(n.argumentIndex);if(Qp(e)){let S=i.getTypeOfPropertyOfType(b,X5(p.name));S&&(b=S)}return s=s||!!(b.flags&4),Une(b,l)});return Re(m)?{kind:2,types:m,isNewIdentifier:s}:void 0}function uQe(e){return e&&{kind:1,symbols:Cn(e.getApparentProperties(),t=>!(t.valueDeclaration&&_f(t.valueDeclaration))),hasIndexSignature:nre(e)}}function Vqt(e,t){let n=e.getContextualType(t);if(!n)return;let i=e.getContextualType(t,4);return{kind:1,symbols:qne(n,i,t,e),hasIndexSignature:nre(n)}}function Une(e,t=new Set){return e?(e=Lte(e),e.isUnion()?li(e.types,n=>Une(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&Jm(t,e.value)?[e]:ce):ce}function n8(e,t,n){return{name:e,kind:t,extension:n}}function D2e(e){return n8(e,"directory",void 0)}function pQe(e,t,n){let i=iJt(e,t),s=e.length===0?void 0:Sp(t,e.length);return n.map(({name:l,kind:p,extension:g})=>l.includes(jc)||l.includes(QB)?{name:l,kind:p,extension:g,span:s}:{name:l,kind:p,extension:g,span:i})}function fQe(e,t,n,i,s){return pQe(t.text,t.getStart(e)+1,Hqt(e,t,n,i,s))}function Hqt(e,t,n,i,s){let l=_p(t.text),p=Ho(t)?n.getModeForUsageLocation(e,t):void 0,g=e.path,m=Ei(g),x=n.getCompilerOptions(),b=n.getTypeChecker(),S=YS(n,i),P=O2e(x,1,e,b,s,p);return aJt(l)||!x.baseUrl&&!x.paths&&(j_(l)||N_e(l))?Gqt(l,m,n,i,S,g,P):Yqt(l,m,p,n,i,S,P)}function O2e(e,t,n,i,s,l){return{extensionsToSearch:js(Kqt(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s?.importModuleSpecifierEnding,resolutionMode:l}}function Gqt(e,t,n,i,s,l,p){let g=n.getCompilerOptions();return g.rootDirs?Xqt(g.rootDirs,e,t,p,n,i,s,l):Ka(HR(e,t,p,n,i,s,!0,l).values())}function Kqt(e,t){let n=t?Bi(t.getAmbientModules(),l=>{let p=l.name.slice(1,-1);if(!(!p.startsWith("*.")||p.includes("/")))return p.slice(1)}):[],i=[...N4(e),n],s=Xp(e);return bU(s)?$5(e,i):i}function Qqt(e,t,n,i){e=e.map(l=>ju(Zs(j_(l)?l:gi(t,l))));let s=jr(e,l=>am(l,n,t,i)?n.substr(l.length):void 0);return zb([...e.map(l=>gi(l,s)),n].map(l=>T1(l)),fv,fp)}function Xqt(e,t,n,i,s,l,p,g){let x=s.getCompilerOptions().project||l.getCurrentDirectory(),b=!(l.useCaseSensitiveFileNames&&l.useCaseSensitiveFileNames()),S=Qqt(e,x,n,b);return zb(li(S,P=>Ka(HR(t,P,i,s,l,p,!0,g).values())),(P,E)=>P.name===E.name&&P.kind===E.kind&&P.extension===E.extension)}function HR(e,t,n,i,s,l,p,g,m=P2e()){var x;e===void 0&&(e=""),e=_p(e),Yb(e)||(e=Ei(e)),e===""&&(e="."+jc),e=ju(e);let b=Zb(t,e),S=Yb(b)?b:Ei(b);if(!p){let F=Nbe(S,s);if(F){let L=vN(F,s).typesVersions;if(typeof L=="object"){let W=(x=Zz(L))==null?void 0:x.paths;if(W){let z=Ei(F),H=b.slice(ju(z).length);if(dQe(m,H,z,n,i,s,l,W))return m}}}}let P=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames());if(!NU(s,S))return m;let E=sre(s,S,n.extensionsToSearch,void 0,["./*"]);if(E)for(let F of E){if(F=Zs(F),g&&S0(F,g,t,P)===0)continue;let{name:M,extension:L}=_Qe(gu(F),i,n,!1);m.add(n8(M,"script",L))}let N=OU(s,S);if(N)for(let F of N){let M=gu(Zs(F));M!=="@types"&&m.add(D2e(M))}return m}function _Qe(e,t,n,i){let s=L0.tryGetRealFileNameForNonJsDeclarationFileName(e);if(s)return{name:s,extension:Fv(s)};if(n.referenceKind===0)return{name:e,extension:Fv(e)};let l=L0.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(i&&(l=l.filter(g=>g!==0&&g!==1)),l[0]===3){if(Wl(e,U5))return{name:e,extension:Fv(e)};let g=L0.tryGetJSExtensionForFile(e,t.getCompilerOptions());return g?{name:I0(e,g),extension:g}:{name:e,extension:Fv(e)}}if(!i&&(l[0]===0||l[0]===1)&&Wl(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:yf(e),extension:Fv(e)};let p=L0.tryGetJSExtensionForFile(e,t.getCompilerOptions());return p?{name:I0(e,p),extension:p}:{name:e,extension:Fv(e)}}function dQe(e,t,n,i,s,l,p,g){let m=b=>g[b],x=(b,S)=>{let P=uE(b),E=uE(S),N=typeof P=="object"?P.prefix.length:b.length,F=typeof E=="object"?E.prefix.length:S.length;return mc(F,N)};return mQe(e,!1,!1,t,n,i,s,l,p,rm(g),m,x)}function mQe(e,t,n,i,s,l,p,g,m,x,b,S){let P=[],E;for(let N of x){if(N===".")continue;let F=N.replace(/^\.\//,"")+((t||n)&&bc(N,"/")?"*":""),M=b(N);if(M){let L=uE(F);if(!L)continue;let W=typeof L=="object"&&fk(L,i);W&&(E===void 0||S(F,E)===-1)&&(E=F,P=P.filter(H=>!H.matchedPattern)),(typeof L=="string"||E===void 0||S(F,E)!==1)&&P.push({matchedPattern:W,results:Zqt(F,M,i,s,l,t,n,p,g,m).map(({name:H,kind:X,extension:ne})=>n8(H,X,ne))})}}return P.forEach(N=>N.results.forEach(F=>e.add(F))),E!==void 0}function Yqt(e,t,n,i,s,l,p){let g=i.getTypeChecker(),m=i.getCompilerOptions(),{baseUrl:x,paths:b}=m,S=P2e(),P=Xp(m);if(x){let F=Zs(gi(s.getCurrentDirectory(),x));HR(e,F,p,i,s,l,!1,void 0,S)}if(b){let F=dJ(m,s);dQe(S,e,F,p,i,s,l,b)}let E=hQe(e);for(let F of tJt(e,E,g))S.add(n8(F,"external module name",void 0));if(bQe(i,s,l,t,E,p,S),bU(P)){let F=!1;if(E===void 0)for(let M of nJt(s,t)){let L=n8(M,"external module name",void 0);S.has(L.name)||(F=!0,S.add(L))}if(!F){let M=B5(m),L=q5(m),W=!1,z=X=>{if(L&&!W){let ne=gi(X,"package.json");if(W=V3(s,ne)){let ae=vN(ne,s);N(ae.imports,e,X,!1,!0)}}},H=X=>{let ne=gi(X,"node_modules");NU(s,ne)&&HR(e,ne,p,i,s,l,!1,void 0,S),z(X)};if(E&&M){let X=H;H=ne=>{let ae=jp(e);ae.shift();let Y=ae.shift();if(!Y)return X(ne);if(La(Y,"@")){let te=ae.shift();if(!te)return X(ne);Y=gi(Y,te)}if(L&&La(Y,"#"))return z(ne);let Ee=gi(ne,"node_modules",Y),fe=gi(Ee,"package.json");if(V3(s,fe)){let te=vN(fe,s),de=ae.join("/")+(ae.length&&Yb(e)?"/":"");N(te.exports,de,Ee,!0,!1);return}return X(ne)}}My(s,t,H)}}return Ka(S.values());function N(F,M,L,W,z){if(typeof F!="object"||F===null)return;let H=rm(F),X=Dx(m,n);mQe(S,W,z,M,L,p,i,s,l,H,ne=>{let ae=gQe(F[ne],X);if(ae!==void 0)return lg(bc(ne,"/")&&bc(ae,"/")?ae+"*":ae)},yZ)}}function gQe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!cs(e)){for(let n in e)if(n==="default"||t.includes(n)||FM(t,n)){let i=e[n];return gQe(i,t)}}}function hQe(e){return N2e(e)?Yb(e)?e:Ei(e):void 0}function Zqt(e,t,n,i,s,l,p,g,m,x){let b=uE(e);if(!b)return ce;if(typeof b=="string")return P(e,"script");let S=G7(n,b.prefix);if(S===void 0)return bc(e,"/*")?P(b.prefix,"directory"):li(t,N=>{var F;return(F=yQe("",i,N,s,l,p,g,m,x))==null?void 0:F.map(({name:M,...L})=>({name:b.prefix+M+b.suffix,...L}))});return li(t,E=>yQe(S,i,E,s,l,p,g,m,x));function P(E,N){return La(E,n)?[{name:T1(E),kind:N,extension:void 0}]:ce}}function yQe(e,t,n,i,s,l,p,g,m){if(!g.readDirectory)return;let x=uE(n);if(x===void 0||Ua(x))return;let b=Zb(x.prefix),S=Yb(x.prefix)?b:Ei(b),P=Yb(x.prefix)?"":gu(b),E=N2e(e),N=E?Yb(e)?e:Ei(e):void 0,F=()=>m.getCommonSourceDirectory(),M=!Ak(m),L=p.getCompilerOptions().outDir,W=p.getCompilerOptions().declarationDir,z=E?gi(S,P+N):S,H=Zs(gi(t,z)),X=l&&L&&XQ(H,M,L,F),ne=l&&W&&XQ(H,M,W,F),ae=Zs(x.suffix),Y=ae&&_J("_"+ae),Ee=ae?QQ("_"+ae):void 0,fe=[Y&&I0(ae,Y),...Ee?Ee.map(ie=>I0(ae,ie)):[],ae].filter(Ua),te=ae?fe.map(ie=>"**/*"+ie):["./*"],de=(s||l)&&bc(n,"/*"),me=ve(H);return X&&(me=ya(me,ve(X))),ne&&(me=ya(me,ve(ne))),ae||(me=ya(me,Pe(H)),X&&(me=ya(me,Pe(X))),ne&&(me=ya(me,Pe(ne)))),me;function ve(ie){let Ne=E?ie:ju(ie)+P;return Bi(sre(g,ie,i.extensionsToSearch,void 0,te),it=>{let ze=Oe(it,Ne);if(ze){if(N2e(ze))return D2e(jp(vQe(ze))[1]);let{name:ge,extension:Me}=_Qe(ze,p,i,de);return n8(ge,"script",Me)}})}function Pe(ie){return Bi(OU(g,ie),Ne=>Ne==="node_modules"?void 0:D2e(Ne))}function Oe(ie,Ne){return jr(fe,it=>{let ze=eJt(Zs(ie),Ne,it);return ze===void 0?void 0:vQe(ze)})}}function eJt(e,t,n){return La(e,t)&&bc(e,n)?e.slice(t.length,e.length-n.length):void 0}function vQe(e){return e[0]===jc?e.slice(1):e}function tJt(e,t,n){let s=n.getAmbientModules().map(l=>qm(l.name)).filter(l=>La(l,e)&&!l.includes("*"));if(t!==void 0){let l=ju(t);return s.map(p=>kP(p,l))}return s}function rJt(e,t,n,i,s){let l=n.getCompilerOptions(),p=ca(e,t),g=vv(e.text,p.pos),m=g&&Ir(g,M=>t>=M.pos&&t<=M.end);if(!m)return;let x=e.text.slice(m.pos,t),b=sJt.exec(x);if(!b)return;let[,S,P,E]=b,N=Ei(e.path),F=P==="path"?HR(E,N,O2e(l,0,e),n,i,s,!0,e.path):P==="types"?bQe(n,i,s,N,hQe(E),O2e(l,1,e)):I.fail();return pQe(E,m.pos+S.length,Ka(F.values()))}function bQe(e,t,n,i,s,l,p=P2e()){let g=e.getCompilerOptions(),m=new Map,x=AU(()=>f3(g,t))||ce;for(let S of x)b(S);for(let S of ore(i,t)){let P=gi(Ei(S),"node_modules/@types");b(P)}return p;function b(S){if(NU(t,S))for(let P of OU(t,S)){let E=MM(P);if(!(g.types&&!Ta(g.types,E)))if(s===void 0)m.has(E)||(p.add(n8(E,"external module name",void 0)),m.set(E,!0));else{let N=gi(S,P),F=CX(s,E,D0(t));F!==void 0&&HR(F,N,l,e,t,n,!1,void 0,p)}}}}function nJt(e,t){if(!e.readFile||!e.fileExists)return ce;let n=[];for(let i of ore(t,e)){let s=vN(i,e);for(let l of oJt){let p=s[l];if(p)for(let g in p)ec(p,g)&&!La(g,"@types/")&&n.push(g)}}return n}function iJt(e,t){let n=Math.max(e.lastIndexOf(jc),e.lastIndexOf(QB)),i=n!==-1?n+1:0,s=e.length-i;return s===0||m_(e.substr(i,s),99)?void 0:Sp(t+i,s)}function aJt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}var sJt=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,oJt=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function N2e(e){return e.includes(jc)}function cJt(e){return Ls(e.parent)&&Yl(e.parent.arguments)===e&&Ye(e.parent.expression)&&e.parent.expression.escapedText==="require"}var qc={};w(qc,{Core:()=>tD,DefinitionKind:()=>PQe,EntryKind:()=>EQe,ExportKind:()=>xQe,FindReferencesUse:()=>DQe,ImportExport:()=>SQe,createImportTracker:()=>A2e,findModuleReferences:()=>TQe,findReferenceOrRenameEntries:()=>SJt,findReferencedSymbols:()=>vJt,getContextNode:()=>uC,getExportInfo:()=>I2e,getImplementationsAtPosition:()=>xJt,getImportOrExportSymbol:()=>CQe,getReferenceEntriesForNode:()=>NQe,isContextWithStartAndEndNode:()=>M2e,isDeclarationOfSymbol:()=>RQe,isWriteAccessForReference:()=>j2e,toContextSpan:()=>R2e,toHighlightSpan:()=>DJt,toReferenceEntry:()=>FQe,toRenameLocation:()=>wJt});function A2e(e,t,n,i){let s=fJt(e,n,i);return(l,p,g)=>{let{directImports:m,indirectUsers:x}=lJt(e,t,s,p,n,i);return{indirectUsers:x,...uJt(m,l,p.exportKind,n,g)}}}var xQe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(xQe||{}),SQe=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(SQe||{});function lJt(e,t,n,{exportingModuleSymbol:i,exportKind:s},l,p){let g=fA(),m=fA(),x=[],b=!!i.globalExports,S=b?void 0:[];return E(i),{directImports:x,indirectUsers:P()};function P(){if(b)return e;if(i.declarations)for(let z of i.declarations)h2(z)&&t.has(z.getSourceFile().fileName)&&L(z);return S.map(rn)}function E(z){let H=W(z);if(H){for(let X of H)if(g(X))switch(p&&p.throwIfCancellationRequested(),X.kind){case 213:if(_d(X)){N(X);break}if(!b){let ae=X.parent;if(s===2&&ae.kind===260){let{name:Y}=ae;if(Y.kind===80){x.push(Y);break}}}break;case 80:break;case 271:M(X,X.name,Ai(X,32),!1);break;case 272:case 351:x.push(X);let ne=X.importClause&&X.importClause.namedBindings;ne&&ne.kind===274?M(X,ne.name,!1,!0):!b&&Dk(X)&&L(h$(X));break;case 278:X.exportClause?X.exportClause.kind===280?L(h$(X),!0):x.push(X):E(hJt(X,l));break;case 205:!b&&X.isTypeOf&&!X.qualifier&&F(X)&&L(X.getSourceFile(),!0),x.push(X);break;default:I.failBadSyntaxKind(X,"Unexpected import kind.")}}}function N(z){let H=Br(z,Vne)||z.getSourceFile();L(H,!!F(z,!0))}function F(z,H=!1){return Br(z,X=>H&&Vne(X)?"quit":$m(X)&&Pt(X.modifiers,vE))}function M(z,H,X,ne){if(s===2)ne||x.push(z);else if(!b){let ae=h$(z);I.assert(ae.kind===307||ae.kind===267),X||pJt(ae,H,l)?L(ae,!0):L(ae)}}function L(z,H=!1){if(I.assert(!b),!m(z)||(S.push(z),!H))return;let ne=l.getMergedSymbol(z.symbol);if(!ne)return;I.assert(!!(ne.flags&1536));let ae=W(ne);if(ae)for(let Y of ae)jh(Y)||L(h$(Y),!0)}function W(z){return n.get(co(z).toString())}}function uJt(e,t,n,i,s){let l=[],p=[];function g(P,E){l.push([P,E])}if(e)for(let P of e)m(P);return{importSearches:l,singleReferences:p};function m(P){if(P.kind===271){F2e(P)&&x(P.name);return}if(P.kind===80){x(P);return}if(P.kind===205){if(P.qualifier){let F=Af(P.qualifier);F.escapedText===Ml(t)&&p.push(F)}else n===2&&p.push(P.argument.literal);return}if(P.moduleSpecifier.kind!==11)return;if(P.kind===278){P.exportClause&&hm(P.exportClause)&&b(P.exportClause);return}let{name:E,namedBindings:N}=P.importClause||{name:void 0,namedBindings:void 0};if(N)switch(N.kind){case 274:x(N.name);break;case 275:(n===0||n===1)&&b(N);break;default:I.assertNever(N)}if(E&&(n===1||n===2)&&(!s||E.escapedText===xU(t))){let F=i.getSymbolAtLocation(E);g(E,F)}}function x(P){n===2&&(!s||S(P.escapedText))&&g(P,i.getSymbolAtLocation(P))}function b(P){if(P)for(let E of P.elements){let{name:N,propertyName:F}=E;if(S(g2(F||N)))if(F)p.push(F),(!s||g2(N)===t.escapedName)&&g(N,i.getSymbolAtLocation(N));else{let M=E.kind===281&&E.propertyName?i.getExportSpecifierLocalTargetSymbol(E):i.getSymbolAtLocation(N);g(N,M)}}}function S(P){return P===t.escapedName||n!==0&&P==="default"}}function pJt(e,t,n){let i=n.getSymbolAtLocation(t);return!!wQe(e,s=>{if(!tu(s))return;let{exportClause:l,moduleSpecifier:p}=s;return!p&&l&&hm(l)&&l.elements.some(g=>n.getExportSpecifierLocalTargetSymbol(g)===i)})}function TQe(e,t,n){var i;let s=[],l=e.getTypeChecker();for(let p of t){let g=n.valueDeclaration;if(g?.kind===307){for(let m of p.referencedFiles)e.getSourceFileFromReference(p,m)===g&&s.push({kind:"reference",referencingFile:p,ref:m});for(let m of p.typeReferenceDirectives){let x=(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(m,p))==null?void 0:i.resolvedTypeReferenceDirective;x!==void 0&&x.resolvedFileName===g.fileName&&s.push({kind:"reference",referencingFile:p,ref:m})}}kQe(p,(m,x)=>{l.getSymbolAtLocation(x)===n&&s.push(Pc(m)?{kind:"implicit",literal:x,referencingFile:p}:{kind:"import",literal:x})})}return s}function fJt(e,t,n){let i=new Map;for(let s of e)n&&n.throwIfCancellationRequested(),kQe(s,(l,p)=>{let g=t.getSymbolAtLocation(p);if(g){let m=co(g).toString(),x=i.get(m);x||i.set(m,x=[]),x.push(l)}});return i}function wQe(e,t){return Ge(e.kind===307?e.statements:e.body.statements,n=>t(n)||Vne(n)&&Ge(n.body&&n.body.statements,t))}function kQe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let n of e.imports)t(u4(n),n);else wQe(e,n=>{switch(n.kind){case 278:case 272:{let i=n;i.moduleSpecifier&&vo(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=n;F2e(i)&&t(i,i.moduleReference.expression);break}}})}function CQe(e,t,n,i){return i?s():s()||l();function s(){var m;let{parent:x}=e,b=x.parent;if(t.exportSymbol)return x.kind===211?(m=t.declarations)!=null&&m.some(E=>E===x)&&Vn(b)?P(b,!1):void 0:p(t.exportSymbol,g(x));{let E=dJt(x,e);if(E&&Ai(E,32))return zu(E)&&E.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(E.name)}:p(t,g(E));if(Fy(x))return p(t,0);if(Gc(x))return S(x);if(Gc(b))return S(b);if(Vn(x))return P(x,!0);if(Vn(b))return P(b,!0);if(Gk(x)||hY(x))return p(t,0)}function S(E){if(!E.symbol.parent)return;let N=E.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:E.symbol.parent,exportKind:N}}}function P(E,N){let F;switch($l(E)){case 1:F=0;break;case 2:F=2;break;default:return}let M=N?n.getSymbolAtLocation(yX(Js(E.left,Lc))):t;return M&&p(M,F)}}function l(){if(!mJt(e))return;let x=n.getImmediateAliasedSymbol(t);if(!x||(x=gJt(x,n),x.escapedName==="export="&&(x=_Jt(x,n),x===void 0)))return;let b=xU(x);if(b===void 0||b==="default"||b===t.escapedName)return{kind:0,symbol:x}}function p(m,x){let b=I2e(m,x,n);return b&&{kind:1,symbol:m,exportInfo:b}}function g(m){return Ai(m,2048)?1:0}}function _Jt(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let s=I.checkDefined(e.valueDeclaration);if(Gc(s))return(n=_i(s.expression,qg))==null?void 0:n.symbol;if(Vn(s))return(i=_i(s.right,qg))==null?void 0:i.symbol;if(ba(s))return s.symbol}function dJt(e,t){let n=Ui(e)?e:Do(e)?MP(e):void 0;return n?e.name!==t||z2(n.parent)?void 0:Rl(n.parent.parent)?n.parent.parent:void 0:e}function mJt(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&F2e(t);case 276:return!t.propertyName;case 273:case 274:return I.assert(t.name===e),!0;case 208:return jn(e)&&b2(t.parent.parent);default:return!1}}function I2e(e,t,n){let i=e.parent;if(!i)return;let s=n.getMergedSymbol(i);return JP(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function gJt(e,t){if(e.declarations)for(let n of e.declarations){if(Yp(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(ai(n)&&Ev(n.expression)&&!Ca(n.name))return t.getSymbolAtLocation(n);if(Jp(n)&&Vn(n.parent.parent)&&$l(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function hJt(e,t){return t.getMergedSymbol(h$(e).symbol)}function h$(e){if(e.kind===213||e.kind===351)return e.getSourceFile();let{parent:t}=e;return t.kind===307?t:(I.assert(t.kind===268),Js(t.parent,Vne))}function Vne(e){return e.kind===267&&e.name.kind===11}function F2e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var PQe=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(PQe||{}),EQe=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(EQe||{});function J0(e,t=1){return{kind:t,node:e.name||e,context:yJt(e)}}function M2e(e){return e&&e.kind===void 0}function yJt(e){if(Ku(e))return uC(e);if(e.parent){if(!Ku(e.parent)&&!Gc(e.parent)){if(jn(e)){let n=Vn(e.parent)?e.parent:Lc(e.parent)&&Vn(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&$l(n)!==0)return uC(n)}if(Vg(e.parent)||q2(e.parent))return e.parent.parent;if(Vk(e.parent)||Cx(e.parent)||VI(e.parent))return e.parent;if(Ho(e)){let n=d5(e);if(n){let i=Br(n,s=>Ku(s)||fa(s)||ZO(s));return Ku(i)?uC(i):i}}let t=Br(e,po);return t?uC(t.parent):void 0}if(e.parent.name===e||ul(e.parent)||Gc(e.parent)||(ax(e.parent)||Do(e.parent))&&e.parent.propertyName===e||e.kind===90&&Ai(e.parent,2080))return uC(e.parent)}}function uC(e){if(e)switch(e.kind){case 260:return!mp(e.parent)||e.parent.declarations.length!==1?e:Rl(e.parent.parent)?e.parent.parent:bk(e.parent.parent)?uC(e.parent.parent):e.parent;case 208:return uC(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return Zu(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return J1(e.parent)?uC(Br(e.parent,t=>Vn(t)||bk(t))):e;case 255:return{start:Ir(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function R2e(e,t,n){if(!n)return;let i=M2e(n)?v$(n.start,t,n.end):v$(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var DQe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(DQe||{});function vJt(e,t,n,i,s){let l=r_(i,s),p={use:1},g=tD.getReferencedSymbolsForNode(s,l,e,n,t,p),m=e.getTypeChecker(),x=tD.getAdjustedNode(l,p),b=bJt(x)?m.getSymbolAtLocation(x):void 0;return!g||!g.length?void 0:Bi(g,({definition:S,references:P})=>S&&{definition:m.runWithCancellationToken(t,E=>TJt(S,E,l)),references:P.map(E=>kJt(E,b))})}function bJt(e){return e.kind===90||!!f4(e)||b5(e)||e.kind===137&&ul(e.parent)}function xJt(e,t,n,i,s){let l=r_(i,s),p,g=OQe(e,t,n,l,s);if(l.parent.kind===211||l.parent.kind===208||l.parent.kind===212||l.kind===108)p=g&&[...g];else if(g){let x=i2(g),b=new Set;for(;!x.isEmpty();){let S=x.dequeue();if(!Jm(b,Wo(S.node)))continue;p=Zr(p,S);let P=OQe(e,t,n,S.node,S.node.pos);P&&x.enqueue(...P)}}let m=e.getTypeChecker();return Dt(p,x=>PJt(x,m))}function OQe(e,t,n,i,s){if(i.kind===307)return;let l=e.getTypeChecker();if(i.parent.kind===304){let p=[];return tD.getReferenceEntriesForShorthandPropertyAssignment(i,l,g=>p.push(J0(g))),p}else if(i.kind===108||g_(i.parent)){let p=l.getSymbolAtLocation(i);return p.valueDeclaration&&[J0(p.valueDeclaration)]}else return NQe(s,i,e,n,t,{implementations:!0,use:1})}function SJt(e,t,n,i,s,l,p){return Dt(AQe(tD.getReferencedSymbolsForNode(s,i,e,n,t,l)),g=>p(g,i,e.getTypeChecker()))}function NQe(e,t,n,i,s,l={},p=new Set(i.map(g=>g.fileName))){return AQe(tD.getReferencedSymbolsForNode(e,t,n,i,s,l,p))}function AQe(e){return e&&li(e,t=>t.references)}function TJt(e,t,n){let i=(()=>{switch(e.type){case 0:{let{symbol:b}=e,{displayParts:S,kind:P}=IQe(b,t,n),E=S.map(M=>M.text).join(""),N=b.declarations&&Yl(b.declarations),F=N?ls(N)||N:n;return{...y$(F),name:E,kind:P,displayParts:S,context:uC(N)}}case 1:{let{node:b}=e;return{...y$(b),name:b.text,kind:"label",displayParts:[b_(b.text,17)]}}case 2:{let{node:b}=e,S=to(b.kind);return{...y$(b),name:S,kind:"keyword",displayParts:[{text:S,kind:"keyword"}]}}case 3:{let{node:b}=e,S=t.getSymbolAtLocation(b),P=S&&$1.getSymbolDisplayPartsDocumentationAndSymbolKind(t,S,b.getSourceFile(),aC(b),b).displayParts||[Rd("this")];return{...y$(b),name:"this",kind:"var",displayParts:P}}case 4:{let{node:b}=e;return{...y$(b),name:b.text,kind:"var",displayParts:[b_(cl(b),8)]}}case 5:return{textSpan:z1(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[b_(`"${e.reference.fileName}"`,8)]};default:return I.assertNever(e)}})(),{sourceFile:s,textSpan:l,name:p,kind:g,displayParts:m,context:x}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:g,name:p,textSpan:l,displayParts:m,...R2e(l,s,x)}}function y$(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:v$(po(e)?e.expression:e,t)}}function IQe(e,t,n){let i=tD.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&Yl(e.declarations)||n,{displayParts:l,symbolKind:p}=$1.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:l,kind:p}}function wJt(e,t,n,i,s){return{...Hne(e),...i&&CJt(e,t,n,s)}}function kJt(e,t){let n=FQe(e);return t?{...n,isDefinition:e.kind!==0&&RQe(e.node,t)}:n}function FQe(e){let t=Hne(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:n,node:i}=e;return{...t,isWriteAccess:j2e(i),isInString:n===2?!0:void 0}}function Hne(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),n=v$(e.node,t);return{textSpan:n,fileName:t.fileName,...R2e(n,t,e.context)}}}function CJt(e,t,n,i){if(e.kind!==0&&(Ye(t)||Ho(t))){let{node:s,kind:l}=e,p=s.parent,g=t.text,m=Jp(p);if(m||vR(p)&&p.name===s&&p.dotDotDotToken===void 0){let x={prefixText:g+": "},b={suffixText:": "+g};if(l===3)return x;if(l===4)return b;if(m){let S=p.parent;return So(S)&&Vn(S.parent)&&Ev(S.parent.left)?x:b}else return x}else if(bf(p)&&!p.propertyName){let x=Yp(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return Ta(x.declarations,p)?{prefixText:g+" as "}:Vm}else if(Yp(p)&&!p.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:g+" as "}:{suffixText:" as "+g}}if(e.kind!==0&&e_(e.node)&&Lc(e.node.parent)){let s=zte(i);return{prefixText:s,suffixText:s}}return Vm}function PJt(e,t){let n=Hne(e);if(e.kind!==0){let{node:i}=e;return{...n,...EJt(i,t)}}else return{...n,kind:"",displayParts:[]}}function EJt(e,t){let n=t.getSymbolAtLocation(Ku(e)&&e.name?e.name:e);return n?IQe(n,t,e):e.kind===210?{kind:"interface",displayParts:[tf(21),Rd("object literal"),tf(22)]}:e.kind===231?{kind:"local class",displayParts:[tf(21),Rd("anonymous local class"),tf(22)]}:{kind:X2(e),displayParts:[]}}function DJt(e){let t=Hne(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let n=j2e(e.node),i={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function v$(e,t,n){let i=e.getStart(t),s=(n||e).getEnd();return Ho(e)&&s-i>2&&(I.assert(n===void 0),i+=1,s-=1),n?.kind===269&&(s=n.getFullStart()),Ul(i,s)}function MQe(e){return e.kind===0?e.textSpan:v$(e.node,e.node.getSourceFile())}function j2e(e){let t=f4(e);return!!t&&OJt(t)||e.kind===90||iE(e)}function RQe(e,t){var n;if(!t)return!1;let i=f4(e)||(e.kind===90?e.parent:b5(e)||e.kind===137&&ul(e.parent)?e.parent.parent:void 0),s=i&&Vn(i)?i.left:void 0;return!!(i&&((n=t.declarations)!=null&&n.some(l=>l===i||l===s)))}function OJt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!J1(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||z2(e.parent);case 173:case 171:case 348:case 341:return!1;default:return I.failBadSyntaxKind(e)}}var tD;(e=>{function t(ft,Qt,he,wt,oe,Ue={},pt=new Set(wt.map(vt=>vt.fileName))){var vt,$t;if(Qt=n(Qt,Ue),ba(Qt)){let In=wA.getReferenceAtPosition(Qt,ft,he);if(!In?.file)return;let We=he.getTypeChecker().getMergedSymbol(In.file.symbol);if(We)return x(he,We,!1,wt,pt);let qt=he.getFileIncludeReasons();return qt?[{definition:{type:5,reference:In.reference,file:Qt},references:s(In.file,qt,he)||ce}]:void 0}if(!Ue.implementations){let In=S(Qt,wt,oe);if(In)return In}let Qe=he.getTypeChecker(),Lt=Qe.getSymbolAtLocation(ul(Qt)&&Qt.parent.name||Qt);if(!Lt){if(!Ue.implementations&&Ho(Qt)){if(SU(Qt)){let In=he.getFileIncludeReasons(),We=($t=(vt=he.getResolvedModuleFromModuleSpecifier(Qt))==null?void 0:vt.resolvedModule)==null?void 0:$t.resolvedFileName,qt=We?he.getSourceFile(We):void 0;if(qt)return[{definition:{type:4,node:Qt},references:s(qt,In,he)||ce}]}return ui(Qt,wt,Qe,oe)}return}if(Lt.escapedName==="export=")return x(he,Lt.parent,!1,wt,pt);let Rt=p(Lt,he,wt,oe,Ue,pt);if(Rt&&!(Lt.flags&33554432))return Rt;let Xt=l(Qt,Lt,Qe),ut=Xt&&p(Xt,he,wt,oe,Ue,pt),lr=P(Lt,Qt,wt,pt,Qe,oe,Ue);return g(he,Rt,lr,ut)}e.getReferencedSymbolsForNode=t;function n(ft,Qt){return Qt.use===1?ft=Pte(ft):Qt.use===2&&(ft=fU(ft)),ft}e.getAdjustedNode=n;function i(ft,Qt,he,wt=new Set(he.map(oe=>oe.fileName))){var oe,Ue;let pt=(oe=Qt.getSourceFile(ft))==null?void 0:oe.symbol;if(pt)return((Ue=x(Qt,pt,!1,he,wt)[0])==null?void 0:Ue.references)||ce;let vt=Qt.getFileIncludeReasons(),$t=Qt.getSourceFile(ft);return $t&&vt&&s($t,vt,Qt)||ce}e.getReferencesForFileName=i;function s(ft,Qt,he){let wt,oe=Qt.get(ft.path)||ce;for(let Ue of oe)if(QS(Ue)){let pt=he.getSourceFileByPath(Ue.file),vt=D3(he,Ue);nA(vt)&&(wt=Zr(wt,{kind:0,fileName:pt.fileName,textSpan:z1(vt)}))}return wt}function l(ft,Qt,he){if(ft.parent&&pM(ft.parent)){let wt=he.getAliasedSymbol(Qt),oe=he.getMergedSymbol(wt);if(wt!==oe)return oe}}function p(ft,Qt,he,wt,oe,Ue){let pt=ft.flags&1536&&ft.declarations&&Ir(ft.declarations,ba);if(!pt)return;let vt=ft.exports.get("export="),$t=x(Qt,ft,!!vt,he,Ue);if(!vt||!Ue.has(pt.fileName))return $t;let Qe=Qt.getTypeChecker();return ft=Tp(vt,Qe),g(Qt,$t,P(ft,void 0,he,Ue,Qe,wt,oe))}function g(ft,...Qt){let he;for(let wt of Qt)if(!(!wt||!wt.length)){if(!he){he=wt;continue}for(let oe of wt){if(!oe.definition||oe.definition.type!==0){he.push(oe);continue}let Ue=oe.definition.symbol,pt=Va(he,$t=>!!$t.definition&&$t.definition.type===0&&$t.definition.symbol===Ue);if(pt===-1){he.push(oe);continue}let vt=he[pt];he[pt]={definition:vt.definition,references:vt.references.concat(oe.references).sort(($t,Qe)=>{let Lt=m(ft,$t),Rt=m(ft,Qe);if(Lt!==Rt)return mc(Lt,Rt);let Xt=MQe($t),ut=MQe(Qe);return Xt.start!==ut.start?mc(Xt.start,ut.start):mc(Xt.length,ut.length)})}}}return he}function m(ft,Qt){let he=Qt.kind===0?ft.getSourceFile(Qt.fileName):Qt.node.getSourceFile();return ft.getSourceFiles().indexOf(he)}function x(ft,Qt,he,wt,oe){I.assert(!!Qt.valueDeclaration);let Ue=Bi(TQe(ft,wt,Qt),vt=>{if(vt.kind==="import"){let $t=vt.literal.parent;if(R1($t)){let Qe=Js($t.parent,jh);if(he&&!Qe.qualifier)return}return J0(vt.literal)}else if(vt.kind==="implicit"){let $t=vt.literal.text!==lx&&NE(vt.referencingFile,Qe=>Qe.transformFlags&2?qh(Qe)||Vk(Qe)||qS(Qe)?Qe:void 0:"skip")||vt.referencingFile.statements[0]||vt.referencingFile;return J0($t)}else return{kind:0,fileName:vt.referencingFile.fileName,textSpan:z1(vt.ref)}});if(Qt.declarations)for(let vt of Qt.declarations)switch(vt.kind){case 307:break;case 267:oe.has(vt.getSourceFile().fileName)&&Ue.push(J0(vt.name));break;default:I.assert(!!(Qt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let pt=Qt.exports.get("export=");if(pt?.declarations)for(let vt of pt.declarations){let $t=vt.getSourceFile();if(oe.has($t.fileName)){let Qe=Vn(vt)&&ai(vt.left)?vt.left.expression:Gc(vt)?I.checkDefined(gc(vt,95,$t)):ls(vt)||vt;Ue.push(J0(Qe))}}return Ue.length?[{definition:{type:0,symbol:Qt},references:Ue}]:ce}function b(ft){return ft.kind===148&&MS(ft.parent)&&ft.parent.operator===148}function S(ft,Qt,he){if(L3(ft.kind))return ft.kind===116&&kE(ft.parent)||ft.kind===148&&!b(ft)?void 0:it(Qt,ft.kind,he,ft.kind===148?b:void 0);if(aN(ft.parent)&&ft.parent.name===ft)return Ne(Qt,he);if(bE(ft)&&Al(ft.parent))return[{definition:{type:2,node:ft},references:[J0(ft)]}];if(pR(ft)){let wt=sU(ft.parent,ft.text);return wt&&Oe(wt.parent,wt)}else if(yte(ft))return Oe(ft.parent,ft);if(lA(ft))return $a(ft,Qt,he);if(ft.kind===108)return Gt(ft)}function P(ft,Qt,he,wt,oe,Ue,pt){let vt=Qt&&F(ft,Qt,oe,!_s(pt))||ft,$t=Qt?Di(Qt,vt):7,Qe=[],Lt=new W(he,wt,Qt?N(Qt):0,oe,Ue,$t,pt,Qe),Rt=!_s(pt)||!vt.declarations?void 0:Ir(vt.declarations,Yp);if(Rt)Tt(Rt.name,vt,Rt,Lt.createSearch(Qt,ft,void 0),Lt,!0,!0);else if(Qt&&Qt.kind===90&&vt.escapedName==="default"&&vt.parent)qe(Qt,vt,Lt),z(Qt,vt,{exportingModuleSymbol:vt.parent,exportKind:1},Lt);else{let Xt=Lt.createSearch(Qt,vt,void 0,{allSearchSymbols:Qt?Gi(vt,Qt,oe,pt.use===2,!!pt.providePrefixAndSuffixTextForRename,!!pt.implementations):[vt]});E(vt,Lt,Xt)}return Qe}function E(ft,Qt,he){let wt=Ee(ft);if(wt)ge(wt,wt.getSourceFile(),he,Qt,!(ba(wt)&&!Ta(Qt.sourceFiles,wt)));else for(let oe of Qt.sourceFiles)Qt.cancellationToken.throwIfCancellationRequested(),ae(oe,he,Qt)}function N(ft){switch(ft.kind){case 176:case 137:return 1;case 80:if(Ri(ft.parent))return I.assert(ft.parent.name===ft),2;default:return 0}}function F(ft,Qt,he,wt){let{parent:oe}=Qt;return Yp(oe)&&wt?xe(Qt,ft,oe,he):jr(ft.declarations,Ue=>{if(!Ue.parent){if(ft.flags&33554432)return;I.fail(`Unexpected symbol at ${I.formatSyntaxKind(Qt.kind)}: ${I.formatSymbol(ft)}`)}return Ff(Ue.parent)&&M1(Ue.parent.parent)?he.getPropertyOfType(he.getTypeFromTypeNode(Ue.parent.parent),ft.name):void 0})}let M;(ft=>{ft[ft.None=0]="None",ft[ft.Constructor=1]="Constructor",ft[ft.Class=2]="Class"})(M||(M={}));function L(ft){if(!(ft.flags&33555968))return;let Qt=ft.declarations&&Ir(ft.declarations,he=>!ba(he)&&!cu(he));return Qt&&Qt.symbol}class W{constructor(Qt,he,wt,oe,Ue,pt,vt,$t){this.sourceFiles=Qt,this.sourceFilesSet=he,this.specialSearchKind=wt,this.checker=oe,this.cancellationToken=Ue,this.searchMeaning=pt,this.options=vt,this.result=$t,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=fA(),this.markSeenReExportRHS=fA(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Qt){return this.sourceFilesSet.has(Qt.fileName)}getImportSearches(Qt,he){return this.importTracker||(this.importTracker=A2e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Qt,he,this.options.use===2)}createSearch(Qt,he,wt,oe={}){let{text:Ue=qm(Ml(T4(he)||L(he)||he)),allSearchSymbols:pt=[he]}=oe,vt=gl(Ue),$t=this.options.implementations&&Qt?Vr(Qt,he,this.checker):void 0;return{symbol:he,comingFrom:wt,text:Ue,escapedText:vt,parents:$t,allSearchSymbols:pt,includes:Qe=>Ta(pt,Qe)}}referenceAdder(Qt){let he=co(Qt),wt=this.symbolIdToReferences[he];return wt||(wt=this.symbolIdToReferences[he]=[],this.result.push({definition:{type:0,symbol:Qt},references:wt})),(oe,Ue)=>wt.push(J0(oe,Ue))}addStringOrCommentReference(Qt,he){this.result.push({definition:void 0,references:[{kind:0,fileName:Qt,textSpan:he}]})}markSearchedSymbols(Qt,he){let wt=Wo(Qt),oe=this.sourceFileToSeenSymbols[wt]||(this.sourceFileToSeenSymbols[wt]=new Set),Ue=!1;for(let pt of he)Ue=Ty(oe,co(pt))||Ue;return Ue}}function z(ft,Qt,he,wt){let{importSearches:oe,singleReferences:Ue,indirectUsers:pt}=wt.getImportSearches(Qt,he);if(Ue.length){let vt=wt.referenceAdder(Qt);for(let $t of Ue)X($t,wt)&&vt($t)}for(let[vt,$t]of oe)ze(vt.getSourceFile(),wt.createSearch(vt,$t,1),wt);if(pt.length){let vt;switch(he.exportKind){case 0:vt=wt.createSearch(ft,Qt,1);break;case 1:vt=wt.options.use===2?void 0:wt.createSearch(ft,Qt,1,{text:"default"});break;case 2:break}if(vt)for(let $t of pt)ae($t,vt,wt)}}function H(ft,Qt,he,wt,oe,Ue,pt,vt){let $t=A2e(ft,new Set(ft.map(Xt=>Xt.fileName)),Qt,he),{importSearches:Qe,indirectUsers:Lt,singleReferences:Rt}=$t(wt,{exportKind:pt?1:0,exportingModuleSymbol:oe},!1);for(let[Xt]of Qe)vt(Xt);for(let Xt of Rt)Ye(Xt)&&jh(Xt.parent)&&vt(Xt);for(let Xt of Lt)for(let ut of ve(Xt,pt?"default":Ue)){let lr=Qt.getSymbolAtLocation(ut),In=Pt(lr?.declarations,We=>!!_i(We,Gc));Ye(ut)&&!ax(ut.parent)&&(lr===wt||In)&&vt(ut)}}e.eachExportReference=H;function X(ft,Qt){return Me(ft,Qt)?Qt.options.use!==2?!0:!Ye(ft)&&!ax(ft.parent)?!1:!(ax(ft.parent)&&Dy(ft)):!1}function ne(ft,Qt){if(ft.declarations)for(let he of ft.declarations){let wt=he.getSourceFile();ze(wt,Qt.createSearch(he,ft,0),Qt,Qt.includesSourceFile(wt))}}function ae(ft,Qt,he){rne(ft).get(Qt.escapedText)!==void 0&&ze(ft,Qt,he)}function Y(ft,Qt){return J1(ft.parent.parent)?Qt.getPropertySymbolOfDestructuringAssignment(ft):void 0}function Ee(ft){let{declarations:Qt,flags:he,parent:wt,valueDeclaration:oe}=ft;if(oe&&(oe.kind===218||oe.kind===231))return oe;if(!Qt)return;if(he&8196){let vt=Ir(Qt,$t=>z_($t,2)||_f($t));return vt?DS(vt,263):void 0}if(Qt.some(vR))return;let Ue=wt&&!(ft.flags&262144);if(Ue&&!(JP(wt)&&!wt.globalExports))return;let pt;for(let vt of Qt){let $t=aC(vt);if(pt&&pt!==$t||!$t||$t.kind===307&&!q_($t))return;if(pt=$t,Ic(pt)){let Qe;for(;Qe=OQ(pt);)pt=Qe}}return Ue?pt.getSourceFile():pt}function fe(ft,Qt,he,wt=he){return te(ft,Qt,he,()=>!0,wt)||!1}e.isSymbolReferencedInFile=fe;function te(ft,Qt,he,wt,oe=he){let Ue=L_(ft.parent,ft.parent.parent)?ho(Qt.getSymbolsOfParameterPropertyDeclaration(ft.parent,ft.text)):Qt.getSymbolAtLocation(ft);if(Ue)for(let pt of ve(he,Ue.name,oe)){if(!Ye(pt)||pt===ft||pt.escapedText!==ft.escapedText)continue;let vt=Qt.getSymbolAtLocation(pt);if(vt===Ue||Qt.getShorthandAssignmentValueSymbol(pt.parent)===Ue||Yp(pt.parent)&&xe(pt,vt,pt.parent,Qt)===Ue){let $t=wt(pt);if($t)return $t}}}e.eachSymbolReferenceInFile=te;function de(ft,Qt){return Cn(ve(Qt,ft),oe=>!!f4(oe)).reduce((oe,Ue)=>{let pt=wt(Ue);return!Pt(oe.declarationNames)||pt===oe.depth?(oe.declarationNames.push(Ue),oe.depth=pt):pt<oe.depth&&(oe.declarationNames=[Ue],oe.depth=pt),oe},{depth:1/0,declarationNames:[]}).declarationNames;function wt(oe){let Ue=0;for(;oe;)oe=aC(oe),Ue++;return Ue}}e.getTopMostDeclarationNamesInFile=de;function me(ft,Qt,he,wt){if(!ft.name||!Ye(ft.name))return!1;let oe=I.checkDefined(he.getSymbolAtLocation(ft.name));for(let Ue of Qt)for(let pt of ve(Ue,oe.name)){if(!Ye(pt)||pt===ft.name||pt.escapedText!==ft.name.escapedText)continue;let vt=aU(pt),$t=Ls(vt.parent)&&vt.parent.expression===vt?vt.parent:void 0,Qe=he.getSymbolAtLocation(pt);if(Qe&&he.getRootSymbols(Qe).some(Lt=>Lt===oe)&&wt(pt,$t))return!0}return!1}e.someSignatureUsage=me;function ve(ft,Qt,he=ft){return Bi(Pe(ft,Qt,he),wt=>{let oe=r_(ft,wt);return oe===ft?void 0:oe})}function Pe(ft,Qt,he=ft){let wt=[];if(!Qt||!Qt.length)return wt;let oe=ft.text,Ue=oe.length,pt=Qt.length,vt=oe.indexOf(Qt,he.pos);for(;vt>=0&&!(vt>he.end);){let $t=vt+pt;(vt===0||!T0(oe.charCodeAt(vt-1),99))&&($t===Ue||!T0(oe.charCodeAt($t),99))&&wt.push(vt),vt=oe.indexOf(Qt,vt+pt+1)}return wt}function Oe(ft,Qt){let he=ft.getSourceFile(),wt=Qt.text,oe=Bi(ve(he,wt,ft),Ue=>Ue===Qt||pR(Ue)&&sU(Ue,wt)===Qt?J0(Ue):void 0);return[{definition:{type:1,node:Qt},references:oe}]}function ie(ft,Qt){switch(ft.kind){case 81:if(zS(ft.parent))return!0;case 80:return ft.text.length===Qt.length;case 15:case 11:{let he=ft;return he.text.length===Qt.length&&(oU(he)||Ste(ft)||Q1e(ft)||Ls(ft.parent)&&Pk(ft.parent)&&ft.parent.arguments[1]===ft||ax(ft.parent))}case 9:return oU(ft)&&ft.text.length===Qt.length;case 90:return Qt.length===7;default:return!1}}function Ne(ft,Qt){let he=li(ft,wt=>(Qt.throwIfCancellationRequested(),Bi(ve(wt,"meta",wt),oe=>{let Ue=oe.parent;if(aN(Ue))return J0(Ue)})));return he.length?[{definition:{type:2,node:he[0].node},references:he}]:void 0}function it(ft,Qt,he,wt){let oe=li(ft,Ue=>(he.throwIfCancellationRequested(),Bi(ve(Ue,to(Qt),Ue),pt=>{if(pt.kind===Qt&&(!wt||wt(pt)))return J0(pt)})));return oe.length?[{definition:{type:2,node:oe[0].node},references:oe}]:void 0}function ze(ft,Qt,he,wt=!0){return he.cancellationToken.throwIfCancellationRequested(),ge(ft,ft,Qt,he,wt)}function ge(ft,Qt,he,wt,oe){if(wt.markSearchedSymbols(Qt,he.allSearchSymbols))for(let Ue of Pe(Qt,he.text,ft))Te(Qt,Ue,he,wt,oe)}function Me(ft,Qt){return!!(iC(ft)&Qt.searchMeaning)}function Te(ft,Qt,he,wt,oe){let Ue=r_(ft,Qt);if(!ie(Ue,he.text)){!wt.options.implementations&&(wt.options.findInStrings&&WE(ft,Qt)||wt.options.findInComments&&lbe(ft,Qt))&&wt.addStringOrCommentReference(ft.fileName,Sp(Qt,he.text.length));return}if(!Me(Ue,wt))return;let pt=wt.checker.getSymbolAtLocation(Ue);if(!pt)return;let vt=Ue.parent;if(bf(vt)&&vt.propertyName===Ue)return;if(Yp(vt)){I.assert(Ue.kind===80||Ue.kind===11),Tt(Ue,pt,vt,he,wt,oe);return}if(HI(vt)&&vt.isNameFirst&&vt.typeExpression&&Hk(vt.typeExpression.type)&&vt.typeExpression.type.jsDocPropertyTags&&Re(vt.typeExpression.type.jsDocPropertyTags)){gt(vt.typeExpression.type.jsDocPropertyTags,Ue,he,wt);return}let $t=wn(he,pt,Ue,wt);if(!$t){He(pt,he,wt);return}switch(wt.specialSearchKind){case 0:oe&&qe(Ue,$t,wt);break;case 1:je(Ue,ft,he,wt);break;case 2:st(Ue,he,wt);break;default:I.assertNever(wt.specialSearchKind)}jn(Ue)&&Do(Ue.parent)&&b2(Ue.parent.parent.parent)&&(pt=Ue.parent.symbol,!pt)||pe(Ue,pt,he,wt)}function gt(ft,Qt,he,wt){let oe=wt.referenceAdder(he.symbol);qe(Qt,he.symbol,wt),Ge(ft,Ue=>{If(Ue.name)&&oe(Ue.name.left)})}function Tt(ft,Qt,he,wt,oe,Ue,pt){I.assert(!pt||!!oe.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:vt,propertyName:$t,name:Qe}=he,Lt=vt.parent,Rt=xe(ft,Qt,he,oe.checker);if(!pt&&!wt.includes(Rt))return;if($t?ft===$t?(Lt.moduleSpecifier||Xt(),Ue&&oe.options.use!==2&&oe.markSeenReExportRHS(Qe)&&qe(Qe,I.checkDefined(he.symbol),oe)):oe.markSeenReExportRHS(ft)&&Xt():oe.options.use===2&&Dy(Qe)||Xt(),!_s(oe.options)||pt){let lr=Dy(ft)||Dy(he.name)?1:0,In=I.checkDefined(he.symbol),We=I2e(In,lr,oe.checker);We&&z(ft,In,We,oe)}if(wt.comingFrom!==1&&Lt.moduleSpecifier&&!$t&&!_s(oe.options)){let ut=oe.checker.getExportSpecifierLocalTargetSymbol(he);ut&&ne(ut,oe)}function Xt(){Ue&&qe(ft,Rt,oe)}}function xe(ft,Qt,he,wt){return nt(ft,he)&&wt.getExportSpecifierLocalTargetSymbol(he)||Qt}function nt(ft,Qt){let{parent:he,propertyName:wt,name:oe}=Qt;return I.assert(wt===ft||oe===ft),wt?wt===ft:!he.parent.moduleSpecifier}function pe(ft,Qt,he,wt){let oe=CQe(ft,Qt,wt.checker,he.comingFrom===1);if(!oe)return;let{symbol:Ue}=oe;oe.kind===0?_s(wt.options)||ne(Ue,wt):z(ft,Ue,oe.exportInfo,wt)}function He({flags:ft,valueDeclaration:Qt},he,wt){let oe=wt.checker.getShorthandAssignmentValueSymbol(Qt),Ue=Qt&&ls(Qt);!(ft&33554432)&&Ue&&he.includes(oe)&&qe(Ue,oe,wt)}function qe(ft,Qt,he){let{kind:wt,symbol:oe}="kind"in Qt?Qt:{kind:void 0,symbol:Qt};if(he.options.use===2&&ft.kind===90)return;let Ue=he.referenceAdder(oe);he.options.implementations?pr(ft,Ue,he):Ue(ft,wt)}function je(ft,Qt,he,wt){F3(ft)&&qe(ft,he.symbol,wt);let oe=()=>wt.referenceAdder(he.symbol);if(Ri(ft.parent))I.assert(ft.kind===90||ft.parent.name===ft),jt(he.symbol,Qt,oe());else{let Ue=no(ft);Ue&&(Or(Ue,oe()),Ct(Ue,wt))}}function st(ft,Qt,he){qe(ft,Qt.symbol,he);let wt=ft.parent;if(he.options.use===2||!Ri(wt))return;I.assert(wt.name===ft);let oe=he.referenceAdder(Qt.symbol);for(let Ue of wt.members)LP(Ue)&&Vs(Ue)&&Ue.body&&Ue.body.forEachChild(function pt(vt){vt.kind===110?oe(vt):!Ss(vt)&&!Ri(vt)&&vt.forEachChild(pt)})}function jt(ft,Qt,he){let wt=ar(ft);if(wt&&wt.declarations)for(let oe of wt.declarations){let Ue=gc(oe,137,Qt);I.assert(oe.kind===176&&!!Ue),he(Ue)}ft.exports&&ft.exports.forEach(oe=>{let Ue=oe.valueDeclaration;if(Ue&&Ue.kind===174){let pt=Ue.body;pt&&ks(pt,110,vt=>{F3(vt)&&he(vt)})}})}function ar(ft){return ft.members&&ft.members.get("__constructor")}function Or(ft,Qt){let he=ar(ft.symbol);if(he&&he.declarations)for(let wt of he.declarations){I.assert(wt.kind===176);let oe=wt.body;oe&&ks(oe,108,Ue=>{mte(Ue)&&Qt(Ue)})}}function nn(ft){return!!ar(ft.symbol)}function Ct(ft,Qt){if(nn(ft))return;let he=ft.symbol,wt=Qt.createSearch(void 0,he,void 0);E(he,Qt,wt)}function pr(ft,Qt,he){if(Ny(ft)&&Pi(ft.parent)){Qt(ft);return}if(ft.kind!==80)return;ft.parent.kind===304&&da(ft,he.checker,Qt);let wt=vn(ft);if(wt){Qt(wt);return}let oe=Br(ft,vt=>!If(vt.parent)&&!Yi(vt.parent)&&!f2(vt.parent)),Ue=oe.parent;if(Tq(Ue)&&Ue.type===oe&&he.markSeenContainingTypeReference(Ue))if(k1(Ue))pt(Ue.initializer);else if(Ss(Ue)&&Ue.body){let vt=Ue.body;vt.kind===241?_x(vt,$t=>{$t.expression&&pt($t.expression)}):pt(vt)}else(d2(Ue)||IN(Ue))&&pt(Ue.expression);function pt(vt){ta(vt)&&Qt(vt)}}function vn(ft){return Ye(ft)||ai(ft)?vn(ft.parent):F0(ft)?_i(ft.parent.parent,Df(Ri,Cp)):void 0}function ta(ft){switch(ft.kind){case 217:return ta(ft.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function ts(ft,Qt,he,wt){if(ft===Qt)return!0;let oe=co(ft)+","+co(Qt),Ue=he.get(oe);if(Ue!==void 0)return Ue;he.set(oe,!1);let pt=!!ft.declarations&&ft.declarations.some(vt=>_4(vt).some($t=>{let Qe=wt.getTypeAtLocation($t);return!!Qe&&!!Qe.symbol&&ts(Qe.symbol,Qt,he,wt)}));return he.set(oe,pt),pt}function Gt(ft){let Qt=ZF(ft,!1);if(!Qt)return;let he=256;switch(Qt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:he&=E1(Qt),Qt=Qt.parent;break;default:return}let wt=Qt.getSourceFile(),oe=Bi(ve(wt,"super",Qt),Ue=>{if(Ue.kind!==108)return;let pt=ZF(Ue,!1);return pt&&Vs(pt)===!!he&&pt.parent.symbol===Qt.symbol?J0(Ue):void 0});return[{definition:{type:0,symbol:Qt.symbol},references:oe}]}function hi(ft){return ft.kind===80&&ft.parent.kind===169&&ft.parent.name===ft}function $a(ft,Qt,he){let wt=mf(ft,!1,!1),oe=256;switch(wt.kind){case 174:case 173:if(Lm(wt)){oe&=E1(wt),wt=wt.parent;break}case 172:case 171:case 176:case 177:case 178:oe&=E1(wt),wt=wt.parent;break;case 307:if(Du(wt)||hi(ft))return;case 262:case 218:break;default:return}let Ue=li(wt.kind===307?Qt:[wt.getSourceFile()],vt=>(he.throwIfCancellationRequested(),ve(vt,"this",ba(wt)?vt:wt).filter($t=>{if(!lA($t))return!1;let Qe=mf($t,!1,!1);if(!qg(Qe))return!1;switch(wt.kind){case 218:case 262:return wt.symbol===Qe.symbol;case 174:case 173:return Lm(wt)&&wt.symbol===Qe.symbol;case 231:case 263:case 210:return Qe.parent&&qg(Qe.parent)&&wt.symbol===Qe.parent.symbol&&Vs(Qe)===!!oe;case 307:return Qe.kind===307&&!Du(Qe)&&!hi($t)}}))).map(vt=>J0(vt));return[{definition:{type:3,node:jr(Ue,vt=>Da(vt.node.parent)?vt.node:void 0)||ft},references:Ue}]}function ui(ft,Qt,he,wt){let oe=pU(ft,he),Ue=li(Qt,pt=>(wt.throwIfCancellationRequested(),Bi(ve(pt,ft.text),vt=>{if(Ho(vt)&&vt.text===ft.text)if(oe){let $t=pU(vt,he);if(oe!==he.getStringType()&&(oe===$t||Wn(vt,he)))return J0(vt,2)}else return Bk(vt)&&!Fk(vt,pt)?void 0:J0(vt,2)})));return[{definition:{type:4,node:ft},references:Ue}]}function Wn(ft,Qt){if(vf(ft.parent))return Qt.getPropertyOfType(Qt.getTypeAtLocation(ft.parent.parent),ft.text)}function Gi(ft,Qt,he,wt,oe,Ue){let pt=[];return at(ft,Qt,he,wt,!(wt&&oe),(vt,$t,Qe)=>{Qe&&Cr(ft)!==Cr(Qe)&&(Qe=void 0),pt.push(Qe||$t||vt)},()=>!Ue),pt}function at(ft,Qt,he,wt,oe,Ue,pt){let vt=LR(Qt);if(vt){let lr=he.getShorthandAssignmentValueSymbol(Qt.parent);if(lr&&wt)return Ue(lr,void 0,void 0,3);let In=he.getContextualType(vt.parent),We=In&&jr(a$(vt,he,In,!0),Ke=>Xt(Ke,4));if(We)return We;let qt=Y(Qt,he),ke=qt&&Ue(qt,void 0,void 0,4);if(ke)return ke;let $=lr&&Ue(lr,void 0,void 0,3);if($)return $}let $t=l(Qt,ft,he);if($t){let lr=Ue($t,void 0,void 0,1);if(lr)return lr}let Qe=Xt(ft);if(Qe)return Qe;if(ft.valueDeclaration&&L_(ft.valueDeclaration,ft.valueDeclaration.parent)){let lr=he.getSymbolsOfParameterPropertyDeclaration(Js(ft.valueDeclaration,Da),ft.name);return I.assert(lr.length===2&&!!(lr[0].flags&1)&&!!(lr[1].flags&4)),Xt(ft.flags&1?lr[1]:lr[0])}let Lt=Zc(ft,281);if(!wt||Lt&&!Lt.propertyName){let lr=Lt&&he.getExportSpecifierLocalTargetSymbol(Lt);if(lr){let In=Ue(lr,void 0,void 0,1);if(In)return In}}if(!wt){let lr;return oe?lr=vR(Qt.parent)?TU(he,Qt.parent):void 0:lr=ut(ft,he),lr&&Xt(lr,4)}if(I.assert(wt),oe){let lr=ut(ft,he);return lr&&Xt(lr,4)}function Xt(lr,In){return jr(he.getRootSymbols(lr),We=>Ue(lr,We,void 0,In)||(We.parent&&We.parent.flags&96&&pt(We)?It(We.parent,We.name,he,qt=>Ue(lr,We,qt,In)):void 0))}function ut(lr,In){let We=Zc(lr,208);if(We&&vR(We))return TU(In,We)}}function It(ft,Qt,he,wt){let oe=new Set;return Ue(ft);function Ue(pt){if(!(!(pt.flags&96)||!Jm(oe,pt)))return jr(pt.declarations,vt=>jr(_4(vt),$t=>{let Qe=he.getTypeAtLocation($t),Lt=Qe&&Qe.symbol&&he.getPropertyOfType(Qe,Qt);return Qe&&Lt&&(jr(he.getRootSymbols(Lt),wt)||Ue(Qe.symbol))}))}}function Cr(ft){return ft.valueDeclaration?!!(gf(ft.valueDeclaration)&256):!1}function wn(ft,Qt,he,wt){let{checker:oe}=wt;return at(Qt,he,oe,!1,wt.options.use!==2||!!wt.options.providePrefixAndSuffixTextForRename,(Ue,pt,vt,$t)=>(vt&&Cr(Qt)!==Cr(vt)&&(vt=void 0),ft.includes(vt||pt||Ue)?{symbol:pt&&!(Tl(Ue)&6)?pt:Ue,kind:$t}:void 0),Ue=>!(ft.parents&&!ft.parents.some(pt=>ts(Ue.parent,pt,wt.inheritsFromCache,oe))))}function Di(ft,Qt){let he=iC(ft),{declarations:wt}=Qt;if(wt){let oe;do{oe=he;for(let Ue of wt){let pt=nU(Ue);pt&he&&(he|=pt)}}while(he!==oe)}return he}e.getIntersectingMeaningFromDeclarations=Di;function Pi(ft){return ft.flags&33554432?!(Cp(ft)||Wm(ft)):n4(ft)?k1(ft):Dc(ft)?!!ft.body:Ri(ft)||jF(ft)}function da(ft,Qt,he){let wt=Qt.getSymbolAtLocation(ft),oe=Qt.getShorthandAssignmentValueSymbol(wt.valueDeclaration);if(oe)for(let Ue of oe.getDeclarations())nU(Ue)&1&&he(Ue)}e.getReferenceEntriesForShorthandPropertyAssignment=da;function ks(ft,Qt,he){xs(ft,wt=>{wt.kind===Qt&&he(wt),ks(wt,Qt,he)})}function no(ft){return aX(aU(ft).parent)}function Vr(ft,Qt,he){let wt=cA(ft)?ft.parent:void 0,oe=wt&&he.getTypeAtLocation(wt.expression),Ue=Bi(oe&&(oe.isUnionOrIntersection()?oe.types:oe.symbol===Qt.parent?void 0:[oe]),pt=>pt.symbol&&pt.symbol.flags&96?pt.symbol:void 0);return Ue.length===0?void 0:Ue}function _s(ft){return ft.use===2&&ft.providePrefixAndSuffixTextForRename}})(tD||(tD={}));var wA={};w(wA,{createDefinitionInfo:()=>KR,getDefinitionAndBoundSpan:()=>jJt,getDefinitionAtPosition:()=>jQe,getReferenceAtPosition:()=>BQe,getTypeDefinitionAtPosition:()=>MJt});function jQe(e,t,n,i,s){var l;let p=BQe(t,n,e),g=p&&[zJt(p.reference.fileName,p.fileName,p.unverified)]||ce;if(p?.file)return g;let m=r_(t,n);if(m===t)return;let{parent:x}=m,b=e.getTypeChecker();if(m.kind===164||Ye(m)&&wz(x)&&x.tagName===m){let L=AJt(b,m);if(L!==void 0||m.kind!==164)return L||ce}if(pR(m)){let L=sU(m.parent,m.text);return L?[L2e(b,L,"label",m.text,void 0)]:void 0}switch(m.kind){case 90:if(!r3(m.parent))break;case 84:let L=Br(m.parent,e3);if(L)return[JJt(L,t)];break}let S;switch(m.kind){case 107:case 135:case 127:S=Dc;let L=Br(m,S);return L?[q2e(b,L)]:void 0}if(bE(m)&&Al(m.parent)){let L=m.parent.parent,{symbol:W,failedAliasResolution:z}=Gne(L,b,s),H=Cn(L.members,Al),X=W?b.symbolToString(W,L):"",ne=m.getSourceFile();return Dt(H,ae=>{let{pos:Y}=Fh(ae);return Y=yo(ne.text,Y),L2e(b,ae,"constructor","static {}",X,!1,z,{start:Y,length:6})})}let{symbol:P,failedAliasResolution:E}=Gne(m,b,s),N=m;if(i&&E){let L=Ge([m,...P?.declarations||ce],z=>Br(z,Xde)),W=L&&GP(L);W&&({symbol:P,failedAliasResolution:E}=Gne(W,b,s),N=W)}if(!P&&SU(N)){let L=(l=e.getResolvedModuleFromModuleSpecifier(N,t))==null?void 0:l.resolvedModule;if(L)return[{name:N.text,fileName:L.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Sp(0,0),failedAliasResolution:E,isAmbient:Wu(L.resolvedFileName),unverified:N!==m}]}if(oo(m)&&(ou(x)||Gu(x))&&(P=x.symbol),!P)return ya(g,LJt(m,b));if(i&&sn(P.declarations,L=>L.getSourceFile().fileName===t.fileName))return;let F=UJt(b,m);if(F&&!(Qp(m.parent)&&$Jt(F))){let L=q2e(b,F,E),W=H=>H!==F;if(b.getRootSymbols(P).some(H=>NJt(H,F))){if(!ul(F))return[L];W=H=>H!==F&&(bu(H)||vu(H))}let z=i8(b,P,m,E,W)||ce;return m.kind===108?[L,...z]:[...z,L]}if(m.parent.kind===304){let L=b.getShorthandAssignmentValueSymbol(P.valueDeclaration),W=L?.declarations?L.declarations.map(z=>KR(z,b,L,m,!1,E)):ce;return ya(W,LQe(b,m))}if(su(m)&&Do(x)&&Nd(x.parent)&&m===(x.propertyName||x.name)){let L=yR(m),W=b.getTypeAtLocation(x.parent);return L===void 0?ce:li(W.isUnion()?W.types:[W],z=>{let H=z.getProperty(L);return H&&i8(b,H,m)})}let M=LQe(b,m);return ya(g,M.length?M:i8(b,P,m,E))}function NJt(e,t){var n;return e===t.symbol||e===t.symbol.parent||Yu(t.parent)||!_2(t.parent)&&e===((n=_i(t.parent,qg))==null?void 0:n.symbol)}function LQe(e,t){let n=LR(t);if(n){let i=n&&e.getContextualType(n.parent);if(i)return li(a$(n,e,i,!1),s=>i8(e,s,t))}return ce}function AJt(e,t){let n=Br(t,ou);if(!(n&&n.name))return;let i=Br(n,Ri);if(!i)return;let s=Dh(i);if(!s)return;let l=Qo(s.expression),p=vu(l)?l.symbol:e.getSymbolAtLocation(l);if(!p)return;let g=ka(VP(n.name)),m=Pu(n)?e.getPropertyOfType(e.getTypeOfSymbol(p),g):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(p),g);if(m)return i8(e,m,t)}function BQe(e,t,n){var i,s;let l=QR(e.referencedFiles,t);if(l){let m=n.getSourceFileFromReference(e,l);return m&&{reference:l,fileName:m.fileName,file:m,unverified:!1}}let p=QR(e.typeReferenceDirectives,t);if(p){let m=(i=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(p,e))==null?void 0:i.resolvedTypeReferenceDirective,x=m&&n.getSourceFile(m.resolvedFileName);return x&&{reference:p,fileName:x.fileName,file:x,unverified:!1}}let g=QR(e.libReferenceDirectives,t);if(g){let m=n.getLibFileFromReference(g);return m&&{reference:g,fileName:m.fileName,file:m,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let m=pA(e,t),x;if(SU(m)&&Hu(m.text)&&(x=n.getResolvedModuleFromModuleSpecifier(m,e))){let b=(s=x.resolvedModule)==null?void 0:s.resolvedFileName,S=b||Zb(Ei(e.fileName),m.text);return{file:n.getSourceFile(S),fileName:S,reference:{pos:m.getStart(),end:m.getEnd(),fileName:m.text},unverified:!b}}}}var qQe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function IJt(e,t){let n=t.symbol.name;if(!qQe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.target.symbol}function JQe(e,t){if(!t.aliasSymbol)return!1;let n=t.aliasSymbol.name;if(!qQe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function FJt(e,t,n,i){var s,l;if(oi(t)&4&&IJt(e,t))return GR(e.getTypeArguments(t)[0],e,n,i);if(JQe(e,t)&&t.aliasTypeArguments)return GR(t.aliasTypeArguments[0],e,n,i);if(oi(t)&32&&t.target&&JQe(e,t.target)){let p=(l=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:l[0];if(p&&Wm(p)&&W_(p.type)&&p.type.typeArguments)return GR(e.getTypeAtLocation(p.type.typeArguments[0]),e,n,i)}return[]}function MJt(e,t,n){let i=r_(t,n);if(i===t)return;if(aN(i.parent)&&i.parent.name===i)return GR(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:s,failedAliasResolution:l}=Gne(i,e,!1);if(oo(i)&&(ou(i.parent)||Gu(i.parent))&&(s=i.parent.symbol,l=!1),!s)return;let p=e.getTypeOfSymbolAtLocation(s,i),g=RJt(s,p,e),m=g&&GR(g,e,i,l),[x,b]=m&&m.length!==0?[g,m]:[p,GR(p,e,i,l)];return b.length?[...FJt(e,x,i,l),...b]:!(s.flags&111551)&&s.flags&788968?i8(e,Tp(s,e),i,l):void 0}function GR(e,t,n,i){return li(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&i8(t,s.symbol,n,i))}function RJt(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Ui(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(ho(i))}}function jJt(e,t,n){let i=jQe(e,t,n);if(!i||i.length===0)return;let s=QR(t.referencedFiles,n)||QR(t.typeReferenceDirectives,n)||QR(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:z1(s)};let l=r_(t,n),p=Sp(l.getStart(),l.getWidth());return{definitions:i,textSpan:p}}function LJt(e,t){return Bi(t.getIndexInfosAtLocation(e),n=>n.declaration&&q2e(t,n.declaration))}function Gne(e,t,n){let i=t.getSymbolAtLocation(e),s=!1;if(i?.declarations&&i.flags&2097152&&!n&&BJt(e,i.declarations[0])){let l=t.getAliasedSymbol(i);if(l.declarations)return{symbol:l};s=!0}return{symbol:i,failedAliasResolution:s}}function BJt(e,t){return e.kind!==80&&(e.kind!==11||!ax(e.parent))?!1:e.parent===t?!0:t.kind!==274}function qJt(e){if(!c4(e))return!1;let t=Br(e,n=>Yu(n)?!0:c4(n)?!1:"quit");return!!t&&$l(t)===5}function i8(e,t,n,i,s){let l=s!==void 0?Cn(t.declarations,s):t.declarations,p=!s&&(x()||b());if(p)return p;let g=Cn(l,P=>!qJt(P)),m=Pt(g)?g:l;return Dt(m,P=>KR(P,e,t,n,!1,i));function x(){if(t.flags&32&&!(t.flags&19)&&(F3(n)||n.kind===137)){let P=Ir(l,Ri);return P&&S(P.members,!0)}}function b(){return gte(n)||Tte(n)?S(l,!1):void 0}function S(P,E){if(!P)return;let N=P.filter(E?ul:Ss),F=N.filter(M=>!!M.body);return N.length?F.length!==0?F.map(M=>KR(M,e,t,n)):[KR(ao(N),e,t,n,!1,i)]:void 0}}function KR(e,t,n,i,s,l){let p=t.symbolToString(n),g=$1.getSymbolKind(t,n,i),m=n.parent?t.symbolToString(n.parent,i):"";return L2e(t,e,g,p,m,s,l)}function L2e(e,t,n,i,s,l,p,g){let m=t.getSourceFile();if(!g){let x=ls(t)||t;g=Lf(x,m)}return{fileName:m.fileName,textSpan:g,kind:n,name:i,containerKind:void 0,containerName:s,...qc.toContextSpan(g,m,qc.getContextNode(t)),isLocal:!B2e(e,t),isAmbient:!!(t.flags&33554432),unverified:l,failedAliasResolution:p}}function JJt(e,t){let n=qc.getContextNode(e),i=Lf(M2e(n)?n.start:n,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...qc.toContextSpan(i,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function B2e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(k1(t.parent)&&t.parent.initializer===t)return B2e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(z_(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return B2e(e,t.parent);default:return!1}}function q2e(e,t,n){return KR(t,e,t.symbol,t,!1,n)}function QR(e,t){return Ir(e,n=>SF(n,t))}function zJt(e,t,n){return{fileName:t,textSpan:Ul(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function WJt(e){let t=Br(e,i=>!cA(i)),n=t?.parent;return n&&_2(n)&&Gq(n)===t?n:void 0}function UJt(e,t){let n=WJt(t),i=n&&e.getResolvedSignature(n);return _i(i&&i.declaration,s=>Ss(s)&&!Iy(s))}function $Jt(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}var Kne={};w(Kne,{provideInlayHints:()=>KJt});var VJt=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function HJt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function GJt(e){return e.includeInlayParameterNameHints==="literals"}function J2e(e){return e.interactiveInlayHints===!0}function KJt(e){let{file:t,program:n,span:i,cancellationToken:s,preferences:l}=e,p=t.text,g=n.getCompilerOptions(),m=H_(t,l),x=n.getTypeChecker(),b=[];return S(t),b;function S(ze){if(!(!ze||ze.getFullWidth()===0)){switch(ze.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:s.throwIfCancellationRequested()}if(TF(i,ze.pos,ze.getFullWidth())&&!(Yi(ze)&&!F0(ze)))return l.includeInlayVariableTypeHints&&Ui(ze)||l.includeInlayPropertyDeclarationTypeHints&&is(ze)?W(ze):l.includeInlayEnumMemberValueHints&&L1(ze)?M(ze):HJt(l)&&(Ls(ze)||L2(ze))?z(ze):(l.includeInlayFunctionParameterTypeHints&&Dc(ze)&&QJ(ze)&&Ee(ze),l.includeInlayFunctionLikeReturnTypeHints&&P(ze)&&ae(ze)),xs(ze,S)}}function P(ze){return Bc(ze)||Ic(ze)||jl(ze)||wl(ze)||mm(ze)}function E(ze,ge,Me,Te){let gt=`${Te?"...":""}${ze}`,Tt;J2e(l)?(Tt=[it(gt,ge),{text:":"}],gt=""):gt+=":",b.push({text:gt,position:Me,kind:"Parameter",whitespaceAfter:!0,displayParts:Tt})}function N(ze,ge){b.push({text:typeof ze=="string"?`: ${ze}`:"",displayParts:typeof ze=="string"?void 0:[{text:": "},...ze],position:ge,kind:"Type",whitespaceBefore:!0})}function F(ze,ge){b.push({text:`= ${ze}`,position:ge,kind:"Enum",whitespaceBefore:!0})}function M(ze){if(ze.initializer)return;let ge=x.getConstantValue(ze);ge!==void 0&&F(ge.toString(),ze.end)}function L(ze){return ze.symbol&&ze.symbol.flags&1536}function W(ze){if(ze.initializer===void 0&&!(is(ze)&&!(x.getTypeAtLocation(ze).flags&1))||Os(ze.name)||Ui(ze)&&!Ne(ze)||hu(ze))return;let Me=x.getTypeAtLocation(ze);if(L(Me))return;let Te=ve(Me);if(Te){let gt=typeof Te=="string"?Te:Te.map(xe=>xe.text).join("");if(l.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&cg(ze.name.getText(),gt))return;N(Te,ze.name.end)}}function z(ze){let ge=ze.arguments;if(!ge||!ge.length)return;let Me=x.getResolvedSignature(ze);if(Me===void 0)return;let Te=0;for(let gt of ge){let Tt=Qo(gt);if(GJt(l)&&!ne(Tt)){Te++;continue}let xe=0;if(gm(Tt)){let pe=x.getTypeAtLocation(Tt.expression);if(x.isTupleType(pe)){let{elementFlags:He,fixedLength:qe}=pe.target;if(qe===0)continue;let je=Va(He,jt=>!(jt&1));(je<0?qe:je)>0&&(xe=je<0?qe:je)}}let nt=x.getParameterIdentifierInfoAtPosition(Me,Te);if(Te=Te+(xe||1),nt){let{parameter:pe,parameterName:He,isRestParameter:qe}=nt;if(!(l.includeInlayParameterNameHintsWhenArgumentMatchesName||!H(Tt,He))&&!qe)continue;let st=ka(He);if(X(Tt,st))continue;E(st,pe,gt.getStart(),qe)}}}function H(ze,ge){return Ye(ze)?ze.text===ge:ai(ze)?ze.name.text===ge:!1}function X(ze,ge){if(!m_(ge,Po(g),j5(t.scriptKind)))return!1;let Me=vv(p,ze.pos);if(!Me?.length)return!1;let Te=VJt(ge);return Pt(Me,gt=>Te.test(p.substring(gt.pos,gt.end)))}function ne(ze){switch(ze.kind){case 224:{let ge=ze.operand;return hk(ge)||Ye(ge)&&B4(ge.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let ge=ze.escapedText;return ie(ge)||B4(ge)}}return hk(ze)}function ae(ze){if(Bc(ze)&&!gc(ze,21,t)||dd(ze)||!ze.body)return;let Me=x.getSignatureFromDeclaration(ze);if(!Me)return;let Te=x.getTypePredicateOfSignature(Me);if(Te?.type){let xe=Pe(Te);if(xe){N(xe,Y(ze));return}}let gt=x.getReturnTypeOfSignature(Me);if(L(gt))return;let Tt=ve(gt);Tt&&N(Tt,Y(ze))}function Y(ze){let ge=gc(ze,22,t);return ge?ge.end:ze.parameters.end}function Ee(ze){let ge=x.getSignatureFromDeclaration(ze);if(!ge)return;let Me=0;for(let Te of ze.parameters)Ne(Te)&&fe(Te,gx(Te)?ge.thisParameter:ge.parameters[Me]),!gx(Te)&&Me++}function fe(ze,ge){if(hu(ze)||ge===void 0)return;let Te=te(ge);Te!==void 0&&N(Te,ze.questionToken?ze.questionToken.end:ze.name.end)}function te(ze){let ge=ze.valueDeclaration;if(!ge||!Da(ge))return;let Me=x.getTypeOfSymbolAtLocation(ze,ge);if(!L(Me))return ve(Me)}function de(ze){let Me=G2();return eN(Te=>{let gt=x.typeToTypeNode(ze,void 0,71286784);I.assertIsDefined(gt,"should always get typenode"),Me.writeNode(4,gt,t,Te)})}function me(ze){let Me=G2();return eN(Te=>{let gt=x.typePredicateToTypePredicateNode(ze,void 0,71286784);I.assertIsDefined(gt,"should always get typePredicateNode"),Me.writeNode(4,gt,t,Te)})}function ve(ze){if(!J2e(l))return de(ze);let Me=x.typeToTypeNode(ze,void 0,71286784);return I.assertIsDefined(Me,"should always get typeNode"),Oe(Me)}function Pe(ze){if(!J2e(l))return me(ze);let Me=x.typePredicateToTypePredicateNode(ze,void 0,71286784);return I.assertIsDefined(Me,"should always get typenode"),Oe(Me)}function Oe(ze){let ge=[];return Me(ze),ge;function Me(xe){var nt,pe;if(!xe)return;let He=to(xe.kind);if(He){ge.push({text:He});return}if(hk(xe)){ge.push({text:Tt(xe)});return}switch(xe.kind){case 80:I.assertNode(xe,Ye);let qe=fi(xe),je=xe.symbol&&xe.symbol.declarations&&xe.symbol.declarations.length&&ls(xe.symbol.declarations[0]);je?ge.push(it(qe,je)):ge.push({text:qe});break;case 166:I.assertNode(xe,If),Me(xe.left),ge.push({text:"."}),Me(xe.right);break;case 182:I.assertNode(xe,SE),xe.assertsModifier&&ge.push({text:"asserts "}),Me(xe.parameterName),xe.type&&(ge.push({text:" is "}),Me(xe.type));break;case 183:I.assertNode(xe,W_),Me(xe.typeName),xe.typeArguments&&(ge.push({text:"<"}),gt(xe.typeArguments,", "),ge.push({text:">"}));break;case 168:I.assertNode(xe,Hc),xe.modifiers&>(xe.modifiers," "),Me(xe.name),xe.constraint&&(ge.push({text:" extends "}),Me(xe.constraint)),xe.default&&(ge.push({text:" = "}),Me(xe.default));break;case 169:I.assertNode(xe,Da),xe.modifiers&>(xe.modifiers," "),xe.dotDotDotToken&&ge.push({text:"..."}),Me(xe.name),xe.questionToken&&ge.push({text:"?"}),xe.type&&(ge.push({text:": "}),Me(xe.type));break;case 185:I.assertNode(xe,DN),ge.push({text:"new "}),Te(xe),ge.push({text:" => "}),Me(xe.type);break;case 186:I.assertNode(xe,M2),ge.push({text:"typeof "}),Me(xe.exprName),xe.typeArguments&&(ge.push({text:"<"}),gt(xe.typeArguments,", "),ge.push({text:">"}));break;case 187:I.assertNode(xe,Ff),ge.push({text:"{"}),xe.members.length&&(ge.push({text:" "}),gt(xe.members,"; "),ge.push({text:" "})),ge.push({text:"}"});break;case 188:I.assertNode(xe,cM),Me(xe.elementType),ge.push({text:"[]"});break;case 189:I.assertNode(xe,TE),ge.push({text:"["}),gt(xe.elements,", "),ge.push({text:"]"});break;case 202:I.assertNode(xe,ON),xe.dotDotDotToken&&ge.push({text:"..."}),Me(xe.name),xe.questionToken&&ge.push({text:"?"}),ge.push({text:": "}),Me(xe.type);break;case 190:I.assertNode(xe,gz),Me(xe.type),ge.push({text:"?"});break;case 191:I.assertNode(xe,hz),ge.push({text:"..."}),Me(xe.type);break;case 192:I.assertNode(xe,M1),gt(xe.types," | ");break;case 193:I.assertNode(xe,wE),gt(xe.types," & ");break;case 194:I.assertNode(xe,R2),Me(xe.checkType),ge.push({text:" extends "}),Me(xe.extendsType),ge.push({text:" ? "}),Me(xe.trueType),ge.push({text:" : "}),Me(xe.falseType);break;case 195:I.assertNode(xe,qk),ge.push({text:"infer "}),Me(xe.typeParameter);break;case 196:I.assertNode(xe,Jk),ge.push({text:"("}),Me(xe.type),ge.push({text:")"});break;case 198:I.assertNode(xe,MS),ge.push({text:`${to(xe.operator)} `}),Me(xe.type);break;case 199:I.assertNode(xe,j2),Me(xe.objectType),ge.push({text:"["}),Me(xe.indexType),ge.push({text:"]"});break;case 200:I.assertNode(xe,zk),ge.push({text:"{ "}),xe.readonlyToken&&(xe.readonlyToken.kind===40?ge.push({text:"+"}):xe.readonlyToken.kind===41&&ge.push({text:"-"}),ge.push({text:"readonly "})),ge.push({text:"["}),Me(xe.typeParameter),xe.nameType&&(ge.push({text:" as "}),Me(xe.nameType)),ge.push({text:"]"}),xe.questionToken&&(xe.questionToken.kind===40?ge.push({text:"+"}):xe.questionToken.kind===41&&ge.push({text:"-"}),ge.push({text:"?"})),ge.push({text:": "}),xe.type&&Me(xe.type),ge.push({text:"; }"});break;case 201:I.assertNode(xe,R1),Me(xe.literal);break;case 184:I.assertNode(xe,Iy),Te(xe),ge.push({text:" => "}),Me(xe.type);break;case 205:I.assertNode(xe,jh),xe.isTypeOf&&ge.push({text:"typeof "}),ge.push({text:"import("}),Me(xe.argument),xe.assertions&&(ge.push({text:", { assert: "}),gt(xe.assertions.assertClause.elements,", "),ge.push({text:" }"})),ge.push({text:")"}),xe.qualifier&&(ge.push({text:"."}),Me(xe.qualifier)),xe.typeArguments&&(ge.push({text:"<"}),gt(xe.typeArguments,", "),ge.push({text:">"}));break;case 171:I.assertNode(xe,vf),(nt=xe.modifiers)!=null&&nt.length&&(gt(xe.modifiers," "),ge.push({text:" "})),Me(xe.name),xe.questionToken&&ge.push({text:"?"}),xe.type&&(ge.push({text:": "}),Me(xe.type));break;case 181:I.assertNode(xe,wx),ge.push({text:"["}),gt(xe.parameters,", "),ge.push({text:"]"}),xe.type&&(ge.push({text:": "}),Me(xe.type));break;case 173:I.assertNode(xe,yg),(pe=xe.modifiers)!=null&&pe.length&&(gt(xe.modifiers," "),ge.push({text:" "})),Me(xe.name),xe.questionToken&&ge.push({text:"?"}),Te(xe),xe.type&&(ge.push({text:": "}),Me(xe.type));break;case 179:I.assertNode(xe,xE),Te(xe),xe.type&&(ge.push({text:": "}),Me(xe.type));break;case 207:I.assertNode(xe,j1),ge.push({text:"["}),gt(xe.elements,", "),ge.push({text:"]"});break;case 206:I.assertNode(xe,Nd),ge.push({text:"{"}),xe.elements.length&&(ge.push({text:" "}),gt(xe.elements,", "),ge.push({text:" "})),ge.push({text:"}"});break;case 208:I.assertNode(xe,Do),Me(xe.name);break;case 224:I.assertNode(xe,jS),ge.push({text:to(xe.operator)}),Me(xe.operand);break;case 203:I.assertNode(xe,Nhe),Me(xe.head),xe.templateSpans.forEach(Me);break;case 16:I.assertNode(xe,yE),ge.push({text:Tt(xe)});break;case 204:I.assertNode(xe,pY),Me(xe.type),Me(xe.literal);break;case 17:I.assertNode(xe,oY),ge.push({text:Tt(xe)});break;case 18:I.assertNode(xe,fz),ge.push({text:Tt(xe)});break;case 197:I.assertNode(xe,X4),ge.push({text:"this"});break;default:I.failBadSyntaxKind(xe)}}function Te(xe){xe.typeParameters&&(ge.push({text:"<"}),gt(xe.typeParameters,", "),ge.push({text:">"})),ge.push({text:"("}),gt(xe.parameters,", "),ge.push({text:")"})}function gt(xe,nt){xe.forEach((pe,He)=>{He>0&&ge.push({text:nt}),Me(pe)})}function Tt(xe){switch(xe.kind){case 11:return m===0?`'${Ay(xe.text,39)}'`:`"${Ay(xe.text,34)}"`;case 16:case 17:case 18:{let nt=xe.rawText??UQ(Ay(xe.text,96));switch(xe.kind){case 16:return"`"+nt+"${";case 17:return"}"+nt+"${";case 18:return"}"+nt+"`"}}}return xe.text}}function ie(ze){return ze==="undefined"}function Ne(ze){if((OS(ze)||Ui(ze)&&iN(ze))&&ze.initializer){let ge=Qo(ze.initializer);return!(ne(ge)||L2(ge)||So(ge)||d2(ge))}return!0}function it(ze,ge){let Me=ge.getSourceFile();return{text:ze,span:Lf(ge,Me),file:Me.fileName}}}var aT={};w(aT,{getDocCommentTemplateAtPosition:()=>szt,getJSDocParameterNameCompletionDetails:()=>azt,getJSDocParameterNameCompletions:()=>izt,getJSDocTagCompletionDetails:()=>GQe,getJSDocTagCompletions:()=>nzt,getJSDocTagNameCompletionDetails:()=>rzt,getJSDocTagNameCompletions:()=>tzt,getJsDocCommentsFromDeclarations:()=>QJt,getJsDocTagsFromDeclarations:()=>ZJt});var zQe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],WQe,UQe;function QJt(e,t){let n=[];return Gte(e,i=>{for(let s of YJt(i)){let l=Gg(s)&&s.tags&&Ir(s.tags,g=>g.kind===327&&(g.tagName.escapedText==="inheritDoc"||g.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!l||Gg(s)&&i.kind!==346&&i.kind!==338&&s.tags&&s.tags.some(g=>g.kind===346||g.kind===338)&&!s.tags.some(g=>g.kind===341||g.kind===342))continue;let p=s.comment?kA(s.comment,t):[];l&&l.comment&&(p=p.concat(kA(l.comment,t))),Ta(n,p,XJt)||n.push(p)}}),js(ns(n,[mA()]))}function XJt(e,t){return Rp(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function YJt(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(BN(e.parent))return[e.parent.parent];default:return DQ(e)}}function ZJt(e,t){let n=[];return Gte(e,i=>{let s=SS(i);if(!(s.some(l=>l.kind===346||l.kind===338)&&!s.some(l=>l.kind===341||l.kind===342)))for(let l of s)n.push({name:l.tagName.text,text:HQe(l,t)}),n.push(...$Qe(VQe(l),t))}),n}function $Qe(e,t){return li(e,n=>ya([{name:n.tagName.text,text:HQe(n,t)}],$Qe(VQe(n),t)))}function VQe(e){return HI(e)&&e.isNameFirst&&e.typeExpression&&Hk(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function kA(e,t){return typeof e=="string"?[Rd(e)]:li(e,n=>n.kind===321?[Rd(n.text)]:bbe(n,t))}function HQe(e,t){let{comment:n,kind:i}=e,s=ezt(i);switch(i){case 349:let g=e.typeExpression;return g?l(g):n===void 0?void 0:kA(n,t);case 329:return l(e.class);case 328:return l(e.class);case 345:let m=e,x=[];if(m.constraint&&x.push(Rd(m.constraint.getText())),Re(m.typeParameters)){Re(x)&&x.push(Il());let S=m.typeParameters[m.typeParameters.length-1];Ge(m.typeParameters,P=>{x.push(s(P.getText())),S!==P&&x.push(tf(28),Il())})}return n&&x.push(Il(),...kA(n,t)),x;case 344:case 350:return l(e.typeExpression);case 346:case 338:case 348:case 341:case 347:let{name:b}=e;return b?l(b):n===void 0?void 0:kA(n,t);default:return n===void 0?void 0:kA(n,t)}function l(g){return p(g.getText())}function p(g){return n?g.match(/^https?$/)?[Rd(g),...kA(n,t)]:[s(g),Il(),...kA(n,t)]:[Rd(g)]}}function ezt(e){switch(e){case 341:return mbe;case 348:return gbe;case 345:return ybe;case 346:case 338:return hbe;default:return Rd}}function tzt(){return WQe||(WQe=Dt(zQe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:eD.SortText.LocationPriority})))}var rzt=GQe;function nzt(){return UQe||(UQe=Dt(zQe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:eD.SortText.LocationPriority})))}function GQe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Rd(e)],documentation:ce,tags:void 0,codeActions:void 0}}function izt(e){if(!Ye(e.name))return ce;let t=e.name.text,n=e.parent,i=n.parent;return Ss(i)?Bi(i.parameters,s=>{if(!Ye(s.name))return;let l=s.name.text;if(!(n.tags.some(p=>p!==e&&Ad(p)&&Ye(p.name)&&p.name.escapedText===l)||t!==void 0&&!La(l,t)))return{name:l,kind:"parameter",kindModifiers:"",sortText:eD.SortText.LocationPriority}}):[]}function azt(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Rd(e)],documentation:ce,tags:void 0,codeActions:void 0}}function szt(e,t,n,i){let s=ca(t,n),l=Br(s,Gg);if(l&&(l.comment!==void 0||Re(l.tags)))return;let p=s.getStart(t);if(!l&&p<n)return;let g=uzt(s,i);if(!g)return;let{commentOwner:m,parameters:x,hasReturn:b}=g,S=fd(m)&&m.jsDoc?m.jsDoc:void 0,P=dc(S);if(m.getStart(t)<n||P&&l&&P!==l)return;let E=ozt(t,n),N=Iv(t.fileName),F=(x?czt(x||[],N,E,e):"")+(b?lzt(E,e):""),M="/**",L=" */",W=Re(SS(m))>0;if(F&&!W){let z=M+e+E+" * ",H=p===n?e+E:"";return{newText:z+e+F+E+L+H,caretOffset:z.length}}return{newText:M+L,caretOffset:3}}function ozt(e,t){let{text:n}=e,i=Hm(t,e),s=i;for(;s<=t&&Th(n.charCodeAt(s));s++);return n.slice(i,s)}function czt(e,t,n,i){return e.map(({name:s,dotDotDotToken:l},p)=>{let g=s.kind===80?s.text:"param"+p;return`${n} * @param ${t?l?"{...any} ":"{any} ":""}${g}${i}`}).join("")}function lzt(e,t){return`${e} * @returns${t}`}function uzt(e,t){return Bde(e,n=>z2e(n,t))}function z2e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:b$(n,t)};case 303:return z2e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let s=e;return s.type&&Iy(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:b$(s.type,t)}:{commentOwner:e}}case 243:{let l=e.declarationList.declarations,p=l.length===1&&l[0].initializer?pzt(l[0].initializer):void 0;return p?{commentOwner:e,parameters:p.parameters,hasReturn:b$(p,t)}:{commentOwner:e}}case 307:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return z2e(e.expression,t);case 226:{let s=e;return $l(s)===0?"quit":Ss(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:b$(s.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(Ic(i)||Bc(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:b$(i,t)}}}function b$(e,t){return!!t?.generateReturnInDocTemplate&&(Iy(e)||Bc(e)&&At(e.body)||Dc(e)&&e.body&&Cs(e.body)&&!!_x(e.body,n=>n))}function pzt(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Ir(e.members,ul)}}var Qne={};w(Qne,{mapCode:()=>fzt});function fzt(e,t,n,i,s,l){return Ln.ChangeTracker.with({host:i,formatContext:s,preferences:l},p=>{let g=t.map(x=>_zt(e,x)),m=n&&js(n);for(let x of g)dzt(e,p,x,m)})}function _zt(e,t){let n=[{parse:()=>AE("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:l=>l.statements},{parse:()=>AE("__mapcode_class_content_nodes.ts",`class __class {
|
|
${t}
|
|
}`,e.languageVersion,!0,e.scriptKind),body:l=>l.statements[0].members}],i=[];for(let{parse:l,body:p}of n){let g=l(),m=p(g);if(m.length&&g.parseDiagnostics.length===0)return m;m.length&&i.push({sourceFile:g,body:m})}i.sort((l,p)=>l.sourceFile.parseDiagnostics.length-p.sourceFile.parseDiagnostics.length);let{body:s}=i[0];return s}function dzt(e,t,n,i){ou(n[0])||f2(n[0])?mzt(e,t,n,i):gzt(e,t,n,i)}function mzt(e,t,n,i){let s;if(!i||!i.length?s=Ir(e.statements,Df(Ri,Cp)):s=Ge(i,p=>Br(ca(e,p.start),Df(Ri,Cp))),!s)return;let l=s.members.find(p=>n.some(g=>x$(g,p)));if(l){let p=Ks(s.members,g=>n.some(m=>x$(m,g)));Ge(n,Xne),t.replaceNodeRangeWithNodes(e,l,p,n);return}Ge(n,Xne),t.insertNodesAfter(e,s.members[s.members.length-1],n)}function gzt(e,t,n,i){if(!i?.length){t.insertNodesAtEndOfFile(e,n,!1);return}for(let l of i){let p=Br(ca(e,l.start),g=>Df(Cs,ba)(g)&&Pt(g.statements,m=>n.some(x=>x$(x,m))));if(p){let g=p.statements.find(m=>n.some(x=>x$(x,m)));if(g){let m=Ks(p.statements,x=>n.some(b=>x$(b,x)));Ge(n,Xne),t.replaceNodeRangeWithNodes(e,g,m,n);return}}}let s=e.statements;for(let l of i){let p=Br(ca(e,l.start),Cs);if(p){s=p.statements;break}}Ge(n,Xne),t.insertNodesAfter(e,s[s.length-1],n)}function x$(e,t){var n,i,s,l,p,g;return e.kind!==t.kind?!1:e.kind===176?e.kind===t.kind:Gu(e)&&Gu(t)?e.name.getText()===t.name.getText():LS(e)&&LS(t)||dY(e)&&dY(t)?e.expression.getText()===t.expression.getText():BS(e)&&BS(t)?((n=e.initializer)==null?void 0:n.getText())===((i=t.initializer)==null?void 0:i.getText())&&((s=e.incrementor)==null?void 0:s.getText())===((l=t.incrementor)==null?void 0:l.getText())&&((p=e.condition)==null?void 0:p.getText())===((g=t.condition)==null?void 0:g.getText()):bk(e)&&bk(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Cx(e)&&Cx(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function Xne(e){KQe(e),e.parent=void 0}function KQe(e){e.pos=-1,e.end=-1,e.forEachChild(KQe)}var sT={};w(sT,{compareImportsOrRequireStatements:()=>Q2e,compareModuleSpecifiers:()=>Mzt,getImportDeclarationInsertionIndex:()=>Nzt,getImportSpecifierInsertionIndex:()=>Azt,getNamedImportSpecifierComparerWithDetection:()=>Ozt,getOrganizeImportsStringComparerWithDetection:()=>Dzt,organizeImports:()=>hzt,testCoalesceExports:()=>Fzt,testCoalesceImports:()=>Izt});function hzt(e,t,n,i,s,l){let p=Ln.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),g=l==="SortAndCombine"||l==="All",m=g,x=l==="RemoveUnused"||l==="All",b=e.statements.filter(sl),S=U2e(e,b),{comparersToTest:P,typeOrdersToTest:E}=W2e(s),N=P[0],F={moduleSpecifierComparer:typeof s.organizeImportsIgnoreCase=="boolean"?N:void 0,namedImportComparer:typeof s.organizeImportsIgnoreCase=="boolean"?N:void 0,typeOrder:s.organizeImportsTypeOrder};if(typeof s.organizeImportsIgnoreCase!="boolean"&&({comparer:F.moduleSpecifierComparer}=YQe(S,P)),!F.typeOrder||typeof s.organizeImportsIgnoreCase!="boolean"){let z=G2e(b,P,E);if(z){let{namedImportComparer:H,typeOrder:X}=z;F.namedImportComparer=F.namedImportComparer??H,F.typeOrder=F.typeOrder??X}}S.forEach(z=>L(z,F)),l!=="RemoveUnused"&&vzt(e).forEach(z=>W(z,F.namedImportComparer));for(let z of e.statements.filter(df)){if(!z.body)continue;if(U2e(e,z.body.statements.filter(sl)).forEach(X=>L(X,F)),l!=="RemoveUnused"){let X=z.body.statements.filter(tu);W(X,F.namedImportComparer)}}return p.getChanges();function M(z,H){if(Re(z)===0)return;qn(z[0],1024);let X=m?dS(z,Y=>S$(Y.moduleSpecifier)):[z],ne=g?ff(X,(Y,Ee)=>V2e(Y[0].moduleSpecifier,Ee[0].moduleSpecifier,F.moduleSpecifierComparer??N)):X,ae=li(ne,Y=>S$(Y[0].moduleSpecifier)||Y[0].moduleSpecifier===void 0?H(Y):Y);if(ae.length===0)p.deleteNodes(e,z,{leadingTriviaOption:Ln.LeadingTriviaOption.Exclude,trailingTriviaOption:Ln.TrailingTriviaOption.Include},!0);else{let Y={leadingTriviaOption:Ln.LeadingTriviaOption.Exclude,trailingTriviaOption:Ln.TrailingTriviaOption.Include,suffix:B0(n,t.options)};p.replaceNodeWithNodes(e,z[0],ae,Y);let Ee=p.nodeHasTrailingComment(e,z[0],Y);p.deleteNodes(e,z.slice(1),{trailingTriviaOption:Ln.TrailingTriviaOption.Include},Ee)}}function L(z,H){let X=H.moduleSpecifierComparer??N,ne=H.namedImportComparer??N,ae=H.typeOrder??"last",Y=YR({organizeImportsTypeOrder:ae},ne);M(z,fe=>(x&&(fe=bzt(fe,e,i)),m&&(fe=QQe(fe,X,Y,e)),g&&(fe=ff(fe,(te,de)=>Q2e(te,de,X))),fe))}function W(z,H){let X=YR(s,H);M(z,ne=>XQe(ne,X))}}function W2e(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[K2e(e,e.organizeImportsIgnoreCase)]:[K2e(e,!0),K2e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function U2e(e,t){let n=bv(e.languageVersion,!1,e.languageVariant),i=[],s=0;for(let l of t)i[s]&&yzt(e,l,n)&&s++,i[s]||(i[s]=[]),i[s].push(l);return i}function yzt(e,t,n){let i=t.getFullStart(),s=t.getStart();n.setText(e.text,i,s-i);let l=0;for(;n.getTokenStart()<s;)if(n.scan()===4&&(l++,l>=2))return!0;return!1}function vzt(e){let t=[],n=e.statements,i=Re(n),s=0,l=0;for(;s<i;)if(tu(n[s])){t[l]===void 0&&(t[l]=[]);let p=n[s];if(p.moduleSpecifier)t[l].push(p),s++;else{for(;s<i&&tu(n[s]);)t[l].push(n[s++]);l++}}else s++;return li(t,p=>U2e(e,p))}function bzt(e,t,n){let i=n.getTypeChecker(),s=n.getCompilerOptions(),l=i.getJsxNamespace(t),p=i.getJsxFragmentFactory(t),g=!!(t.transformFlags&2),m=[];for(let b of e){let{importClause:S,moduleSpecifier:P}=b;if(!S){m.push(b);continue}let{name:E,namedBindings:N}=S;if(E&&!x(E)&&(E=void 0),N)if(jv(N))x(N.name)||(N=void 0);else{let F=N.elements.filter(M=>x(M.name));F.length<N.elements.length&&(N=F.length?j.updateNamedImports(N,F):void 0)}E||N?m.push(XR(b,E,N)):Tzt(t,P)&&(t.isDeclarationFile?m.push(j.createImportDeclaration(b.modifiers,void 0,P,void 0)):m.push(b))}return m;function x(b){return g&&(b.text===l||p&&b.text===p)&&dre(s.jsx)||qc.Core.isSymbolReferencedInFile(b,i,t)}}function S$(e){return e!==void 0&&Ho(e)?e.text:void 0}function xzt(e){let t,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let s of e){if(s.importClause===void 0){t=t||s;continue}let l=s.importClause.isTypeOnly?n:i,{name:p,namedBindings:g}=s.importClause;p&&l.defaultImports.push(s),g&&(jv(g)?l.namespaceImports.push(s):l.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:i}}function QQe(e,t,n,i){if(e.length===0)return e;let s=$7(e,p=>{if(p.attributes){let g=p.attributes.token+" ";for(let m of ff(p.attributes.elements,(x,b)=>fp(x.name.text,b.name.text)))g+=m.name.text+":",g+=Ho(m.value)?`"${m.value.text}"`:m.value.getText()+" ";return g}return""}),l=[];for(let p in s){let g=s[p],{importWithoutClause:m,typeOnlyImports:x,regularImports:b}=xzt(g);m&&l.push(m);for(let S of[b,x]){let P=S===x,{defaultImports:E,namespaceImports:N,namedImports:F}=S;if(!P&&E.length===1&&N.length===1&&F.length===0){let Y=E[0];l.push(XR(Y,Y.importClause.name,N[0].importClause.namedBindings));continue}let M=ff(N,(Y,Ee)=>t(Y.importClause.namedBindings.name.text,Ee.importClause.namedBindings.name.text));for(let Y of M)l.push(XR(Y,void 0,Y.importClause.namedBindings));let L=Yl(E),W=Yl(F),z=L??W;if(!z)continue;let H,X=[];if(E.length===1)H=E[0].importClause.name;else for(let Y of E)X.push(j.createImportSpecifier(!1,j.createIdentifier("default"),Y.importClause.name));X.push(...wzt(F));let ne=j.createNodeArray(ff(X,n),W?.importClause.namedBindings.elements.hasTrailingComma),ae=ne.length===0?H?void 0:j.createNamedImports(ce):W?j.updateNamedImports(W.importClause.namedBindings,ne):j.createNamedImports(ne);i&&ae&&W?.importClause.namedBindings&&!Fk(W.importClause.namedBindings,i)&&qn(ae,2),P&&H&&ae?(l.push(XR(z,H,void 0)),l.push(XR(W??z,void 0,ae))):l.push(XR(z,H,ae))}}return l}function XQe(e,t){if(e.length===0)return e;let{exportWithoutClause:n,namedExports:i,typeOnlyExports:s}=p(e),l=[];n&&l.push(n);for(let g of[i,s]){if(g.length===0)continue;let m=[];m.push(...li(g,S=>S.exportClause&&hm(S.exportClause)?S.exportClause.elements:ce));let x=ff(m,t),b=g[0];l.push(j.updateExportDeclaration(b,b.modifiers,b.isTypeOnly,b.exportClause&&(hm(b.exportClause)?j.updateNamedExports(b.exportClause,x):j.updateNamespaceExport(b.exportClause,b.exportClause.name)),b.moduleSpecifier,b.attributes))}return l;function p(g){let m,x=[],b=[];for(let S of g)S.exportClause===void 0?m=m||S:S.isTypeOnly?b.push(S):x.push(S);return{exportWithoutClause:m,namedExports:x,typeOnlyExports:b}}}function XR(e,t,n){return j.updateImportDeclaration(e,e.modifiers,j.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function $2e(e,t,n,i){switch(i?.organizeImportsTypeOrder){case"first":return _v(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return _v(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function V2e(e,t,n){let i=e===void 0?void 0:S$(e),s=t===void 0?void 0:S$(t);return _v(i===void 0,s===void 0)||_v(Hu(i),Hu(s))||n(i,s)}function Szt(e){return e.map(t=>S$(H2e(t))||"")}function H2e(e){var t;switch(e.kind){case 271:return(t=_i(e.moduleReference,M0))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Tzt(e,t){let n=vo(t)&&t.text;return Ua(n)&&Pt(e.moduleAugmentations,i=>vo(i)&&i.text===n)}function wzt(e){return li(e,t=>Dt(kzt(t),n=>n.name&&n.propertyName&&g2(n.name)===g2(n.propertyName)?j.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function kzt(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Bh(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function YQe(e,t){let n=[];return e.forEach(i=>{n.push(Szt(i))}),eXe(n,t)}function G2e(e,t,n){let i=!1,s=e.filter(m=>{var x,b;let S=(b=_i((x=m.importClause)==null?void 0:x.namedBindings,Bh))==null?void 0:b.elements;return S?.length?(!i&&S.some(P=>P.isTypeOnly)&&S.some(P=>!P.isTypeOnly)&&(i=!0),!0):!1});if(s.length===0)return;let l=s.map(m=>{var x,b;return(b=_i((x=m.importClause)==null?void 0:x.namedBindings,Bh))==null?void 0:b.elements}).filter(m=>m!==void 0);if(!i||n.length===0){let m=eXe(l.map(x=>x.map(b=>b.name.text)),t);return{namedImportComparer:m.comparer,typeOrder:n.length===1?n[0]:void 0,isSorted:m.isSorted}}let p={first:1/0,last:1/0,inline:1/0},g={first:t[0],last:t[0],inline:t[0]};for(let m of t){let x={first:0,last:0,inline:0};for(let b of l)for(let S of n)x[S]=(x[S]??0)+ZQe(b,(P,E)=>$2e(P,E,m,{organizeImportsTypeOrder:S}));for(let b of n){let S=b;x[S]<p[S]&&(p[S]=x[S],g[S]=m)}}e:for(let m of n){let x=m;for(let b of n)if(p[b]<p[x])continue e;return{namedImportComparer:g[x],typeOrder:x,isSorted:p[x]===0}}return{namedImportComparer:g.last,typeOrder:"last",isSorted:p.last===0}}function ZQe(e,t){let n=0;for(let i=0;i<e.length-1;i++)t(e[i],e[i+1])>0&&n++;return n}function eXe(e,t){let n,i=1/0;for(let s of t){let l=0;for(let p of e){if(p.length<=1)continue;let g=ZQe(p,s);l+=g}l<i&&(i=l,n=s)}return{comparer:n??t[0],isSorted:i===0}}function Czt(e,t){return mc(tXe(e),tXe(t))}function tXe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function T$(e){return e?au:fp}function Pzt(e,t){let n=Ezt(t),i=t.organizeImportsCaseFirst??!1,s=t.organizeImportsNumericCollation??!1,l=t.organizeImportsAccentCollation??!0,p=e?l?"accent":"base":l?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:i||"false",sensitivity:p,numeric:s}).compare}function Ezt(e){let t=e.organizeImportsLocale;t==="auto"&&(t=SP()),t===void 0&&(t="en");let n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}function K2e(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?Pzt(t,e):T$(t)}function Dzt(e,t){return YQe([e],W2e(t).comparersToTest)}function YR(e,t){let n=t??T$(!!e.organizeImportsIgnoreCase);return(i,s)=>$2e(i,s,n,e)}function Ozt(e,t,n){let{comparersToTest:i,typeOrdersToTest:s}=W2e(t),l=G2e([e],i,s),p=YR(t,i[0]),g;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(l){let{namedImportComparer:m,typeOrder:x,isSorted:b}=l;g=b,p=YR({organizeImportsTypeOrder:x},m)}else if(n){let m=G2e(n.statements.filter(sl),i,s);if(m){let{namedImportComparer:x,typeOrder:b,isSorted:S}=m;g=S,p=YR({organizeImportsTypeOrder:b},x)}}}return{specifierComparer:p,isSorted:g}}function Nzt(e,t,n){let i=tm(e,t,vc,(s,l)=>Q2e(s,l,n));return i<0?~i:i}function Azt(e,t,n){let i=tm(e,t,vc,n);return i<0?~i:i}function Q2e(e,t,n){return V2e(H2e(e),H2e(t),n)||Czt(e,t)}function Izt(e,t,n,i){let s=T$(t),l=YR({organizeImportsTypeOrder:i?.organizeImportsTypeOrder},s);return QQe(e,s,l,n)}function Fzt(e,t,n){return XQe(e,(s,l)=>$2e(s,l,T$(t),{organizeImportsTypeOrder:n?.organizeImportsTypeOrder??"last"}))}function Mzt(e,t,n){let i=T$(!!n);return V2e(e,t,i)}var Yne={};w(Yne,{collectElements:()=>Rzt});function Rzt(e,t){let n=[];return jzt(e,t,n),Lzt(e,n),n.sort((i,s)=>i.textSpan.start-s.textSpan.start),n}function jzt(e,t,n){let i=40,s=0,l=[...e.statements,e.endOfFileToken],p=l.length;for(;s<p;){for(;s<p&&!$P(l[s]);)g(l[s]),s++;if(s===p)break;let m=s;for(;s<p&&$P(l[s]);)g(l[s]),s++;let x=s-1;x!==m&&n.push(w$(gc(l[m],102,e).getStart(e),l[x].getEnd(),"imports"))}function g(m){var x;if(i===0)return;t.throwIfCancellationRequested(),(Ku(m)||Rl(m)||md(m)||wh(m)||m.kind===1)&&nXe(m,e,t,n),Ss(m)&&Vn(m.parent)&&ai(m.parent.left)&&nXe(m.parent.left,e,t,n),(Cs(m)||Lh(m))&&X2e(m.statements.end,e,t,n),(Ri(m)||Cp(m))&&X2e(m.members.end,e,t,n);let b=qzt(m,e);b&&n.push(b),i--,Ls(m)?(i++,g(m.expression),i--,m.arguments.forEach(g),(x=m.typeArguments)==null||x.forEach(g)):LS(m)&&m.elseStatement&&LS(m.elseStatement)?(g(m.expression),g(m.thenStatement),i++,g(m.elseStatement),i--):m.forEachChild(g),i++}}function Lzt(e,t){let n=[],i=e.getLineStarts();for(let s of i){let l=e.getLineEndOfPosition(s),p=e.text.substring(s,l),g=rXe(p);if(!(!g||q1(e,s)))if(g.isStart){let m=Ul(e.text.indexOf("//",s),l);n.push(rD(m,"region",m,!1,g.name||"#region"))}else{let m=n.pop();m&&(m.textSpan.length=l-m.textSpan.start,m.hintSpan.length=l-m.textSpan.start,t.push(m))}}}var Bzt=/^#(end)?region(.*)\r?$/;function rXe(e){if(e=e.trimStart(),!La(e,"//"))return null;e=e.slice(2).trim();let t=Bzt.exec(e);if(t)return{isStart:!t[1],name:t[2].trim()}}function X2e(e,t,n,i){let s=vv(t.text,e);if(!s)return;let l=-1,p=-1,g=0,m=t.getFullText();for(let{kind:b,pos:S,end:P}of s)switch(n.throwIfCancellationRequested(),b){case 2:let E=m.slice(S,P);if(rXe(E)){x(),g=0;break}g===0&&(l=S),p=P,g++;break;case 3:x(),i.push(w$(S,P,"comment")),g=0;break;default:I.assertNever(b)}x();function x(){g>1&&i.push(w$(l,p,"comment"))}}function nXe(e,t,n,i){hE(e)||X2e(e.pos,t,n,i)}function w$(e,t,n){return rD(Ul(e,t),n)}function qzt(e,t){switch(e.kind){case 241:if(Ss(e.parent))return Jzt(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return b(e.parent);case 258:let E=e.parent;if(E.tryBlock===e)return b(e.parent);if(E.finallyBlock===e){let N=gc(E,98,t);if(N)return b(N)}default:return rD(Lf(e,t),"code")}case 268:return b(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return b(e);case 189:return b(e,!1,!TE(e.parent),23);case 296:case 297:return S(e.statements);case 210:return x(e);case 209:return x(e,23);case 284:return l(e);case 288:return p(e);case 285:case 286:return g(e.attributes);case 228:case 15:return m(e);case 207:return b(e,!1,!Do(e.parent),23);case 219:return s(e);case 213:return i(e);case 217:return P(e);case 275:case 279:case 300:return n(e)}function n(E){if(!E.elements.length)return;let N=gc(E,19,t),F=gc(E,20,t);if(!(!N||!F||pm(N.pos,F.pos,t)))return Zne(N,F,E,t,!1,!1)}function i(E){if(!E.arguments.length)return;let N=gc(E,21,t),F=gc(E,22,t);if(!(!N||!F||pm(N.pos,F.pos,t)))return Zne(N,F,E,t,!1,!0)}function s(E){if(Cs(E.body)||Mf(E.body)||pm(E.body.getFullStart(),E.body.getEnd(),t))return;let N=Ul(E.body.getFullStart(),E.body.getEnd());return rD(N,"code",Lf(E))}function l(E){let N=Ul(E.openingElement.getStart(t),E.closingElement.getEnd()),F=E.openingElement.tagName.getText(t),M="<"+F+">...</"+F+">";return rD(N,"code",N,!1,M)}function p(E){let N=Ul(E.openingFragment.getStart(t),E.closingFragment.getEnd());return rD(N,"code",N,!1,"<>...</>")}function g(E){if(E.properties.length!==0)return w$(E.getStart(t),E.getEnd(),"code")}function m(E){if(!(E.kind===15&&E.text.length===0))return w$(E.getStart(t),E.getEnd(),"code")}function x(E,N=19){return b(E,!1,!kp(E.parent)&&!Ls(E.parent),N)}function b(E,N=!1,F=!0,M=19,L=M===19?20:24){let W=gc(e,M,t),z=gc(e,L,t);return W&&z&&Zne(W,z,E,t,N,F)}function S(E){return E.length?rD(z1(E),"code"):void 0}function P(E){if(pm(E.getStart(),E.getEnd(),t))return;let N=Ul(E.getStart(),E.getEnd());return rD(N,"code",Lf(E))}}function Jzt(e,t,n){let i=zzt(e,t,n),s=gc(t,20,n);return i&&s&&Zne(i,s,e,n,e.kind!==219)}function Zne(e,t,n,i,s=!1,l=!0){let p=Ul(l?e.getFullStart():e.getStart(i),t.getEnd());return rD(p,"code",Lf(n,i),s)}function rD(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function zzt(e,t,n){if(cge(e.parameters,n)){let i=gc(e,21,n);if(i)return i}return gc(t,19,n)}var k$={};w(k$,{getRenameInfo:()=>Wzt,nodeIsEligibleForRename:()=>aXe});function Wzt(e,t,n,i){let s=fU(r_(t,n));if(aXe(s)){let l=Uzt(s,e.getTypeChecker(),t,e,i);if(l)return l}return eie(y.You_cannot_rename_this_element)}function Uzt(e,t,n,i,s){let l=t.getSymbolAtLocation(e);if(!l){if(Ho(e)){let P=pU(e,t);if(P&&(P.flags&128||P.flags&1048576&&sn(P.types,E=>!!(E.flags&128))))return Y2e(e.text,e.text,"string","",e,n)}else if(vte(e)){let P=cl(e);return Y2e(P,P,"label","",e,n)}return}let{declarations:p}=l;if(!p||p.length===0)return;if(p.some(P=>$zt(i,P)))return eie(y.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ye(e)&&e.escapedText==="default"&&l.parent&&l.parent.flags&1536)return;if(Ho(e)&&d5(e))return s.allowRenameOfImportPath?Hzt(e,n,l):void 0;let g=Vzt(n,l,t,s);if(g)return eie(g);let m=$1.getSymbolKind(t,l,e),x=xbe(e)||Dd(e)&&e.parent.kind===167?qm(lm(e)):void 0,b=x||t.symbolToString(l),S=x||t.getFullyQualifiedName(l);return Y2e(b,S,m,$1.getSymbolModifiers(t,l),e,n)}function $zt(e,t){let n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&il(n.fileName,".d.ts")}function Vzt(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let p=t.declarations&&Ir(t.declarations,g=>bf(g));p&&!p.propertyName&&(t=n.getAliasedSymbol(t))}let{declarations:s}=t;if(!s)return;let l=iXe(e.path);if(l===void 0)return Pt(s,p=>CR(p.getSourceFile().path))?y.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let p of s){let g=iXe(p.getSourceFile().path);if(g){let m=Math.min(l.length,g.length);for(let x=0;x<=m;x++)if(fp(l[x],g[x])!==0)return y.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function iXe(e){let t=jp(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function Hzt(e,t,n){if(!Hu(e.text))return eie(y.You_cannot_rename_a_module_via_a_global_import);let i=n.declarations&&Ir(n.declarations,ba);if(!i)return;let s=bc(e.text,"/index")||bc(e.text,"/index.js")?void 0:OO(yf(i.fileName),"/index"),l=s===void 0?i.fileName:s,p=s===void 0?"module":"directory",g=e.text.lastIndexOf("/")+1,m=Sp(e.getStart(t)+1+g,e.text.length-g);return{canRename:!0,fileToRename:l,kind:p,displayName:l,fullDisplayName:e.text,kindModifiers:"",triggerSpan:m}}function Y2e(e,t,n,i,s,l){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Gzt(s,l)}}function eie(e){return{canRename:!1,localizedErrorMessage:gs(e)}}function Gzt(e,t){let n=e.getStart(t),i=e.getWidth(t);return Ho(e)&&(n+=1,i-=2),Sp(n,i)}function aXe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return oU(e);default:return!1}}var ZR={};w(ZR,{getArgumentInfoForCompletions:()=>Zzt,getSignatureHelpItems:()=>Kzt});function Kzt(e,t,n,i,s){let l=e.getTypeChecker(),p=R3(t,n);if(!p)return;let g=!!i&&i.kind==="characterTyped";if(g&&(WE(t,n,p)||q1(t,n)))return;let m=!!i&&i.kind==="invoked",x=fWt(p,n,t,l,m);if(!x)return;s.throwIfCancellationRequested();let b=Qzt(x,l,t,p,g);return s.throwIfCancellationRequested(),b?l.runWithCancellationToken(s,S=>b.kind===0?_Xe(b.candidates,b.resolvedSignature,x,t,S):dWt(b.symbol,x,t,S)):Nf(t)?Yzt(x,e,s):void 0}function Qzt({invocation:e,argumentCount:t},n,i,s,l){switch(e.kind){case 0:{if(l&&!Xzt(s,e.node,i))return;let p=[],g=n.getResolvedSignatureForSignatureHelp(e.node,p,t);return p.length===0?void 0:{kind:0,candidates:p,resolvedSignature:g}}case 1:{let{called:p}=e;if(l&&!sXe(s,i,Ye(p)?p.parent:p))return;let g=Dte(p,t,n);if(g.length!==0)return{kind:0,candidates:g,resolvedSignature:ho(g)};let m=n.getSymbolAtLocation(p);return m&&{kind:1,symbol:m}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return I.assertNever(e)}}function Xzt(e,t,n){if(!wh(t))return!1;let i=t.getChildren(n);switch(e.kind){case 21:return Ta(i,e);case 28:{let s=uU(e);return!!s&&Ta(i,s)}case 30:return sXe(e,n,t.expression);default:return!1}}function Yzt(e,t,n){if(e.invocation.kind===2)return;let i=pXe(e.invocation),s=ai(i)?i.name.text:void 0,l=t.getTypeChecker();return s===void 0?void 0:jr(t.getSourceFiles(),p=>jr(p.getNamedDeclarations().get(s),g=>{let m=g.symbol&&l.getTypeOfSymbolAtLocation(g.symbol,g),x=m&&m.getCallSignatures();if(x&&x.length)return l.runWithCancellationToken(n,b=>_Xe(x,x[0],e,p,b,!0))}))}function sXe(e,t,n){let i=e.getFullStart(),s=e.parent;for(;s;){let l=Ou(i,t,s,!0);if(l)return Zf(n,l);s=s.parent}return I.fail("Could not find preceding token")}function Zzt(e,t,n,i){let s=cXe(e,t,n,i);return!s||s.isTypeParameterList||s.invocation.kind!==0?void 0:{invocation:s.invocation.node,argumentCount:s.argumentCount,argumentIndex:s.argumentIndex}}function oXe(e,t,n,i){let s=eWt(e,n,i);if(!s)return;let{list:l,argumentIndex:p}=s,g=cWt(i,l),m=uWt(l,n);return{list:l,argumentIndex:p,argumentCount:g,argumentsSpan:m}}function eWt(e,t,n){if(e.kind===30||e.kind===21)return{list:_Wt(e.parent,e,t),argumentIndex:0};{let i=uU(e);return i&&{list:i,argumentIndex:oWt(n,i,e)}}}function cXe(e,t,n,i){let{parent:s}=e;if(wh(s)){let l=s,p=oXe(e,t,n,i);if(!p)return;let{list:g,argumentIndex:m,argumentCount:x,argumentsSpan:b}=p;return{isTypeParameterList:!!s.typeArguments&&s.typeArguments.pos===g.pos,invocation:{kind:0,node:l},argumentsSpan:b,argumentIndex:m,argumentCount:x}}else{if(Bk(e)&&RS(s))return mR(e,t,n)?ewe(s,0,n):void 0;if(yE(e)&&s.parent.kind===215){let l=s,p=l.parent;I.assert(l.kind===228);let g=mR(e,t,n)?0:1;return ewe(p,g,n)}else if(FN(s)&&RS(s.parent.parent)){let l=s,p=s.parent.parent;if(fz(e)&&!mR(e,t,n))return;let g=l.parent.templateSpans.indexOf(l),m=lWt(g,e,t,n);return ewe(p,m,n)}else if(Qp(s)){let l=s.attributes.pos,p=yo(n.text,s.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:s},argumentsSpan:Sp(l,p-l),argumentIndex:0,argumentCount:1}}else{let l=Ote(e,n);if(l){let{called:p,nTypeArguments:g}=l,m={kind:1,called:p},x=Ul(p.getStart(n),e.end);return{isTypeParameterList:!0,invocation:m,argumentsSpan:x,argumentIndex:g,argumentCount:g+1}}return}}}function tWt(e,t,n,i){return rWt(e,t,n,i)||cXe(e,t,n,i)}function lXe(e){return Vn(e.parent)?lXe(e.parent):e}function Z2e(e){return Vn(e.left)?Z2e(e.left)+1:2}function rWt(e,t,n,i){let s=nWt(e);if(s===void 0)return;let l=iWt(s,n,t,i);if(l===void 0)return;let{contextualType:p,argumentIndex:g,argumentCount:m,argumentsSpan:x}=l,b=p.getNonNullableType(),S=b.symbol;if(S===void 0)return;let P=dc(b.getCallSignatures());return P===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:P,node:e,symbol:aWt(S)},argumentsSpan:x,argumentIndex:g,argumentCount:m}}function nWt(e){switch(e.kind){case 21:case 28:return e;default:return Br(e.parent,t=>Da(t)?!0:Do(t)||Nd(t)||j1(t)?!1:"quit")}}function iWt(e,t,n,i){let{parent:s}=e;switch(s.kind){case 217:case 174:case 218:case 219:let l=oXe(e,n,t,i);if(!l)return;let{argumentIndex:p,argumentCount:g,argumentsSpan:m}=l,x=wl(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return x&&{contextualType:x,argumentIndex:p,argumentCount:g,argumentsSpan:m};case 226:{let b=lXe(s),S=i.getContextualType(b),P=e.kind===21?0:Z2e(s)-1,E=Z2e(b);return S&&{contextualType:S,argumentIndex:P,argumentCount:E,argumentsSpan:Lf(s)}}default:return}}function aWt(e){return e.name==="__type"&&jr(e.declarations,t=>{var n;return Iy(t)?(n=_i(t.parent,qg))==null?void 0:n.symbol:void 0})||e}function sWt(e,t){let n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){let{elementFlags:i,fixedLength:s}=n.target;if(s===0)return 0;let l=Va(i,p=>!(p&1));return l<0?s:l}return 0}function oWt(e,t,n){return uXe(e,t,n)}function cWt(e,t){return uXe(e,t,void 0)}function uXe(e,t,n){let i=t.getChildren(),s=0,l=!1;for(let p of i){if(n&&p===n)return!l&&p.kind===28&&s++,s;if(gm(p)){s+=sWt(p,e),l=!0;continue}if(p.kind!==28){s++,l=!0;continue}if(l){l=!1;continue}s++}return n?s:i.length&&ao(i).kind===28?s+1:s}function lWt(e,t,n,i){return I.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),gde(t)?mR(t,n,i)?0:e+2:e+1}function ewe(e,t,n){let i=Bk(e.template)?1:e.template.templateSpans.length+1;return t!==0&&I.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:pWt(e,n),argumentIndex:t,argumentCount:i}}function uWt(e,t){let n=e.getFullStart(),i=yo(t.text,e.getEnd(),!1);return Sp(n,i-n)}function pWt(e,t){let n=e.template,i=n.getStart(),s=n.getEnd();return n.kind===228&&ao(n.templateSpans).literal.getFullWidth()===0&&(s=yo(t.text,s,!1)),Sp(i,s-i)}function fWt(e,t,n,i,s){for(let l=e;!ba(l)&&(s||!Cs(l));l=l.parent){I.assert(Zf(l.parent,l),"Not a subspan",()=>`Child: ${I.formatSyntaxKind(l.kind)}, parent: ${I.formatSyntaxKind(l.parent.kind)}`);let p=tWt(l,t,n,i);if(p)return p}}function _Wt(e,t,n){let i=e.getChildren(n),s=i.indexOf(t);return I.assert(s>=0&&i.length>s+1),i[s+1]}function pXe(e){return e.kind===0?Gq(e.node):e.called}function fXe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var C$=70246400;function _Xe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:l,argumentIndex:p},g,m,x){var b;let S=fXe(l),P=l.kind===2?l.symbol:m.getSymbolAtLocation(pXe(l))||x&&((b=t.declaration)==null?void 0:b.symbol),E=P?z3(m,P,x?g:void 0,void 0):ce,N=Dt(e,z=>gWt(z,E,n,m,S,g)),F=0,M=0;for(let z=0;z<N.length;z++){let H=N[z];if(e[z]===t&&(F=M,H.length>1)){let X=0;for(let ne of H){if(ne.isVariadic||ne.parameters.length>=i){F=M+X;break}X++}}M+=H.length}I.assert(F!==-1);let L={items:xl(N,vc),applicableSpan:s,selectedItemIndex:F,argumentIndex:p,argumentCount:i},W=L.items[F];if(W.isVariadic){let z=Va(W.parameters,H=>!!H.isRest);-1<z&&z<W.parameters.length-1?L.argumentIndex=W.parameters.length:L.argumentIndex=Math.min(L.argumentIndex,W.parameters.length-1)}return L}function dWt(e,{argumentCount:t,argumentsSpan:n,invocation:i,argumentIndex:s},l,p){let g=p.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return g?{items:[mWt(e,g,p,fXe(i),l)],applicableSpan:n,selectedItemIndex:0,argumentIndex:s,argumentCount:t}:void 0}function mWt(e,t,n,i,s){let l=z3(n,e),p=G2(),g=t.map(S=>mXe(S,n,i,s,p)),m=e.getDocumentationComment(n),x=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...l,tf(30)],suffixDisplayParts:[tf(32)],separatorDisplayParts:dXe,parameters:g,documentation:m,tags:x}}var dXe=[tf(28),Il()];function gWt(e,t,n,i,s,l){let p=(n?yWt:vWt)(e,i,s,l);return Dt(p,({isVariadic:g,parameters:m,prefix:x,suffix:b})=>{let S=[...t,...x],P=[...b,...hWt(e,s,i)],E=e.getDocumentationComment(i),N=e.getJsDocTags();return{isVariadic:g,prefixDisplayParts:S,suffixDisplayParts:P,separatorDisplayParts:dXe,parameters:m,documentation:E,tags:N}})}function hWt(e,t,n){return ZS(i=>{i.writePunctuation(":"),i.writeSpace(" ");let s=n.getTypePredicateOfSignature(e);s?n.writeTypePredicate(s,t,void 0,i):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,i)})}function yWt(e,t,n,i){let s=(e.target||e).typeParameters,l=G2(),p=(s||ce).map(m=>mXe(m,t,n,i,l)),g=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,C$)]:[];return t.getExpandedParameters(e).map(m=>{let x=j.createNodeArray([...g,...Dt(m,S=>t.symbolToParameterDeclaration(S,n,C$))]),b=ZS(S=>{l.writeList(2576,x,i,S)});return{isVariadic:!1,parameters:p,prefix:[tf(30)],suffix:[tf(32),...b]}})}function vWt(e,t,n,i){let s=G2(),l=ZS(m=>{if(e.typeParameters&&e.typeParameters.length){let x=j.createNodeArray(e.typeParameters.map(b=>t.typeParameterToDeclaration(b,n,C$)));s.writeList(53776,x,i,m)}}),p=t.getExpandedParameters(e),g=t.hasEffectiveRestParameter(e)?p.length===1?m=>!0:m=>{var x;return!!(m.length&&((x=_i(m[m.length-1],Tv))==null?void 0:x.links.checkFlags)&32768)}:m=>!1;return p.map(m=>({isVariadic:g(m),parameters:m.map(x=>bWt(x,t,n,i,s)),prefix:[...l,tf(21)],suffix:[tf(22)]}))}function bWt(e,t,n,i,s){let l=ZS(m=>{let x=t.symbolToParameterDeclaration(e,n,C$);s.writeNode(4,x,i,m)}),p=t.isOptionalParameter(e.valueDeclaration),g=Tv(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:l,isOptional:p,isRest:g}}function mXe(e,t,n,i,s){let l=ZS(p=>{let g=t.typeParameterToDeclaration(e,n,C$);s.writeNode(4,g,i,p)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:l,isOptional:!1,isRest:!1}}var tie={};w(tie,{getSmartSelectionRange:()=>xWt});function xWt(e,t){var n,i;let s={textSpan:Ul(t.getFullStart(),t.getEnd())},l=t;e:for(;;){let m=wWt(l);if(!m.length)break;for(let x=0;x<m.length;x++){let b=m[x-1],S=m[x],P=m[x+1];if(px(S,t,!0)>e)break e;let E=Zd(ex(t.text,S.end));if(E&&E.kind===2&&g(E.pos,E.end),SWt(t,e,S)){if(GK(S)&&Dc(l)&&!pm(S.getStart(t),S.getEnd(),t)&&p(S.getStart(t),S.getEnd()),Cs(S)||FN(S)||yE(S)||fz(S)||b&&yE(b)||mp(S)&&Rl(l)||qN(S)&&mp(l)||Ui(S)&&qN(l)&&m.length===1||JS(S)||B1(S)||Hk(S)){l=S;break}if(FN(l)&&P&&mq(P)){let L=S.getFullStart()-2,W=P.getStart()+1;p(L,W)}let N=qN(S)&&kWt(b)&&CWt(P)&&!pm(b.getStart(),P.getStart(),t),F=N?b.getEnd():S.getStart(),M=N?P.getStart():PWt(t,S);if(fd(S)&&((n=S.jsDoc)!=null&&n.length)&&p(ho(S.jsDoc).getStart(),M),qN(S)){let L=S.getChildren()[0];L&&fd(L)&&((i=L.jsDoc)!=null&&i.length)&&L.getStart()!==S.pos&&(F=Math.min(F,ho(L.jsDoc).getStart()))}p(F,M),(vo(S)||BP(S))&&p(F+1,M-1),l=S;break}if(x===m.length-1)break e}}return s;function p(m,x){if(m!==x){let b=Ul(m,x);(!s||!dA(b,s.textSpan)&&H_e(b,e))&&(s={textSpan:b,...s&&{parent:s}})}}function g(m,x){p(m,x);let b=m;for(;t.text.charCodeAt(b)===47;)b++;p(b,x)}}function SWt(e,t,n){return I.assert(n.pos<=t),t<n.end?!0:n.getEnd()===t?r_(e,t).pos<n.end:!1}var TWt=Df(sl,zu);function wWt(e){var t;if(ba(e))return ej(e.getChildAt(0).getChildren(),TWt);if(zk(e)){let[n,...i]=e.getChildren(),s=I.checkDefined(i.pop());I.assertEqual(n.kind,19),I.assertEqual(s.kind,20);let l=ej(i,g=>g===e.readonlyToken||g.kind===148||g===e.questionToken||g.kind===58),p=ej(l,({kind:g})=>g===23||g===168||g===24);return[n,tj(rie(p,({kind:g})=>g===59)),s]}if(vf(e)){let n=ej(e.getChildren(),p=>p===e.name||Ta(e.modifiers,p)),i=((t=n[0])==null?void 0:t.kind)===320?n[0]:void 0,s=i?n.slice(1):n,l=rie(s,({kind:p})=>p===59);return i?[i,tj(l)]:l}if(Da(e)){let n=ej(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=ej(n,s=>s===n[0]||s===e.questionToken);return rie(i,({kind:s})=>s===64)}return Do(e)?rie(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function ej(e,t){let n=[],i;for(let s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(tj(i)),i=void 0),n.push(s));return i&&n.push(tj(i)),n}function rie(e,t,n=!0){if(e.length<2)return e;let i=Va(e,t);if(i===-1)return e;let s=e.slice(0,i),l=e[i],p=ao(e),g=n&&p.kind===27,m=e.slice(i+1,g?e.length-1:void 0),x=PO([s.length?tj(s):void 0,l,m.length?tj(m):void 0]);return g?x.concat(p):x}function tj(e){return I.assertGreaterThanOrEqual(e.length,1),$g(US.createSyntaxList(e),e[0].pos,ao(e).end)}function kWt(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function CWt(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function PWt(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var $1={};w($1,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>DWt,getSymbolKind:()=>hXe,getSymbolModifiers:()=>EWt});var gXe=70246400;function hXe(e,t,n){let i=yXe(e,t,n);if(i!=="")return i;let s=bN(t);return s&32?Zc(t,231)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function yXe(e,t,n){let i=e.getRootSymbols(t);if(i.length===1&&ho(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(n.kind===110&&At(n)||P2(n))return"parameter";let s=bN(t);if(s&3)return Qte(t)?"parameter":t.valueDeclaration&&iN(t.valueDeclaration)?"const":t.valueDeclaration&&QF(t.valueDeclaration)?"using":t.valueDeclaration&&KF(t.valueDeclaration)?"await using":Ge(t.declarations,Lq)?"let":xXe(t)?"local var":"var";if(s&16)return xXe(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){let l=Ge(e.getRootSymbols(t),p=>{if(p.getFlags()&98311)return"property"});return l||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function vXe(e){if(e.declarations&&e.declarations.length){let[t,...n]=e.declarations,i=Re(n)&&MU(t)&&Pt(n,l=>!MU(l))?65536:0,s=j3(t,i);if(s)return s.split(",")}return[]}function EWt(e,t){if(!t)return"";let n=new Set(vXe(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&Ge(vXe(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?Ka(n.values()).join(","):""}function bXe(e,t,n,i,s,l,p,g){var m;let x=[],b=[],S=[],P=bN(t),E=p&1?yXe(e,t,s):"",N=!1,F=s.kind===110&&Kq(s)||P2(s),M,L,W=!1;if(s.kind===110&&!F)return{displayParts:[G_(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(E!==""||P&32||P&2097152){if(E==="getter"||E==="setter"){let ve=Ir(t.declarations,Pe=>Pe.name===s);if(ve)switch(ve.kind){case 177:E="getter";break;case 178:E="setter";break;case 172:E="accessor";break;default:I.assertNever(ve)}else E="property"}let de;if(l??(l=F?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===211){let ve=s.parent.name;(ve===s||ve&&ve.getFullWidth()===0)&&(s=s.parent)}let me;if(wh(s)?me=s:(mte(s)||F3(s)||s.parent&&(Qp(s.parent)||RS(s.parent))&&Ss(t.valueDeclaration))&&(me=s.parent),me){de=e.getResolvedSignature(me);let ve=me.kind===214||Ls(me)&&me.expression.kind===108,Pe=ve?l.getConstructSignatures():l.getCallSignatures();if(de&&!Ta(Pe,de.target)&&!Ta(Pe,de)&&(de=Pe.length?Pe[0]:void 0),de){switch(ve&&P&32?(E="constructor",Y(l.symbol,E)):P&2097152?(E="alias",Ee(E),x.push(Il()),ve&&(de.flags&4&&(x.push(G_(128)),x.push(Il())),x.push(G_(105)),x.push(Il())),ae(t)):Y(t,E),E){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":x.push(tf(59)),x.push(Il()),!(oi(l)&16)&&l.symbol&&(ti(x,z3(e,l.symbol,i,void 0,5)),x.push(mA())),ve&&(de.flags&4&&(x.push(G_(128)),x.push(Il())),x.push(G_(105)),x.push(Il())),fe(de,Pe,262144);break;default:fe(de,Pe)}N=!0,W=Pe.length>1}}else if(Tte(s)&&!(P&98304)||s.kind===137&&s.parent.kind===176){let ve=s.parent;if(t.declarations&&Ir(t.declarations,Oe=>Oe===(s.kind===137?ve.parent:ve))){let Oe=ve.kind===176?l.getNonNullableType().getConstructSignatures():l.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(ve)?de=Oe[0]:de=e.getSignatureFromDeclaration(ve),ve.kind===176?(E="constructor",Y(l.symbol,E)):Y(ve.kind===179&&!(l.symbol.flags&2048||l.symbol.flags&4096)?l.symbol:t,E),de&&fe(de,Oe),N=!0,W=Oe.length>1}}}if(P&32&&!N&&!F&&(X(),Zc(t,231)?Ee("local class"):x.push(G_(86)),x.push(Il()),ae(t),te(t,n)),P&64&&p&2&&(H(),x.push(G_(120)),x.push(Il()),ae(t),te(t,n)),P&524288&&p&2&&(H(),x.push(G_(156)),x.push(Il()),ae(t),te(t,n),x.push(Il()),x.push(J3(64)),x.push(Il()),ti(x,xR(e,s.parent&&_g(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),P&384&&(H(),Pt(t.declarations,de=>B2(de)&&wS(de))&&(x.push(G_(87)),x.push(Il())),x.push(G_(94)),x.push(Il()),ae(t)),P&1536&&!F){H();let de=Zc(t,267),me=de&&de.name&&de.name.kind===80;x.push(G_(me?145:144)),x.push(Il()),ae(t)}if(P&262144&&p&2)if(H(),x.push(tf(21)),x.push(Rd("type parameter")),x.push(tf(22)),x.push(Il()),ae(t),t.parent)ne(),ae(t.parent,i),te(t.parent,i);else{let de=Zc(t,168);if(de===void 0)return I.fail();let me=de.parent;if(me)if(Ss(me)){ne();let ve=e.getSignatureFromDeclaration(me);me.kind===180?(x.push(G_(105)),x.push(Il())):me.kind!==179&&me.name&&ae(me.symbol),ti(x,Yte(e,ve,n,32))}else Wm(me)&&(ne(),x.push(G_(156)),x.push(Il()),ae(me.symbol),te(me.symbol,n))}if(P&8){E="enum member",Y(t,"enum member");let de=(m=t.declarations)==null?void 0:m[0];if(de?.kind===306){let me=e.getConstantValue(de);me!==void 0&&(x.push(Il()),x.push(J3(64)),x.push(Il()),x.push(b_(Gde(me),typeof me=="number"?7:8)))}}if(t.flags&2097152){if(H(),!N||b.length===0&&S.length===0){let de=e.getAliasedSymbol(t);if(de!==t&&de.declarations&&de.declarations.length>0){let me=de.declarations[0],ve=ls(me);if(ve&&!N){let Pe=Fq(me)&&Ai(me,128),Oe=t.name!=="default"&&!Pe,ie=bXe(e,de,rn(me),i,ve,l,p,Oe?t:de);x.push(...ie.displayParts),x.push(mA()),M=ie.documentation,L=ie.tags}else M=de.getContextualDocumentationComment(me,e),L=de.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:x.push(G_(95)),x.push(Il()),x.push(G_(145));break;case 277:x.push(G_(95)),x.push(Il()),x.push(G_(t.declarations[0].isExportEquals?64:90));break;case 281:x.push(G_(95));break;default:x.push(G_(102))}x.push(Il()),ae(t),Ge(t.declarations,de=>{if(de.kind===271){let me=de;if(kS(me))x.push(Il()),x.push(J3(64)),x.push(Il()),x.push(G_(149)),x.push(tf(21)),x.push(b_(cl(o4(me)),8)),x.push(tf(22));else{let ve=e.getSymbolAtLocation(me.moduleReference);ve&&(x.push(Il()),x.push(J3(64)),x.push(Il()),ae(ve,i))}return!0}})}if(!N)if(E!==""){if(l){if(F?(H(),x.push(G_(110))):Y(t,E),E==="property"||E==="accessor"||E==="getter"||E==="setter"||E==="JSX attribute"||P&3||E==="local var"||E==="index"||E==="using"||E==="await using"||F){if(x.push(tf(59)),x.push(Il()),l.symbol&&l.symbol.flags&262144&&E!=="index"){let de=ZS(me=>{let ve=e.typeParameterToDeclaration(l,i,gXe);z().writeNode(4,ve,rn(ds(i)),me)});ti(x,de)}else ti(x,xR(e,l,i));if(Tv(t)&&t.links.target&&Tv(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let de=t.links.target.links.tupleLabelDeclaration;I.assertNode(de.name,Ye),x.push(Il()),x.push(tf(21)),x.push(Rd(fi(de.name))),x.push(tf(22))}}else if(P&16||P&8192||P&16384||P&131072||P&98304||E==="method"){let de=l.getNonNullableType().getCallSignatures();de.length&&(fe(de[0],de),W=de.length>1)}}}else E=hXe(e,t,s);if(b.length===0&&!W&&(b=t.getContextualDocumentationComment(i,e)),b.length===0&&P&4&&t.parent&&t.declarations&&Ge(t.parent.declarations,de=>de.kind===307))for(let de of t.declarations){if(!de.parent||de.parent.kind!==226)continue;let me=e.getSymbolAtLocation(de.parent.right);if(me&&(b=me.getDocumentationComment(e),S=me.getJsDocTags(e),b.length>0))break}if(b.length===0&&Ye(s)&&t.valueDeclaration&&Do(t.valueDeclaration)){let de=t.valueDeclaration,me=de.parent,ve=de.propertyName||de.name;if(Ye(ve)&&Nd(me)){let Pe=lm(ve),Oe=e.getTypeAtLocation(me);b=jr(Oe.isUnion()?Oe.types:[Oe],ie=>{let Ne=ie.getProperty(Pe);return Ne?Ne.getDocumentationComment(e):void 0})||ce}}return S.length===0&&!W&&(S=t.getContextualJsDocTags(i,e)),b.length===0&&M&&(b=M),S.length===0&&L&&(S=L),{displayParts:x,documentation:b,symbolKind:E,tags:S.length===0?void 0:S};function z(){return G2()}function H(){x.length&&x.push(mA()),X()}function X(){g&&(Ee("alias"),x.push(Il()))}function ne(){x.push(Il()),x.push(G_(103)),x.push(Il())}function ae(de,me){let ve;g&&de===t&&(de=g),E==="index"&&(ve=e.getIndexInfosOfIndexSymbol(de));let Pe=[];de.flags&131072&&ve?(de.parent&&(Pe=z3(e,de.parent)),Pe.push(tf(23)),ve.forEach((Oe,ie)=>{Pe.push(...xR(e,Oe.keyType)),ie!==ve.length-1&&(Pe.push(Il()),Pe.push(tf(52)),Pe.push(Il()))}),Pe.push(tf(24))):Pe=z3(e,de,me||n,void 0,7),ti(x,Pe),t.flags&16777216&&x.push(tf(58))}function Y(de,me){H(),me&&(Ee(me),de&&!Pt(de.declarations,ve=>Bc(ve)||(Ic(ve)||vu(ve))&&!ve.name)&&(x.push(Il()),ae(de)))}function Ee(de){switch(de){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":x.push(Xte(de));return;default:x.push(tf(21)),x.push(Xte(de)),x.push(tf(22));return}}function fe(de,me,ve=0){ti(x,Yte(e,de,i,ve|32)),me.length>1&&(x.push(Il()),x.push(tf(21)),x.push(J3(40)),x.push(b_((me.length-1).toString(),7)),x.push(Il()),x.push(Rd(me.length===2?"overload":"overloads")),x.push(tf(22))),b=de.getDocumentationComment(e),S=de.getJsDocTags(),me.length>1&&b.length===0&&S.length===0&&(b=me[0].getDocumentationComment(e),S=me[0].getJsDocTags().filter(Pe=>Pe.name!=="deprecated"))}function te(de,me){let ve=ZS(Pe=>{let Oe=e.symbolToTypeParameterDeclarations(de,me,gXe);z().writeList(53776,Oe,rn(ds(me)),Pe)});ti(x,ve)}}function DWt(e,t,n,i,s,l=iC(s),p){return bXe(e,t,n,i,s,void 0,l,p)}function xXe(e){return e.parent?!1:Ge(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let n=t.parent;!y2(n);n=n.parent)if(n.kind===307||n.kind===268)return!1;return!0})}var Ln={};w(Ln,{ChangeTracker:()=>AWt,LeadingTriviaOption:()=>wXe,TrailingTriviaOption:()=>kXe,applyChanges:()=>awe,assignPositionsToNode:()=>sie,createWriter:()=>PXe,deleteNode:()=>z0,getAdjustedEndPosition:()=>nD,isThisTypeAnnotatable:()=>NWt,isValidLocationToAddComment:()=>EXe});function SXe(e){let t=e.__pos;return I.assert(typeof t=="number"),t}function twe(e,t){I.assert(typeof t=="number"),e.__pos=t}function TXe(e){let t=e.__end;return I.assert(typeof t=="number"),t}function rwe(e,t){I.assert(typeof t=="number"),e.__end=t}var wXe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(wXe||{}),kXe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(kXe||{});function CXe(e,t){return yo(e,t,!1,!0)}function OWt(e,t){let n=t;for(;n<e.length;){let i=e.charCodeAt(n);if(Th(i)){n++;continue}return i===47}return!1}var rj={leadingTriviaOption:0,trailingTriviaOption:0};function nj(e,t,n,i){return{pos:pC(e,t,i),end:nD(e,n,i)}}function pC(e,t,n,i=!1){var s,l;let{leadingTriviaOption:p}=n;if(p===0)return t.getStart(e);if(p===3){let E=t.getStart(e),N=Hm(E,e);return uA(t,N)?N:E}if(p===2){let E=vQ(t,e.text);if(E?.length)return Hm(E[0].pos,e)}let g=t.getFullStart(),m=t.getStart(e);if(g===m)return m;let x=Hm(g,e);if(Hm(m,e)===x)return p===1?g:m;if(i){let E=((s=vv(e.text,g))==null?void 0:s[0])||((l=ex(e.text,g))==null?void 0:l[0]);if(E)return yo(e.text,E.end,!0,!0)}let S=g>0?1:0,P=ux(v4(e,x)+S,e);return P=CXe(e.text,P),ux(v4(e,P),e)}function nwe(e,t,n){let{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){let l=ex(e.text,i);if(l){let p=v4(e,t.end);for(let g of l){if(g.kind===2||v4(e,g.pos)>p)break;if(v4(e,g.end)>p)return yo(e.text,g.end,!0,!0)}}}}function nD(e,t,n){var i;let{end:s}=t,{trailingTriviaOption:l}=n;if(l===0)return s;if(l===1){let m=ya(ex(e.text,s),vv(e.text,s)),x=(i=m?.[m.length-1])==null?void 0:i.end;return x||s}let p=nwe(e,t,n);if(p)return p;let g=yo(e.text,s,!0);return g!==s&&(l===2||Gp(e.text.charCodeAt(g-1)))?g:s}function nie(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function NWt(e){return Ic(e)||jl(e)}var AWt=class dOe{constructor(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new dOe(B0(t.host,t.formatContext.options),t.formatContext)}static with(t,n){let i=dOe.fromContext(t);return n(i),i.getChanges()}pushRaw(t,n){I.assertEqual(t.fileName,n.fileName);for(let i of n.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:hU(i.span)})}deleteRange(t,n){this.changes.push({kind:0,sourceFile:t,range:n})}delete(t,n){this.deletedNodes.push({sourceFile:t,node:n})}deleteNode(t,n,i={leadingTriviaOption:1}){this.deleteRange(t,nj(t,n,n,i))}deleteNodes(t,n,i={leadingTriviaOption:1},s){for(let l of n){let p=pC(t,l,i,s),g=nD(t,l,i);this.deleteRange(t,{pos:p,end:g}),s=!!nwe(t,l,i)}}deleteModifier(t,n){this.deleteRange(t,{pos:n.getStart(t),end:yo(t.text,n.end,!0)})}deleteNodeRange(t,n,i,s={leadingTriviaOption:1}){let l=pC(t,n,s),p=nD(t,i,s);this.deleteRange(t,{pos:l,end:p})}deleteNodeRangeExcludingEnd(t,n,i,s={leadingTriviaOption:1}){let l=pC(t,n,s),p=i===void 0?t.text.length:pC(t,i,s);this.deleteRange(t,{pos:l,end:p})}replaceRange(t,n,i,s={}){this.changes.push({kind:1,sourceFile:t,range:n,options:s,node:i})}replaceNode(t,n,i,s=rj){this.replaceRange(t,nj(t,n,n,s),i,s)}replaceNodeRange(t,n,i,s,l=rj){this.replaceRange(t,nj(t,n,i,l),s,l)}replaceRangeWithNodes(t,n,i,s={}){this.changes.push({kind:2,sourceFile:t,range:n,options:s,nodes:i})}replaceNodeWithNodes(t,n,i,s=rj){this.replaceRangeWithNodes(t,nj(t,n,n,s),i,s)}replaceNodeWithText(t,n,i){this.replaceRangeWithText(t,nj(t,n,n,rj),i)}replaceNodeRangeWithNodes(t,n,i,s,l=rj){this.replaceRangeWithNodes(t,nj(t,n,i,l),s,l)}nodeHasTrailingComment(t,n,i=rj){return!!nwe(t,n,i)}nextCommaToken(t,n){let i=Y2(n,n.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,n,i){let s=this.nextCommaToken(t,n)?"":","+this.newLineCharacter;this.replaceNode(t,n,i,{suffix:s})}insertNodeAt(t,n,i,s={}){this.replaceRange(t,um(n),i,s)}insertNodesAt(t,n,i,s={}){this.replaceRangeWithNodes(t,um(n),i,s)}insertNodeAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertNodesAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertAtTopOfFile(t,n,i){let s=qWt(t),l={prefix:s===0?void 0:this.newLineCharacter,suffix:(Gp(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};cs(n)?this.insertNodesAt(t,s,n,l):this.insertNodeAt(t,s,n,l)}insertNodesAtEndOfFile(t,n,i){this.insertAtEndOfFile(t,n,i)}insertAtEndOfFile(t,n,i){let s=t.end+1,l={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,s,n,l)}insertStatementsInNewFile(t,n,i){this.newFileChanges||(this.newFileChanges=Zl()),this.newFileChanges.add(t,{oldFile:i,statements:n})}insertFirstParameter(t,n,i){let s=Yl(n);s?this.insertNodeBefore(t,s,i):this.insertNodeAt(t,n.pos,i)}insertNodeBefore(t,n,i,s=!1,l={}){this.insertNodeAt(t,pC(t,n,l),i,this.getOptionsForInsertNodeBefore(n,i,s))}insertNodesBefore(t,n,i,s=!1,l={}){this.insertNodesAt(t,pC(t,n,l),i,this.getOptionsForInsertNodeBefore(n,ho(i),s))}insertModifierAt(t,n,i,s={}){this.insertNodeAt(t,n,j.createToken(i),s)}insertModifierBefore(t,n,i){return this.insertModifierAt(t,i.getStart(t),n,{suffix:" "})}insertCommentBeforeLine(t,n,i,s){let l=ux(n,t),p=Tbe(t.text,l),g=EXe(t,p),m=pA(t,g?p:i),x=t.text.slice(l,p),b=`${g?"":this.newLineCharacter}//${s}${this.newLineCharacter}${x}`;this.insertText(t,m.getStart(t),b)}insertJsdocCommentBefore(t,n,i){let s=n.getStart(t);if(n.jsDoc)for(let g of n.jsDoc)this.deleteRange(t,{pos:Hm(g.getStart(t),t),end:nD(t,g,{})});let l=kU(t.text,s-1),p=t.text.slice(l,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+p})}createJSDocText(t,n){let i=li(n.jsDoc,l=>Ua(l.comment)?j.createJSDocText(l.comment):l.comment),s=Zd(n.jsDoc);return s&&pm(s.pos,s.end,t)&&Re(i)===0?void 0:j.createNodeArray(ns(i,j.createJSDocText(`
|
|
`)))}replaceJSDocComment(t,n,i){this.insertJsdocCommentBefore(t,IWt(n),j.createJSDocComment(this.createJSDocText(t,n),j.createNodeArray(i)))}addJSDocTags(t,n,i){let s=xl(n.jsDoc,p=>p.tags),l=i.filter(p=>!s.some((g,m)=>{let x=FWt(g,p);return x&&(s[m]=x),!!x}));this.replaceJSDocComment(t,n,[...s,...l])}filterJSDocTags(t,n,i){this.replaceJSDocComment(t,n,Cn(xl(n.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,n,i){this.changes.push({kind:3,sourceFile:t,range:n,text:i})}insertText(t,n,i){this.replaceRangeWithText(t,um(n),i)}tryInsertTypeAnnotation(t,n,i){let s;if(Ss(n)){if(s=gc(n,22,t),!s){if(!Bc(n))return!1;s=ho(n.parameters)}}else s=(n.kind===260?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,n,i){let s=gc(n,21,t).getStart(t)+1,l=n.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:l})}insertTypeParameters(t,n,i){let s=(gc(n,21,t)||ho(n.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,n,i){return fa(t)||ou(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Ui(t)?{suffix:", "}:Da(t)?Da(n)?{suffix:", "}:{}:vo(t)&&sl(t.parent)||Bh(t)?{suffix:", "}:bf(t)?{suffix:","+(i?this.newLineCharacter:" ")}:I.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,n,i){let s=Yl(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[i,...n.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,n,i){let s=Ir(n.body.statements,l=>Zu(l)&&wk(l.expression));!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,n,i){let s=dc(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,n,i){this.replaceNode(t,n.body,j.createBlock(i,!0))}insertNodeAtEndOfScope(t,n,i){let s=pC(t,n.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:Gp(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtObjectStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtStartWorker(t,n,i){let s=this.guessIndentationFromExistingMembers(t,n)??this.computeIndentationForNewMember(t,n);this.insertNodeAt(t,iie(n).pos,i,this.getInsertNodeAtStartInsertOptions(t,n,s))}guessIndentationFromExistingMembers(t,n){let i,s=n;for(let l of iie(n)){if(CJ(s,l,t))return;let p=l.getStart(t),g=Su.SmartIndenter.findFirstNonWhitespaceColumn(Hm(p,t),p,t,this.formatContext.options);if(i===void 0)i=g;else if(g!==i)return;s=l}return i}computeIndentationForNewMember(t,n){let i=n.getStart(t);return Su.SmartIndenter.findFirstNonWhitespaceColumn(Hm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,n,i){let l=iie(n).length===0,p=!this.classesWithNodesInsertedAtStart.has(Wo(n));p&&this.classesWithNodesInsertedAtStart.set(Wo(n),{node:n,sourceFile:t});let g=So(n)&&(!cm(t)||!l),m=So(n)&&cm(t)&&l&&!p;return{indentation:i,prefix:(m?",":"")+this.newLineCharacter,suffix:g?",":Cp(n)&&l?";":""}}insertNodeAfterComma(t,n,i){let s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,n)||n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAtEndOfList(t,n,i){this.insertNodeAt(t,n.end,i,{prefix:", "})}insertNodesAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,ho(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfterWorker(t,n,i){return JWt(n,i)&&t.text.charCodeAt(n.end-1)!==59&&this.replaceRange(t,um(n.end),j.createToken(27)),nD(t,n,{})}getInsertNodeAfterOptions(t,n){let i=this.getInsertNodeAfterOptionsWorker(n);return{...i,prefix:n.end===t.end&&fa(n)?i.prefix?`
|
|
${i.prefix}`:`
|
|
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return I.assert(fa(t)||gq(t)),{suffix:this.newLineCharacter}}}insertName(t,n,i){if(I.assert(!n.name),n.kind===219){let s=gc(n,39,t),l=gc(n,21,t);l?(this.insertNodesAt(t,l.getStart(t),[j.createToken(100),j.createIdentifier(i)],{joiner:" "}),z0(this,t,s)):(this.insertText(t,ho(n.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,j.createToken(22))),n.body.kind!==241&&(this.insertNodesAt(t,n.body.getStart(t),[j.createToken(19),j.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,n.body.end,[j.createToken(27),j.createToken(20)],{joiner:" "}))}else{let s=gc(n,n.kind===218?100:86,t).end;this.insertNodeAt(t,s,j.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,n){this.insertText(t,n.getStart(t),"export ")}insertImportSpecifierAtIndex(t,n,i,s){let l=i.elements[s-1];l?this.insertNodeInListAfter(t,l,n):this.insertNodeBefore(t,i.elements[0],n,!pm(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,n,i,s=Su.SmartIndenter.getContainingList(n,t)){if(!s){I.fail("node is not a list element");return}let l=tN(s,n);if(l<0)return;let p=n.getEnd();if(l!==s.length-1){let g=ca(t,n.end);if(g&&nie(n,g)){let m=s[l+1],x=CXe(t.text,m.getFullStart()),b=`${to(g.kind)}${t.text.substring(g.end,x)}`;this.insertNodesAt(t,x,[i],{suffix:b})}}else{let g=n.getStart(t),m=Hm(g,t),x,b=!1;if(s.length===1)x=28;else{let S=Ou(n.pos,t);x=nie(n,S)?S.kind:28,b=Hm(s[l-1].getStart(t),t)!==m}if((OWt(t.text,n.end)||!pm(s.pos,s.end,t))&&(b=!0),b){this.replaceRange(t,um(p),j.createToken(x));let S=Su.SmartIndenter.findFirstNonWhitespaceColumn(m,g,t,this.formatContext.options),P=yo(t.text,p,!0,!1);for(;P!==p&&Gp(t.text.charCodeAt(P-1));)P--;this.replaceRange(t,um(P),i,{indentation:S,prefix:this.newLineCharacter})}else this.replaceRange(t,um(p),i,{prefix:`${to(x)} `})}}parenthesizeExpression(t,n){this.replaceRange(t,RX(n),j.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:n})=>{let[i,s]=RWt(t,n);if(i!==void 0&&s!==void 0){let l=iie(t).length===0,p=pm(i,s,n);l&&p&&i!==s-1&&this.deleteRange(n,um(i,s-1)),p&&this.insertText(n,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:n,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===n&&X1e(s.node,i))||(cs(i)?this.deleteRange(n,jX(n,i)):swe.deleteDeclaration(this,t,n,i));t.forEach(n=>{let i=n.getSourceFile(),s=Su.SmartIndenter.getContainingList(n,i);if(n!==ao(s))return;let l=up(s,p=>!t.has(p),s.length-2);l!==-1&&this.deleteRange(i,{pos:s[l].end,end:iwe(i,s[l+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let n=aie.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{n.push(aie.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),n}createNewFile(t,n,i){this.insertStatementsInNewFile(n,i,t)}};function IWt(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function FWt(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{let n=e,i=t;return Ye(n.name)&&Ye(i.name)&&n.name.escapedText===i.name.escapedText?j.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 342:return j.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return j.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function iwe(e,t){return yo(e.text,pC(e,t,{leadingTriviaOption:1}),!1,!0)}function MWt(e,t,n,i){let s=iwe(e,i);if(n===void 0||pm(nD(e,t,{}),s,e))return s;let l=Ou(i.getStart(e),e);if(nie(t,l)){let p=Ou(t.getStart(e),e);if(nie(n,p)){let g=yo(e.text,l.getEnd(),!0,!0);if(pm(p.getStart(e),l.getStart(e),e))return Gp(e.text.charCodeAt(g-1))?g-1:g;if(Gp(e.text.charCodeAt(g)))return g}}return s}function RWt(e,t){let n=gc(e,19,t),i=gc(e,20,t);return[n?.end,i?.end]}function iie(e){return So(e)?e.properties:e.members}var aie;(e=>{function t(g,m,x,b){return Bi(dS(g,S=>S.sourceFile.path),S=>{let P=S[0].sourceFile,E=ff(S,(F,M)=>F.range.pos-M.range.pos||F.range.end-M.range.end);for(let F=0;F<E.length-1;F++)I.assert(E[F].range.end<=E[F+1].range.pos,"Changes overlap",()=>`${JSON.stringify(E[F].range)} and ${JSON.stringify(E[F+1].range)}`);let N=Bi(E,F=>{let M=z1(F.range),L=F.kind===1?rn(al(F.node))??F.sourceFile:F.kind===2?rn(al(F.nodes[0]))??F.sourceFile:F.sourceFile,W=s(F,L,P,m,x,b);if(!(M.length===W.length&&Fbe(L.text,W,M.start)))return gR(M,W)});return N.length>0?{fileName:P.fileName,textChanges:N}:void 0})}e.getTextChangesFromChanges=t;function n(g,m,x,b){let S=i(WJ(g),m,x,b);return{fileName:g,textChanges:[gR(Sp(0,0),S)],isNewFile:!0}}e.newFileChanges=n;function i(g,m,x,b){let S=li(m,N=>N.statements.map(F=>F===4?"":p(F,N.oldFile,x).text)).join(x),P=AE("any file name",S,{languageVersion:99,jsDocParsingMode:1},!0,g),E=Su.formatDocument(P,b);return awe(S,E)+x}e.newFileChangesWorker=i;function s(g,m,x,b,S,P){var E;if(g.kind===0)return"";if(g.kind===3)return g.text;let{options:N={},range:{pos:F}}=g,M=z=>l(z,m,x,F,N,b,S,P),L=g.kind===2?g.nodes.map(z=>a2(M(z),b)).join(((E=g.options)==null?void 0:E.joiner)||b):M(g.node),W=N.indentation!==void 0||Hm(F,m)===F?L:L.replace(/^\s+/,"");return(N.prefix||"")+W+(!N.suffix||bc(W,N.suffix)?"":N.suffix)}function l(g,m,x,b,{indentation:S,prefix:P,delta:E},N,F,M){let{node:L,text:W}=p(g,m,N);M&&M(L,W);let z=jU(F,m),H=S!==void 0?S:Su.SmartIndenter.getIndentation(b,x,z,P===N||Hm(b,m)===b);E===void 0&&(E=Su.SmartIndenter.shouldIndentChildNode(z,g)&&z.indentSize||0);let X={text:W,getLineAndCharacterOfPosition(ae){return $s(this,ae)}},ne=Su.formatNodeGivenIndentation(L,X,m.languageVariant,H,E,{...F,options:z});return awe(W,ne)}function p(g,m,x){let b=PXe(x),S=DR(x);return Ax({newLine:S,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},b).writeNode(4,g,m,b),{text:b.getText(),node:sie(g)}}e.getNonformattedText=p})(aie||(aie={}));function awe(e,t){for(let n=t.length-1;n>=0;n--){let{span:i,newText:s}=t[n];e=`${e.substring(0,i.start)}${s}${e.substring(ml(i))}`}return e}function jWt(e){return yo(e,0)===e.length}var LWt={...VM,factory:Z5(VM.factory.flags|1,VM.factory.baseFactory)};function sie(e){let t=Gr(e,sie,LWt,BWt,sie),n=Pc(t)?t:Object.create(t);return $g(n,SXe(e),TXe(e)),n}function BWt(e,t,n,i,s){let l=dn(e,t,n,i,s);if(!l)return l;I.assert(e);let p=l===e?j.createNodeArray(l.slice(0)):l;return $g(p,SXe(e),TXe(e)),p}function PXe(e){let t=0,n=D5(e),i=ie=>{ie&&twe(ie,t)},s=ie=>{ie&&rwe(ie,t)},l=ie=>{ie&&twe(ie,t)},p=ie=>{ie&&rwe(ie,t)},g=ie=>{ie&&twe(ie,t)},m=ie=>{ie&&rwe(ie,t)};function x(ie,Ne){if(Ne||!jWt(ie)){t=n.getTextPos();let it=0;for(;yv(ie.charCodeAt(ie.length-it-1));)it++;t-=it}}function b(ie){n.write(ie),x(ie,!1)}function S(ie){n.writeComment(ie)}function P(ie){n.writeKeyword(ie),x(ie,!1)}function E(ie){n.writeOperator(ie),x(ie,!1)}function N(ie){n.writePunctuation(ie),x(ie,!1)}function F(ie){n.writeTrailingSemicolon(ie),x(ie,!1)}function M(ie){n.writeParameter(ie),x(ie,!1)}function L(ie){n.writeProperty(ie),x(ie,!1)}function W(ie){n.writeSpace(ie),x(ie,!1)}function z(ie){n.writeStringLiteral(ie),x(ie,!1)}function H(ie,Ne){n.writeSymbol(ie,Ne),x(ie,!1)}function X(ie){n.writeLine(ie)}function ne(){n.increaseIndent()}function ae(){n.decreaseIndent()}function Y(){return n.getText()}function Ee(ie){n.rawWrite(ie),x(ie,!1)}function fe(ie){n.writeLiteral(ie),x(ie,!0)}function te(){return n.getTextPos()}function de(){return n.getLine()}function me(){return n.getColumn()}function ve(){return n.getIndent()}function Pe(){return n.isAtStartOfLine()}function Oe(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:l,onAfterEmitNodeArray:p,onBeforeEmitToken:g,onAfterEmitToken:m,write:b,writeComment:S,writeKeyword:P,writeOperator:E,writePunctuation:N,writeTrailingSemicolon:F,writeParameter:M,writeProperty:L,writeSpace:W,writeStringLiteral:z,writeSymbol:H,writeLine:X,increaseIndent:ne,decreaseIndent:ae,getText:Y,rawWrite:Ee,writeLiteral:fe,getTextPos:te,getLine:de,getColumn:me,getIndent:ve,isAtStartOfLine:Pe,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:Oe}}function qWt(e){let t;for(let x of e.statements)if(Ph(x))t=x;else break;let n=0,i=e.text;if(t)return n=t.end,m(),n;let s=iq(i);s!==void 0&&(n=s.length,m());let l=vv(i,n);if(!l)return n;let p,g;for(let x of l){if(x.kind===3){if(Aq(i,x.pos)){p={range:x,pinnedOrTripleSlash:!0};continue}}else if(iQ(i,x.pos,x.end)){p={range:x,pinnedOrTripleSlash:!0};continue}if(p){if(p.pinnedOrTripleSlash)break;let b=e.getLineAndCharacterOfPosition(x.pos).line,S=e.getLineAndCharacterOfPosition(p.range.end).line;if(b>=S+2)break}if(e.statements.length){g===void 0&&(g=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let b=e.getLineAndCharacterOfPosition(x.end).line;if(g<b+2)break}p={range:x,pinnedOrTripleSlash:!1}}return p&&(n=p.range.end,m()),n;function m(){if(n<i.length){let x=i.charCodeAt(n);Gp(x)&&(n++,n<i.length&&x===13&&i.charCodeAt(n)===10&&n++)}}}function EXe(e,t){return!q1(e,t)&&!WE(e,t)&&!Ete(e,t)&&!nbe(e,t)}function JWt(e,t){return(vf(e)||is(e))&&gq(t)&&t.name.kind===167||LF(e)&&LF(t)}var swe;(e=>{function t(l,p,g,m){switch(m.kind){case 169:{let E=m.parent;Bc(E)&&E.parameters.length===1&&!gc(E,21,g)?l.replaceNodeWithText(g,m,"()"):ij(l,p,g,m);break}case 272:case 271:let x=g.imports.length&&m===ho(g.imports).parent||m===Ir(g.statements,$P);z0(l,g,m,{leadingTriviaOption:x?0:fd(m)?2:3});break;case 208:let b=m.parent;b.kind===207&&m!==ao(b.elements)?z0(l,g,m):ij(l,p,g,m);break;case 260:s(l,p,g,m);break;case 168:ij(l,p,g,m);break;case 276:let P=m.parent;P.elements.length===1?i(l,g,P):ij(l,p,g,m);break;case 274:i(l,g,m);break;case 27:z0(l,g,m,{trailingTriviaOption:0});break;case 100:z0(l,g,m,{leadingTriviaOption:0});break;case 263:case 262:z0(l,g,m,{leadingTriviaOption:fd(m)?2:3});break;default:m.parent?vg(m.parent)&&m.parent.name===m?n(l,g,m.parent):Ls(m.parent)&&Ta(m.parent.arguments,m)?ij(l,p,g,m):z0(l,g,m):z0(l,g,m)}}e.deleteDeclaration=t;function n(l,p,g){if(!g.namedBindings)z0(l,p,g.parent);else{let m=g.name.getStart(p),x=ca(p,g.name.end);if(x&&x.kind===28){let b=yo(p.text,x.end,!1,!0);l.deleteRange(p,{pos:m,end:b})}else z0(l,p,g.name)}}function i(l,p,g){if(g.parent.name){let m=I.checkDefined(ca(p,g.pos-1));l.deleteRange(p,{pos:m.getStart(p),end:g.end})}else{let m=DS(g,272);z0(l,p,m)}}function s(l,p,g,m){let{parent:x}=m;if(x.kind===299){l.deleteNodeRange(g,gc(x,21,g),gc(x,22,g));return}if(x.declarations.length!==1){ij(l,p,g,m);return}let b=x.parent;switch(b.kind){case 250:case 249:l.replaceNode(g,m,j.createObjectLiteralExpression());break;case 248:z0(l,g,x);break;case 243:z0(l,g,b,{leadingTriviaOption:fd(b)?2:3});break;default:I.assertNever(b)}}})(swe||(swe={}));function z0(e,t,n,i={leadingTriviaOption:1}){let s=pC(t,n,i),l=nD(t,n,i);e.deleteRange(t,{pos:s,end:l})}function ij(e,t,n,i){let s=I.checkDefined(Su.SmartIndenter.getContainingList(i,n)),l=tN(s,i);if(I.assert(l!==-1),s.length===1){z0(e,n,i);return}I.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(n,{pos:iwe(n,i),end:l===s.length-1?nD(n,i,{}):MWt(n,i,s[l-1],s[l+1])})}var Su={};w(Su,{FormattingContext:()=>OXe,FormattingRequestKind:()=>DXe,RuleAction:()=>NXe,RuleFlags:()=>AXe,SmartIndenter:()=>Gh,anyContext:()=>oie,createTextRangeWithKind:()=>pie,formatDocument:()=>AUt,formatNodeGivenIndentation:()=>BUt,formatOnClosingCurly:()=>NUt,formatOnEnter:()=>EUt,formatOnOpeningCurly:()=>OUt,formatOnSemicolon:()=>DUt,formatSelection:()=>IUt,getAllRules:()=>IXe,getFormatContext:()=>bUt,getFormattingScanner:()=>owe,getIndentationString:()=>xwe,getRangeOfEnclosingComment:()=>iYe});var DXe=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(DXe||{}),OXe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,i,s){this.currentTokenSpan=I.checkDefined(e),this.currentTokenParent=I.checkDefined(t),this.nextTokenSpan=I.checkDefined(n),this.nextTokenParent=I.checkDefined(i),this.contextNode=I.checkDefined(s),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,n=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===n}BlockIsOnOneLine(e){let t=gc(e,19,this.sourceFile),n=gc(e,20,this.sourceFile);if(t&&n){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===s}return!1}},zWt=bv(99,!1,0),WWt=bv(99,!1,1);function owe(e,t,n,i,s){let l=t===1?WWt:zWt;l.setText(e),l.resetTokenState(n);let p=!0,g,m,x,b,S,P=s({advance:E,readTokenInfo:X,readEOFTokenRange:ae,isOnToken:Y,isOnEOF:Ee,getCurrentLeadingTrivia:()=>g,lastTrailingTriviaWasNewLine:()=>p,skipToEndOf:te,skipToStartOf:de,getTokenFullStart:()=>S?.token.pos??l.getTokenStart(),getStartPos:()=>S?.token.pos??l.getTokenStart()});return S=void 0,l.setText(void 0),P;function E(){S=void 0,l.getTokenFullStart()!==n?p=!!m&&ao(m).kind===4:l.scan(),g=void 0,m=void 0;let ve=l.getTokenFullStart();for(;ve<i;){let Pe=l.getToken();if(!dN(Pe))break;l.scan();let Oe={pos:ve,end:l.getTokenFullStart(),kind:Pe};ve=l.getTokenFullStart(),g=Zr(g,Oe)}x=l.getTokenFullStart()}function N(me){switch(me.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function F(me){if(me.parent)switch(me.parent.kind){case 291:case 286:case 287:case 285:return Yf(me.kind)||me.kind===80}return!1}function M(me){return hE(me)||qh(me)&&S?.token.kind===12}function L(me){return me.kind===14}function W(me){return me.kind===17||me.kind===18}function z(me){return me.parent&&Jh(me.parent)&&me.parent.initializer===me}function H(me){return me===44||me===69}function X(me){I.assert(Y());let ve=N(me)?1:L(me)?2:W(me)?3:F(me)?4:M(me)?5:z(me)?6:0;if(S&&ve===b)return fe(S,me);l.getTokenFullStart()!==x&&(I.assert(S!==void 0),l.resetTokenState(x),l.scan());let Pe=ne(me,ve),Oe=pie(l.getTokenFullStart(),l.getTokenEnd(),Pe);for(m&&(m=void 0);l.getTokenFullStart()<i&&(Pe=l.scan(),!!dN(Pe));){let ie=pie(l.getTokenFullStart(),l.getTokenEnd(),Pe);if(m||(m=[]),m.push(ie),Pe===4){l.scan();break}}return S={leadingTrivia:g,trailingTrivia:m,token:Oe},fe(S,me)}function ne(me,ve){let Pe=l.getToken();switch(b=0,ve){case 1:if(Pe===32){b=1;let Oe=l.reScanGreaterToken();return I.assert(me.kind===Oe),Oe}break;case 2:if(H(Pe)){b=2;let Oe=l.reScanSlashToken();return I.assert(me.kind===Oe),Oe}break;case 3:if(Pe===20)return b=3,l.reScanTemplateToken(!1);break;case 4:return b=4,l.scanJsxIdentifier();case 5:return b=5,l.reScanJsxToken(!1);case 6:return b=6,l.reScanJsxAttributeValue();case 0:break;default:I.assertNever(ve)}return Pe}function ae(){return I.assert(Ee()),pie(l.getTokenFullStart(),l.getTokenEnd(),1)}function Y(){let me=S?S.token.kind:l.getToken();return me!==1&&!dN(me)}function Ee(){return(S?S.token.kind:l.getToken())===1}function fe(me,ve){return RP(ve)&&me.token.kind!==ve.kind&&(me.token.kind=ve.kind),me}function te(me){l.resetTokenState(me.end),x=l.getTokenFullStart(),b=void 0,S=void 0,p=!1,g=void 0,m=void 0}function de(me){l.resetTokenState(me.pos),x=l.getTokenFullStart(),b=void 0,S=void 0,p=!1,g=void 0,m=void 0}}var oie=ce,NXe=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(NXe||{}),AXe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(AXe||{});function IXe(){let e=[];for(let ne=0;ne<=165;ne++)ne!==1&&e.push(ne);function t(...ne){return{tokens:e.filter(ae=>!ne.some(Y=>Y===ae)),isSpecific:!1}}let n={tokens:e,isSpecific:!1},i=a8([...e,3]),s=a8([...e,1]),l=MXe(83,165),p=MXe(30,79),g=[103,104,165,130,142,152],m=[46,47,55,54],x=[9,10,80,21,23,19,110,105],b=[80,21,110,105],S=[80,22,24,105],P=[80,21,110,105],E=[80,22,24,105],N=[2,3],F=[80,...jte],M=i,L=a8([80,32,3,86,95,102]),W=a8([22,3,92,113,98,93,85]),z=[Ti("IgnoreBeforeComment",n,N,oie,1),Ti("IgnoreAfterLineComment",2,n,oie,1),Ti("NotSpaceBeforeColon",n,59,[Oa,P$,LXe],16),Ti("SpaceAfterColon",59,n,[Oa,P$,sUt],4),Ti("NoSpaceBeforeQuestionMark",n,58,[Oa,P$,LXe],16),Ti("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Oa,HWt],4),Ti("NoSpaceAfterQuestionMark",58,n,[Oa,VWt],16),Ti("NoSpaceBeforeDot",n,[25,29],[Oa,vUt],16),Ti("NoSpaceAfterDot",[25,29],n,[Oa],16),Ti("NoSpaceBetweenImportParenInImportType",102,21,[Oa,iUt],16),Ti("NoSpaceAfterUnaryPrefixOperator",m,x,[Oa,P$],16),Ti("NoSpaceAfterUnaryPreincrementOperator",46,b,[Oa],16),Ti("NoSpaceAfterUnaryPredecrementOperator",47,P,[Oa],16),Ti("NoSpaceBeforeUnaryPostincrementOperator",S,46,[Oa,eYe],16),Ti("NoSpaceBeforeUnaryPostdecrementOperator",E,47,[Oa,eYe],16),Ti("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Oa,Rx],4),Ti("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Oa,Rx],4),Ti("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Oa,Rx],4),Ti("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Oa,Rx],4),Ti("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Oa,Rx],4),Ti("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Oa,Rx],4),Ti("NoSpaceAfterCloseBrace",20,[28,27],[Oa],16),Ti("NewLineBeforeCloseBraceInBlockContext",i,20,[qXe],8),Ti("SpaceAfterCloseBrace",20,t(22),[Oa,QWt],4),Ti("SpaceBetweenCloseBraceAndElse",20,93,[Oa],4),Ti("SpaceBetweenCloseBraceAndWhile",20,117,[Oa],4),Ti("NoSpaceBetweenEmptyBraceBrackets",19,20,[Oa,VXe],16),Ti("SpaceAfterConditionalClosingParen",22,23,[E$],4),Ti("NoSpaceBetweenFunctionKeywordAndStar",100,42,[WXe],16),Ti("SpaceAfterStarInGeneratorDeclaration",42,80,[WXe],4),Ti("SpaceAfterFunctionInFuncDecl",100,n,[fC],4),Ti("NewLineAfterOpenBraceInBlockContext",19,n,[qXe],8),Ti("SpaceAfterGetSetInMember",[139,153],80,[fC],4),Ti("NoSpaceBetweenYieldKeywordAndStar",127,42,[Oa,ZXe],16),Ti("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Oa,ZXe],4),Ti("NoSpaceBetweenReturnAndSemicolon",107,27,[Oa],16),Ti("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Oa],4),Ti("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Oa,lUt],4),Ti("NoSpaceBeforeOpenParenInFuncCall",n,21,[Oa,ZWt,eUt],16),Ti("SpaceBeforeBinaryKeywordOperator",n,g,[Oa,Rx],4),Ti("SpaceAfterBinaryKeywordOperator",g,n,[Oa,Rx],4),Ti("SpaceAfterVoidOperator",116,n,[Oa,dUt],4),Ti("SpaceBetweenAsyncAndOpenParen",134,21,[nUt,Oa],4),Ti("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Oa],4),Ti("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Oa],16),Ti("SpaceBeforeJsxAttribute",n,80,[aUt,Oa],4),Ti("SpaceBeforeSlashInJsxOpeningElement",n,44,[QXe,Oa],4),Ti("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[QXe,Oa],16),Ti("NoSpaceBeforeEqualInJsxAttribute",n,64,[GXe,Oa],16),Ti("NoSpaceAfterEqualInJsxAttribute",64,n,[GXe,Oa],16),Ti("NoSpaceBeforeJsxNamespaceColon",80,59,[KXe],16),Ti("NoSpaceAfterJsxNamespaceColon",59,80,[KXe],16),Ti("NoSpaceAfterModuleImport",[144,149],21,[Oa],16),Ti("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Oa],4),Ti("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Oa],4),Ti("SpaceAfterModuleName",11,19,[uUt],4),Ti("SpaceBeforeArrow",n,39,[Oa],4),Ti("SpaceAfterArrow",39,n,[Oa],4),Ti("NoSpaceAfterEllipsis",26,80,[Oa],16),Ti("NoSpaceAfterOptionalParameters",58,[22,28],[Oa,P$],16),Ti("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Oa,pUt],16),Ti("NoSpaceBeforeOpenAngularBracket",F,30,[Oa,D$],16),Ti("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Oa,D$],16),Ti("NoSpaceAfterOpenAngularBracket",30,n,[Oa,D$],16),Ti("NoSpaceBeforeCloseAngularBracket",n,32,[Oa,D$],16),Ti("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Oa,D$,KWt,_Ut],16),Ti("SpaceBeforeAt",[22,80],60,[Oa],4),Ti("NoSpaceAfterAt",60,n,[Oa],16),Ti("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[cUt],4),Ti("NoSpaceBeforeNonNullAssertionOperator",n,54,[Oa,mUt],16),Ti("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Oa,fUt],16),Ti("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Oa],4)],H=[Ti("SpaceAfterConstructor",137,21,[jd("insertSpaceAfterConstructor"),Oa],4),Ti("NoSpaceAfterConstructor",137,21,[Hh("insertSpaceAfterConstructor"),Oa],16),Ti("SpaceAfterComma",28,n,[jd("insertSpaceAfterCommaDelimiter"),Oa,dwe,tUt,rUt],4),Ti("NoSpaceAfterComma",28,n,[Hh("insertSpaceAfterCommaDelimiter"),Oa,dwe],16),Ti("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[jd("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fC],4),Ti("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Hh("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fC],16),Ti("SpaceAfterKeywordInControl",l,21,[jd("insertSpaceAfterKeywordsInControlFlowStatements"),E$],4),Ti("NoSpaceAfterKeywordInControl",l,21,[Hh("insertSpaceAfterKeywordsInControlFlowStatements"),E$],16),Ti("SpaceAfterOpenParen",21,n,[jd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oa],4),Ti("SpaceBeforeCloseParen",n,22,[jd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oa],4),Ti("SpaceBetweenOpenParens",21,21,[jd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oa],4),Ti("NoSpaceBetweenParens",21,22,[Oa],16),Ti("NoSpaceAfterOpenParen",21,n,[Hh("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oa],16),Ti("NoSpaceBeforeCloseParen",n,22,[Hh("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Oa],16),Ti("SpaceAfterOpenBracket",23,n,[jd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oa],4),Ti("SpaceBeforeCloseBracket",n,24,[jd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oa],4),Ti("NoSpaceBetweenBrackets",23,24,[Oa],16),Ti("NoSpaceAfterOpenBracket",23,n,[Hh("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oa],16),Ti("NoSpaceBeforeCloseBracket",n,24,[Hh("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Oa],16),Ti("SpaceAfterOpenBrace",19,n,[jXe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),BXe],4),Ti("SpaceBeforeCloseBrace",n,20,[jXe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),BXe],4),Ti("NoSpaceBetweenEmptyBraceBrackets",19,20,[Oa,VXe],16),Ti("NoSpaceAfterOpenBrace",19,n,[cwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Oa],16),Ti("NoSpaceBeforeCloseBrace",n,20,[cwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Oa],16),Ti("SpaceBetweenEmptyBraceBrackets",19,20,[jd("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Ti("NoSpaceBetweenEmptyBraceBrackets",19,20,[cwe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Oa],16),Ti("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[jd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),HXe],4,1),Ti("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[jd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oa],4),Ti("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Hh("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),HXe],16,1),Ti("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Hh("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Oa],16),Ti("SpaceAfterOpenBraceInJsxExpression",19,n,[jd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oa,lie],4),Ti("SpaceBeforeCloseBraceInJsxExpression",n,20,[jd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oa,lie],4),Ti("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Hh("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oa,lie],16),Ti("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Hh("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Oa,lie],16),Ti("SpaceAfterSemicolonInFor",27,n,[jd("insertSpaceAfterSemicolonInForStatements"),Oa,uwe],4),Ti("NoSpaceAfterSemicolonInFor",27,n,[Hh("insertSpaceAfterSemicolonInForStatements"),Oa,uwe],16),Ti("SpaceBeforeBinaryOperator",n,p,[jd("insertSpaceBeforeAndAfterBinaryOperators"),Oa,Rx],4),Ti("SpaceAfterBinaryOperator",p,n,[jd("insertSpaceBeforeAndAfterBinaryOperators"),Oa,Rx],4),Ti("NoSpaceBeforeBinaryOperator",n,p,[Hh("insertSpaceBeforeAndAfterBinaryOperators"),Oa,Rx],16),Ti("NoSpaceAfterBinaryOperator",p,n,[Hh("insertSpaceBeforeAndAfterBinaryOperators"),Oa,Rx],16),Ti("SpaceBeforeOpenParenInFuncDecl",n,21,[jd("insertSpaceBeforeFunctionParenthesis"),Oa,fC],4),Ti("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Hh("insertSpaceBeforeFunctionParenthesis"),Oa,fC],16),Ti("NewLineBeforeOpenBraceInControl",W,19,[jd("placeOpenBraceOnNewLineForControlBlocks"),E$,_we],8,1),Ti("NewLineBeforeOpenBraceInFunction",M,19,[jd("placeOpenBraceOnNewLineForFunctions"),fC,_we],8,1),Ti("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",L,19,[jd("placeOpenBraceOnNewLineForFunctions"),UXe,_we],8,1),Ti("SpaceAfterTypeAssertion",32,n,[jd("insertSpaceAfterTypeAssertion"),Oa,gwe],4),Ti("NoSpaceAfterTypeAssertion",32,n,[Hh("insertSpaceAfterTypeAssertion"),Oa,gwe],16),Ti("SpaceBeforeTypeAnnotation",n,[58,59],[jd("insertSpaceBeforeTypeAnnotation"),Oa,pwe],4),Ti("NoSpaceBeforeTypeAnnotation",n,[58,59],[Hh("insertSpaceBeforeTypeAnnotation"),Oa,pwe],16),Ti("NoOptionalSemicolon",27,s,[RXe("semicolons","remove"),hUt],32),Ti("OptionalSemicolon",n,s,[RXe("semicolons","insert"),yUt],64)],X=[Ti("NoSpaceBeforeSemicolon",n,27,[Oa],16),Ti("SpaceBeforeOpenBraceInControl",W,19,[lwe("placeOpenBraceOnNewLineForControlBlocks"),E$,mwe,fwe],4,1),Ti("SpaceBeforeOpenBraceInFunction",M,19,[lwe("placeOpenBraceOnNewLineForFunctions"),fC,cie,mwe,fwe],4,1),Ti("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",L,19,[lwe("placeOpenBraceOnNewLineForFunctions"),UXe,mwe,fwe],4,1),Ti("NoSpaceBeforeComma",n,28,[Oa],16),Ti("NoSpaceBeforeOpenBracket",t(134,84),23,[Oa],16),Ti("NoSpaceAfterCloseBracket",24,n,[Oa,oUt],16),Ti("SpaceAfterSemicolon",27,n,[Oa],4),Ti("SpaceBetweenForAndAwaitKeyword",99,135,[Oa],4),Ti("SpaceBetweenDotDotDotAndTypeName",26,F,[Oa],16),Ti("SpaceBetweenStatements",[22,92,93,84],n,[Oa,dwe,UWt],4),Ti("SpaceAfterTryCatchFinally",[113,85,98],19,[Oa],4)];return[...z,...H,...X]}function Ti(e,t,n,i,s,l=0){return{leftTokenRange:FXe(t),rightTokenRange:FXe(n),rule:{debugName:e,context:i,action:s,flags:l}}}function a8(e){return{tokens:e,isSpecific:!0}}function FXe(e){return typeof e=="number"?a8([e]):cs(e)?a8(e):e}function MXe(e,t,n=[]){let i=[];for(let s=e;s<=t;s++)Ta(n,s)||i.push(s);return a8(i)}function RXe(e,t){return n=>n.options&&n.options[e]===t}function jd(e){return t=>t.options&&ec(t.options,e)&&!!t.options[e]}function cwe(e){return t=>t.options&&ec(t.options,e)&&!t.options[e]}function Hh(e){return t=>!t.options||!ec(t.options,e)||!t.options[e]}function lwe(e){return t=>!t.options||!ec(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function jXe(e){return t=>!t.options||!ec(t.options,e)||!!t.options[e]}function uwe(e){return e.contextNode.kind===248}function UWt(e){return!uwe(e)}function Rx(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function P$(e){return!Rx(e)}function LXe(e){return!pwe(e)}function pwe(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||jP(t)}function $Wt(e){return is(e.contextNode)&&e.contextNode.questionToken}function VWt(e){return!$Wt(e)}function HWt(e){return e.contextNode.kind===227||e.contextNode.kind===194}function fwe(e){return e.TokensAreOnSameLine()||cie(e)}function BXe(e){return e.contextNode.kind===206||e.contextNode.kind===200||GWt(e)}function _we(e){return cie(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function qXe(e){return JXe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function GWt(e){return JXe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function JXe(e){return zXe(e.contextNode)}function cie(e){return zXe(e.nextTokenParent)}function zXe(e){if($Xe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function fC(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function KWt(e){return!fC(e)}function WXe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function UXe(e){return $Xe(e.contextNode)}function $Xe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function QWt(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function E$(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function VXe(e){return e.contextNode.kind===210}function XWt(e){return e.contextNode.kind===213}function YWt(e){return e.contextNode.kind===214}function ZWt(e){return XWt(e)||YWt(e)}function eUt(e){return e.currentTokenSpan.kind!==28}function tUt(e){return e.nextTokenSpan.kind!==24}function rUt(e){return e.nextTokenSpan.kind!==22}function nUt(e){return e.contextNode.kind===219}function iUt(e){return e.contextNode.kind===205}function Oa(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function HXe(e){return e.contextNode.kind!==12}function dwe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function lie(e){return e.contextNode.kind===294||e.contextNode.kind===293}function aUt(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function GXe(e){return e.contextNode.kind===291}function sUt(e){return e.nextTokenParent.kind!==295}function KXe(e){return e.nextTokenParent.kind===295}function QXe(e){return e.contextNode.kind===285}function oUt(e){return!fC(e)&&!cie(e)}function cUt(e){return e.TokensAreOnSameLine()&&Od(e.contextNode)&&XXe(e.currentTokenParent)&&!XXe(e.nextTokenParent)}function XXe(e){for(;e&&At(e);)e=e.parent;return e&&e.kind===170}function lUt(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function mwe(e){return e.formattingRequestKind!==2}function uUt(e){return e.contextNode.kind===267}function pUt(e){return e.contextNode.kind===187}function fUt(e){return e.contextNode.kind===180}function YXe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function D$(e){return YXe(e.currentTokenSpan,e.currentTokenParent)||YXe(e.nextTokenSpan,e.nextTokenParent)}function gwe(e){return e.contextNode.kind===216}function _Ut(e){return!gwe(e)}function dUt(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function ZXe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function mUt(e){return e.contextNode.kind===235}function eYe(e){return!gUt(e)}function gUt(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function hUt(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(dN(t)){let l=e.nextTokenParent===e.currentTokenParent?Y2(e.currentTokenParent,Br(e.currentTokenParent,p=>!p.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!l)return!0;t=l.kind,n=l.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(n).line;return i===s?t===20||t===1:t===27&&e.currentTokenSpan.kind===27?!0:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!vf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:is(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function yUt(e){return DU(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function vUt(e){return!ai(e.contextNode)||!e_(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function bUt(e,t){return{options:e,getRules:xUt(),host:t}}var hwe;function xUt(){return hwe===void 0&&(hwe=TUt(IXe())),hwe}function SUt(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function TUt(e){let t=wUt(e);return n=>{let i=t[tYe(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){let s=[],l=0;for(let p of i){let g=~SUt(l);p.action&g&&sn(p.context,m=>m(n))&&(s.push(p),l|=p.action)}if(s.length)return s}}}function wUt(e){let t=new Array(ywe*ywe),n=new Array(t.length);for(let i of e){let s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let l of i.leftTokenRange.tokens)for(let p of i.rightTokenRange.tokens){let g=tYe(l,p),m=t[g];m===void 0&&(m=t[g]=[]),kUt(m,i.rule,s,n,g)}}return t}function tYe(e,t){return I.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*ywe+t}var s8=5,uie=31,ywe=166,aj=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=s8*1]="StopRulesAny",e[e.ContextRulesSpecific=s8*2]="ContextRulesSpecific",e[e.ContextRulesAny=s8*3]="ContextRulesAny",e[e.NoContextRulesSpecific=s8*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=s8*5]="NoContextRulesAny",e))(aj||{});function kUt(e,t,n,i,s){let l=t.action&3?n?0:aj.StopRulesAny:t.context!==oie?n?aj.ContextRulesSpecific:aj.ContextRulesAny:n?aj.NoContextRulesSpecific:aj.NoContextRulesAny,p=i[s]||0;e.splice(CUt(p,l),0,t),i[s]=PUt(p,l)}function CUt(e,t){let n=0;for(let i=0;i<=t;i+=s8)n+=e&uie,e>>=s8;return n}function PUt(e,t){let n=(e>>t&uie)+1;return I.assert((n&uie)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(uie<<t)|n<<t}function pie(e,t,n){let i={pos:e,end:t,kind:n};return I.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>I.formatSyntaxKind(n)}),i}function EUt(e,t,n){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=zF(i,t);for(;Th(t.text.charCodeAt(s));)s--;Gp(t.text.charCodeAt(s))&&s--;let l={pos:ux(i-1,t),end:s+1};return O$(l,t,n,2)}function DUt(e,t,n){let i=vwe(e,27,t);return rYe(bwe(i),t,n,3)}function OUt(e,t,n){let i=vwe(e,19,t);if(!i)return[];let s=i.parent,l=bwe(s),p={pos:Hm(l.getStart(t),t),end:e};return O$(p,t,n,4)}function NUt(e,t,n){let i=vwe(e,20,t);return rYe(bwe(i),t,n,5)}function AUt(e,t){let n={pos:0,end:e.text.length};return O$(n,e,t,0)}function IUt(e,t,n,i){let s={pos:Hm(e,n),end:t};return O$(s,n,i,1)}function vwe(e,t,n){let i=Ou(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function bwe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!FUt(t.parent,t);)t=t.parent;return t}function FUt(e,t){switch(e.kind){case 263:case 264:return Zf(e.members,t);case 267:let n=e.body;return!!n&&n.kind===268&&Zf(n.statements,t);case 307:case 241:case 268:return Zf(e.statements,t);case 299:return Zf(e.block.statements,t)}return!1}function MUt(e,t){return n(t);function n(i){let s=xs(i,l=>fX(l.getStart(t),l.end,e)&&l);if(s){let l=n(s);if(l)return l}return i}}function RUt(e,t){if(!e.length)return s;let n=e.filter(l=>M3(t,l.start,l.start+l.length)).sort((l,p)=>l.start-p.start);if(!n.length)return s;let i=0;return l=>{for(;;){if(i>=n.length)return!1;let p=n[i];if(l.end<=p.start)return!1;if(lU(l.pos,l.end,p.start,p.start+p.length))return!0;i++}};function s(){return!1}}function jUt(e,t,n){let i=e.getStart(n);if(i===t.pos&&e.end===t.end)return i;let s=Ou(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function LUt(e,t,n){let i=-1,s;for(;e;){let l=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&l!==i)break;if(Gh.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=l,s=e,e=e.parent}return 0}function BUt(e,t,n,i,s,l){let p={pos:e.pos,end:e.end};return owe(t.text,n,p.pos,p.end,g=>nYe(p,e,i,s,g,l,1,m=>!1,t))}function rYe(e,t,n,i){if(!e)return[];let s={pos:Hm(e.getStart(t),t),end:e.end};return O$(s,t,n,i)}function O$(e,t,n,i){let s=MUt(e,t);return owe(t.text,t.languageVariant,jUt(s,e,t),e.end,l=>nYe(e,s,Gh.getIndentationForNode(s,e,t,n.options),LUt(s,n.options,t),l,n,i,RUt(t.parseDiagnostics,e),t))}function nYe(e,t,n,i,s,{options:l,getRules:p,host:g},m,x,b){var S;let P=new OXe(b,m,l),E,N,F,M,L,W=-1,z=[];if(s.advance(),s.isOnToken()){let xe=b.getLineAndCharacterOfPosition(t.getStart(b)).line,nt=xe;Od(t)&&(nt=b.getLineAndCharacterOfPosition(aQ(t,b)).line),Ee(t,t,xe,nt,n,i)}let H=s.getCurrentLeadingTrivia();if(H){let xe=Gh.nodeWillIndentChild(l,t,void 0,b,!1)?n+l.indentSize:n;fe(H,xe,!0,nt=>{de(nt,b.getLineAndCharacterOfPosition(nt.pos),t,t,void 0),ve(nt.pos,xe,!1)}),l.trimTrailingWhitespace!==!1&&ze(H)}if(N&&s.getTokenFullStart()>=e.end){let xe=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(xe&&xe.pos===E){let nt=((S=Ou(xe.end,b,t))==null?void 0:S.parent)||F;me(xe,b.getLineAndCharacterOfPosition(xe.pos).line,nt,N,M,F,nt,void 0)}}return z;function X(xe,nt,pe,He,qe){if(M3(He,xe,nt)||_R(He,xe,nt)){if(qe!==-1)return qe}else{let je=b.getLineAndCharacterOfPosition(xe).line,st=Hm(xe,b),jt=Gh.findFirstNonWhitespaceColumn(st,xe,b,l);if(je!==pe||xe===jt){let ar=Gh.getBaseIndentation(l);return ar>jt?ar:jt}}return-1}function ne(xe,nt,pe,He,qe,je){let st=Gh.shouldIndentChildNode(l,xe)?l.indentSize:0;return je===nt?{indentation:nt===L?W:qe.getIndentation(),delta:Math.min(l.indentSize,qe.getDelta(xe)+st)}:pe===-1?xe.kind===21&&nt===L?{indentation:W,delta:qe.getDelta(xe)}:Gh.childStartsOnTheSameLineWithElseInIfStatement(He,xe,nt,b)||Gh.childIsUnindentedBranchOfConditionalExpression(He,xe,nt,b)||Gh.argumentStartsOnSameLineAsPreviousArgument(He,xe,nt,b)?{indentation:qe.getIndentation(),delta:st}:{indentation:qe.getIndentation()+qe.getDelta(xe),delta:st}:{indentation:pe,delta:st}}function ae(xe){if($m(xe)){let nt=Ir(xe.modifiers,oo,Va(xe.modifiers,qu));if(nt)return nt.kind}switch(xe.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(xe.asteriskToken)return 42;case 172:case 169:let nt=ls(xe);if(nt)return nt.kind}}function Y(xe,nt,pe,He){return{getIndentationForComment:(st,jt,ar)=>{switch(st){case 20:case 24:case 22:return pe+je(ar)}return jt!==-1?jt:pe},getIndentationForToken:(st,jt,ar,Or)=>!Or&&qe(st,jt,ar)?pe+je(ar):pe,getIndentation:()=>pe,getDelta:je,recomputeIndentation:(st,jt)=>{Gh.shouldIndentChildNode(l,jt,xe,b)&&(pe+=st?l.indentSize:-l.indentSize,He=Gh.shouldIndentChildNode(l,xe)?l.indentSize:0)}};function qe(st,jt,ar){switch(jt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(ar.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(ar.kind!==200)return!1;break}return nt!==st&&!(Od(xe)&&jt===ae(xe))}function je(st){return Gh.nodeWillIndentChild(l,xe,st,b,!0)?He:0}}function Ee(xe,nt,pe,He,qe,je){if(!M3(e,xe.getStart(b),xe.getEnd()))return;let st=Y(xe,pe,qe,je),jt=nt;for(xs(xe,Ct=>{ar(Ct,-1,xe,st,pe,He,!1)},Ct=>{Or(Ct,xe,pe,st)});s.isOnToken()&&s.getTokenFullStart()<e.end;){let Ct=s.readTokenInfo(xe);if(Ct.token.end>Math.min(xe.end,e.end))break;nn(Ct,xe,st,xe)}function ar(Ct,pr,vn,ta,ts,Gt,hi,$a){if(I.assert(!Pc(Ct)),Sl(Ct)||Wde(vn,Ct))return pr;let ui=Ct.getStart(b),Wn=b.getLineAndCharacterOfPosition(ui).line,Gi=Wn;Od(Ct)&&(Gi=b.getLineAndCharacterOfPosition(aQ(Ct,b)).line);let at=-1;if(hi&&Zf(e,vn)&&(at=X(ui,Ct.end,ts,e,pr),at!==-1&&(pr=at)),!M3(e,Ct.pos,Ct.end))return Ct.end<e.pos&&s.skipToEndOf(Ct),pr;if(Ct.getFullWidth()===0)return pr;for(;s.isOnToken()&&s.getTokenFullStart()<e.end;){let wn=s.readTokenInfo(xe);if(wn.token.end>e.end)return pr;if(wn.token.end>ui){wn.token.pos>ui&&s.skipToStartOf(Ct);break}nn(wn,xe,ta,xe)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return pr;if(RP(Ct)){let wn=s.readTokenInfo(Ct);if(Ct.kind!==12)return I.assert(wn.token.end===Ct.end,"Token end is child end"),nn(wn,xe,ta,Ct),pr}let It=Ct.kind===170?Wn:Gt,Cr=ne(Ct,Wn,at,xe,ta,It);return Ee(Ct,jt,Wn,Gi,Cr.indentation,Cr.delta),jt=xe,$a&&vn.kind===209&&pr===-1&&(pr=Cr.indentation),pr}function Or(Ct,pr,vn,ta){I.assert(p2(Ct)),I.assert(!Pc(Ct));let ts=qUt(pr,Ct),Gt=ta,hi=vn;if(!M3(e,Ct.pos,Ct.end)){Ct.end<e.pos&&s.skipToEndOf(Ct);return}if(ts!==0)for(;s.isOnToken()&&s.getTokenFullStart()<e.end;){let Wn=s.readTokenInfo(pr);if(Wn.token.end>Ct.pos)break;if(Wn.token.kind===ts){hi=b.getLineAndCharacterOfPosition(Wn.token.pos).line,nn(Wn,pr,ta,pr);let Gi;if(W!==-1)Gi=W;else{let at=Hm(Wn.token.pos,b);Gi=Gh.findFirstNonWhitespaceColumn(at,Wn.token.pos,b,l)}Gt=Y(pr,vn,Gi,l.indentSize)}else nn(Wn,pr,ta,pr)}let $a=-1;for(let Wn=0;Wn<Ct.length;Wn++){let Gi=Ct[Wn];$a=ar(Gi,$a,xe,Gt,hi,hi,!0,Wn===0)}let ui=JUt(ts);if(ui!==0&&s.isOnToken()&&s.getTokenFullStart()<e.end){let Wn=s.readTokenInfo(pr);Wn.token.kind===28&&(nn(Wn,pr,Gt,pr),Wn=s.isOnToken()?s.readTokenInfo(pr):void 0),Wn&&Wn.token.kind===ui&&Zf(pr,Wn.token)&&nn(Wn,pr,Gt,pr,!0)}}function nn(Ct,pr,vn,ta,ts){I.assert(Zf(pr,Ct.token));let Gt=s.lastTrailingTriviaWasNewLine(),hi=!1;Ct.leadingTrivia&&te(Ct.leadingTrivia,pr,jt,vn);let $a=0,ui=Zf(e,Ct.token),Wn=b.getLineAndCharacterOfPosition(Ct.token.pos);if(ui){let Gi=x(Ct.token),at=N;if($a=de(Ct.token,Wn,pr,jt,vn),!Gi)if($a===0){let It=at&&b.getLineAndCharacterOfPosition(at.end).line;hi=Gt&&Wn.line!==It}else hi=$a===1}if(Ct.trailingTrivia&&(E=ao(Ct.trailingTrivia).end,te(Ct.trailingTrivia,pr,jt,vn)),hi){let Gi=ui&&!x(Ct.token)?vn.getIndentationForToken(Wn.line,Ct.token.kind,ta,!!ts):-1,at=!0;if(Ct.leadingTrivia){let It=vn.getIndentationForComment(Ct.token.kind,Gi,ta);at=fe(Ct.leadingTrivia,It,at,Cr=>ve(Cr.pos,It,!1))}Gi!==-1&&at&&(ve(Ct.token.pos,Gi,$a===1),L=Wn.line,W=Gi)}s.advance(),jt=pr}}function fe(xe,nt,pe,He){for(let qe of xe){let je=Zf(e,qe);switch(qe.kind){case 3:je&&ie(qe,nt,!pe),pe=!1;break;case 2:pe&&je&&He(qe),pe=!1;break;case 4:pe=!0;break}}return pe}function te(xe,nt,pe,He){for(let qe of xe)if(gU(qe.kind)&&Zf(e,qe)){let je=b.getLineAndCharacterOfPosition(qe.pos);de(qe,je,nt,pe,He)}}function de(xe,nt,pe,He,qe){let je=x(xe),st=0;if(!je)if(N)st=me(xe,nt.line,pe,N,M,F,He,qe);else{let jt=b.getLineAndCharacterOfPosition(e.pos);Ne(jt.line,nt.line)}return N=xe,E=xe.end,F=pe,M=nt.line,st}function me(xe,nt,pe,He,qe,je,st,jt){P.updateContext(He,je,xe,pe,st);let ar=p(P),Or=P.options.trimTrailingWhitespace!==!1,nn=0;return ar?_r(ar,Ct=>{if(nn=Tt(Ct,He,qe,xe,nt),jt)switch(nn){case 2:pe.getStart(b)===xe.pos&&jt.recomputeIndentation(!1,st);break;case 1:pe.getStart(b)===xe.pos&&jt.recomputeIndentation(!0,st);break;default:I.assert(nn===0)}Or=Or&&!(Ct.action&16)&&Ct.flags!==1}):Or=Or&&xe.kind!==1,nt!==qe&&Or&&Ne(qe,nt,He),nn}function ve(xe,nt,pe){let He=xwe(nt,l);if(pe)Te(xe,0,He);else{let qe=b.getLineAndCharacterOfPosition(xe),je=ux(qe.line,b);(nt!==Pe(je,qe.character)||Oe(He,je))&&Te(je,qe.character,He)}}function Pe(xe,nt){let pe=0;for(let He=0;He<nt;He++)b.text.charCodeAt(xe+He)===9?pe+=l.tabSize-pe%l.tabSize:pe++;return pe}function Oe(xe,nt){return xe!==b.text.substr(nt,xe.length)}function ie(xe,nt,pe,He=!0){let qe=b.getLineAndCharacterOfPosition(xe.pos).line,je=b.getLineAndCharacterOfPosition(xe.end).line;if(qe===je){pe||ve(xe.pos,nt,!1);return}let st=[],jt=xe.pos;for(let pr=qe;pr<je;pr++){let vn=zF(pr,b);st.push({pos:jt,end:vn}),jt=ux(pr+1,b)}if(He&&st.push({pos:jt,end:xe.end}),st.length===0)return;let ar=ux(qe,b),Or=Gh.findFirstNonWhitespaceCharacterAndColumn(ar,st[0].pos,b,l),nn=0;pe&&(nn=1,qe++);let Ct=nt-Or.column;for(let pr=nn;pr<st.length;pr++,qe++){let vn=ux(qe,b),ta=pr===0?Or:Gh.findFirstNonWhitespaceCharacterAndColumn(st[pr].pos,st[pr].end,b,l),ts=ta.column+Ct;if(ts>0){let Gt=xwe(ts,l);Te(vn,ta.character,Gt)}else Me(vn,ta.character)}}function Ne(xe,nt,pe){for(let He=xe;He<nt;He++){let qe=ux(He,b),je=zF(He,b);if(pe&&(gU(pe.kind)||Nte(pe.kind))&&pe.pos<=je&&pe.end>je)continue;let st=it(qe,je);st!==-1&&(I.assert(st===qe||!Th(b.text.charCodeAt(st-1))),Me(st,je+1-st))}}function it(xe,nt){let pe=nt;for(;pe>=xe&&Th(b.text.charCodeAt(pe));)pe--;return pe!==nt?pe+1:-1}function ze(xe){let nt=N?N.end:e.pos;for(let pe of xe)gU(pe.kind)&&(nt<pe.pos&&ge(nt,pe.pos-1,N),nt=pe.end+1);nt<e.end&&ge(nt,e.end,N)}function ge(xe,nt,pe){let He=b.getLineAndCharacterOfPosition(xe).line,qe=b.getLineAndCharacterOfPosition(nt).line;Ne(He,qe+1,pe)}function Me(xe,nt){nt&&z.push(yU(xe,nt,""))}function Te(xe,nt,pe){(nt||pe)&&z.push(yU(xe,nt,pe))}function gt(xe,nt){nt&&z.push(yU(xe,0,nt))}function Tt(xe,nt,pe,He,qe){let je=qe!==pe;switch(xe.action){case 1:return 0;case 16:if(nt.end!==He.pos)return Me(nt.end,He.pos-nt.end),je?2:0;break;case 32:Me(nt.pos,nt.end-nt.pos);break;case 8:if(xe.flags!==1&&pe!==qe)return 0;if(qe-pe!==1)return Te(nt.end,He.pos-nt.end,B0(g,l)),je?0:1;break;case 4:if(xe.flags!==1&&pe!==qe)return 0;if(He.pos-nt.end!==1||b.text.charCodeAt(nt.end)!==32)return Te(nt.end,He.pos-nt.end," "),je?2:0;break;case 64:gt(nt.end,";")}return 0}}function iYe(e,t,n,i=ca(e,t)){let s=Br(i,Gg);if(s&&(i=s.parent),i.getStart(e)<=t&&t<i.getEnd())return;n=n===null?void 0:n===void 0?Ou(t,e):n;let p=n&&ex(e.text,n.end),g=yQ(i,e),m=ya(p,g);return m&&Ir(m,x=>fR(x,t)||t===x.end&&(x.kind===2||t===e.getFullWidth()))}function qUt(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function JUt(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var fie,sj,oj;function xwe(e,t){if((!fie||fie.tabSize!==t.tabSize||fie.indentSize!==t.indentSize)&&(fie={tabSize:t.tabSize,indentSize:t.indentSize},sj=oj=void 0),t.convertTabsToSpaces){let i,s=Math.floor(e/t.indentSize),l=e%t.indentSize;return oj||(oj=[]),oj[s]===void 0?(i=hR(" ",t.indentSize*s),oj[s]=i):i=oj[s],l?i+hR(" ",l):i}else{let i=Math.floor(e/t.tabSize),s=e-i*t.tabSize,l;return sj||(sj=[]),sj[i]===void 0?sj[i]=l=hR(" ",i):l=sj[i],s?l+hR(" ",s):l}}var Gh;(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function n(ie,Ne,it,ze=!1){if(ie>Ne.text.length)return g(it);if(it.indentStyle===0)return 0;let ge=Ou(ie,Ne,void 0,!0),Me=iYe(Ne,ie,ge||null);if(Me&&Me.kind===3)return i(Ne,ie,it,Me);if(!ge)return g(it);if(Nte(ge.kind)&&ge.getStart(Ne)<=ie&&ie<ge.end)return 0;let gt=Ne.getLineAndCharacterOfPosition(ie).line,Tt=ca(Ne,ie),xe=Tt.kind===19&&Tt.parent.kind===210;if(it.indentStyle===1||xe)return s(Ne,ie,it);if(ge.kind===28&&ge.parent.kind!==226){let pe=b(ge,Ne,it);if(pe!==-1)return pe}let nt=H(ie,ge.parent,Ne);if(nt&&!Zf(nt,ge)){let He=[218,219].includes(Tt.parent.kind)?0:it.indentSize;return ae(nt,Ne,it)+He}return l(Ne,ie,ge,gt,ze,it)}e.getIndentation=n;function i(ie,Ne,it,ze){let ge=$s(ie,Ne).line-1,Me=$s(ie,ze.pos).line;if(I.assert(Me>=0),ge<=Me)return de(ux(Me,ie),Ne,ie,it);let Te=ux(ge,ie),{column:gt,character:Tt}=te(Te,Ne,ie,it);return gt===0?gt:ie.text.charCodeAt(Te+Tt)===42?gt-1:gt}function s(ie,Ne,it){let ze=Ne;for(;ze>0;){let Me=ie.text.charCodeAt(ze);if(!yv(Me))break;ze--}let ge=Hm(ze,ie);return de(ge,ze,ie,it)}function l(ie,Ne,it,ze,ge,Me){let Te,gt=it;for(;gt;){if(wte(gt,Ne,ie)&&Pe(Me,gt,Te,ie,!0)){let xe=N(gt,ie),nt=E(it,gt,ze,ie),pe=nt!==0?ge&&nt===2?Me.indentSize:0:ze!==xe.line?Me.indentSize:0;return m(gt,xe,void 0,pe,ie,!0,Me)}let Tt=Y(gt,ie,Me,!0);if(Tt!==-1)return Tt;Te=gt,gt=gt.parent}return g(Me)}function p(ie,Ne,it,ze){let ge=it.getLineAndCharacterOfPosition(ie.getStart(it));return m(ie,ge,Ne,0,it,!1,ze)}e.getIndentationForNode=p;function g(ie){return ie.baseIndentSize||0}e.getBaseIndentation=g;function m(ie,Ne,it,ze,ge,Me,Te){var gt;let Tt=ie.parent;for(;Tt;){let xe=!0;if(it){let qe=ie.getStart(ge);xe=qe<it.pos||qe>it.end}let nt=x(Tt,ie,ge),pe=nt.line===Ne.line||M(Tt,ie,Ne.line,ge);if(xe){let qe=(gt=z(ie,ge))==null?void 0:gt[0],je=!!qe&&N(qe,ge).line>nt.line,st=Y(ie,ge,Te,je);if(st!==-1||(st=S(ie,Tt,Ne,pe,ge,Te),st!==-1))return st+ze}Pe(Te,Tt,ie,ge,Me)&&!pe&&(ze+=Te.indentSize);let He=F(Tt,ie,Ne.line,ge);ie=Tt,Tt=ie.parent,Ne=He?ge.getLineAndCharacterOfPosition(ie.getStart(ge)):nt}return ze+g(Te)}function x(ie,Ne,it){let ze=z(Ne,it),ge=ze?ze.pos:ie.getStart(it);return it.getLineAndCharacterOfPosition(ge)}function b(ie,Ne,it){let ze=Y1e(ie);return ze&&ze.listItemIndex>0?Ee(ze.list.getChildren(),ze.listItemIndex-1,Ne,it):-1}function S(ie,Ne,it,ze,ge,Me){return(Ku(ie)||LF(ie))&&(Ne.kind===307||!ze)?fe(it,ge,Me):-1}let P;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(P||(P={}));function E(ie,Ne,it,ze){let ge=Y2(ie,Ne,ze);if(!ge)return 0;if(ge.kind===19)return 1;if(ge.kind===20){let Me=N(ge,ze).line;return it===Me?2:0}return 0}function N(ie,Ne){return Ne.getLineAndCharacterOfPosition(ie.getStart(Ne))}function F(ie,Ne,it,ze){if(!(Ls(ie)&&Ta(ie.arguments,Ne)))return!1;let ge=ie.expression.getEnd();return $s(ze,ge).line===it}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=F;function M(ie,Ne,it,ze){if(ie.kind===245&&ie.elseStatement===Ne){let ge=gc(ie,93,ze);return I.assert(ge!==void 0),N(ge,ze).line===it}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=M;function L(ie,Ne,it,ze){if(Wk(ie)&&(Ne===ie.whenTrue||Ne===ie.whenFalse)){let ge=$s(ze,ie.condition.end).line;if(Ne===ie.whenTrue)return it===ge;{let Me=N(ie.whenTrue,ze).line,Te=$s(ze,ie.whenTrue.end).line;return ge===Me&&Te===it}}return!1}e.childIsUnindentedBranchOfConditionalExpression=L;function W(ie,Ne,it,ze){if(wh(ie)){if(!ie.arguments)return!1;let ge=Ir(ie.arguments,Tt=>Tt.pos===Ne.pos);if(!ge)return!1;let Me=ie.arguments.indexOf(ge);if(Me===0)return!1;let Te=ie.arguments[Me-1],gt=$s(ze,Te.getEnd()).line;if(it===gt)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=W;function z(ie,Ne){return ie.parent&&X(ie.getStart(Ne),ie.getEnd(),ie.parent,Ne)}e.getContainingList=z;function H(ie,Ne,it){return Ne&&X(ie,ie,Ne,it)}function X(ie,Ne,it,ze){switch(it.kind){case 183:return ge(it.typeArguments);case 210:return ge(it.properties);case 209:return ge(it.elements);case 187:return ge(it.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return ge(it.typeParameters)||ge(it.parameters);case 177:return ge(it.parameters);case 263:case 231:case 264:case 265:case 345:return ge(it.typeParameters);case 214:case 213:return ge(it.typeArguments)||ge(it.arguments);case 261:return ge(it.declarations);case 275:case 279:return ge(it.elements);case 206:case 207:return ge(it.elements)}function ge(Me){return Me&&_R(ne(it,Me,ze),ie,Ne)?Me:void 0}}function ne(ie,Ne,it){let ze=ie.getChildren(it);for(let ge=1;ge<ze.length-1;ge++)if(ze[ge].pos===Ne.pos&&ze[ge].end===Ne.end)return{pos:ze[ge-1].end,end:ze[ge+1].getStart(it)};return Ne}function ae(ie,Ne,it){return ie?fe(Ne.getLineAndCharacterOfPosition(ie.pos),Ne,it):-1}function Y(ie,Ne,it,ze){if(ie.parent&&ie.parent.kind===261)return-1;let ge=z(ie,Ne);if(ge){let Me=ge.indexOf(ie);if(Me!==-1){let Te=Ee(ge,Me,Ne,it);if(Te!==-1)return Te}return ae(ge,Ne,it)+(ze?it.indentSize:0)}return-1}function Ee(ie,Ne,it,ze){I.assert(Ne>=0&&Ne<ie.length);let ge=ie[Ne],Me=N(ge,it);for(let Te=Ne-1;Te>=0;Te--){if(ie[Te].kind===28)continue;if(it.getLineAndCharacterOfPosition(ie[Te].end).line!==Me.line)return fe(Me,it,ze);Me=N(ie[Te],it)}return-1}function fe(ie,Ne,it){let ze=Ne.getPositionOfLineAndCharacter(ie.line,0);return de(ze,ze+ie.character,Ne,it)}function te(ie,Ne,it,ze){let ge=0,Me=0;for(let Te=ie;Te<Ne;Te++){let gt=it.text.charCodeAt(Te);if(!Th(gt))break;gt===9?Me+=ze.tabSize+Me%ze.tabSize:Me++,ge++}return{column:Me,character:ge}}e.findFirstNonWhitespaceCharacterAndColumn=te;function de(ie,Ne,it,ze){return te(ie,Ne,it,ze).column}e.findFirstNonWhitespaceColumn=de;function me(ie,Ne,it,ze,ge){let Me=it?it.kind:0;switch(Ne.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return ie.indentSwitchCase??!0;case 260:case 303:case 226:if(!ie.indentMultiLineObjectLiteralBeginningOnBlankLine&&ze&&Me===210)return Oe(ze,it);if(Ne.kind===226&&ze&&it&&Me===284){let Te=ze.getLineAndCharacterOfPosition(yo(ze.text,Ne.pos)).line,gt=ze.getLineAndCharacterOfPosition(yo(ze.text,it.pos)).line;return Te!==gt}if(Ne.kind!==226)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return Me!==241;case 219:return ze&&Me===217?Oe(ze,it):Me!==241;case 278:return Me!==279;case 272:return Me!==273||!!it.namedBindings&&it.namedBindings.kind!==275;case 284:return Me!==287;case 288:return Me!==290;case 193:case 192:case 238:if(Me===187||Me===189||Me===200)return!1;break}return ge}e.nodeWillIndentChild=me;function ve(ie,Ne){switch(ie){case 253:case 257:case 251:case 252:return Ne.kind!==241;default:return!1}}function Pe(ie,Ne,it,ze,ge=!1){return me(ie,Ne,it,ze,!1)&&!(ge&&it&&ve(it.kind,Ne))}e.shouldIndentChildNode=Pe;function Oe(ie,Ne){let it=yo(ie.text,Ne.pos),ze=ie.getLineAndCharacterOfPosition(it).line,ge=ie.getLineAndCharacterOfPosition(Ne.end).line;return ze===ge}})(Gh||(Gh={}));var _ie={};w(_ie,{preparePasteEdits:()=>zUt});function zUt(e,t,n){let i=!1;return t.forEach(s=>{let l=Br(ca(e,s.pos),p=>Zf(p,s));l&&xs(l,function p(g){var m;if(!i){if(Ye(g)&&uA(s,g.getStart(e))){let x=n.resolveName(g.text,g,-1,!1);if(x&&x.declarations){for(let b of x.declarations)if(Wre(b)||g.text&&e.symbol&&((m=e.symbol.exports)!=null&&m.has(g.escapedText))){i=!0;return}}}g.forEachChild(p)}})}),i}var die={};w(die,{pasteEditsProvider:()=>UUt});var WUt="providePostPasteEdits";function UUt(e,t,n,i,s,l,p,g){return{edits:Ln.ChangeTracker.with({host:s,formatContext:p,preferences:l},x=>$Ut(e,t,n,i,s,l,p,g,x)),fixId:WUt}}function $Ut(e,t,n,i,s,l,p,g,m){let x;t.length!==n.length&&(x=t.length===1?t[0]:t.join(B0(p.host,p.options)));let b=[],S=e.text;for(let E=n.length-1;E>=0;E--){let{pos:N,end:F}=n[E];S=x?S.slice(0,N)+x+S.slice(F):S.slice(0,N)+t[E]+S.slice(F)}let P;I.checkDefined(s.runWithTemporaryFileUpdate).call(s,e.fileName,S,(E,N,F)=>{if(P=rf.createImportAdder(F,E,l,s),i?.range){I.assert(i.range.length===t.length),i.range.forEach(H=>{let X=i.file.statements,ne=Va(X,Y=>Y.end>H.pos);if(ne===-1)return;let ae=Va(X,Y=>Y.end>=H.end,ne);ae!==-1&&H.end<=X[ae].getStart()&&ae--,b.push(...X.slice(ne,ae===-1?X.length:ae+1))}),I.assertIsDefined(N,"no original program found");let M=N.getTypeChecker(),L=VUt(i),W=HU(i.file,b,M,jxe(F,b,M),L),z=!mre(e.fileName,N,s,!!i.file.commonJsModuleIndicator);Dxe(i.file,W.targetFileImportsFromOldFile,m,z),Bxe(i.file,W.oldImportsNeededByTargetFile,W.targetFileImportsFromOldFile,M,E,P)}else{let M={sourceFile:F,program:N,cancellationToken:g,host:s,preferences:l,formatContext:p},L=0;n.forEach((W,z)=>{let H=W.end-W.pos,X=x??t[z],ne=W.pos+L,ae=ne+X.length,Y={pos:ne,end:ae};L+=X.length-H;let Ee=Br(ca(M.sourceFile,Y.pos),fe=>Zf(fe,Y));Ee&&xs(Ee,function fe(te){if(Ye(te)&&uA(Y,te.getStart(F))&&!E?.getTypeChecker().resolveName(te.text,te,-1,!1))return P.addImportForUnresolvedIdentifier(M,te,!0);te.forEachChild(fe)})})}P.writeFixes(m,H_(i?i.file:e,l))}),P.hasFixes()&&n.forEach((E,N)=>{m.replaceRangeWithText(e,{pos:E.pos,end:E.end},x??t[N])})}function VUt({file:e,range:t}){let n=t[0].pos,i=t[t.length-1].end,s=ca(e,n),l=R3(e,n)??ca(e,i);return{pos:Ye(s)&&n<=s.getStart(e)?s.getFullStart():n,end:Ye(l)&&i===l.getEnd()?Ln.getAdjustedEndPosition(e,l,{}):i}}var aYe={};w(aYe,{ANONYMOUS:()=>are,AccessFlags:()=>UB,AssertionLevel:()=>Ub,AssignmentDeclarationKind:()=>Ht,AssignmentKind:()=>Dme,Associativity:()=>jme,BreakpointResolver:()=>nne,BuilderFileEmit:()=>F0e,BuilderProgramKind:()=>z0e,BuilderState:()=>Qg,CallHierarchy:()=>KE,CharacterCodes:()=>fs,CheckFlags:()=>qO,CheckMode:()=>CZ,ClassificationType:()=>dte,ClassificationTypeNames:()=>U1e,CommentDirectiveType:()=>IB,Comparison:()=>Be,CompletionInfoFlags:()=>j1e,CompletionTriggerKind:()=>fte,Completions:()=>eD,ContainerFlags:()=>dve,ContextFlags:()=>LB,Debug:()=>I,DiagnosticCategory:()=>mr,Diagnostics:()=>y,DocumentHighlights:()=>zU,ElementFlags:()=>II,EmitFlags:()=>dl,EmitHint:()=>mu,EmitOnly:()=>MB,EndOfLineState:()=>q1e,ExitStatus:()=>uF,ExportKind:()=>Rbe,Extension:()=>Ws,ExternalEmitHelpers:()=>Sc,FileIncludeKind:()=>AI,FilePreprocessingDiagnosticsKind:()=>FB,FileSystemEntryKind:()=>E_e,FileWatcherEventKind:()=>OP,FindAllReferences:()=>qc,FlattenLevel:()=>Rve,FlowFlags:()=>jO,ForegroundColorEscapeSequences:()=>w0e,FunctionFlags:()=>Mme,GeneratedIdentifierFlags:()=>NI,GetLiteralTextFlags:()=>Vde,GoToDefinition:()=>wA,HighlightSpanKind:()=>M1e,IdentifierNameMap:()=>ZN,ImportKind:()=>Mbe,ImportsNotUsedAsValues:()=>Si,IndentStyle:()=>R1e,IndexFlags:()=>$B,IndexKind:()=>ee,InferenceFlags:()=>Ze,InferencePriority:()=>Je,InlayHintKind:()=>F1e,InlayHints:()=>Kne,InternalEmitFlags:()=>so,InternalNodeBuilderFlags:()=>qB,InternalSymbolName:()=>_F,IntersectionFlags:()=>jB,InvalidatedProjectKind:()=>p1e,JSDocParsingMode:()=>dv,JsDoc:()=>aT,JsTyping:()=>Fx,JsxEmit:()=>$n,JsxFlags:()=>OI,JsxReferenceKind:()=>VB,LanguageFeatureMinimumTarget:()=>Us,LanguageServiceMode:()=>A1e,LanguageVariant:()=>va,LexicalEnvironmentFlags:()=>d_,ListFormat:()=>pg,LogLevel:()=>xI,MapCode:()=>Qne,MemberOverrideStatus:()=>pF,ModifierFlags:()=>RO,ModuleDetectionKind:()=>On,ModuleInstanceState:()=>fve,ModuleKind:()=>mn,ModuleResolutionKind:()=>Jr,ModuleSpecifierEnding:()=>Ige,NavigateTo:()=>sxe,NavigationBar:()=>cxe,NewLineKind:()=>ea,NodeBuilderFlags:()=>BB,NodeCheckFlags:()=>hS,NodeFactoryFlags:()=>che,NodeFlags:()=>oF,NodeResolutionFeatures:()=>rve,ObjectFlags:()=>Qb,OperationCanceledException:()=>DP,OperatorPrecedence:()=>Lme,OrganizeImports:()=>sT,OrganizeImportsMode:()=>pte,OuterExpressionKinds:()=>ac,OutliningElementsCollector:()=>Yne,OutliningSpanKind:()=>L1e,OutputFileType:()=>B1e,PackageJsonAutoImportPreference:()=>N1e,PackageJsonDependencyGroup:()=>O1e,PatternMatchKind:()=>wre,PollingInterval:()=>gv,PollingWatchKind:()=>Ba,PragmaKindFlags:()=>S1,PredicateSemantics:()=>NB,PreparePasteEdits:()=>_ie,PrivateIdentifierKind:()=>yhe,ProcessLevel:()=>qve,ProgramUpdateLevel:()=>v0e,QuotePreference:()=>fbe,RegularExpressionFlags:()=>AB,RelationComparisonResult:()=>cF,Rename:()=>k$,ScriptElementKind:()=>z1e,ScriptElementKindModifier:()=>W1e,ScriptKind:()=>zi,ScriptSnapshot:()=>eU,ScriptTarget:()=>Hi,SemanticClassificationFormat:()=>I1e,SemanticMeaning:()=>$1e,SemicolonPreference:()=>_te,SignatureCheckMode:()=>PZ,SignatureFlags:()=>Z,SignatureHelp:()=>ZR,SignatureInfo:()=>I0e,SignatureKind:()=>HB,SmartSelectionRange:()=>tie,SnippetKind:()=>ic,StatisticType:()=>b1e,StructureIsReused:()=>LO,SymbolAccessibility:()=>BO,SymbolDisplay:()=>$1,SymbolDisplayPartKind:()=>rU,SymbolFlags:()=>fF,SymbolFormatFlags:()=>zB,SyntaxKind:()=>sF,Ternary:()=>bt,ThrottledCancellationToken:()=>gSe,TokenClass:()=>J1e,TokenFlags:()=>lF,TransformFlags:()=>ws,TypeFacts:()=>kZ,TypeFlags:()=>JO,TypeFormatFlags:()=>JB,TypeMapKind:()=>Ce,TypePredicateKind:()=>Kb,TypeReferenceSerializationKind:()=>WB,UnionReduction:()=>RB,UpToDateStatusType:()=>i1e,VarianceFlags:()=>yS,Version:()=>F_,VersionRange:()=>TI,WatchDirectoryFlags:()=>Li,WatchDirectoryKind:()=>Ni,WatchFileKind:()=>fn,WatchLogLevel:()=>x0e,WatchType:()=>ep,accessPrivateIdentifier:()=>Mve,addEmitFlags:()=>Mh,addEmitHelper:()=>gE,addEmitHelpers:()=>Rv,addInternalEmitFlags:()=>jk,addNodeFactoryPatcher:()=>Sje,addObjectAllocatorPatcher:()=>oje,addRange:()=>ti,addRelatedInfo:()=>Hs,addSyntheticLeadingComment:()=>F2,addSyntheticTrailingComment:()=>$4,addToSeen:()=>Jm,advancedAsyncSuperHelper:()=>pz,affectsDeclarationPathOptionDeclarations:()=>kye,affectsEmitOptionDeclarations:()=>wye,allKeysStartWithDot:()=>aW,altDirectorySeparator:()=>QB,and:()=>b1,append:()=>Zr,appendIfUnique:()=>Mm,arrayFrom:()=>Ka,arrayIsEqualTo:()=>Rp,arrayIsHomogeneous:()=>Jge,arrayOf:()=>mI,arrayReverseIterator:()=>_I,arrayToMap:()=>ck,arrayToMultiMap:()=>Wb,arrayToNumericMap:()=>lk,assertType:()=>cK,assign:()=>y1,asyncSuperHelper:()=>uz,attachFileToDiagnostics:()=>oE,base64decode:()=>age,base64encode:()=>ige,binarySearch:()=>tm,binarySearchKey:()=>ko,bindSourceFile:()=>mve,breakIntoCharacterSpans:()=>Ybe,breakIntoWordSpans:()=>Zbe,buildLinkParts:()=>bbe,buildOpts:()=>kM,buildOverload:()=>cYe,bundlerModuleNameResolver:()=>nve,canBeConvertedToAsync:()=>Ore,canHaveDecorators:()=>U2,canHaveExportModifier:()=>K5,canHaveFlowNode:()=>pN,canHaveIllegalDecorators:()=>FY,canHaveIllegalModifiers:()=>iye,canHaveIllegalType:()=>Gje,canHaveIllegalTypeParameters:()=>nye,canHaveJSDoc:()=>h5,canHaveLocals:()=>Py,canHaveModifiers:()=>$m,canHaveModuleSpecifier:()=>Cme,canHaveSymbol:()=>qg,canIncludeBindAndCheckDiagnostics:()=>M4,canJsonReportNoInputFiles:()=>NM,canProduceDiagnostics:()=>JM,canUsePropertyAccess:()=>JX,canWatchAffectingLocation:()=>Q0e,canWatchAtTypes:()=>K0e,canWatchDirectoryOrFile:()=>Eee,canWatchDirectoryOrFilePath:()=>rR,cartesianProduct:()=>CP,cast:()=>Js,chainBundle:()=>Kg,chainDiagnosticMessages:()=>vs,changeAnyExtension:()=>mF,changeCompilerHostLikeToUseCache:()=>P3,changeExtension:()=>I0,changeFullExtension:()=>ZB,changesAffectModuleResolution:()=>Cq,changesAffectingProgramStructure:()=>Lde,characterCodeToRegularExpressionFlag:()=>TK,childIsDecorated:()=>s4,classElementOrClassElementParameterIsDecorated:()=>SQ,classHasClassThisAssignment:()=>zZ,classHasDeclaredOrExplicitlyAssignedName:()=>WZ,classHasExplicitlyAssignedName:()=>yW,classOrConstructorParameterIsDecorated:()=>P1,classicNameResolver:()=>uve,classifier:()=>bSe,cleanExtendedConfigCache:()=>wW,clear:()=>wa,clearMap:()=>h_,clearSharedExtendedConfigFileWatcher:()=>nee,climbPastPropertyAccess:()=>aU,clone:()=>hB,cloneCompilerOptions:()=>Ite,closeFileWatcher:()=>hg,closeFileWatcherOf:()=>ym,codefix:()=>rf,collapseTextChangeRangesAcrossMultipleVersions:()=>X_e,collectExternalModuleInfo:()=>LZ,combine:()=>n2,combinePaths:()=>gi,commandLineOptionOfCustomType:()=>Eye,commentPragmas:()=>fg,commonOptionsWithBuild:()=>Lz,compact:()=>PO,compareBooleans:()=>_v,compareDataObjects:()=>mX,compareDiagnostics:()=>E4,compareEmitHelpers:()=>bhe,compareNumberOfDirectorySeparators:()=>V5,comparePaths:()=>S0,comparePathsCaseInsensitive:()=>oRe,comparePathsCaseSensitive:()=>sRe,comparePatternKeys:()=>yZ,compareProperties:()=>pk,compareStringsCaseInsensitive:()=>xP,compareStringsCaseInsensitiveEslintCompatible:()=>au,compareStringsCaseSensitive:()=>fp,compareStringsCaseSensitiveUI:()=>DO,compareTextSpans:()=>$b,compareValues:()=>mc,compilerOptionsAffectDeclarationPath:()=>Pge,compilerOptionsAffectEmit:()=>Cge,compilerOptionsAffectSemanticDiagnostics:()=>kge,compilerOptionsDidYouMeanDiagnostics:()=>zz,compilerOptionsIndicateEsModules:()=>Bte,computeCommonSourceDirectoryOfFilenames:()=>S0e,computeLineAndCharacterOfPosition:()=>UO,computeLineOfPosition:()=>jI,computeLineStarts:()=>FP,computePositionOfLineAndCharacter:()=>nq,computeSignatureWithDiagnostics:()=>See,computeSuggestionDiagnostics:()=>Pre,computedOptions:()=>D4,concatenate:()=>ya,concatenateDiagnosticMessageChains:()=>yge,consumesNodeCoreModules:()=>IU,contains:()=>Ta,containsIgnoredPath:()=>L4,containsObjectRestOrSpread:()=>xM,containsParseError:()=>UP,containsPath:()=>am,convertCompilerOptionsForTelemetry:()=>Uye,convertCompilerOptionsFromJson:()=>r9e,convertJsonOption:()=>Xk,convertToBase64:()=>nge,convertToJson:()=>EM,convertToObject:()=>jye,convertToOptionsWithAbsolutePaths:()=>Vz,convertToRelativePath:()=>MI,convertToTSConfig:()=>tZ,convertTypeAcquisitionFromJson:()=>n9e,copyComments:()=>sC,copyEntries:()=>Pq,copyLeadingComments:()=>gA,copyProperties:()=>yP,copyTrailingAsLeadingComments:()=>wR,copyTrailingComments:()=>W3,couldStartTrivia:()=>j_e,countWhere:()=>Vu,createAbstractBuilder:()=>lqe,createAccessorPropertyBackingField:()=>jY,createAccessorPropertyGetRedirector:()=>fye,createAccessorPropertySetRedirector:()=>_ye,createBaseNodeFactory:()=>nhe,createBinaryExpressionTrampoline:()=>Iz,createBuilderProgram:()=>Tee,createBuilderProgramUsingIncrementalBuildInfo:()=>V0e,createBuilderStatusReporter:()=>VW,createCacheableExportInfoMap:()=>gre,createCachedDirectoryStructureHost:()=>SW,createClassifier:()=>qJe,createCommentDirectivesMap:()=>Ude,createCompilerDiagnostic:()=>ll,createCompilerDiagnosticForInvalidCustomType:()=>Dye,createCompilerDiagnosticFromMessageChain:()=>NJ,createCompilerHost:()=>T0e,createCompilerHostFromProgramHost:()=>Wee,createCompilerHostWorker:()=>kW,createDetachedDiagnostic:()=>sE,createDiagnosticCollection:()=>y4,createDiagnosticForFileFromMessageChain:()=>hQ,createDiagnosticForNode:()=>Mn,createDiagnosticForNodeArray:()=>nN,createDiagnosticForNodeArrayFromMessageChain:()=>HF,createDiagnosticForNodeFromMessageChain:()=>Cv,createDiagnosticForNodeInSourceFile:()=>om,createDiagnosticForRange:()=>ime,createDiagnosticMessageChainFromDiagnostic:()=>nme,createDiagnosticReporter:()=>JE,createDocumentPositionMapper:()=>Ove,createDocumentRegistry:()=>Jbe,createDocumentRegistryInternal:()=>xre,createEmitAndSemanticDiagnosticsBuilderProgram:()=>Pee,createEmitHelperFactory:()=>vhe,createEmptyExports:()=>_M,createEvaluator:()=>Xge,createExpressionForJsxElement:()=>Xhe,createExpressionForJsxFragment:()=>Yhe,createExpressionForObjectLiteralElementLike:()=>Zhe,createExpressionForPropertyName:()=>EY,createExpressionFromEntityName:()=>dM,createExternalHelpersImportDeclarationIfNeeded:()=>NY,createFileDiagnostic:()=>Eu,createFileDiagnosticFromMessageChain:()=>jq,createFlowNode:()=>Ry,createForOfBindingStatement:()=>PY,createFutureSourceFile:()=>BU,createGetCanonicalFileName:()=>Xu,createGetIsolatedDeclarationErrors:()=>l0e,createGetSourceFile:()=>cee,createGetSymbolAccessibilityDiagnosticForNode:()=>GS,createGetSymbolAccessibilityDiagnosticForNodeName:()=>c0e,createGetSymbolWalker:()=>gve,createIncrementalCompilerHost:()=>$W,createIncrementalProgram:()=>n1e,createJsxFactoryExpression:()=>CY,createLanguageService:()=>hSe,createLanguageServiceSourceFile:()=>i$,createMemberAccessForPropertyName:()=>Kk,createModeAwareCache:()=>GN,createModeAwareCacheKey:()=>_3,createModeMismatchDetails:()=>tQ,createModuleNotFoundChain:()=>Dq,createModuleResolutionCache:()=>KN,createModuleResolutionLoader:()=>dee,createModuleResolutionLoaderUsingGlobalCache:()=>e1e,createModuleSpecifierResolutionHost:()=>YS,createMultiMap:()=>Zl,createNameResolver:()=>VX,createNodeConverters:()=>she,createNodeFactory:()=>Z5,createOptionNameMap:()=>qz,createOverload:()=>mie,createPackageJsonImportFilter:()=>hA,createPackageJsonInfo:()=>cre,createParenthesizerRules:()=>ihe,createPatternMatcher:()=>Vbe,createPrinter:()=>Ax,createPrinterWithDefaults:()=>h0e,createPrinterWithRemoveComments:()=>G2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>y0e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>ree,createProgram:()=>ZM,createProgramDiagnostics:()=>N0e,createProgramHost:()=>Uee,createPropertyNameNodeForIdentifierOrLiteral:()=>XJ,createQueue:()=>i2,createRange:()=>um,createRedirectedBuilderProgram:()=>Cee,createResolutionCache:()=>Oee,createRuntimeTypeSerializer:()=>$ve,createScanner:()=>bv,createSemanticDiagnosticsBuilderProgram:()=>cqe,createSet:()=>vP,createSolutionBuilder:()=>c1e,createSolutionBuilderHost:()=>s1e,createSolutionBuilderWithWatch:()=>l1e,createSolutionBuilderWithWatchHost:()=>o1e,createSortedArray:()=>pp,createSourceFile:()=>AE,createSourceMapGenerator:()=>kve,createSourceMapSource:()=>Cje,createSuperAccessVariableStatement:()=>bW,createSymbolTable:()=>Qs,createSymlinkCache:()=>kX,createSyntacticTypeNodeBuilder:()=>P1e,createSystemWatchFunctions:()=>D_e,createTextChange:()=>gR,createTextChangeFromStartLength:()=>yU,createTextChangeRange:()=>kF,createTextRangeFromNode:()=>Rte,createTextRangeFromSpan:()=>hU,createTextSpan:()=>Sp,createTextSpanFromBounds:()=>Ul,createTextSpanFromNode:()=>Lf,createTextSpanFromRange:()=>z1,createTextSpanFromStringLiteralLikeContent:()=>Mte,createTextWriter:()=>D5,createTokenRange:()=>uX,createTypeChecker:()=>Tve,createTypeReferenceDirectiveResolutionCache:()=>rW,createTypeReferenceResolutionLoader:()=>EW,createWatchCompilerHost:()=>vqe,createWatchCompilerHostOfConfigFile:()=>$ee,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Vee,createWatchFactory:()=>zee,createWatchHost:()=>Jee,createWatchProgram:()=>Hee,createWatchStatusReporter:()=>Nee,createWriteFileMeasuringIO:()=>lee,declarationNameToString:()=>Oc,decodeMappings:()=>MZ,decodedTextSpanIntersectsWith:()=>wF,deduplicate:()=>zb,defaultInitCompilerOptions:()=>GY,defaultMaximumTruncationLength:()=>ZI,diagnosticCategoryName:()=>hr,diagnosticToString:()=>ew,diagnosticsEqualityComparer:()=>AJ,directoryProbablyExists:()=>Wg,directorySeparator:()=>jc,displayPart:()=>b_,displayPartsToString:()=>jR,disposeEmitNodes:()=>tY,documentSpansEqual:()=>Vte,dumpTracingLegend:()=>MO,elementAt:()=>b0,elideNodes:()=>pye,emitDetachedComments:()=>Hme,emitFiles:()=>eee,emitFilesAndReportErrors:()=>JW,emitFilesAndReportErrorsAndGetExitStatus:()=>qee,emitModuleKindIsNonNodeESM:()=>z5,emitNewLineBeforeLeadingCommentOfPosition:()=>Vme,emitResolverSkipsTypeChecking:()=>ZZ,emitSkippedWithNoDiagnostics:()=>hee,emptyArray:()=>ce,emptyFileSystemEntries:()=>IX,emptyMap:()=>mt,emptyOptions:()=>Vm,endsWith:()=>bc,ensurePathIsNonModuleName:()=>_k,ensureScriptKind:()=>zJ,ensureTrailingDirectorySeparator:()=>ju,entityNameToString:()=>B_,enumerateInsertsAndDeletes:()=>o2,equalOwnProperties:()=>gB,equateStringsCaseInsensitive:()=>cg,equateStringsCaseSensitive:()=>fv,equateValues:()=>pv,escapeJsxAttributeString:()=>VQ,escapeLeadingUnderscores:()=>gl,escapeNonAsciiString:()=>uJ,escapeSnippetText:()=>I2,escapeString:()=>Ay,escapeTemplateSubstitution:()=>UQ,evaluatorResult:()=>Bu,every:()=>sn,exclusivelyPrefixedNodeCoreModules:()=>iz,executeCommandLine:()=>Yqe,expandPreOrPostfixIncrementOrDecrementExpression:()=>Ez,explainFiles:()=>Mee,explainIfFileIsRedirectAndImpliedFormat:()=>Ree,exportAssignmentIsAlias:()=>x5,expressionResultIsUnused:()=>Wge,extend:()=>gI,extensionFromPath:()=>I4,extensionIsTS:()=>HJ,extensionsNotSupportingExtensionlessResolution:()=>VJ,externalHelpersModuleNameText:()=>lx,factory:()=>j,fileExtensionIs:()=>il,fileExtensionIsOneOf:()=>Wl,fileIncludeReasonToDiagnostics:()=>Bee,fileShouldUseJavaScriptRequire:()=>mre,filter:()=>Cn,filterMutate:()=>__,filterSemanticDiagnostics:()=>AW,find:()=>Ir,findAncestor:()=>Br,findBestPatternMatch:()=>s2,findChildOfKind:()=>gc,findComputedPropertyNameCacheAssignment:()=>Fz,findConfigFile:()=>see,findConstructorDeclaration:()=>Y5,findContainingList:()=>uU,findDiagnosticForNode:()=>Abe,findFirstNonJsxWhitespaceToken:()=>Z1e,findIndex:()=>Va,findLast:()=>Ks,findLastIndex:()=>up,findListItemInfo:()=>Y1e,findModifier:()=>_A,findNextToken:()=>Y2,findPackageJson:()=>Nbe,findPackageJsons:()=>ore,findPrecedingMatchingToken:()=>mU,findPrecedingToken:()=>Ou,findSuperStatementIndexPath:()=>dW,findTokenOnLeftOfPosition:()=>R3,findUseStrictPrologue:()=>OY,first:()=>ho,firstDefined:()=>jr,firstDefinedIterator:()=>si,firstIterator:()=>U7,firstOrOnly:()=>pre,firstOrUndefined:()=>Yl,firstOrUndefinedIterator:()=>h1,fixupCompilerOptions:()=>Nre,flatMap:()=>li,flatMapIterator:()=>Xl,flatMapToMutable:()=>xl,flatten:()=>js,flattenCommaList:()=>dye,flattenDestructuringAssignment:()=>tC,flattenDestructuringBinding:()=>H2,flattenDiagnosticMessageText:()=>Uh,forEach:()=>Ge,forEachAncestor:()=>Bde,forEachAncestorDirectory:()=>RI,forEachAncestorDirectoryStoppingAtGlobalCache:()=>My,forEachChild:()=>xs,forEachChildRecursively:()=>NE,forEachDynamicImportOrRequireCall:()=>az,forEachEmittedFile:()=>KZ,forEachEnclosingBlockScopeContainer:()=>eme,forEachEntry:()=>Lu,forEachExternalModuleToImportFrom:()=>yre,forEachImportClauseDeclaration:()=>Pme,forEachKey:()=>wv,forEachLeadingCommentRange:()=>yF,forEachNameInAccessChainWalkingLeft:()=>_ge,forEachNameOfDefaultExport:()=>JU,forEachOptionsSyntaxByName:()=>YX,forEachProjectReference:()=>W4,forEachPropertyAssignment:()=>sN,forEachResolvedProjectReference:()=>QX,forEachReturnStatement:()=>_x,forEachRight:()=>_r,forEachTrailingCommentRange:()=>vF,forEachTsConfigPropArray:()=>YF,forEachUnique:()=>Gte,forEachYieldExpression:()=>cme,formatColorAndReset:()=>K2,formatDiagnostic:()=>uee,formatDiagnostics:()=>RBe,formatDiagnosticsWithColorAndContext:()=>P0e,formatGeneratedName:()=>WS,formatGeneratedNamePart:()=>UN,formatLocation:()=>pee,formatMessage:()=>cE,formatStringFromArgs:()=>Nv,formatting:()=>Su,generateDjb2Hash:()=>mv,generateTSConfig:()=>Bye,getAdjustedReferenceLocation:()=>Pte,getAdjustedRenameLocation:()=>fU,getAliasDeclarationFromName:()=>FQ,getAllAccessorDeclarations:()=>E2,getAllDecoratorsOfClass:()=>qZ,getAllDecoratorsOfClassElement:()=>gW,getAllJSDocTags:()=>uq,getAllJSDocTagsOfKind:()=>ORe,getAllKeys:()=>mB,getAllProjectOutputs:()=>xW,getAllSuperTypeNodes:()=>_4,getAllowImportingTsExtensions:()=>bge,getAllowJSCompilerOption:()=>bx,getAllowSyntheticDefaultImports:()=>lE,getAncestor:()=>DS,getAnyExtensionFromPath:()=>NP,getAreDeclarationMapsEnabled:()=>IJ,getAssignedExpandoInitializer:()=>HP,getAssignedName:()=>oq,getAssignmentDeclarationKind:()=>$l,getAssignmentDeclarationPropertyAccessKind:()=>p5,getAssignmentTargetKind:()=>dx,getAutomaticTypeDirectiveNames:()=>eW,getBaseFileName:()=>gu,getBinaryOperatorPrecedence:()=>C5,getBuildInfo:()=>tee,getBuildInfoFileVersionMap:()=>kee,getBuildInfoText:()=>m0e,getBuildOrderFromAnyBuildOrder:()=>iR,getBuilderCreationParameters:()=>RW,getBuilderFileEmit:()=>Ix,getCanonicalDiagnostic:()=>ame,getCheckFlags:()=>Tl,getClassExtendsHeritageElement:()=>w2,getClassLikeDeclarationOfSymbol:()=>A0,getCombinedLocalAndExportSymbolFlags:()=>bN,getCombinedModifierFlags:()=>bS,getCombinedNodeFlags:()=>w0,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>DK,getCommentRange:()=>Rh,getCommonSourceDirectory:()=>C3,getCommonSourceDirectoryOfConfig:()=>rC,getCompilerOptionValue:()=>RJ,getCompilerOptionsDiffValue:()=>Lye,getConditions:()=>Dx,getConfigFileParsingDiagnostics:()=>Q2,getConstantValue:()=>phe,getContainerFlags:()=>bZ,getContainerNode:()=>aC,getContainingClass:()=>dp,getContainingClassExcludingClassDecorators:()=>$q,getContainingClassStaticBlock:()=>gme,getContainingFunction:()=>Ed,getContainingFunctionDeclaration:()=>mme,getContainingFunctionOrClassStaticBlock:()=>Uq,getContainingNodeArray:()=>Uge,getContainingObjectLiteralElement:()=>LR,getContextualTypeFromParent:()=>PU,getContextualTypeFromParentOrAncestorTypeNode:()=>pU,getDeclarationDiagnostics:()=>u0e,getDeclarationEmitExtensionForPath:()=>_J,getDeclarationEmitOutputFilePath:()=>zme,getDeclarationEmitOutputFilePathWorker:()=>fJ,getDeclarationFileExtension:()=>Rz,getDeclarationFromName:()=>f4,getDeclarationModifierFlagsFromSymbol:()=>fm,getDeclarationOfKind:()=>Zc,getDeclarationsOfKind:()=>jde,getDeclaredExpandoInitializer:()=>l4,getDecorators:()=>tx,getDefaultCompilerOptions:()=>n$,getDefaultFormatCodeSettings:()=>tU,getDefaultLibFileName:()=>xF,getDefaultLibFilePath:()=>ySe,getDefaultLikeExportInfo:()=>qU,getDefaultLikeExportNameFromDeclaration:()=>fre,getDefaultResolutionModeForFileWorker:()=>NW,getDiagnosticText:()=>t_,getDiagnosticsWithinSpan:()=>Ibe,getDirectoryPath:()=>Ei,getDirectoryToWatchFailedLookupLocation:()=>Dee,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Y0e,getDocumentPositionMapper:()=>Cre,getDocumentSpansEqualityComparer:()=>Hte,getESModuleInterop:()=>Av,getEditsForFileRename:()=>Wbe,getEffectiveBaseTypeNode:()=>Dh,getEffectiveConstraintOfTypeParameter:()=>GO,getEffectiveContainerForJSDocTemplateTag:()=>nJ,getEffectiveImplementsTypeNodes:()=>_N,getEffectiveInitializer:()=>c5,getEffectiveJSDocHost:()=>ES,getEffectiveModifierFlags:()=>gf,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Xme,getEffectiveModifierFlagsNoCache:()=>Yme,getEffectiveReturnTypeNode:()=>dd,getEffectiveSetAccessorTypeAnnotationNode:()=>eX,getEffectiveTypeAnnotationNode:()=>hu,getEffectiveTypeParameterDeclarations:()=>nx,getEffectiveTypeRoots:()=>f3,getElementOrPropertyAccessArgumentExpressionOrName:()=>rJ,getElementOrPropertyAccessName:()=>P0,getElementsOfBindingOrAssignmentPattern:()=>WN,getEmitDeclarations:()=>y_,getEmitFlags:()=>Ao,getEmitHelpers:()=>rY,getEmitModuleDetectionKind:()=>xge,getEmitModuleFormatOfFileWorker:()=>O3,getEmitModuleKind:()=>hf,getEmitModuleResolutionKind:()=>Xp,getEmitScriptTarget:()=>Po,getEmitStandardClassFields:()=>TX,getEnclosingBlockScopeContainer:()=>Jg,getEnclosingContainer:()=>Rq,getEncodedSemanticClassifications:()=>vre,getEncodedSyntacticClassifications:()=>bre,getEndLinePosition:()=>zF,getEntityNameFromTypeNode:()=>t5,getEntrypointsFromPackageJsonInfo:()=>mZ,getErrorCountForSummary:()=>BW,getErrorSpanForNode:()=>Tk,getErrorSummaryText:()=>Iee,getEscapedTextOfIdentifierOrLiteral:()=>g4,getEscapedTextOfJsxAttributeName:()=>J4,getEscapedTextOfJsxNamespacedName:()=>_E,getExpandoInitializer:()=>CS,getExportAssignmentExpression:()=>MQ,getExportInfoMap:()=>OR,getExportNeedsImportStarHelper:()=>Nve,getExpressionAssociativity:()=>zQ,getExpressionPrecedence:()=>h4,getExternalHelpersModuleName:()=>gM,getExternalModuleImportEqualsDeclarationExpression:()=>o4,getExternalModuleName:()=>KP,getExternalModuleNameFromDeclaration:()=>qme,getExternalModuleNameFromPath:()=>KQ,getExternalModuleNameLiteral:()=>OE,getExternalModuleRequireArgument:()=>wQ,getFallbackOptions:()=>QM,getFileEmitOutput:()=>A0e,getFileMatcherPatterns:()=>JJ,getFileNamesFromConfigSpecs:()=>u3,getFileWatcherEventKind:()=>mK,getFilesInErrorForSummary:()=>qW,getFirstConstructorWithBody:()=>Dv,getFirstIdentifier:()=>Af,getFirstNonSpaceCharacterPosition:()=>Tbe,getFirstProjectOutput:()=>YZ,getFixableErrorSpanExpression:()=>lre,getFormatCodeSettingsForWriting:()=>jU,getFullWidth:()=>qF,getFunctionFlags:()=>eu,getHeritageClause:()=>S5,getHostSignatureFromJSDoc:()=>PS,getIdentifierAutoGenerate:()=>Dje,getIdentifierGeneratedImportReference:()=>hhe,getIdentifierTypeArguments:()=>Lk,getImmediatelyInvokedFunctionExpression:()=>v2,getImpliedNodeFormatForEmitWorker:()=>nC,getImpliedNodeFormatForFile:()=>YM,getImpliedNodeFormatForFileWorker:()=>OW,getImportNeedsImportDefaultHelper:()=>jZ,getImportNeedsImportStarHelper:()=>fW,getIndentString:()=>pJ,getInferredLibraryNameResolveFrom:()=>DW,getInitializedVariables:()=>k4,getInitializerOfBinaryExpression:()=>EQ,getInitializerOfBindingOrAssignmentElement:()=>yM,getInterfaceBaseTypeNodes:()=>d4,getInternalEmitFlags:()=>mg,getInvokedExpression:()=>Gq,getIsFileExcluded:()=>Lbe,getIsolatedModules:()=>zm,getJSDocAugmentsTag:()=>ode,getJSDocClassTag:()=>AK,getJSDocCommentRanges:()=>vQ,getJSDocCommentsAndTags:()=>DQ,getJSDocDeprecatedTag:()=>IK,getJSDocDeprecatedTagNoCache:()=>dde,getJSDocEnumTag:()=>FK,getJSDocHost:()=>S2,getJSDocImplementsTags:()=>cde,getJSDocOverloadTags:()=>NQ,getJSDocOverrideTagNoCache:()=>_de,getJSDocParameterTags:()=>HO,getJSDocParameterTagsNoCache:()=>nde,getJSDocPrivateTag:()=>CRe,getJSDocPrivateTagNoCache:()=>ude,getJSDocProtectedTag:()=>PRe,getJSDocProtectedTagNoCache:()=>pde,getJSDocPublicTag:()=>kRe,getJSDocPublicTagNoCache:()=>lde,getJSDocReadonlyTag:()=>ERe,getJSDocReadonlyTagNoCache:()=>fde,getJSDocReturnTag:()=>mde,getJSDocReturnType:()=>PF,getJSDocRoot:()=>fN,getJSDocSatisfiesExpressionType:()=>WX,getJSDocSatisfiesTag:()=>MK,getJSDocTags:()=>SS,getJSDocTemplateTag:()=>DRe,getJSDocThisTag:()=>cq,getJSDocType:()=>rx,getJSDocTypeAliasName:()=>IY,getJSDocTypeAssertionType:()=>JN,getJSDocTypeParameterDeclarations:()=>yJ,getJSDocTypeParameterTags:()=>ide,getJSDocTypeParameterTagsNoCache:()=>ade,getJSDocTypeTag:()=>xS,getJSXImplicitImportBase:()=>W5,getJSXRuntimeImport:()=>LJ,getJSXTransformEnabled:()=>jJ,getKeyForCompilerOptions:()=>uZ,getLanguageVariant:()=>j5,getLastChild:()=>gX,getLeadingCommentRanges:()=>vv,getLeadingCommentRangesOfNode:()=>yQ,getLeftmostAccessExpression:()=>xN,getLeftmostExpression:()=>SN,getLibFileNameFromLibReference:()=>KX,getLibNameFromLibReference:()=>GX,getLibraryNameFromLibFileName:()=>mee,getLineAndCharacterOfPosition:()=>$s,getLineInfo:()=>FZ,getLineOfLocalPosition:()=>v4,getLineStartPositionForPosition:()=>Hm,getLineStarts:()=>hv,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>uge,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>lge,getLinesBetweenPositions:()=>LI,getLinesBetweenRangeEndAndRangeStart:()=>pX,getLinesBetweenRangeEndPositions:()=>aje,getLiteralText:()=>Hde,getLocalNameForExternalImport:()=>zN,getLocalSymbolForExportDefault:()=>T4,getLocaleSpecificMessage:()=>gs,getLocaleTimeString:()=>nR,getMappedContextSpan:()=>Kte,getMappedDocumentSpan:()=>wU,getMappedLocation:()=>q3,getMatchedFileSpec:()=>jee,getMatchedIncludeSpec:()=>Lee,getMeaningFromDeclaration:()=>nU,getMeaningFromLocation:()=>iC,getMembersOfDeclaration:()=>lme,getModeForFileReference:()=>E0e,getModeForResolutionAtIndex:()=>zBe,getModeForUsageLocation:()=>_ee,getModifiedTime:()=>l2,getModifiers:()=>u2,getModuleInstanceState:()=>j0,getModuleNameStringLiteralAt:()=>eR,getModuleSpecifierEndingPreference:()=>Fge,getModuleSpecifierResolverHost:()=>qte,getNameForExportedSymbol:()=>FU,getNameFromImportAttribute:()=>tz,getNameFromIndexInfo:()=>tme,getNameFromPropertyName:()=>yR,getNameOfAccessExpression:()=>yX,getNameOfCompilerOptionValue:()=>rZ,getNameOfDeclaration:()=>ls,getNameOfExpando:()=>kQ,getNameOfJSDocTypedef:()=>rde,getNameOfScriptTarget:()=>MJ,getNameOrArgument:()=>u5,getNameTable:()=>rne,getNamespaceDeclarationNode:()=>uN,getNewLineCharacter:()=>O1,getNewLineKind:()=>DR,getNewLineOrDefaultFromHost:()=>B0,getNewTargetContainer:()=>yme,getNextJSDocCommentLocation:()=>OQ,getNodeChildren:()=>wY,getNodeForGeneratedName:()=>bM,getNodeId:()=>Wo,getNodeKind:()=>X2,getNodeModifiers:()=>j3,getNodeModulePathParts:()=>YJ,getNonAssignedNameOfDeclaration:()=>sq,getNonAssignmentOperatorForCompoundAssignment:()=>b3,getNonAugmentationDeclaration:()=>pQ,getNonDecoratorTokenPosOfNode:()=>aQ,getNonIncrementalBuildInfoRoots:()=>H0e,getNonModifierTokenPosOfNode:()=>$de,getNormalizedAbsolutePath:()=>Qa,getNormalizedAbsolutePathWithoutRoot:()=>vK,getNormalizedPathComponents:()=>YB,getObjectFlags:()=>oi,getOperatorAssociativity:()=>WQ,getOperatorPrecedence:()=>k5,getOptionFromName:()=>QY,getOptionsForLibraryResolution:()=>pZ,getOptionsNameMap:()=>VN,getOptionsSyntaxByArrayElementValue:()=>XX,getOptionsSyntaxByValue:()=>rhe,getOrCreateEmitNode:()=>qp,getOrUpdate:()=>A_,getOriginalNode:()=>al,getOriginalNodeId:()=>jf,getOutputDeclarationFileName:()=>tA,getOutputDeclarationFileNameWorker:()=>QZ,getOutputExtension:()=>HM,getOutputFileNames:()=>FBe,getOutputJSFileNameWorker:()=>XZ,getOutputPathsFor:()=>k3,getOwnEmitOutputFilePath:()=>Jme,getOwnKeys:()=>rm,getOwnValues:()=>_S,getPackageJsonTypesVersionsPaths:()=>Zz,getPackageNameFromTypesPackageName:()=>g3,getPackageScopeForPath:()=>m3,getParameterSymbolFromJSDoc:()=>y5,getParentNodeInSpan:()=>bR,getParseTreeNode:()=>ds,getParsedCommandLineOfConfigFile:()=>CM,getPathComponents:()=>jp,getPathFromPathComponents:()=>vS,getPathUpdater:()=>Tre,getPathsBasePath:()=>dJ,getPatternFromSpec:()=>EX,getPendingEmitKindWithSeen:()=>MW,getPositionOfLineAndCharacter:()=>gF,getPossibleGenericSignatures:()=>Dte,getPossibleOriginalInputExtensionForExtension:()=>QQ,getPossibleOriginalInputPathWithoutChangingExt:()=>XQ,getPossibleTypeArgumentsInfo:()=>Ote,getPreEmitDiagnostics:()=>MBe,getPrecedingNonSpaceCharacterPosition:()=>kU,getPrivateIdentifier:()=>JZ,getProperties:()=>BZ,getProperty:()=>As,getPropertyAssignmentAliasLikeExpression:()=>Fme,getPropertyNameForPropertyNameNode:()=>Nk,getPropertyNameFromType:()=>dm,getPropertyNameOfBindingOrAssignmentElement:()=>AY,getPropertySymbolFromBindingElement:()=>TU,getPropertySymbolsFromContextualType:()=>a$,getQuoteFromPreference:()=>zte,getQuotePreference:()=>H_,getRangesWhere:()=>gP,getRefactorContextSpan:()=>$E,getReferencedFileLocation:()=>D3,getRegexFromPattern:()=>N1,getRegularExpressionForWildcard:()=>O4,getRegularExpressionsForWildcards:()=>BJ,getRelativePathFromDirectory:()=>Pd,getRelativePathFromFile:()=>WO,getRelativePathToDirectoryOrUrl:()=>IP,getRenameLocation:()=>TR,getReplacementSpanForContextToken:()=>Fte,getResolutionDiagnostic:()=>vee,getResolutionModeOverride:()=>rA,getResolveJsonModule:()=>O2,getResolvePackageJsonExports:()=>B5,getResolvePackageJsonImports:()=>q5,getResolvedExternalModuleName:()=>GQ,getResolvedModuleFromResolution:()=>WP,getResolvedTypeReferenceDirectiveFromResolution:()=>Eq,getRestIndicatorOfBindingOrAssignmentElement:()=>Nz,getRestParameterElementType:()=>bQ,getRightMostAssignedExpression:()=>l5,getRootDeclaration:()=>Nh,getRootDirectoryOfResolutionCache:()=>Z0e,getRootLength:()=>Lg,getScriptKind:()=>Zte,getScriptKindFromFileName:()=>WJ,getScriptTargetFeatures:()=>sQ,getSelectedEffectiveModifierFlags:()=>tE,getSelectedSyntacticModifierFlags:()=>Kme,getSemanticClassifications:()=>Bbe,getSemanticJsxChildren:()=>mN,getSetAccessorTypeAnnotationNode:()=>Ume,getSetAccessorValueParameter:()=>b4,getSetExternalModuleIndicator:()=>L5,getShebang:()=>iq,getSingleVariableOfVariableStatement:()=>YP,getSnapshotText:()=>UE,getSnippetElement:()=>nY,getSourceFileOfModule:()=>JF,getSourceFileOfNode:()=>rn,getSourceFilePathInNewDir:()=>gJ,getSourceFileVersionAsHashFromText:()=>zW,getSourceFilesToEmit:()=>mJ,getSourceMapRange:()=>I1,getSourceMapper:()=>txe,getSourceTextOfNodeFromSourceFile:()=>m2,getSpanOfTokenAtPosition:()=>Ch,getSpellingSuggestion:()=>x0,getStartPositionOfLine:()=>ux,getStartPositionOfRange:()=>w4,getStartsOnNewLine:()=>U4,getStaticPropertiesAndClassStaticBlock:()=>mW,getStrictOptionValue:()=>Bp,getStringComparer:()=>uk,getSubPatternFromSpec:()=>qJ,getSuperCallFromStatement:()=>_W,getSuperContainer:()=>ZF,getSupportedCodeFixes:()=>ene,getSupportedExtensions:()=>N4,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>$5,getSwitchedType:()=>ire,getSymbolId:()=>co,getSymbolNameForPrivateIdentifier:()=>T5,getSymbolTarget:()=>ere,getSyntacticClassifications:()=>qbe,getSyntacticModifierFlags:()=>E1,getSyntacticModifierFlagsNoCache:()=>nX,getSynthesizedDeepClone:()=>tc,getSynthesizedDeepCloneWithReplacements:()=>SR,getSynthesizedDeepClones:()=>Z2,getSynthesizedDeepClonesWithReplacements:()=>tre,getSyntheticLeadingComments:()=>EN,getSyntheticTrailingComments:()=>nM,getTargetLabel:()=>sU,getTargetOfBindingOrAssignmentElement:()=>Px,getTemporaryModuleResolutionState:()=>d3,getTextOfConstantValue:()=>Gde,getTextOfIdentifierOrLiteral:()=>lm,getTextOfJSDocComment:()=>EF,getTextOfJsxAttributeName:()=>X5,getTextOfJsxNamespacedName:()=>z4,getTextOfNode:()=>cl,getTextOfNodeFromSourceText:()=>t4,getTextOfPropertyName:()=>VP,getThisContainer:()=>mf,getThisParameter:()=>C2,getTokenAtPosition:()=>ca,getTokenPosOfNode:()=>px,getTokenSourceMapRange:()=>Pje,getTouchingPropertyName:()=>r_,getTouchingToken:()=>pA,getTrailingCommentRanges:()=>ex,getTrailingSemicolonDeferringWriter:()=>HQ,getTransformers:()=>f0e,getTsBuildInfoEmitOutputFilePath:()=>KS,getTsConfigObjectLiteralExpression:()=>a4,getTsConfigPropArrayElementValue:()=>Wq,getTypeAnnotationNode:()=>$me,getTypeArgumentOrTypeParameterList:()=>sbe,getTypeKeywordOfTypeOnlyImport:()=>$te,getTypeNode:()=>mhe,getTypeNodeIfAccessible:()=>$3,getTypeParameterFromJsDoc:()=>Eme,getTypeParameterOwner:()=>xRe,getTypesPackageName:()=>sW,getUILocale:()=>SP,getUniqueName:()=>oC,getUniqueSymbolId:()=>Sbe,getUseDefineForClassFields:()=>J5,getWatchErrorSummaryDiagnosticMessage:()=>Aee,getWatchFactory:()=>aee,group:()=>dS,groupBy:()=>$7,guessIndentation:()=>Mde,handleNoEmitOptions:()=>yee,handleWatchOptionsConfigDirTemplateSubstitution:()=>Hz,hasAbstractModifier:()=>D2,hasAccessorModifier:()=>Ah,hasAmbientModifier:()=>rX,hasChangesInResolutions:()=>rQ,hasContextSensitiveParameters:()=>QJ,hasDecorators:()=>Od,hasDocComment:()=>ibe,hasDynamicName:()=>E0,hasEffectiveModifier:()=>z_,hasEffectiveModifiers:()=>tX,hasEffectiveReadonlyModifier:()=>Ik,hasExtension:()=>zO,hasImplementationTSFileExtension:()=>Age,hasIndexSignature:()=>nre,hasInferredType:()=>nz,hasInitializer:()=>k1,hasInvalidEscape:()=>$Q,hasJSDocNodes:()=>fd,hasJSDocParameterTags:()=>sde,hasJSFileExtension:()=>Iv,hasJsonModuleEmitEnabled:()=>FJ,hasOnlyExpressionInitializer:()=>xk,hasOverrideModifier:()=>vJ,hasPossibleExternalModuleReference:()=>Zde,hasProperty:()=>ec,hasPropertyAccessExpressionWithName:()=>uR,hasQuestionToken:()=>QP,hasRecordedExternalHelpers:()=>rye,hasResolutionModeOverride:()=>Kge,hasRestParameter:()=>XK,hasScopeMarker:()=>Cde,hasStaticModifier:()=>Pu,hasSyntacticModifier:()=>Ai,hasSyntacticModifiers:()=>Gme,hasTSFileExtension:()=>Mk,hasTabstop:()=>Vge,hasTrailingDirectorySeparator:()=>Yb,hasType:()=>Tq,hasTypeArguments:()=>KRe,hasZeroOrOneAsteriskCharacter:()=>wX,hostGetCanonicalFileName:()=>D0,hostUsesCaseSensitiveFileNames:()=>Ak,idText:()=>fi,identifierIsThisKeyword:()=>ZQ,identifierToKeywordKind:()=>mk,identity:()=>vc,identitySourceMapConsumer:()=>RZ,ignoreSourceNewlines:()=>aY,ignoredPaths:()=>KB,importFromModuleSpecifier:()=>u4,importSyntaxAffectsModuleResolution:()=>SX,indexOfAnyCharCode:()=>f_,indexOfNode:()=>tN,indicesOf:()=>pI,inferredTypesContainingFile:()=>E3,injectClassNamedEvaluationHelperBlockIfMissing:()=>vW,injectClassThisAssignmentIfMissing:()=>Bve,insertImports:()=>Ute,insertSorted:()=>Mg,insertStatementAfterCustomPrologue:()=>Sk,insertStatementAfterStandardPrologue:()=>zRe,insertStatementsAfterCustomPrologue:()=>nQ,insertStatementsAfterStandardPrologue:()=>kv,intersperse:()=>ns,intrinsicTagNameToString:()=>UX,introducesArgumentsExoticObject:()=>fme,inverseJsxOptionMap:()=>wM,isAbstractConstructorSymbol:()=>pge,isAbstractModifier:()=>Phe,isAccessExpression:()=>Lc,isAccessibilityModifier:()=>Ate,isAccessor:()=>ox,isAccessorModifier:()=>Dhe,isAliasableExpression:()=>iJ,isAmbientModule:()=>df,isAmbientPropertyDeclaration:()=>_Q,isAnyDirectorySeparator:()=>gK,isAnyImportOrBareOrAccessedRequire:()=>Xde,isAnyImportOrReExport:()=>$F,isAnyImportOrRequireStatement:()=>Yde,isAnyImportSyntax:()=>$P,isAnySupportedFileExtension:()=>vje,isApplicableVersionedTypesKey:()=>FM,isArgumentExpressionOfElementAccess:()=>xte,isArray:()=>cs,isArrayBindingElement:()=>hq,isArrayBindingOrAssignmentElement:()=>FF,isArrayBindingOrAssignmentPattern:()=>$K,isArrayBindingPattern:()=>j1,isArrayLiteralExpression:()=>kp,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>J1,isArrayTypeNode:()=>cM,isArrowFunction:()=>Bc,isAsExpression:()=>AN,isAssertClause:()=>Rhe,isAssertEntry:()=>Lje,isAssertionExpression:()=>d2,isAssertsKeyword:()=>khe,isAssignmentDeclaration:()=>c4,isAssignmentExpression:()=>Yu,isAssignmentOperator:()=>O0,isAssignmentPattern:()=>XI,isAssignmentTarget:()=>mx,isAsteriskToken:()=>aM,isAsyncFunction:()=>m4,isAsyncModifier:()=>G4,isAutoAccessorPropertyDeclaration:()=>Kf,isAwaitExpression:()=>kx,isAwaitKeyword:()=>uY,isBigIntLiteral:()=>H4,isBinaryExpression:()=>Vn,isBinaryLogicalOperator:()=>O5,isBinaryOperatorToken:()=>uye,isBindableObjectDefinePropertyCall:()=>Pk,isBindableStaticAccessExpression:()=>x2,isBindableStaticElementAccessExpression:()=>tJ,isBindableStaticNameExpression:()=>Ek,isBindingElement:()=>Do,isBindingElementOfBareOrAccessedRequire:()=>xme,isBindingName:()=>vk,isBindingOrAssignmentElement:()=>Sde,isBindingOrAssignmentPattern:()=>AF,isBindingPattern:()=>Os,isBlock:()=>Cs,isBlockLike:()=>VE,isBlockOrCatchScoped:()=>oQ,isBlockScope:()=>dQ,isBlockScopedContainerTopLevel:()=>Qde,isBooleanLiteral:()=>QI,isBreakOrContinueStatement:()=>VI,isBreakStatement:()=>Mje,isBuildCommand:()=>x1e,isBuildInfoFile:()=>_0e,isBuilderProgram:()=>Fee,isBundle:()=>qhe,isCallChain:()=>gk,isCallExpression:()=>Ls,isCallExpressionTarget:()=>mte,isCallLikeExpression:()=>_2,isCallLikeOrFunctionLikeExpression:()=>VK,isCallOrNewExpression:()=>wh,isCallOrNewExpressionTarget:()=>gte,isCallSignatureDeclaration:()=>xE,isCallToHelper:()=>V4,isCaseBlock:()=>t3,isCaseClause:()=>RN,isCaseKeyword:()=>Ohe,isCaseOrDefaultClause:()=>xq,isCatchClause:()=>z2,isCatchClauseVariableDeclaration:()=>$ge,isCatchClauseVariableDeclarationOrBindingElement:()=>cQ,isCheckJsEnabledForFile:()=>F4,isCircularBuildOrder:()=>zE,isClassDeclaration:()=>bu,isClassElement:()=>ou,isClassExpression:()=>vu,isClassInstanceProperty:()=>bde,isClassLike:()=>Ri,isClassMemberModifier:()=>zK,isClassNamedEvaluationHelperBlock:()=>BE,isClassOrTypeElement:()=>gq,isClassStaticBlockDeclaration:()=>Al,isClassThisAssignmentBlock:()=>S3,isColonToken:()=>The,isCommaExpression:()=>mM,isCommaListExpression:()=>Z4,isCommaSequence:()=>s3,isCommaToken:()=>She,isComment:()=>gU,isCommonJsExportPropertyAssignment:()=>Jq,isCommonJsExportedExpression:()=>ume,isCompoundAssignment:()=>v3,isComputedNonLiteralName:()=>VF,isComputedPropertyName:()=>po,isConciseBody:()=>vq,isConditionalExpression:()=>Wk,isConditionalTypeNode:()=>R2,isConstAssertion:()=>$X,isConstTypeReference:()=>_g,isConstructSignatureDeclaration:()=>oM,isConstructorDeclaration:()=>ul,isConstructorTypeNode:()=>DN,isContextualKeyword:()=>sJ,isContinueStatement:()=>Fje,isCustomPrologue:()=>XF,isDebuggerStatement:()=>Rje,isDeclaration:()=>Ku,isDeclarationBindingElement:()=>NF,isDeclarationFileName:()=>Wu,isDeclarationName:()=>Ny,isDeclarationNameOfEnumOrNamespace:()=>_X,isDeclarationReadonly:()=>GF,isDeclarationStatement:()=>Ode,isDeclarationWithTypeParameterChildren:()=>gQ,isDeclarationWithTypeParameters:()=>mQ,isDecorator:()=>qu,isDecoratorTarget:()=>H1e,isDefaultClause:()=>r3,isDefaultImport:()=>Dk,isDefaultModifier:()=>mz,isDefaultedExpandoInitializer:()=>Sme,isDeleteExpression:()=>Ahe,isDeleteTarget:()=>IQ,isDeprecatedDeclaration:()=>MU,isDestructuringAssignment:()=>D1,isDiskPathRoot:()=>hK,isDoStatement:()=>Ije,isDocumentRegistryEntry:()=>NR,isDotDotDotToken:()=>_z,isDottedName:()=>A5,isDynamicName:()=>cJ,isEffectiveExternalModule:()=>rN,isEffectiveStrictModeSourceFile:()=>fQ,isElementAccessChain:()=>RK,isElementAccessExpression:()=>Nc,isEmittedFileOfProgram:()=>b0e,isEmptyArrayLiteral:()=>rge,isEmptyBindingElement:()=>Z_e,isEmptyBindingPattern:()=>Y_e,isEmptyObjectLiteral:()=>cX,isEmptyStatement:()=>_Y,isEmptyStringLiteral:()=>TQ,isEntityName:()=>Of,isEntityNameExpression:()=>Tc,isEnumConst:()=>wS,isEnumDeclaration:()=>B2,isEnumMember:()=>L1,isEqualityOperatorKind:()=>EU,isEqualsGreaterThanToken:()=>whe,isExclamationToken:()=>sM,isExcludedFile:()=>Jye,isExclusivelyTypeOnlyImportOrExport:()=>fee,isExpandoPropertyDeclaration:()=>dE,isExportAssignment:()=>Gc,isExportDeclaration:()=>tu,isExportModifier:()=>vE,isExportName:()=>Dz,isExportNamespaceAsDefaultDeclaration:()=>Iq,isExportOrDefaultModifier:()=>vM,isExportSpecifier:()=>Yp,isExportsIdentifier:()=>Ck,isExportsOrModuleExportsOrAlias:()=>$2,isExpression:()=>At,isExpressionNode:()=>zg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Q1e,isExpressionOfOptionalChainRoot:()=>fq,isExpressionStatement:()=>Zu,isExpressionWithTypeArguments:()=>F0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>xJ,isExternalModule:()=>Du,isExternalModuleAugmentation:()=>h2,isExternalModuleImportEqualsDeclaration:()=>kS,isExternalModuleIndicator:()=>RF,isExternalModuleNameRelative:()=>Hu,isExternalModuleReference:()=>M0,isExternalModuleSymbol:()=>JP,isExternalOrCommonJsModule:()=>q_,isFileLevelReservedGeneratedIdentifier:()=>OF,isFileLevelUniqueName:()=>Nq,isFileProbablyExternalModule:()=>SM,isFirstDeclarationOfSymbolParameter:()=>Qte,isFixablePromiseHandler:()=>Dre,isForInOrOfStatement:()=>bk,isForInStatement:()=>bz,isForInitializer:()=>sm,isForOfStatement:()=>uM,isForStatement:()=>BS,isFullSourceFile:()=>Pv,isFunctionBlock:()=>y2,isFunctionBody:()=>GK,isFunctionDeclaration:()=>jl,isFunctionExpression:()=>Ic,isFunctionExpressionOrArrowFunction:()=>xx,isFunctionLike:()=>Ss,isFunctionLikeDeclaration:()=>Dc,isFunctionLikeKind:()=>jP,isFunctionLikeOrClassStaticBlockDeclaration:()=>XO,isFunctionOrConstructorTypeNode:()=>xde,isFunctionOrModuleBlock:()=>WK,isFunctionSymbol:()=>kme,isFunctionTypeNode:()=>Iy,isGeneratedIdentifier:()=>Xc,isGeneratedPrivateIdentifier:()=>yk,isGetAccessor:()=>Sv,isGetAccessorDeclaration:()=>mm,isGetOrSetAccessorDeclaration:()=>DF,isGlobalScopeAugmentation:()=>Oy,isGlobalSourceFile:()=>C1,isGrammarError:()=>Wde,isHeritageClause:()=>U_,isHoistedFunction:()=>Bq,isHoistedVariableStatement:()=>qq,isIdentifier:()=>Ye,isIdentifierANonContextualKeyword:()=>LQ,isIdentifierName:()=>Ime,isIdentifierOrThisTypeNode:()=>sye,isIdentifierPart:()=>T0,isIdentifierStart:()=>Cy,isIdentifierText:()=>m_,isIdentifierTypePredicate:()=>_me,isIdentifierTypeReference:()=>qge,isIfStatement:()=>LS,isIgnoredFileFromWildCardWatching:()=>KM,isImplicitGlob:()=>PX,isImportAttribute:()=>jhe,isImportAttributeName:()=>vde,isImportAttributes:()=>$k,isImportCall:()=>_d,isImportClause:()=>vg,isImportDeclaration:()=>sl,isImportEqualsDeclaration:()=>zu,isImportKeyword:()=>Q4,isImportMeta:()=>aN,isImportOrExportSpecifier:()=>ax,isImportOrExportSpecifierName:()=>xbe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>jje,isImportTypeNode:()=>jh,isImportable:()=>hre,isInComment:()=>q1,isInCompoundLikeAssignment:()=>AQ,isInExpressionContext:()=>Kq,isInJSDoc:()=>i5,isInJSFile:()=>jn,isInJSXText:()=>nbe,isInJsonFile:()=>Xq,isInNonReferenceComment:()=>lbe,isInReferenceComment:()=>cbe,isInRightSideOfInternalImportEqualsDeclaration:()=>iU,isInString:()=>WE,isInTemplateString:()=>Ete,isInTopLevelContext:()=>Vq,isInTypeQuery:()=>eE,isIncrementalBuildInfo:()=>tR,isIncrementalBundleEmitBuildInfo:()=>J0e,isIncrementalCompilation:()=>N2,isIndexSignatureDeclaration:()=>wx,isIndexedAccessTypeNode:()=>j2,isInferTypeNode:()=>qk,isInfinityOrNaNString:()=>B4,isInitializedProperty:()=>BM,isInitializedVariable:()=>R5,isInsideJsxElement:()=>dU,isInsideJsxElementOrAttribute:()=>rbe,isInsideNodeModules:()=>CR,isInsideTemplateLiteral:()=>mR,isInstanceOfExpression:()=>SJ,isInstantiatedModule:()=>DZ,isInterfaceDeclaration:()=>Cp,isInternalDeclaration:()=>Rde,isInternalModuleImportEqualsDeclaration:()=>kk,isInternalName:()=>DY,isIntersectionTypeNode:()=>wE,isIntrinsicJsxName:()=>gN,isIterationStatement:()=>cx,isJSDoc:()=>Gg,isJSDocAllType:()=>Whe,isJSDocAugmentsTag:()=>DE,isJSDocAuthorTag:()=>zje,isJSDocCallbackTag:()=>hY,isJSDocClassTag:()=>$he,isJSDocCommentContainingNode:()=>Sq,isJSDocConstructSignature:()=>XP,isJSDocDeprecatedTag:()=>SY,isJSDocEnumTag:()=>fM,isJSDocFunctionType:()=>LN,isJSDocImplementsTag:()=>Cz,isJSDocImportTag:()=>zh,isJSDocIndexSignature:()=>Zq,isJSDocLikeText:()=>LY,isJSDocLink:()=>Jhe,isJSDocLinkCode:()=>zhe,isJSDocLinkLike:()=>qP,isJSDocLinkPlain:()=>qje,isJSDocMemberName:()=>zS,isJSDocNameReference:()=>n3,isJSDocNamepathType:()=>Jje,isJSDocNamespaceBody:()=>MRe,isJSDocNode:()=>YO,isJSDocNonNullableType:()=>Sz,isJSDocNullableType:()=>jN,isJSDocOptionalParameter:()=>ZJ,isJSDocOptionalType:()=>gY,isJSDocOverloadTag:()=>BN,isJSDocOverrideTag:()=>wz,isJSDocParameterTag:()=>Ad,isJSDocPrivateTag:()=>vY,isJSDocPropertyLikeTag:()=>HI,isJSDocPropertyTag:()=>Vhe,isJSDocProtectedTag:()=>bY,isJSDocPublicTag:()=>yY,isJSDocReadonlyTag:()=>xY,isJSDocReturnTag:()=>kz,isJSDocSatisfiesExpression:()=>zX,isJSDocSatisfiesTag:()=>Pz,isJSDocSeeTag:()=>Wje,isJSDocSignature:()=>B1,isJSDocTag:()=>ZO,isJSDocTemplateTag:()=>Um,isJSDocThisTag:()=>TY,isJSDocThrowsTag:()=>$je,isJSDocTypeAlias:()=>Bm,isJSDocTypeAssertion:()=>W2,isJSDocTypeExpression:()=>JS,isJSDocTypeLiteral:()=>Hk,isJSDocTypeTag:()=>i3,isJSDocTypedefTag:()=>Gk,isJSDocUnknownTag:()=>Uje,isJSDocUnknownType:()=>Uhe,isJSDocVariadicType:()=>Tz,isJSXTagName:()=>cN,isJsonEqual:()=>GJ,isJsonSourceFile:()=>cm,isJsxAttribute:()=>Jh,isJsxAttributeLike:()=>bq,isJsxAttributeName:()=>Gge,isJsxAttributes:()=>J2,isJsxCallLike:()=>Fde,isJsxChild:()=>BF,isJsxClosingElement:()=>q2,isJsxClosingFragment:()=>Bhe,isJsxElement:()=>qh,isJsxExpression:()=>MN,isJsxFragment:()=>qS,isJsxNamespacedName:()=>Hg,isJsxOpeningElement:()=>Vg,isJsxOpeningFragment:()=>bg,isJsxOpeningLikeElement:()=>Qp,isJsxOpeningLikeElementTagName:()=>G1e,isJsxSelfClosingElement:()=>Vk,isJsxSpreadAttribute:()=>EE,isJsxTagNameExpression:()=>YI,isJsxText:()=>hE,isJumpStatementTarget:()=>pR,isKeyword:()=>Yf,isKeywordOrPunctuation:()=>aJ,isKnownSymbol:()=>w5,isLabelName:()=>vte,isLabelOfLabeledStatement:()=>yte,isLabeledStatement:()=>Cx,isLateVisibilityPaintedStatement:()=>Mq,isLeftHandSideExpression:()=>Qf,isLet:()=>Lq,isLineBreak:()=>Gp,isLiteralComputedPropertyDeclarationName:()=>b5,isLiteralExpression:()=>hk,isLiteralExpressionOfObject:()=>qK,isLiteralImportTypeNode:()=>C0,isLiteralKind:()=>GI,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>oU,isLiteralTypeLiteral:()=>kde,isLiteralTypeNode:()=>R1,isLocalName:()=>R0,isLogicalOperator:()=>Zme,isLogicalOrCoalescingAssignmentExpression:()=>iX,isLogicalOrCoalescingAssignmentOperator:()=>x4,isLogicalOrCoalescingBinaryExpression:()=>N5,isLogicalOrCoalescingBinaryOperator:()=>bJ,isMappedTypeNode:()=>zk,isMemberName:()=>xv,isMetaProperty:()=>Y4,isMethodDeclaration:()=>wl,isMethodOrAccessor:()=>LP,isMethodSignature:()=>yg,isMinusToken:()=>lY,isMissingDeclaration:()=>Bje,isMissingPackageJsonInfo:()=>Zye,isModifier:()=>oo,isModifierKind:()=>sx,isModifierLike:()=>Yc,isModuleAugmentationExternal:()=>uQ,isModuleBlock:()=>Lh,isModuleBody:()=>Pde,isModuleDeclaration:()=>cu,isModuleExportName:()=>xz,isModuleExportsAccessExpression:()=>Ev,isModuleIdentifier:()=>CQ,isModuleName:()=>lye,isModuleOrEnumDeclaration:()=>jF,isModuleReference:()=>Ade,isModuleSpecifierLike:()=>SU,isModuleWithStringLiteralName:()=>Fq,isNameOfFunctionDeclaration:()=>Tte,isNameOfModuleDeclaration:()=>Ste,isNamedDeclaration:()=>Gu,isNamedEvaluation:()=>J_,isNamedEvaluationSource:()=>BQ,isNamedExportBindings:()=>LK,isNamedExports:()=>hm,isNamedImportBindings:()=>KK,isNamedImports:()=>Bh,isNamedImportsOrExports:()=>DJ,isNamedTupleMember:()=>ON,isNamespaceBody:()=>FRe,isNamespaceExport:()=>Fy,isNamespaceExportDeclaration:()=>pM,isNamespaceImport:()=>jv,isNamespaceReexportDeclaration:()=>bme,isNewExpression:()=>L2,isNewExpressionTarget:()=>F3,isNewScopeNode:()=>the,isNoSubstitutionTemplateLiteral:()=>Bk,isNodeArray:()=>p2,isNodeArrayMultiLine:()=>cge,isNodeDescendantOf:()=>T2,isNodeKind:()=>dq,isNodeLikeSystem:()=>Q7,isNodeModulesDirectory:()=>eq,isNodeWithPossibleHoistedDeclaration:()=>Nme,isNonContextualKeyword:()=>jQ,isNonGlobalAmbientModule:()=>lQ,isNonNullAccess:()=>Hge,isNonNullChain:()=>_q,isNonNullExpression:()=>CE,isNonStaticMethodOrAccessorWithPrivateName:()=>Ave,isNotEmittedStatement:()=>Lhe,isNullishCoalesce:()=>jK,isNumber:()=>nm,isNumericLiteral:()=>e_,isNumericLiteralName:()=>Mv,isObjectBindingElementWithoutPropertyName:()=>vR,isObjectBindingOrAssignmentElement:()=>IF,isObjectBindingOrAssignmentPattern:()=>UK,isObjectBindingPattern:()=>Nd,isObjectLiteralElement:()=>QK,isObjectLiteralElementLike:()=>k0,isObjectLiteralExpression:()=>So,isObjectLiteralMethod:()=>Lm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>zq,isObjectTypeDeclaration:()=>aE,isOmittedExpression:()=>Ju,isOptionalChain:()=>Kp,isOptionalChainRoot:()=>UI,isOptionalDeclaration:()=>fE,isOptionalJSDocPropertyLikeTag:()=>Q5,isOptionalTypeNode:()=>gz,isOuterExpression:()=>Oz,isOutermostOptionalChain:()=>$I,isOverrideModifier:()=>Ehe,isPackageJsonInfo:()=>tW,isPackedArrayLiteral:()=>qX,isParameter:()=>Da,isParameterPropertyDeclaration:()=>L_,isParameterPropertyModifier:()=>KI,isParenthesizedExpression:()=>Mf,isParenthesizedTypeNode:()=>Jk,isParseTreeNode:()=>WI,isPartOfParameterDeclaration:()=>OS,isPartOfTypeNode:()=>Eh,isPartOfTypeOnlyImportOrExportDeclaration:()=>yde,isPartOfTypeQuery:()=>Qq,isPartiallyEmittedExpression:()=>Ihe,isPatternMatch:()=>fk,isPinnedComment:()=>Aq,isPlainJsFile:()=>e4,isPlusToken:()=>cY,isPossiblyTypeArgumentPosition:()=>dR,isPostfixUnaryExpression:()=>fY,isPrefixUnaryExpression:()=>jS,isPrimitiveLiteralValue:()=>rz,isPrivateIdentifier:()=>Ca,isPrivateIdentifierClassElementDeclaration:()=>_f,isPrivateIdentifierPropertyAccessExpression:()=>QO,isPrivateIdentifierSymbol:()=>Rme,isProgramUptoDate:()=>gee,isPrologueDirective:()=>Ph,isPropertyAccessChain:()=>pq,isPropertyAccessEntityNameExpression:()=>I5,isPropertyAccessExpression:()=>ai,isPropertyAccessOrQualifiedName:()=>MF,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Tde,isPropertyAssignment:()=>xu,isPropertyDeclaration:()=>is,isPropertyName:()=>su,isPropertyNameLiteral:()=>Oh,isPropertySignature:()=>vf,isPrototypeAccess:()=>yx,isPrototypePropertyAssignment:()=>f5,isPunctuation:()=>RQ,isPushOrUnshiftIdentifier:()=>qQ,isQualifiedName:()=>If,isQuestionDotToken:()=>dz,isQuestionOrExclamationToken:()=>aye,isQuestionOrPlusOrMinusToken:()=>cye,isQuestionToken:()=>Tx,isReadonlyKeyword:()=>Che,isReadonlyKeywordOrPlusOrMinusToken:()=>oye,isRecognizedTripleSlashComment:()=>iQ,isReferenceFileLocation:()=>nA,isReferencedFile:()=>QS,isRegularExpressionLiteral:()=>sY,isRequireCall:()=>Xf,isRequireVariableStatement:()=>s5,isRestParameter:()=>Ey,isRestTypeNode:()=>hz,isReturnStatement:()=>md,isReturnStatementWithFixablePromiseHandler:()=>WU,isRightSideOfAccessExpression:()=>oX,isRightSideOfInstanceofExpression:()=>tge,isRightSideOfPropertyAccess:()=>cA,isRightSideOfQualifiedName:()=>K1e,isRightSideOfQualifiedNameOrPropertyAccess:()=>S4,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>ege,isRootedDiskPath:()=>j_,isSameEntityName:()=>lN,isSatisfiesExpression:()=>IN,isSemicolonClassElement:()=>Fhe,isSetAccessor:()=>kh,isSetAccessorDeclaration:()=>v_,isShiftOperatorOrHigher:()=>MY,isShorthandAmbientModuleSymbol:()=>UF,isShorthandPropertyAssignment:()=>Jp,isSideEffectImport:()=>HX,isSignedNumericLiteral:()=>oJ,isSimpleCopiableExpression:()=>V2,isSimpleInlineableExpression:()=>Wh,isSimpleParameterList:()=>qM,isSingleOrDoubleQuote:()=>o5,isSolutionConfig:()=>aZ,isSourceElement:()=>Qge,isSourceFile:()=>ba,isSourceFileFromLibrary:()=>yA,isSourceFileJS:()=>Nf,isSourceFileNotJson:()=>Yq,isSourceMapping:()=>Dve,isSpecialPropertyDeclaration:()=>wme,isSpreadAssignment:()=>Lv,isSpreadElement:()=>gm,isStatement:()=>fa,isStatementButNotDeclaration:()=>LF,isStatementOrBlock:()=>Nde,isStatementWithLocals:()=>zde,isStatic:()=>Vs,isStaticModifier:()=>bE,isString:()=>Ua,isStringANonContextualKeyword:()=>ZP,isStringAndEmptyAnonymousObjectIntersection:()=>obe,isStringDoubleQuoted:()=>eJ,isStringLiteral:()=>vo,isStringLiteralLike:()=>Ho,isStringLiteralOrJsxExpression:()=>Ide,isStringLiteralOrTemplate:()=>Pbe,isStringOrNumericLiteralLike:()=>Dd,isStringOrRegularExpressionOrTemplateLiteral:()=>Nte,isStringTextContainingNode:()=>JK,isSuperCall:()=>wk,isSuperKeyword:()=>K4,isSuperProperty:()=>g_,isSupportedSourceFileName:()=>AX,isSwitchStatement:()=>e3,isSyntaxList:()=>qN,isSyntheticExpression:()=>Aje,isSyntheticReference:()=>PE,isTagName:()=>bte,isTaggedTemplateExpression:()=>RS,isTaggedTemplateTag:()=>V1e,isTemplateExpression:()=>vz,isTemplateHead:()=>yE,isTemplateLiteral:()=>BP,isTemplateLiteralKind:()=>ix,isTemplateLiteralToken:()=>gde,isTemplateLiteralTypeNode:()=>Nhe,isTemplateLiteralTypeSpan:()=>pY,isTemplateMiddle:()=>oY,isTemplateMiddleOrTemplateTail:()=>mq,isTemplateSpan:()=>FN,isTemplateTail:()=>fz,isTextWhiteSpaceLike:()=>_be,isThis:()=>lA,isThisContainerOrFunctionBlock:()=>hme,isThisIdentifier:()=>hx,isThisInTypeQuery:()=>P2,isThisInitializedDeclaration:()=>Hq,isThisInitializedObjectBindingExpression:()=>vme,isThisProperty:()=>e5,isThisTypeNode:()=>X4,isThisTypeParameter:()=>q4,isThisTypePredicate:()=>dme,isThrowStatement:()=>mY,isToken:()=>RP,isTokenKind:()=>BK,isTraceEnabled:()=>Ex,isTransientSymbol:()=>Tv,isTrivia:()=>dN,isTryStatement:()=>Uk,isTupleTypeNode:()=>TE,isTypeAlias:()=>g5,isTypeAliasDeclaration:()=>Wm,isTypeAssertionExpression:()=>yz,isTypeDeclaration:()=>pE,isTypeElement:()=>f2,isTypeKeyword:()=>L3,isTypeKeywordTokenOrIdentifier:()=>vU,isTypeLiteralNode:()=>Ff,isTypeNode:()=>Yi,isTypeNodeKind:()=>hX,isTypeOfExpression:()=>NN,isTypeOnlyExportDeclaration:()=>hde,isTypeOnlyImportDeclaration:()=>KO,isTypeOnlyImportOrExportDeclaration:()=>w1,isTypeOperatorNode:()=>MS,isTypeParameterDeclaration:()=>Hc,isTypePredicateNode:()=>SE,isTypeQueryNode:()=>M2,isTypeReferenceNode:()=>W_,isTypeReferenceType:()=>wq,isTypeUsableAsPropertyName:()=>_m,isUMDExportSymbol:()=>EJ,isUnaryExpression:()=>HK,isUnaryExpressionWithWrite:()=>wde,isUnicodeIdentifierStart:()=>rq,isUnionTypeNode:()=>M1,isUrl:()=>N_e,isValidBigIntString:()=>KJ,isValidESSymbolDeclaration:()=>pme,isValidTypeOnlyAliasUseSite:()=>AS,isValueSignatureDeclaration:()=>Ok,isVarAwaitUsing:()=>KF,isVarConst:()=>iN,isVarConstLike:()=>ome,isVarUsing:()=>QF,isVariableDeclaration:()=>Ui,isVariableDeclarationInVariableStatement:()=>i4,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>b2,isVariableDeclarationInitializedToRequire:()=>a5,isVariableDeclarationList:()=>mp,isVariableLike:()=>n4,isVariableStatement:()=>Rl,isVoidExpression:()=>kE,isWatchSet:()=>dX,isWhileStatement:()=>dY,isWhiteSpaceLike:()=>yv,isWhiteSpaceSingleLine:()=>Th,isWithStatement:()=>Mhe,isWriteAccess:()=>iE,isWriteOnlyAccess:()=>PJ,isYieldExpression:()=>lM,jsxModeNeedsExplicitImport:()=>dre,keywordPart:()=>G_,last:()=>ao,lastOrUndefined:()=>dc,length:()=>Re,libMap:()=>WY,libs:()=>jz,lineBreakPart:()=>mA,loadModuleFromGlobalCache:()=>pve,loadWithModeAwareCache:()=>XM,makeIdentifierFromModuleName:()=>Kde,makeImport:()=>Mx,makeStringLiteral:()=>B3,mangleScopedPackageName:()=>XN,map:()=>Dt,mapAllOrFail:()=>ku,mapDefined:()=>Bi,mapDefinedIterator:()=>pf,mapEntries:()=>ok,mapIterator:()=>ci,mapOneOrMany:()=>ure,mapToDisplayParts:()=>ZS,matchFiles:()=>DX,matchPatternOrExact:()=>FX,matchedText:()=>ky,matchesExclude:()=>Qz,matchesExcludeWorker:()=>Xz,maxBy:()=>hI,maybeBind:()=>Ra,maybeSetLocalizedDiagnosticMessages:()=>hge,memoize:()=>Cu,memoizeOne:()=>im,min:()=>bP,minAndMax:()=>jge,missingFileModifiedTime:()=>Hp,modifierToFlag:()=>rE,modifiersToFlags:()=>Ih,moduleExportNameIsDefault:()=>Dy,moduleExportNameTextEscaped:()=>g2,moduleExportNameTextUnescaped:()=>fx,moduleOptionDeclaration:()=>xye,moduleResolutionIsEqualTo:()=>qde,moduleResolutionNameAndModeGetter:()=>PW,moduleResolutionOptionDeclarations:()=>$Y,moduleResolutionSupportsPackageJsonExportsAndImports:()=>TN,moduleResolutionUsesNodeModules:()=>bU,moduleSpecifierToValidIdentifier:()=>ER,moduleSpecifiers:()=>L0,moduleSupportsImportAttributes:()=>wge,moduleSymbolToValidIdentifier:()=>PR,moveEmitHelpers:()=>_he,moveRangeEnd:()=>kJ,moveRangePastDecorators:()=>N0,moveRangePastModifiers:()=>Fh,moveRangePos:()=>NS,moveSyntheticComments:()=>uhe,mutateMap:()=>P4,mutateMapSkippingNewValues:()=>Ov,needsParentheses:()=>CU,needsScopeMarker:()=>yq,newCaseClauseTracker:()=>LU,newPrivateEnvironment:()=>Fve,noEmitNotification:()=>UM,noEmitSubstitution:()=>w3,noTransformers:()=>p0e,noTruncationMaximumTruncationLength:()=>ZK,nodeCanBeDecorated:()=>r5,nodeCoreModules:()=>PN,nodeHasName:()=>CF,nodeIsDecorated:()=>oN,nodeIsMissing:()=>Sl,nodeIsPresent:()=>jm,nodeIsSynthesized:()=>Pc,nodeModuleNameResolver:()=>ive,nodeModulesPathPart:()=>Bv,nodeNextJsonConfigResolver:()=>ave,nodeOrChildIsDecorated:()=>n5,nodeOverlapsWithStartEnd:()=>cU,nodePosToString:()=>LRe,nodeSeenTracker:()=>fA,nodeStartsNewLexicalEnvironment:()=>JQ,noop:()=>Ko,noopFileWatcher:()=>sA,normalizePath:()=>Zs,normalizeSlashes:()=>_p,normalizeSpans:()=>EK,not:()=>NO,notImplemented:()=>zs,notImplementedResolver:()=>g0e,nullNodeConverters:()=>ohe,nullParenthesizerRules:()=>ahe,nullTransformationContext:()=>VM,objectAllocator:()=>wp,operatorPart:()=>J3,optionDeclarations:()=>xg,optionMapToObject:()=>Uz,optionsAffectingProgramStructure:()=>Cye,optionsForBuild:()=>HY,optionsForWatch:()=>FE,optionsHaveChanges:()=>zP,or:()=>Df,orderedRemoveItem:()=>wP,orderedRemoveItemAt:()=>jg,packageIdToPackageName:()=>Oq,packageIdToString:()=>TS,parameterIsThisKeyword:()=>gx,parameterNamePart:()=>mbe,parseBaseNodeFactory:()=>mye,parseBigInt:()=>Bge,parseBuildCommand:()=>Fye,parseCommandLine:()=>Aye,parseCommandLineWorker:()=>KY,parseConfigFileTextToJson:()=>XY,parseConfigFileWithSystem:()=>t1e,parseConfigHostFromCompilerHostLike:()=>IW,parseCustomTypeOption:()=>Jz,parseIsolatedEntityName:()=>IE,parseIsolatedJSDocComment:()=>hye,parseJSDocTypeExpressionForTests:()=>mLe,parseJsonConfigFileContent:()=>ULe,parseJsonSourceFileConfigFileContent:()=>DM,parseJsonText:()=>TM,parseListTypeOption:()=>Oye,parseNodeFactory:()=>US,parseNodeModuleFromPath:()=>IM,parsePackageName:()=>iW,parsePseudoBigInt:()=>R4,parseValidBigInt:()=>LX,pasteEdits:()=>die,patchWriteFileEnsuringDirectory:()=>O_e,pathContainsNodeModules:()=>Ox,pathIsAbsolute:()=>FI,pathIsBareSpecifier:()=>yK,pathIsRelative:()=>pd,patternText:()=>vB,performIncrementalCompilation:()=>r1e,performance:()=>DB,positionBelongsToNode:()=>wte,positionIsASICandidate:()=>DU,positionIsSynthesized:()=>Ug,positionsAreOnSameLine:()=>pm,preProcessFile:()=>eze,probablyUsesSemicolons:()=>kR,processCommentPragmas:()=>JY,processPragmasIntoFields:()=>zY,processTaggedTemplateExpression:()=>UZ,programContainsEsModules:()=>pbe,programContainsModules:()=>ube,projectReferenceIsEqualTo:()=>eQ,propertyNamePart:()=>gbe,pseudoBigIntToString:()=>A2,punctuationPart:()=>tf,pushIfUnique:()=>I_,quote:()=>U3,quotePreferenceFromString:()=>Jte,rangeContainsPosition:()=>uA,rangeContainsPositionExclusive:()=>fR,rangeContainsRange:()=>Zf,rangeContainsRangeExclusive:()=>X1e,rangeContainsStartEnd:()=>_R,rangeEndIsOnSameLineAsRangeStart:()=>M5,rangeEndPositionsAreOnSameLine:()=>sge,rangeEquals:()=>dI,rangeIsOnSingleLine:()=>Fk,rangeOfNode:()=>RX,rangeOfTypeParameters:()=>jX,rangeOverlapsWithStartEnd:()=>M3,rangeStartIsOnSameLineAsRangeEnd:()=>oge,rangeStartPositionsAreOnSameLine:()=>CJ,readBuilderProgram:()=>UW,readConfigFile:()=>PM,readJson:()=>vN,readJsonConfigFile:()=>Mye,readJsonOrUndefined:()=>lX,reduceEachLeadingCommentRange:()=>B_e,reduceEachTrailingCommentRange:()=>q_e,reduceLeft:()=>Qu,reduceLeftIterator:()=>Oi,reducePathComponents:()=>AP,refactor:()=>GE,regExpEscape:()=>_je,regularExpressionFlagToCharacterCode:()=>fRe,relativeComplement:()=>dB,removeAllComments:()=>tM,removeEmitHelper:()=>Eje,removeExtension:()=>H5,removeFileExtension:()=>yf,removeIgnoredPath:()=>jW,removeMinAndVersionNumbers:()=>bI,removePrefix:()=>kP,removeSuffix:()=>a2,removeTrailingDirectorySeparator:()=>T1,repeatString:()=>hR,replaceElement:()=>EO,replaceFirstStar:()=>Rk,resolutionExtensionIsTSOrJson:()=>A4,resolveConfigFileProjectName:()=>Gee,resolveJSModule:()=>tve,resolveLibrary:()=>nW,resolveModuleName:()=>Yk,resolveModuleNameFromCache:()=>b9e,resolvePackageNameToPackageJson:()=>lZ,resolvePath:()=>Zb,resolveProjectReferencePath:()=>qE,resolveTripleslashReference:()=>oee,resolveTypeReferenceDirective:()=>Xye,resolvingEmptyArray:()=>YK,returnFalse:()=>cd,returnNoopFileWatcher:()=>N3,returnTrue:()=>v1,returnUndefined:()=>Rg,returnsPromise:()=>Ere,rewriteModuleSpecifier:()=>jE,sameFlatMap:()=>Vc,sameMap:()=>ia,sameMapping:()=>uBe,scanTokenAtPosition:()=>sme,scanner:()=>gp,semanticDiagnosticsOptionDeclarations:()=>Tye,serializeCompilerOptions:()=>$z,server:()=>lYe,servicesVersion:()=>WWe,setCommentRange:()=>yu,setConfigFileInOptions:()=>nZ,setConstantValue:()=>fhe,setEmitFlags:()=>qn,setGetSourceFileAsHashVersioned:()=>WW,setIdentifierAutoGenerate:()=>iM,setIdentifierGeneratedImportReference:()=>ghe,setIdentifierTypeArguments:()=>F1,setInternalEmitFlags:()=>rM,setLocalizedDiagnosticMessages:()=>gge,setNodeChildren:()=>Hhe,setNodeFlags:()=>zge,setObjectAllocator:()=>mge,setOriginalNode:()=>ii,setParent:()=>Xo,setParentRecursive:()=>IS,setPrivateIdentifier:()=>eC,setSnippetElement:()=>iY,setSourceMapRange:()=>Eo,setStackTraceLimit:()=>Xb,setStartsOnNewLine:()=>cz,setSyntheticLeadingComments:()=>FS,setSyntheticTrailingComments:()=>mE,setSys:()=>tRe,setSysLog:()=>P_e,setTextRange:()=>Ot,setTextRangeEnd:()=>CN,setTextRangePos:()=>j4,setTextRangePosEnd:()=>$g,setTextRangePosWidth:()=>BX,setTokenSourceMapRange:()=>lhe,setTypeNode:()=>dhe,setUILocale:()=>TP,setValueDeclaration:()=>_5,shouldAllowImportingTsExtension:()=>YN,shouldPreserveConstEnums:()=>vx,shouldRewriteModuleSpecifier:()=>m5,shouldUseUriStyleNodeCoreModules:()=>RU,showModuleSpecifier:()=>fge,signatureHasRestParameter:()=>ef,signatureToDisplayParts:()=>Yte,single:()=>fS,singleElementArray:()=>lg,singleIterator:()=>uI,singleOrMany:()=>em,singleOrUndefined:()=>Zd,skipAlias:()=>Tp,skipConstraint:()=>Lte,skipOuterExpressions:()=>Ll,skipParentheses:()=>Qo,skipPartiallyEmittedExpressions:()=>dg,skipTrivia:()=>yo,skipTypeChecking:()=>kN,skipTypeCheckingIgnoringNoCheck:()=>Lge,skipTypeParentheses:()=>p4,skipWhile:()=>bB,sliceAfter:()=>MX,some:()=>Pt,sortAndDeduplicate:()=>hP,sortAndDeduplicateDiagnostics:()=>VO,sourceFileAffectingCompilerOptions:()=>VY,sourceFileMayBeEmitted:()=>k2,sourceMapCommentRegExp:()=>AZ,sourceMapCommentRegExpDontCareLineStart:()=>Cve,spacePart:()=>Il,spanMap:()=>z7,startEndContainsRange:()=>fX,startEndOverlapsWithStartEnd:()=>lU,startOnNewLine:()=>Zp,startTracing:()=>aF,startsWith:()=>La,startsWithDirectory:()=>xK,startsWithUnderscore:()=>_re,startsWithUseStrict:()=>eye,stringContainsAt:()=>Fbe,stringToToken:()=>dk,stripQuotes:()=>qm,supportedDeclarationExtensions:()=>$J,supportedJSExtensionsFlat:()=>wN,supportedLocaleDirectories:()=>tde,supportedTSExtensionsFlat:()=>OX,supportedTSImplementationExtensions:()=>U5,suppressLeadingAndTrailingTrivia:()=>K_,suppressLeadingTrivia:()=>rre,suppressTrailingTrivia:()=>wbe,symbolEscapedNameNoDefault:()=>xU,symbolName:()=>Ml,symbolNameNoDefault:()=>Wte,symbolToDisplayParts:()=>z3,sys:()=>Ru,sysLog:()=>dF,tagNamesAreEquivalent:()=>VS,takeWhile:()=>Hb,targetOptionDeclaration:()=>UY,targetToLibMap:()=>J_e,testFormatSettings:()=>xJe,textChangeRangeIsUnchanged:()=>Q_e,textChangeRangeNewSpan:()=>zI,textChanges:()=>Ln,textOrKeywordPart:()=>Xte,textPart:()=>Rd,textRangeContainsPositionInclusive:()=>SF,textRangeContainsTextSpan:()=>U_e,textRangeIntersectsWithTextSpan:()=>G_e,textSpanContainsPosition:()=>CK,textSpanContainsTextRange:()=>PK,textSpanContainsTextSpan:()=>W_e,textSpanEnd:()=>ml,textSpanIntersection:()=>K_e,textSpanIntersectsWith:()=>TF,textSpanIntersectsWithPosition:()=>H_e,textSpanIntersectsWithTextSpan:()=>V_e,textSpanIsEmpty:()=>z_e,textSpanOverlap:()=>$_e,textSpanOverlapsWith:()=>bRe,textSpansEqual:()=>dA,textToKeywordObj:()=>tq,timestamp:()=>xc,toArray:()=>Sh,toBuilderFileEmit:()=>U0e,toBuilderStateFileInfoForMultiEmit:()=>W0e,toEditorSettings:()=>RR,toFileNameLowerCase:()=>wy,toPath:()=>Ec,toProgramEmitPending:()=>$0e,toSorted:()=>ff,tokenIsIdentifierOrKeyword:()=>Gf,tokenIsIdentifierOrKeywordOrGreaterThan:()=>I_e,tokenToString:()=>to,trace:()=>es,tracing:()=>Fn,tracingEnabled:()=>FO,transferSourceFileChildren:()=>Ghe,transform:()=>ZWe,transformClassFields:()=>Uve,transformDeclarations:()=>GZ,transformECMAScriptModule:()=>HZ,transformES2015:()=>i0e,transformES2016:()=>n0e,transformES2017:()=>Gve,transformES2018:()=>Kve,transformES2019:()=>Qve,transformES2020:()=>Xve,transformES2021:()=>Yve,transformESDecorators:()=>Hve,transformESNext:()=>Zve,transformGenerators:()=>a0e,transformImpliedNodeFormatDependentModule:()=>o0e,transformJsx:()=>r0e,transformLegacyDecorators:()=>Vve,transformModule:()=>VZ,transformNamedEvaluation:()=>$_,transformNodes:()=>$M,transformSystemModule:()=>s0e,transformTypeScript:()=>Wve,transpile:()=>lze,transpileDeclaration:()=>oze,transpileModule:()=>nxe,transpileOptionValueCompilerOptions:()=>Pye,tryAddToSet:()=>Ty,tryAndIgnoreErrors:()=>AU,tryCast:()=>_i,tryDirectoryExists:()=>NU,tryExtractTSExtension:()=>TJ,tryFileExists:()=>V3,tryGetClassExtendingExpressionWithTypeArguments:()=>aX,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>sX,tryGetDirectories:()=>OU,tryGetExtensionFromPath:()=>Fv,tryGetImportFromModuleSpecifier:()=>d5,tryGetJSDocSatisfiesTypeNode:()=>ez,tryGetModuleNameFromFile:()=>hM,tryGetModuleSpecifierFromDeclaration:()=>GP,tryGetNativePerformanceHooks:()=>wI,tryGetPropertyAccessOrIdentifierToString:()=>F5,tryGetPropertyNameOfBindingOrAssignmentElement:()=>Az,tryGetSourceMappingURL:()=>Pve,tryGetTextOfPropertyName:()=>r4,tryParseJson:()=>wJ,tryParsePattern:()=>uE,tryParsePatterns:()=>G5,tryParseRawSourceMap:()=>Eve,tryReadDirectory:()=>sre,tryReadFile:()=>l3,tryRemoveDirectoryPrefix:()=>CX,tryRemoveExtension:()=>Rge,tryRemovePrefix:()=>G7,tryRemoveSuffix:()=>OO,tscBuildOption:()=>Qk,typeAcquisitionDeclarations:()=>Bz,typeAliasNamePart:()=>hbe,typeDirectiveIsEqualTo:()=>Jde,typeKeywords:()=>jte,typeParameterNamePart:()=>ybe,typeToDisplayParts:()=>xR,unchangedPollThresholds:()=>GB,unchangedTextChangeRange:()=>aq,unescapeLeadingUnderscores:()=>ka,unmangleScopedPackageName:()=>MM,unorderedRemoveItem:()=>Vb,unprefixedNodeCoreModules:()=>ehe,unreachableCodeIsError:()=>Sge,unsetNodeChildren:()=>kY,unusedLabelIsError:()=>Tge,unwrapInnermostStatementOfLabel:()=>xQ,unwrapParenthesizedExpression:()=>Yge,updateErrorForNoInputFiles:()=>Kz,updateLanguageServiceSourceFile:()=>tne,updateMissingFilePathsWatch:()=>iee,updateResolutionField:()=>HN,updateSharedExtendedConfigFileWatcher:()=>TW,updateSourceFile:()=>BY,updateWatchingWildcardDirectories:()=>GM,usingSingleLineStringWriter:()=>eN,utf16EncodeAsString:()=>JI,validateLocaleAndSetLanguage:()=>OK,version:()=>ye,versionMajorMinor:()=>le,visitArray:()=>h3,visitCommaListElements:()=>LM,visitEachChild:()=>Gr,visitFunctionBody:()=>Md,visitIterationBody:()=>Rf,visitLexicalEnvironment:()=>NZ,visitNode:()=>dt,visitNodes:()=>dn,visitParameterList:()=>kl,walkUpBindingElementsAndPatterns:()=>MP,walkUpOuterExpressions:()=>tye,walkUpParenthesizedExpressions:()=>gg,walkUpParenthesizedTypes:()=>v5,walkUpParenthesizedTypesAndGetParentAndChild:()=>Ame,whitespaceOrMapCommentRegExp:()=>IZ,writeCommentRange:()=>yN,writeFile:()=>hJ,writeFileEnsuringDirectories:()=>YQ,zipWith:()=>ys});var HUt=!0,sYe;function GUt(){return sYe??(sYe=new F_(ye))}function oYe(e,t,n,i,s){let l=t?"DeprecationError: ":"DeprecationWarning: ";return l+=`'${e}' `,l+=i?`has been deprecated since v${i}`:"is deprecated",l+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",l+=s?` ${Nv(s,[e])}`:"",l}function KUt(e,t,n,i){let s=oYe(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function QUt(e,t,n,i){let s=!1;return()=>{HUt&&!s&&(I.log.warn(oYe(e,!1,t,n,i)),s=!0)}}function XUt(e,t={}){let n=typeof t.typeScriptVersion=="string"?new F_(t.typeScriptVersion):t.typeScriptVersion??GUt(),i=typeof t.errorAfter=="string"?new F_(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new F_(t.warnAfter):t.warnAfter,l=typeof t.since=="string"?new F_(t.since):t.since??s,p=t.error||i&&n.compareTo(i)>=0,g=!s||n.compareTo(s)>=0;return p?KUt(e,i,l,t.message):g?QUt(e,i,l,t.message):Ko}function YUt(e,t){return function(){return e(),t.apply(this,arguments)}}function ZUt(e,t){let n=XUt(t?.name??I.getFunctionName(e),t);return YUt(n,e)}function mie(e,t,n,i){if(Object.defineProperty(l,"name",{...Object.getOwnPropertyDescriptor(l,"name"),value:e}),i)for(let p of Object.keys(i)){let g=+p;!isNaN(g)&&ec(t,`${g}`)&&(t[g]=ZUt(t[g],{...i[g],name:e}))}let s=e$t(t,n);return l;function l(...p){let g=s(p),m=g!==void 0?t[g]:void 0;if(typeof m=="function")return m(...p);throw new TypeError("Invalid arguments")}}function e$t(e,t){return n=>{for(let i=0;ec(e,`${i}`)&&ec(t,`${i}`);i++){let s=t[i];if(s(n))return i}}}function cYe(e){return{overload:t=>({bind:n=>({finish:()=>mie(e,t,n),deprecate:i=>({finish:()=>mie(e,t,n,i)})})})}}var lYe={};w(lYe,{ActionInvalidate:()=>YW,ActionPackageInstalled:()=>ZW,ActionSet:()=>XW,ActionWatchTypingLocations:()=>cR,Arguments:()=>ute,AutoImportProviderProject:()=>Vwe,AuxiliaryProject:()=>Uwe,CharRangeSection:()=>yke,CloseFileWatcherEvent:()=>Eie,CommandNames:()=>JYe,ConfigFileDiagEvent:()=>Tie,ConfiguredProject:()=>Hwe,ConfiguredProjectLoadKind:()=>Zwe,CreateDirectoryWatcherEvent:()=>Pie,CreateFileWatcherEvent:()=>Cie,Errors:()=>W0,EventBeginInstallTypes:()=>cte,EventEndInstallTypes:()=>lte,EventInitializationFailed:()=>E1e,EventTypesRegistry:()=>ote,ExternalProject:()=>hie,GcTimer:()=>Awe,InferredProject:()=>Wwe,LargeFileReferencedEvent:()=>Sie,LineIndex:()=>dj,LineLeaf:()=>F$,LineNode:()=>NA,LogLevel:()=>Twe,Msg:()=>wwe,OpenFileInfoTelemetryEvent:()=>Gwe,Project:()=>iD,ProjectInfoTelemetryEvent:()=>kie,ProjectKind:()=>c8,ProjectLanguageServiceStateEvent:()=>wie,ProjectLoadingFinishEvent:()=>xie,ProjectLoadingStartEvent:()=>bie,ProjectService:()=>cke,ProjectsUpdatedInBackgroundEvent:()=>N$,ScriptInfo:()=>Rwe,ScriptVersionCache:()=>qie,Session:()=>KYe,TextStorage:()=>Mwe,ThrottledOperations:()=>Nwe,TypingsInstallerAdapter:()=>tZe,allFilesAreJsOrDts:()=>qwe,allRootFilesAreJsOrDts:()=>Bwe,asNormalizedPath:()=>_Ye,convertCompilerOptions:()=>A$,convertFormatOptions:()=>EA,convertScriptKindName:()=>Oie,convertTypeAcquisition:()=>Qwe,convertUserPreferences:()=>Xwe,convertWatchOptions:()=>fj,countEachFileTypes:()=>cj,createInstallTypingsRequest:()=>kwe,createModuleSpecifierCache:()=>pke,createNormalizedPathMap:()=>dYe,createPackageJsonCache:()=>fke,createSortedArray:()=>Owe,emptyArray:()=>Uu,findArgument:()=>_Je,formatDiagnosticToProtocol:()=>_j,formatMessage:()=>_ke,getBaseConfigFileName:()=>gie,getDetailWatchInfo:()=>Fie,getLocationInNewDocument:()=>hke,hasArgument:()=>fJe,hasNoTypeScriptSource:()=>Jwe,indent:()=>I3,isBackgroundProject:()=>uj,isConfigFile:()=>lke,isConfiguredProject:()=>V1,isDynamicFileName:()=>o8,isExternalProject:()=>lj,isInferredProject:()=>PA,isInferredProjectName:()=>Cwe,isProjectDeferredClose:()=>pj,makeAutoImportProviderProjectName:()=>Ewe,makeAuxiliaryProjectName:()=>Dwe,makeInferredProjectName:()=>Pwe,maxFileSize:()=>vie,maxProgramSizeForNonTsFiles:()=>yie,normalizedPathToPath:()=>CA,nowString:()=>dJe,nullCancellationToken:()=>LYe,nullTypingsInstaller:()=>I$,protocol:()=>Iwe,scriptInfoIsContainedByBackgroundProject:()=>jwe,scriptInfoIsContainedByDeferredClosedProject:()=>Lwe,stringifyIndented:()=>XS,toEvent:()=>dke,toNormalizedPath:()=>wc,tryConvertScriptKindName:()=>Die,typingsInstaller:()=>Swe,updateProjectIfDirty:()=>Gm});var Swe={};w(Swe,{TypingsInstaller:()=>n$t,getNpmCommandForInstallation:()=>pYe,installNpmPackages:()=>r$t,typingsName:()=>fYe});var t$t={isEnabled:()=>!1,writeLine:Ko};function uYe(e,t,n,i){try{let s=Yk(t,gi(e,"index.d.ts"),{moduleResolution:2},n);return s.resolvedModule&&s.resolvedModule.resolvedFileName}catch(s){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${s.message}`);return}}function r$t(e,t,n,i){let s=!1;for(let l=n.length;l>0;){let p=pYe(e,t,n,l);l=p.remaining,s=i(p.command)||s}return s}function pYe(e,t,n,i){let s=n.length-i,l,p=i;for(;l=`${e} install --ignore-scripts ${(p===n.length?n:n.slice(s,s+p)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(l.length<8e3);)p=p-Math.floor(p/2);return{command:l,remaining:i-p}}var n$t=class{constructor(e,t,n,i,s,l=t$t){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=i,this.throttleLimit=s,this.log=l,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,s)=>{t[s]=i});let n={kind:ote,typesRegistry:t};this.sendResponse(n);break}case"installPackage":{this.installPackage(e);break}default:I.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:cR,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${XS(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=Fx.discoverTypings(this.installTypingHost,this.log.isEnabled()?n=>this.log.writeLine(n):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:n,projectName:i,projectRootPath:s,id:l}=e,p=RI(Ei(t),g=>{if(this.installTypingHost.fileExists(gi(g,"package.json")))return g})||s;if(p)this.installWorker(-1,[n],p,g=>{let m=g?`Package ${n} installed.`:`There was an error installing ${n}.`,x={kind:ZW,projectName:i,id:l,success:g,message:m};this.sendResponse(x)});else{let g={kind:ZW,projectName:i,id:l,success:!1,message:"Could not determine a project root path."};this.sendResponse(g)}}initializeSafeList(){if(this.typesMapLocation){let e=Fx.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=Fx.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=gi(e,"package.json"),n=gi(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){let i=JSON.parse(this.installTypingHost.readFile(t)),s=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${XS(i)}`),this.log.writeLine(`Loaded content of '${n}':${XS(s)}`)),i.devDependencies&&s.dependencies)for(let l in i.devDependencies){if(!ec(s.dependencies,l))continue;let p=gu(l);if(!p)continue;let g=uYe(e,p,this.installTypingHost,this.log);if(!g){this.missingTypingsSet.add(p);continue}let m=this.packageNameToTypingLocation.get(p);if(m){if(m.typingLocation===g)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${p} from '${g}' conflicts with existing typing file '${m}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${p}' => '${g}'`);let x=As(s.dependencies,l),b=x&&x.version;if(!b)continue;let S={typingLocation:g,version:new F_(b)};this.packageNameToTypingLocation.set(p,S)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Bi(e,t=>{let n=XN(t);if(this.missingTypingsSet.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' is in missingTypingsSet - skipping...`);return}let i=Fx.validatePackageName(t);if(i!==Fx.NameValidationResult.Ok){this.missingTypingsSet.add(n),this.log.isEnabled()&&this.log.writeLine(Fx.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${n}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(n)&&Fx.isTypingUpToDate(this.packageNameToTypingLocation.get(n),this.typesRegistry.get(n))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' already has an up-to-date typing - skipping...`);return}return n})}ensurePackageDirectoryExists(e){let t=gi(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let s=this.filterTypings(i);if(s.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,n));return}this.ensurePackageDirectoryExists(t);let l=this.installRunCount;this.installRunCount++,this.sendResponse({kind:cte,eventId:l,typingsInstallerVersion:ye,projectName:e.projectName});let p=s.map(fYe);this.installTypingsAsync(l,p,t,g=>{try{if(!g){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(s)}`);for(let x of s)this.missingTypingsSet.add(x);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(p)}`);let m=[];for(let x of s){let b=uYe(t,x,this.installTypingHost,this.log);if(!b){this.missingTypingsSet.add(x);continue}let S=this.typesRegistry.get(x),P=new F_(S[`ts${le}`]||S[this.latestDistTag]),E={typingLocation:b,version:P};this.packageNameToTypingLocation.set(x,E),m.push(b)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(m)}`),this.sendResponse(this.createSetTypings(e,n.concat(m)))}finally{let m={kind:lte,eventId:l,projectName:e.projectName,packagesToInstall:p,installSuccess:g,typingsInstallerVersion:ye};this.sendResponse(m)}})}ensureDirectoryExists(e,t){let n=Ei(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let n=this.projectWatchers.get(e),i=new Set(t);!n||wv(i,s=>!n.has(s))||wv(n,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:cR,projectName:e,files:t})):this.sendResponse({kind:cR,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:XW}}installTypingsAsync(e,t,n,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;let e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function fYe(e){return`@types/${e}@ts${le}`}var Twe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Twe||{}),Uu=Owe(),wwe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(wwe||{});function kwe(e,t,n,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}var W0;(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function n(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=n;function i(s,l){throw new Error(`Project '${l.getProjectName()}' does not contain document '${s}'`)}e.ThrowProjectDoesNotContainDocument=i})(W0||(W0={}));function wc(e){return Zs(e)}function CA(e,t,n){let i=j_(e)?e:Qa(e,t);return n(i)}function _Ye(e){return e}function dYe(){let e=new Map;return{get(t){return e.get(t)},set(t,n){e.set(t,n)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function Cwe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Pwe(e){return`/dev/null/inferredProject${e}*`}function Ewe(e){return`/dev/null/autoImportProviderProject${e}*`}function Dwe(e){return`/dev/null/auxiliaryProject${e}*`}function Owe(){return[]}var Nwe=class Ylt{constructor(t,n){this.host=t,this.pendingTimeouts=new Map,this.logger=n.hasLevel(3)?n:void 0}schedule(t,n,i){let s=this.pendingTimeouts.get(t);s&&this.host.clearTimeout(s),this.pendingTimeouts.set(t,this.host.setTimeout(Ylt.run,n,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${s?", Cancelled earlier one":""}`)}cancel(t){let n=this.pendingTimeouts.get(t);return n?(this.host.clearTimeout(n),this.pendingTimeouts.delete(t)):!1}static run(t,n,i){n.pendingTimeouts.delete(t),n.logger&&n.logger.info(`Running: ${t}`),i()}},Awe=class Zlt{constructor(t,n,i){this.host=t,this.delay=n,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(Zlt.run,this.delay,this))}static run(t){t.timerId=void 0;let n=t.logger.hasLevel(2),i=n&&t.host.getMemoryUsage();if(t.host.gc(),n){let s=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${i}, after ${s}`)}}};function gie(e){let t=gu(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var Iwe={};w(Iwe,{ClassificationType:()=>dte,CommandTypes:()=>Fwe,CompletionTriggerKind:()=>fte,IndentStyle:()=>yYe,JsxEmit:()=>vYe,ModuleKind:()=>bYe,ModuleResolutionKind:()=>xYe,NewLineKind:()=>SYe,OrganizeImportsMode:()=>pte,PollingWatchKind:()=>hYe,ScriptTarget:()=>TYe,SemicolonPreference:()=>_te,WatchDirectoryKind:()=>gYe,WatchFileKind:()=>mYe});var Fwe=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(Fwe||{}),mYe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(mYe||{}),gYe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(gYe||{}),hYe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(hYe||{}),yYe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(yYe||{}),vYe=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(vYe||{}),bYe=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.NodeNext="nodenext",e.Preserve="preserve",e))(bYe||{}),xYe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(xYe||{}),SYe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(SYe||{}),TYe=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(TYe||{}),Mwe=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return I.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=UE(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===Hp.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Hp).getTime()),i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=eU.fromString(I.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let n=this.getLineMap(),i=n[e],s=e+1<n.length?n[e+1]:this.text.length;return Ul(i,s)}lineOffsetToPosition(e,t,n){let i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):nq(this.getLineMap(),e-1,t-1,this.text,n)}positionToLineOffset(e){let t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);let{line:n,character:i}=UO(this.getLineMap(),e);return{line:n+1,offset:i+1}}getFileTextAndSize(e){let t,n=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(n)||"":t;if(!Mk(this.info.fileName)){let s=this.host.getFileSize?this.host.getFileSize(n):i().length;if(s>vie)return I.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${s}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,s),{text:"",fileSize:s}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=qie.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=qie.fromString(I.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(I.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return I.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=FP(I.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:n=>e.getAbsolutePositionAndLineText(n+1).lineText};let t=this.getLineMap();return FZ(this.text,t)}};function o8(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&gu(e)[0]==="^"||e.includes(":^")&&!e.includes(jc)}var Rwe=class{constructor(e,t,n,i,s,l){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=i,this.path=s,this.containingProjects=[],this.isDynamic=o8(t),this.textStorage=new Mwe(e,this,l),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||WJ(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){I.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return Ta(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:wP(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){V1(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!PA(e)&&e.addMissingFileRoot(t.fileName)}wa(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return W0.ThrowNoProject();case 1:return pj(this.containingProjects[0])||uj(this.containingProjects[0])?W0.ThrowNoProject():this.containingProjects[0];default:let e,t,n,i;for(let s=0;s<this.containingProjects.length;s++){let l=this.containingProjects[s];if(V1(l)){if(l.deferredClose)continue;if(!l.isSourceOfProjectReferenceRedirect(this.fileName)){if(i===void 0&&s!==this.containingProjects.length-1&&(i=l.projectService.findDefaultConfiguredProject(this)||!1),i===l)return l;n||(n=l)}e||(e=l)}else{if(lj(l))return l;!t&&PA(l)&&(t=l)}}return(i||n||e||t)??W0.ThrowNoProject()}}registerFileUpdate(){for(let e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=tU(this.host.newLine),y1(this.formatSettings,e))),t&&(this.preferences||(this.preferences=Vm),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,UE(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){I.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return this.textStorage.reloadWithFileText(e)?(this.markContainingProjectsAsDirty(),!0):!1}editContent(e,t,n){this.textStorage.edit(e,t,n),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(let e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return this.deferredDelete||!Ge(this.containingProjects,e=>!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){i$t(e);let t=this.textStorage.positionToLineOffset(e);return a$t(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ua(this.sourceMapFilePath)&&(ym(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function i$t(e){I.assert(typeof e=="number",`Expected position ${e} to be a number.`),I.assert(e>=0,"Expected position to be non-negative.")}function a$t(e){I.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),I.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),I.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),I.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}function jwe(e){return Pt(e.containingProjects,uj)}function Lwe(e){return Pt(e.containingProjects,pj)}var c8=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(c8||{});function cj(e,t=!1){let n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let s=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:n.js+=1,n.jsSize+=s;break;case 2:n.jsx+=1,n.jsxSize+=s;break;case 3:Wu(i.fileName)?(n.dts+=1,n.dtsSize+=s):(n.ts+=1,n.tsSize+=s);break;case 4:n.tsx+=1,n.tsxSize+=s;break;case 7:n.deferred+=1,n.deferredSize+=s;break}}return n}function s$t(e){let t=cj(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function Bwe(e){let t=cj(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function qwe(e){let t=cj(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Jwe(e){return!e.some(t=>il(t,".ts")&&!Wu(t)||il(t,".tsx"))}function zwe(e){return e.generatedFilePath!==void 0}function wYe(e,t){if(e===t||(e||Uu).length===0&&(t||Uu).length===0)return!0;let n=new Map,i=0;for(let s of e)n.get(s)!==!0&&(n.set(s,!0),i++);for(let s of t){let l=n.get(s);if(l===void 0)return!1;l===!0&&(n.set(s,!1),i--)}return i===0}function o$t(e,t){return e.enable!==t.enable||!wYe(e.include,t.include)||!wYe(e.exclude,t.exclude)}function c$t(e,t){return bx(e)!==bx(t)}function l$t(e,t){return e===t?!1:!Rp(e,t)}var iD=class eut{constructor(t,n,i,s,l,p,g,m,x,b){switch(this.projectKind=n,this.projectService=i,this.compilerOptions=p,this.compileOnSaveEnabled=g,this.watchOptions=m,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Uu,this.moduleSpecifierCache=pke(this),this.createHash=Ra(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=Fx.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,i.logger.info(`Creating ${c8[n]}Project: ${t}, currentDirectory: ${b}`),this.projectName=t,this.directoryStructureHost=x,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(b),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new gSe(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||bx(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=n$(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:I.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let S=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=P=>this.writeLog(P):S.trace&&(this.trace=P=>S.trace(P)),this.realpath=Ra(S,S.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||S.preferNonRecursiveWatch,this.resolutionCache=Oee(this,this.currentDirectory,!0),this.languageService=hSe(this,this.projectService.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),uj(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Gm(this),qwe(this)}isJsOnlyProject(){return Gm(this),s$t(this)}static resolveModule(t,n,i,s){return eut.importServicePluginSync({name:t},[n],i,s).resolvedModule}static importServicePluginSync(t,n,i,s){I.assertIsDefined(i.require);let l,p;for(let g of n){let m=_p(i.resolvePath(gi(g,"node_modules")));s(`Loading ${t.name} from ${g} (resolved to ${m})`);let x=i.require(m,t.name);if(!x.error){p=x.module;break}let b=x.error.stack||x.error.message||JSON.stringify(x.error);(l??(l=[])).push(`Failed to load module '${t.name}' from ${m}: ${b}`)}return{pluginConfigEntry:t,resolvedModule:p,errorLogs:l}}static async importServicePluginAsync(t,n,i,s){I.assertIsDefined(i.importPlugin);let l,p;for(let g of n){let m=gi(g,"node_modules");s(`Dynamically importing ${t.name} from ${g} (resolved to ${m})`);let x;try{x=await i.importPlugin(m,t.name)}catch(S){x={module:void 0,error:S}}if(!x.error){p=x.module;break}let b=x.error.stack||x.error.message||JSON.stringify(x.error);(l??(l=[])).push(`Failed to dynamically import module '${t.name}' from ${m}: ${b}`)}return{pluginConfigEntry:t,resolvedModule:p,errorLogs:l}}isKnownTypesPackageName(t){return this.projectService.typingsInstaller.isKnownTypesPackageName(t)}installPackage(t){return this.projectService.typingsInstaller.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=kX(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return ce;let t;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(t||(t=[])).push(n.fileName)}),ti(t,this.typingFiles)||ce}getOrCreateScriptInfoAndAttachToProject(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);if(n){let i=this.rootFilesMap.get(n.path);i&&i.info!==n&&(i.info=n),n.attachToProject(this)}return n}getScriptKind(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&n.scriptKind}getScriptVersion(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);return n&&n.getLatestVersion()}getScriptSnapshot(t){let n=this.getOrCreateScriptInfoAndAttachToProject(t);if(n)return n.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=Ei(Zs(this.projectService.getExecutingFilePath()));return gi(t,xF(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,n,i,s,l){return this.directoryStructureHost.readDirectory(t,n,i,s,l)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,n){return this.projectService.host.writeFile(t,n)}fileExists(t){let n=this.toPath(t);return!!this.projectService.getScriptInfoForPath(n)||!this.isWatchedMissingFile(n)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,n,i,s,l,p){return this.resolutionCache.resolveModuleNameLiterals(t,n,i,s,l,p)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,n,i,s,l,p){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,n,i,s,l,p)}resolveLibrary(t,n,i,s){return this.resolutionCache.resolveLibrary(t,n,i,s)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return Ec(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),ep.FailedLookupLocations,this)}watchAffectingFileLocation(t,n){return this.projectService.watchFactory.watchFile(t,n,2e3,this.projectService.getWatchOptions(this),ep.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),ep.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Cn(this.projectErrors,t=>!t.file)||Uu}getAllProjectErrors(){return this.projectErrors||Uu}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Gm(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,n){return this.projectService.getDocumentPositionMapper(this,t,n)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Gm(this),this.builderState=Qg.create(this.program,this.builderState,!0),Bi(Qg.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),n=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(n.path))?n.fileName:void 0)):[]}emitFile(t,n){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Uu};let{emitSkipped:i,diagnostics:s,outputFiles:l}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let p of l){let g=Qa(p.name,this.currentDirectory);n(g,p.text,p.writeByteOrderMark)}if(this.builderState&&y_(this.compilerOptions)){let p=l.filter(g=>Wu(g.name));if(p.length===1){let g=this.program.getSourceFile(t.fileName),m=this.projectService.host.createHash?this.projectService.host.createHash(p[0].text):mv(p[0].text);Qg.updateSignatureOfFile(this.builderState,m,g.resolvedPath)}}}return{emitSkipped:i,diagnostics:s}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(I.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t.enable||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return ff(li(this.plugins,n=>{if(typeof n.module.getExternalFiles=="function")try{return n.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let n=this.program.getCompilerOptions();return t===n.configFilePath?n.configFile:this.getSourceFile(t)}close(){var t;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),Ge(this.externalFiles,n=>this.detachScriptInfoIfNotRoot(n)),this.rootFilesMap.forEach(n=>{var i;return(i=n.info)==null?void 0:i.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(n=>{n.projects.delete(this),n.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(h_(this.missingFilesMap,hg),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let n=this.projectService.getScriptInfo(t);n&&!this.isRoot(n)&&n.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var t;return!!((t=this.rootFilesMap)!=null&&t.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Ka(pf(this.rootFilesMap.values(),t=>{var n;return(n=t.info)==null?void 0:n.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Ka(pf(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?Dt(this.program.getSourceFiles(),t=>{let n=this.projectService.getScriptInfoForPath(t.resolvedPath);return I.assert(!!n,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),n}):this.getRootScriptInfos()}getExcludedFiles(){return Uu}getFileNames(t,n){if(!this.program)return[];if(!this.languageServiceEnabled){let s=this.getRootFiles();if(this.compilerOptions){let l=ySe(this.compilerOptions);l&&(s||(s=[])).push(l)}return s}let i=[];for(let s of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(s)||i.push(s.fileName);if(!n){let s=this.program.getCompilerOptions().configFile;if(s&&(i.push(s.fileName),s.extendedSourceFiles))for(let l of s.extendedSourceFiles)i.push(l)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(n=>({fileName:n,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(n)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let n=this.program.getCompilerOptions().configFile;if(n){if(t===n.fileName)return!0;if(n.extendedSourceFiles){for(let i of n.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let n=this.program.getSourceFileByPath(t.path);return!!n&&n.resolvedPath===t.path}containsFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!n)?this.containsScriptInfo(i):!1}isRoot(t){var n,i;return((i=(n=this.rootFilesMap)==null?void 0:n.get(t.path))==null?void 0:i.info)===t}addRoot(t,n){I.assert(!this.isRoot(t)),this.rootFilesMap.set(t.path,{fileName:n||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let n=this.projectService.toPath(t);this.rootFilesMap.set(n,{fileName:t}),this.markAsDirty()}removeFile(t,n,i){this.isRoot(t)&&this.removeRoot(t),n?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var t;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(t=this.autoImportProviderHost)==null||t.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(t,n,i,s){(!s||t.resolvedPath===t.path&&s.resolvedPath!==t.path)&&this.detachScriptInfoFromProject(t.fileName,i)}updateFromProject(){Gm(this)}updateGraph(){var t,n;(t=Fn)==null||t.push(Fn.Phase.Session,"updateGraph",{name:this.projectName,kind:c8[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let i=this.updateGraphWorker(),s=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let l=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Uu;for(let g of l)this.cachedUnresolvedImportsPerFile.delete(g);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((i||l.length)&&(this.lastCachedUnresolvedImportsList=u$t(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(s)):this.lastCachedUnresolvedImportsList=void 0;let p=this.projectProgramVersion===0&&i;return i&&this.projectProgramVersion++,s&&this.markAutoImportProviderAsDirty(),p&&this.getPackageJsonAutoImportProvider(),(n=Fn)==null||n.pop(),!i}enqueueInstallTypingsForProject(t){let n=this.getTypeAcquisition();if(!n||!n.enable||this.projectService.typingsInstaller===I$)return;let i=this.typingsCache;(t||!i||o$t(n,i.typeAcquisition)||c$t(this.getCompilationSettings(),i.compilerOptions)||l$t(this.lastCachedUnresolvedImportsList,i.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:n,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,n,this.lastCachedUnresolvedImportsList))}updateTypingFiles(t,n,i,s){this.typingsCache={compilerOptions:t,typeAcquisition:n,unresolvedImports:i};let l=!n||!n.enable?Uu:ff(s);o2(l,this.typingFiles,uk(!this.useCaseSensitiveFileNames()),Ko,p=>this.detachScriptInfoFromProject(p))&&(this.typingFiles=l,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&h_(this.typingWatchers,hg),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:YW})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(s,l)=>{let p=this.toPath(s);if(n.delete(p),!this.typingWatchers.has(p)){let g=l==="FileWatcher"?ep.TypingInstallerLocationFile:ep.TypingInstallerLocationDirectory;this.typingWatchers.set(p,rR(p)?l==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),g,this):this.projectService.watchFactory.watchDirectory(s,m=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!il(m,".json"))return this.writeLog("Ignoring files that are not *.json");if(S0(m,gi(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),g,this):(this.writeLog(`Skipping watcher creation at ${s}:: ${Fie(g,this)}`),sA))}};for(let s of t){let l=gu(s);if(l==="package.json"||l==="bower.json"){i(s,"FileWatcher");continue}if(am(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){let p=s.indexOf(jc,this.currentDirectory.length+1);i(p!==-1?s.substr(0,p):s,"DirectoryWatcher");continue}if(am(this.projectService.typingsInstaller.globalTypingsCacheLocation,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(s,"DirectoryWatcher")}n.forEach((s,l)=>{s.close(),this.typingWatchers.delete(l)})}getCurrentProgram(){return this.program}removeExistingTypings(t){if(!t.length)return t;let n=eW(this.getCompilerOptions(),this);return Cn(t,i=>!n.includes(i))}updateGraphWorker(){var t,n;let i=this.languageService.getCurrentProgram();I.assert(i===this.program),I.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let s=xc(),{hasInvalidatedResolutions:l,hasInvalidatedLibResolutions:p}=this.resolutionCache.createHasInvalidatedResolutions(cd,cd);this.hasInvalidatedResolutions=l,this.hasInvalidatedLibResolutions=p,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=Fn)==null||t.push(Fn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(n=Fn)==null||n.pop(),I.assert(i===void 0||this.program!==void 0);let g=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(g=!0,this.rootFilesMap.forEach((b,S)=>{var P;let E=this.program.getSourceFileByPath(S),N=b.info;!E||((P=b.info)==null?void 0:P.path)===E.resolvedPath||(b.info=this.projectService.getScriptInfo(E.fileName),I.assert(b.info.isAttached(this)),N?.detachFromProject(this))}),iee(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(b,S)=>this.addMissingFileWatcher(b,S)),this.generatedFilesMap){let b=this.compilerOptions.outFile;zwe(this.generatedFilesMap)?(!b||!this.isValidGeneratedFileWatcher(yf(b)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():b?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((S,P)=>{let E=this.program.getSourceFileByPath(P);(!E||E.resolvedPath!==P||!this.isValidGeneratedFileWatcher(fJ(E.fileName,this.compilerOptions,this.program),S))&&(ym(S),this.generatedFilesMap.delete(P))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&wv(this.changedFilesForExportMapCache,b=>{let S=i.getSourceFileByPath(b),P=this.program.getSourceFileByPath(b);return!S||!P?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(S,P,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let m=this.externalFiles||Uu;this.externalFiles=this.getExternalFiles(),o2(this.externalFiles,m,uk(!this.useCaseSensitiveFileNames()),b=>{let S=this.projectService.getOrCreateScriptInfoNotOpenedByClient(b,this.currentDirectory,this.directoryStructureHost,!1);S?.attachToProject(this)},b=>this.detachScriptInfoFromProject(b));let x=xc()-s;return this.sendPerformanceEvent("UpdateGraph",x),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${g}${this.program?` structureIsReused:: ${LO[this.program.structureIsReused]}`:""} Elapsed: ${x}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),g}sendPerformanceEvent(t,n){this.projectService.sendPerformanceEvent(t,n)}detachScriptInfoFromProject(t,n){let i=this.projectService.getScriptInfo(t);i&&(i.detachFromProject(this),n||this.resolutionCache.removeResolutionsOfFile(i.path))}addMissingFileWatcher(t,n){var i;if(V1(this)){let l=this.projectService.configFileExistenceInfoCache.get(t);if((i=l?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return sA}let s=this.projectService.watchFactory.watchFile(Qa(n,this.currentDirectory),(l,p)=>{V1(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(l,t,p),p===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),s.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),ep.MissingFile,this);return s}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,n){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(n);if(this.generatedFilesMap){if(zwe(this.generatedFilesMap)){I.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),ep.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,n){return this.toPath(t)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(zwe(this.generatedFilesMap)?ym(this.generatedFilesMap):h_(this.generatedFilesMap,ym),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&!n.isAttached(this)?W0.ThrowProjectDoesNotContainDocument(t,this):n}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,n,i){if(this.initialLoadPending)return` Files (0) InitialLoadPending
|
|
`;if(!this.program)return` Files (0) NoProgram
|
|
`;let s=this.program.getSourceFiles(),l=` Files (${s.length})
|
|
`;if(t){for(let p of s)l+=` ${p.fileName}${i?` ${p.version} ${JSON.stringify(p.text)}`:""}
|
|
`;n&&(l+=`
|
|
|
|
`,Mee(this.program,p=>l+=` ${p}
|
|
`))}return l}print(t,n,i){var s;this.writeLog(`Project '${this.projectName}' (${c8[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(s=this.noDtsResolutionProject)==null||s.print(!1,!1,!1)}setCompilerOptions(t){var n;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(n=this.noDtsResolutionProject)==null||n.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Cq(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,n){var i,s;let l=n?m=>Ka(m.entries(),([x,b])=>({fileName:x,isSourceOfProjectReferenceRedirect:b})):m=>Ka(m.keys());this.initialLoadPending||Gm(this);let p={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:PA(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},g=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!g)return{info:p,projectErrors:this.getGlobalProjectErrors()};let m=this.lastReportedFileNames,x=((i=this.externalFiles)==null?void 0:i.map(F=>({fileName:wc(F),isSourceOfProjectReferenceRedirect:!1})))||Uu,b=ck(this.getFileNamesWithRedirectInfo(!!n).concat(x),F=>F.fileName,F=>F.isSourceOfProjectReferenceRedirect),S=new Map,P=new Map,E=g?Ka(g.keys()):[],N=[];return Lu(b,(F,M)=>{m.has(M)?n&&F!==m.get(M)&&N.push({fileName:M,isSourceOfProjectReferenceRedirect:F}):S.set(M,F)}),Lu(m,(F,M)=>{b.has(M)||P.set(M,F)}),this.lastReportedFileNames=b,this.lastReportedVersion=this.projectProgramVersion,{info:p,changes:{added:l(S),removed:l(P),updated:n?E.map(F=>({fileName:F,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(F)})):E,updatedRedirects:n?N:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let m=this.getFileNamesWithRedirectInfo(!!n),x=((s=this.externalFiles)==null?void 0:s.map(S=>({fileName:wc(S),isSourceOfProjectReferenceRedirect:!1})))||Uu,b=m.concat(x);return this.lastReportedFileNames=ck(b,S=>S.fileName,S=>S.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:p,files:n?b:b.map(S=>S.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,gi(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(l=>l.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,n){this.projectService.requestEnablePlugin(this,t,n)}enableProxy(t,n){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${n.name} because it did not expose a proper factory function`);return}let i={config:n,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:aYe}),l=s.create(i);for(let p of Object.keys(this.languageService))p in l||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${p} in created LS. Patching.`),l[p]=this.languageService[p]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=l,this.plugins.push({name:n.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,n){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(n)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,n){return this.projectService.serverMode!==0?Uu:this.projectService.getPackageJsonsVisibleToFile(t,this,n)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t,this)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(gi(this.currentDirectory,E3),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=gre(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||CR(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,n;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(n=this.projectService.host.trace)==null?void 0:n.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,n,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Gm(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let s=this.includePackageJsonAutoImports();if(s){(t=Fn)==null||t.push(Fn.Phase.Session,"getPackageJsonAutoImportProvider");let l=xc();if(this.autoImportProviderHost=Vwe.create(s,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Gm(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",xc()-l),(n=Fn)==null||n.pop(),this.autoImportProviderHost.getCurrentProgram();(i=Fn)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Lu(this.projectService.openFiles,(t,n)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(n))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return I.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??(this.noDtsResolutionProject=new Uwe(this)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}runWithTemporaryFileUpdate(t,n,i){var s,l,p,g;let m=this.program,x=I.checkDefined((s=this.program)==null?void 0:s.getSourceFile(t),"Expected file to be part of program"),b=I.checkDefined(x.getFullText());(l=this.getScriptInfo(t))==null||l.editContent(0,b.length,n),this.updateGraph();try{i(this.program,m,(p=this.program)==null?void 0:p.getSourceFile(t))}finally{(g=this.getScriptInfo(t))==null||g.editContent(0,n.length,b)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ce,lib:ce,noLib:!0}}};function u$t(e,t){var n,i;let s=e.getSourceFiles();(n=Fn)==null||n.push(Fn.Phase.Session,"getUnresolvedImports",{count:s.length});let l=e.getTypeChecker().getAmbientModules().map(g=>qm(g.getName())),p=hP(li(s,g=>p$t(e,g,l,t)));return(i=Fn)==null||i.pop(),p}function p$t(e,t,n,i){return A_(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:l},p)=>{(!l||!A4(l.extension))&&!Hu(p)&&!n.some(g=>g===p)&&(s=Zr(s,iW(p).packageName))},t),s||Uu})}var Wwe=class extends iD{constructor(e,t,n,i,s,l){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=i&&e.toCanonicalFileName(i),!i&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=Ite(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){I.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&sn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ge(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Bwe(this),include:ce,exclude:ce}}},Uwe=class extends iD{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},$we=class mOe extends iD{constructor(t,n,i){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,!1,void 0,i,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=n,this.useSourceOfProjectReferenceRedirect=Ra(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Ra(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,n,i,s){var l,p;if(!t)return ce;let g=n.getCurrentProgram();if(!g)return ce;let m=xc(),x,b,S=gi(n.currentDirectory,E3),P=n.getPackageJsonsForAutoImport(gi(n.currentDirectory,S));for(let H of P)(l=H.dependencies)==null||l.forEach((X,ne)=>L(ne)),(p=H.peerDependencies)==null||p.forEach((X,ne)=>L(ne));let E=0;if(x){let H=n.getSymlinkCache();for(let X of Ka(x.keys())){if(t===2&&E>=this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),ce;let ne=lZ(X,n.currentDirectory,s,i,g.getModuleResolutionCache());if(ne){let Y=W(ne,g,H);if(Y){E+=M(Y);continue}}if(!Ge([n.currentDirectory,n.getGlobalTypingsCacheLocation()],Y=>{if(Y){let Ee=lZ(`@types/${X}`,Y,s,i,g.getModuleResolutionCache());if(Ee){let fe=W(Ee,g,H);return E+=M(fe),!0}}})&&ne&&s.allowJs&&s.maxNodeModuleJsDepth){let Y=W(ne,g,H,!0);E+=M(Y)}}}let N=g.getResolvedProjectReferences(),F=0;return N?.length&&n.projectService.getHostPreferences().includeCompletionsForModuleExports&&N.forEach(H=>{if(H?.commandLine.options.outFile)F+=M(z([I0(H.commandLine.options.outFile,".d.ts")]));else if(H){let X=Cu(()=>rC(H.commandLine,!n.useCaseSensitiveFileNames()));F+=M(z(Bi(H.commandLine.fileNames,ne=>!Wu(ne)&&!il(ne,".json")&&!g.getSourceFile(ne)?tA(ne,H.commandLine,!n.useCaseSensitiveFileNames(),X):void 0)))}}),b?.size&&n.log(`AutoImportProviderProject: found ${b.size} root files in ${E} dependencies ${F} referenced projects in ${xc()-m} ms`),b?Ka(b.values()):ce;function M(H){return H?.length?(b??(b=new Set),H.forEach(X=>b.add(X)),1):0}function L(H){La(H,"@types/")||(x||(x=new Set)).add(H)}function W(H,X,ne,ae){var Y;let Ee=mZ(H,s,i,X.getModuleResolutionCache(),ae);if(Ee){let fe=(Y=i.realpath)==null?void 0:Y.call(i,H.packageDirectory),te=fe?n.toPath(fe):void 0,de=te&&te!==n.toPath(H.packageDirectory);return de&&ne.setSymlinkedDirectory(H.packageDirectory,{real:ju(fe),realPath:ju(te)}),z(Ee,de?me=>me.replace(H.packageDirectory,fe):void 0)}}function z(H,X){return Bi(H,ne=>{let ae=X?X(ne):ne;if(!g.getSourceFile(ae)&&!(X&&g.getSourceFile(ne)))return ae})}}static create(t,n,i){if(t===0)return;let s={...n.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,n,i,s);if(l.length)return new mOe(n,l,s)}isEmpty(){return!Pt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=mOe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let n=this.getCurrentProgram(),i=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||ce}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}};$we.maxDependencies=10,$we.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ce,lib:ce,noLib:!0};var Vwe=$we,Hwe=class extends iD{constructor(e,t,n,i,s){super(e,1,n,!1,void 0,{},!1,void 0,i,Ei(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=s}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=wc(e),n=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(n);return i||this.projectService.configFileExistenceInfoCache.set(n,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(wc(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;let e=this.dirty;this.initialLoadPending=!1;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let n;switch(t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=I.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,i),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||n&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){I.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let s=Ei(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${s} to search paths`),i.unshift(s)}if(e.plugins)for(let s of e.plugins)this.enablePlugin(s,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Cn(this.projectErrors,e=>!e.file)||Uu}getAllProjectErrors(){return this.projectErrors||Uu}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return f3(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,Kz(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,NM(e.raw))}},hie=class extends iD{constructor(e,t,n,i,s,l,p){super(e,2,t,!0,i,n,s,p,t.host,Ei(l||_p(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function PA(e){return e.projectKind===0}function V1(e){return e.projectKind===1}function lj(e){return e.projectKind===2}function uj(e){return e.projectKind===3||e.projectKind===4}function pj(e){return V1(e)&&!!e.deferredClose}var yie=20*1024*1024,vie=4*1024*1024,N$="projectsUpdatedInBackground",bie="projectLoadingStart",xie="projectLoadingFinish",Sie="largeFileReferenced",Tie="configFileDiag",wie="projectLanguageServiceState",kie="projectInfo",Gwe="openFileInfo",Cie="createFileWatcher",Pie="createDirectoryWatcher",Eie="closeFileWatcher",kYe="*ensureProjectForOpenFiles*";function CYe(e){let t=new Map;for(let n of e)if(typeof n.type=="object"){let i=n.type;i.forEach(s=>{I.assert(typeof s=="number")}),t.set(n.name,i)}return t}var f$t=CYe(xg),_$t=CYe(FE),d$t=new Map(Object.entries({none:0,block:1,smart:2})),Kwe={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function EA(e){return Ua(e.indentStyle)&&(e.indentStyle=d$t.get(e.indentStyle.toLowerCase()),I.assert(e.indentStyle!==void 0)),e}function A$(e){return f$t.forEach((t,n)=>{let i=e[n];Ua(i)&&(e[n]=t.get(i.toLowerCase()))}),e}function fj(e,t){let n,i;return FE.forEach(s=>{let l=e[s.name];if(l===void 0)return;let p=_$t.get(s.name);(n||(n={}))[s.name]=p?Ua(l)?p.get(l.toLowerCase()):l:Xk(s,l,t||"",i||(i=[]))}),n&&{watchOptions:n,errors:i}}function Qwe(e){let t;return Bz.forEach(n=>{let i=e[n.name];i!==void 0&&((t||(t={}))[n.name]=i)}),t}function Die(e){return Ua(e)?Oie(e):e}function Oie(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Xwe(e){let{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var Nie={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){let i=NP(e);i&&Pt(t,s=>s.extension===i?(n=s.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>Pt(t,n=>n.isMixedContent&&il(e,n.extension))},Aie={getFileName:e=>e.fileName,getScriptKind:e=>Die(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function PYe(e,t){for(let n of t)if(n.getProjectName()===e)return n}var I$={isKnownTypesPackageName:cd,installPackage:zs,enqueueInstallTypingsRequest:Ko,attach:Ko,onProjectClosed:Ko,globalTypingsCacheLocation:void 0},Ywe={close:Ko};function EYe(e,t){if(!t)return;let n=t.get(e.path);if(n!==void 0)return Iie(e)?n&&!Ua(n)?n.get(e.fileName):void 0:Ua(n)||!n?n:n.get(!1)}function DYe(e){return!!e.containingProjects}function Iie(e){return!!e.configFileInfo}var Zwe=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(Zwe||{});function OYe(e){return e-1}function NYe(e,t,n,i,s,l,p,g,m){for(var x;;){if(t.parsedCommandLine&&(g&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;let b=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!g},i<=3);if(!b)return;let S=t.projectService.findCreateOrReloadConfiguredProject(b,i,s,l,g?void 0:e.fileName,p,g,m);if(!S)return;!S.project.parsedCommandLine&&((x=t.parsedCommandLine)!=null&&x.options.composite)&&S.project.setPotentialProjectReference(t.canonicalConfigFilePath);let P=n(S);if(P)return P;t=S.project}}function AYe(e,t,n,i,s,l,p,g){let m=t.options.disableReferencedProjectLoad?0:i,x;return Ge(t.projectReferences,b=>{var S;let P=wc(qE(b)),E=e.projectService.toCanonicalFileName(P),N=g?.get(E);if(N!==void 0&&N>=m)return;let F=e.projectService.configFileExistenceInfoCache.get(E),M=m===0?F?.exists||(S=e.resolvedChildConfigs)!=null&&S.has(E)?F.config.parsedCommandLine:void 0:e.getParsedCommandLine(P);if(M&&m!==i&&m>2&&(M=e.getParsedCommandLine(P)),!M)return;let L=e.projectService.findConfiguredProjectByProjectName(P,l);if(!(m===2&&!F&&!L)){switch(m){case 6:L&&L.projectService.reloadConfiguredProjectOptimized(L,s,p);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(E);case 2:case 0:if(L||m!==0){let W=n(F??e.projectService.configFileExistenceInfoCache.get(E),L,P,s,e,E);if(W)return W}break;default:I.assertNever(m)}(g??(g=new Map)).set(E,m),(x??(x=[])).push(M)}})||Ge(x,b=>b.projectReferences&&AYe(e,b,n,m,s,l,p,g))}function eke(e,t,n,i,s){let l=!1,p;switch(t){case 2:case 3:ike(e)&&(p=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(p=nke(e),p)break;case 5:l=g$t(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,i,s),p=nke(e),p)break;case 7:l=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,i,s);break;case 0:case 1:break;default:I.assertNever(t)}return{project:e,sentConfigFileDiag:l,configFileExistenceInfo:p,reason:i}}function IYe(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&wv(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&wv(e.resolvedChildConfigs,t)):void 0}function m$t(e,t,n,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?IYe(e,i):Ge(e.getProjectReferences(),n)}function tke(e,t,n){let i=n&&e.projectService.configuredProjects.get(n);return i&&t(i)}function FYe(e,t){return m$t(e,n=>tke(e,t,n.sourceFile.path),n=>tke(e,t,e.toPath(qE(n))),n=>tke(e,t,n))}function Fie(e,t){return`${Ua(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function rke(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Gm(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function MYe(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;let i=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return i===2;let s=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,s}function g$t(e,t){if(t){if(MYe(e,t,!1))return!0}else Gm(e);return!1}function nke(e){let t=wc(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),i=n.config.parsedCommandLine;if(e.parsedCommandLine=i,e.resolvedChildConfigs=void 0,e.updateReferences(i.projectReferences),ike(e))return n}function ike(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!aZ(e.parsedCommandLine))}function h$t(e){return ike(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function y$t(e){return`Creating possible configured project for ${e.fileName} to open`}function Mie(e){return`User requested reload projects: ${e}`}function ake(e){V1(e)&&(e.projectOptions=!0)}function ske(e){let t=1;return()=>e(t++)}function oke(){return{idToCallbacks:new Map,pathToId:new Map}}function RYe(e,t){return!!t&&!!e.eventHandler&&!!e.session}function v$t(e,t){if(!RYe(e,t))return;let n=oke(),i=oke(),s=oke(),l=1;return e.session.addProtocolHandler("watchChange",E=>(x(E.arguments),{responseRequired:!1})),{watchFile:p,watchDirectory:g,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function p(E,N){return m(n,E,N,F=>({eventName:Cie,data:{id:F,path:E}}))}function g(E,N,F){return m(F?s:i,E,N,M=>({eventName:Pie,data:{id:M,path:E,recursive:!!F,ignoreUpdate:E.endsWith("/node_modules")?void 0:!0}}))}function m({pathToId:E,idToCallbacks:N},F,M,L){let W=e.toPath(F),z=E.get(W);z||E.set(W,z=l++);let H=N.get(z);return H||(N.set(z,H=new Set),e.eventHandler(L(z))),H.add(M),{close(){let X=N.get(z);X?.delete(M)&&(X.size||(N.delete(z),E.delete(W),e.eventHandler({eventName:Eie,data:{id:z}})))}}}function x(E){cs(E)?E.forEach(b):b(E)}function b({id:E,created:N,deleted:F,updated:M}){S(E,N,0),S(E,F,2),S(E,M,1)}function S(E,N,F){N?.length&&(P(n,E,N,(M,L)=>M(L,F)),P(i,E,N,(M,L)=>M(L)),P(s,E,N,(M,L)=>M(L)))}function P(E,N,F,M){var L;(L=E.idToCallbacks.get(N))==null||L.forEach(W=>{F.forEach(z=>M(W,_p(z)))})}}var jYe=class gOe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=ske(Pwe),this.newAutoImportProviderProjectName=ske(Ewe),this.newAuxiliaryProjectName=ske(Dwe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Kwe,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=Ko,this.verifyDocumentRegistry=Ko,this.verifyProgram=Ko,this.onProjectCreation=Ko;var n;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||I$,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Uu,this.pluginProbeLocations=t.pluginProbeLocations||Uu,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?gi(Ei(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Zl()),this.currentDirectory=wc(this.host.getCurrentDirectory()),this.toCanonicalFileName=Xu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?ju(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Nwe(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${Ei(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:tU(this.host.newLine),preferences:Vm,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=xre(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,s=i!==0?l=>this.logger.info(l):Ko;this.packageJsonCache=fke(this),this.watchFactory=this.serverMode!==0?{watchFile:N3,watchDirectory:N3}:aee(v$t(this,t.canUseWatchEvents)||this.host,i,s,Fie),this.canUseWatchEvents=RYe(this,t.canUseWatchEvents),(n=t.incrementalVerifier)==null||n.call(t,this)}toPath(t){return Ec(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return Qa(t,this.host.getCurrentDirectory())}setDocument(t,n,i){let s=I.checkDefined(this.getScriptInfoForPath(n));s.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,n){let i=this.getScriptInfoForPath(n);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,n){if(!this.eventHandler)return;let i={eventName:wie,data:{project:t,languageServiceEnabled:n}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let n=JSON.parse(t);for(let i of Object.keys(n.typesMap))n.typesMap[i].match=new RegExp(n.typesMap[i].match,"i");this.safelist=n.typesMap;for(let i in n.simpleMap)ec(n.simpleMap,i)&&this.legacySafelist.set(i,n.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=Kwe,this.legacySafelist.clear()}}updateTypingsForProject(t){let n=this.findProject(t.projectName);if(n)switch(t.kind){case XW:n.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case YW:n.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(t){var n;(n=this.findProject(t.projectName))==null||n.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(kYe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(pj(t)||(t.markAsDirty(),uj(t)))return;let n=t.getProjectName();this.pendingProjectUpdates.set(n,t),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&Gm(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:N$,data:{openFiles:Ka(this.openFiles.keys(),n=>this.getScriptInfoForPath(n).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,n){if(!this.eventHandler)return;let i={eventName:Sie,data:{file:t,fileSize:n,maxFileSize:vie}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,n){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:bie,data:{project:t,reason:n}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let n={eventName:xie,data:{project:t}};this.eventHandler(n)}sendPerformanceEvent(t,n){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:n})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,n){if(t.length){for(let i of t)n&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,n){I.assert(n===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=A$(t),s=fj(t,n),l=Qwe(t);i.allowNonTsExtensions=!0;let p=n&&this.toCanonicalFileName(n);p?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(p,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(p,s||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(p,l)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=s,this.typeAcquisitionForInferredProjects=l);for(let g of this.inferredProjects)(p?g.projectRootPath===p:!g.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(g.projectRootPath))&&(g.setCompilerOptions(i),g.setTypeAcquisition(l),g.setWatchOptions(s?.watchOptions),g.setProjectErrors(s?.errors),g.compileOnSaveEnabled=i.compileOnSave,g.markAsDirty(),this.delayUpdateProjectGraph(g));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return Cwe(t)?PYe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(wc(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(n=>{!n.isOrphan()&&n.languageServiceEnabled&&t(n)})}getDefaultProjectForFile(t,n){return n?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let n=Ua(t)?this.getScriptInfoForNormalizedPath(t):t;return n&&!n.isOrphan()?n.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var n;let i=Ua(t)?this.getScriptInfoForNormalizedPath(t):t;if(i)return(n=this.pendingOpenFileProjectUpdates)!=null&&n.delete(i.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,5),i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,this.openFiles.get(i.path))),this.tryGetDefaultProjectForFile(i)}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let n=Ua(t)?this.getScriptInfoForNormalizedPath(t):t;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ua(t)?t:t.fileName),W0.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let n=i=>{t=Gm(i)||t};this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let n=this.getScriptInfoForNormalizedPath(t);return n&&n.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let n=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...n&&n.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,n){I.assert(!t.isScriptOpen()),n===2?this.handleDeletedFile(t,!0):(t.deferredDelete&&(t.deferredDelete=void 0),t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Ua(t.sourceMapFilePath)){let n=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(n?.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((n,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let n=this.getScriptInfoForPath(t);n&&this.delayUpdateProjectGraphs(n.containingProjects,!0)}handleDeletedFile(t,n){I.assert(!t.isScriptOpen()),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t),t.detachAllProjects(),n?(t.delayReloadNonMixedContentFile(),t.deferredDelete=!0):this.deleteScriptInfo(t)}watchWildcardDirectory(t,n,i,s){let l=this.watchFactory.watchDirectory(t,g=>this.onWildCardDirectoryWatcherInvoke(t,i,s,p,g),n,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions,Ei(i)),ep.WildcardDirectory,i),p={packageJsonWatches:void 0,close(){var g;l&&(l.close(),l=void 0,(g=p.packageJsonWatches)==null||g.forEach(m=>{m.projects.delete(p),m.close()}),p.packageJsonWatches=void 0)}};return p}onWildCardDirectoryWatcherInvoke(t,n,i,s,l){let p=this.toPath(l),g=i.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(l,p);if(gu(p)==="package.json"&&!CR(p)&&(g&&g.fileExists||!g&&this.host.fileExists(l))){let x=this.getNormalizedAbsolutePath(l);this.logger.info(`Config: ${n} Detected new package.json: ${x}`),this.packageJsonCache.addOrUpdate(x,p),this.watchPackageJsonFile(x,p,s)}g?.fileExists||this.sendSourceFileChange(p);let m=this.findConfiguredProjectByProjectName(n);KM({watchedDirPath:this.toPath(t),fileOrDirectory:l,fileOrDirectoryPath:p,configFileName:n,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:i.parsedCommandLine.options,program:m?.getCurrentProgram()||i.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:x=>this.logger.info(x),toPath:x=>this.toPath(x),getScriptKind:m?x=>m.getScriptKind(x):void 0})||(i.updateLevel!==2&&(i.updateLevel=1),i.projects.forEach((x,b)=>{var S;if(!x)return;let P=this.getConfiguredProjectByCanonicalConfigFilePath(b);if(!P)return;if(m!==P&&this.getHostPreferences().includeCompletionsForModuleExports){let N=this.toPath(n);Ir((S=P.getCurrentProgram())==null?void 0:S.getResolvedProjectReferences(),F=>F?.sourceFile.path===N)&&P.markAutoImportProviderAsDirty()}let E=m===P?1:0;if(!(P.pendingUpdateLevel>E))if(this.openFiles.has(p))if(I.checkDefined(this.getScriptInfoForPath(p)).isAttached(P)){let F=Math.max(E,P.openFileWatchTriggered.get(p)||0);P.openFileWatchTriggered.set(p,F)}else P.pendingUpdateLevel=E,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(P);else P.pendingUpdateLevel=E,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(P)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,n){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let s=!1;return i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache(),i.config.projects.forEach((l,p)=>{var g,m,x;let b=this.getConfiguredProjectByCanonicalConfigFilePath(p);if(b)if(s=!0,p===t){if(b.initialLoadPending)return;b.pendingUpdateLevel=2,b.pendingUpdateReason=n,this.delayUpdateProjectGraph(b),b.markAutoImportProviderAsDirty()}else{if(b.initialLoadPending){(m=(g=this.configFileExistenceInfoCache.get(p))==null?void 0:g.openFilesImpactedByConfigFile)==null||m.forEach(P=>{var E;(E=this.pendingOpenFileProjectUpdates)!=null&&E.has(P)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(P,this.configFileForOpenFiles.get(P))});return}let S=this.toPath(t);b.resolutionCache.removeResolutionsFromProjectReferenceRedirects(S),this.delayUpdateProjectGraph(b),this.getHostPreferences().includeCompletionsForModuleExports&&Ir((x=b.getCurrentProgram())==null?void 0:x.getResolvedProjectReferences(),P=>P?.sourceFile.path===S)&&b.markAutoImportProviderAsDirty()}}),s}onConfigFileChanged(t,n,i){let s=this.configFileExistenceInfoCache.get(n),l=this.getConfiguredProjectByCanonicalConfigFilePath(n),p=l?.deferredClose;i===2?(s.exists=!1,l&&(l.deferredClose=!0)):(s.exists=!0,p&&(l.deferredClose=void 0,l.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,"Change in config file detected"),this.openFiles.forEach((g,m)=>{var x,b;let S=this.configFileForOpenFiles.get(m);if(!((x=s.openFilesImpactedByConfigFile)!=null&&x.has(m)))return;this.configFileForOpenFiles.delete(m);let P=this.getScriptInfoForPath(m);this.getConfigFileNameForFile(P,!1)&&((b=this.pendingOpenFileProjectUpdates)!=null&&b.has(m)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(m,S))}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),I.shouldAssert(1)&&this.filenameToScriptInfo.forEach(n=>I.assert(!n.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Ka(pf(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(s=>s.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:Vb(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:Vb(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,n){I.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?n||this.currentDirectory:Ei(j_(t.fileName)?t.fileName:Qa(t.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(wP(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let s of this.inferredProjects){if(s===i||s.isOrphan())continue;let l=s.getRootScriptInfos();I.assert(l.length===1||!!s.projectRootPath),l.length===1&&Ge(l[0].containingProjects,p=>p!==l[0].containingProjects[0]&&!p.isOrphan())&&s.removeFile(l[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,n){var i;let s=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(s),this.stopWatchingConfigFilesForScriptInfo(t);let l=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(l)===t&&this.openFilesWithNonRootedDiskPath.delete(l);let p=!1;for(let g of t.containingProjects){if(V1(g)){t.hasMixedContent&&t.registerFileUpdate();let m=g.openFileWatchTriggered.get(t.path);m!==void 0&&(g.openFileWatchTriggered.delete(t.path),g.pendingUpdateLevel<m&&(g.pendingUpdateLevel=m,g.markFileAsDirty(t.path)))}else PA(g)&&g.isRoot(t)&&(g.isProjectWithSingleRoot()&&(p=!0),g.removeFile(t,s,!0));g.languageServiceEnabled||g.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),(i=this.pendingOpenFileProjectUpdates)==null||i.delete(t.path),I.assert(!this.rootOfInferredProjects.has(t)),!n&&p&&this.assignOrphanScriptInfosToInferredProject(),s?this.watchClosedScriptInfo(t):this.handleDeletedFile(t,!1),p}deleteScriptInfo(t){I.assert(!t.isScriptOpen()),this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version),this.stopWatchingScriptInfo(t);let n=t.getRealpathIfDifferent();n&&this.realpathToScriptInfos.remove(n,t),t.closeSourceMapFileWatcher()}configFileExists(t,n,i){let s=this.configFileExistenceInfoCache.get(n),l;if(this.openFiles.has(i.path)&&(!Iie(i)||i.isForDefaultProject)&&(s?(s.openFilesImpactedByConfigFile??(s.openFilesImpactedByConfigFile=new Set)).add(i.path):(l=new Set).add(i.path)),s)return s.exists;let p=this.host.fileExists(t);return this.configFileExistenceInfoCache.set(n,{exists:p,openFilesImpactedByConfigFile:l}),p}createConfigFileWatcherForParsedConfig(t,n,i){var s,l;let p=this.configFileExistenceInfoCache.get(n);(!p.watcher||p.watcher===Ywe)&&(p.watcher=this.watchFactory.watchFile(t,(g,m)=>this.onConfigFileChanged(t,n,m),2e3,this.getWatchOptionsFromProjectWatchOptions((l=(s=p?.config)==null?void 0:s.parsedCommandLine)==null?void 0:l.watchOptions,Ei(t)),ep.ConfigFile,i)),this.ensureConfigFileWatcherForProject(p,i)}ensureConfigFileWatcherForProject(t,n){let i=t.config.projects;i.set(n.canonicalConfigFilePath,i.get(n.canonicalConfigFilePath)||!1)}releaseParsedConfig(t,n){var i,s,l;let p=this.configFileExistenceInfoCache.get(t);(i=p.config)!=null&&i.projects.delete(n.canonicalConfigFilePath)&&((s=p.config)!=null&&s.projects.size||(p.config=void 0,nee(t,this.sharedExtendedConfigFileWatchers),I.checkDefined(p.watcher),(l=p.openFilesImpactedByConfigFile)!=null&&l.size?p.inferredProjectRoots?rR(Ei(t))||(p.watcher.close(),p.watcher=Ywe):(p.watcher.close(),p.watcher=void 0):(p.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}stopWatchingConfigFilesForScriptInfo(t){if(this.serverMode!==0)return;let n=this.rootOfInferredProjects.delete(t),i=t.isScriptOpen();i&&!n||this.forEachConfigFileLocation(t,s=>{var l,p,g;let m=this.configFileExistenceInfoCache.get(s);if(m){if(i){if(!((l=m?.openFilesImpactedByConfigFile)!=null&&l.has(t.path)))return}else if(!((p=m.openFilesImpactedByConfigFile)!=null&&p.delete(t.path)))return;n&&(m.inferredProjectRoots--,m.watcher&&!m.config&&!m.inferredProjectRoots&&(m.watcher.close(),m.watcher=void 0)),!((g=m.openFilesImpactedByConfigFile)!=null&&g.size)&&!m.config&&(I.assert(!m.watcher),this.configFileExistenceInfoCache.delete(s))}})}startWatchingConfigFilesForInferredProjectRoot(t){this.serverMode===0&&(I.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(n,i)=>{let s=this.configFileExistenceInfoCache.get(n);s?s.inferredProjectRoots=(s.inferredProjectRoots??0)+1:(s={exists:this.host.fileExists(i),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(n,s)),(s.openFilesImpactedByConfigFile??(s.openFilesImpactedByConfigFile=new Set)).add(t.path),s.watcher||(s.watcher=rR(Ei(n))?this.watchFactory.watchFile(i,(l,p)=>this.onConfigFileChanged(i,n,p),2e3,this.hostConfiguration.watchOptions,ep.ConfigFileForInferredRoot):Ywe)}))}forEachConfigFileLocation(t,n){if(this.serverMode!==0)return;I.assert(!DYe(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(I.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let l=Ei(t.fileName),p=()=>am(i,l,this.currentDirectory,!this.host.useCaseSensitiveFileNames),g=!i||!p(),m=!0,x=!0;Iie(t)&&(bc(t.fileName,"tsconfig.json")?m=!1:m=x=!1);do{let b=CA(l,this.currentDirectory,this.toCanonicalFileName);if(m){let P=gi(l,"tsconfig.json");if(n(gi(b,"tsconfig.json"),P))return P}if(x){let P=gi(l,"jsconfig.json");if(n(gi(b,"jsconfig.json"),P))return P}if(eq(b))break;let S=Ei(l);if(S===l)break;l=S,m=x=!0}while(g||p())}findDefaultConfiguredProject(t){var n;return(n=this.findDefaultConfiguredProjectWorker(t,1))==null?void 0:n.defaultProject}findDefaultConfiguredProjectWorker(t,n){return t.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n):void 0}getConfigFileNameForFileFromCache(t,n){if(n){let i=EYe(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return EYe(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,n){if(!this.openFiles.has(t.path))return;let i=n||!1;if(!Iie(t))this.configFileForOpenFiles.set(t.path,i);else{let s=this.configFileForOpenFiles.get(t.path);(!s||Ua(s))&&this.configFileForOpenFiles.set(t.path,s=new Map().set(!1,s)),s.set(t.fileName,i)}}getConfigFileNameForFile(t,n){let i=this.getConfigFileNameForFileFromCache(t,n);if(i!==void 0)return i||void 0;if(n)return;let s=this.forEachConfigFileLocation(t,(l,p)=>this.configFileExists(p,l,t));return this.logger.info(`getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${s}`),this.setConfigFileNameForFileInCache(t,s),s}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(uke),this.configuredProjects.forEach(uke),this.inferredProjects.forEach(uke),this.logger.info("Open files: "),this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(s=>s.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t,n){let i=this.toCanonicalFileName(t),s=this.getConfiguredProjectByCanonicalConfigFilePath(i);return n?s:s?.deferredClose?void 0:s}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return PYe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,n,i,s){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let l=yie;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(g=>l-=g||0);let p=0;for(let g of i){let m=s.getFileName(g);if(!Mk(m)&&(p+=this.host.getFileSize(m),p>yie||p>l)){let x=i.map(b=>s.getFileName(b)).filter(b=>!Mk(b)).map(b=>({name:b,size:this.host.getFileSize(b)})).sort((b,S)=>S.size-b.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${p}). Largest files: ${x.map(b=>`${b.name}:${b.size}`).join(", ")}`),m}}this.projectToSizeMap.set(t,p)}createExternalProject(t,n,i,s,l){let p=A$(i),g=fj(i,Ei(_p(t))),m=new hie(t,this,p,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,p,n,Aie),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,g?.watchOptions);return m.setProjectErrors(g?.errors),m.excludedFiles=l,this.addFilesToNonInferredProject(m,n,Aie,s),this.externalProjects.push(m),m}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){ake(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){ake(t);return}let n=V1(t)?t.projectOptions:void 0;ake(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:cj(t.getScriptInfos(),!0),compilerOptions:Uye(t.getCompilationSettings()),typeAcquisition:l(t.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:s(),projectType:t instanceof hie?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:ye};this.eventHandler({eventName:kie,data:i});function s(){return V1(t)&&gie(t.getConfigFilePath())||"other"}function l({enable:p,include:g,exclude:m}){return{enable:p,include:g!==void 0&&g.length!==0,exclude:m!==void 0&&m.length!==0}}}addFilesToNonInferredProject(t,n,i,s){this.updateNonInferredProjectFiles(t,n,i),t.setTypeAcquisition(s),t.markAsDirty()}createConfiguredProject(t,n){var i;(i=Fn)==null||i.instant(Fn.Phase.Session,"createConfiguredProject",{configFilePath:t});let s=this.toCanonicalFileName(t),l=this.configFileExistenceInfoCache.get(s);l?l.exists=!0:this.configFileExistenceInfoCache.set(s,l={exists:!0}),l.config||(l.config={cachedDirectoryStructureHost:SW(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let p=new Hwe(t,s,this,l.config.cachedDirectoryStructureHost,n);return I.assert(!this.configuredProjects.has(s)),this.configuredProjects.set(s,p),this.createConfigFileWatcherForParsedConfig(t,s,p),p}loadConfiguredProject(t,n){var i,s;(i=Fn)==null||i.push(Fn.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,n);let l=wc(t.getConfigFilePath()),p=this.ensureParsedConfigUptoDate(l,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),g=p.config.parsedCommandLine;I.assert(!!g.fileNames);let m=g.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:g.raw.extends!==void 0,configHasFilesProperty:g.raw.files!==void 0,configHasIncludeProperty:g.raw.include!==void 0,configHasExcludeProperty:g.raw.exclude!==void 0}),t.parsedCommandLine=g,t.setProjectErrors(g.options.configFile.parseDiagnostics),t.updateReferences(g.projectReferences);let x=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,m,g.fileNames,Nie);x?(t.disableLanguageService(x),this.configFileExistenceInfoCache.forEach((S,P)=>this.stopWatchingWildCards(P,t))):(t.setCompilerOptions(m),t.setWatchOptions(g.watchOptions),t.enableLanguageService(),this.watchWildcards(l,p,t)),t.enablePluginsWithOptions(m);let b=g.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,b,Nie,m,g.typeAcquisition,g.compileOnSave,g.watchOptions),(s=Fn)==null||s.pop()}ensureParsedConfigUptoDate(t,n,i,s){var l,p,g;if(i.config&&(i.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(t,i.config),!i.config.updateLevel))return this.ensureConfigFileWatcherForProject(i,s),i;if(!i.exists&&i.config)return i.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(i,s),i;let m=((l=i.config)==null?void 0:l.cachedDirectoryStructureHost)||SW(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),x=l3(t,F=>this.host.readFile(F)),b=TM(t,Ua(x)?x:""),S=b.parseDiagnostics;Ua(x)||S.push(x);let P=Ei(t),E=DM(b,m,P,void 0,t,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);E.errors.length&&S.push(...E.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:E.fileNames,options:E.options,watchOptions:E.watchOptions,projectReferences:E.projectReferences},void 0," ")}`);let N=(p=i.config)==null?void 0:p.parsedCommandLine;return i.config?(i.config.parsedCommandLine=E,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:E,cachedDirectoryStructureHost:m,projects:new Map},!N&&!GJ(this.getWatchOptionsFromProjectWatchOptions(void 0,P),this.getWatchOptionsFromProjectWatchOptions(E.watchOptions,P))&&((g=i.watcher)==null||g.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,n,s),TW(n,E.options,this.sharedExtendedConfigFileWatchers,(F,M)=>this.watchFactory.watchFile(F,()=>{var L;wW(this.extendedConfigCache,M,z=>this.toPath(z));let W=!1;(L=this.sharedExtendedConfigFileWatchers.get(M))==null||L.projects.forEach(z=>{W=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(z,`Change in extended config file ${F} detected`)||W}),W&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,ep.ExtendedConfigFile,t),F=>this.toPath(F)),i}watchWildcards(t,{exists:n,config:i},s){if(i.projects.set(s.canonicalConfigFilePath,!0),n){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,GM(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(l,p)=>this.watchWildcardDirectory(l,p,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;h_(i.watchedDirectories,ym),i.watchedDirectories=void 0}}stopWatchingWildCards(t,n){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(n.canonicalConfigFilePath)||(i.config.projects.set(n.canonicalConfigFilePath,!1),!Lu(i.config.projects,vc)&&(i.config.watchedDirectories&&(h_(i.config.watchedDirectories,ym),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,n,i){var s;let l=t.getRootFilesMap(),p=new Map;for(let g of n){let m=i.getFileName(g),x=wc(m),b=o8(x),S;if(!b&&!t.fileExists(m)){S=CA(x,this.currentDirectory,this.toCanonicalFileName);let P=l.get(S);P?(((s=P.info)==null?void 0:s.path)===S&&(t.removeFile(P.info,!1,!0),P.info=void 0),P.fileName=x):l.set(S,{fileName:x})}else{let P=i.getScriptKind(g,this.hostConfiguration.extraFileExtensions),E=i.hasMixedContent(g,this.hostConfiguration.extraFileExtensions),N=I.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(x,t.currentDirectory,P,E,t.directoryStructureHost,!1));S=N.path;let F=l.get(S);!F||F.info!==N?(t.addRoot(N,x),N.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(N)):F.fileName=x}p.set(S,!0)}l.size>p.size&&l.forEach((g,m)=>{p.has(m)||(g.info?t.removeFile(g.info,t.fileExists(g.info.fileName),!0):l.delete(m))})}updateRootAndOptionsOfNonInferredProject(t,n,i,s,l,p,g){t.setCompilerOptions(s),t.setWatchOptions(g),p!==void 0&&(t.compileOnSaveEnabled=p),this.addFilesToNonInferredProject(t,n,i,l)}reloadFileNamesOfConfiguredProject(t){let n=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(n),this.updateNonInferredProjectFiles(t,n.fileNames.concat(t.getExternalFiles(1)),Nie),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,n){if(n.updateLevel===void 0)return n.parsedCommandLine;I.assert(n.updateLevel===1);let i=n.parsedCommandLine.options.configFile.configFileSpecs,s=u3(i,Ei(t),n.parsedCommandLine.options,n.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return n.parsedCommandLine={...n.parsedCommandLine,fileNames:s},n.updateLevel=void 0,n.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(t,n){this.updateNonInferredProjectFiles(t,n,Nie)}reloadConfiguredProjectOptimized(t,n,i){i.has(t)||(i.set(t,6),t.initialLoadPending||this.setProjectForReload(t,2,n))}reloadConfiguredProjectClearingSemanticCache(t,n,i){return i.get(t)===7?!1:(i.set(t,7),this.clearSemanticCache(t),this.reloadConfiguredProject(t,Mie(n)),!0)}setProjectForReload(t,n,i){n===2&&this.clearSemanticCache(t),t.pendingUpdateReason=i&&Mie(i),t.pendingUpdateLevel=n}reloadConfiguredProject(t,n){t.initialLoadPending=!1,this.setProjectForReload(t,0),this.loadConfiguredProject(t,n),MYe(t,t.triggerFileForConfigFileDiag??t.getConfigFilePath(),!0)}clearSemanticCache(t){t.originalConfiguredProjects=void 0,t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,n,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let s=t.getLanguageService().getCompilerOptionsDiagnostics();return s.push(...t.getAllProjectErrors()),!i&&s.length===(t.configDiagDiagnosticsReported??0)?!1:(t.configDiagDiagnosticsReported=s.length,this.eventHandler({eventName:Tie,data:{configFileName:t.getConfigFilePath(),diagnostics:s,triggerFile:n??t.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&n===void 0)return;if(n){let s=this.toCanonicalFileName(n);for(let l of this.inferredProjects)if(l.projectRootPath===s)return l;return this.createInferredProject(n,!1,n)}let i;for(let s of this.inferredProjects)s.projectRootPath&&am(s.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>s.projectRootPath.length||(i=s));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(t){I.assert(!this.useSingleInferredProject);let n=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===n)return i;return this.createInferredProject(t,!1,void 0)}createInferredProject(t,n,i){let s=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,l,p;i&&(l=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),p=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),l===void 0&&(l=this.watchOptionsForInferredProjects),p===void 0&&(p=this.typeAcquisitionForInferredProjects),l=l||void 0;let g=new Wwe(this,s,l?.watchOptions,i,t,p);return g.setProjectErrors(l?.errors),n?this.inferredProjects.unshift(g):this.inferredProjects.push(g),g}getOrCreateScriptInfoNotOpenedByClient(t,n,i,s){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(wc(t),n,void 0,void 0,i,s)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(wc(t))}getScriptInfoOrConfig(t){let n=wc(t),i=this.getScriptInfoForNormalizedPath(n);if(i)return i;let s=this.configuredProjects.get(this.toPath(t));return s&&s.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let n=Ka(pf(this.filenameToScriptInfo.entries(),i=>i[1].deferredDelete?void 0:i),([i,s])=>({path:i,fileName:s.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}.
|
|
All files are: ${JSON.stringify(n)}`,"Err")}getSymlinkedProjects(t){let n;if(this.realpathToScriptInfos){let s=t.getRealpathIfDifferent();s&&Ge(this.realpathToScriptInfos.get(s),i),Ge(this.realpathToScriptInfos.get(t.path),i)}return n;function i(s){if(s!==t)for(let l of s.containingProjects)l.languageServiceEnabled&&!l.isOrphan()&&!l.getCompilerOptions().preserveSymlinks&&!t.isAttached(l)&&(n?Lu(n,(p,g)=>g===s.path?!1:Ta(p,l))||n.add(s.path,l):(n=Zl(),n.add(s.path,l)))}}watchClosedScriptInfo(t){if(I.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!La(t.path,this.globalCacheLocationDirectoryPath))){let n=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||n===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,ep.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,n)))}}createNodeModulesWatcher(t,n){let i=this.watchFactory.watchDirectory(t,l=>{var p;let g=jW(this.toPath(l));if(!g)return;let m=gu(g);if((p=s.affectedModuleSpecifierCacheProjects)!=null&&p.size&&(m==="package.json"||m==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(x=>{var b;(b=x.getModuleSpecifierCache())==null||b.clear()}),s.refreshScriptInfoRefCount)if(n===g)this.refreshScriptInfosInDirectory(n);else{let x=this.filenameToScriptInfo.get(g);x?rke(x)&&this.refreshScriptInfo(x):zO(g)||this.refreshScriptInfosInDirectory(g)}},1,this.hostConfiguration.watchOptions,ep.NodeModules),s={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var l;i&&!s.refreshScriptInfoRefCount&&!((l=s.affectedModuleSpecifierCacheProjects)!=null&&l.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,s),s}watchPackageJsonsInNodeModules(t,n){var i;let s=this.toPath(t),l=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(t,s);return I.assert(!((i=l.affectedModuleSpecifierCacheProjects)!=null&&i.has(n))),(l.affectedModuleSpecifierCacheProjects||(l.affectedModuleSpecifierCacheProjects=new Set)).add(n),{close:()=>{var p;(p=l.affectedModuleSpecifierCacheProjects)==null||p.delete(n),l.close()}}}watchClosedScriptInfoInNodeModules(t){let n=t+"/node_modules",i=this.toPath(n),s=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(n,i);return s.refreshScriptInfoRefCount++,{close:()=>{s.refreshScriptInfoRefCount--,s.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Hp).getTime()}refreshScriptInfo(t){let n=this.getModifiedTime(t);if(n!==t.mTime){let i=mK(t.mTime,n);t.mTime=n,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+jc,this.filenameToScriptInfo.forEach(n=>{rke(n)&&La(n.path,t)&&this.refreshScriptInfo(n)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,n,i,s,l,p){if(j_(t)||o8(t))return this.getOrCreateScriptInfoWorker(t,n,!1,void 0,i,!!s,l,p);let g=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(g)return g}getOrCreateScriptInfoForNormalizedPath(t,n,i,s,l,p){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,n,i,s,!!l,p,!1)}getOrCreateScriptInfoWorker(t,n,i,s,l,p,g,m){I.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let x=CA(t,n,this.toCanonicalFileName),b=this.filenameToScriptInfo.get(x);if(b){if(b.deferredDelete){if(I.assert(!b.isDynamic),!i&&!(g||this.host).fileExists(t))return m?b:void 0;b.deferredDelete=void 0}}else{let S=o8(t);if(I.assert(j_(t)||S||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Ka(this.openFilesWithNonRootedDiskPath.keys())})}
|
|
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),I.assert(!j_(t)||this.currentDirectory===n||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Ka(this.openFilesWithNonRootedDiskPath.keys())})}
|
|
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),I.assert(!S||this.currentDirectory===n||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Ka(this.openFilesWithNonRootedDiskPath.keys())})}
|
|
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!S&&!(g||this.host).fileExists(t))return;b=new Rwe(this.host,t,l,p,x,this.filenameToScriptInfoVersion.get(x)),this.filenameToScriptInfo.set(b.path,b),this.filenameToScriptInfoVersion.delete(b.path),i?!j_(t)&&(!S||this.currentDirectory!==n)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),b):this.watchClosedScriptInfo(b)}return i&&(this.stopWatchingScriptInfo(b),b.open(s),p&&b.registerFileUpdate()),b}getScriptInfoForNormalizedPath(t){return!j_(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(CA(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){let n=this.filenameToScriptInfo.get(t);return!n||!n.deferredDelete?n:void 0}getDocumentPositionMapper(t,n,i){let s=this.getOrCreateScriptInfoNotOpenedByClient(n,t.currentDirectory,this.host,!1);if(!s){i&&t.addGeneratedFileWatch(n,i);return}if(s.getSnapshot(),Ua(s.sourceMapFilePath)){let x=this.getScriptInfoForPath(s.sourceMapFilePath);if(x&&(x.getSnapshot(),x.documentPositionMapper!==void 0))return x.sourceInfos=this.addSourceInfoToSourceMap(i,t,x.sourceInfos),x.documentPositionMapper?x.documentPositionMapper:void 0;s.sourceMapFilePath=void 0}else if(s.sourceMapFilePath){s.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceMapFilePath.sourceInfos);return}else if(s.sourceMapFilePath!==void 0)return;let l,p=(x,b)=>{let S=this.getOrCreateScriptInfoNotOpenedByClient(x,t.currentDirectory,this.host,!0);if(l=S||b,!S||S.deferredDelete)return;let P=S.getSnapshot();return S.documentPositionMapper!==void 0?S.documentPositionMapper:UE(P)},g=t.projectName,m=Cre({getCanonicalFileName:this.toCanonicalFileName,log:x=>this.logger.info(x),getSourceFileLike:x=>this.getSourceFileLike(x,g,s)},s.fileName,s.textStorage.getLineInfo(),p);return p=void 0,l?Ua(l)?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:Qa(l,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:(s.sourceMapFilePath=l.path,l.declarationInfoPath=s.path,l.deferredDelete||(l.documentPositionMapper=m||!1),l.sourceInfos=this.addSourceInfoToSourceMap(i,t,l.sourceInfos)):s.sourceMapFilePath=!1,m}addSourceInfoToSourceMap(t,n,i){if(t){let s=this.getOrCreateScriptInfoNotOpenedByClient(t,n.currentDirectory,n.directoryStructureHost,!1);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,n){return this.watchFactory.watchFile(t,()=>{let s=this.getScriptInfoForPath(n);s&&s.sourceMapFilePath&&!Ua(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,ep.MissingSourceMapFile)}getSourceFileLike(t,n,i){let s=n.projectName?n:this.findProject(n);if(s){let p=s.toPath(t),g=s.getSourceFile(p);if(g&&g.resolvedPath===p)return g}let l=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host,!1);if(l){if(i&&Ua(i.sourceMapFilePath)&&l!==i){let p=this.getScriptInfoForPath(i.sourceMapFilePath);p&&(p.sourceInfos??(p.sourceInfos=new Set)).add(l.path)}return l.cacheSourceFile?l.cacheSourceFile.sourceFile:(l.sourceFileLike||(l.sourceFileLike={get text(){return I.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:p=>{let g=l.positionToLineOffset(p);return{line:g.line-1,character:g.offset-1}},getPositionOfLineAndCharacter:(p,g,m)=>l.lineOffsetToPosition(p+1,g+1,m)}),l.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var n;if(t.file){let i=this.getScriptInfoForNormalizedPath(wc(t.file));i&&(i.setOptions(EA(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...EA(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s,includeCompletionsForModuleExports:l}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(p=>p.forEach(g=>{!g.deferredClose&&!g.isClosed()&&g.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(g)&&g.updateGraph()})),(s!==t.preferences.includePackageJsonAutoImports||!!l!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(p=>{p.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions){let i=(n=fj(t.watchOptions))==null?void 0:n.watchOptions,s=Hz(i,this.currentDirectory);this.hostConfiguration.watchOptions=s,this.hostConfiguration.beforeSubstitution=s===i?void 0:i,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions(),t.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(t,n){let i=this.hostConfiguration.beforeSubstitution?Hz(this.hostConfiguration.beforeSubstitution,n):this.hostConfiguration.watchOptions;return t&&i?{...i,...t}:t||i}closeLog(){this.logger.close()}sendSourceFileChange(t){this.filenameToScriptInfo.forEach(n=>{if(this.openFiles.has(n.path)||!n.fileWatcher)return;let i=Cu(()=>this.host.fileExists(n.fileName)?n.deferredDelete?0:1:2);if(t){if(rke(n)||!n.path.startsWith(t)||i()===2&&n.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${n.fileName}:: ${i()}`)}this.onSourceFileChanged(n,i())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((i,s)=>{this.throttledOperations.cancel(s),this.pendingProjectUpdates.delete(s)}),this.throttledOperations.cancel(kYe),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(i=>{i.config&&(i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(i=>{this.clearSemanticCache(i),i.updateGraph()});let t=new Map,n=new Set;this.externalProjectToConfiguredProjectMap.forEach((i,s)=>{let l=`Reloading configured project in external project: ${s}`;i.forEach(p=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(p,l,t):this.reloadConfiguredProjectClearingSemanticCache(p,l,t)})}),this.openFiles.forEach((i,s)=>{let l=this.getScriptInfoForPath(s);Ir(l.containingProjects,lj)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(l,7,t,n)}),n.forEach(i=>t.set(i,7)),this.inferredProjects.forEach(i=>this.clearSemanticCache(i)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(t,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(t){I.assert(t.containingProjects.length>0);let n=t.containingProjects[0];!n.isOrphan()&&PA(n)&&n.isRoot(t)&&Ge(t.containingProjects,i=>i!==n&&!i.isOrphan())&&n.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let t=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,t?.forEach((n,i)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(i),5)),this.openFiles.forEach((n,i)=>{let s=this.getScriptInfoForPath(i);s.isOrphan()?this.assignOrphanScriptInfoToInferredProject(s,n):this.removeRootOfInferredProjectIfNowPartOfOtherProject(s)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Gm),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,n,i,s){return this.openClientFileWithNormalizedPath(wc(t),n,i,!1,s?wc(s):void 0)}getOriginalLocationEnsuringConfiguredProject(t,n){let i=t.isSourceOfProjectReferenceRedirect(n.fileName),s=i?n:t.getSourceMapper().tryGetSourcePosition(n);if(!s)return;let{fileName:l}=s,p=this.getScriptInfo(l);if(!p&&!this.host.fileExists(l))return;let g={fileName:wc(l),path:this.toPath(l)},m=this.getConfigFileNameForFile(g,!1);if(!m)return;let x=this.findConfiguredProjectByProjectName(m);if(!x){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?n:p?.containingProjects.length?s:n;x=this.createConfiguredProject(m,`Creating project for original file: ${g.fileName}${n!==s?" for location: "+n.fileName:""}`)}let b=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(g,5,eke(x,4),E=>`Creating project referenced in solution ${E.projectName} to find possible configured project for original file: ${g.fileName}${n!==s?" for location: "+n.fileName:""}`);if(!b.defaultProject)return;if(b.defaultProject===t)return s;P(b.defaultProject);let S=this.getScriptInfo(l);if(!S||!S.containingProjects.length)return;return S.containingProjects.forEach(E=>{V1(E)&&P(E)}),s;function P(E){(t.originalConfiguredProjects??(t.originalConfiguredProjects=new Set)).add(E.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Ir(this.externalProjects,n=>(Gm(n),n.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,n,i,s,l){let p=this.getOrCreateScriptInfoWorker(t,l?this.getNormalizedAbsolutePath(l):this.currentDirectory,!0,n,i,!!s,void 0,!0);return this.openFiles.set(p.path,l),p}assignProjectToOpenedScriptInfo(t){let n,i,s=this.findExternalProjectContainingOpenScriptInfo(t),l,p;if(!s&&this.serverMode===0){let g=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5);g&&(l=g.seenProjects,p=g.sentConfigDiag,g.defaultProject&&(n=g.defaultProject.getConfigFilePath(),i=g.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(Gm),t.isOrphan()&&(l?.forEach((g,m)=>{g!==4&&!p.has(m)&&this.sendConfigFileDiagEvent(m,t.fileName,!0)}),I.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),I.assert(!t.isOrphan()),{configFileName:n,configFileErrors:i,retainProjects:l}}findCreateOrReloadConfiguredProject(t,n,i,s,l,p,g,m,x){let b=x??this.findConfiguredProjectByProjectName(t,s),S=!1,P;switch(n){case 0:case 1:case 3:if(!b)return;break;case 2:if(!b)return;P=h$t(b);break;case 4:case 5:b??(b=this.createConfiguredProject(t,i)),g||({sentConfigFileDiag:S,configFileExistenceInfo:P}=eke(b,n,l));break;case 6:if(b??(b=this.createConfiguredProject(t,Mie(i))),b.projectService.reloadConfiguredProjectOptimized(b,i,p),P=nke(b),P)break;case 7:b??(b=this.createConfiguredProject(t,Mie(i))),S=!m&&this.reloadConfiguredProjectClearingSemanticCache(b,i,p),m&&!m.has(b)&&!p.has(b)&&(this.setProjectForReload(b,2,i),m.add(b));break;default:I.assertNever(n)}return{project:b,sentConfigFileDiag:S,configFileExistenceInfo:P,reason:i}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n,i,s){let l=this.getConfigFileNameForFile(t,n<=3);if(!l)return;let p=OYe(n),g=this.findCreateOrReloadConfiguredProject(l,p,y$t(t),i,t.fileName,s);return g&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,n,g,m=>`Creating project referenced in solution ${m.projectName} to find possible configured project for ${t.fileName} to open`,i,s)}isMatchedByConfig(t,n,i){if(n.fileNames.some(m=>this.toPath(m)===i.path))return!0;if(AX(i.fileName,n.options,this.hostConfiguration.extraFileExtensions))return!1;let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:p}=n.options.configFile.configFileSpecs,g=wc(Qa(Ei(t),this.currentDirectory));return s?.some(m=>this.toPath(Qa(m,g))===i.path)?!0:!l?.length||Xz(i.fileName,p,this.host.useCaseSensitiveFileNames,this.currentDirectory,g)?!1:l?.some(m=>{let x=EX(m,g,"files");return!!x&&N1(`(${x})$`,this.host.useCaseSensitiveFileNames).test(i.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,n,i,s,l,p){let g=DYe(t),m=OYe(n),x=new Map,b,S=new Set,P,E,N,F;return M(i),{defaultProject:P??E,tsconfigProject:N??F,sentConfigDiag:S,seenProjects:x,seenConfigs:b};function M(ne){return z(ne,ne.project)??H(ne.project)??X(ne.project)}function L(ne,ae,Y,Ee,fe,te){if(ae){if(x.has(ae))return;x.set(ae,m)}else{if(b?.has(te))return;(b??(b=new Set)).add(te)}if(!fe.projectService.isMatchedByConfig(Y,ne.config.parsedCommandLine,t)){fe.languageServiceEnabled&&fe.projectService.watchWildcards(Y,ne,fe);return}let de=ae?eke(ae,n,t.fileName,Ee,p):fe.projectService.findCreateOrReloadConfiguredProject(Y,n,Ee,l,t.fileName,p);if(!de){I.assert(n===3);return}return x.set(de.project,m),de.sentConfigFileDiag&&S.add(de.project),W(de.project,fe)}function W(ne,ae){if(x.get(ne)===n)return;x.set(ne,n);let Y=g?t:ne.projectService.getScriptInfo(t.fileName),Ee=Y&&ne.containsScriptInfo(Y);if(Ee&&!ne.isSourceOfProjectReferenceRedirect(Y.path))return N=ae,P=ne;!E&&g&&Ee&&(F=ae,E=ne)}function z(ne,ae){return ne.sentConfigFileDiag&&S.add(ne.project),ne.configFileExistenceInfo?L(ne.configFileExistenceInfo,ne.project,wc(ne.project.getConfigFilePath()),ne.reason,ne.project,ne.project.canonicalConfigFilePath):W(ne.project,ae)}function H(ne){return ne.parsedCommandLine&&AYe(ne,ne.parsedCommandLine,L,m,s(ne),l,p)}function X(ne){return g?NYe(t,ne,M,m,`Creating possible configured project for ${t.fileName} to open`,l,p,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,n,i,s){let l=n===1,p=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n,l,i);if(!p)return;let{defaultProject:g,tsconfigProject:m,seenProjects:x}=p;return g&&NYe(t,m,b=>{x.set(b.project,n)},n,`Creating project possibly referencing default composite project ${g.getProjectName()} of open file ${t.fileName}`,l,i,!0,s),p}loadAncestorProjectTree(t){t??(t=new Set(pf(this.configuredProjects.entries(),([s,l])=>l.initialLoadPending?void 0:s)));let n=new Set,i=Ka(this.configuredProjects.values());for(let s of i)IYe(s,l=>t.has(l))&&Gm(s),this.ensureProjectChildren(s,t,n)}ensureProjectChildren(t,n,i){var s;if(!Ty(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let l=(s=t.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(l)for(let p of l){if(!p)continue;let g=QX(p.references,b=>n.has(b.sourceFile.path)?b:void 0);if(!g)continue;let m=wc(p.sourceFile.fileName),x=this.findConfiguredProjectByProjectName(m)??this.createConfiguredProject(m,`Creating project referenced by : ${t.projectName} as it references project ${g.sourceFile.fileName}`);Gm(x),this.ensureProjectChildren(x,n,i)}}cleanupConfiguredProjects(t,n,i){this.getOrphanConfiguredProjects(t,i,n).forEach(s=>this.removeProject(s))}cleanupProjectsAndScriptInfos(t,n,i){this.cleanupConfiguredProjects(t,i,n);for(let s of this.inferredProjects.slice())s.isOrphan()&&this.removeProject(s);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(t){this.configFileExistenceInfoCache.forEach((n,i)=>{var s,l;!((s=n.config)!=null&&s.parsedCommandLine)||Ta(n.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?fv:cg)||(l=n.config.watchedDirectories)==null||l.forEach((p,g)=>{am(g,t.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${i}:: wildcard for open scriptInfo:: ${t.fileName}`),this.onWildCardDirectoryWatcherInvoke(g,i,n.config,p.watcher,t.fileName))})})}openClientFileWithNormalizedPath(t,n,i,s,l){let p=this.getScriptInfoForPath(CA(t,l?this.getNormalizedAbsolutePath(l):this.currentDirectory,this.toCanonicalFileName)),g=this.getOrCreateOpenScriptInfo(t,n,i,s,l);!p&&g&&!g.isDynamic&&this.tryInvokeWildCardDirectories(g);let{retainProjects:m,...x}=this.assignProjectToOpenedScriptInfo(g);return this.cleanupProjectsAndScriptInfos(m,new Set([g.path]),void 0),this.telemetryOnOpenFile(g),this.printProjects(),x}getOrphanConfiguredProjects(t,n,i){let s=new Set(this.configuredProjects.values()),l=x=>{x.originalConfiguredProjects&&(V1(x)||!x.isOrphan())&&x.originalConfiguredProjects.forEach((b,S)=>{let P=this.getConfiguredProjectByCanonicalConfigFilePath(S);return P&&m(P)})};if(t?.forEach((x,b)=>m(b)),!s.size||(this.inferredProjects.forEach(l),this.externalProjects.forEach(l),this.externalProjectToConfiguredProjectMap.forEach((x,b)=>{i?.has(b)||x.forEach(m)}),!s.size)||(Lu(this.openFiles,(x,b)=>{if(n?.has(b))return;let S=this.getScriptInfoForPath(b);if(Ir(S.containingProjects,lj))return;let P=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(S,1);if(P?.defaultProject&&(P?.seenProjects.forEach((E,N)=>m(N)),!s.size))return s}),!s.size))return s;return Lu(this.configuredProjects,x=>{if(s.has(x)&&(g(x)||FYe(x,p))&&(m(x),!s.size))return s}),s;function p(x){return!s.has(x)||g(x)}function g(x){var b,S;return(x.deferredClose||x.projectService.hasPendingProjectUpdate(x))&&!!((S=(b=x.projectService.configFileExistenceInfoCache.get(x.canonicalConfigFilePath))==null?void 0:b.openFilesImpactedByConfigFile)!=null&&S.size)}function m(x){s.delete(x)&&(l(x),FYe(x,m))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.deferredDelete){if(!n.isScriptOpen()&&n.isOrphan()&&!Lwe(n)&&!jwe(n)){if(!n.sourceMapFilePath)return;let i;if(Ua(n.sourceMapFilePath)){let s=this.filenameToScriptInfo.get(n.sourceMapFilePath);i=s?.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;if(!i||!wv(i,s=>{let l=this.getScriptInfoForPath(s);return!!l&&(l.isScriptOpen()||!l.isOrphan())}))return}if(t.delete(n.path),n.sourceMapFilePath){let i;if(Ua(n.sourceMapFilePath)){let s=this.filenameToScriptInfo.get(n.sourceMapFilePath);s?.deferredDelete?n.sourceMapFilePath={watcher:this.addMissingSourceMapFile(s.fileName,n.path),sourceInfos:s.sourceInfos}:t.delete(n.sourceMapFilePath),i=s?.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;i&&i.forEach((s,l)=>t.delete(l))}}}),t.forEach(n=>this.deleteScriptInfo(n))}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Jm(this.allJsFilesForOpenFileTelemetry,t.path))return;let n=this.ensureDefaultProjectForFile(t);if(!n.languageServiceEnabled)return;let i=n.getSourceFile(t.path),s=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:Gwe,data:{info:{checkJs:s}}})}closeClientFile(t,n){let i=this.getScriptInfoForNormalizedPath(wc(t)),s=i?this.closeOpenFile(i,n):!1;return n||this.printProjects(),s}collectChanges(t,n,i,s){for(let l of n){let p=Ir(t,g=>g.projectName===l.getProjectName());s.push(l.getChangesSinceVersion(p&&p.version,i))}}synchronizeProjectList(t,n){let i=[];return this.collectChanges(t,this.externalProjects,n,i),this.collectChanges(t,pf(this.configuredProjects.values(),s=>s.deferredClose?void 0:s),n,i),this.collectChanges(t,this.inferredProjects,n,i),i}applyChangesInOpenFiles(t,n,i){let s,l,p=!1;if(t)for(let m of t){(s??(s=[])).push(this.getScriptInfoForPath(CA(wc(m.fileName),m.projectRootPath?this.getNormalizedAbsolutePath(m.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let x=this.getOrCreateOpenScriptInfo(wc(m.fileName),m.content,Die(m.scriptKind),m.hasMixedContent,m.projectRootPath?wc(m.projectRootPath):void 0);(l||(l=[])).push(x)}if(n)for(let m of n){let x=this.getScriptInfo(m.fileName);I.assert(!!x),this.applyChangesToFile(x,m.changes)}if(i)for(let m of i)p=this.closeClientFile(m,!0)||p;let g;Ge(s,(m,x)=>!m&&l[x]&&!l[x].isDynamic?this.tryInvokeWildCardDirectories(l[x]):void 0),l?.forEach(m=>{var x;return(x=this.assignProjectToOpenedScriptInfo(m).retainProjects)==null?void 0:x.forEach((b,S)=>(g??(g=new Map)).set(S,b))}),p&&this.assignOrphanScriptInfosToInferredProject(),l?(this.cleanupProjectsAndScriptInfos(g,new Set(l.map(m=>m.path)),void 0),l.forEach(m=>this.telemetryOnOpenFile(m)),this.printProjects()):Re(i)&&this.printProjects()}applyChangesToFile(t,n){for(let i of n)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeExternalProject(t,n){let i=wc(t);if(this.externalProjectToConfiguredProjectMap.get(i))this.externalProjectToConfiguredProjectMap.delete(i);else{let l=this.findExternalProjectByProjectName(t);l&&this.removeProject(l)}n&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(t){let n=new Set(this.externalProjects.map(i=>i.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((i,s)=>n.add(s));for(let i of t)this.openExternalProject(i,!1),n.delete(i.projectFileName);n.forEach(i=>this.closeExternalProject(i,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Kwe}applySafeList(t){let n=t.typeAcquisition;I.assert(!!n,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,n);return i?.excludedFiles??[]}applySafeListWorker(t,n,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let s=i.include||(i.include=[]),l=[],p=n.map(S=>_p(S.fileName));for(let S of Object.keys(this.safelist)){let P=this.safelist[S];for(let E of p)if(P.match.test(E)){if(this.logger.info(`Excluding files based on rule ${S} matching file '${E}'`),P.types)for(let N of P.types)s.includes(N)||s.push(N);if(P.exclude)for(let N of P.exclude){let F=E.replace(P.match,(...M)=>N.map(L=>typeof L=="number"?Ua(M[L])?gOe.escapeFilenameForRegex(M[L]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${S} - not enough groups`),"\\*"):L).join(""));l.includes(F)||l.push(F)}else{let N=gOe.escapeFilenameForRegex(E);l.includes(N)||l.push(N)}}}let g=l.map(S=>new RegExp(S,"i")),m,x;for(let S=0;S<n.length;S++)if(g.some(P=>P.test(p[S])))b(S);else{if(i.enable){let P=gu(wy(p[S]));if(il(P,"js")){let E=yf(P),N=bI(E),F=this.legacySafelist.get(N);if(F!==void 0){this.logger.info(`Excluded '${p[S]}' because it matched ${N} from the legacy safelist`),b(S),s.includes(F)||s.push(F);continue}}}/^.+[.-]min\.js$/.test(p[S])?b(S):m?.push(n[S])}return x?{rootFiles:m,excludedFiles:x}:void 0;function b(S){x||(I.assert(!m),m=n.slice(0,S),x=[]),x.push(p[S])}}openExternalProject(t,n){let i=this.findExternalProjectByProjectName(t.projectFileName),s,l=[];for(let p of t.rootFiles){let g=wc(p.fileName);if(gie(g)){if(this.serverMode===0&&this.host.fileExists(g)){let m=this.findConfiguredProjectByProjectName(g);m||(m=this.createConfiguredProject(g,`Creating configured project in external project: ${t.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||m.updateGraph()),(s??(s=new Set)).add(m),I.assert(!m.isClosed())}}else l.push(p)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let p=t.typeAcquisition||{};p.include=p.include||[],p.exclude=p.exclude||[],p.enable===void 0&&(p.enable=Jwe(l.map(x=>x.fileName)));let g=this.applySafeListWorker(t,l,p),m=g?.excludedFiles??[];if(l=g?.rootFiles??l,i){i.excludedFiles=m;let x=A$(t.options),b=fj(t.options,i.getCurrentDirectory()),S=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,x,l,Aie);S?i.disableLanguageService(S):i.enableLanguageService(),i.setProjectErrors(b?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,Aie,x,p,t.options.compileOnSave,b?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,p,m).updateGraph()}n&&(this.cleanupConfiguredProjects(s,new Set([t.projectFileName])),this.printProjects())}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,n,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${n.name} from candidate paths: ${i.join(",")}`),!n.name||Hu(n.name)||/[\\/]\.\.?(?:$|[\\/])/.test(n.name)){this.logger.info(`Skipped loading plugin ${n.name||JSON.stringify(n)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let s=iD.importServicePluginAsync(n,i,this.host,p=>this.logger.info(p));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let l=this.pendingPluginEnablements.get(t);l||this.pendingPluginEnablements.set(t,l=[]),l.push(s);return}this.endEnablePlugin(t,iD.importServicePluginSync(n,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:n,resolvedModule:i,errorLogs:s}){var l;if(i){let p=(l=this.currentPluginConfigOverrides)==null?void 0:l.get(n.name);if(p){let g=n.name;n=p,n.name=g}t.enableProxy(i,n)}else Ge(s,p=>this.logger.info(p)),this.logger.info(`Couldn't find ${n.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=Ka(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){I.assert(this.currentPluginEnablementPromise===void 0);let n=!1;await Promise.all(Dt(t,async([i,s])=>{let l=await Promise.all(s);if(i.isClosed()||pj(i)){this.logger.info(`Cancelling plugin enabling for ${i.getProjectName()} as it is ${i.isClosed()?"closed":"deferred close"}`);return}n=!0;for(let p of l)this.endEnablePlugin(i,p);this.delayUpdateProjectGraph(i)})),this.currentPluginEnablementPromise=void 0,n&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(t){this.forEachEnabledProject(n=>n.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,n,i){let s=this.packageJsonCache,l=i&&this.toPath(i),p=[],g=m=>{switch(s.directoryHasPackageJson(m)){case 3:return s.searchDirectoryAndAncestors(m,n),g(m);case-1:let x=gi(m,"package.json");this.watchPackageJsonFile(x,this.toPath(x),n);let b=s.getInDirectory(m);b&&p.push(b)}if(l&&l===m)return!0};return My(n,Ei(t),g),p}getNearestAncestorDirectoryWithPackageJson(t,n){return My(n,t,i=>{switch(this.packageJsonCache.directoryHasPackageJson(i)){case-1:return i;case 0:return;case 3:return this.host.fileExists(gi(i,"package.json"))?i:void 0}})}watchPackageJsonFile(t,n,i){I.assert(i!==void 0);let s=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(n);if(!s){let l=this.watchFactory.watchFile(t,(p,g)=>{switch(g){case 0:case 1:this.packageJsonCache.addOrUpdate(p,n),this.onPackageJsonChange(s);break;case 2:this.packageJsonCache.delete(n),this.onPackageJsonChange(s),s.projects.clear(),s.close()}},250,this.hostConfiguration.watchOptions,ep.PackageJson);s={projects:new Set,close:()=>{var p;s.projects.size||!l||(l.close(),l=void 0,(p=this.packageJsonFilesMap)==null||p.delete(n),this.packageJsonCache.invalidate(n))}},this.packageJsonFilesMap.set(n,s)}s.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(s)}onPackageJsonChange(t){t.projects.forEach(n=>{var i;return(i=n.onPackageJsonChange)==null?void 0:i.call(n)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=b$t())}};jYe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var cke=jYe;function b$t(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function lke(e){return e.kind!==void 0}function uke(e){e.print(!1,!1,!1)}function pke(e){let t,n,i,s={get(m,x,b,S){if(!(!n||i!==p(m,b,S)))return n.get(x)},set(m,x,b,S,P,E,N){if(l(m,b,S).set(x,g(P,E,N,void 0,!1)),N){for(let F of E)if(F.isInNodeModules){let M=F.path.substring(0,F.path.indexOf(Bv)+Bv.length-1),L=e.toPath(M);t?.has(L)||(t||(t=new Map)).set(L,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(m,x,b,S,P){let E=l(m,b,S),N=E.get(x);N?N.modulePaths=P:E.set(x,g(void 0,P,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(m,x,b,S,P,E){let N=l(m,b,S),F=N.get(x);F?(F.isBlockedByPackageJsonDependencies=E,F.packageName=P):N.set(x,g(void 0,void 0,void 0,P,E))},clear(){t?.forEach(hg),n?.clear(),t?.clear(),i=void 0},count(){return n?n.size:0}};return I.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function l(m,x,b){let S=p(m,x,b);return n&&i!==S&&s.clear(),i=S,n||(n=new Map)}function p(m,x,b){return`${m},${x.importModuleSpecifierEnding},${x.importModuleSpecifierPreference},${b.overrideImportMode}`}function g(m,x,b,S,P){return{kind:m,modulePaths:x,moduleSpecifiers:b,packageName:S,isBlockedByPackageJsonDependencies:P}}}function fke(e){let t=new Map,n=new Map;return{addOrUpdate:i,invalidate:s,delete:p=>{t.delete(p),n.set(Ei(p),!0)},getInDirectory:p=>t.get(e.toPath(gi(p,"package.json")))||void 0,directoryHasPackageJson:p=>l(e.toPath(p)),searchDirectoryAndAncestors:(p,g)=>{My(g,p,m=>{let x=e.toPath(m);if(l(x)!==3)return!0;let b=gi(m,"package.json");V3(e,b)?i(b,gi(x,"package.json")):n.set(x,!0)})}};function i(p,g){let m=I.checkDefined(cre(p,e.host));t.set(g,m),n.delete(Ei(g))}function s(p){t.delete(p),n.delete(Ei(p))}function l(p){return t.has(gi(p,"package.json"))?-1:n.has(p)?0:3}}var LYe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function x$t(e){let t=e[0],n=e[1];return(1e9*t+n)/1e6}function BYe(e,t){if((PA(e)||lj(e))&&e.isJsOnlyProject()){let n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function S$t(e){return y_(e)||!!e.emitDecoratorMetadata}function qYe(e,t,n){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(n.start),end:i.positionToLineOffset(n.start+n.length),text:Uh(n.messageText,`
|
|
`),code:n.code,category:hr(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:Dt(n.relatedInformation,Rie)}}function Rie(e){return e.file?{span:{start:DA($s(e.file,e.start)),end:DA($s(e.file,e.start+e.length)),file:e.file.fileName},message:Uh(e.messageText,`
|
|
`),category:hr(e),code:e.code}:{message:Uh(e.messageText,`
|
|
`),category:hr(e),code:e.code}}function DA(e){return{line:e.line+1,offset:e.character+1}}function _j(e,t){let n=e.file&&DA($s(e.file,e.start)),i=e.file&&DA($s(e.file,e.start+e.length)),s=Uh(e.messageText,`
|
|
`),{code:l,source:p}=e,g=hr(e),m={start:n,end:i,text:s,code:l,category:g,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:p,relatedInformation:Dt(e.relatedInformation,Rie)};return t?{...m,fileName:e.file&&e.file.fileName}:m}function T$t(e,t){return e.every(n=>ml(n.span)<t)}var JYe=Fwe;function _ke(e,t,n,i){let s=t.hasLevel(3),l=JSON.stringify(e);return s&&t.info(`${e.type}:${XS(e)}`),`Content-Length: ${1+n(l,"utf8")}\r
|
|
\r
|
|
${l}${i}`}var w$t=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId,this.performanceData),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0),this.performanceData=void 0}immediate(e,t){let n=this.requestId;I.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,n){let i=this.requestId;I.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(n),this.performanceData)},t,e))}executeAction(e){var t,n,i,s,l,p;let g=!1;try{this.operationHost.isCancellationRequested()?(g=!0,(t=Fn)==null||t.instant(Fn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((n=Fn)==null||n.push(Fn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=Fn)==null||i.pop())}catch(m){(s=Fn)==null||s.popAll(),g=!0,m instanceof DP?(l=Fn)==null||l.instant(Fn.Phase.Session,"stepCanceled",{seq:this.requestId}):((p=Fn)==null||p.instant(Fn.Phase.Session,"stepError",{seq:this.requestId,message:m.message}),this.operationHost.logError(m,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(g||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function dke(e,t){return{seq:0,type:"event",event:e,body:t}}function k$t(e,t,n,i){let s=xl(cs(n)?n:n.projects,l=>i(l,e));return!cs(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((l,p)=>{let g=t(p);s.push(...li(l,m=>i(m,g)))}),zb(s,pv)}function jie(e){return vP(({textSpan:t})=>t.start+100003*t.length,Hte(e))}function C$t(e,t,n,i,s,l,p){let g=mke(e,t,n,zYe(t,n,!0),$Ye,(b,S)=>b.getLanguageService().findRenameLocations(S.fileName,S.pos,i,s,l),(b,S)=>S(l8(b)));if(cs(g))return g;let m=[],x=jie(p);return g.forEach((b,S)=>{for(let P of b)!x.has(P)&&!Lie(l8(P),S)&&(m.push(P),x.add(P))}),m}function zYe(e,t,n){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),s=i&&Yl(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function P$t(e,t,n,i,s){var l,p;let g=mke(e,t,n,zYe(t,n,!1),$Ye,(S,P)=>(s.info(`Finding references to ${P.fileName} position ${P.pos} in project ${S.getProjectName()}`),S.getLanguageService().findReferences(P.fileName,P.pos)),(S,P)=>{P(l8(S.definition));for(let E of S.references)P(l8(E))});if(cs(g))return g;let m=g.get(t);if(((p=(l=m?.[0])==null?void 0:l.references[0])==null?void 0:p.isDefinition)===void 0)g.forEach(S=>{for(let P of S)for(let E of P.references)delete E.isDefinition});else{let S=jie(i);for(let E of m)for(let N of E.references)if(N.isDefinition){S.add(N);break}let P=new Set;for(;;){let E=!1;if(g.forEach((N,F)=>{if(P.has(F))return;F.getLanguageService().updateIsDefinitionOfReferencedSymbols(N,S)&&(P.add(F),E=!0)}),!E)break}g.forEach((E,N)=>{if(!P.has(N))for(let F of E)for(let M of F.references)M.isDefinition=!1})}let x=[],b=jie(i);return g.forEach((S,P)=>{for(let E of S){let N=Lie(l8(E.definition),P),F=N===void 0?E.definition:{...E.definition,textSpan:Sp(N.pos,E.definition.textSpan.length),fileName:N.fileName,contextSpan:D$t(E.definition,P)},M=Ir(x,L=>Vte(L.definition,F,i));M||(M={definition:F,references:[]},x.push(M));for(let L of E.references)!b.has(L)&&!Lie(l8(L),P)&&(b.add(L),M.references.push(L))}}),x.filter(S=>S.references.length!==0)}function WYe(e,t,n){for(let i of cs(e)?e:e.projects)n(i,t);!cs(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(let l of i)n(l,s)})}function mke(e,t,n,i,s,l,p){let g=new Map,m=i2();m.enqueue({project:t,location:n}),WYe(e,n.fileName,(F,M)=>{let L={fileName:M,pos:n.pos};m.enqueue({project:F,location:L})});let x=t.projectService,b=t.getCancellationToken(),S=Cu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),P=Cu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetSourcePosition(i)),E=new Set;e:for(;!m.isEmpty();){for(;!m.isEmpty();){if(b.isCancellationRequested())break e;let{project:F,location:M}=m.dequeue();if(g.has(F)||VYe(F,M)||(Gm(F),!F.containsFile(wc(M.fileName))))continue;let L=N(F,M);g.set(F,L??Uu),E.add(E$t(F))}i&&(x.loadAncestorProjectTree(E),x.forEachEnabledProject(F=>{if(b.isCancellationRequested()||g.has(F))return;let M=s(i,F,S,P);M&&m.enqueue({project:F,location:M})}))}if(g.size===1)return U7(g.values());return g;function N(F,M){let L=l(F,M);if(!L||!p)return L;for(let W of L)p(W,z=>{let H=x.getOriginalLocationEnsuringConfiguredProject(F,z);if(!H)return;let X=x.getScriptInfo(H.fileName);for(let ae of X.containingProjects)!ae.isOrphan()&&!g.has(ae)&&m.enqueue({project:ae,location:H});let ne=x.getSymlinkedProjects(X);ne&&ne.forEach((ae,Y)=>{for(let Ee of ae)!Ee.isOrphan()&&!g.has(Ee)&&m.enqueue({project:Ee,location:{fileName:Y,pos:H.pos}})})});return L}}function UYe(e,t){if(t.containsFile(wc(e.fileName))&&!VYe(t,e))return e}function $Ye(e,t,n,i){let s=UYe(e,t);if(s)return s;let l=n();if(l&&t.containsFile(wc(l.fileName)))return l;let p=i();return p&&t.containsFile(wc(p.fileName))?p:void 0}function VYe(e,t){if(!t)return!1;let n=e.getLanguageService().getProgram();if(!n)return!1;let i=n.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function E$t(e){return V1(e)?e.canonicalConfigFilePath:e.getProjectName()}function l8({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function Lie(e,t){return q3(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function HYe(e,t){return wU(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function D$t(e,t){return Kte(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}var GYe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],O$t=[...GYe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],KYe=class Doe{constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let l={version:ye};return this.requiredResponse(l)},openExternalProject:l=>(this.projectService.openExternalProject(l.arguments,!0),this.requiredResponse(!0)),openExternalProjects:l=>(this.projectService.openExternalProjects(l.arguments.projects),this.requiredResponse(!0)),closeExternalProject:l=>(this.projectService.closeExternalProject(l.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:l=>{let p=this.projectService.synchronizeProjectList(l.arguments.knownProjects,l.arguments.includeProjectReferenceRedirectInfo);if(!p.some(m=>m.projectErrors&&m.projectErrors.length!==0))return this.requiredResponse(p);let g=Dt(p,m=>!m.projectErrors||m.projectErrors.length===0?m:{info:m.info,changes:m.changes,files:m.files,projectErrors:this.convertToDiagnosticsWithLinePosition(m.projectErrors,void 0)});return this.requiredResponse(g)},updateOpen:l=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(l.arguments.openFiles&&ci(l.arguments.openFiles,p=>({fileName:p.file,content:p.fileContent,scriptKind:p.scriptKindName,projectRootPath:p.projectRootPath})),l.arguments.changedFiles&&ci(l.arguments.changedFiles,p=>({fileName:p.fileName,changes:pf(_I(p.textChanges),g=>{let m=I.checkDefined(this.projectService.getScriptInfo(p.fileName)),x=m.lineOffsetToPosition(g.start.line,g.start.offset),b=m.lineOffsetToPosition(g.end.line,g.end.offset);return x>=0?{span:{start:x,length:b-x},newText:g.newText}:void 0})})),l.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:l=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(l.arguments.openFiles,l.arguments.changedFiles&&ci(l.arguments.changedFiles,p=>({fileName:p.fileName,changes:_I(p.changes)})),l.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:l=>this.requiredResponse(this.getDefinition(l.arguments,!0)),"definition-full":l=>this.requiredResponse(this.getDefinition(l.arguments,!1)),definitionAndBoundSpan:l=>this.requiredResponse(this.getDefinitionAndBoundSpan(l.arguments,!0)),"definitionAndBoundSpan-full":l=>this.requiredResponse(this.getDefinitionAndBoundSpan(l.arguments,!1)),findSourceDefinition:l=>this.requiredResponse(this.findSourceDefinition(l.arguments)),"emit-output":l=>this.requiredResponse(this.getEmitOutput(l.arguments)),typeDefinition:l=>this.requiredResponse(this.getTypeDefinition(l.arguments)),implementation:l=>this.requiredResponse(this.getImplementation(l.arguments,!0)),"implementation-full":l=>this.requiredResponse(this.getImplementation(l.arguments,!1)),references:l=>this.requiredResponse(this.getReferences(l.arguments,!0)),"references-full":l=>this.requiredResponse(this.getReferences(l.arguments,!1)),rename:l=>this.requiredResponse(this.getRenameLocations(l.arguments,!0)),"renameLocations-full":l=>this.requiredResponse(this.getRenameLocations(l.arguments,!1)),"rename-full":l=>this.requiredResponse(this.getRenameInfo(l.arguments)),open:l=>(this.openClientFile(wc(l.arguments.file),l.arguments.fileContent,Oie(l.arguments.scriptKindName),l.arguments.projectRootPath?wc(l.arguments.projectRootPath):void 0),this.notRequired(l)),quickinfo:l=>this.requiredResponse(this.getQuickInfoWorker(l.arguments,!0)),"quickinfo-full":l=>this.requiredResponse(this.getQuickInfoWorker(l.arguments,!1)),getOutliningSpans:l=>this.requiredResponse(this.getOutliningSpans(l.arguments,!0)),outliningSpans:l=>this.requiredResponse(this.getOutliningSpans(l.arguments,!1)),todoComments:l=>this.requiredResponse(this.getTodoComments(l.arguments)),indentation:l=>this.requiredResponse(this.getIndentation(l.arguments)),nameOrDottedNameSpan:l=>this.requiredResponse(this.getNameOrDottedNameSpan(l.arguments)),breakpointStatement:l=>this.requiredResponse(this.getBreakpointStatement(l.arguments)),braceCompletion:l=>this.requiredResponse(this.isValidBraceCompletion(l.arguments)),docCommentTemplate:l=>this.requiredResponse(this.getDocCommentTemplate(l.arguments)),getSpanOfEnclosingComment:l=>this.requiredResponse(this.getSpanOfEnclosingComment(l.arguments)),fileReferences:l=>this.requiredResponse(this.getFileReferences(l.arguments,!0)),"fileReferences-full":l=>this.requiredResponse(this.getFileReferences(l.arguments,!1)),format:l=>this.requiredResponse(this.getFormattingEditsForRange(l.arguments)),formatonkey:l=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(l.arguments)),"format-full":l=>this.requiredResponse(this.getFormattingEditsForDocumentFull(l.arguments)),"formatonkey-full":l=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(l.arguments)),"formatRange-full":l=>this.requiredResponse(this.getFormattingEditsForRangeFull(l.arguments)),completionInfo:l=>this.requiredResponse(this.getCompletions(l.arguments,"completionInfo")),completions:l=>this.requiredResponse(this.getCompletions(l.arguments,"completions")),"completions-full":l=>this.requiredResponse(this.getCompletions(l.arguments,"completions-full")),completionEntryDetails:l=>this.requiredResponse(this.getCompletionEntryDetails(l.arguments,!1)),"completionEntryDetails-full":l=>this.requiredResponse(this.getCompletionEntryDetails(l.arguments,!0)),compileOnSaveAffectedFileList:l=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(l.arguments)),compileOnSaveEmitFile:l=>this.requiredResponse(this.emitFile(l.arguments)),signatureHelp:l=>this.requiredResponse(this.getSignatureHelpItems(l.arguments,!0)),"signatureHelp-full":l=>this.requiredResponse(this.getSignatureHelpItems(l.arguments,!1)),"compilerOptionsDiagnostics-full":l=>this.requiredResponse(this.getCompilerOptionsDiagnostics(l.arguments)),"encodedSyntacticClassifications-full":l=>this.requiredResponse(this.getEncodedSyntacticClassifications(l.arguments)),"encodedSemanticClassifications-full":l=>this.requiredResponse(this.getEncodedSemanticClassifications(l.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:l=>this.requiredResponse(this.getSemanticDiagnosticsSync(l.arguments)),syntacticDiagnosticsSync:l=>this.requiredResponse(this.getSyntacticDiagnosticsSync(l.arguments)),suggestionDiagnosticsSync:l=>this.requiredResponse(this.getSuggestionDiagnosticsSync(l.arguments)),geterr:l=>(this.errorCheck.startNew(p=>this.getDiagnostics(p,l.arguments.delay,l.arguments.files)),this.notRequired(void 0)),geterrForProject:l=>(this.errorCheck.startNew(p=>this.getDiagnosticsForProject(p,l.arguments.delay,l.arguments.file)),this.notRequired(void 0)),change:l=>(this.change(l.arguments),this.notRequired(l)),configure:l=>(this.projectService.setHostConfiguration(l.arguments),this.notRequired(l)),reload:l=>(this.reload(l.arguments),this.requiredResponse({reloadFinished:!0})),saveto:l=>{let p=l.arguments;return this.saveToTmp(p.file,p.tmpfile),this.notRequired(l)},close:l=>{let p=l.arguments;return this.closeClientFile(p.file),this.notRequired(l)},navto:l=>this.requiredResponse(this.getNavigateToItems(l.arguments,!0)),"navto-full":l=>this.requiredResponse(this.getNavigateToItems(l.arguments,!1)),brace:l=>this.requiredResponse(this.getBraceMatching(l.arguments,!0)),"brace-full":l=>this.requiredResponse(this.getBraceMatching(l.arguments,!1)),navbar:l=>this.requiredResponse(this.getNavigationBarItems(l.arguments,!0)),"navbar-full":l=>this.requiredResponse(this.getNavigationBarItems(l.arguments,!1)),navtree:l=>this.requiredResponse(this.getNavigationTree(l.arguments,!0)),"navtree-full":l=>this.requiredResponse(this.getNavigationTree(l.arguments,!1)),documentHighlights:l=>this.requiredResponse(this.getDocumentHighlights(l.arguments,!0)),"documentHighlights-full":l=>this.requiredResponse(this.getDocumentHighlights(l.arguments,!1)),compilerOptionsForInferredProjects:l=>(this.setCompilerOptionsForInferredProjects(l.arguments),this.requiredResponse(!0)),projectInfo:l=>this.requiredResponse(this.getProjectInfo(l.arguments)),reloadProjects:l=>(this.projectService.reloadProjects(),this.notRequired(l)),jsxClosingTag:l=>this.requiredResponse(this.getJsxClosingTag(l.arguments)),linkedEditingRange:l=>this.requiredResponse(this.getLinkedEditingRange(l.arguments)),getCodeFixes:l=>this.requiredResponse(this.getCodeFixes(l.arguments,!0)),"getCodeFixes-full":l=>this.requiredResponse(this.getCodeFixes(l.arguments,!1)),getCombinedCodeFix:l=>this.requiredResponse(this.getCombinedCodeFix(l.arguments,!0)),"getCombinedCodeFix-full":l=>this.requiredResponse(this.getCombinedCodeFix(l.arguments,!1)),applyCodeActionCommand:l=>this.requiredResponse(this.applyCodeActionCommand(l.arguments)),getSupportedCodeFixes:l=>this.requiredResponse(this.getSupportedCodeFixes(l.arguments)),getApplicableRefactors:l=>this.requiredResponse(this.getApplicableRefactors(l.arguments)),getEditsForRefactor:l=>this.requiredResponse(this.getEditsForRefactor(l.arguments,!0)),getMoveToRefactoringFileSuggestions:l=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(l.arguments)),preparePasteEdits:l=>this.requiredResponse(this.preparePasteEdits(l.arguments)),getPasteEdits:l=>this.requiredResponse(this.getPasteEdits(l.arguments)),"getEditsForRefactor-full":l=>this.requiredResponse(this.getEditsForRefactor(l.arguments,!1)),organizeImports:l=>this.requiredResponse(this.organizeImports(l.arguments,!0)),"organizeImports-full":l=>this.requiredResponse(this.organizeImports(l.arguments,!1)),getEditsForFileRename:l=>this.requiredResponse(this.getEditsForFileRename(l.arguments,!0)),"getEditsForFileRename-full":l=>this.requiredResponse(this.getEditsForFileRename(l.arguments,!1)),configurePlugin:l=>(this.configurePlugin(l.arguments),this.notRequired(l)),selectionRange:l=>this.requiredResponse(this.getSmartSelectionRange(l.arguments,!0)),"selectionRange-full":l=>this.requiredResponse(this.getSmartSelectionRange(l.arguments,!1)),prepareCallHierarchy:l=>this.requiredResponse(this.prepareCallHierarchy(l.arguments)),provideCallHierarchyIncomingCalls:l=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(l.arguments)),provideCallHierarchyOutgoingCalls:l=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(l.arguments)),toggleLineComment:l=>this.requiredResponse(this.toggleLineComment(l.arguments,!0)),"toggleLineComment-full":l=>this.requiredResponse(this.toggleLineComment(l.arguments,!1)),toggleMultilineComment:l=>this.requiredResponse(this.toggleMultilineComment(l.arguments,!0)),"toggleMultilineComment-full":l=>this.requiredResponse(this.toggleMultilineComment(l.arguments,!1)),commentSelection:l=>this.requiredResponse(this.commentSelection(l.arguments,!0)),"commentSelection-full":l=>this.requiredResponse(this.commentSelection(l.arguments,!1)),uncommentSelection:l=>this.requiredResponse(this.uncommentSelection(l.arguments,!0)),"uncommentSelection-full":l=>this.requiredResponse(this.uncommentSelection(l.arguments,!1)),provideInlayHints:l=>this.requiredResponse(this.provideInlayHints(l.arguments)),mapCode:l=>this.requiredResponse(this.mapCode(l.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||I$,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:n}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(l=>this.defaultEventHandler(l)):void 0;let i={executeWithRequestId:(l,p,g)=>this.executeWithRequestId(l,p,g),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(l,p)=>this.logError(l,p),sendRequestCompletedEvent:(l,p)=>this.sendRequestCompletedEvent(l,p),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new w$t(i);let s={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new cke(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Awe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:GYe.forEach(l=>this.handlers.set(l,p=>{throw new Error(`Request: ${p.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:O$t.forEach(l=>this.handlers.set(l,p=>{throw new Error(`Request: ${p.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:I.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t,n){this.event({request_seq:t,performanceData:n&&QYe(n)},"requestCompleted")}addPerformanceData(t,n){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+n}addDiagnosticsPerformanceData(t,n,i){var s,l;this.performanceData||(this.performanceData={});let p=(s=this.performanceData.diagnosticsDuration)==null?void 0:s.get(t);p||((l=this.performanceData).diagnosticsDuration??(l.diagnosticsDuration=new Map)).set(t,p={}),p[n]=i}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case N$:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case bie:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case xie:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case Sie:case Cie:case Pie:case Eie:this.event(t.data,t.eventName);break;case Tie:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Dt(t.data.diagnostics,n=>_j(n,!0))},t.eventName);break;case wie:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case kie:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(n=>this.updateErrorCheck(n,t,100,!0))),this.event({openFiles:t},N$))}logError(t,n){this.logErrorWorker(t,n)}logErrorWorker(t,n,i){let s="Exception on executing command "+n;if(t.message&&(s+=`:
|
|
`+I3(t.message),t.stack&&(s+=`
|
|
`+I3(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:l,project:p}=this.getFileAndProject(i),g=p.getScriptInfoForNormalizedPath(l);if(g){let m=UE(g.getSnapshot());s+=`
|
|
|
|
File text of ${i.file}:${I3(m)}
|
|
`}}catch{}if(t.ProgramFiles){s+=`
|
|
|
|
Program files: ${JSON.stringify(t.ProgramFiles)}
|
|
`,s+=`
|
|
|
|
Projects::
|
|
`;let l=0,p=g=>{s+=`
|
|
Project '${g.projectName}' (${c8[g.projectKind]}) ${l}
|
|
`,s+=g.filesToString(!0),s+=`
|
|
-----------------------------------------------
|
|
`,l++};this.projectService.externalProjects.forEach(p),this.projectService.configuredProjects.forEach(p),this.projectService.inferredProjects.forEach(p)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${XS(t)}`);return}this.writeMessage(t)}writeMessage(t){let n=_ke(t,this.logger,this.byteLength,this.host.newLine);this.host.write(n)}event(t,n){this.send(dke(n,t))}doOutput(t,n,i,s,l,p){let g={seq:0,type:"response",command:n,request_seq:i,success:s,performanceData:l&&QYe(l)};if(s){let m;if(cs(t))g.body=t,m=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:x,...b}=t;g.body=b,m=x}else g.body=t;else g.body=t;m&&(g.metadata=m)}else I.assert(t===void 0);p&&(g.message=p),this.send(g)}semanticCheck(t,n){var i,s;let l=xc();(i=Fn)==null||i.push(Fn.Phase.Session,"semanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let p=BYe(n,t)?Uu:n.getLanguageService().getSemanticDiagnostics(t).filter(g=>!!g.file);this.sendDiagnosticsEvent(t,n,p,"semanticDiag",l),(s=Fn)==null||s.pop()}syntacticCheck(t,n){var i,s;let l=xc();(i=Fn)==null||i.push(Fn.Phase.Session,"syntacticCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",l),(s=Fn)==null||s.pop()}suggestionCheck(t,n){var i,s;let l=xc();(i=Fn)==null||i.push(Fn.Phase.Session,"suggestionCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",l),(s=Fn)==null||s.pop()}regionSemanticCheck(t,n,i){var s,l,p;let g=xc();(s=Fn)==null||s.push(Fn.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let m;if(!this.shouldDoRegionCheck(t)||!(m=n.getLanguageService().getRegionSemanticDiagnostics(t,i))){(l=Fn)==null||l.pop();return}this.sendDiagnosticsEvent(t,n,m.diagnostics,"regionSemanticDiag",g,m.spans),(p=Fn)==null||p.pop()}shouldDoRegionCheck(t){var n;let i=(n=this.projectService.getScriptInfoForNormalizedPath(t))==null?void 0:n.textStorage.getLineInfo().getLineCount();return!!(i&&i>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(t,n,i,s,l,p){try{let g=I.checkDefined(n.getScriptInfo(t)),m=xc()-l,x={file:t,diagnostics:i.map(b=>qYe(t,n,b)),spans:p?.map(b=>Kh(b,g))};this.event(x,s),this.addDiagnosticsPerformanceData(t,s,m)}catch(g){this.logError(g,s)}}updateErrorCheck(t,n,i,s=!0){if(n.length===0)return;I.assert(!this.suppressDiagnosticEvents);let l=this.changeSeq,p=Math.min(i,200),g=0,m=()=>{if(g++,n.length>g)return t.delay("checkOne",p,b)},x=(S,P)=>{if(this.semanticCheck(S,P),this.changeSeq===l){if(this.getPreferences(S).disableSuggestions)return m();t.immediate("suggestionCheck",()=>{this.suggestionCheck(S,P),m()})}},b=()=>{if(this.changeSeq!==l)return;let S,P=n[g];if(Ua(P)?P=this.toPendingErrorCheck(P):"ranges"in P&&(S=P.ranges,P=this.toPendingErrorCheck(P.file)),!P)return m();let{fileName:E,project:N}=P;if(Gm(N),!!N.containsFile(E,s)&&(this.syntacticCheck(E,N),this.changeSeq===l)){if(N.projectService.serverMode!==0)return m();if(S)return t.immediate("regionSemanticCheck",()=>{let F=this.projectService.getScriptInfoForNormalizedPath(E);F&&this.regionSemanticCheck(E,N,S.map(M=>this.getRange({file:E,...M},F))),this.changeSeq===l&&t.immediate("semanticCheck",()=>x(E,N))});t.immediate("semanticCheck",()=>x(E,N))}};n.length>g&&this.changeSeq===l&&t.delay("checkOne",i,b)}cleanProjects(t,n){if(n){this.logger.info(`cleaning ${t}`);for(let i of n)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ka(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(n,t)}getEncodedSemanticClassifications(t){let{file:n,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(n,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let n=this.getProject(t.projectFileName),i=wc(t.file);return{configFile:n&&n.hasConfigFile(i)?i:void 0,project:n}}getConfigFileDiagnostics(t,n,i){let s=n.getAllProjectErrors(),l=n.getLanguageService().getCompilerOptionsDiagnostics(),p=Cn(ya(s,l),g=>!!g.file&&g.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(p):Dt(p,g=>_j(g,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(n=>({message:Uh(n.messageText,this.host.newLine),start:n.start,length:n.length,category:hr(n),code:n.code,source:n.source,startLocation:n.file&&DA($s(n.file,n.start)),endLocation:n.file&&DA($s(n.file,n.start+n.length)),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,relatedInformation:Dt(n.relatedInformation,Rie)}))}getCompilerOptionsDiagnostics(t){let n=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Cn(n.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,n){return t.map(i=>({message:Uh(i.messageText,this.host.newLine),start:i.start,length:i.length,category:hr(i),code:i.code,source:i.source,startLocation:n&&n.positionToLineOffset(i.start),endLocation:n&&n.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Dt(i.relatedInformation,Rie)}))}getDiagnosticsWorker(t,n,i,s){let{project:l,file:p}=this.getFileAndProject(t);if(n&&BYe(l,p))return Uu;let g=l.getScriptInfoForNormalizedPath(p),m=i(l,p);return s?this.convertToDiagnosticsWithLinePosition(m,g):m.map(x=>qYe(p,l,x))}getDefinition(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.getPositionInFile(t,i),p=this.mapDefinitionInfoLocations(s.getLanguageService().getDefinitionAtPosition(i,l)||Uu,s);return n?this.mapDefinitionInfo(p,s):p.map(Doe.mapToOriginalLocation)}mapDefinitionInfoLocations(t,n){return t.map(i=>{let s=HYe(i,n);return s?{...s,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.getPositionInFile(t,i),p=I.checkDefined(s.getScriptInfo(i)),g=s.getLanguageService().getDefinitionAndBoundSpan(i,l);if(!g||!g.definitions)return{definitions:Uu,textSpan:void 0};let m=this.mapDefinitionInfoLocations(g.definitions,s),{textSpan:x}=g;return n?{definitions:this.mapDefinitionInfo(m,s),textSpan:Kh(x,p)}:{definitions:m.map(Doe.mapToOriginalLocation),textSpan:x}}findSourceDefinition(t){var n;let{file:i,project:s}=this.getFileAndProject(t),l=this.getPositionInFile(t,i),p=s.getLanguageService().getDefinitionAtPosition(i,l),g=this.mapDefinitionInfoLocations(p||Uu,s).slice();if(this.projectService.serverMode===0&&(!Pt(g,E=>wc(E.fileName)!==i&&!E.isAmbient)||Pt(g,E=>!!E.failedAliasResolution))){let E=vP(L=>L.textSpan.start,Hte(this.host.useCaseSensitiveFileNames));g?.forEach(L=>E.add(L));let N=s.getNoDtsResolutionProject(i),F=N.getLanguageService(),M=(n=F.getDefinitionAtPosition(i,l,!0,!1))==null?void 0:n.filter(L=>wc(L.fileName)!==i);if(Pt(M))for(let L of M){if(L.unverified){let W=S(L,s.getLanguageService().getProgram(),F.getProgram());if(Pt(W)){for(let z of W)E.add(z);continue}}E.add(L)}else{let L=g.filter(W=>wc(W.fileName)!==i&&W.isAmbient);for(let W of Pt(L)?L:b()){let z=x(W.fileName,i,N);if(!z)continue;let H=this.projectService.getOrCreateScriptInfoNotOpenedByClient(z,N.currentDirectory,N.directoryStructureHost,!1);if(!H)continue;N.containsScriptInfo(H)||(N.addRoot(H),N.updateGraph());let X=F.getProgram(),ne=I.checkDefined(X.getSourceFile(z));for(let ae of P(W.name,ne,X))E.add(ae)}}g=Ka(E.values())}return g=g.filter(E=>!E.isAmbient&&!E.failedAliasResolution),this.mapDefinitionInfo(g,s);function x(E,N,F){var M,L,W;let z=YJ(E);if(z&&E.lastIndexOf(Bv)===z.topLevelNodeModulesIndex){let H=E.substring(0,z.packageRootIndex),X=(M=s.getModuleResolutionCache())==null?void 0:M.getPackageJsonInfoCache(),ne=s.getCompilationSettings(),ae=m3(Qa(H,s.getCurrentDirectory()),d3(X,s,ne));if(!ae)return;let Y=mZ(ae,{moduleResolution:2},s,s.getModuleResolutionCache()),Ee=E.substring(z.topLevelPackageNameIndex+1,z.packageRootIndex),fe=g3(MM(Ee)),te=s.toPath(E);if(Y&&Pt(Y,de=>s.toPath(de)===te))return(L=F.resolutionCache.resolveSingleModuleNameWithoutWatching(fe,N).resolvedModule)==null?void 0:L.resolvedFileName;{let de=E.substring(z.packageRootIndex+1),me=`${fe}/${yf(de)}`;return(W=F.resolutionCache.resolveSingleModuleNameWithoutWatching(me,N).resolvedModule)==null?void 0:W.resolvedFileName}}}function b(){let E=s.getLanguageService(),N=E.getProgram(),F=r_(N.getSourceFile(i),l);return(Ho(F)||Ye(F))&&Lc(F.parent)&&_ge(F,M=>{var L;if(M===F)return;let W=(L=E.getDefinitionAtPosition(i,M.getStart(),!0,!1))==null?void 0:L.filter(z=>wc(z.fileName)!==i&&z.isAmbient).map(z=>({fileName:z.fileName,name:lm(F)}));if(Pt(W))return W})||Uu}function S(E,N,F){var M;let L=F.getSourceFile(E.fileName);if(!L)return;let W=r_(N.getSourceFile(i),l),z=N.getTypeChecker().getSymbolAtLocation(W),H=z&&Zc(z,276);if(!H)return;let X=((M=H.propertyName)==null?void 0:M.text)||H.name.text;return P(X,L,F)}function P(E,N,F){let M=qc.Core.getTopMostDeclarationNamesInFile(E,N);return Bi(M,L=>{let W=F.getTypeChecker().getSymbolAtLocation(L),z=f4(L);if(W&&z)return wA.createDefinitionInfo(z,F.getTypeChecker(),W,z,!0)})}}getEmitOutput(t){let{file:n,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(n)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let s=i.getLanguageService().getEmitOutput(n);return t.richResponse?{...s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(s.diagnostics):s.diagnostics.map(l=>_j(l,!0))}:s}mapJSDocTagInfo(t,n,i){return t?t.map(s=>{var l;return{...s,text:i?this.mapDisplayParts(s.text,n):(l=s.text)==null?void 0:l.map(p=>p.text).join("")}}):[]}mapDisplayParts(t,n){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,n)}):[]}mapSignatureHelpItems(t,n,i){return t.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,n),parameters:s.parameters.map(l=>({...l,documentation:this.mapDisplayParts(l.documentation,n)})),tags:this.mapJSDocTagInfo(s.tags,n,i)}))}mapDefinitionInfo(t,n){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,n),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(I.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,n,i){let s=i.getLanguageService(),l=s.toLineColumnOffset(t,n.start),p=s.toLineColumnOffset(t,ml(n));return{file:t,start:{line:l.line+1,offset:l.character+1},end:{line:p.line+1,offset:p.character+1}}}toFileSpanWithContext(t,n,i,s){let l=this.toFileSpan(t,n,s),p=i&&this.toFileSpan(t,i,s);return p?{...l,contextStart:p.start,contextEnd:p.end}:l}getTypeDefinition(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),l=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(n,s)||Uu,i);return this.mapDefinitionInfo(l,i)}mapImplementationLocations(t,n){return t.map(i=>{let s=HYe(i,n);return s?{...s,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.getPositionInFile(t,i),p=this.mapImplementationLocations(s.getLanguageService().getImplementationAtPosition(i,l)||Uu,s);return n?p.map(({fileName:g,textSpan:m,contextSpan:x})=>this.toFileSpanWithContext(g,m,x,s)):p.map(Doe.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?Uu:this.getDiagnosticsWorker(t,!1,(i,s)=>i.getLanguageService().getSyntacticDiagnostics(s),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:n,project:i}=this.getConfigFileAndProject(t);return n?this.getConfigFileDiagnostics(n,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(s,l)=>s.getLanguageService().getSemanticDiagnostics(l).filter(p=>!!p.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?Uu:this.getDiagnosticsWorker(t,!0,(i,s)=>i.getLanguageService().getSuggestionDiagnostics(s),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),l=i.getJsxClosingTagAtPosition(n,s);return l===void 0?void 0:{newText:l.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),l=i.getLinkedEditingRangeAtPosition(n,s),p=this.projectService.getScriptInfoForNormalizedPath(n);if(!(p===void 0||l===void 0))return A$t(l,p)}getDocumentHighlights(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.getPositionInFile(t,i),p=s.getLanguageService().getDocumentHighlights(i,l,t.filesToSearch);return p?n?p.map(({fileName:g,highlightSpans:m})=>{let x=s.getScriptInfo(g);return{file:g,highlightSpans:m.map(({textSpan:b,kind:S,contextSpan:P})=>({...gke(b,P,x),kind:S}))}}):p:Uu}provideInlayHints(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);return i.getLanguageService().provideInlayHints(n,t,this.getPreferences(n)).map(p=>{let{position:g,displayParts:m}=p;return{...p,position:s.positionToLineOffset(g),displayParts:m?.map(({text:x,span:b,file:S})=>{if(b){I.assertIsDefined(S,"Target file should be defined together with its span.");let P=this.projectService.getScriptInfo(S);return{text:x,span:{start:P.positionToLineOffset(b.start),end:P.positionToLineOffset(b.start+b.length),file:S}}}else return{text:x}})}})}mapCode(t){var n;let i=this.getHostFormatOptions(),s=this.getHostPreferences(),{file:l,languageService:p}=this.getFileAndLanguageServiceForSyntacticOperation(t),g=this.projectService.getScriptInfoForNormalizedPath(l),m=(n=t.mapping.focusLocations)==null?void 0:n.map(b=>b.map(S=>{let P=g.lineOffsetToPosition(S.start.line,S.start.offset),E=g.lineOffsetToPosition(S.end.line,S.end.offset);return{start:P,length:E-P}})),x=p.mapCode(l,t.mapping.contents,m,i,s);return this.mapTextChangesToCodeEdits(x)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,t.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(t,n,i,s,l){let{project:p}=this.getFileAndProjectWorker(t,n);return Gm(p),{configFileName:p.getProjectName(),languageServiceDisabled:!p.languageServiceEnabled,fileNames:i?p.getFileNames(!1,l):void 0,configuredProjectInfo:s?this.getDefaultConfiguredProjectInfo(t):void 0}}getDefaultConfiguredProjectInfo(t){var n;let i=this.projectService.getScriptInfo(t);if(!i)return;let s=this.projectService.findDefaultConfiguredProjectWorker(i,3);if(!s)return;let l,p;return s.seenProjects.forEach((g,m)=>{m!==s.defaultProject&&(g!==3?(l??(l=[])).push(wc(m.getConfigFilePath())):(p??(p=[])).push(wc(m.getConfigFilePath())))}),(n=s.seenConfigs)==null||n.forEach(g=>(l??(l=[])).push(g)),{notMatchedByConfig:l,notInProject:p,defaultProject:s.defaultProject&&wc(s.defaultProject.getConfigFilePath())}}getRenameInfo(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),l=this.getPreferences(n);return i.getLanguageService().getRenameInfo(n,s,l)}getProjects(t,n,i){let s,l;if(t.projectFileName){let p=this.getProject(t.projectFileName);p&&(s=[p])}else{let p=n?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(p)n||this.projectService.ensureDefaultProjectForFile(p);else return i?Uu:(this.projectService.logErrorForScriptInfoNotFound(t.file),W0.ThrowNoProject());s=p.containingProjects,l=this.projectService.getSymlinkedProjects(p)}return s=Cn(s,p=>p.languageServiceEnabled&&!p.isOrphan()),!i&&(!s||!s.length)&&!l?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),W0.ThrowNoProject()):l?{projects:s,symLinkedProjects:l}:s}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return W0.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,n){let i=wc(t.file),s=this.getPositionInFile(t,i),l=this.getProjects(t),p=this.getDefaultProject(t),g=this.getPreferences(i),m=this.mapRenameInfo(p.getLanguageService().getRenameInfo(i,s,g),I.checkDefined(this.projectService.getScriptInfo(i)));if(!m.canRename)return n?{info:m,locs:[]}:[];let x=C$t(l,p,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,g,this.host.useCaseSensitiveFileNames);return n?{info:m,locs:this.toSpanGroups(x)}:x}mapRenameInfo(t,n){if(t.canRename){let{canRename:i,fileToRename:s,displayName:l,fullDisplayName:p,kind:g,kindModifiers:m,triggerSpan:x}=t;return{canRename:i,fileToRename:s,displayName:l,fullDisplayName:p,kind:g,kindModifiers:m,triggerSpan:Kh(x,n)}}else return t}toSpanGroups(t){let n=new Map;for(let{fileName:i,textSpan:s,contextSpan:l,originalContextSpan:p,originalTextSpan:g,originalFileName:m,...x}of t){let b=n.get(i);b||n.set(i,b={file:i,locs:[]});let S=I.checkDefined(this.projectService.getScriptInfo(i));b.locs.push({...gke(s,l,S),...x})}return Ka(n.values())}getReferences(t,n){let i=wc(t.file),s=this.getProjects(t),l=this.getPositionInFile(t,i),p=P$t(s,this.getDefaultProject(t),{fileName:t.file,pos:l},this.host.useCaseSensitiveFileNames,this.logger);if(!n)return p;let g=this.getPreferences(i),m=this.getDefaultProject(t),x=m.getScriptInfoForNormalizedPath(i),b=m.getLanguageService().getQuickInfoAtPosition(i,l),S=b?jR(b.displayParts):"",P=b&&b.textSpan,E=P?x.positionToLineOffset(P.start).offset:0,N=P?x.getSnapshot().getText(P.start,ml(P)):"";return{refs:li(p,M=>M.references.map(L=>YYe(this.projectService,L,g))),symbolName:N,symbolStartOffset:E,symbolDisplayString:S}}getFileReferences(t,n){let i=this.getProjects(t),s=wc(t.file),l=this.getPreferences(s),p={fileName:s,pos:0},g=mke(i,this.getDefaultProject(t),p,p,UYe,b=>(this.logger.info(`Finding references to file ${s} in project ${b.getProjectName()}`),b.getLanguageService().getFileReferences(s))),m;if(cs(g))m=g;else{m=[];let b=jie(this.host.useCaseSensitiveFileNames);g.forEach(S=>{for(let P of S)b.has(P)||(m.push(P),b.add(P))})}return n?{refs:m.map(b=>YYe(this.projectService,b,l)),symbolName:`"${t.file}"`}:m}openClientFile(t,n,i,s){this.projectService.openClientFileWithNormalizedPath(t,n,i,!1,s)}getPosition(t,n){return t.position!==void 0?t.position:n.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(n);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:n,project:i}=this.getFileAndProject(t);return{file:n,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,n){let i=wc(t),s=this.getProject(n)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:s}}getOutliningSpans(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=s.getOutliningSpans(i);if(n){let p=this.projectService.getScriptInfoForNormalizedPath(i);return l.map(g=>({textSpan:Kh(g.textSpan,p),hintSpan:Kh(g.hintSpan,p),bannerText:g.bannerText,autoCollapse:g.autoCollapse,kind:g.kind}))}else return l}getTodoComments(t){let{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(n,t.descriptors)}getDocCommentTemplate(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getDocCommentTemplateAtPosition(n,s,this.getPreferences(n),this.getFormatOptions(n))}getSpanOfEnclosingComment(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.onlyMultiLine,l=this.getPositionInFile(t,n);return i.getSpanOfEnclosingComment(n,l,s)}getIndentation(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),l=t.options?EA(t.options):this.getFormatOptions(n),p=i.getIndentationAtPosition(n,s,l);return{position:s,indentation:p}}getBreakpointStatement(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getBreakpointStatementAtPosition(n,s)}getNameOrDottedNameSpan(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getNameOrDottedNameSpan(n,s,s)}isValidBraceCompletion(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.isValidBraceCompletionAtPosition(n,s,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,l));if(!p)return;let g=!!this.getPreferences(i).displayPartsForJSDoc;if(n){let m=jR(p.displayParts);return{kind:p.kind,kindModifiers:p.kindModifiers,start:l.positionToLineOffset(p.textSpan.start),end:l.positionToLineOffset(ml(p.textSpan)),displayString:m,documentation:g?this.mapDisplayParts(p.documentation,s):jR(p.documentation),tags:this.mapJSDocTagInfo(p.tags,s,g)}}else return g?p:{...p,tags:this.mapJSDocTagInfo(p.tags,s,!1)}}getFormattingEditsForRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),l=s.lineOffsetToPosition(t.line,t.offset),p=s.lineOffsetToPosition(t.endLine,t.endOffset),g=i.getFormattingEditsForRange(n,l,p,this.getFormatOptions(n));if(g)return g.map(m=>this.convertTextChangeToCodeEdit(m,s))}getFormattingEditsForRangeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?EA(t.options):this.getFormatOptions(n);return i.getFormattingEditsForRange(n,t.position,t.endPosition,s)}getFormattingEditsForDocumentFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?EA(t.options):this.getFormatOptions(n);return i.getFormattingEditsForDocument(n,s)}getFormattingEditsAfterKeystrokeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?EA(t.options):this.getFormatOptions(n);return i.getFormattingEditsAfterKeystroke(n,t.position,t.key,s)}getFormattingEditsAfterKeystroke(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),l=s.lineOffsetToPosition(t.line,t.offset),p=this.getFormatOptions(n),g=i.getFormattingEditsAfterKeystroke(n,l,t.key,p);if(t.key===`
|
|
`&&(!g||g.length===0||T$t(g,l))){let{lineText:m,absolutePosition:x}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(m&&m.search("\\S")<0){let b=i.getIndentationAtPosition(n,l,p),S=0,P,E;for(P=0,E=m.length;P<E;P++)if(m.charAt(P)===" ")S++;else if(m.charAt(P)===" ")S+=p.tabSize;else break;if(b!==S){let N=x+P;g.push({span:Ul(x,N),newText:Su.getIndentationString(b,p)})}}}if(g)return g.map(m=>({start:s.positionToLineOffset(m.span.start),end:s.positionToLineOffset(ml(m.span)),newText:m.newText?m.newText:""}))}getCompletions(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=this.getPosition(t,l),g=s.getLanguageService().getCompletionsAtPosition(i,p,{...Xwe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(g===void 0)return;if(n==="completions-full")return g;let m=t.prefix||"",x=Bi(g.entries,S=>{if(g.isMemberCompletion||La(S.name.toLowerCase(),m.toLowerCase())){let P=S.replacementSpan?Kh(S.replacementSpan,l):void 0;return{...S,replacementSpan:P,hasAction:S.hasAction||void 0,symbol:void 0}}});return n==="completions"?(g.metadata&&(x.metadata=g.metadata),x):{...g,optionalReplacementSpan:g.optionalReplacementSpan&&Kh(g.optionalReplacementSpan,l),entries:x}}getCompletionEntryDetails(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=this.getPosition(t,l),g=s.projectService.getFormatCodeOptions(i),m=!!this.getPreferences(i).displayPartsForJSDoc,x=Bi(t.entryNames,b=>{let{name:S,source:P,data:E}=typeof b=="string"?{name:b,source:void 0,data:void 0}:b;return s.getLanguageService().getCompletionEntryDetails(i,p,S,g,P,this.getPreferences(i),E?Js(E,j$t):void 0)});return n?m?x:x.map(b=>({...b,tags:this.mapJSDocTagInfo(b.tags,s,!1)})):x.map(b=>({...b,codeActions:Dt(b.codeActions,S=>this.mapCodeAction(S)),documentation:this.mapDisplayParts(b.documentation,s),tags:this.mapJSDocTagInfo(b.tags,s,m)}))}getCompileOnSaveAffectedFileList(t){let n=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?k$t(i,s=>this.projectService.getScriptInfoForPath(s),n,(s,l)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;let p=s.getCompilationSettings();if(!(p.noEmit||Wu(l.fileName)&&!S$t(p)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(l),projectUsesOutFile:!!p.outFile}}):Uu}emitFile(t){let{file:n,project:i}=this.getFileAndProject(t);if(i||W0.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let s=i.getScriptInfo(n),{emitSkipped:l,diagnostics:p}=i.emitFile(s,(g,m,x)=>this.host.writeFile(g,m,x));return t.richResponse?{emitSkipped:l,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(p):p.map(g=>_j(g,!0))}:!l}getSignatureHelpItems(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=this.getPosition(t,l),g=s.getLanguageService().getSignatureHelpItems(i,p,t),m=!!this.getPreferences(i).displayPartsForJSDoc;if(g&&n){let x=g.applicableSpan;return{...g,applicableSpan:{start:l.positionToLineOffset(x.start),end:l.positionToLineOffset(x.start+x.length)},items:this.mapSignatureHelpItems(g.items,s,m)}}else return m||!g?g:{...g,items:g.items.map(x=>({...x,tags:this.mapJSDocTagInfo(x.tags,s,!1)}))}}toPendingErrorCheck(t){let n=wc(t),i=this.projectService.tryGetDefaultProjectForFile(n);return i&&{fileName:n,project:i}}getDiagnostics(t,n,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,n)}change(t){let n=this.projectService.getScriptInfo(t.file);I.assert(!!n),n.textStorage.switchToScriptVersionCache();let i=n.lineOffsetToPosition(t.line,t.offset),s=n.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(n,uI({span:{start:i,length:s-i},newText:t.insertString})))}reload(t){let n=wc(t.file),i=t.tmpfile===void 0?void 0:wc(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(n);s&&(this.changeSeq++,s.reloadFromFile(i))}saveToTmp(t,n){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(n)}closeClientFile(t){if(!t)return;let n=Zs(t);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(t,n){return Dt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>Kh(s,n)),childItems:this.mapLocationNavigationBarItems(i.childItems,n),indent:i.indent}))}getNavigationBarItems(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=s.getNavigationBarItems(i);return l?n?this.mapLocationNavigationBarItems(l,this.projectService.getScriptInfoForNormalizedPath(i)):l:void 0}toLocationNavigationTree(t,n){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Kh(i,n)),nameSpan:t.nameSpan&&Kh(t.nameSpan,n),childItems:Dt(t.childItems,i=>this.toLocationNavigationTree(i,n))}}getNavigationTree(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=s.getNavigationTree(i);return l?n?this.toLocationNavigationTree(l,this.projectService.getScriptInfoForNormalizedPath(i)):l:void 0}getNavigateToItems(t,n){let i=this.getFullNavigateToItems(t);return n?li(i,({project:s,navigateToItems:l})=>l.map(p=>{let g=s.getScriptInfo(p.fileName),m={name:p.name,kind:p.kind,kindModifiers:p.kindModifiers,isCaseSensitive:p.isCaseSensitive,matchKind:p.matchKind,file:p.fileName,start:g.positionToLineOffset(p.textSpan.start),end:g.positionToLineOffset(ml(p.textSpan))};return p.kindModifiers&&p.kindModifiers!==""&&(m.kindModifiers=p.kindModifiers),p.containerName&&p.containerName.length>0&&(m.containerName=p.containerName),p.containerKind&&p.containerKind.length>0&&(m.containerKind=p.containerKind),m})):li(i,({navigateToItems:s})=>s)}getFullNavigateToItems(t){let{currentFileOnly:n,searchValue:i,maxResultCount:s,projectFileName:l}=t;if(n){I.assertIsDefined(t.file);let{file:P,project:E}=this.getFileAndProject(t);return[{project:E,navigateToItems:E.getLanguageService().getNavigateToItems(i,s,P)}]}let p=this.getHostPreferences(),g=[],m=new Map;if(!t.file&&!l)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(P=>x(P));else{let P=this.getProjects(t);WYe(P,void 0,E=>x(E))}return g;function x(P){let E=P.getLanguageService().getNavigateToItems(i,s,void 0,P.isNonTsProject(),p.excludeLibrarySymbolsInNavTo),N=Cn(E,F=>b(F)&&!Lie(l8(F),P));N.length&&g.push({project:P,navigateToItems:N})}function b(P){let E=P.name;if(!m.has(E))return m.set(E,[P]),!0;let N=m.get(E);for(let F of N)if(S(F,P))return!1;return N.push(P),!0}function S(P,E){return P===E?!0:!P||!E?!1:P.containerKind===E.containerKind&&P.containerName===E.containerName&&P.fileName===E.fileName&&P.isCaseSensitive===E.isCaseSensitive&&P.kind===E.kind&&P.kindModifiers===E.kindModifiers&&P.matchKind===E.matchKind&&P.name===E.name&&P.textSpan.start===E.textSpan.start&&P.textSpan.length===E.textSpan.length}}getSupportedCodeFixes(t){if(!t)return ene();if(t.file){let{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}let n=this.getProject(t.projectFileName);return n||W0.ThrowNoProject(),n.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,n){let i,s;return this.isLocation(t)?i=l(t):s=this.getRange(t,n),I.checkDefined(i===void 0?s:i);function l(p){return p.position!==void 0?p.position:n.lineOffsetToPosition(p.line,p.offset)}}getRange(t,n){let{startPosition:i,endPosition:s}=this.getStartAndEndPosition(t,n);return{pos:i,end:s}}getApplicableRefactors(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getApplicableRefactors(n,this.extractPositionOrRange(t,s),this.getPreferences(n),t.triggerReason,t.kind,t.includeInteractiveActions).map(p=>({...p,actions:p.actions.map(g=>({...g,range:g.range?{start:DA({line:g.range.start.line,character:g.range.start.offset}),end:DA({line:g.range.end.line,character:g.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=s.getScriptInfoForNormalizedPath(i),p=s.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,l),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(p===void 0)return{edits:[]};if(n){let{renameFilename:g,renameLocation:m,edits:x}=p,b;if(g!==void 0&&m!==void 0){let S=s.getScriptInfoForNormalizedPath(wc(g));b=hke(UE(S.getSnapshot()),g,m,x)}return{renameLocation:b,renameFilename:g,edits:this.mapTextChangesToCodeEdits(x),notApplicableReason:p.notApplicableReason}}return p}getMoveToRefactoringFileSuggestions(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getMoveToRefactoringFileSuggestions(n,this.extractPositionOrRange(t,s),this.getPreferences(n))}preparePasteEdits(t){let{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().preparePasteEditsForFile(n,t.copiedTextSpan.map(s=>this.getRange({file:n,startLine:s.start.line,startOffset:s.start.offset,endLine:s.end.line,endOffset:s.end.offset},this.projectService.getScriptInfoForNormalizedPath(n))))}getPasteEdits(t){let{file:n,project:i}=this.getFileAndProject(t);if(o8(n))return;let s=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(p=>this.getRange({file:t.copiedFrom.file,startLine:p.start.line,startOffset:p.start.offset,endLine:p.end.line,endOffset:p.end.offset},i.getScriptInfoForNormalizedPath(wc(t.copiedFrom.file))))}:void 0,l=i.getLanguageService().getPasteEdits({targetFile:n,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(p=>this.getRange({file:n,startLine:p.start.line,startOffset:p.start.offset,endLine:p.end.line,endOffset:p.end.offset},i.getScriptInfoForNormalizedPath(n))),copiedFrom:s,preferences:this.getPreferences(n)},this.getFormatOptions(n));return l&&this.mapPasteEditsAction(l)}organizeImports(t,n){I.assert(t.scope.type==="file");let{file:i,project:s}=this.getFileAndProject(t.scope.args),l=s.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return n?this.mapTextChangesToCodeEdits(l):l}getEditsForFileRename(t,n){let i=wc(t.oldFilePath),s=wc(t.newFilePath),l=this.getHostFormatOptions(),p=this.getHostPreferences(),g=new Set,m=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(x=>{let b=x.getLanguageService().getEditsForFileRename(i,s,l,p),S=[];for(let P of b)g.has(P.fileName)||(m.push(P),S.push(P.fileName));for(let P of S)g.add(P)}),n?m.map(x=>this.mapTextChangeToCodeEdit(x)):m}getCodeFixes(t,n){let{file:i,project:s}=this.getFileAndProject(t),l=s.getScriptInfoForNormalizedPath(i),{startPosition:p,endPosition:g}=this.getStartAndEndPosition(t,l),m;try{m=s.getLanguageService().getCodeFixesAtPosition(i,p,g,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(x){let b=x instanceof Error?x:new Error(x),S=s.getLanguageService(),P=[...S.getSyntacticDiagnostics(i),...S.getSemanticDiagnostics(i),...S.getSuggestionDiagnostics(i)].filter(N=>wF(p,g-p,N.start,N.length)).map(N=>N.code),E=t.errorCodes.find(N=>!P.includes(N));throw E!==void 0&&(b.message+=`
|
|
Additional information: BADCLIENT: Bad error code, ${E} not found in range ${p}..${g} (found: ${P.join(", ")})`),b}return n?m.map(x=>this.mapCodeFixAction(x)):m}getCombinedCodeFix({scope:t,fixId:n},i){I.assert(t.type==="file");let{file:s,project:l}=this.getFileAndProject(t.args),p=l.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},n,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(p.changes),commands:p.commands}:p}applyCodeActionCommand(t){let n=t.command;for(let i of Sh(n)){let{file:s,project:l}=this.getFileAndProject(i);l.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(p=>{},p=>{})}return{}}getStartAndEndPosition(t,n){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=n.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=n.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:n,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(n),commands:i}}mapCodeFixAction({fixName:t,description:n,changes:i,commands:s,fixId:l,fixAllDescription:p}){return{fixName:t,description:n,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:l,fixAllDescription:p}}mapPasteEditsAction({edits:t,fixId:n}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:n}}mapTextChangesToCodeEdits(t){return t.map(n=>this.mapTextChangeToCodeEdit(n))}mapTextChangeToCodeEdit(t){let n=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!n&&(n||this.projectService.logErrorForScriptInfoNotFound(t.fileName),I.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!n}))),n?{fileName:t.fileName,textChanges:t.textChanges.map(i=>N$t(i,n))}:F$t(t)}convertTextChangeToCodeEdit(t,n){return{start:n.positionToLineOffset(t.span.start),end:n.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=this.getPosition(t,l),g=s.getBraceMatchingAtPosition(i,p);return g?n?g.map(m=>Kh(m,l)):g:void 0}getDiagnosticsForProject(t,n,i){if(this.suppressDiagnosticEvents)return;let{fileNames:s,languageServiceDisabled:l}=this.getProjectInfoWorker(i,void 0,!0,void 0,!0);if(l)return;let p=s.filter(F=>!F.includes("lib.d.ts"));if(p.length===0)return;let g=[],m=[],x=[],b=[],S=wc(i),P=this.projectService.ensureDefaultProjectForFile(S);for(let F of p)this.getCanonicalFileName(F)===this.getCanonicalFileName(i)?g.push(F):this.projectService.getScriptInfo(F).isScriptOpen()?m.push(F):Wu(F)?b.push(F):x.push(F);let N=[...g,...m,...x,...b].map(F=>({fileName:F,project:P}));this.updateErrorCheck(t,N,n,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,n){let{locations:i}=t,{file:s,languageService:l}=this.getFileAndLanguageServiceForSyntacticOperation(t),p=I.checkDefined(this.projectService.getScriptInfo(s));return Dt(i,g=>{let m=this.getPosition(g,p),x=l.getSmartSelectionRange(s,m);return n?this.mapSelectionRange(x,p):x})}toggleLineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=this.projectService.getScriptInfo(i),p=this.getRange(t,l),g=s.toggleLineComment(i,p);if(n){let m=this.projectService.getScriptInfoForNormalizedPath(i);return g.map(x=>this.convertTextChangeToCodeEdit(x,m))}return g}toggleMultilineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=this.getRange(t,l),g=s.toggleMultilineComment(i,p);if(n){let m=this.projectService.getScriptInfoForNormalizedPath(i);return g.map(x=>this.convertTextChangeToCodeEdit(x,m))}return g}commentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=this.getRange(t,l),g=s.commentSelection(i,p);if(n){let m=this.projectService.getScriptInfoForNormalizedPath(i);return g.map(x=>this.convertTextChangeToCodeEdit(x,m))}return g}uncommentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=this.projectService.getScriptInfoForNormalizedPath(i),p=this.getRange(t,l),g=s.uncommentSelection(i,p);if(n){let m=this.projectService.getScriptInfoForNormalizedPath(i);return g.map(x=>this.convertTextChangeToCodeEdit(x,m))}return g}mapSelectionRange(t,n){let i={textSpan:Kh(t.textSpan,n)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,n)),i}getScriptInfoFromProjectService(t){let n=wc(t),i=this.projectService.getScriptInfoForNormalizedPath(n);return i||(this.projectService.logErrorForScriptInfoNotFound(n),W0.ThrowNoProject())}toProtocolCallHierarchyItem(t){let n=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Kh(t.span,n),selectionSpan:Kh(t.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(t){let n=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Kh(i,n))}}toProtocolCallHierarchyOutgoingCall(t,n){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Kh(i,n))}}prepareCallHierarchy(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);if(s){let l=this.getPosition(t,s),p=i.getLanguageService().prepareCallHierarchy(n,l);return p&&ure(p,g=>this.toProtocolCallHierarchyItem(g))}}provideCallHierarchyIncomingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyIncomingCalls(n,this.getPosition(t,s)).map(p=>this.toProtocolCallHierarchyIncomingCall(p))}provideCallHierarchyOutgoingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyOutgoingCalls(n,this.getPosition(t,s)).map(p=>this.toProtocolCallHierarchyOutgoingCall(p,s))}getCanonicalFileName(t){let n=this.host.useCaseSensitiveFileNames?t:wy(t);return Zs(n)}exit(){}notRequired(t){return t&&this.doOutput(void 0,t.command,t.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(t){return{response:t,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(t,n){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,n)}setCurrentRequest(t){I.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){I.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,n,i){let s=this.performanceData;try{return this.performanceData=i,this.setCurrentRequest(t),n()}finally{this.resetCurrentRequest(t),this.performanceData=s}}executeCommand(t){let n=this.handlers.get(t.command);if(n){let i=this.executeWithRequestId(t.seq,()=>n(t),void 0);return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${XS(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,void 0,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var n,i,s,l,p,g,m;this.gcTimer.scheduleCollect();let x,b=this.performanceData;this.logger.hasLevel(2)&&(x=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${I3(this.toStringMessage(t))}`));let S,P;try{S=this.parseMessage(t),P=S.arguments&&S.arguments.file?S.arguments:void 0,(n=Fn)==null||n.instant(Fn.Phase.Session,"request",{seq:S.seq,command:S.command}),(i=Fn)==null||i.push(Fn.Phase.Session,"executeCommand",{seq:S.seq,command:S.command},!0);let{response:E,responseRequired:N,performanceData:F}=this.executeCommand(S);if((s=Fn)==null||s.pop(),this.logger.hasLevel(2)){let M=x$t(this.hrtime(x)).toFixed(4);N?this.logger.perftrc(`${S.seq}::${S.command}: elapsed time (in milliseconds) ${M}`):this.logger.perftrc(`${S.seq}::${S.command}: async elapsed time (in milliseconds) ${M}`)}(l=Fn)==null||l.instant(Fn.Phase.Session,"response",{seq:S.seq,command:S.command,success:!!E}),E?this.doOutput(E,S.command,S.seq,!0,F):N&&this.doOutput(void 0,S.command,S.seq,!1,F,"No content available.")}catch(E){if((p=Fn)==null||p.popAll(),E instanceof DP){(g=Fn)==null||g.instant(Fn.Phase.Session,"commandCanceled",{seq:S?.seq,command:S?.command}),this.doOutput({canceled:!0},S.command,S.seq,!0,this.performanceData);return}this.logErrorWorker(E,this.toStringMessage(t),P),(m=Fn)==null||m.instant(Fn.Phase.Session,"commandError",{seq:S?.seq,command:S?.command,message:E.message}),this.doOutput(void 0,S?S.command:"unknown",S?S.seq:0,!1,this.performanceData,"Error processing request. "+E.message+`
|
|
`+E.stack)}finally{this.performanceData=b}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function QYe(e){let t=e.diagnosticsDuration&&Ka(e.diagnosticsDuration,([n,i])=>({...i,file:n}));return{...e,diagnosticsDuration:t}}function Kh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(ml(e))}}function gke(e,t,n){let i=Kh(e,n),s=t&&Kh(t,n);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function N$t(e,t){return{start:XYe(t,e.span.start),end:XYe(t,ml(e.span)),newText:e.newText}}function XYe(e,t){return lke(e)?I$t(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function A$t(e,t){let n=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}function I$t(e){return{line:e.line+1,offset:e.character+1}}function F$t(e){I.assert(e.textChanges.length===1);let t=ho(e.textChanges);return I.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function hke(e,t,n,i){let s=M$t(e,t,i),{line:l,character:p}=UO(FP(s),n);return{line:l+1,offset:p+1}}function M$t(e,t,n){for(let{fileName:i,textChanges:s}of n)if(i===t)for(let l=s.length-1;l>=0;l--){let{newText:p,span:{start:g,length:m}}=s[l];e=e.slice(0,g)+p+e.slice(g+m)}return e}function YYe(e,{fileName:t,textSpan:n,contextSpan:i,isWriteAccess:s,isDefinition:l},{disableLineTextInReferences:p}){let g=I.checkDefined(e.getScriptInfo(t)),m=gke(n,i,g),x=p?void 0:R$t(g,m);return{file:t,...m,lineText:x,isWriteAccess:s,isDefinition:l}}function R$t(e,t){let n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,ml(n)).replace(/\r|\n/g,"")}function j$t(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var OA=4,yke=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(yke||{}),L$t=class{constructor(){this.goSubtree=!0,this.lineIndex=new dj,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new NA,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=dj.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,l;for(let g=this.endBranch.length-1;g>=0;g--)this.endBranch[g].updateCounts(),this.endBranch[g].charCount()===0&&(l=this.endBranch[g],g>0?s=this.endBranch[g-1]:s=this.branchNode);l&&s.remove(l);let p=this.startPath[this.startPath.length-1];if(i.length>0)if(p.text=i[0],i.length>1){let g=new Array(i.length-1),m=p;for(let S=1;S<i.length;S++)g[S-1]=new F$(i[S]);let x=this.startPath.length-2;for(;x>=0;){let S=this.startPath[x];g=S.insertAt(m,g),x--,m=S}let b=g.length;for(;b>0;){let S=new NA;S.add(this.lineIndex.root),g=S.insertAt(this.lineIndex.root,g),b=g.length,this.lineIndex.root=S}this.lineIndex.root.updateCounts()}else for(let g=this.startPath.length-2;g>=0;g--)this.startPath[g].updateCounts();else{this.startPath[this.startPath.length-2].remove(p);for(let m=this.startPath.length-2;m>=0;m--)this.startPath[m].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,i,s){let l=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=l,this.lineCollectionAtBranch=n);let p;function g(m){return m.isLeaf()?new F$(""):new NA}switch(s){case 0:this.goSubtree=!1,this.state!==4&&l.add(n);break;case 1:this.state===4?this.goSubtree=!1:(p=g(n),l.add(p),this.startPath.push(p));break;case 2:this.state!==4?(p=g(n),l.add(p),this.startPath.push(p)):n.isLeaf()||(p=g(n),l.add(p),this.endBranch.push(p));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:n.isLeaf()||(p=g(n),l.add(p),this.endBranch.push(p));break;case 5:this.goSubtree=!1,this.state!==1&&l.add(n);break}this.goSubtree&&this.stack.push(p)}leaf(e,t,n){this.state===1?this.initialText=n.text.substring(0,e):this.state===2?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},B$t=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return kF(Sp(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Bie=class ZC{constructor(){this.changes=[],this.versions=new Array(ZC.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%ZC.maxVersions}currentVersionToIndex(){return this.currentVersion%ZC.maxVersions}edit(t,n,i){this.changes.push(new B$t(t,n,i)),(this.changes.length>ZC.changeNumberThreshold||n>ZC.changeLengthThreshold||i&&i.length>ZC.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(let i of this.changes)n=n.edit(i.pos,i.deleteLen,i.insertedText);t=new ZYe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=ZC.maxVersions&&(this.minVersion=this.currentVersion-ZC.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,n){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(n-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let n=this._getSnapshot().index,{lineText:i,absolutePosition:s}=n.lineNumberToInfo(t+1),l=i!==void 0?i.length:n.absolutePositionOfStartOfLine(t+2)-s;return Sp(s,l)}getTextChangesBetweenVersions(t,n){if(t<n)if(t>=this.minVersion){let i=[];for(let s=t+1;s<=n;s++){let l=this.versions[this.versionToIndex(s)];for(let p of l.changesSincePreviousVersion)i.push(p.getTextChangeRange())}return X_e(i)}else return;else return aq}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new ZC,i=new ZYe(0,n,new dj);n.versions[n.currentVersion]=i;let s=dj.linesFromText(t);return i.index.load(s.lines),n}};Bie.changeNumberThreshold=8,Bie.changeLengthThreshold=256,Bie.maxVersions=8;var qie=Bie,ZYe=class tut{constructor(t,n,i,s=Uu){this.version=t,this.cache=n,this.index=i,this.changesSincePreviousVersion=s}getText(t,n){return this.index.getText(t,n-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof tut&&this.cache===t.cache)return this.version<=t.version?aq:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},dj=class hOe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:n,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:n,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let n=this.getLineCount();if(t<=n){let{position:i,leaf:s}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:s&&s.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let n=[];for(let i=0;i<t.length;i++)n[i]=new F$(t[i]);this.root=hOe.buildTreeFromBottom(n)}else this.root=new NA}walk(t,n,i){this.root.walk(t,n,i)}getText(t,n){let i="";return n>0&&t<this.root.charCount()&&this.walk(t,n,{goSubtree:!0,done:!1,leaf:(s,l,p)=>{i=i.concat(p.text.substring(s,s+l))}}),i}getLength(){return this.root.charCount()}every(t,n,i){i||(i=this.root.charCount());let s={goSubtree:!0,done:!1,leaf(l,p,g){t(g,l,p)||(this.done=!0)}};return this.walk(n,i-n,s),!s.done}edit(t,n,i){if(this.root.charCount()===0)return I.assert(n===0),i!==void 0?(this.load(hOe.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){let g=this.getText(0,this.root.charCount());s=g.slice(0,t)+i+g.slice(t+n)}let l=new L$t,p=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let g=this.getText(t,1);i?i=g+i:i=g,n=0,p=!0}else if(n>0){let g=t+n,{zeroBasedColumn:m,lineText:x}=this.positionToColumnAndLineText(g);m===0&&(n+=x.length,i=i?i+x:x)}if(this.root.walk(t,n,l),l.insertLines(i,p),this.checkEdits){let g=l.lineIndex.getText(0,l.lineIndex.getLength());I.assert(s===g,"buffer edit mismatch")}return l.lineIndex}}static buildTreeFromBottom(t){if(t.length<OA)return new NA(t);let n=new Array(Math.ceil(t.length/OA)),i=0;for(let s=0;s<n.length;s++){let l=Math.min(i+OA,t.length);n[s]=new NA(t.slice(i,l)),i=l}return this.buildTreeFromBottom(n)}static linesFromText(t){let n=FP(t);if(n.length===0)return{lines:[],lineMap:n};let i=new Array(n.length),s=n.length-1;for(let p=0;p<s;p++)i[p]=t.substring(n[p],n[p+1]);let l=t.substring(n[s]);return l.length>0?i[s]=l:i.pop(),{lines:i,lineMap:n}}},NA=class yOe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,n,i,s,l){return i.pre&&i.pre(t,n,this.children[s],this,l),i.goSubtree?(this.children[s].walk(t,n,i),i.post&&i.post(t,n,this.children[s],this,l)):i.goSubtree=!0,i.done}skipChild(t,n,i,s,l){s.pre&&!s.done&&(s.pre(t,n,this.children[i],this,l),s.goSubtree=!0)}walk(t,n,i){if(this.children.length===0)return;let s=0,l=this.children[s].charCount(),p=t;for(;p>=l;)this.skipChild(p,n,s,i,0),p-=l,s++,l=this.children[s].charCount();if(p+n<=l){if(this.execWalk(p,n,i,s,2))return}else{if(this.execWalk(p,l-p,i,s,1))return;let g=n-(l-p);for(s++,l=this.children[s].charCount();g>l;){if(this.execWalk(0,l,i,s,3))return;g-=l,s++,l=this.children[s].charCount()}if(g>0&&this.execWalk(0,g,i,s,4))return}if(i.pre){let g=this.children.length;if(s<g-1)for(let m=s+1;m<g;m++)this.skipChild(0,0,m,i,5)}}charOffsetToLineInfo(t,n){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:n,lineText:void 0};for(let l of this.children){if(l.charCount()>n)return l.isLeaf()?{oneBasedLine:t,zeroBasedColumn:n,lineText:l.text}:l.charOffsetToLineInfo(t,n);n-=l.charCount(),t+=l.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let s=I.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:s.charCount(),lineText:void 0}}lineNumberToInfo(t,n){for(let i of this.children){let s=i.lineCount();if(s>=t)return i.isLeaf()?{position:n,leaf:i}:i.lineNumberToInfo(t,n);t-=s,n+=i.charCount()}return{position:n,leaf:void 0}}splitAfter(t){let n,i=this.children.length;t++;let s=t;if(t<i){for(n=new yOe;t<i;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=s,n}remove(t){let n=this.findChildIndex(t),i=this.children.length;if(n<i-1)for(let s=n;s<i-1;s++)this.children[s]=this.children[s+1];this.children.pop()}findChildIndex(t){let n=this.children.indexOf(t);return I.assert(n!==-1),n}insertAt(t,n){let i=this.findChildIndex(t),s=this.children.length,l=n.length;if(s<OA&&i===s-1&&l===1)return this.add(n[0]),this.updateCounts(),[];{let p=this.splitAfter(i),g=0;for(i++;i<OA&&g<l;)this.children[i]=n[g],i++,g++;let m=[],x=0;if(g<l){x=Math.ceil((l-g)/OA),m=new Array(x);let b=0;for(let P=0;P<x;P++)m[P]=new yOe;let S=m[0];for(;g<l;)S.add(n[g]),g++,S.children.length===OA&&(b++,S=m[b]);for(let P=m.length-1;P>=0;P--)m[P].children.length===0&&m.pop()}p&&m.push(p),this.updateCounts();for(let b=0;b<x;b++)m[b].updateCounts();return m}}add(t){this.children.push(t),I.assert(this.children.length<=OA)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},F$=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},eZe=class rut{constructor(t,n,i,s,l,p){this.telemetryEnabled=t,this.logger=n,this.host=i,this.globalTypingsCacheLocation=s,this.event=l,this.maxActiveRequestCount=p,this.activeRequestCount=0,this.requestQueue=i2(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var n;return Fx.validatePackageName(t)!==Fx.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((n=this.typesRegistryCache)!=null&&n.has(t)))}installPackage(t){this.packageInstallId++;let n={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((s,l)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:s,reject:l})});return this.installer.send(n),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,n,i){let s=kwe(t,n,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${XS(s)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(s):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${s.projectName}`),this.requestQueue.enqueue(s),this.requestMap.set(s.projectName,s))}handleMessage(t){var n,i;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${XS(t)}`),t.kind){case ote:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case ZW:{let s=(n=this.packageInstalledPromise)==null?void 0:n.get(t.id);I.assertIsDefined(s,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?s.resolve({successMessage:t.message}):s.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case E1e:{let s={message:t.message};this.event(s,"typesInstallerInitializationFailed");break}case cte:{let s={eventId:t.eventId,packages:t.packagesToInstall};this.event(s,"beginInstallTypes");break}case lte:{if(this.telemetryEnabled){let p={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(p,"telemetry")}let s={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(s,"endInstallTypes");break}case YW:{this.projectService.updateTypingsForProject(t);break}case XW:{for(this.activeRequestCount>0?this.activeRequestCount--:I.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let s=this.requestQueue.dequeue();if(this.requestMap.get(s.projectName)===s){this.requestMap.delete(s.projectName),this.scheduleRequest(s);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${s.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case cR:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${XS(t)}`),this.installer.send(t)},rut.requestDelayMillis,`${t.projectName}::${t.kind}`)}};eZe.requestDelayMillis=100;var tZe=eZe,rZe={};w(rZe,{ActionInvalidate:()=>YW,ActionPackageInstalled:()=>ZW,ActionSet:()=>XW,ActionWatchTypingLocations:()=>cR,Arguments:()=>ute,AutoImportProviderProject:()=>Vwe,AuxiliaryProject:()=>Uwe,CharRangeSection:()=>yke,CloseFileWatcherEvent:()=>Eie,CommandNames:()=>JYe,ConfigFileDiagEvent:()=>Tie,ConfiguredProject:()=>Hwe,ConfiguredProjectLoadKind:()=>Zwe,CreateDirectoryWatcherEvent:()=>Pie,CreateFileWatcherEvent:()=>Cie,Errors:()=>W0,EventBeginInstallTypes:()=>cte,EventEndInstallTypes:()=>lte,EventInitializationFailed:()=>E1e,EventTypesRegistry:()=>ote,ExternalProject:()=>hie,GcTimer:()=>Awe,InferredProject:()=>Wwe,LargeFileReferencedEvent:()=>Sie,LineIndex:()=>dj,LineLeaf:()=>F$,LineNode:()=>NA,LogLevel:()=>Twe,Msg:()=>wwe,OpenFileInfoTelemetryEvent:()=>Gwe,Project:()=>iD,ProjectInfoTelemetryEvent:()=>kie,ProjectKind:()=>c8,ProjectLanguageServiceStateEvent:()=>wie,ProjectLoadingFinishEvent:()=>xie,ProjectLoadingStartEvent:()=>bie,ProjectService:()=>cke,ProjectsUpdatedInBackgroundEvent:()=>N$,ScriptInfo:()=>Rwe,ScriptVersionCache:()=>qie,Session:()=>KYe,TextStorage:()=>Mwe,ThrottledOperations:()=>Nwe,TypingsInstallerAdapter:()=>tZe,allFilesAreJsOrDts:()=>qwe,allRootFilesAreJsOrDts:()=>Bwe,asNormalizedPath:()=>_Ye,convertCompilerOptions:()=>A$,convertFormatOptions:()=>EA,convertScriptKindName:()=>Oie,convertTypeAcquisition:()=>Qwe,convertUserPreferences:()=>Xwe,convertWatchOptions:()=>fj,countEachFileTypes:()=>cj,createInstallTypingsRequest:()=>kwe,createModuleSpecifierCache:()=>pke,createNormalizedPathMap:()=>dYe,createPackageJsonCache:()=>fke,createSortedArray:()=>Owe,emptyArray:()=>Uu,findArgument:()=>_Je,formatDiagnosticToProtocol:()=>_j,formatMessage:()=>_ke,getBaseConfigFileName:()=>gie,getDetailWatchInfo:()=>Fie,getLocationInNewDocument:()=>hke,hasArgument:()=>fJe,hasNoTypeScriptSource:()=>Jwe,indent:()=>I3,isBackgroundProject:()=>uj,isConfigFile:()=>lke,isConfiguredProject:()=>V1,isDynamicFileName:()=>o8,isExternalProject:()=>lj,isInferredProject:()=>PA,isInferredProjectName:()=>Cwe,isProjectDeferredClose:()=>pj,makeAutoImportProviderProjectName:()=>Ewe,makeAuxiliaryProjectName:()=>Dwe,makeInferredProjectName:()=>Pwe,maxFileSize:()=>vie,maxProgramSizeForNonTsFiles:()=>yie,normalizedPathToPath:()=>CA,nowString:()=>dJe,nullCancellationToken:()=>LYe,nullTypingsInstaller:()=>I$,protocol:()=>Iwe,scriptInfoIsContainedByBackgroundProject:()=>jwe,scriptInfoIsContainedByDeferredClosedProject:()=>Lwe,stringifyIndented:()=>XS,toEvent:()=>dke,toNormalizedPath:()=>wc,tryConvertScriptKindName:()=>Die,typingsInstaller:()=>Swe,updateProjectIfDirty:()=>Gm}),typeof console<"u"&&(I.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return Klt},set exports(o){Klt=o,typeof Ooe<"u"&&Ooe.exports&&(Ooe.exports=o)}})});var nc,HT,Noe,LL,vOe=mi(()=>{"use strict";nc=Ea(nut()),HT=Ea(require("path")),Noe=Ea(require("fs/promises"));AH();LL=class{constructor(){this.symbols=new Map;this.imports=new Map;this.calls=new Map;this.fileSymbols=new Map;this.graphDb=new Gw}async indexFile(a){let u=await Noe.readFile(a,"utf-8"),f=nc.createSourceFile(a,u,nc.ScriptTarget.Latest,!0);this.fileSymbols.delete(a);let d=[];this.graphDb.addNode({id:a,type:"file",properties:{name:HT.basename(a),extension:HT.extname(a),lines:f.getLineAndCharacterOfPosition(f.end).line+1}});let w=O=>{if(this.isNamedDeclaration(O)){let q=this.extractSymbol(O,f,a);if(q){d.push(q),this.addSymbol(q);let K=`${a}:${q.name}:${q.line}`;this.graphDb.addNode({id:K,type:"symbol",properties:{name:q.name,kind:q.kindName,filePath:q.filePath,line:q.line,type:q.type||"unknown"}}),this.graphDb.addEdge({id:`edge_${K}_file`,from:a,to:K,type:"contains"})}}if(nc.isImportDeclaration(O)){let q=this.extractImport(O,f,a);if(q&&(this.addImport(q),q.from.startsWith("."))){let K=HT.resolve(HT.dirname(a),q.from);this.graphDb.addEdge({id:`edge_import_${a}_${K}`,from:a,to:K,type:"imports"})}}if(nc.isCallExpression(O)){let q=this.extractCall(O,f,a);q&&this.addCall(q)}nc.forEachChild(O,w)};w(f),this.fileSymbols.set(a,d)}async indexDirectory(a,u=[".ts",".tsx",".js",".jsx"]){let f=await Noe.readdir(a,{withFileTypes:!0});for(let d of f){let w=HT.join(a,d.name);if(d.isDirectory()&&!d.name.startsWith(".")&&d.name!=="node_modules")await this.indexDirectory(w,u);else if(d.isFile()&&u.some(O=>d.name.endsWith(O)))try{await this.indexFile(w)}catch(O){console.error(`Error indexing ${w}:`,O)}}}searchSymbols(a,u){let f=[],{kind:d,exact:w=!1,caseSensitive:O=!1}=u||{},q=O?a:a.toLowerCase(),K=Array.isArray(d)?d:d?[d]:null;for(let[le,ye]of this.symbols){let Be=O?le:le.toLowerCase();if(w?Be===q:Be.includes(q))for(let mt of ye)K&&!K.includes(mt.kind)||f.push(mt)}return f}findReferences(a,u){let f=[],d=this.symbols.get(a)||[];for(let O of d)(!u||O.filePath===u)&&f.push({filePath:O.filePath,line:O.line,column:O.column,type:"declaration"});for(let O of this.imports.values())for(let q of O)q.imports.includes(a)&&f.push({filePath:q.filePath,line:q.line,column:0,type:"import"});let w=this.calls.get(a)||[];for(let O of w)f.push({filePath:O.filePath,line:O.line,column:O.column,type:"call"});return f}findDefinition(a,u){let d=(this.fileSymbols.get(u)||[]).find(q=>q.name===a);if(d)return d;let w=Array.from(this.imports.values()).flat().filter(q=>q.filePath===u);for(let q of w)if(q.imports.includes(a)&&q.from.startsWith(".")){let K=HT.resolve(HT.dirname(u),q.from),ye=(this.fileSymbols.get(K)||[]).find(Be=>Be.name===a);if(ye)return ye}return(this.symbols.get(a)||[])[0]||null}getCallHierarchy(a){let u=[],f=new Set,d=this.calls.get(a)||[],w=new Map;for(let O of d)w.has(O.filePath)||w.set(O.filePath,[]),w.get(O.filePath).push(O);for(let[O,q]of w){let K=this.fileSymbols.get(O)||[];for(let le of q){let ye=K.filter(Be=>Be.kind===nc.SyntaxKind.FunctionDeclaration||Be.kind===nc.SyntaxKind.MethodDeclaration||Be.kind===nc.SyntaxKind.ArrowFunction).find(Be=>Be.line<=le.line);if(ye){let Be=u.find(ce=>ce.symbol.name===ye.name&&ce.symbol.filePath===ye.filePath);Be?Be.calls.push(le):u.push({symbol:ye,calls:[le]})}}}return{callers:u,callees:Array.from(f)}}getTypeHierarchy(a){let u=(this.symbols.get(a)||[]).filter(O=>O.kind===nc.SyntaxKind.ClassDeclaration||O.kind===nc.SyntaxKind.InterfaceDeclaration),f=[],d=[],w=[];for(let O of u){let q=`${O.filePath}:${O.name}:${O.line}`,K=this.graphDb.getEdges({from:q,type:"extends"});for(let ye of K){let Be=this.graphDb.getNode(ye.to);if(Be){let ce=this.findSymbolFromNode(Be);ce&&f.push(ce)}}let le=this.graphDb.getEdges({to:q,type:"extends"});for(let ye of le){let Be=this.graphDb.getNode(ye.from);if(Be){let ce=this.findSymbolFromNode(Be);ce&&d.push(ce)}}if(O.kind===nc.SyntaxKind.InterfaceDeclaration){let ye=this.graphDb.getEdges({to:q,type:"implements"});for(let Be of ye){let ce=this.graphDb.getNode(Be.from);if(ce){let mt=this.findSymbolFromNode(ce);mt&&w.push(mt)}}}}return{parents:f,children:d,implementations:w}}getFileDependencies(a){let u=[],f=[],d=this.graphDb.getEdges({from:a,type:"imports"});for(let O of d)u.push(O.to);let w=this.graphDb.getEdges({to:a,type:"imports"});for(let O of w)f.push(O.from);return{imports:u,importedBy:f}}getStats(){let a={},u=0;for(let w of this.symbols.values()){u+=w.length;for(let O of w)a[O.kindName]=(a[O.kindName]||0)+1}let f=0;for(let w of this.imports.values())f+=w.length;let d=0;for(let w of this.calls.values())d+=w.length;return{totalFiles:this.fileSymbols.size,totalSymbols:u,symbolsByKind:a,totalImports:f,totalCalls:d,graphStats:this.graphDb.getStats()}}clear(){this.symbols.clear(),this.imports.clear(),this.calls.clear(),this.fileSymbols.clear(),this.graphDb.clear()}isNamedDeclaration(a){return nc.isFunctionDeclaration(a)||nc.isClassDeclaration(a)||nc.isInterfaceDeclaration(a)||nc.isTypeAliasDeclaration(a)||nc.isEnumDeclaration(a)||nc.isVariableDeclaration(a)||nc.isMethodDeclaration(a)||nc.isPropertyDeclaration(a)||nc.isGetAccessorDeclaration(a)||nc.isSetAccessorDeclaration(a)}extractSymbol(a,u,f){let d,w=a.kind;if(("name"in a&&a.name&&nc.isIdentifier(a.name)||nc.isVariableDeclaration(a)&&nc.isIdentifier(a.name))&&(d=a.name.text),!d)return null;let{line:O,character:q}=u.getLineAndCharacterOfPosition(a.pos),K={name:d,kind:w,kindName:nc.SyntaxKind[w],filePath:f,line:O+1,column:q+1};return nc.isFunctionDeclaration(a)||nc.isMethodDeclaration(a)?K.type="function":nc.isClassDeclaration(a)?K.type="class":nc.isInterfaceDeclaration(a)?K.type="interface":nc.isTypeAliasDeclaration(a)?K.type="type":nc.isEnumDeclaration(a)&&(K.type="enum"),"modifiers"in a&&a.modifiers&&(K.modifiers=a.modifiers.map(le=>nc.SyntaxKind[le.kind].toLowerCase())),K}extractImport(a,u,f){if(!a.moduleSpecifier||!nc.isStringLiteral(a.moduleSpecifier))return null;let d=a.moduleSpecifier.text,w=[];if(a.importClause&&(a.importClause.name&&w.push(a.importClause.name.text),a.importClause.namedBindings))if(nc.isNamedImports(a.importClause.namedBindings))for(let q of a.importClause.namedBindings.elements)w.push(q.name.text);else nc.isNamespaceImport(a.importClause.namedBindings)&&w.push(a.importClause.namedBindings.name.text);let{line:O}=u.getLineAndCharacterOfPosition(a.pos);return{from:d,imports:w,filePath:f,line:O+1}}extractCall(a,u,f){let d;if(nc.isIdentifier(a.expression)?d=a.expression.text:nc.isPropertyAccessExpression(a.expression)&&nc.isIdentifier(a.expression.name)&&(d=a.expression.name.text),!d)return null;let{line:w,character:O}=u.getLineAndCharacterOfPosition(a.pos);return{name:d,arguments:a.arguments.length,filePath:f,line:w+1,column:O+1}}addSymbol(a){this.symbols.has(a.name)||this.symbols.set(a.name,[]),this.symbols.get(a.name).push(a)}addImport(a){let u=a.filePath;this.imports.has(u)||this.imports.set(u,[]),this.imports.get(u).push(a)}addCall(a){this.calls.has(a.name)||this.calls.set(a.name,[]),this.calls.get(a.name).push(a)}findSymbolFromNode(a){let{name:u,filePath:f,line:d}=a.properties;return(this.fileSymbols.get(f)||[]).find(O=>O.name===u&&O.line===d)||null}}});function Pcr(){return bOe||(bOe=new Gw),bOe}function Ecr(){return xOe||(xOe=new LL),xOe}function aut(o){let a=iut.workspace.workspaceFolders?.[0]?.uri.fsPath||"";return{name:"graph_db",description:"Graph database operations for code analysis and relationships",inputSchema:{type:"object",properties:{operation:{type:"string",enum:["add_node","add_edge","query","find_path","analyze","index_code","search_symbols","get_references","get_hierarchy","clear"],description:"Operation to perform"},node:{type:"object",properties:{id:{type:"string"},type:{type:"string"},properties:{type:"object"}}},edge:{type:"object",properties:{id:{type:"string"},from:{type:"string"},to:{type:"string"},type:{type:"string"},properties:{type:"object"}}},query:{type:"object",properties:{type:{type:"string"},properties:{type:"object"},connected:{type:"object",properties:{type:{type:"string"},direction:{type:"string",enum:["in","out","both"]}}}}},from:{type:"string"},to:{type:"string"},maxDepth:{type:"number"},path:{type:"string"},recursive:{type:"boolean"},symbolQuery:{type:"string"},kind:{type:"string"},exact:{type:"boolean"},symbolName:{type:"string"},filePath:{type:"string"}},required:["operation"]},handler:async u=>{let f=Pcr(),d=Ecr();switch(u.operation){case"add_node":if(!u.node)throw new Error("Node data required");return f.addNode(u.node),`Node ${u.node.id} added successfully`;case"add_edge":if(!u.edge)throw new Error("Edge data required");return f.addEdge(u.edge),`Edge ${u.edge.id} added successfully`;case"query":let w=f.queryNodes(u.query||{});return{count:w.length,nodes:w.slice(0,100),message:w.length>100?`Showing first 100 of ${w.length} results`:void 0};case"find_path":if(!u.from||!u.to)throw new Error("From and to node IDs required");let O=f.findPath(u.from,u.to,u.maxDepth);return O?{found:!0,length:O.length,path:O.map(Re=>({id:Re.id,type:Re.type,name:Re.properties.name||Re.id}))}:{found:!1,message:"No path found"};case"analyze":let q=f.getStats(),K=f.getConnectedComponents();return{stats:q,components:{count:K.length,sizes:K.map(Re=>Re.length).sort((Re,Ge)=>Ge-Re).slice(0,10),largest:K[0]?.length||0}};case"index_code":let le=u.path?x6.resolve(a,u.path):a;u.recursive!==!1?await d.indexDirectory(le):await d.indexFile(le);let ye=d.getStats();return{indexed:!0,files:ye.totalFiles,symbols:ye.totalSymbols,imports:ye.totalImports,calls:ye.totalCalls};case"search_symbols":if(!u.symbolQuery)throw new Error("Symbol query required");let Be=d.searchSymbols(u.symbolQuery,{exact:u.exact,caseSensitive:u.caseSensitive});return{count:Be.length,symbols:Be.slice(0,50).map(Re=>({name:Re.name,kind:Re.kindName,file:x6.relative(a,Re.filePath),line:Re.line,type:Re.type}))};case"get_references":if(!u.symbolName)throw new Error("Symbol name required");let ce=d.findReferences(u.symbolName,u.filePath);return{count:ce.length,references:ce.map(Re=>({file:x6.relative(a,Re.filePath),line:Re.line,column:Re.column,type:Re.type}))};case"get_hierarchy":if(!u.symbolName)throw new Error("Symbol name required");let mt=d.getTypeHierarchy(u.symbolName);return{parents:mt.parents.map(Re=>({name:Re.name,file:x6.relative(a,Re.filePath),line:Re.line})),children:mt.children.map(Re=>({name:Re.name,file:x6.relative(a,Re.filePath),line:Re.line})),implementations:mt.implementations.map(Re=>({name:Re.name,file:x6.relative(a,Re.filePath),line:Re.line}))};case"clear":return f.clear(),d.clear(),"Graph database and AST index cleared";default:throw new Error(`Unknown operation: ${u.operation}`)}}}}var iut,x6,bOe,xOe,sut=mi(()=>{"use strict";iut=Ea(f0()),x6=Ea(require("path"));AH();vOe();bOe=null,xOe=null});function out(o){return[aut(o),{name:"sql_query",description:"Execute SQL queries",inputSchema:{type:"object",properties:{database:{type:"string",description:"Database name or connection string"},query:{type:"string",description:"SQL query to execute"}},required:["database","query"]},handler:async a=>"SQL database support coming soon"},{name:"sql_search",description:"Search in SQL databases",inputSchema:{type:"object",properties:{database:{type:"string",description:"Database name"},table:{type:"string",description:"Table name"},query:{type:"string",description:"Search query"}},required:["database","query"]},handler:async a=>"SQL search coming soon"},{name:"graph_query",description:"Query graph databases",inputSchema:{type:"object",properties:{database:{type:"string",description:"Graph database name"},query:{type:"string",description:"Graph query (Cypher, Gremlin, etc.)"}},required:["database","query"]},handler:async a=>"Graph database support coming soon"}]}var cut=mi(()=>{"use strict";sut()});function lut(o){return[{name:"llm",description:"Query LLM providers with unified interface",inputSchema:{type:"object",properties:{prompt:{type:"string",description:"Prompt to send to the LLM"},model:{type:"string",description:"Model to use (e.g., gpt-4, claude-3)"},temperature:{type:"number",description:"Temperature for response generation (0-1)"},maxTokens:{type:"number",description:"Maximum tokens in response"}},required:["prompt"]},handler:async a=>"LLM integration coming soon"},{name:"consensus",description:"Get consensus from multiple LLMs",inputSchema:{type:"object",properties:{prompt:{type:"string",description:"Prompt to send to multiple LLMs"},models:{type:"array",items:{type:"string"},description:"List of models to query"}},required:["prompt"]},handler:async a=>"LLM consensus feature coming soon"},{name:"llm_manage",description:"Manage LLM configurations",inputSchema:{type:"object",properties:{action:{type:"string",enum:["list","add","remove","test"],description:"Management action"},provider:{type:"string",description:"LLM provider name"},config:{type:"object",description:"Provider configuration"}},required:["action"]},handler:async a=>"LLM management coming soon"}]}var uut=mi(()=>{"use strict"});var SOe,S6,Aoe=mi(()=>{"use strict";SOe=Ea(require("crypto")),S6=class{constructor(){this.documents=new Map;this.embeddings=new Map}async addDocument(a,u={}){let f=this.generateId(a),d={id:f,content:a,metadata:u,timestamp:new Date},w=await this.generateEmbedding(a);return d.embedding=w,this.documents.set(f,d),this.embeddings.set(f,w),f}async addDocuments(a){let u=[];for(let f of a){let d=await this.addDocument(f.content,f.metadata||{});u.push(d)}return u}async updateDocument(a,u,f){let d=this.documents.get(a);if(!d)throw new Error(`Document ${a} not found`);u&&u!==d.content&&(d.content=u,d.embedding=await this.generateEmbedding(u),this.embeddings.set(a,d.embedding)),f&&(d.metadata={...d.metadata,...f}),d.timestamp=new Date}deleteDocument(a){let u=this.documents.delete(a);return this.embeddings.delete(a),u}getDocument(a){return this.documents.get(a)}async search(a,u={}){let{topK:f=10,threshold:d=0,filter:w}=u,O=await this.generateEmbedding(a),q=[];for(let[K,le]of this.documents){if(w&&!this.matchesFilter(le.metadata,w))continue;let ye=this.embeddings.get(K);if(!ye)continue;let Be=this.cosineSimilarity(O,ye);Be>=d&&q.push({document:le,score:Be})}return q.sort((K,le)=>le.score-K.score),q.slice(0,f)}searchByMetadata(a){let u=[];for(let f of this.documents.values())this.matchesFilter(f.metadata,a)&&u.push(f);return u}async getSimilar(a,u=10){if(!this.documents.get(a))throw new Error(`Document ${a} not found`);let d=this.embeddings.get(a);if(!d)throw new Error(`Embedding for document ${a} not found`);let w=[];for(let[O,q]of this.documents){if(O===a)continue;let K=this.embeddings.get(O);if(!K)continue;let le=this.cosineSimilarity(d,K);w.push({document:q,score:le})}return w.sort((O,q)=>q.score-O.score),w.slice(0,u)}getStats(){let a=0,u=new Set;for(let f of this.documents.values())a+=f.content.length,Object.keys(f.metadata).forEach(d=>u.add(d));return{documentCount:this.documents.size,totalSize:a,averageDocumentLength:this.documents.size>0?a/this.documents.size:0,metadataKeys:Array.from(u)}}clear(){this.documents.clear(),this.embeddings.clear()}export(){return Array.from(this.documents.values())}async import(a){for(let u of a)if(this.documents.set(u.id,u),u.embedding)this.embeddings.set(u.id,u.embedding);else{let f=await this.generateEmbedding(u.content);this.embeddings.set(u.id,f)}}generateId(a){return SOe.createHash("sha256").update(a).digest("hex").substring(0,16)}async generateEmbedding(a){let u=[],d=SOe.createHash("sha256").update(a).digest();for(let w=0;w<384;w++){let O=d[w%d.length];u.push(O/255*2-1)}return u}cosineSimilarity(a,u){if(a.length!==u.length)throw new Error("Vectors must have the same dimension");let f=0,d=0,w=0;for(let O=0;O<a.length;O++)f+=a[O]*u[O],d+=a[O]*a[O],w+=u[O]*u[O];return d=Math.sqrt(d),w=Math.sqrt(w),d===0||w===0?0:f/(d*w)}matchesFilter(a,u){for(let[f,d]of Object.entries(u))if(a[f]!==d)return!1;return!0}}});var TOe,qL,BL,wOe=mi(()=>{"use strict";TOe=Ea(require("path")),qL=Ea(require("fs/promises"));Aoe();AH();BL=class{constructor(a){this.documents=new Map;this.sessions=new Map;this.storePath=a,this.vectorStore=new S6,this.graphDb=new Gw}async initialize(){await qL.mkdir(this.storePath,{recursive:!0}),await this.load()}async addDocument(a,u,f,d){let w=`doc_${Date.now()}_${Math.random().toString(36).substring(7)}`,O={id:w,chatId:a,title:this.generateTitle(u,f),content:u,type:f,metadata:{created:new Date,updated:new Date,tags:d?.tags||[],references:d?.references||[],author:d?.author}};return this.documents.set(w,O),await this.vectorStore.addDocument(u,{id:w,chatId:a,type:f,title:O.title,tags:O.metadata.tags}),this.graphDb.addNode({id:w,type:"document",properties:{chatId:a,documentType:f,title:O.title,created:O.metadata.created.toISOString()}}),this.graphDb.addEdge({id:`edge_${w}_${a}`,from:a,to:w,type:"contains"}),await this.save(),w}getDocument(a){return this.documents.get(a)}async updateDocument(a,u){let f=this.documents.get(a);if(!f)throw new Error(`Document ${a} not found`);Object.assign(f,u),f.metadata.updated=new Date,u.content&&await this.vectorStore.updateDocument(a,u.content),this.graphDb.updateNode(a,{properties:{title:f.title,updated:f.metadata.updated.toISOString()}}),await this.save()}async searchDocuments(a,u){let f={};u?.chatId&&(f.chatId=u.chatId),u?.type&&(f.type=u.type);let d=await this.vectorStore.search(a,{topK:u?.limit||20,filter:f}),w=[];for(let O of d){let q=O.document.metadata.id,K=this.documents.get(q);if(K){if(u?.tags&&u.tags.length>0&&!u.tags.every(ye=>K.metadata.tags.includes(ye)))continue;w.push(K)}}return w}async saveSession(a){this.sessions.set(a.id,a),this.graphDb.getNode(a.id)?this.graphDb.updateNode(a.id,{properties:{title:a.title,updated:a.updated.toISOString(),messageCount:a.messages.length}}):this.graphDb.addNode({id:a.id,type:"session",properties:{title:a.title,created:a.created.toISOString(),messageCount:a.messages.length}}),await this.save()}getSession(a){return this.sessions.get(a)}getAllSessions(){return Array.from(this.sessions.values()).sort((a,u)=>u.updated.getTime()-a.updated.getTime())}findRelatedDocuments(a,u=10){let f=this.graphDb.getNodeEdges(a),d=new Set,w=this.documents.get(a);w&&this.graphDb.queryNodes({type:"document",properties:{chatId:w.chatId}}).forEach(K=>{K.id!==a&&d.add(K.id)});for(let q of f)q.type==="references"&&d.add(q.from===a?q.to:q.from);let O=[];for(let q of d){let K=this.documents.get(q);if(K&&O.push(K),O.length>=u)break}return O}async exportSession(a){let u=this.sessions.get(a);if(!u)throw new Error(`Session ${a} not found`);let f=[];for(let d of u.documents){let w=this.documents.get(d);w&&f.push(w)}return{session:u,documents:f}}getDocumentGraph(a){let u=a?this.graphDb.queryNodes({type:"document",properties:{chatId:a}}):this.graphDb.queryNodes({type:"document"}),f=u.map(w=>({id:w.id,label:w.properties.title||w.id,type:w.properties.documentType||"unknown"})),d=[];for(let w of u){let O=this.graphDb.getNodeEdges(w.id);for(let q of O)q.type==="references"&&d.push({from:q.from,to:q.to,type:q.type})}return{nodes:f,edges:d}}getStats(){let a={},u=0;for(let f of this.documents.values())a[f.type]=(a[f.type]||0)+1;for(let f of this.sessions.values())u+=f.documents.length;return{documentCount:this.documents.size,sessionCount:this.sessions.size,documentTypes:a,averageDocumentsPerSession:this.sessions.size>0?u/this.sessions.size:0,vectorStoreStats:this.vectorStore.getStats(),graphStats:this.graphDb.getStats()}}generateTitle(a,u){let f=a.split(`
|
|
`).filter(d=>d.trim());if(f.length===0)return"Untitled";switch(u){case"code":let d=f[0].match(/(?:function|class|def|const|let|var)\s+(\w+)/);if(d)return d[1];break;case"markdown":let w=f.find(O=>O.startsWith("#"));if(w)return w.replace(/^#+\s*/,"");break}return f[0].substring(0,50)+(f[0].length>50?"...":"")}async save(){let a={documents:Array.from(this.documents.entries()),sessions:Array.from(this.sessions.entries()),vectorStore:this.vectorStore.export(),graphDb:this.graphDb.toJSON()},u=TOe.join(this.storePath,"document-store.json");await qL.writeFile(u,JSON.stringify(a,null,2))}async load(){try{let a=TOe.join(this.storePath,"document-store.json"),u=JSON.parse(await qL.readFile(a,"utf-8"));this.documents=new Map(u.documents.map(([f,d])=>(d.metadata.created=new Date(d.metadata.created),d.metadata.updated=new Date(d.metadata.updated),[f,d]))),this.sessions=new Map(u.sessions.map(([f,d])=>(d.created=new Date(d.created),d.updated=new Date(d.updated),d.messages=d.messages.map(w=>({...w,timestamp:new Date(w.timestamp)})),[f,d]))),u.vectorStore&&await this.vectorStore.import(u.vectorStore),u.graphDb&&(this.graphDb=Gw.fromJSON(u.graphDb))}catch{console.log("Starting with empty document store")}}}});function COe(){return kOe||(kOe=new S6),kOe}function Dcr(o){if(!Ioe){let a=GT.join(o.globalStorageUri.fsPath,"documents");Ioe=new BL(a),Ioe.initialize().catch(console.error)}return Ioe}function fut(o){let a=put.workspace.workspaceFolders?.[0]?.uri.fsPath||"";return[{name:"vector_index",description:"Index content for vector search",inputSchema:{type:"object",properties:{path:{type:"string",description:"Path to index"},recursive:{type:"boolean",description:"Index recursively (default: true)"},fileTypes:{type:"array",items:{type:"string"},description:"File extensions to index (default: all text files)"}},required:["path"]},handler:async u=>{let f=COe(),d=GT.isAbsolute(u.path)?u.path:GT.join(a,u.path),w=0,O=u.fileTypes||[".txt",".md",".js",".ts",".json",".py",".java",".cpp",".c",".h"];async function q(Be){let ce=GT.extname(Be);if(O.includes(ce))try{let mt=await JL.readFile(Be,"utf-8");await f.addDocument(mt,{filePath:GT.relative(a,Be),fileName:GT.basename(Be),extension:ce,size:mt.length}),w++}catch{}}async function K(Be){let ce=await JL.readdir(Be,{withFileTypes:!0});for(let mt of ce){let Re=GT.join(Be,mt.name);mt.isDirectory()&&u.recursive!==!1?!mt.name.startsWith(".")&&mt.name!=="node_modules"&&await K(Re):mt.isFile()&&await q(Re)}}(await JL.stat(d)).isDirectory()?await K(d):await q(d);let ye=f.getStats();return{indexed:w,total:ye.documentCount,path:u.path,message:`Indexed ${w} files, total documents: ${ye.documentCount}`}}},{name:"vector_search",description:"Semantic search using embeddings",inputSchema:{type:"object",properties:{query:{type:"string",description:"Search query"},filter:{type:"object",description:"Metadata filters",properties:{filePath:{type:"string"},extension:{type:"string"}}},topK:{type:"number",description:"Number of results to return (default: 10)"},threshold:{type:"number",description:"Minimum similarity threshold (0-1, default: 0)"}},required:["query"]},handler:async u=>{let d=await COe().search(u.query,{topK:u.topK||10,threshold:u.threshold||0,filter:u.filter});return{count:d.length,results:d.map(w=>({score:w.score.toFixed(3),content:w.document.content.substring(0,200)+"...",metadata:w.document.metadata}))}}},{name:"vector_similar",description:"Find similar documents to a given document",inputSchema:{type:"object",properties:{documentId:{type:"string",description:"Document ID to find similar documents for"},topK:{type:"number",description:"Number of results to return (default: 10)"}},required:["documentId"]},handler:async u=>{let d=await COe().getSimilar(u.documentId,u.topK||10);return{count:d.length,results:d.map(w=>({score:w.score.toFixed(3),content:w.document.content.substring(0,200)+"...",metadata:w.document.metadata}))}}},{name:"document_store",description:"Store and manage chat documents",inputSchema:{type:"object",properties:{operation:{type:"string",enum:["add","get","search","update","save_session","get_stats"],description:"Operation to perform"},chatId:{type:"string"},content:{type:"string"},type:{type:"string",enum:["code","markdown","text","image","file"]},metadata:{type:"object"},documentId:{type:"string"},updates:{type:"object"},query:{type:"string"},session:{type:"object"}},required:["operation"]},handler:async u=>{let f=Dcr(o);switch(u.operation){case"add":if(!u.chatId||!u.content||!u.type)throw new Error("chatId, content, and type are required");return{documentId:await f.addDocument(u.chatId,u.content,u.type,u.metadata),message:"Document added successfully"};case"get":if(!u.documentId)throw new Error("documentId required");return f.getDocument(u.documentId)||{error:"Document not found"};case"search":if(!u.query)throw new Error("query required");let O=await f.searchDocuments(u.query,{chatId:u.chatId,type:u.type,tags:u.tags,limit:u.limit});return{count:O.length,documents:O.map(q=>({id:q.id,title:q.title,type:q.type,preview:q.content.substring(0,100)+"...",metadata:q.metadata}))};case"update":if(!u.documentId||!u.updates)throw new Error("documentId and updates required");return await f.updateDocument(u.documentId,u.updates),"Document updated successfully";case"save_session":if(!u.session)throw new Error("session required");return await f.saveSession(u.session),"Session saved successfully";case"get_stats":return f.getStats();default:throw new Error(`Unknown operation: ${u.operation}`)}}}]}var put,GT,JL,kOe,Ioe,_ut=mi(()=>{"use strict";put=Ea(f0()),GT=Ea(require("path")),JL=Ea(require("fs/promises"));Aoe();wOe();kOe=null,Ioe=null});function dut(o){return[{name:"mcp",description:"Manage MCP servers and tools",inputSchema:{type:"object",properties:{action:{type:"string",enum:["add","remove","list","stats"],description:"MCP management action"},server:{type:"string",description:"MCP server name or path"},config:{type:"object",description:"Server configuration"}},required:["action"]},handler:async a=>{switch(a.action){case"list":return`Available MCP servers:
|
|
- hanzo (built-in)
|
|
- More servers can be added`;case"add":return"Adding external MCP servers coming soon";case"remove":return"Removing MCP servers coming soon";case"stats":return"MCP statistics coming soon";default:throw new Error(`Unknown action: ${a.action}`)}}},{name:"mcp_add",description:"Add an external MCP server",inputSchema:{type:"object",properties:{name:{type:"string",description:"Server name"},command:{type:"string",description:"Command to start the server"},env:{type:"object",description:"Environment variables"}},required:["name","command"]},handler:async a=>"MCP server addition coming soon"},{name:"mcp_remove",description:"Remove an MCP server",inputSchema:{type:"object",properties:{name:{type:"string",description:"Server name to remove"}},required:["name"]},handler:async a=>"MCP server removal coming soon"},{name:"mcp_stats",description:"Show MCP server statistics",inputSchema:{type:"object",properties:{server:{type:"string",description:"Server name (optional, shows all if not specified)"}}},handler:async a=>"MCP statistics coming soon"}]}var mut=mi(()=>{"use strict"});function gut(o){return[{name:"think",description:"A dedicated thinking space for complex reasoning and planning",inputSchema:{type:"object",properties:{thought:{type:"string",description:"Your detailed thought process, analysis, or planning"}},required:["thought"]},handler:async a=>{console.log("[Think Tool] Processing thought:",a.thought);let u=o.globalState.get("hanzo.thoughts",[]);return u.push(`[${new Date().toISOString()}] ${a.thought}`),u.length>100&&u.splice(0,u.length-100),await o.globalState.update("hanzo.thoughts",u),"Thought process recorded"}},{name:"batch",description:"Execute multiple tool operations atomically",inputSchema:{type:"object",properties:{operations:{type:"array",items:{type:"object",properties:{tool:{type:"string"},args:{type:"object"}},required:["tool","args"]},description:"Array of tool operations to execute"},stopOnError:{type:"boolean",description:"Stop execution on first error (default: true)"}},required:["operations"]},handler:async a=>{let u=a.stopOnError!==!1,f=[],d=new tO(o);for(let q=0;q<a.operations.length;q++){let K=a.operations[q];try{let le=d.getTool(K.tool);if(!le)throw new Error(`Tool '${K.tool}' not found or not enabled`);let ye=await le.handler(K.args);f.push({index:q,tool:K.tool,status:"success",result:ye})}catch(le){if(f.push({index:q,tool:K.tool,status:"error",error:le.message}),u)break}}let w={total:a.operations.length,executed:f.length,successful:f.filter(q=>q.status==="success").length,failed:f.filter(q=>q.status==="error").length},O=`Batch execution: ${w.successful}/${w.executed} successful
|
|
|
|
`;for(let q of f)O+=`[${q.index+1}] ${q.tool}: ${q.status}
|
|
`,q.status==="error"&&(O+=` Error: ${q.error}
|
|
`);return O}},{name:"tool_enable",description:"Enable a specific tool",inputSchema:{type:"object",properties:{name:{type:"string",description:"Name of the tool to enable"}},required:["name"]},handler:async a=>(new tO(o).enableTool(a.name),`Tool '${a.name}' has been enabled`)},{name:"tool_disable",description:"Disable a specific tool",inputSchema:{type:"object",properties:{name:{type:"string",description:"Name of the tool to disable"}},required:["name"]},handler:async a=>(new tO(o).disableTool(a.name),`Tool '${a.name}' has been disabled`)},{name:"tool_list",description:"List all available tools and their status",inputSchema:{type:"object",properties:{category:{type:"string",enum:["all","filesystem","search","shell","ai","development"],description:"Filter by category (default: all)"},showDisabled:{type:"boolean",description:"Show disabled tools (default: false)"}}},handler:async a=>{let u=new tO(o);await u.initialize();let f=u.getAllTools(),d=u.getToolStats(),w=`Total tools: ${d.total} (${d.enabled} enabled, ${d.disabled} disabled)
|
|
|
|
`,O={filesystem:["read","write","edit","multi_edit","directory_tree","find_files"],search:["grep","search","symbols","git_search","grep_ast","batch_search"],shell:["run_command","bash","run_background","processes","pkill","logs","open","npx","uvx"],ai:["dispatch_agent","llm","consensus","think"],development:["todo_read","todo_write","notebook_read","notebook_edit"],system:["batch","tool_enable","tool_disable","tool_list","stats"],other:[]};for(let q of f){let K=!1;for(let[le,ye]of Object.entries(O))if(ye.includes(q.name)){K=!0;break}K||O.other.push(q.name)}for(let[q,K]of Object.entries(O))if(!(a.category&&a.category!=="all"&&a.category!==q||K.filter(ye=>f.some(Be=>Be.name===ye)).length===0&&!a.showDisabled)){w+=`=== ${q.charAt(0).toUpperCase()+q.slice(1)} ===
|
|
`;for(let ye of K){let Be=f.find(ce=>ce.name===ye);Be?w+=`\u2705 ${ye}: ${Be.description}
|
|
`:a.showDisabled&&(w+=`\u274C ${ye}: (disabled)
|
|
`)}w+=`
|
|
`}return w.trim()}},{name:"stats",description:"Display system and usage statistics",inputSchema:{type:"object",properties:{}},handler:async()=>{let u=new tO(o).getToolStats(),f={platform:KT.platform(),arch:KT.arch(),cpus:KT.cpus().length,totalMemory:Math.round(KT.totalmem()/1024/1024/1024)+" GB",freeMemory:Math.round(KT.freemem()/1024/1024/1024)+" GB",uptime:Math.round(KT.uptime()/3600)+" hours"},d={version:r7.version,workspace:r7.workspace.name||"No workspace",workspaceFolders:r7.workspace.workspaceFolders?.length||0,openEditors:r7.window.visibleTextEditors.length},w=o.globalState.get("hanzo.thoughts",[]),O=o.globalState.get("hanzo.todos"),q=0;try{q=JSON.parse(O||"[]").length}catch{}let K={thoughtsRecorded:w.length,todosActive:q,toolsEnabled:u.enabled,toolsTotal:u.total};return`=== System Information ===
|
|
Platform: ${f.platform} (${f.arch})
|
|
CPUs: ${f.cpus}
|
|
Memory: ${f.freeMemory} free / ${f.totalMemory} total
|
|
Uptime: ${f.uptime}
|
|
|
|
=== VS Code Information ===
|
|
Version: ${d.version}
|
|
Workspace: ${d.workspace}
|
|
Workspace Folders: ${d.workspaceFolders}
|
|
Open Editors: ${d.openEditors}
|
|
|
|
=== Extension Information ===
|
|
Thoughts Recorded: ${K.thoughtsRecorded}
|
|
Active Todos: ${K.todosActive}
|
|
Tools Enabled: ${K.toolsEnabled} / ${K.toolsTotal}
|
|
|
|
=== Tool Categories ===
|
|
Filesystem: ${u.categories.filesystem} tools
|
|
Search: ${u.categories.search} tools
|
|
Shell: ${u.categories.shell} tools
|
|
AI: ${u.categories.ai} tools
|
|
Development: ${u.categories.development} tools`}}]}var r7,KT,hut=mi(()=>{"use strict";r7=Ea(f0()),KT=Ea(require("os"));POe()});function yut(o){return[{name:"palette",description:"Switch tool palette/personality",inputSchema:{type:"object",properties:{action:{type:"string",enum:["list","activate","current","reset"],description:"Action to perform"},name:{type:"string",description:"Palette name (for activate action)"}},required:["action"]},handler:async a=>{let u="hanzo.mcp.activePalette";switch(a.action){case"list":{let f=o.globalState.get(u),d=`Available palettes:
|
|
|
|
`;for(let[w,O]of Object.entries(Foe))d+=`${w}${w===f?" (active)":""}: ${O.description}
|
|
`,d+=` Tools: ${O.tools.length}
|
|
`,O.environment&&Object.keys(O.environment).length>0&&(d+=` Environment: ${Object.keys(O.environment).join(", ")}
|
|
`),d+=`
|
|
`;return d.trim()}case"activate":{if(!a.name)return"Error: Palette name required for activate action";let f=Foe[a.name];if(!f)return`Error: Unknown palette '${a.name}'. Available: ${Object.keys(Foe).join(", ")}`;await o.globalState.update(u,a.name),await EOe.workspace.getConfiguration("hanzo.mcp").update("enabledTools",f.tools,!0);for(let[w,O]of Object.entries(f.environment||{}))process.env[w]=O;return`Activated palette '${a.name}' with ${f.tools.length} tools`}case"current":{let f=o.globalState.get(u);if(!f)return"No palette currently active";let d=Foe[f];return`Current palette: ${f}
|
|
Description: ${d.description}
|
|
Active tools: ${d.tools.join(", ")}`}case"reset":return await o.globalState.update(u,void 0),await EOe.workspace.getConfiguration("hanzo.mcp").update("enabledTools",void 0,!0),"Palette reset to default configuration";default:return`Error: Unknown action '${a.action}'`}}}]}var EOe,Foe,vut=mi(()=>{"use strict";EOe=Ea(f0()),Foe={minimal:{name:"Minimal",description:"Essential tools only",tools:["read","write","edit","directory_tree","grep","run_command","think"],environment:{}},python:{name:"Python Developer",description:"Tools optimized for Python development",tools:["read","write","edit","multi_edit","directory_tree","find_files","grep","search","symbols","git_search","run_command","process","open","notebook_read","notebook_edit","todo","think","batch"],environment:{PYTHON_ENV:"development"}},javascript:{name:"JavaScript Developer",description:"Tools for Node.js and web development",tools:["read","write","edit","multi_edit","directory_tree","find_files","grep","search","symbols","git_search","run_command","process","npx","open","todo","think","batch"],environment:{NODE_ENV:"development"}},devops:{name:"DevOps Engineer",description:"Infrastructure and operations tools",tools:["read","write","edit","directory_tree","find_files","grep","search","git_search","run_command","process","open","config","stats","think","batch"],environment:{ENVIRONMENT:"production"}},"data-science":{name:"Data Scientist",description:"Tools for data analysis and ML",tools:["read","write","edit","directory_tree","find_files","grep","search","run_command","process","notebook_read","notebook_edit","vector_index","vector_search","think","batch"],environment:{JUPYTER_ENV:"lab"}}}});async function Ncr(){try{await T6.mkdir(Tut,{recursive:!0})}catch{}}function wut(o){return Ncr(),{name:"process",description:"Unified process management (list, run, kill, logs)",inputSchema:{type:"object",properties:{action:{type:"string",enum:["list","run","kill","logs","clean"],description:"Action to perform"},command:{type:"string",description:"Command to run (for run action)"},name:{type:"string",description:"Process name (for run action)"},id:{type:"string",description:"Process ID (for kill/logs actions)"},cwd:{type:"string",description:"Working directory (for run action)"},env:{type:"object",description:"Environment variables (for run action)"},tail:{type:"number",description:"Number of lines to tail (for logs action)"}},required:["action"]},handler:async a=>{switch(a.action){case"list":{if(n7.size===0)return"No processes running";let u=Array.from(n7.values()).sort((d,w)=>w.startTime.getTime()-d.startTime.getTime()),f=`ID | Status | Name | Started
|
|
`;f+=`------------------------------------ | --------- | ------------------- | -------
|
|
`;for(let d of u){let w=d.endTime?`${((d.endTime.getTime()-d.startTime.getTime())/1e3).toFixed(1)}s`:`${((Date.now()-d.startTime.getTime())/1e3).toFixed(1)}s`;f+=`${d.id} | ${d.status.padEnd(9)} | ${d.name.padEnd(19).slice(0,19)} | ${w}
|
|
`}return f}case"run":{if(!a.command)return"Error: Command required for run action";let u=Ocr(),f=a.name||a.command.split(" ")[0],d=DOe.join(Tut,`${u}.log`),w=await T6.open(d,"w"),[O,...q]=a.command.split(" "),K=(0,Sut.spawn)(O,q,{cwd:a.cwd||but.workspace.workspaceFolders?.[0]?.uri.fsPath,env:{...process.env,...a.env},detached:!0,stdio:["ignore","pipe","pipe"]}),le={id:u,pid:K.pid,name:f,command:a.command,startTime:new Date,status:"running",logFile:d,process:K};return n7.set(u,le),K.stdout?.on("data",async ye=>{await w.write(`[stdout] ${ye}`)}),K.stderr?.on("data",async ye=>{await w.write(`[stderr] ${ye}`)}),K.on("exit",async ye=>{le.endTime=new Date,le.exitCode=ye??void 0,le.status=ye===0?"completed":"failed",delete le.process,await w.write(`
|
|
[Process exited with code ${ye}]
|
|
`),await w.close()}),`Started process ${u} (PID: ${K.pid})
|
|
Name: ${f}
|
|
Command: ${a.command}
|
|
Log file: ${d}`}case"kill":{if(!a.id)return"Error: Process ID required for kill action";let u=n7.get(a.id);if(!u)return`Error: Process ${a.id} not found`;if(u.status!=="running")return`Process ${a.id} is not running (status: ${u.status})`;try{return u.process?.kill(),`Killed process ${a.id} (${u.name})`}catch(f){return`Error killing process: ${f.message}`}}case"logs":{if(!a.id)return"Error: Process ID required for logs action";let u=n7.get(a.id);if(!u)return`Error: Process ${a.id} not found`;try{let f=await T6.readFile(u.logFile,"utf-8");return a.tail&&a.tail>0?f.split(`
|
|
`).slice(-a.tail).join(`
|
|
`):f||"No logs available"}catch(f){return`Error reading logs: ${f.message}`}}case"clean":{let u=[];for(let[f,d]of n7.entries())if(d.status!=="running"){n7.delete(f),u.push(`${f} (${d.name})`);try{await T6.unlink(d.logFile)}catch{}}return u.length===0?"No completed processes to clean":`Cleaned ${u.length} processes:
|
|
${u.join(`
|
|
`)}`}default:return`Error: Unknown action '${a.action}'`}}}}var but,DOe,T6,xut,Sut,Ocr,n7,Tut,kut=mi(()=>{"use strict";but=Ea(f0()),DOe=Ea(require("path")),T6=Ea(require("fs/promises")),xut=Ea(require("os")),Sut=require("child_process"),Ocr=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){let a=Math.random()*16|0;return(o==="x"?a:a&3|8).toString(16)}),n7=new Map,Tut=DOe.join(xut.homedir(),".hanzo","logs")});function Put(o){let a=".hanzo/config.json",u=zL.join(Cut.homedir(),".hanzo","config.json");async function f(w){let O={};if(w==="global"||w==="all")try{let q=await w6.readFile(u,"utf-8"),K=JSON.parse(q);for(let[le,ye]of Object.entries(K))O[le]={value:ye,scope:"global",timestamp:new Date}}catch{}if(w==="local"||w==="all"){let q=OOe.workspace.workspaceFolders?.[0]?.uri.fsPath;if(q)try{let K=zL.join(q,a),le=await w6.readFile(K,"utf-8"),ye=JSON.parse(le);for(let[Be,ce]of Object.entries(ye))O[Be]={value:ce,scope:"local",timestamp:new Date}}catch{}}return O}async function d(w,O,q){let K=q==="global"?u:zL.join(OOe.workspace.workspaceFolders?.[0]?.uri.fsPath||"",a);await w6.mkdir(zL.dirname(K),{recursive:!0});let le={};try{let ye=await w6.readFile(K,"utf-8");le=JSON.parse(ye)}catch{}O===null?delete le[w]:le[w]=O,await w6.writeFile(K,JSON.stringify(le,null,2))}return{name:"config",description:"Manage configuration settings",inputSchema:{type:"object",properties:{action:{type:"string",enum:["get","set","unset","list"],description:"Action to perform"},key:{type:"string",description:"Configuration key"},value:{description:"Configuration value (for set action)"},scope:{type:"string",enum:["local","global"],description:"Configuration scope (default: local)"}},required:["action"]},handler:async w=>{let O=w.scope||"local";switch(w.action){case"get":{if(!w.key)return"Error: Key required for get action";let K=(await f("all"))[w.key];return K?`${w.key} = ${JSON.stringify(K.value)} (${K.scope})`:`Configuration key '${w.key}' not found`}case"set":return w.key?w.value===void 0?"Error: Value required for set action":(await d(w.key,w.value,O),`Set ${w.key} = ${JSON.stringify(w.value)} (${O})`):"Error: Key required for set action";case"unset":return w.key?(await d(w.key,null,O),`Unset ${w.key} (${O})`):"Error: Key required for unset action";case"list":{let q=await f("all");if(Object.keys(q).length===0)return"No configuration settings found";let K=`Configuration settings:
|
|
|
|
`,le={global:[],local:[]};for(let[ye,Be]of Object.entries(q))le[Be.scope].push([ye,Be.value]);if(le.global.length>0){K+=`Global:
|
|
`;for(let[ye,Be]of le.global)K+=` ${ye} = ${JSON.stringify(Be)}
|
|
`;K+=`
|
|
`}if(le.local.length>0){K+=`Local:
|
|
`;for(let[ye,Be]of le.local)K+=` ${ye} = ${JSON.stringify(Be)}
|
|
`}return K.trim()}default:return`Error: Unknown action '${w.action}'`}}}}var OOe,zL,w6,Cut,Eut=mi(()=>{"use strict";OOe=Ea(f0()),zL=Ea(require("path")),w6=Ea(require("fs/promises")),Cut=Ea(require("os"))});function Out(o){return{name:"rules",description:"Read project rules and conventions",inputSchema:{type:"object",properties:{path:{type:"string",description:"Project path (default: workspace root)"},format:{type:"string",enum:["full","summary","list"],description:"Output format (default: full)"}}},handler:async a=>{let u=a.path||Dut.workspace.workspaceFolders?.[0]?.uri.fsPath||".",f=a.format||"full",d=[];for(let O of Acr){let q=Moe.join(u,O);try{let K=await IH.readFile(q,"utf-8");d.push({file:O,content:K})}catch{}}let w=[".github","docs",".vscode"];for(let O of w){let q=Moe.join(u,O);try{let K=await IH.readdir(q);for(let le of K)if(le.toLowerCase().includes("convention")||le.toLowerCase().includes("style")||le.toLowerCase().includes("guide"))try{let ye=await IH.readFile(Moe.join(q,le),"utf-8");d.push({file:`${O}/${le}`,content:ye})}catch{}}catch{}}if(d.length===0)return"No project rules or conventions found";switch(f){case"list":return`Found ${d.length} rule files:
|
|
`+d.map(O=>`- ${O.file}`).join(`
|
|
`);case"summary":{let O=`Found ${d.length} rule files:
|
|
|
|
`;for(let q of d){let K=q.content.split(`
|
|
`).filter(ye=>ye.trim()),le=K.slice(0,3).join(`
|
|
`);O+=`=== ${q.file} ===
|
|
${le}
|
|
...(${K.length} lines total)
|
|
|
|
`}return O.trim()}case"full":default:{let O="";for(let q of d)O+=`=== ${q.file} ===
|
|
${q.content}
|
|
|
|
`;return O.trim()}}}}}var Dut,Moe,IH,Acr,Nut=mi(()=>{"use strict";Dut=Ea(f0()),Moe=Ea(require("path")),IH=Ea(require("fs/promises")),Acr=[".cursorrules",".claude_instructions",".claude",".continuerules",".windsurfrules",".aiderignore",".llm_instructions","CONVENTIONS.md","CONTRIBUTING.md","CODE_STYLE.md"]});function Iut(o){let a=joe.join(Aut.homedir(),".hanzo","thoughts.jsonl");async function u(f){await Loe.mkdir(joe.dirname(a),{recursive:!0}),await Loe.appendFile(a,JSON.stringify(f)+`
|
|
`)}return{name:"think",description:"Structured thinking and reasoning space",inputSchema:{type:"object",properties:{thought:{type:"string",description:"Your thought process or reasoning"},category:{type:"string",enum:["analysis","planning","debugging","design","reflection","hypothesis"],description:"Type of thinking"},metadata:{type:"object",description:"Additional context or data"}},required:["thought"]},handler:async f=>{let d={id:Date.now().toString(),timestamp:new Date,category:f.category||"analysis",content:f.thought,metadata:f.metadata};await u(d);let w=o.globalState.get("recentThoughts",[]);return w.push(d),w.length>100&&w.shift(),await o.globalState.update("recentThoughts",w),`Thought recorded (${d.category}):
|
|
${d.content}
|
|
|
|
This thought has been saved for future reference. Use this space to:
|
|
- Break down complex problems
|
|
- Plan implementation approaches
|
|
- Debug issues systematically
|
|
- Design system architectures
|
|
- Reflect on decisions made
|
|
- Form and test hypotheses`}}}function Fut(o){return{name:"critic",description:"Critical analysis and code review",inputSchema:{type:"object",properties:{code:{type:"string",description:"Code to review"},file:{type:"string",description:"File path to review"},aspect:{type:"string",enum:["security","performance","readability","correctness","all"],description:"Aspect to focus on (default: all)"}}},handler:async a=>{let u=a.code;if(a.file)try{let O=await Roe.workspace.fs.readFile(Roe.Uri.file(a.file));u=Buffer.from(O).toString("utf-8")}catch(O){return`Error reading file: ${O.message}`}if(!u)return"Error: No code provided for review";let f=a.aspect||"all",d={lineCount:u.split(`
|
|
`).length,hasConsoleLog:/console\.(log|error|warn)/.test(u),hasTodo:/TODO|FIXME|HACK/.test(u),hasHardcodedValues:/["'](?:password|secret|key|token)["']\s*[:=]\s*["'][^"']+["']/.test(u),hasLongLines:u.split(`
|
|
`).some(O=>O.length>120),complexity:Icr(u)},w=`## Code Review
|
|
|
|
`;return(f==="all"||f==="security")&&(w+=`### Security
|
|
`,d.hasHardcodedValues&&(w+=`\u26A0\uFE0F Potential hardcoded secrets detected
|
|
`),(u.includes("eval(")||u.includes("exec("))&&(w+=`\u26A0\uFE0F Dangerous eval/exec usage detected
|
|
`),w+=`
|
|
`),(f==="all"||f==="performance")&&(w+=`### Performance
|
|
`,u.includes("forEach")&&u.includes("await")&&(w+=`\u26A0\uFE0F Potential async performance issue with forEach
|
|
`),d.complexity>10&&(w+=`\u26A0\uFE0F High complexity detected (score: ${d.complexity})
|
|
`),w+=`
|
|
`),(f==="all"||f==="readability")&&(w+=`### Readability
|
|
`,d.hasLongLines&&(w+=`\u26A0\uFE0F Lines exceeding 120 characters found
|
|
`),d.hasTodo&&(w+=`\u2139\uFE0F TODO/FIXME comments found
|
|
`),d.hasConsoleLog&&(w+=`\u2139\uFE0F Console logging statements found
|
|
`),w+=`
|
|
`),w+=`### Summary
|
|
`,w+=`- Lines of code: ${d.lineCount}
|
|
`,w+=`- Complexity score: ${d.complexity}/10
|
|
`,w}}}function Icr(o){let a=1;a+=(o.match(/if\s*\(/g)||[]).length*.5,a+=(o.match(/for\s*\(/g)||[]).length*.7,a+=(o.match(/while\s*\(/g)||[]).length*.7,a+=(o.match(/catch\s*\(/g)||[]).length*.3;let u=o.split(`
|
|
`),f=0,d=0;for(let w of u)d+=(w.match(/{/g)||[]).length,d-=(w.match(/}/g)||[]).length,f=Math.max(f,d);return a+=f*.5,Math.min(10,Math.round(a))}var Roe,joe,Loe,Aut,Mut=mi(()=>{"use strict";Roe=Ea(f0()),joe=Ea(require("path")),Loe=Ea(require("fs/promises")),Aut=Ea(require("os"))});function Rut(o){let a="hanzo.todos",u=()=>{let d=o.globalState.get(a);if(!d)return[];try{return JSON.parse(d).map(O=>({...O,createdAt:new Date(O.createdAt),updatedAt:new Date(O.updatedAt)}))}catch{return[]}},f=d=>{o.globalState.update(a,JSON.stringify(d))};return{name:"todo",description:"Unified todo management",inputSchema:{type:"object",properties:{action:{type:"string",enum:["read","write","add","update","delete","clear"],description:"Action to perform"},tasks:{type:"array",items:{type:"object",properties:{id:{type:"string"},content:{type:"string"},status:{type:"string",enum:["pending","in_progress","completed"]},priority:{type:"string",enum:["high","medium","low"]}}},description:"Tasks to add/update"},task:{type:"string",description:"Single task content (for add action)"},id:{type:"string",description:"Task ID (for update/delete actions)"},status:{type:"string",enum:["all","pending","in_progress","completed"],description:"Filter by status (for read action)"},priority:{type:"string",enum:["all","high","medium","low"],description:"Filter by priority"}},required:["action"]},handler:async d=>{switch(d.action){case"read":{let O=u();if(d.status&&d.status!=="all"&&(O=O.filter(ye=>ye.status===d.status)),d.priority&&d.priority!=="all"&&(O=O.filter(ye=>ye.priority===d.priority)),O.length===0)return"No todos found";let q=ye=>{let Be={pending:"\u23F3",in_progress:"\u{1F504}",completed:"\u2705"},ce={high:"\u{1F534}",medium:"\u{1F7E1}",low:"\u{1F7E2}"};return`${Be[ye.status]} [${ye.id}] ${ce[ye.priority]} ${ye.content}`},K={in_progress:O.filter(ye=>ye.status==="in_progress"),pending:O.filter(ye=>ye.status==="pending"),completed:O.filter(ye=>ye.status==="completed")},le=[];return K.in_progress.length>0&&le.push(`=== In Progress ===
|
|
`+K.in_progress.map(q).join(`
|
|
`)),K.pending.length>0&&le.push(`=== Pending ===
|
|
`+K.pending.map(q).join(`
|
|
`)),K.completed.length>0&&le.push(`=== Completed ===
|
|
`+K.completed.map(q).join(`
|
|
`)),le.join(`
|
|
|
|
`)}case"add":{let w=u();if(d.task){let O={id:`${Date.now()}`,content:d.task,status:"pending",priority:"medium",createdAt:new Date,updatedAt:new Date};return w.push(O),f(w),`Added todo: ${O.content} (ID: ${O.id})`}return"Error: Task content required for add action"}case"write":{if(!d.tasks||!Array.isArray(d.tasks))return"Error: Tasks array required for write action";let w=u(),O=0,q=0;for(let K of d.tasks){let le=w.find(ye=>ye.id===K.id);le?(K.content!==void 0&&(le.content=K.content),K.status!==void 0&&(le.status=K.status),K.priority!==void 0&&(le.priority=K.priority),le.updatedAt=new Date,q++):(w.push({id:K.id||`${Date.now()}-${Math.random()}`,content:K.content||"",status:K.status||"pending",priority:K.priority||"medium",createdAt:new Date,updatedAt:new Date}),O++)}return f(w),`Todo list updated: ${O} added, ${q} updated`}case"update":{if(!d.id)return"Error: ID required for update action";let w=u(),O=w.find(q=>q.id===d.id);return O?(d.status&&(O.status=d.status),d.priority&&(O.priority=d.priority),d.task&&(O.content=d.task),O.updatedAt=new Date,f(w),`Updated todo ${d.id}`):`Error: Todo ${d.id} not found`}case"delete":{if(!d.id)return"Error: ID required for delete action";let w=u(),O=w.findIndex(K=>K.id===d.id);if(O===-1)return`Error: Todo ${d.id} not found`;let q=w.splice(O,1)[0];return f(w),`Deleted todo: ${q.content}`}case"clear":{let w=u(),O=w.filter(K=>K.status==="completed"),q=w.filter(K=>K.status!=="completed");return f(q),`Cleared ${O.length} completed todos`}default:return`Error: Unknown action '${d.action}'`}}}}var jut=mi(()=>{"use strict"});function qut(o){let a=i7.workspace.workspaceFolders?.[0]?.uri.fsPath||".";async function u(O,q){try{let K=q?`--glob "${q}"`:"",le=`rg --json "${O}" ${K} --max-count 50`,{stdout:ye}=await NOe(le,{cwd:a,maxBuffer:10*1024*1024}),Be=[],ce=ye.split(`
|
|
`).filter(mt=>mt.trim());for(let mt of ce)try{let Re=JSON.parse(mt);if(Re.type==="match"){let Ge=Re.data;Be.push({type:"grep",file:Ge.path.text,line:Ge.line_number,match:Ge.lines.text.trim(),context:Ge.lines.text})}}catch{}return Be}catch(K){return console.error("Grep search error:",K),[]}}async function f(O){try{let q=await i7.commands.executeCommand("vscode.executeWorkspaceSymbolProvider",O);return q?q.slice(0,30).map(K=>({type:"symbol",file:K.location.uri.fsPath,line:K.location.range.start.line+1,column:K.location.range.start.character+1,match:`${K.name} (${i7.SymbolKind[K.kind]})`,context:K.containerName})):[]}catch(q){return console.error("Symbol search error:",q),[]}}async function d(O){try{let{stdout:q}=await NOe(`git log --grep="${O}" --oneline --max-count=20`,{cwd:a}),K=[];if(q.trim()){let le=q.split(`
|
|
`).filter(ye=>ye.trim());for(let ye of le){let[Be,...ce]=ye.split(" ");K.push({type:"git",match:`Commit: ${ce.join(" ")}`,context:`Hash: ${Be}`})}}try{let{stdout:le}=await NOe(`git log --all --full-history -- "*${O}*" --oneline --max-count=10`,{cwd:a});if(le.trim()){let ye=le.split(`
|
|
`).filter(Be=>Be.trim());for(let Be of ye)K.push({type:"git",match:`File history: ${Be}`,context:"Git file history match"})}}catch{}return K}catch(q){return console.error("Git search error:",q),[]}}async function w(O){try{let q=`**/*${O}*`;return(await i7.workspace.findFiles(q,null,50)).map(le=>({type:"filename",file:le.fsPath,match:Boe.basename(le.fsPath),context:Boe.dirname(le.fsPath)}))}catch(q){return console.error("Filename search error:",q),[]}}return{name:"unified_search",description:"Comprehensive parallel search across code, symbols, git history, and filenames",inputSchema:{type:"object",properties:{query:{type:"string",description:"Search query"},include:{type:"array",items:{type:"string"},enum:["grep","symbol","git","filename"],description:"Search types to include (default: all)"},file_pattern:{type:"string",description:'File pattern to filter results (e.g., "*.ts")'},max_results:{type:"number",description:"Maximum results per search type (default: 20)"}},required:["query"]},handler:async O=>{let q=O.include||["grep","symbol","git","filename"],K=O.max_results||20,le=[];q.includes("grep")&&le.push(u(O.query,O.file_pattern)),q.includes("symbol")&&le.push(f(O.query)),q.includes("git")&&le.push(d(O.query)),q.includes("filename")&&le.push(w(O.query));let Be=(await Promise.all(le)).flat(),ce={};for(let Re of Be)ce[Re.type]||(ce[Re.type]=[]),ce[Re.type].push(Re);let mt=`# Unified Search Results for: "${O.query}"
|
|
|
|
`;if(mt+=`Total results: ${Be.length}
|
|
|
|
`,ce.grep?.length>0){mt+=`## Text Matches (${ce.grep.length})
|
|
|
|
`;for(let Re of ce.grep.slice(0,K))mt+=`\u{1F4C4} ${Re.file}:${Re.line}
|
|
`,mt+=` ${Re.match}
|
|
|
|
`}if(ce.symbol?.length>0){mt+=`## Symbol Matches (${ce.symbol.length})
|
|
|
|
`;for(let Re of ce.symbol.slice(0,K))mt+=`\u{1F50D} ${Re.match}
|
|
`,mt+=` ${Re.file}:${Re.line}
|
|
`,Re.context&&(mt+=` Container: ${Re.context}
|
|
`),mt+=`
|
|
`}if(ce.git?.length>0){mt+=`## Git History Matches (${ce.git.length})
|
|
|
|
`;for(let Re of ce.git.slice(0,K))mt+=`\u{1F4DA} ${Re.match}
|
|
`,Re.context&&(mt+=` ${Re.context}
|
|
`),mt+=`
|
|
`}if(ce.filename?.length>0){mt+=`## Filename Matches (${ce.filename.length})
|
|
|
|
`;for(let Re of ce.filename.slice(0,K))mt+=`\u{1F4C1} ${Re.match}
|
|
`,mt+=` ${Re.context}
|
|
|
|
`}return Be.length===0&&(mt=`No results found for "${O.query}"`),mt}}}var i7,Lut,But,Boe,NOe,Jut=mi(()=>{"use strict";i7=Ea(f0()),Lut=require("child_process"),But=require("util"),Boe=Ea(require("path")),NOe=(0,But.promisify)(Lut.exec)});function zut(o){async function a(d,w={}){return new Promise((O,q)=>{let K=new qoe.URL(d),le=K.protocol==="https:",ye=le?Fcr:Mcr,Be={hostname:K.hostname,port:K.port||(le?443:80),path:K.pathname+K.search,method:w.method||"GET",headers:{"User-Agent":"Hanzo-MCP/1.0",Accept:"text/html,application/json,text/plain,*/*",...w.headers},timeout:w.timeout||3e4},ce=ye.request(Be,mt=>{let Re="";if(mt.statusCode&&mt.statusCode>=300&&mt.statusCode<400&&mt.headers.location){let Ge=new qoe.URL(mt.headers.location,d);a(Ge.toString(),w).then(O).catch(q);return}mt.on("data",Ge=>{Re+=Ge}),mt.on("end",()=>{mt.statusCode&&mt.statusCode>=200&&mt.statusCode<300?O(Re):q(new Error(`HTTP ${mt.statusCode}: ${mt.statusMessage}`))})});ce.on("error",q),ce.on("timeout",()=>{ce.destroy(),q(new Error("Request timeout"))}),w.body&&(w.method==="POST"||w.method==="PUT")&&ce.write(w.body),ce.end()})}function u(d){let w=d;return w=w.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""),w=w.replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi,""),w=w.replace(/<br\s*\/?>/gi,`
|
|
`),w=w.replace(/<\/p>/gi,`
|
|
|
|
`),w=w.replace(/<\/div>/gi,`
|
|
`),w=w.replace(/<\/h[1-6]>/gi,`
|
|
|
|
`),w=w.replace(/<[^>]+>/g,""),w=w.replace(/ /g," "),w=w.replace(/&/g,"&"),w=w.replace(/</g,"<"),w=w.replace(/>/g,">"),w=w.replace(/"/g,'"'),w=w.replace(/'/g,"'"),w=w.replace(/\n\s*\n\s*\n/g,`
|
|
|
|
`),w=w.trim(),w}function f(d,w){let O={url:w},q=d.match(/<title[^>]*>([^<]+)<\/title>/i);q&&(O.title=q[1].trim());let K=/<meta\s+([^>]+)>/gi,le;for(;(le=K.exec(d))!==null;){let ye=le[1],Be=ye.match(/name=["']([^"']+)["']/i),ce=ye.match(/property=["']([^"']+)["']/i),mt=ye.match(/content=["']([^"']+)["']/i);if(mt){let Re=Be?.[1]||ce?.[1];Re&&(O[Re]=mt[1])}}return O}return{name:"web_fetch",description:"Fetch and extract content from web URLs",inputSchema:{type:"object",properties:{url:{type:"string",description:"URL to fetch"},method:{type:"string",enum:["GET","POST","PUT","DELETE","HEAD"],description:"HTTP method (default: GET)"},headers:{type:"object",description:"Additional HTTP headers"},body:{type:"string",description:"Request body for POST/PUT requests"},format:{type:"string",enum:["text","json","raw","metadata"],description:"Output format (default: text)"},max_length:{type:"number",description:"Maximum content length (default: 50000)"}},required:["url"]},handler:async d=>{try{let w=new qoe.URL(d.url);if(!["http:","https:"].includes(w.protocol))return"Error: Only HTTP and HTTPS URLs are supported";let O=await a(d.url,{method:d.method,headers:d.headers,body:d.body}),q=d.format||"text",K=d.max_length||5e4;switch(q){case"json":try{let le=JSON.parse(O),ye=JSON.stringify(le,null,2);return ye.length>K?ye.substring(0,K)+`
|
|
|
|
[Content truncated]`:ye}catch(le){return`Error parsing JSON: ${le}`}case"raw":return O.length>K?O.substring(0,K)+`
|
|
|
|
[Content truncated]`:O;case"metadata":{let le=f(O,d.url);return JSON.stringify(le,null,2)}case"text":default:{let le=u(O),ye=f(O,d.url),Be=`# ${ye.title||"Web Content"}
|
|
|
|
`;return Be+=`URL: ${d.url}
|
|
`,ye.description&&(Be+=`Description: ${ye.description}
|
|
`),Be+=`
|
|
---
|
|
|
|
`,le.length>K?Be+=le.substring(0,K)+`
|
|
|
|
[Content truncated]`:Be+=le,Be}}}catch(w){return`Error fetching URL: ${w.message}`}}}}var Fcr,Mcr,qoe,Wut=mi(()=>{"use strict";Fcr=Ea(require("https")),Mcr=Ea(require("http")),qoe=require("url")});var IOe=Ve((_fn,rO)=>{function AOe(o){"@babel/helpers - typeof";return rO.exports=AOe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},rO.exports.__esModule=!0,rO.exports.default=rO.exports,AOe(o)}rO.exports=AOe,rO.exports.__esModule=!0,rO.exports.default=rO.exports});var $ut=Ve((dfn,FH)=>{var Uut=IOe().default;function Rcr(o,a){if(Uut(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var f=u.call(o,a||"default");if(Uut(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(o)}FH.exports=Rcr,FH.exports.__esModule=!0,FH.exports.default=FH.exports});var Vut=Ve((mfn,MH)=>{var jcr=IOe().default,Lcr=$ut();function Bcr(o){var a=Lcr(o,"string");return jcr(a)=="symbol"?a:a+""}MH.exports=Bcr,MH.exports.__esModule=!0,MH.exports.default=MH.exports});var k6=Ve((gfn,RH)=>{var qcr=Vut();function Hut(o,a){for(var u=0;u<a.length;u++){var f=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,qcr(f.key),f)}}function Jcr(o,a,u){return a&&Hut(o.prototype,a),u&&Hut(o,u),Object.defineProperty(o,"prototype",{writable:!1}),o}RH.exports=Jcr,RH.exports.__esModule=!0,RH.exports.default=RH.exports});function jH(o){return Array.isArray(o)?o.slice(0):[o]}function a7(o){return Array.isArray(o)}function Joe(o,a){var u=0,f=-1;for(var d of o){f=f+1;var w=a(d,f);if(w)u=u+1;else break}return u}function eP(o,a){var u=a.length;if(u!==0){var f=o.length;o.length=f+a.length;for(var d=0;d<u;++d)o[f+d]=a[d]}}function Gut(o){return o.filter(function(a,u,f){return f.indexOf(a)===u})}var Kut=mi(()=>{});var Qut=mi(()=>{});var Xut=mi(()=>{});function s7(o){for(var a="",u=0;u<o.length;u++){var f=o[u];if(f==="-")return parseInt(a,10);a+=f}throw new Error("malformatted revision: "+o)}function LH(o,a){var u=a?s7(a._rev)+1:1;return u+"-"+o}var Yut=mi(()=>{});function Zut(o){var a=o.split("."),u=a.length;return u===1?f=>f[o]:f=>{for(var d=f,w=0;w<u;++w){var O=a[w];if(d=d[O],typeof d>"u")return d}return d}}function Kd(o){return Object.assign({},o)}function ept(o){return Object.keys(o)[0]}function WL(o,a=!1){if(!o)return o;if(!a&&Array.isArray(o))return o.sort((f,d)=>typeof f=="string"&&typeof d=="string"?f.localeCompare(d):typeof f=="object"?1:-1).map(f=>WL(f,a));if(typeof o=="object"&&!Array.isArray(o)){var u={};return Object.keys(o).sort((f,d)=>f.localeCompare(d)).forEach(f=>{u[f]=WL(o[f],a)}),u}return o}function FOe(o){if(!o||o===null||typeof o!="object")return o;if(Array.isArray(o)){for(var a=new Array(o.length),u=a.length;u--;)a[u]=FOe(o[u]);return a}var f={};for(var d in o)f[d]=FOe(o[d]);return f}function cS(o,a,u){return Object.defineProperty(o,a,{get:function(){return u}}),u}var QT,tpt=mi(()=>{QT=FOe});function UL(){return{lwt:zoe}}function $L(){return""}function rpt(o){return Object.assign({},o,{_meta:void 0,_deleted:void 0,_rev:void 0})}function npt(o,a,u){if(a.length!==u.length)return!1;for(var f=0,d=a.length;f<d;){var w=a[f],O=u[f];if(f++,w[o]!==O[o]||w._rev!==O._rev||w._meta.lwt!==O._meta.lwt)return!1}return!0}var zoe,ipt=mi(()=>{zoe=1});var Woe=Ve((Tfn,nO)=>{function MOe(o,a){return nO.exports=MOe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,f){return u.__proto__=f,u},nO.exports.__esModule=!0,nO.exports.default=nO.exports,MOe(o,a)}nO.exports=MOe,nO.exports.__esModule=!0,nO.exports.default=nO.exports});var apt=Ve((wfn,BH)=>{var zcr=Woe();function Wcr(o,a){o.prototype=Object.create(a.prototype),o.prototype.constructor=o,zcr(o,a)}BH.exports=Wcr,BH.exports.__esModule=!0,BH.exports.default=BH.exports});var spt=Ve((kfn,iO)=>{function ROe(o){return iO.exports=ROe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},iO.exports.__esModule=!0,iO.exports.default=iO.exports,ROe(o)}iO.exports=ROe,iO.exports.__esModule=!0,iO.exports.default=iO.exports});var opt=Ve((Cfn,qH)=>{function Ucr(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}qH.exports=Ucr,qH.exports.__esModule=!0,qH.exports.default=qH.exports});var lpt=Ve((Pfn,aO)=>{function cpt(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aO.exports=cpt=function(){return!!o},aO.exports.__esModule=!0,aO.exports.default=aO.exports)()}aO.exports=cpt,aO.exports.__esModule=!0,aO.exports.default=aO.exports});var upt=Ve((Efn,JH)=>{var $cr=lpt(),Vcr=Woe();function Hcr(o,a,u){if($cr())return Reflect.construct.apply(null,arguments);var f=[null];f.push.apply(f,a);var d=new(o.bind.apply(o,f));return u&&Vcr(d,u.prototype),d}JH.exports=Hcr,JH.exports.__esModule=!0,JH.exports.default=JH.exports});var ppt=Ve((Dfn,sO)=>{var Gcr=spt(),Kcr=Woe(),Qcr=opt(),Xcr=upt();function jOe(o){var a=typeof Map=="function"?new Map:void 0;return sO.exports=jOe=function(f){if(f===null||!Qcr(f))return f;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(f))return a.get(f);a.set(f,d)}function d(){return Xcr(f,arguments,Gcr(this).constructor)}return d.prototype=Object.create(f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),Kcr(d,f)},sO.exports.__esModule=!0,sO.exports.default=sO.exports,jOe(o)}sO.exports=jOe,sO.exports.__esModule=!0,sO.exports.default=sO.exports});var Vp,Ab=mi(()=>{Vp={isDevMode(){return!1},deepFreezeWhenDevMode(o){return o},tunnelErrorMessage(o){return`
|
|
RxDB Error-Code: `+o+`.
|
|
Hint: Error messages are not included in RxDB core to reduce build size.
|
|
To show the full error messages and to ensure that you do not make any mistakes when using RxDB,
|
|
use the dev-mode plugin when you are in development mode: https://rxdb.info/dev-mode.html?console=error
|
|
`}}});function Ycr(o){var a="";return Object.keys(o).length===0||(a+="-".repeat(20)+`
|
|
`,a+=`Parameters:
|
|
`,a+=Object.keys(o).map(u=>{var f="[object Object]";try{u==="errors"?f=o[u].map(d=>JSON.stringify(d,Object.getOwnPropertyNames(d))):f=JSON.stringify(o[u],function(d,w){return w===void 0?null:w},2)}catch{}return u+": "+f}).join(`
|
|
`),a+=`
|
|
`),a}function fpt(o,a,u){return`
|
|
`+o+`
|
|
`+Ycr(u)}function JOe(o){return"https://rxdb.info/errors.html?console=errors#"+o}function _pt(o){return`
|
|
Find out more about this error here: `+JOe(o)+`
|
|
`}function mo(o,a){return new Zcr(o,Vp.tunnelErrorMessage(o)+_pt(o),a)}function Ib(o,a){return new elr(o,Vp.tunnelErrorMessage(o)+_pt(o),a)}function Uoe(o){return o&&o.status===409?o:!1}function $oe(o){return mo("COL20",{name:tlr[o.status],document:o.documentId,writeError:o})}var LOe,BOe,qOe,Zcr,elr,tlr,ng=mi(()=>{LOe=Ea(k6(),1),BOe=Ea(apt(),1),qOe=Ea(ppt(),1);Ab();Zcr=function(o){function a(f,d,w={}){var O,q=fpt(d,f,w);return O=o.call(this,q)||this,O.code=f,O.message=q,O.url=JOe(f),O.parameters=w,O.rxdb=!0,O}(0,BOe.default)(a,o);var u=a.prototype;return u.toString=function(){return this.message},(0,LOe.default)(a,[{key:"name",get:function(){return"RxError ("+this.code+")"}},{key:"typeError",get:function(){return!1}}])}((0,qOe.default)(Error)),elr=function(o){function a(f,d,w={}){var O,q=fpt(d,f,w);return O=o.call(this,q)||this,O.code=f,O.message=q,O.url=JOe(f),O.parameters=w,O.rxdb=!0,O}(0,BOe.default)(a,o);var u=a.prototype;return u.toString=function(){return this.message},(0,LOe.default)(a,[{key:"name",get:function(){return"RxTypeError ("+this.code+")"}},{key:"typeError",get:function(){return!0}}])}((0,qOe.default)(TypeError));tlr={409:"document write conflict",422:"schema validation error",510:"attachment data missing"}});function rlr(){if(Voe)return Voe;if(typeof crypto>"u"||typeof crypto.subtle>"u"||typeof crypto.subtle.digest!="function")throw mo("UT8",{args:{typeof_crypto:typeof crypto,typeof_crypto_subtle:typeof crypto?.subtle,typeof_crypto_subtle_digest:typeof crypto?.subtle?.digest}});return Voe=crypto.subtle.digest.bind(crypto.subtle),Voe}async function nlr(o){var a=new TextEncoder().encode(o),u=await rlr()("SHA-256",a),f=Array.prototype.map.call(new Uint8Array(u),d=>("00"+d.toString(16)).slice(-2)).join("");return f}var Voe,Hoe,zOe=mi(()=>{ng();Hoe=nlr});function dpt(){return new Promise(o=>setTimeout(o,0))}function mpt(o=0){return new Promise(a=>setTimeout(a,o))}function VL(o=1e4){return typeof requestIdleCallback=="function"?new Promise(a=>{requestIdleCallback(()=>a(),{timeout:o})}):mpt(0)}function hpt(o=void 0){return WOe=WOe.then(()=>VL(o)),WOe}function ypt(o,a){return o.reduce((u,f)=>u.then(f),Promise.resolve(a))}var UOe,tP,gpt,zH,WOe,$Oe=mi(()=>{UOe=Promise.resolve(!0),tP=Promise.resolve(!1),gpt=Promise.resolve(null),zH=Promise.resolve();WOe=zH});var vpt,bpt=mi(()=>{vpt=/\./g});function o7(o=10){for(var a="",u=0;u<o;u++)a+=xpt.charAt(Math.floor(Math.random()*xpt.length));return a}function Goe(o){o+="";var a=o.charAt(0).toUpperCase();return a+o.substr(1)}function c7(o){for(;o.charAt(0)===".";)o=o.substr(1);for(;o.slice(-1)===".";)o=o.slice(0,-1);return o}var xpt,VOe=mi(()=>{xpt="abcdefghijklmnopqrstuvwxyz"});var Spt=mi(()=>{});function HL(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var u,f;if(Array.isArray(o)){if(u=o.length,u!==a.length)return!1;for(f=u;f--!==0;)if(!HL(o[f],a[f]))return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();var d=Object.keys(o);if(u=d.length,u!==Object.keys(a).length)return!1;for(f=u;f--!==0;)if(!Object.prototype.hasOwnProperty.call(a,d[f]))return!1;for(f=u;f--!==0;){var w=d[f];if(!HL(o[w],a[w]))return!1}return!0}return o!==o&&a!==a}var Tpt=mi(()=>{});function wpt(o){var a=[],u="",f="start",d=!1;for(var w of o)switch(w){case"\\":{if(f==="index")throw new Error("Invalid character in an index");if(f==="indexEnd")throw new Error("Invalid character after an index");d&&(u+=w),f="property",d=!d;break}case".":{if(f==="index")throw new Error("Invalid character in an index");if(f==="indexEnd"){f="property";break}if(d){d=!1,u+=w;break}if(HOe.has(u))return[];a.push(u),u="",f="property";break}case"[":{if(f==="index")throw new Error("Invalid character in an index");if(f==="indexEnd"){f="index";break}if(d){d=!1,u+=w;break}if(f==="property"){if(HOe.has(u))return[];a.push(u),u=""}f="index";break}case"]":{if(f==="index"){a.push(Number.parseInt(u,10)),u="",f="indexEnd";break}if(f==="indexEnd")throw new Error("Invalid character after an index")}default:{if(f==="index"&&!ilr.has(w))throw new Error("Invalid character in an index");if(f==="indexEnd")throw new Error("Invalid character after an index");f==="start"&&(f="property"),d&&(d=!1,u+="\\"),u+=w}}switch(d&&(u+="\\"),f){case"property":{if(HOe.has(u))return[];a.push(u);break}case"index":throw new Error("Index was not closed");case"start":{a.push("");break}}return a}function kpt(o,a){if(typeof a!="number"&&Array.isArray(o)){var u=Number.parseInt(a,10);return Number.isInteger(u)&&o[u]===o[a]}return!1}function alr(o,a){if(kpt(o,a))throw new Error("Cannot use string index")}function oO(o,a,u){if(Array.isArray(a)&&(a=a.join(".")),!a.includes(".")&&!a.includes("["))return o[a];if(!GOe(o)||typeof a!="string")return u===void 0?o:u;var f=wpt(a);if(f.length===0)return u;for(var d=0;d<f.length;d++){var w=f[d];if(kpt(o,w)?o=d===f.length-1?void 0:null:o=o[w],o==null){if(d!==f.length-1)return u;break}}return o===void 0?u:o}function KOe(o,a,u){if(Array.isArray(a)&&(a=a.join(".")),!GOe(o)||typeof a!="string")return o;for(var f=o,d=wpt(a),w=0;w<d.length;w++){var O=d[w];alr(o,O),w===d.length-1?o[O]=u:GOe(o[O])||(o[O]=typeof d[w+1]=="number"?[]:{}),o=o[O]}return f}var GOe,HOe,ilr,Cpt=mi(()=>{GOe=o=>{var a=typeof o;return o!==null&&(a==="object"||a==="function")},HOe=new Set(["__proto__","prototype","constructor"]),ilr=new Set("0123456789")});function l7(o,a){var u=o.get(a);if(typeof u>"u")throw new Error("missing value from map "+a);return u}function yh(o,a,u,f){var d=o.get(a);return typeof d>"u"?(d=u(),o.set(a,d)):f&&f(d),d}var Ppt=mi(()=>{});function Mp(o){var a=o.split("-"),u="RxDB";return a.forEach(f=>{u+=Goe(f)}),u+="Plugin",new Error(`You are using a function which must be overwritten by a plugin.
|
|
You should either prevent the usage of this function or add the plugin via:
|
|
import { `+u+" } from 'rxdb/plugins/"+o+`';
|
|
addRxPlugin(`+u+`);
|
|
`)}var Ept=mi(()=>{VOe()});function Fb(){var o=Date.now();o=o+.01,o<=QOe&&(o=QOe+.01);var a=parseFloat(o.toFixed(2));return QOe=a,a}var QOe,Dpt=mi(()=>{QOe=0});function xp(o,a){if(!o)throw a||(a=""),new Error("ensureNotFalsy() is falsy: "+a);return o}var Koe,Opt=mi(()=>{Koe={bufferSize:1,refCount:!0}});var WH,XOe=mi(()=>{WH="16.15.0"});var Qoe,YOe=mi(()=>{Qoe={}});async function Xoe(){return Npt||(Npt=!0,ZOe=(async()=>!!(Qoe.premium&&typeof Qoe.premium=="string"&&await Hoe(Qoe.premium)===slr))()),ZOe}var slr,eNe,ZOe,Npt,Apt=mi(()=>{YOe();zOe();$Oe();slr="6da4936d1425ff3a5c44c02342c6daf791d266be3ae8479b8ec59e261df41b93",eNe=16,ZOe=tP,Npt=!1});var O_=mi(()=>{Kut();Xut();Qut();Yut();ipt();zOe();$Oe();bpt();VOe();Spt();Tpt();Cpt();tpt();Ppt();Ept();Dpt();Opt();XOe();YOe();Apt()});function Om(o,a){GL[o].length>0&&GL[o].forEach(u=>u(a))}async function C6(o,a){for(var u of GL[o])await u(a)}var GL,Kw=mi(()=>{GL={preAddRxPlugin:[],preCreateRxDatabase:[],createRxDatabase:[],preCreateRxCollection:[],createRxCollection:[],createRxState:[],postCloseRxCollection:[],postRemoveRxCollection:[],preCreateRxSchema:[],createRxSchema:[],prePrepareRxQuery:[],preCreateRxQuery:[],prePrepareQuery:[],createRxDocument:[],postCreateRxDocument:[],preCreateRxStorageInstance:[],preStorageWrite:[],preMigrateDocument:[],postMigrateDocument:[],preCloseRxDatabase:[],postRemoveRxDatabase:[],postCleanup:[],preReplicationMasterWrite:[],preReplicationMasterWriteDocumentsHandle:[]}});function cO(o,a){var u=a;u=u.replace(vpt,".properties."),u="properties."+u,u=c7(u);var f=oO(o,u);return f}function Ipt(o,a,u){if(typeof a.primaryKey=="string")return u;var f=UH(a,u),d=u[o];if(d&&d!==f)throw mo("DOC19",{args:{documentData:u,existingPrimary:d,newPrimary:f},schema:a});return u[o]=f,u}function XT(o){return typeof o=="string"?o:o.key}function UH(o,a){if(typeof o.primaryKey=="string")return a[o.primaryKey];var u=o.primaryKey;return u.fields.map(f=>{var d=oO(a,f);if(typeof d>"u")throw mo("DOC18",{args:{field:f,documentData:a}});return d}).join(u.separator)}function Fpt(o){var a=WL(o,!0);return a}function olr(o){return["_deleted",o]}function Yoe(o){o=Kd(o);var a=XT(o.primaryKey);o.properties=Kd(o.properties),o.additionalProperties=!1,Object.prototype.hasOwnProperty.call(o,"keyCompression")||(o.keyCompression=!1),o.indexes=o.indexes?o.indexes.slice(0):[],o.required=o.required?o.required.slice(0):[],o.encrypted=o.encrypted?o.encrypted.slice(0):[],o.properties._rev={type:"string",minLength:1},o.properties._attachments={type:"object"},o.properties._deleted={type:"boolean"},o.properties._meta=llr,o.required=o.required?o.required.slice(0):[],o.required.push("_deleted"),o.required.push("_rev"),o.required.push("_meta"),o.required.push("_attachments");var u=tNe(o);eP(o.required,u),o.required=o.required.filter(w=>!w.includes(".")).filter((w,O,q)=>q.indexOf(w)===O),o.version=o.version||0;var f=o.indexes.map(w=>{var O=a7(w)?w.slice(0):[w];return O.includes(a)||O.push(a),O[0]!=="_deleted"&&O.unshift("_deleted"),O});f.length===0&&f.push(olr(a)),f.push(["_meta.lwt",a]),o.internalIndexes&&o.internalIndexes.map(w=>{f.push(w)});var d=new Set;return f.filter(w=>{var O=w.join(",");return d.has(O)?!1:(d.add(O),!0)}),o.indexes=f,o}function tNe(o){var a=Object.keys(o.properties).filter(f=>o.properties[f].final),u=XT(o.primaryKey);return a.push(u),typeof o.primaryKey!="string"&&o.primaryKey.fields.forEach(f=>a.push(f)),a}function Mpt(o,a){for(var u=Object.keys(o.defaultValues),f=0;f<u.length;++f){var d=u[f];(!Object.prototype.hasOwnProperty.call(a,d)||typeof a[d]>"u")&&(a[d]=o.defaultValues[d])}return a}var clr,llr,Qw=mi(()=>{ng();O_();clr=1e15,llr={type:"object",properties:{lwt:{type:"number",minimum:zoe,maximum:clr,multipleOf:.01}},additionalProperties:!0,required:["lwt"]}});function ulr(o){return(o.indexes||[]).map(a=>a7(a)?a:[a])}function jpt(o,a,u=!0){u&&Om("preCreateRxSchema",o);var f=Yoe(o);f=Fpt(f),Vp.deepFreezeWhenDevMode(f);var d=new rNe(f,a);return Om("createRxSchema",d),d}var Rpt,rNe,Zoe=mi(()=>{Rpt=Ea(k6(),1);O_();ng();Kw();Qw();Ab();rNe=function(){function o(u,f){if(this.jsonSchema=u,this.hashFunction=f,this.indexes=ulr(this.jsonSchema),this.primaryPath=XT(this.jsonSchema.primaryKey),!u.properties[this.primaryPath].maxLength)throw mo("SC39",{schema:u});this.finalFields=tNe(this.jsonSchema)}var a=o.prototype;return a.validateChange=function(f,d){this.finalFields.forEach(w=>{if(!HL(f[w],d[w]))throw mo("DOC9",{dataBefore:f,dataAfter:d,fieldName:w,schema:this.jsonSchema})})},a.getDocumentPrototype=function(){var f={},d=cO(this.jsonSchema,"");return Object.keys(d).forEach(w=>{var O=w;f.__defineGetter__(w,function(){if(!(!this.get||typeof this.get!="function")){var q=this.get(O);return q}}),Object.defineProperty(f,w+"$",{get:function(){return this.get$(O)},enumerable:!1,configurable:!1}),Object.defineProperty(f,w+"$$",{get:function(){return this.get$$(O)},enumerable:!1,configurable:!1}),Object.defineProperty(f,w+"_",{get:function(){return this.populate(O)},enumerable:!1,configurable:!1})}),cS(this,"getDocumentPrototype",()=>f),f},a.getPrimaryOfDocumentData=function(f){return UH(this.jsonSchema,f)},(0,Rpt.default)(o,[{key:"version",get:function(){return this.jsonSchema.version}},{key:"defaultValues",get:function(){var u={};return Object.entries(this.jsonSchema.properties).filter(([,f])=>Object.prototype.hasOwnProperty.call(f,"default")).forEach(([f,d])=>u[f]=d.default),cS(this,"defaultValues",u)}},{key:"hash",get:function(){return cS(this,"hash",this.hashFunction(JSON.stringify(this.jsonSchema)))}}])}()});var Pf=Ve(ece=>{"use strict";Object.defineProperty(ece,"__esModule",{value:!0});ece.isFunction=void 0;function plr(o){return typeof o=="function"}ece.isFunction=plr});var go=Ve(KL=>{"use strict";Object.defineProperty(KL,"__esModule",{value:!0});KL.operate=KL.hasLift=void 0;var flr=Pf();function Lpt(o){return flr.isFunction(o?.lift)}KL.hasLift=Lpt;function _lr(o){return function(a){if(Lpt(a))return a.lift(function(u){try{return o(u,this)}catch(f){this.error(f)}});throw new TypeError("Unable to lift unknown Observable type")}}KL.operate=_lr});var rce=Ve(tce=>{"use strict";Object.defineProperty(tce,"__esModule",{value:!0});tce.isArrayLike=void 0;tce.isArrayLike=function(o){return o&&typeof o.length=="number"&&typeof o!="function"}});var nNe=Ve(nce=>{"use strict";Object.defineProperty(nce,"__esModule",{value:!0});nce.isPromise=void 0;var dlr=Pf();function mlr(o){return dlr.isFunction(o?.then)}nce.isPromise=mlr});var P6=Ve(ice=>{"use strict";Object.defineProperty(ice,"__esModule",{value:!0});ice.createErrorClass=void 0;function glr(o){var a=function(f){Error.call(f),f.stack=new Error().stack},u=o(a);return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}ice.createErrorClass=glr});var iNe=Ve(ace=>{"use strict";Object.defineProperty(ace,"__esModule",{value:!0});ace.UnsubscriptionError=void 0;var hlr=P6();ace.UnsubscriptionError=hlr.createErrorClass(function(o){return function(u){o(this),this.message=u?u.length+` errors occurred during unsubscription:
|
|
`+u.map(function(f,d){return d+1+") "+f.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=u}})});var lO=Ve(sce=>{"use strict";Object.defineProperty(sce,"__esModule",{value:!0});sce.arrRemove=void 0;function ylr(o,a){if(o){var u=o.indexOf(a);0<=u&&o.splice(u,1)}}sce.arrRemove=ylr});var lS=Ve(Mb=>{"use strict";var Bpt=Mb&&Mb.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},qpt=Mb&&Mb.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Jpt=Mb&&Mb.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(Mb,"__esModule",{value:!0});Mb.isSubscription=Mb.EMPTY_SUBSCRIPTION=Mb.Subscription=void 0;var $H=Pf(),aNe=iNe(),zpt=lO(),sNe=function(){function o(a){this.initialTeardown=a,this.closed=!1,this._parentage=null,this._finalizers=null}return o.prototype.unsubscribe=function(){var a,u,f,d,w;if(!this.closed){this.closed=!0;var O=this._parentage;if(O)if(this._parentage=null,Array.isArray(O))try{for(var q=Bpt(O),K=q.next();!K.done;K=q.next()){var le=K.value;le.remove(this)}}catch(Ge){a={error:Ge}}finally{try{K&&!K.done&&(u=q.return)&&u.call(q)}finally{if(a)throw a.error}}else O.remove(this);var ye=this.initialTeardown;if($H.isFunction(ye))try{ye()}catch(Ge){w=Ge instanceof aNe.UnsubscriptionError?Ge.errors:[Ge]}var Be=this._finalizers;if(Be){this._finalizers=null;try{for(var ce=Bpt(Be),mt=ce.next();!mt.done;mt=ce.next()){var Re=mt.value;try{Wpt(Re)}catch(Ge){w=w??[],Ge instanceof aNe.UnsubscriptionError?w=Jpt(Jpt([],qpt(w)),qpt(Ge.errors)):w.push(Ge)}}}catch(Ge){f={error:Ge}}finally{try{mt&&!mt.done&&(d=ce.return)&&d.call(ce)}finally{if(f)throw f.error}}}if(w)throw new aNe.UnsubscriptionError(w)}},o.prototype.add=function(a){var u;if(a&&a!==this)if(this.closed)Wpt(a);else{if(a instanceof o){if(a.closed||a._hasParent(this))return;a._addParent(this)}(this._finalizers=(u=this._finalizers)!==null&&u!==void 0?u:[]).push(a)}},o.prototype._hasParent=function(a){var u=this._parentage;return u===a||Array.isArray(u)&&u.includes(a)},o.prototype._addParent=function(a){var u=this._parentage;this._parentage=Array.isArray(u)?(u.push(a),u):u?[u,a]:a},o.prototype._removeParent=function(a){var u=this._parentage;u===a?this._parentage=null:Array.isArray(u)&&zpt.arrRemove(u,a)},o.prototype.remove=function(a){var u=this._finalizers;u&&zpt.arrRemove(u,a),a instanceof o&&a._removeParent(this)},o.EMPTY=function(){var a=new o;return a.closed=!0,a}(),o}();Mb.Subscription=sNe;Mb.EMPTY_SUBSCRIPTION=sNe.EMPTY;function vlr(o){return o instanceof sNe||o&&"closed"in o&&$H.isFunction(o.remove)&&$H.isFunction(o.add)&&$H.isFunction(o.unsubscribe)}Mb.isSubscription=vlr;function Wpt(o){$H.isFunction(o)?o():o.unsubscribe()}});var QL=Ve(oce=>{"use strict";Object.defineProperty(oce,"__esModule",{value:!0});oce.config=void 0;oce.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var oNe=Ve(rP=>{"use strict";var Upt=rP&&rP.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},$pt=rP&&rP.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(rP,"__esModule",{value:!0});rP.timeoutProvider=void 0;rP.timeoutProvider={setTimeout:function(o,a){for(var u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];var d=rP.timeoutProvider.delegate;return d?.setTimeout?d.setTimeout.apply(d,$pt([o,a],Upt(u))):setTimeout.apply(void 0,$pt([o,a],Upt(u)))},clearTimeout:function(o){var a=rP.timeoutProvider.delegate;return(a?.clearTimeout||clearTimeout)(o)},delegate:void 0}});var cNe=Ve(cce=>{"use strict";Object.defineProperty(cce,"__esModule",{value:!0});cce.reportUnhandledError=void 0;var blr=QL(),xlr=oNe();function Slr(o){xlr.timeoutProvider.setTimeout(function(){var a=blr.config.onUnhandledError;if(a)a(o);else throw o})}cce.reportUnhandledError=Slr});var ov=Ve(lce=>{"use strict";Object.defineProperty(lce,"__esModule",{value:!0});lce.noop=void 0;function Tlr(){}lce.noop=Tlr});var Vpt=Ve(nP=>{"use strict";Object.defineProperty(nP,"__esModule",{value:!0});nP.createNotification=nP.nextNotification=nP.errorNotification=nP.COMPLETE_NOTIFICATION=void 0;nP.COMPLETE_NOTIFICATION=function(){return uce("C",void 0,void 0)}();function wlr(o){return uce("E",void 0,o)}nP.errorNotification=wlr;function klr(o){return uce("N",o,void 0)}nP.nextNotification=klr;function uce(o,a,u){return{kind:o,value:a,error:u}}nP.createNotification=uce});var pce=Ve(XL=>{"use strict";Object.defineProperty(XL,"__esModule",{value:!0});XL.captureError=XL.errorContext=void 0;var Hpt=QL(),u7=null;function Clr(o){if(Hpt.config.useDeprecatedSynchronousErrorHandling){var a=!u7;if(a&&(u7={errorThrown:!1,error:null}),o(),a){var u=u7,f=u.errorThrown,d=u.error;if(u7=null,f)throw d}}else o()}XL.errorContext=Clr;function Plr(o){Hpt.config.useDeprecatedSynchronousErrorHandling&&u7&&(u7.errorThrown=!0,u7.error=o)}XL.captureError=Plr});var YL=Ve(Xw=>{"use strict";var Qpt=Xw&&Xw.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(Xw,"__esModule",{value:!0});Xw.EMPTY_OBSERVER=Xw.SafeSubscriber=Xw.Subscriber=void 0;var Elr=Pf(),Gpt=lS(),fNe=QL(),Dlr=cNe(),Kpt=ov(),lNe=Vpt(),Olr=oNe(),Nlr=pce(),Xpt=function(o){Qpt(a,o);function a(u){var f=o.call(this)||this;return f.isStopped=!1,u?(f.destination=u,Gpt.isSubscription(u)&&u.add(f)):f.destination=Xw.EMPTY_OBSERVER,f}return a.create=function(u,f,d){return new Ypt(u,f,d)},a.prototype.next=function(u){this.isStopped?pNe(lNe.nextNotification(u),this):this._next(u)},a.prototype.error=function(u){this.isStopped?pNe(lNe.errorNotification(u),this):(this.isStopped=!0,this._error(u))},a.prototype.complete=function(){this.isStopped?pNe(lNe.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},a.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this),this.destination=null)},a.prototype._next=function(u){this.destination.next(u)},a.prototype._error=function(u){try{this.destination.error(u)}finally{this.unsubscribe()}},a.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},a}(Gpt.Subscription);Xw.Subscriber=Xpt;var Alr=Function.prototype.bind;function uNe(o,a){return Alr.call(o,a)}var Ilr=function(){function o(a){this.partialObserver=a}return o.prototype.next=function(a){var u=this.partialObserver;if(u.next)try{u.next(a)}catch(f){fce(f)}},o.prototype.error=function(a){var u=this.partialObserver;if(u.error)try{u.error(a)}catch(f){fce(f)}else fce(a)},o.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(u){fce(u)}},o}(),Ypt=function(o){Qpt(a,o);function a(u,f,d){var w=o.call(this)||this,O;if(Elr.isFunction(u)||!u)O={next:u??void 0,error:f??void 0,complete:d??void 0};else{var q;w&&fNe.config.useDeprecatedNextContext?(q=Object.create(u),q.unsubscribe=function(){return w.unsubscribe()},O={next:u.next&&uNe(u.next,q),error:u.error&&uNe(u.error,q),complete:u.complete&&uNe(u.complete,q)}):O=u}return w.destination=new Ilr(O),w}return a}(Xpt);Xw.SafeSubscriber=Ypt;function fce(o){fNe.config.useDeprecatedSynchronousErrorHandling?Nlr.captureError(o):Dlr.reportUnhandledError(o)}function Flr(o){throw o}function pNe(o,a){var u=fNe.config.onStoppedNotification;u&&Olr.timeoutProvider.setTimeout(function(){return u(o,a)})}Xw.EMPTY_OBSERVER={closed:!0,next:Kpt.noop,error:Flr,complete:Kpt.noop}});var VH=Ve(_ce=>{"use strict";Object.defineProperty(_ce,"__esModule",{value:!0});_ce.observable=void 0;_ce.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var cv=Ve(dce=>{"use strict";Object.defineProperty(dce,"__esModule",{value:!0});dce.identity=void 0;function Mlr(o){return o}dce.identity=Mlr});var HH=Ve(ZL=>{"use strict";Object.defineProperty(ZL,"__esModule",{value:!0});ZL.pipeFromArray=ZL.pipe=void 0;var Rlr=cv();function jlr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return Zpt(o)}ZL.pipe=jlr;function Zpt(o){return o.length===0?Rlr.identity:o.length===1?o[0]:function(u){return o.reduce(function(f,d){return d(f)},u)}}ZL.pipeFromArray=Zpt});var Vf=Ve(mce=>{"use strict";Object.defineProperty(mce,"__esModule",{value:!0});mce.Observable=void 0;var dNe=YL(),Llr=lS(),Blr=VH(),qlr=HH(),Jlr=QL(),_Ne=Pf(),zlr=pce(),Wlr=function(){function o(a){a&&(this._subscribe=a)}return o.prototype.lift=function(a){var u=new o;return u.source=this,u.operator=a,u},o.prototype.subscribe=function(a,u,f){var d=this,w=$lr(a)?a:new dNe.SafeSubscriber(a,u,f);return zlr.errorContext(function(){var O=d,q=O.operator,K=O.source;w.add(q?q.call(w,K):K?d._subscribe(w):d._trySubscribe(w))}),w},o.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(u){a.error(u)}},o.prototype.forEach=function(a,u){var f=this;return u=eft(u),new u(function(d,w){var O=new dNe.SafeSubscriber({next:function(q){try{a(q)}catch(K){w(K),O.unsubscribe()}},error:w,complete:d});f.subscribe(O)})},o.prototype._subscribe=function(a){var u;return(u=this.source)===null||u===void 0?void 0:u.subscribe(a)},o.prototype[Blr.observable]=function(){return this},o.prototype.pipe=function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return qlr.pipeFromArray(a)(this)},o.prototype.toPromise=function(a){var u=this;return a=eft(a),new a(function(f,d){var w;u.subscribe(function(O){return w=O},function(O){return d(O)},function(){return f(w)})})},o.create=function(a){return new o(a)},o}();mce.Observable=Wlr;function eft(o){var a;return(a=o??Jlr.config.Promise)!==null&&a!==void 0?a:Promise}function Ulr(o){return o&&_Ne.isFunction(o.next)&&_Ne.isFunction(o.error)&&_Ne.isFunction(o.complete)}function $lr(o){return o&&o instanceof dNe.Subscriber||Ulr(o)&&Llr.isSubscription(o)}});var mNe=Ve(gce=>{"use strict";Object.defineProperty(gce,"__esModule",{value:!0});gce.isInteropObservable=void 0;var Vlr=VH(),Hlr=Pf();function Glr(o){return Hlr.isFunction(o[Vlr.observable])}gce.isInteropObservable=Glr});var gNe=Ve(hce=>{"use strict";Object.defineProperty(hce,"__esModule",{value:!0});hce.isAsyncIterable=void 0;var Klr=Pf();function Qlr(o){return Symbol.asyncIterator&&Klr.isFunction(o?.[Symbol.asyncIterator])}hce.isAsyncIterable=Qlr});var hNe=Ve(yce=>{"use strict";Object.defineProperty(yce,"__esModule",{value:!0});yce.createInvalidObservableTypeError=void 0;function Xlr(o){return new TypeError("You provided "+(o!==null&&typeof o=="object"?"an invalid object":"'"+o+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}yce.createInvalidObservableTypeError=Xlr});var yNe=Ve(e9=>{"use strict";Object.defineProperty(e9,"__esModule",{value:!0});e9.iterator=e9.getSymbolIterator=void 0;function tft(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}e9.getSymbolIterator=tft;e9.iterator=tft()});var vNe=Ve(vce=>{"use strict";Object.defineProperty(vce,"__esModule",{value:!0});vce.isIterable=void 0;var Ylr=yNe(),Zlr=Pf();function eur(o){return Zlr.isFunction(o?.[Ylr.iterator])}vce.isIterable=eur});var bce=Ve(YT=>{"use strict";var tur=YT&&YT.__generator||function(o,a){var u={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},f,d,w,O;return O={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function q(le){return function(ye){return K([le,ye])}}function K(le){if(f)throw new TypeError("Generator is already executing.");for(;u;)try{if(f=1,d&&(w=le[0]&2?d.return:le[0]?d.throw||((w=d.return)&&w.call(d),0):d.next)&&!(w=w.call(d,le[1])).done)return w;switch(d=0,w&&(le=[le[0]&2,w.value]),le[0]){case 0:case 1:w=le;break;case 4:return u.label++,{value:le[1],done:!1};case 5:u.label++,d=le[1],le=[0];continue;case 7:le=u.ops.pop(),u.trys.pop();continue;default:if(w=u.trys,!(w=w.length>0&&w[w.length-1])&&(le[0]===6||le[0]===2)){u=0;continue}if(le[0]===3&&(!w||le[1]>w[0]&&le[1]<w[3])){u.label=le[1];break}if(le[0]===6&&u.label<w[1]){u.label=w[1],w=le;break}if(w&&u.label<w[2]){u.label=w[2],u.ops.push(le);break}w[2]&&u.ops.pop(),u.trys.pop();continue}le=a.call(o,u)}catch(ye){le=[6,ye],d=0}finally{f=w=0}if(le[0]&5)throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}},t9=YT&&YT.__await||function(o){return this instanceof t9?(this.v=o,this):new t9(o)},rur=YT&&YT.__asyncGenerator||function(o,a,u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=u.apply(o,a||[]),d,w=[];return d={},O("next"),O("throw"),O("return"),d[Symbol.asyncIterator]=function(){return this},d;function O(ce){f[ce]&&(d[ce]=function(mt){return new Promise(function(Re,Ge){w.push([ce,mt,Re,Ge])>1||q(ce,mt)})})}function q(ce,mt){try{K(f[ce](mt))}catch(Re){Be(w[0][3],Re)}}function K(ce){ce.value instanceof t9?Promise.resolve(ce.value.v).then(le,ye):Be(w[0][2],ce)}function le(ce){q("next",ce)}function ye(ce){q("throw",ce)}function Be(ce,mt){ce(mt),w.shift(),w.length&&q(w[0][0],w[0][1])}};Object.defineProperty(YT,"__esModule",{value:!0});YT.isReadableStreamLike=YT.readableStreamLikeToAsyncGenerator=void 0;var nur=Pf();function iur(o){return rur(this,arguments,function(){var u,f,d,w;return tur(this,function(O){switch(O.label){case 0:u=o.getReader(),O.label=1;case 1:O.trys.push([1,,9,10]),O.label=2;case 2:return[4,t9(u.read())];case 3:return f=O.sent(),d=f.value,w=f.done,w?[4,t9(void 0)]:[3,5];case 4:return[2,O.sent()];case 5:return[4,t9(d)];case 6:return[4,O.sent()];case 7:return O.sent(),[3,2];case 8:return[3,10];case 9:return u.releaseLock(),[7];case 10:return[2]}})})}YT.readableStreamLikeToAsyncGenerator=iur;function aur(o){return nur.isFunction(o?.getReader)}YT.isReadableStreamLike=aur});var zl=Ve(wd=>{"use strict";var sur=wd&&wd.__awaiter||function(o,a,u,f){function d(w){return w instanceof u?w:new u(function(O){O(w)})}return new(u||(u=Promise))(function(w,O){function q(ye){try{le(f.next(ye))}catch(Be){O(Be)}}function K(ye){try{le(f.throw(ye))}catch(Be){O(Be)}}function le(ye){ye.done?w(ye.value):d(ye.value).then(q,K)}le((f=f.apply(o,a||[])).next())})},our=wd&&wd.__generator||function(o,a){var u={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},f,d,w,O;return O={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function q(le){return function(ye){return K([le,ye])}}function K(le){if(f)throw new TypeError("Generator is already executing.");for(;u;)try{if(f=1,d&&(w=le[0]&2?d.return:le[0]?d.throw||((w=d.return)&&w.call(d),0):d.next)&&!(w=w.call(d,le[1])).done)return w;switch(d=0,w&&(le=[le[0]&2,w.value]),le[0]){case 0:case 1:w=le;break;case 4:return u.label++,{value:le[1],done:!1};case 5:u.label++,d=le[1],le=[0];continue;case 7:le=u.ops.pop(),u.trys.pop();continue;default:if(w=u.trys,!(w=w.length>0&&w[w.length-1])&&(le[0]===6||le[0]===2)){u=0;continue}if(le[0]===3&&(!w||le[1]>w[0]&&le[1]<w[3])){u.label=le[1];break}if(le[0]===6&&u.label<w[1]){u.label=w[1],w=le;break}if(w&&u.label<w[2]){u.label=w[2],u.ops.push(le);break}w[2]&&u.ops.pop(),u.trys.pop();continue}le=a.call(o,u)}catch(ye){le=[6,ye],d=0}finally{f=w=0}if(le[0]&5)throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}},cur=wd&&wd.__asyncValues||function(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=o[Symbol.asyncIterator],u;return a?a.call(o):(o=typeof bNe=="function"?bNe(o):o[Symbol.iterator](),u={},f("next"),f("throw"),f("return"),u[Symbol.asyncIterator]=function(){return this},u);function f(w){u[w]=o[w]&&function(O){return new Promise(function(q,K){O=o[w](O),d(q,K,O.done,O.value)})}}function d(w,O,q,K){Promise.resolve(K).then(function(le){w({value:le,done:q})},O)}},bNe=wd&&wd.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(wd,"__esModule",{value:!0});wd.fromReadableStreamLike=wd.fromAsyncIterable=wd.fromIterable=wd.fromPromise=wd.fromArrayLike=wd.fromInteropObservable=wd.innerFrom=void 0;var lur=rce(),uur=nNe(),r9=Vf(),pur=mNe(),fur=gNe(),_ur=hNe(),dur=vNe(),rft=bce(),mur=Pf(),gur=cNe(),hur=VH();function yur(o){if(o instanceof r9.Observable)return o;if(o!=null){if(pur.isInteropObservable(o))return nft(o);if(lur.isArrayLike(o))return ift(o);if(uur.isPromise(o))return aft(o);if(fur.isAsyncIterable(o))return xNe(o);if(dur.isIterable(o))return sft(o);if(rft.isReadableStreamLike(o))return oft(o)}throw _ur.createInvalidObservableTypeError(o)}wd.innerFrom=yur;function nft(o){return new r9.Observable(function(a){var u=o[hur.observable]();if(mur.isFunction(u.subscribe))return u.subscribe(a);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}wd.fromInteropObservable=nft;function ift(o){return new r9.Observable(function(a){for(var u=0;u<o.length&&!a.closed;u++)a.next(o[u]);a.complete()})}wd.fromArrayLike=ift;function aft(o){return new r9.Observable(function(a){o.then(function(u){a.closed||(a.next(u),a.complete())},function(u){return a.error(u)}).then(null,gur.reportUnhandledError)})}wd.fromPromise=aft;function sft(o){return new r9.Observable(function(a){var u,f;try{for(var d=bNe(o),w=d.next();!w.done;w=d.next()){var O=w.value;if(a.next(O),a.closed)return}}catch(q){u={error:q}}finally{try{w&&!w.done&&(f=d.return)&&f.call(d)}finally{if(u)throw u.error}}a.complete()})}wd.fromIterable=sft;function xNe(o){return new r9.Observable(function(a){vur(o,a).catch(function(u){return a.error(u)})})}wd.fromAsyncIterable=xNe;function oft(o){return xNe(rft.readableStreamLikeToAsyncGenerator(o))}wd.fromReadableStreamLike=oft;function vur(o,a){var u,f,d,w;return sur(this,void 0,void 0,function(){var O,q;return our(this,function(K){switch(K.label){case 0:K.trys.push([0,5,6,11]),u=cur(o),K.label=1;case 1:return[4,u.next()];case 2:if(f=K.sent(),!!f.done)return[3,4];if(O=f.value,a.next(O),a.closed)return[2];K.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return q=K.sent(),d={error:q},[3,11];case 6:return K.trys.push([6,,9,10]),f&&!f.done&&(w=u.return)?[4,w.call(u)]:[3,8];case 7:K.sent(),K.label=8;case 8:return[3,10];case 9:if(d)throw d.error;return[7];case 10:return[7];case 11:return a.complete(),[2]}})})}});var Zo=Ve(E6=>{"use strict";var bur=E6&&E6.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(E6,"__esModule",{value:!0});E6.OperatorSubscriber=E6.createOperatorSubscriber=void 0;var xur=YL();function Sur(o,a,u,f,d){return new cft(o,a,u,f,d)}E6.createOperatorSubscriber=Sur;var cft=function(o){bur(a,o);function a(u,f,d,w,O,q){var K=o.call(this,u)||this;return K.onFinalize=O,K.shouldUnsubscribe=q,K._next=f?function(le){try{f(le)}catch(ye){u.error(ye)}}:o.prototype._next,K._error=w?function(le){try{w(le)}catch(ye){u.error(ye)}finally{this.unsubscribe()}}:o.prototype._error,K._complete=d?function(){try{d()}catch(le){u.error(le)}finally{this.unsubscribe()}}:o.prototype._complete,K}return a.prototype.unsubscribe=function(){var u;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var f=this.closed;o.prototype.unsubscribe.call(this),!f&&((u=this.onFinalize)===null||u===void 0||u.call(this))}},a}(xur.Subscriber);E6.OperatorSubscriber=cft});var Sce=Ve(xce=>{"use strict";Object.defineProperty(xce,"__esModule",{value:!0});xce.audit=void 0;var Tur=go(),wur=zl(),lft=Zo();function kur(o){return Tur.operate(function(a,u){var f=!1,d=null,w=null,O=!1,q=function(){if(w?.unsubscribe(),w=null,f){f=!1;var le=d;d=null,u.next(le)}O&&u.complete()},K=function(){w=null,O&&u.complete()};a.subscribe(lft.createOperatorSubscriber(u,function(le){f=!0,d=le,w||wur.innerFrom(o(le)).subscribe(w=lft.createOperatorSubscriber(u,q,K))},function(){O=!0,(!f||!w||w.closed)&&u.complete()}))})}xce.audit=kur});var uft=Ve(n9=>{"use strict";var Cur=n9&&n9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(n9,"__esModule",{value:!0});n9.Action=void 0;var Pur=lS(),Eur=function(o){Cur(a,o);function a(u,f){return o.call(this)||this}return a.prototype.schedule=function(u,f){return f===void 0&&(f=0),this},a}(Pur.Subscription);n9.Action=Eur});var _ft=Ve(iP=>{"use strict";var pft=iP&&iP.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},fft=iP&&iP.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(iP,"__esModule",{value:!0});iP.intervalProvider=void 0;iP.intervalProvider={setInterval:function(o,a){for(var u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];var d=iP.intervalProvider.delegate;return d?.setInterval?d.setInterval.apply(d,fft([o,a],pft(u))):setInterval.apply(void 0,fft([o,a],pft(u)))},clearInterval:function(o){var a=iP.intervalProvider.delegate;return(a?.clearInterval||clearInterval)(o)},delegate:void 0}});var a9=Ve(i9=>{"use strict";var Dur=i9&&i9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(i9,"__esModule",{value:!0});i9.AsyncAction=void 0;var Our=uft(),dft=_ft(),Nur=lO(),Aur=function(o){Dur(a,o);function a(u,f){var d=o.call(this,u,f)||this;return d.scheduler=u,d.work=f,d.pending=!1,d}return a.prototype.schedule=function(u,f){var d;if(f===void 0&&(f=0),this.closed)return this;this.state=u;var w=this.id,O=this.scheduler;return w!=null&&(this.id=this.recycleAsyncId(O,w,f)),this.pending=!0,this.delay=f,this.id=(d=this.id)!==null&&d!==void 0?d:this.requestAsyncId(O,this.id,f),this},a.prototype.requestAsyncId=function(u,f,d){return d===void 0&&(d=0),dft.intervalProvider.setInterval(u.flush.bind(u,this),d)},a.prototype.recycleAsyncId=function(u,f,d){if(d===void 0&&(d=0),d!=null&&this.delay===d&&this.pending===!1)return f;f!=null&&dft.intervalProvider.clearInterval(f)},a.prototype.execute=function(u,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var d=this._execute(u,f);if(d)return d;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},a.prototype._execute=function(u,f){var d=!1,w;try{this.work(u)}catch(O){d=!0,w=O||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),w},a.prototype.unsubscribe=function(){if(!this.closed){var u=this,f=u.id,d=u.scheduler,w=d.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Nur.arrRemove(w,this),f!=null&&(this.id=this.recycleAsyncId(d,f,null)),this.delay=null,o.prototype.unsubscribe.call(this)}},a}(Our.Action);i9.AsyncAction=Aur});var Tce=Ve(GH=>{"use strict";Object.defineProperty(GH,"__esModule",{value:!0});GH.dateTimestampProvider=void 0;GH.dateTimestampProvider={now:function(){return(GH.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var SNe=Ve(wce=>{"use strict";Object.defineProperty(wce,"__esModule",{value:!0});wce.Scheduler=void 0;var Iur=Tce(),Fur=function(){function o(a,u){u===void 0&&(u=o.now),this.schedulerActionCtor=a,this.now=u}return o.prototype.schedule=function(a,u,f){return u===void 0&&(u=0),new this.schedulerActionCtor(this,a).schedule(f,u)},o.now=Iur.dateTimestampProvider.now,o}();wce.Scheduler=Fur});var o9=Ve(s9=>{"use strict";var Mur=s9&&s9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(s9,"__esModule",{value:!0});s9.AsyncScheduler=void 0;var mft=SNe(),Rur=function(o){Mur(a,o);function a(u,f){f===void 0&&(f=mft.Scheduler.now);var d=o.call(this,u,f)||this;return d.actions=[],d._active=!1,d}return a.prototype.flush=function(u){var f=this.actions;if(this._active){f.push(u);return}var d;this._active=!0;do if(d=u.execute(u.state,u.delay))break;while(u=f.shift());if(this._active=!1,d){for(;u=f.shift();)u.unsubscribe();throw d}},a}(mft.Scheduler);s9.AsyncScheduler=Rur});var Rb=Ve(p7=>{"use strict";Object.defineProperty(p7,"__esModule",{value:!0});p7.async=p7.asyncScheduler=void 0;var jur=a9(),Lur=o9();p7.asyncScheduler=new Lur.AsyncScheduler(jur.AsyncAction);p7.async=p7.asyncScheduler});var KH=Ve(kce=>{"use strict";Object.defineProperty(kce,"__esModule",{value:!0});kce.isScheduler=void 0;var Bur=Pf();function qur(o){return o&&Bur.isFunction(o.schedule)}kce.isScheduler=qur});var Pce=Ve(Cce=>{"use strict";Object.defineProperty(Cce,"__esModule",{value:!0});Cce.isValidDate=void 0;function Jur(o){return o instanceof Date&&!isNaN(o)}Cce.isValidDate=Jur});var D6=Ve(Ece=>{"use strict";Object.defineProperty(Ece,"__esModule",{value:!0});Ece.timer=void 0;var zur=Vf(),Wur=Rb(),Uur=KH(),$ur=Pce();function Vur(o,a,u){o===void 0&&(o=0),u===void 0&&(u=Wur.async);var f=-1;return a!=null&&(Uur.isScheduler(a)?u=a:f=a),new zur.Observable(function(d){var w=$ur.isValidDate(o)?+o-u.now():o;w<0&&(w=0);var O=0;return u.schedule(function(){d.closed||(d.next(O++),0<=f?this.schedule(void 0,f):d.complete())},w)})}Ece.timer=Vur});var TNe=Ve(Dce=>{"use strict";Object.defineProperty(Dce,"__esModule",{value:!0});Dce.auditTime=void 0;var Hur=Rb(),Gur=Sce(),Kur=D6();function Qur(o,a){return a===void 0&&(a=Hur.asyncScheduler),Gur.audit(function(){return Kur.timer(o,a)})}Dce.auditTime=Qur});var wNe=Ve(Oce=>{"use strict";Object.defineProperty(Oce,"__esModule",{value:!0});Oce.buffer=void 0;var Xur=go(),Yur=ov(),gft=Zo(),Zur=zl();function epr(o){return Xur.operate(function(a,u){var f=[];return a.subscribe(gft.createOperatorSubscriber(u,function(d){return f.push(d)},function(){u.next(f),u.complete()})),Zur.innerFrom(o).subscribe(gft.createOperatorSubscriber(u,function(){var d=f;f=[],u.next(d)},Yur.noop)),function(){f=null}})}Oce.buffer=epr});var CNe=Ve(c9=>{"use strict";var kNe=c9&&c9.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c9,"__esModule",{value:!0});c9.bufferCount=void 0;var tpr=go(),rpr=Zo(),npr=lO();function ipr(o,a){return a===void 0&&(a=null),a=a??o,tpr.operate(function(u,f){var d=[],w=0;u.subscribe(rpr.createOperatorSubscriber(f,function(O){var q,K,le,ye,Be=null;w++%a===0&&d.push([]);try{for(var ce=kNe(d),mt=ce.next();!mt.done;mt=ce.next()){var Re=mt.value;Re.push(O),o<=Re.length&&(Be=Be??[],Be.push(Re))}}catch(jr){q={error:jr}}finally{try{mt&&!mt.done&&(K=ce.return)&&K.call(ce)}finally{if(q)throw q.error}}if(Be)try{for(var Ge=kNe(Be),_r=Ge.next();!_r.done;_r=Ge.next()){var Re=_r.value;npr.arrRemove(d,Re),f.next(Re)}}catch(jr){le={error:jr}}finally{try{_r&&!_r.done&&(ye=Ge.return)&&ye.call(Ge)}finally{if(le)throw le.error}}},function(){var O,q;try{for(var K=kNe(d),le=K.next();!le.done;le=K.next()){var ye=le.value;f.next(ye)}}catch(Be){O={error:Be}}finally{try{le&&!le.done&&(q=K.return)&&q.call(K)}finally{if(O)throw O.error}}f.complete()},void 0,function(){d=null}))})}c9.bufferCount=ipr});var jb=Ve(O6=>{"use strict";Object.defineProperty(O6,"__esModule",{value:!0});O6.popNumber=O6.popScheduler=O6.popResultSelector=void 0;var apr=Pf(),spr=KH();function PNe(o){return o[o.length-1]}function opr(o){return apr.isFunction(PNe(o))?o.pop():void 0}O6.popResultSelector=opr;function cpr(o){return spr.isScheduler(PNe(o))?o.pop():void 0}O6.popScheduler=cpr;function lpr(o,a){return typeof PNe(o)=="number"?o.pop():a}O6.popNumber=lpr});var uO=Ve(Nce=>{"use strict";Object.defineProperty(Nce,"__esModule",{value:!0});Nce.executeSchedule=void 0;function upr(o,a,u,f,d){f===void 0&&(f=0),d===void 0&&(d=!1);var w=a.schedule(function(){u(),d?o.add(this.schedule(null,f)):this.unsubscribe()},f);if(o.add(w),!d)return w}Nce.executeSchedule=upr});var ENe=Ve(l9=>{"use strict";var ppr=l9&&l9.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(l9,"__esModule",{value:!0});l9.bufferTime=void 0;var fpr=lS(),_pr=go(),dpr=Zo(),mpr=lO(),gpr=Rb(),hpr=jb(),hft=uO();function ypr(o){for(var a,u,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var w=(a=hpr.popScheduler(f))!==null&&a!==void 0?a:gpr.asyncScheduler,O=(u=f[0])!==null&&u!==void 0?u:null,q=f[1]||1/0;return _pr.operate(function(K,le){var ye=[],Be=!1,ce=function(Ge){var _r=Ge.buffer,jr=Ge.subs;jr.unsubscribe(),mpr.arrRemove(ye,Ge),le.next(_r),Be&&mt()},mt=function(){if(ye){var Ge=new fpr.Subscription;le.add(Ge);var _r=[],jr={buffer:_r,subs:Ge};ye.push(jr),hft.executeSchedule(Ge,w,function(){return ce(jr)},o)}};O!==null&&O>=0?hft.executeSchedule(le,w,mt,O,!0):Be=!0,mt();var Re=dpr.createOperatorSubscriber(le,function(Ge){var _r,jr,si=ye.slice();try{for(var Oi=ppr(si),ys=Oi.next();!ys.done;ys=Oi.next()){var ns=ys.value,sn=ns.buffer;sn.push(Ge),q<=sn.length&&ce(ns)}}catch(Ir){_r={error:Ir}}finally{try{ys&&!ys.done&&(jr=Oi.return)&&jr.call(Oi)}finally{if(_r)throw _r.error}}},function(){for(;ye?.length;)le.next(ye.shift().buffer);Re?.unsubscribe(),le.complete(),le.unsubscribe()},void 0,function(){return ye=null});K.subscribe(Re)})}l9.bufferTime=ypr});var ONe=Ve(u9=>{"use strict";var vpr=u9&&u9.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(u9,"__esModule",{value:!0});u9.bufferToggle=void 0;var bpr=lS(),xpr=go(),yft=zl(),DNe=Zo(),vft=ov(),Spr=lO();function Tpr(o,a){return xpr.operate(function(u,f){var d=[];yft.innerFrom(o).subscribe(DNe.createOperatorSubscriber(f,function(w){var O=[];d.push(O);var q=new bpr.Subscription,K=function(){Spr.arrRemove(d,O),f.next(O),q.unsubscribe()};q.add(yft.innerFrom(a(w)).subscribe(DNe.createOperatorSubscriber(f,K,vft.noop)))},vft.noop)),u.subscribe(DNe.createOperatorSubscriber(f,function(w){var O,q;try{for(var K=vpr(d),le=K.next();!le.done;le=K.next()){var ye=le.value;ye.push(w)}}catch(Be){O={error:Be}}finally{try{le&&!le.done&&(q=K.return)&&q.call(K)}finally{if(O)throw O.error}}},function(){for(;d.length>0;)f.next(d.shift());f.complete()}))})}u9.bufferToggle=Tpr});var NNe=Ve(Ace=>{"use strict";Object.defineProperty(Ace,"__esModule",{value:!0});Ace.bufferWhen=void 0;var wpr=go(),kpr=ov(),bft=Zo(),Cpr=zl();function Ppr(o){return wpr.operate(function(a,u){var f=null,d=null,w=function(){d?.unsubscribe();var O=f;f=[],O&&u.next(O),Cpr.innerFrom(o()).subscribe(d=bft.createOperatorSubscriber(u,w,kpr.noop))};w(),a.subscribe(bft.createOperatorSubscriber(u,function(O){return f?.push(O)},function(){f&&u.next(f),u.complete()},void 0,function(){return f=d=null}))})}Ace.bufferWhen=Ppr});var ANe=Ve(Ice=>{"use strict";Object.defineProperty(Ice,"__esModule",{value:!0});Ice.catchError=void 0;var Epr=zl(),Dpr=Zo(),Opr=go();function xft(o){return Opr.operate(function(a,u){var f=null,d=!1,w;f=a.subscribe(Dpr.createOperatorSubscriber(u,void 0,void 0,function(O){w=Epr.innerFrom(o(O,xft(o)(a))),f?(f.unsubscribe(),f=null,w.subscribe(u)):d=!0})),d&&(f.unsubscribe(),f=null,w.subscribe(u))})}Ice.catchError=xft});var INe=Ve(Fce=>{"use strict";Object.defineProperty(Fce,"__esModule",{value:!0});Fce.argsArgArrayOrObject=void 0;var Npr=Array.isArray,Apr=Object.getPrototypeOf,Ipr=Object.prototype,Fpr=Object.keys;function Mpr(o){if(o.length===1){var a=o[0];if(Npr(a))return{args:a,keys:null};if(Rpr(a)){var u=Fpr(a);return{args:u.map(function(f){return a[f]}),keys:u}}}return{args:o,keys:null}}Fce.argsArgArrayOrObject=Mpr;function Rpr(o){return o&&typeof o=="object"&&Apr(o)===Ipr}});var p9=Ve(Mce=>{"use strict";Object.defineProperty(Mce,"__esModule",{value:!0});Mce.observeOn=void 0;var FNe=uO(),jpr=go(),Lpr=Zo();function Bpr(o,a){return a===void 0&&(a=0),jpr.operate(function(u,f){u.subscribe(Lpr.createOperatorSubscriber(f,function(d){return FNe.executeSchedule(f,o,function(){return f.next(d)},a)},function(){return FNe.executeSchedule(f,o,function(){return f.complete()},a)},function(d){return FNe.executeSchedule(f,o,function(){return f.error(d)},a)}))})}Mce.observeOn=Bpr});var f9=Ve(Rce=>{"use strict";Object.defineProperty(Rce,"__esModule",{value:!0});Rce.subscribeOn=void 0;var qpr=go();function Jpr(o,a){return a===void 0&&(a=0),qpr.operate(function(u,f){f.add(o.schedule(function(){return u.subscribe(f)},a))})}Rce.subscribeOn=Jpr});var Sft=Ve(jce=>{"use strict";Object.defineProperty(jce,"__esModule",{value:!0});jce.scheduleObservable=void 0;var zpr=zl(),Wpr=p9(),Upr=f9();function $pr(o,a){return zpr.innerFrom(o).pipe(Upr.subscribeOn(a),Wpr.observeOn(a))}jce.scheduleObservable=$pr});var Tft=Ve(Lce=>{"use strict";Object.defineProperty(Lce,"__esModule",{value:!0});Lce.schedulePromise=void 0;var Vpr=zl(),Hpr=p9(),Gpr=f9();function Kpr(o,a){return Vpr.innerFrom(o).pipe(Gpr.subscribeOn(a),Hpr.observeOn(a))}Lce.schedulePromise=Kpr});var wft=Ve(Bce=>{"use strict";Object.defineProperty(Bce,"__esModule",{value:!0});Bce.scheduleArray=void 0;var Qpr=Vf();function Xpr(o,a){return new Qpr.Observable(function(u){var f=0;return a.schedule(function(){f===o.length?u.complete():(u.next(o[f++]),u.closed||this.schedule())})})}Bce.scheduleArray=Xpr});var MNe=Ve(qce=>{"use strict";Object.defineProperty(qce,"__esModule",{value:!0});qce.scheduleIterable=void 0;var Ypr=Vf(),Zpr=yNe(),efr=Pf(),kft=uO();function tfr(o,a){return new Ypr.Observable(function(u){var f;return kft.executeSchedule(u,a,function(){f=o[Zpr.iterator](),kft.executeSchedule(u,a,function(){var d,w,O;try{d=f.next(),w=d.value,O=d.done}catch(q){u.error(q);return}O?u.complete():u.next(w)},0,!0)}),function(){return efr.isFunction(f?.return)&&f.return()}})}qce.scheduleIterable=tfr});var RNe=Ve(Jce=>{"use strict";Object.defineProperty(Jce,"__esModule",{value:!0});Jce.scheduleAsyncIterable=void 0;var rfr=Vf(),Cft=uO();function nfr(o,a){if(!o)throw new Error("Iterable cannot be null");return new rfr.Observable(function(u){Cft.executeSchedule(u,a,function(){var f=o[Symbol.asyncIterator]();Cft.executeSchedule(u,a,function(){f.next().then(function(d){d.done?u.complete():u.next(d.value)})},0,!0)})})}Jce.scheduleAsyncIterable=nfr});var Pft=Ve(zce=>{"use strict";Object.defineProperty(zce,"__esModule",{value:!0});zce.scheduleReadableStreamLike=void 0;var ifr=RNe(),afr=bce();function sfr(o,a){return ifr.scheduleAsyncIterable(afr.readableStreamLikeToAsyncGenerator(o),a)}zce.scheduleReadableStreamLike=sfr});var jNe=Ve(Wce=>{"use strict";Object.defineProperty(Wce,"__esModule",{value:!0});Wce.scheduled=void 0;var ofr=Sft(),cfr=Tft(),lfr=wft(),ufr=MNe(),pfr=RNe(),ffr=mNe(),_fr=nNe(),dfr=rce(),mfr=vNe(),gfr=gNe(),hfr=hNe(),yfr=bce(),vfr=Pft();function bfr(o,a){if(o!=null){if(ffr.isInteropObservable(o))return ofr.scheduleObservable(o,a);if(dfr.isArrayLike(o))return lfr.scheduleArray(o,a);if(_fr.isPromise(o))return cfr.schedulePromise(o,a);if(gfr.isAsyncIterable(o))return pfr.scheduleAsyncIterable(o,a);if(mfr.isIterable(o))return ufr.scheduleIterable(o,a);if(yfr.isReadableStreamLike(o))return vfr.scheduleReadableStreamLike(o,a)}throw hfr.createInvalidObservableTypeError(o)}Wce.scheduled=bfr});var pO=Ve(Uce=>{"use strict";Object.defineProperty(Uce,"__esModule",{value:!0});Uce.from=void 0;var xfr=jNe(),Sfr=zl();function Tfr(o,a){return a?xfr.scheduled(o,a):Sfr.innerFrom(o)}Uce.from=Tfr});var fO=Ve($ce=>{"use strict";Object.defineProperty($ce,"__esModule",{value:!0});$ce.map=void 0;var wfr=go(),kfr=Zo();function Cfr(o,a){return wfr.operate(function(u,f){var d=0;u.subscribe(kfr.createOperatorSubscriber(f,function(w){f.next(o.call(a,w,d++))}))})}$ce.map=Cfr});var A6=Ve(N6=>{"use strict";var Pfr=N6&&N6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Efr=N6&&N6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(N6,"__esModule",{value:!0});N6.mapOneOrManyArgs=void 0;var Dfr=fO(),Ofr=Array.isArray;function Nfr(o,a){return Ofr(a)?o.apply(void 0,Efr([],Pfr(a))):o(a)}function Afr(o){return Dfr.map(function(a){return Nfr(o,a)})}N6.mapOneOrManyArgs=Afr});var LNe=Ve(Vce=>{"use strict";Object.defineProperty(Vce,"__esModule",{value:!0});Vce.createObject=void 0;function Ifr(o,a){return o.reduce(function(u,f,d){return u[f]=a[d],u},{})}Vce.createObject=Ifr});var Hce=Ve(_9=>{"use strict";Object.defineProperty(_9,"__esModule",{value:!0});_9.combineLatestInit=_9.combineLatest=void 0;var Ffr=Vf(),Mfr=INe(),Oft=pO(),Nft=cv(),Rfr=A6(),Eft=jb(),jfr=LNe(),Lfr=Zo(),Bfr=uO();function qfr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=Eft.popScheduler(o),f=Eft.popResultSelector(o),d=Mfr.argsArgArrayOrObject(o),w=d.args,O=d.keys;if(w.length===0)return Oft.from([],u);var q=new Ffr.Observable(Aft(w,u,O?function(K){return jfr.createObject(O,K)}:Nft.identity));return f?q.pipe(Rfr.mapOneOrManyArgs(f)):q}_9.combineLatest=qfr;function Aft(o,a,u){return u===void 0&&(u=Nft.identity),function(f){Dft(a,function(){for(var d=o.length,w=new Array(d),O=d,q=d,K=function(ye){Dft(a,function(){var Be=Oft.from(o[ye],a),ce=!1;Be.subscribe(Lfr.createOperatorSubscriber(f,function(mt){w[ye]=mt,ce||(ce=!0,q--),q||f.next(u(w.slice()))},function(){--O||f.complete()}))},f)},le=0;le<d;le++)K(le)},f)}}_9.combineLatestInit=Aft;function Dft(o,a,u){o?Bfr.executeSchedule(u,o,a):a()}});var Kce=Ve(Gce=>{"use strict";Object.defineProperty(Gce,"__esModule",{value:!0});Gce.mergeInternals=void 0;var Jfr=zl(),zfr=uO(),Ift=Zo();function Wfr(o,a,u,f,d,w,O,q){var K=[],le=0,ye=0,Be=!1,ce=function(){Be&&!K.length&&!le&&a.complete()},mt=function(Ge){return le<f?Re(Ge):K.push(Ge)},Re=function(Ge){w&&a.next(Ge),le++;var _r=!1;Jfr.innerFrom(u(Ge,ye++)).subscribe(Ift.createOperatorSubscriber(a,function(jr){d?.(jr),w?mt(jr):a.next(jr)},function(){_r=!0},void 0,function(){if(_r)try{le--;for(var jr=function(){var si=K.shift();O?zfr.executeSchedule(a,O,function(){return Re(si)}):Re(si)};K.length&&le<f;)jr();ce()}catch(si){a.error(si)}}))};return o.subscribe(Ift.createOperatorSubscriber(a,mt,function(){Be=!0,ce()})),function(){q?.()}}Gce.mergeInternals=Wfr});var aP=Ve(Qce=>{"use strict";Object.defineProperty(Qce,"__esModule",{value:!0});Qce.mergeMap=void 0;var Ufr=fO(),$fr=zl(),Vfr=go(),Hfr=Kce(),Gfr=Pf();function Fft(o,a,u){return u===void 0&&(u=1/0),Gfr.isFunction(a)?Fft(function(f,d){return Ufr.map(function(w,O){return a(f,w,d,O)})($fr.innerFrom(o(f,d)))},u):(typeof a=="number"&&(u=a),Vfr.operate(function(f,d){return Hfr.mergeInternals(f,d,o,u)}))}Qce.mergeMap=Fft});var BNe=Ve(Xce=>{"use strict";Object.defineProperty(Xce,"__esModule",{value:!0});Xce.scanInternals=void 0;var Kfr=Zo();function Qfr(o,a,u,f,d){return function(w,O){var q=u,K=a,le=0;w.subscribe(Kfr.createOperatorSubscriber(O,function(ye){var Be=le++;K=q?o(K,ye,Be):(q=!0,ye),f&&O.next(K)},d&&function(){q&&O.next(K),O.complete()}))}}Xce.scanInternals=Qfr});var f7=Ve(Yce=>{"use strict";Object.defineProperty(Yce,"__esModule",{value:!0});Yce.reduce=void 0;var Xfr=BNe(),Yfr=go();function Zfr(o,a){return Yfr.operate(Xfr.scanInternals(o,a,arguments.length>=2,!1,!0))}Yce.reduce=Zfr});var ele=Ve(Zce=>{"use strict";Object.defineProperty(Zce,"__esModule",{value:!0});Zce.toArray=void 0;var e_r=f7(),t_r=go(),r_r=function(o,a){return o.push(a),o};function n_r(){return t_r.operate(function(o,a){e_r.reduce(r_r,[])(o).subscribe(a)})}Zce.toArray=n_r});var qNe=Ve(tle=>{"use strict";Object.defineProperty(tle,"__esModule",{value:!0});tle.joinAllInternals=void 0;var i_r=cv(),a_r=A6(),s_r=HH(),o_r=aP(),c_r=ele();function l_r(o,a){return s_r.pipe(c_r.toArray(),o_r.mergeMap(function(u){return o(u)}),a?a_r.mapOneOrManyArgs(a):i_r.identity)}tle.joinAllInternals=l_r});var nle=Ve(rle=>{"use strict";Object.defineProperty(rle,"__esModule",{value:!0});rle.combineLatestAll=void 0;var u_r=Hce(),p_r=qNe();function f_r(o){return p_r.joinAllInternals(u_r.combineLatest,o)}rle.combineLatestAll=f_r});var JNe=Ve(ile=>{"use strict";Object.defineProperty(ile,"__esModule",{value:!0});ile.combineAll=void 0;var __r=nle();ile.combineAll=__r.combineLatestAll});var _7=Ve(ale=>{"use strict";Object.defineProperty(ale,"__esModule",{value:!0});ale.argsOrArgArray=void 0;var d_r=Array.isArray;function m_r(o){return o.length===1&&d_r(o[0])?o[0]:o}ale.argsOrArgArray=m_r});var zNe=Ve(I6=>{"use strict";var Mft=I6&&I6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Rft=I6&&I6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(I6,"__esModule",{value:!0});I6.combineLatest=void 0;var g_r=Hce(),h_r=go(),y_r=_7(),v_r=A6(),b_r=HH(),x_r=jb();function jft(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=x_r.popResultSelector(o);return u?b_r.pipe(jft.apply(void 0,Rft([],Mft(o))),v_r.mapOneOrManyArgs(u)):h_r.operate(function(f,d){g_r.combineLatestInit(Rft([f],Mft(y_r.argsOrArgArray(o))))(d)})}I6.combineLatest=jft});var WNe=Ve(F6=>{"use strict";var S_r=F6&&F6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},T_r=F6&&F6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(F6,"__esModule",{value:!0});F6.combineLatestWith=void 0;var w_r=zNe();function k_r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return w_r.combineLatest.apply(void 0,T_r([],S_r(o)))}F6.combineLatestWith=k_r});var d9=Ve(sle=>{"use strict";Object.defineProperty(sle,"__esModule",{value:!0});sle.mergeAll=void 0;var C_r=aP(),P_r=cv();function E_r(o){return o===void 0&&(o=1/0),C_r.mergeMap(P_r.identity,o)}sle.mergeAll=E_r});var QH=Ve(ole=>{"use strict";Object.defineProperty(ole,"__esModule",{value:!0});ole.concatAll=void 0;var D_r=d9();function O_r(){return D_r.mergeAll(1)}ole.concatAll=O_r});var UNe=Ve(M6=>{"use strict";var N_r=M6&&M6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},A_r=M6&&M6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(M6,"__esModule",{value:!0});M6.concat=void 0;var I_r=go(),F_r=QH(),M_r=jb(),R_r=pO();function j_r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=M_r.popScheduler(o);return I_r.operate(function(f,d){F_r.concatAll()(R_r.from(A_r([f],N_r(o)),u)).subscribe(d)})}M6.concat=j_r});var lle=Ve(cle=>{"use strict";Object.defineProperty(cle,"__esModule",{value:!0});cle.concatMap=void 0;var Lft=aP(),L_r=Pf();function B_r(o,a){return L_r.isFunction(a)?Lft.mergeMap(o,a,1):Lft.mergeMap(o,1)}cle.concatMap=B_r});var $Ne=Ve(ule=>{"use strict";Object.defineProperty(ule,"__esModule",{value:!0});ule.concatMapTo=void 0;var Bft=lle(),q_r=Pf();function J_r(o,a){return q_r.isFunction(a)?Bft.concatMap(function(){return o},a):Bft.concatMap(function(){return o})}ule.concatMapTo=J_r});var VNe=Ve(R6=>{"use strict";var z_r=R6&&R6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},W_r=R6&&R6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(R6,"__esModule",{value:!0});R6.concatWith=void 0;var U_r=UNe();function $_r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return U_r.concat.apply(void 0,W_r([],z_r(o)))}R6.concatWith=$_r});var HNe=Ve(ple=>{"use strict";Object.defineProperty(ple,"__esModule",{value:!0});ple.ObjectUnsubscribedError=void 0;var V_r=P6();ple.ObjectUnsubscribedError=V_r.createErrorClass(function(o){return function(){o(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var lv=Ve(sP=>{"use strict";var Jft=sP&&sP.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),H_r=sP&&sP.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(sP,"__esModule",{value:!0});sP.AnonymousSubject=sP.Subject=void 0;var qft=Vf(),KNe=lS(),G_r=HNe(),K_r=lO(),GNe=pce(),zft=function(o){Jft(a,o);function a(){var u=o.call(this)||this;return u.closed=!1,u.currentObservers=null,u.observers=[],u.isStopped=!1,u.hasError=!1,u.thrownError=null,u}return a.prototype.lift=function(u){var f=new QNe(this,this);return f.operator=u,f},a.prototype._throwIfClosed=function(){if(this.closed)throw new G_r.ObjectUnsubscribedError},a.prototype.next=function(u){var f=this;GNe.errorContext(function(){var d,w;if(f._throwIfClosed(),!f.isStopped){f.currentObservers||(f.currentObservers=Array.from(f.observers));try{for(var O=H_r(f.currentObservers),q=O.next();!q.done;q=O.next()){var K=q.value;K.next(u)}}catch(le){d={error:le}}finally{try{q&&!q.done&&(w=O.return)&&w.call(O)}finally{if(d)throw d.error}}}})},a.prototype.error=function(u){var f=this;GNe.errorContext(function(){if(f._throwIfClosed(),!f.isStopped){f.hasError=f.isStopped=!0,f.thrownError=u;for(var d=f.observers;d.length;)d.shift().error(u)}})},a.prototype.complete=function(){var u=this;GNe.errorContext(function(){if(u._throwIfClosed(),!u.isStopped){u.isStopped=!0;for(var f=u.observers;f.length;)f.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var u;return((u=this.observers)===null||u===void 0?void 0:u.length)>0},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(u){return this._throwIfClosed(),o.prototype._trySubscribe.call(this,u)},a.prototype._subscribe=function(u){return this._throwIfClosed(),this._checkFinalizedStatuses(u),this._innerSubscribe(u)},a.prototype._innerSubscribe=function(u){var f=this,d=this,w=d.hasError,O=d.isStopped,q=d.observers;return w||O?KNe.EMPTY_SUBSCRIPTION:(this.currentObservers=null,q.push(u),new KNe.Subscription(function(){f.currentObservers=null,K_r.arrRemove(q,u)}))},a.prototype._checkFinalizedStatuses=function(u){var f=this,d=f.hasError,w=f.thrownError,O=f.isStopped;d?u.error(w):O&&u.complete()},a.prototype.asObservable=function(){var u=new qft.Observable;return u.source=this,u},a.create=function(u,f){return new QNe(u,f)},a}(qft.Observable);sP.Subject=zft;var QNe=function(o){Jft(a,o);function a(u,f){var d=o.call(this)||this;return d.destination=u,d.source=f,d}return a.prototype.next=function(u){var f,d;(d=(f=this.destination)===null||f===void 0?void 0:f.next)===null||d===void 0||d.call(f,u)},a.prototype.error=function(u){var f,d;(d=(f=this.destination)===null||f===void 0?void 0:f.error)===null||d===void 0||d.call(f,u)},a.prototype.complete=function(){var u,f;(f=(u=this.destination)===null||u===void 0?void 0:u.complete)===null||f===void 0||f.call(u)},a.prototype._subscribe=function(u){var f,d;return(d=(f=this.source)===null||f===void 0?void 0:f.subscribe(u))!==null&&d!==void 0?d:KNe.EMPTY_SUBSCRIPTION},a}(zft);sP.AnonymousSubject=QNe});var Wft=Ve(fle=>{"use strict";Object.defineProperty(fle,"__esModule",{value:!0});fle.fromSubscribable=void 0;var Q_r=Vf();function X_r(o){return new Q_r.Observable(function(a){return o.subscribe(a)})}fle.fromSubscribable=X_r});var XH=Ve(_le=>{"use strict";Object.defineProperty(_le,"__esModule",{value:!0});_le.connect=void 0;var Y_r=lv(),Z_r=zl(),edr=go(),tdr=Wft(),rdr={connector:function(){return new Y_r.Subject}};function ndr(o,a){a===void 0&&(a=rdr);var u=a.connector;return edr.operate(function(f,d){var w=u();Z_r.innerFrom(o(tdr.fromSubscribable(w))).subscribe(d),d.add(f.subscribe(w))})}_le.connect=ndr});var XNe=Ve(dle=>{"use strict";Object.defineProperty(dle,"__esModule",{value:!0});dle.count=void 0;var idr=f7();function adr(o){return idr.reduce(function(a,u,f){return!o||o(u,f)?a+1:a},0)}dle.count=adr});var YNe=Ve(mle=>{"use strict";Object.defineProperty(mle,"__esModule",{value:!0});mle.debounce=void 0;var sdr=go(),odr=ov(),Uft=Zo(),cdr=zl();function ldr(o){return sdr.operate(function(a,u){var f=!1,d=null,w=null,O=function(){if(w?.unsubscribe(),w=null,f){f=!1;var q=d;d=null,u.next(q)}};a.subscribe(Uft.createOperatorSubscriber(u,function(q){w?.unsubscribe(),f=!0,d=q,w=Uft.createOperatorSubscriber(u,O,odr.noop),cdr.innerFrom(o(q)).subscribe(w)},function(){O(),u.complete()},void 0,function(){d=w=null}))})}mle.debounce=ldr});var ZNe=Ve(gle=>{"use strict";Object.defineProperty(gle,"__esModule",{value:!0});gle.debounceTime=void 0;var udr=Rb(),pdr=go(),fdr=Zo();function _dr(o,a){return a===void 0&&(a=udr.asyncScheduler),pdr.operate(function(u,f){var d=null,w=null,O=null,q=function(){if(d){d.unsubscribe(),d=null;var le=w;w=null,f.next(le)}};function K(){var le=O+o,ye=a.now();if(ye<le){d=this.schedule(void 0,le-ye),f.add(d);return}q()}u.subscribe(fdr.createOperatorSubscriber(f,function(le){w=le,O=a.now(),d||(d=a.schedule(K,o),f.add(d))},function(){q(),f.complete()},void 0,function(){w=d=null}))})}gle.debounceTime=_dr});var m9=Ve(hle=>{"use strict";Object.defineProperty(hle,"__esModule",{value:!0});hle.defaultIfEmpty=void 0;var ddr=go(),mdr=Zo();function gdr(o){return ddr.operate(function(a,u){var f=!1;a.subscribe(mdr.createOperatorSubscriber(u,function(d){f=!0,u.next(d)},function(){f||u.next(o),u.complete()}))})}hle.defaultIfEmpty=gdr});var YH=Ve(yle=>{"use strict";Object.defineProperty(yle,"__esModule",{value:!0});yle.concat=void 0;var hdr=QH(),ydr=jb(),vdr=pO();function bdr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return hdr.concatAll()(vdr.from(o,ydr.popScheduler(o)))}yle.concat=bdr});var Yw=Ve(d7=>{"use strict";Object.defineProperty(d7,"__esModule",{value:!0});d7.empty=d7.EMPTY=void 0;var $ft=Vf();d7.EMPTY=new $ft.Observable(function(o){return o.complete()});function xdr(o){return o?Sdr(o):d7.EMPTY}d7.empty=xdr;function Sdr(o){return new $ft.Observable(function(a){return o.schedule(function(){return a.complete()})})}});var g9=Ve(vle=>{"use strict";Object.defineProperty(vle,"__esModule",{value:!0});vle.take=void 0;var Tdr=Yw(),wdr=go(),kdr=Zo();function Cdr(o){return o<=0?function(){return Tdr.EMPTY}:wdr.operate(function(a,u){var f=0;a.subscribe(kdr.createOperatorSubscriber(u,function(d){++f<=o&&(u.next(d),o<=f&&u.complete())}))})}vle.take=Cdr});var xle=Ve(ble=>{"use strict";Object.defineProperty(ble,"__esModule",{value:!0});ble.ignoreElements=void 0;var Pdr=go(),Edr=Zo(),Ddr=ov();function Odr(){return Pdr.operate(function(o,a){o.subscribe(Edr.createOperatorSubscriber(a,Ddr.noop))})}ble.ignoreElements=Odr});var Tle=Ve(Sle=>{"use strict";Object.defineProperty(Sle,"__esModule",{value:!0});Sle.mapTo=void 0;var Ndr=fO();function Adr(o){return Ndr.map(function(){return o})}Sle.mapTo=Adr});var kle=Ve(wle=>{"use strict";Object.defineProperty(wle,"__esModule",{value:!0});wle.delayWhen=void 0;var Idr=YH(),Vft=g9(),Fdr=xle(),Mdr=Tle(),Rdr=aP(),jdr=zl();function Hft(o,a){return a?function(u){return Idr.concat(a.pipe(Vft.take(1),Fdr.ignoreElements()),u.pipe(Hft(o)))}:Rdr.mergeMap(function(u,f){return jdr.innerFrom(o(u,f)).pipe(Vft.take(1),Mdr.mapTo(u))})}wle.delayWhen=Hft});var eAe=Ve(Cle=>{"use strict";Object.defineProperty(Cle,"__esModule",{value:!0});Cle.delay=void 0;var Ldr=Rb(),Bdr=kle(),qdr=D6();function Jdr(o,a){a===void 0&&(a=Ldr.asyncScheduler);var u=qdr.timer(o,a);return Bdr.delayWhen(function(){return u})}Cle.delay=Jdr});var Ele=Ve(Ple=>{"use strict";Object.defineProperty(Ple,"__esModule",{value:!0});Ple.of=void 0;var zdr=jb(),Wdr=pO();function Udr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=zdr.popScheduler(o);return Wdr.from(o,u)}Ple.of=Udr});var tAe=Ve(Dle=>{"use strict";Object.defineProperty(Dle,"__esModule",{value:!0});Dle.throwError=void 0;var $dr=Vf(),Vdr=Pf();function Hdr(o,a){var u=Vdr.isFunction(o)?o:function(){return o},f=function(d){return d.error(u())};return new $dr.Observable(a?function(d){return a.schedule(f,0,d)}:f)}Dle.throwError=Hdr});var Ole=Ve(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0});_O.observeNotification=_O.Notification=_O.NotificationKind=void 0;var Gdr=Yw(),Kdr=Ele(),Qdr=tAe(),Xdr=Pf(),Ydr;(function(o){o.NEXT="N",o.ERROR="E",o.COMPLETE="C"})(Ydr=_O.NotificationKind||(_O.NotificationKind={}));var Zdr=function(){function o(a,u,f){this.kind=a,this.value=u,this.error=f,this.hasValue=a==="N"}return o.prototype.observe=function(a){return Gft(this,a)},o.prototype.do=function(a,u,f){var d=this,w=d.kind,O=d.value,q=d.error;return w==="N"?a?.(O):w==="E"?u?.(q):f?.()},o.prototype.accept=function(a,u,f){var d;return Xdr.isFunction((d=a)===null||d===void 0?void 0:d.next)?this.observe(a):this.do(a,u,f)},o.prototype.toObservable=function(){var a=this,u=a.kind,f=a.value,d=a.error,w=u==="N"?Kdr.of(f):u==="E"?Qdr.throwError(function(){return d}):u==="C"?Gdr.EMPTY:0;if(!w)throw new TypeError("Unexpected notification kind "+u);return w},o.createNext=function(a){return new o("N",a)},o.createError=function(a){return new o("E",void 0,a)},o.createComplete=function(){return o.completeNotification},o.completeNotification=new o("C"),o}();_O.Notification=Zdr;function Gft(o,a){var u,f,d,w=o,O=w.kind,q=w.value,K=w.error;if(typeof O!="string")throw new TypeError('Invalid notification, missing "kind"');O==="N"?(u=a.next)===null||u===void 0||u.call(a,q):O==="E"?(f=a.error)===null||f===void 0||f.call(a,K):(d=a.complete)===null||d===void 0||d.call(a)}_O.observeNotification=Gft});var rAe=Ve(Nle=>{"use strict";Object.defineProperty(Nle,"__esModule",{value:!0});Nle.dematerialize=void 0;var emr=Ole(),tmr=go(),rmr=Zo();function nmr(){return tmr.operate(function(o,a){o.subscribe(rmr.createOperatorSubscriber(a,function(u){return emr.observeNotification(u,a)}))})}Nle.dematerialize=nmr});var nAe=Ve(Ale=>{"use strict";Object.defineProperty(Ale,"__esModule",{value:!0});Ale.distinct=void 0;var imr=go(),Kft=Zo(),amr=ov(),smr=zl();function omr(o,a){return imr.operate(function(u,f){var d=new Set;u.subscribe(Kft.createOperatorSubscriber(f,function(w){var O=o?o(w):w;d.has(O)||(d.add(O),f.next(w))})),a&&smr.innerFrom(a).subscribe(Kft.createOperatorSubscriber(f,function(){return d.clear()},amr.noop))})}Ale.distinct=omr});var Fle=Ve(Ile=>{"use strict";Object.defineProperty(Ile,"__esModule",{value:!0});Ile.distinctUntilChanged=void 0;var cmr=cv(),lmr=go(),umr=Zo();function pmr(o,a){return a===void 0&&(a=cmr.identity),o=o??fmr,lmr.operate(function(u,f){var d,w=!0;u.subscribe(umr.createOperatorSubscriber(f,function(O){var q=a(O);(w||!o(d,q))&&(w=!1,d=q,f.next(O))}))})}Ile.distinctUntilChanged=pmr;function fmr(o,a){return o===a}});var iAe=Ve(Mle=>{"use strict";Object.defineProperty(Mle,"__esModule",{value:!0});Mle.distinctUntilKeyChanged=void 0;var _mr=Fle();function dmr(o,a){return _mr.distinctUntilChanged(function(u,f){return a?a(u[o],f[o]):u[o]===f[o]})}Mle.distinctUntilKeyChanged=dmr});var aAe=Ve(Rle=>{"use strict";Object.defineProperty(Rle,"__esModule",{value:!0});Rle.ArgumentOutOfRangeError=void 0;var mmr=P6();Rle.ArgumentOutOfRangeError=mmr.createErrorClass(function(o){return function(){o(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var dO=Ve(jle=>{"use strict";Object.defineProperty(jle,"__esModule",{value:!0});jle.filter=void 0;var gmr=go(),hmr=Zo();function ymr(o,a){return gmr.operate(function(u,f){var d=0;u.subscribe(hmr.createOperatorSubscriber(f,function(w){return o.call(a,w,d++)&&f.next(w)}))})}jle.filter=ymr});var j6=Ve(Lle=>{"use strict";Object.defineProperty(Lle,"__esModule",{value:!0});Lle.EmptyError=void 0;var vmr=P6();Lle.EmptyError=vmr.createErrorClass(function(o){return function(){o(this),this.name="EmptyError",this.message="no elements in sequence"}})});var h9=Ve(Ble=>{"use strict";Object.defineProperty(Ble,"__esModule",{value:!0});Ble.throwIfEmpty=void 0;var bmr=j6(),xmr=go(),Smr=Zo();function Tmr(o){return o===void 0&&(o=wmr),xmr.operate(function(a,u){var f=!1;a.subscribe(Smr.createOperatorSubscriber(u,function(d){f=!0,u.next(d)},function(){return f?u.complete():u.error(o())}))})}Ble.throwIfEmpty=Tmr;function wmr(){return new bmr.EmptyError}});var sAe=Ve(qle=>{"use strict";Object.defineProperty(qle,"__esModule",{value:!0});qle.elementAt=void 0;var Qft=aAe(),kmr=dO(),Cmr=h9(),Pmr=m9(),Emr=g9();function Dmr(o,a){if(o<0)throw new Qft.ArgumentOutOfRangeError;var u=arguments.length>=2;return function(f){return f.pipe(kmr.filter(function(d,w){return w===o}),Emr.take(1),u?Pmr.defaultIfEmpty(a):Cmr.throwIfEmpty(function(){return new Qft.ArgumentOutOfRangeError}))}}qle.elementAt=Dmr});var oAe=Ve(L6=>{"use strict";var Omr=L6&&L6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Nmr=L6&&L6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(L6,"__esModule",{value:!0});L6.endWith=void 0;var Amr=YH(),Imr=Ele();function Fmr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return function(u){return Amr.concat(u,Imr.of.apply(void 0,Nmr([],Omr(o))))}}L6.endWith=Fmr});var cAe=Ve(Jle=>{"use strict";Object.defineProperty(Jle,"__esModule",{value:!0});Jle.every=void 0;var Mmr=go(),Rmr=Zo();function jmr(o,a){return Mmr.operate(function(u,f){var d=0;u.subscribe(Rmr.createOperatorSubscriber(f,function(w){o.call(a,w,d++,u)||(f.next(!1),f.complete())},function(){f.next(!0),f.complete()}))})}Jle.every=jmr});var Wle=Ve(zle=>{"use strict";Object.defineProperty(zle,"__esModule",{value:!0});zle.exhaustMap=void 0;var Lmr=fO(),Xft=zl(),Bmr=go(),Yft=Zo();function Zft(o,a){return a?function(u){return u.pipe(Zft(function(f,d){return Xft.innerFrom(o(f,d)).pipe(Lmr.map(function(w,O){return a(f,w,d,O)}))}))}:Bmr.operate(function(u,f){var d=0,w=null,O=!1;u.subscribe(Yft.createOperatorSubscriber(f,function(q){w||(w=Yft.createOperatorSubscriber(f,void 0,function(){w=null,O&&f.complete()}),Xft.innerFrom(o(q,d++)).subscribe(w))},function(){O=!0,!w&&f.complete()}))})}zle.exhaustMap=Zft});var $le=Ve(Ule=>{"use strict";Object.defineProperty(Ule,"__esModule",{value:!0});Ule.exhaustAll=void 0;var qmr=Wle(),Jmr=cv();function zmr(){return qmr.exhaustMap(Jmr.identity)}Ule.exhaustAll=zmr});var lAe=Ve(Vle=>{"use strict";Object.defineProperty(Vle,"__esModule",{value:!0});Vle.exhaust=void 0;var Wmr=$le();Vle.exhaust=Wmr.exhaustAll});var uAe=Ve(Hle=>{"use strict";Object.defineProperty(Hle,"__esModule",{value:!0});Hle.expand=void 0;var Umr=go(),$mr=Kce();function Vmr(o,a,u){return a===void 0&&(a=1/0),a=(a||0)<1?1/0:a,Umr.operate(function(f,d){return $mr.mergeInternals(f,d,o,a,void 0,!0,u)})}Hle.expand=Vmr});var pAe=Ve(Gle=>{"use strict";Object.defineProperty(Gle,"__esModule",{value:!0});Gle.finalize=void 0;var Hmr=go();function Gmr(o){return Hmr.operate(function(a,u){try{a.subscribe(u)}finally{u.add(o)}})}Gle.finalize=Gmr});var Kle=Ve(y9=>{"use strict";Object.defineProperty(y9,"__esModule",{value:!0});y9.createFind=y9.find=void 0;var Kmr=go(),Qmr=Zo();function Xmr(o,a){return Kmr.operate(e_t(o,a,"value"))}y9.find=Xmr;function e_t(o,a,u){var f=u==="index";return function(d,w){var O=0;d.subscribe(Qmr.createOperatorSubscriber(w,function(q){var K=O++;o.call(a,q,K,d)&&(w.next(f?K:q),w.complete())},function(){w.next(f?-1:void 0),w.complete()}))}}y9.createFind=e_t});var fAe=Ve(Qle=>{"use strict";Object.defineProperty(Qle,"__esModule",{value:!0});Qle.findIndex=void 0;var Ymr=go(),Zmr=Kle();function egr(o,a){return Ymr.operate(Zmr.createFind(o,a,"index"))}Qle.findIndex=egr});var _Ae=Ve(Xle=>{"use strict";Object.defineProperty(Xle,"__esModule",{value:!0});Xle.first=void 0;var tgr=j6(),rgr=dO(),ngr=g9(),igr=m9(),agr=h9(),sgr=cv();function ogr(o,a){var u=arguments.length>=2;return function(f){return f.pipe(o?rgr.filter(function(d,w){return o(d,w,f)}):sgr.identity,ngr.take(1),u?igr.defaultIfEmpty(a):agr.throwIfEmpty(function(){return new tgr.EmptyError}))}}Xle.first=ogr});var dAe=Ve(Yle=>{"use strict";Object.defineProperty(Yle,"__esModule",{value:!0});Yle.groupBy=void 0;var cgr=Vf(),lgr=zl(),ugr=lv(),pgr=go(),t_t=Zo();function fgr(o,a,u,f){return pgr.operate(function(d,w){var O;!a||typeof a=="function"?O=a:(u=a.duration,O=a.element,f=a.connector);var q=new Map,K=function(Re){q.forEach(Re),Re(w)},le=function(Re){return K(function(Ge){return Ge.error(Re)})},ye=0,Be=!1,ce=new t_t.OperatorSubscriber(w,function(Re){try{var Ge=o(Re),_r=q.get(Ge);if(!_r){q.set(Ge,_r=f?f():new ugr.Subject);var jr=mt(Ge,_r);if(w.next(jr),u){var si=t_t.createOperatorSubscriber(_r,function(){_r.complete(),si?.unsubscribe()},void 0,void 0,function(){return q.delete(Ge)});ce.add(lgr.innerFrom(u(jr)).subscribe(si))}}_r.next(O?O(Re):Re)}catch(Oi){le(Oi)}},function(){return K(function(Re){return Re.complete()})},le,function(){return q.clear()},function(){return Be=!0,ye===0});d.subscribe(ce);function mt(Re,Ge){var _r=new cgr.Observable(function(jr){ye++;var si=Ge.subscribe(jr);return function(){si.unsubscribe(),--ye===0&&Be&&ce.unsubscribe()}});return _r.key=Re,_r}})}Yle.groupBy=fgr});var mAe=Ve(Zle=>{"use strict";Object.defineProperty(Zle,"__esModule",{value:!0});Zle.isEmpty=void 0;var _gr=go(),dgr=Zo();function mgr(){return _gr.operate(function(o,a){o.subscribe(dgr.createOperatorSubscriber(a,function(){a.next(!1),a.complete()},function(){a.next(!0),a.complete()}))})}Zle.isEmpty=mgr});var eue=Ve(v9=>{"use strict";var ggr=v9&&v9.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(v9,"__esModule",{value:!0});v9.takeLast=void 0;var hgr=Yw(),ygr=go(),vgr=Zo();function bgr(o){return o<=0?function(){return hgr.EMPTY}:ygr.operate(function(a,u){var f=[];a.subscribe(vgr.createOperatorSubscriber(u,function(d){f.push(d),o<f.length&&f.shift()},function(){var d,w;try{for(var O=ggr(f),q=O.next();!q.done;q=O.next()){var K=q.value;u.next(K)}}catch(le){d={error:le}}finally{try{q&&!q.done&&(w=O.return)&&w.call(O)}finally{if(d)throw d.error}}u.complete()},void 0,function(){f=null}))})}v9.takeLast=bgr});var gAe=Ve(tue=>{"use strict";Object.defineProperty(tue,"__esModule",{value:!0});tue.last=void 0;var xgr=j6(),Sgr=dO(),Tgr=eue(),wgr=h9(),kgr=m9(),Cgr=cv();function Pgr(o,a){var u=arguments.length>=2;return function(f){return f.pipe(o?Sgr.filter(function(d,w){return o(d,w,f)}):Cgr.identity,Tgr.takeLast(1),u?kgr.defaultIfEmpty(a):wgr.throwIfEmpty(function(){return new xgr.EmptyError}))}}tue.last=Pgr});var yAe=Ve(rue=>{"use strict";Object.defineProperty(rue,"__esModule",{value:!0});rue.materialize=void 0;var hAe=Ole(),Egr=go(),Dgr=Zo();function Ogr(){return Egr.operate(function(o,a){o.subscribe(Dgr.createOperatorSubscriber(a,function(u){a.next(hAe.Notification.createNext(u))},function(){a.next(hAe.Notification.createComplete()),a.complete()},function(u){a.next(hAe.Notification.createError(u)),a.complete()}))})}rue.materialize=Ogr});var vAe=Ve(nue=>{"use strict";Object.defineProperty(nue,"__esModule",{value:!0});nue.max=void 0;var Ngr=f7(),Agr=Pf();function Igr(o){return Ngr.reduce(Agr.isFunction(o)?function(a,u){return o(a,u)>0?a:u}:function(a,u){return a>u?a:u})}nue.max=Igr});var bAe=Ve(B6=>{"use strict";var Fgr=B6&&B6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Mgr=B6&&B6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(B6,"__esModule",{value:!0});B6.merge=void 0;var Rgr=go(),jgr=d9(),r_t=jb(),Lgr=pO();function Bgr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=r_t.popScheduler(o),f=r_t.popNumber(o,1/0);return Rgr.operate(function(d,w){jgr.mergeAll(f)(Lgr.from(Mgr([d],Fgr(o)),u)).subscribe(w)})}B6.merge=Bgr});var xAe=Ve(iue=>{"use strict";Object.defineProperty(iue,"__esModule",{value:!0});iue.flatMap=void 0;var qgr=aP();iue.flatMap=qgr.mergeMap});var SAe=Ve(aue=>{"use strict";Object.defineProperty(aue,"__esModule",{value:!0});aue.mergeMapTo=void 0;var n_t=aP(),Jgr=Pf();function zgr(o,a,u){return u===void 0&&(u=1/0),Jgr.isFunction(a)?n_t.mergeMap(function(){return o},a,u):(typeof a=="number"&&(u=a),n_t.mergeMap(function(){return o},u))}aue.mergeMapTo=zgr});var TAe=Ve(sue=>{"use strict";Object.defineProperty(sue,"__esModule",{value:!0});sue.mergeScan=void 0;var Wgr=go(),Ugr=Kce();function $gr(o,a,u){return u===void 0&&(u=1/0),Wgr.operate(function(f,d){var w=a;return Ugr.mergeInternals(f,d,function(O,q){return o(w,O,q)},u,function(O){w=O},!1,void 0,function(){return w=null})})}sue.mergeScan=$gr});var wAe=Ve(q6=>{"use strict";var Vgr=q6&&q6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Hgr=q6&&q6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(q6,"__esModule",{value:!0});q6.mergeWith=void 0;var Ggr=bAe();function Kgr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return Ggr.merge.apply(void 0,Hgr([],Vgr(o)))}q6.mergeWith=Kgr});var kAe=Ve(oue=>{"use strict";Object.defineProperty(oue,"__esModule",{value:!0});oue.min=void 0;var Qgr=f7(),Xgr=Pf();function Ygr(o){return Qgr.reduce(Xgr.isFunction(o)?function(a,u){return o(a,u)<0?a:u}:function(a,u){return a<u?a:u})}oue.min=Ygr});var lue=Ve(cue=>{"use strict";Object.defineProperty(cue,"__esModule",{value:!0});cue.refCount=void 0;var Zgr=go(),ehr=Zo();function thr(){return Zgr.operate(function(o,a){var u=null;o._refCount++;var f=ehr.createOperatorSubscriber(a,void 0,void 0,void 0,function(){if(!o||o._refCount<=0||0<--o._refCount){u=null;return}var d=o._connection,w=u;u=null,d&&(!w||d===w)&&d.unsubscribe(),a.unsubscribe()});o.subscribe(f),f.closed||(u=o.connect())})}cue.refCount=thr});var ZH=Ve(b9=>{"use strict";var rhr=b9&&b9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(b9,"__esModule",{value:!0});b9.ConnectableObservable=void 0;var nhr=Vf(),i_t=lS(),ihr=lue(),ahr=Zo(),shr=go(),ohr=function(o){rhr(a,o);function a(u,f){var d=o.call(this)||this;return d.source=u,d.subjectFactory=f,d._subject=null,d._refCount=0,d._connection=null,shr.hasLift(u)&&(d.lift=u.lift),d}return a.prototype._subscribe=function(u){return this.getSubject().subscribe(u)},a.prototype.getSubject=function(){var u=this._subject;return(!u||u.isStopped)&&(this._subject=this.subjectFactory()),this._subject},a.prototype._teardown=function(){this._refCount=0;var u=this._connection;this._subject=this._connection=null,u?.unsubscribe()},a.prototype.connect=function(){var u=this,f=this._connection;if(!f){f=this._connection=new i_t.Subscription;var d=this.getSubject();f.add(this.source.subscribe(ahr.createOperatorSubscriber(d,void 0,function(){u._teardown(),d.complete()},function(w){u._teardown(),d.error(w)},function(){return u._teardown()}))),f.closed&&(this._connection=null,f=i_t.Subscription.EMPTY)}return f},a.prototype.refCount=function(){return ihr.refCount()(this)},a}(nhr.Observable);b9.ConnectableObservable=ohr});var eG=Ve(uue=>{"use strict";Object.defineProperty(uue,"__esModule",{value:!0});uue.multicast=void 0;var chr=ZH(),a_t=Pf(),lhr=XH();function uhr(o,a){var u=a_t.isFunction(o)?o:function(){return o};return a_t.isFunction(a)?lhr.connect(a,{connector:u}):function(f){return new chr.ConnectableObservable(f,u)}}uue.multicast=uhr});var CAe=Ve(pue=>{"use strict";Object.defineProperty(pue,"__esModule",{value:!0});pue.onErrorResumeNext=void 0;var phr=Vf(),fhr=_7(),_hr=Zo(),s_t=ov(),dhr=zl();function mhr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=fhr.argsOrArgArray(o);return new phr.Observable(function(f){var d=0,w=function(){if(d<u.length){var O=void 0;try{O=dhr.innerFrom(u[d++])}catch{w();return}var q=new _hr.OperatorSubscriber(f,void 0,s_t.noop,s_t.noop);O.subscribe(q),q.add(w)}else f.complete()};w()})}pue.onErrorResumeNext=mhr});var PAe=Ve(oP=>{"use strict";var ghr=oP&&oP.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},hhr=oP&&oP.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(oP,"__esModule",{value:!0});oP.onErrorResumeNext=oP.onErrorResumeNextWith=void 0;var yhr=_7(),vhr=CAe();function o_t(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=yhr.argsOrArgArray(o);return function(f){return vhr.onErrorResumeNext.apply(void 0,hhr([f],ghr(u)))}}oP.onErrorResumeNextWith=o_t;oP.onErrorResumeNext=o_t});var EAe=Ve(fue=>{"use strict";Object.defineProperty(fue,"__esModule",{value:!0});fue.pairwise=void 0;var bhr=go(),xhr=Zo();function Shr(){return bhr.operate(function(o,a){var u,f=!1;o.subscribe(xhr.createOperatorSubscriber(a,function(d){var w=u;u=d,f&&a.next([w,d]),f=!0}))})}fue.pairwise=Shr});var DAe=Ve(_ue=>{"use strict";Object.defineProperty(_ue,"__esModule",{value:!0});_ue.not=void 0;function Thr(o,a){return function(u,f){return!o.call(a,u,f)}}_ue.not=Thr});var l_t=Ve(due=>{"use strict";Object.defineProperty(due,"__esModule",{value:!0});due.partition=void 0;var whr=DAe(),c_t=dO();function khr(o,a){return function(u){return[c_t.filter(o,a)(u),c_t.filter(whr.not(o,a))(u)]}}due.partition=khr});var OAe=Ve(mue=>{"use strict";Object.defineProperty(mue,"__esModule",{value:!0});mue.pluck=void 0;var Chr=fO();function Phr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=o.length;if(u===0)throw new Error("list of properties cannot be empty.");return Chr.map(function(f){for(var d=f,w=0;w<u;w++){var O=d?.[o[w]];if(typeof O<"u")d=O;else return}return d})}mue.pluck=Phr});var NAe=Ve(gue=>{"use strict";Object.defineProperty(gue,"__esModule",{value:!0});gue.publish=void 0;var Ehr=lv(),Dhr=eG(),Ohr=XH();function Nhr(o){return o?function(a){return Ohr.connect(o)(a)}:function(a){return Dhr.multicast(new Ehr.Subject)(a)}}gue.publish=Nhr});var AAe=Ve(x9=>{"use strict";var Ahr=x9&&x9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(x9,"__esModule",{value:!0});x9.BehaviorSubject=void 0;var Ihr=lv(),Fhr=function(o){Ahr(a,o);function a(u){var f=o.call(this)||this;return f._value=u,f}return Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),a.prototype._subscribe=function(u){var f=o.prototype._subscribe.call(this,u);return!f.closed&&u.next(this._value),f},a.prototype.getValue=function(){var u=this,f=u.hasError,d=u.thrownError,w=u._value;if(f)throw d;return this._throwIfClosed(),w},a.prototype.next=function(u){o.prototype.next.call(this,this._value=u)},a}(Ihr.Subject);x9.BehaviorSubject=Fhr});var IAe=Ve(hue=>{"use strict";Object.defineProperty(hue,"__esModule",{value:!0});hue.publishBehavior=void 0;var Mhr=AAe(),Rhr=ZH();function jhr(o){return function(a){var u=new Mhr.BehaviorSubject(o);return new Rhr.ConnectableObservable(a,function(){return u})}}hue.publishBehavior=jhr});var yue=Ve(S9=>{"use strict";var Lhr=S9&&S9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(S9,"__esModule",{value:!0});S9.AsyncSubject=void 0;var Bhr=lv(),qhr=function(o){Lhr(a,o);function a(){var u=o!==null&&o.apply(this,arguments)||this;return u._value=null,u._hasValue=!1,u._isComplete=!1,u}return a.prototype._checkFinalizedStatuses=function(u){var f=this,d=f.hasError,w=f._hasValue,O=f._value,q=f.thrownError,K=f.isStopped,le=f._isComplete;d?u.error(q):(K||le)&&(w&&u.next(O),u.complete())},a.prototype.next=function(u){this.isStopped||(this._value=u,this._hasValue=!0)},a.prototype.complete=function(){var u=this,f=u._hasValue,d=u._value,w=u._isComplete;w||(this._isComplete=!0,f&&o.prototype.next.call(this,d),o.prototype.complete.call(this))},a}(Bhr.Subject);S9.AsyncSubject=qhr});var FAe=Ve(vue=>{"use strict";Object.defineProperty(vue,"__esModule",{value:!0});vue.publishLast=void 0;var Jhr=yue(),zhr=ZH();function Whr(){return function(o){var a=new Jhr.AsyncSubject;return new zhr.ConnectableObservable(o,function(){return a})}}vue.publishLast=Whr});var bue=Ve(T9=>{"use strict";var Uhr=T9&&T9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(T9,"__esModule",{value:!0});T9.ReplaySubject=void 0;var $hr=lv(),Vhr=Tce(),Hhr=function(o){Uhr(a,o);function a(u,f,d){u===void 0&&(u=1/0),f===void 0&&(f=1/0),d===void 0&&(d=Vhr.dateTimestampProvider);var w=o.call(this)||this;return w._bufferSize=u,w._windowTime=f,w._timestampProvider=d,w._buffer=[],w._infiniteTimeWindow=!0,w._infiniteTimeWindow=f===1/0,w._bufferSize=Math.max(1,u),w._windowTime=Math.max(1,f),w}return a.prototype.next=function(u){var f=this,d=f.isStopped,w=f._buffer,O=f._infiniteTimeWindow,q=f._timestampProvider,K=f._windowTime;d||(w.push(u),!O&&w.push(q.now()+K)),this._trimBuffer(),o.prototype.next.call(this,u)},a.prototype._subscribe=function(u){this._throwIfClosed(),this._trimBuffer();for(var f=this._innerSubscribe(u),d=this,w=d._infiniteTimeWindow,O=d._buffer,q=O.slice(),K=0;K<q.length&&!u.closed;K+=w?1:2)u.next(q[K]);return this._checkFinalizedStatuses(u),f},a.prototype._trimBuffer=function(){var u=this,f=u._bufferSize,d=u._timestampProvider,w=u._buffer,O=u._infiniteTimeWindow,q=(O?1:2)*f;if(f<1/0&&q<w.length&&w.splice(0,w.length-q),!O){for(var K=d.now(),le=0,ye=1;ye<w.length&&w[ye]<=K;ye+=2)le=ye;le&&w.splice(0,le+1)}},a}($hr.Subject);T9.ReplaySubject=Hhr});var MAe=Ve(xue=>{"use strict";Object.defineProperty(xue,"__esModule",{value:!0});xue.publishReplay=void 0;var Ghr=bue(),Khr=eG(),u_t=Pf();function Qhr(o,a,u,f){u&&!u_t.isFunction(u)&&(f=u);var d=u_t.isFunction(u)?u:void 0;return function(w){return Khr.multicast(new Ghr.ReplaySubject(o,a,f),d)(w)}}xue.publishReplay=Qhr});var RAe=Ve(w9=>{"use strict";Object.defineProperty(w9,"__esModule",{value:!0});w9.raceInit=w9.race=void 0;var Xhr=Vf(),p_t=zl(),Yhr=_7(),Zhr=Zo();function eyr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return o=Yhr.argsOrArgArray(o),o.length===1?p_t.innerFrom(o[0]):new Xhr.Observable(f_t(o))}w9.race=eyr;function f_t(o){return function(a){for(var u=[],f=function(w){u.push(p_t.innerFrom(o[w]).subscribe(Zhr.createOperatorSubscriber(a,function(O){if(u){for(var q=0;q<u.length;q++)q!==w&&u[q].unsubscribe();u=null}a.next(O)})))},d=0;u&&!a.closed&&d<o.length;d++)f(d)}}w9.raceInit=f_t});var Sue=Ve(J6=>{"use strict";var tyr=J6&&J6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},ryr=J6&&J6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(J6,"__esModule",{value:!0});J6.raceWith=void 0;var nyr=RAe(),iyr=go(),ayr=cv();function syr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return o.length?iyr.operate(function(u,f){nyr.raceInit(ryr([u],tyr(o)))(f)}):ayr.identity}J6.raceWith=syr});var __t=Ve(z6=>{"use strict";var oyr=z6&&z6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},cyr=z6&&z6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(z6,"__esModule",{value:!0});z6.race=void 0;var lyr=_7(),uyr=Sue();function pyr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return uyr.raceWith.apply(void 0,cyr([],oyr(lyr.argsOrArgArray(o))))}z6.race=pyr});var jAe=Ve(Tue=>{"use strict";Object.defineProperty(Tue,"__esModule",{value:!0});Tue.repeat=void 0;var fyr=Yw(),_yr=go(),d_t=Zo(),dyr=zl(),myr=D6();function gyr(o){var a,u=1/0,f;return o!=null&&(typeof o=="object"?(a=o.count,u=a===void 0?1/0:a,f=o.delay):u=o),u<=0?function(){return fyr.EMPTY}:_yr.operate(function(d,w){var O=0,q,K=function(){if(q?.unsubscribe(),q=null,f!=null){var ye=typeof f=="number"?myr.timer(f):dyr.innerFrom(f(O)),Be=d_t.createOperatorSubscriber(w,function(){Be.unsubscribe(),le()});ye.subscribe(Be)}else le()},le=function(){var ye=!1;q=d.subscribe(d_t.createOperatorSubscriber(w,void 0,function(){++O<u?q?K():ye=!0:w.complete()})),ye&&K()};le()})}Tue.repeat=gyr});var LAe=Ve(wue=>{"use strict";Object.defineProperty(wue,"__esModule",{value:!0});wue.repeatWhen=void 0;var hyr=zl(),yyr=lv(),vyr=go(),m_t=Zo();function byr(o){return vyr.operate(function(a,u){var f,d=!1,w,O=!1,q=!1,K=function(){return q&&O&&(u.complete(),!0)},le=function(){return w||(w=new yyr.Subject,hyr.innerFrom(o(w)).subscribe(m_t.createOperatorSubscriber(u,function(){f?ye():d=!0},function(){O=!0,K()}))),w},ye=function(){q=!1,f=a.subscribe(m_t.createOperatorSubscriber(u,void 0,function(){q=!0,!K()&&le().next()})),d&&(f.unsubscribe(),f=null,d=!1,ye())};ye()})}wue.repeatWhen=byr});var BAe=Ve(kue=>{"use strict";Object.defineProperty(kue,"__esModule",{value:!0});kue.retry=void 0;var xyr=go(),g_t=Zo(),Syr=cv(),Tyr=D6(),wyr=zl();function kyr(o){o===void 0&&(o=1/0);var a;o&&typeof o=="object"?a=o:a={count:o};var u=a.count,f=u===void 0?1/0:u,d=a.delay,w=a.resetOnSuccess,O=w===void 0?!1:w;return f<=0?Syr.identity:xyr.operate(function(q,K){var le=0,ye,Be=function(){var ce=!1;ye=q.subscribe(g_t.createOperatorSubscriber(K,function(mt){O&&(le=0),K.next(mt)},void 0,function(mt){if(le++<f){var Re=function(){ye?(ye.unsubscribe(),ye=null,Be()):ce=!0};if(d!=null){var Ge=typeof d=="number"?Tyr.timer(d):wyr.innerFrom(d(mt,le)),_r=g_t.createOperatorSubscriber(K,function(){_r.unsubscribe(),Re()},function(){K.complete()});Ge.subscribe(_r)}else Re()}else K.error(mt)})),ce&&(ye.unsubscribe(),ye=null,Be())};Be()})}kue.retry=kyr});var qAe=Ve(Cue=>{"use strict";Object.defineProperty(Cue,"__esModule",{value:!0});Cue.retryWhen=void 0;var Cyr=zl(),Pyr=lv(),Eyr=go(),h_t=Zo();function Dyr(o){return Eyr.operate(function(a,u){var f,d=!1,w,O=function(){f=a.subscribe(h_t.createOperatorSubscriber(u,void 0,void 0,function(q){w||(w=new Pyr.Subject,Cyr.innerFrom(o(w)).subscribe(h_t.createOperatorSubscriber(u,function(){return f?O():d=!0}))),w&&w.next(q)})),d&&(f.unsubscribe(),f=null,d=!1,O())};O()})}Cue.retryWhen=Dyr});var Eue=Ve(Pue=>{"use strict";Object.defineProperty(Pue,"__esModule",{value:!0});Pue.sample=void 0;var Oyr=zl(),Nyr=go(),Ayr=ov(),y_t=Zo();function Iyr(o){return Nyr.operate(function(a,u){var f=!1,d=null;a.subscribe(y_t.createOperatorSubscriber(u,function(w){f=!0,d=w})),Oyr.innerFrom(o).subscribe(y_t.createOperatorSubscriber(u,function(){if(f){f=!1;var w=d;d=null,u.next(w)}},Ayr.noop))})}Pue.sample=Iyr});var JAe=Ve(Due=>{"use strict";Object.defineProperty(Due,"__esModule",{value:!0});Due.interval=void 0;var Fyr=Rb(),Myr=D6();function Ryr(o,a){return o===void 0&&(o=0),a===void 0&&(a=Fyr.asyncScheduler),o<0&&(o=0),Myr.timer(o,o,a)}Due.interval=Ryr});var zAe=Ve(Oue=>{"use strict";Object.defineProperty(Oue,"__esModule",{value:!0});Oue.sampleTime=void 0;var jyr=Rb(),Lyr=Eue(),Byr=JAe();function qyr(o,a){return a===void 0&&(a=jyr.asyncScheduler),Lyr.sample(Byr.interval(o,a))}Oue.sampleTime=qyr});var WAe=Ve(Nue=>{"use strict";Object.defineProperty(Nue,"__esModule",{value:!0});Nue.scan=void 0;var Jyr=go(),zyr=BNe();function Wyr(o,a){return Jyr.operate(zyr.scanInternals(o,a,arguments.length>=2,!0))}Nue.scan=Wyr});var UAe=Ve(Aue=>{"use strict";Object.defineProperty(Aue,"__esModule",{value:!0});Aue.sequenceEqual=void 0;var Uyr=go(),$yr=Zo(),Vyr=zl();function Hyr(o,a){return a===void 0&&(a=function(u,f){return u===f}),Uyr.operate(function(u,f){var d=v_t(),w=v_t(),O=function(K){f.next(K),f.complete()},q=function(K,le){var ye=$yr.createOperatorSubscriber(f,function(Be){var ce=le.buffer,mt=le.complete;ce.length===0?mt?O(!1):K.buffer.push(Be):!a(Be,ce.shift())&&O(!1)},function(){K.complete=!0;var Be=le.complete,ce=le.buffer;Be&&O(ce.length===0),ye?.unsubscribe()});return ye};u.subscribe(q(d,w)),Vyr.innerFrom(o).subscribe(q(w,d))})}Aue.sequenceEqual=Hyr;function v_t(){return{buffer:[],complete:!1}}});var Iue=Ve(W6=>{"use strict";var Gyr=W6&&W6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Kyr=W6&&W6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(W6,"__esModule",{value:!0});W6.share=void 0;var b_t=zl(),Qyr=lv(),x_t=YL(),Xyr=go();function Yyr(o){o===void 0&&(o={});var a=o.connector,u=a===void 0?function(){return new Qyr.Subject}:a,f=o.resetOnError,d=f===void 0?!0:f,w=o.resetOnComplete,O=w===void 0?!0:w,q=o.resetOnRefCountZero,K=q===void 0?!0:q;return function(le){var ye,Be,ce,mt=0,Re=!1,Ge=!1,_r=function(){Be?.unsubscribe(),Be=void 0},jr=function(){_r(),ye=ce=void 0,Re=Ge=!1},si=function(){var Oi=ye;jr(),Oi?.unsubscribe()};return Xyr.operate(function(Oi,ys){mt++,!Ge&&!Re&&_r();var ns=ce=ce??u();ys.add(function(){mt--,mt===0&&!Ge&&!Re&&(Be=$Ae(si,K))}),ns.subscribe(ys),!ye&&mt>0&&(ye=new x_t.SafeSubscriber({next:function(sn){return ns.next(sn)},error:function(sn){Ge=!0,_r(),Be=$Ae(jr,d,sn),ns.error(sn)},complete:function(){Re=!0,_r(),Be=$Ae(jr,O),ns.complete()}}),b_t.innerFrom(Oi).subscribe(ye))})(le)}}W6.share=Yyr;function $Ae(o,a){for(var u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];if(a===!0){o();return}if(a!==!1){var d=new x_t.SafeSubscriber({next:function(){d.unsubscribe(),o()}});return b_t.innerFrom(a.apply(void 0,Kyr([],Gyr(u)))).subscribe(d)}}});var VAe=Ve(Fue=>{"use strict";Object.defineProperty(Fue,"__esModule",{value:!0});Fue.shareReplay=void 0;var Zyr=bue(),evr=Iue();function tvr(o,a,u){var f,d,w,O,q=!1;return o&&typeof o=="object"?(f=o.bufferSize,O=f===void 0?1/0:f,d=o.windowTime,a=d===void 0?1/0:d,w=o.refCount,q=w===void 0?!1:w,u=o.scheduler):O=o??1/0,evr.share({connector:function(){return new Zyr.ReplaySubject(O,a,u)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:q})}Fue.shareReplay=tvr});var HAe=Ve(Mue=>{"use strict";Object.defineProperty(Mue,"__esModule",{value:!0});Mue.SequenceError=void 0;var rvr=P6();Mue.SequenceError=rvr.createErrorClass(function(o){return function(u){o(this),this.name="SequenceError",this.message=u}})});var GAe=Ve(Rue=>{"use strict";Object.defineProperty(Rue,"__esModule",{value:!0});Rue.NotFoundError=void 0;var nvr=P6();Rue.NotFoundError=nvr.createErrorClass(function(o){return function(u){o(this),this.name="NotFoundError",this.message=u}})});var KAe=Ve(jue=>{"use strict";Object.defineProperty(jue,"__esModule",{value:!0});jue.single=void 0;var ivr=j6(),avr=HAe(),svr=GAe(),ovr=go(),cvr=Zo();function lvr(o){return ovr.operate(function(a,u){var f=!1,d,w=!1,O=0;a.subscribe(cvr.createOperatorSubscriber(u,function(q){w=!0,(!o||o(q,O++,a))&&(f&&u.error(new avr.SequenceError("Too many matching values")),f=!0,d=q)},function(){f?(u.next(d),u.complete()):u.error(w?new svr.NotFoundError("No matching values"):new ivr.EmptyError)}))})}jue.single=lvr});var QAe=Ve(Lue=>{"use strict";Object.defineProperty(Lue,"__esModule",{value:!0});Lue.skip=void 0;var uvr=dO();function pvr(o){return uvr.filter(function(a,u){return o<=u})}Lue.skip=pvr});var XAe=Ve(Bue=>{"use strict";Object.defineProperty(Bue,"__esModule",{value:!0});Bue.skipLast=void 0;var fvr=cv(),_vr=go(),dvr=Zo();function mvr(o){return o<=0?fvr.identity:_vr.operate(function(a,u){var f=new Array(o),d=0;return a.subscribe(dvr.createOperatorSubscriber(u,function(w){var O=d++;if(O<o)f[O]=w;else{var q=O%o,K=f[q];f[q]=w,u.next(K)}})),function(){f=null}})}Bue.skipLast=mvr});var YAe=Ve(que=>{"use strict";Object.defineProperty(que,"__esModule",{value:!0});que.skipUntil=void 0;var gvr=go(),S_t=Zo(),hvr=zl(),yvr=ov();function vvr(o){return gvr.operate(function(a,u){var f=!1,d=S_t.createOperatorSubscriber(u,function(){d?.unsubscribe(),f=!0},yvr.noop);hvr.innerFrom(o).subscribe(d),a.subscribe(S_t.createOperatorSubscriber(u,function(w){return f&&u.next(w)}))})}que.skipUntil=vvr});var ZAe=Ve(Jue=>{"use strict";Object.defineProperty(Jue,"__esModule",{value:!0});Jue.skipWhile=void 0;var bvr=go(),xvr=Zo();function Svr(o){return bvr.operate(function(a,u){var f=!1,d=0;a.subscribe(xvr.createOperatorSubscriber(u,function(w){return(f||(f=!o(w,d++)))&&u.next(w)}))})}Jue.skipWhile=Svr});var e6e=Ve(zue=>{"use strict";Object.defineProperty(zue,"__esModule",{value:!0});zue.startWith=void 0;var T_t=YH(),Tvr=jb(),wvr=go();function kvr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=Tvr.popScheduler(o);return wvr.operate(function(f,d){(u?T_t.concat(o,f,u):T_t.concat(o,f)).subscribe(d)})}zue.startWith=kvr});var k9=Ve(Wue=>{"use strict";Object.defineProperty(Wue,"__esModule",{value:!0});Wue.switchMap=void 0;var Cvr=zl(),Pvr=go(),w_t=Zo();function Evr(o,a){return Pvr.operate(function(u,f){var d=null,w=0,O=!1,q=function(){return O&&!d&&f.complete()};u.subscribe(w_t.createOperatorSubscriber(f,function(K){d?.unsubscribe();var le=0,ye=w++;Cvr.innerFrom(o(K,ye)).subscribe(d=w_t.createOperatorSubscriber(f,function(Be){return f.next(a?a(K,Be,ye,le++):Be)},function(){d=null,q()}))},function(){O=!0,q()}))})}Wue.switchMap=Evr});var t6e=Ve(Uue=>{"use strict";Object.defineProperty(Uue,"__esModule",{value:!0});Uue.switchAll=void 0;var Dvr=k9(),Ovr=cv();function Nvr(){return Dvr.switchMap(Ovr.identity)}Uue.switchAll=Nvr});var r6e=Ve($ue=>{"use strict";Object.defineProperty($ue,"__esModule",{value:!0});$ue.switchMapTo=void 0;var k_t=k9(),Avr=Pf();function Ivr(o,a){return Avr.isFunction(a)?k_t.switchMap(function(){return o},a):k_t.switchMap(function(){return o})}$ue.switchMapTo=Ivr});var n6e=Ve(Vue=>{"use strict";Object.defineProperty(Vue,"__esModule",{value:!0});Vue.switchScan=void 0;var Fvr=k9(),Mvr=go();function Rvr(o,a){return Mvr.operate(function(u,f){var d=a;return Fvr.switchMap(function(w,O){return o(d,w,O)},function(w,O){return d=O,O})(u).subscribe(f),function(){d=null}})}Vue.switchScan=Rvr});var i6e=Ve(Hue=>{"use strict";Object.defineProperty(Hue,"__esModule",{value:!0});Hue.takeUntil=void 0;var jvr=go(),Lvr=Zo(),Bvr=zl(),qvr=ov();function Jvr(o){return jvr.operate(function(a,u){Bvr.innerFrom(o).subscribe(Lvr.createOperatorSubscriber(u,function(){return u.complete()},qvr.noop)),!u.closed&&a.subscribe(u)})}Hue.takeUntil=Jvr});var a6e=Ve(Gue=>{"use strict";Object.defineProperty(Gue,"__esModule",{value:!0});Gue.takeWhile=void 0;var zvr=go(),Wvr=Zo();function Uvr(o,a){return a===void 0&&(a=!1),zvr.operate(function(u,f){var d=0;u.subscribe(Wvr.createOperatorSubscriber(f,function(w){var O=o(w,d++);(O||a)&&f.next(w),!O&&f.complete()}))})}Gue.takeWhile=Uvr});var s6e=Ve(Kue=>{"use strict";Object.defineProperty(Kue,"__esModule",{value:!0});Kue.tap=void 0;var $vr=Pf(),Vvr=go(),Hvr=Zo(),Gvr=cv();function Kvr(o,a,u){var f=$vr.isFunction(o)||a||u?{next:o,error:a,complete:u}:o;return f?Vvr.operate(function(d,w){var O;(O=f.subscribe)===null||O===void 0||O.call(f);var q=!0;d.subscribe(Hvr.createOperatorSubscriber(w,function(K){var le;(le=f.next)===null||le===void 0||le.call(f,K),w.next(K)},function(){var K;q=!1,(K=f.complete)===null||K===void 0||K.call(f),w.complete()},function(K){var le;q=!1,(le=f.error)===null||le===void 0||le.call(f,K),w.error(K)},function(){var K,le;q&&((K=f.unsubscribe)===null||K===void 0||K.call(f)),(le=f.finalize)===null||le===void 0||le.call(f)}))}):Gvr.identity}Kue.tap=Kvr});var Xue=Ve(Que=>{"use strict";Object.defineProperty(Que,"__esModule",{value:!0});Que.throttle=void 0;var Qvr=go(),C_t=Zo(),Xvr=zl();function Yvr(o,a){return Qvr.operate(function(u,f){var d=a??{},w=d.leading,O=w===void 0?!0:w,q=d.trailing,K=q===void 0?!1:q,le=!1,ye=null,Be=null,ce=!1,mt=function(){Be?.unsubscribe(),Be=null,K&&(_r(),ce&&f.complete())},Re=function(){Be=null,ce&&f.complete()},Ge=function(jr){return Be=Xvr.innerFrom(o(jr)).subscribe(C_t.createOperatorSubscriber(f,mt,Re))},_r=function(){if(le){le=!1;var jr=ye;ye=null,f.next(jr),!ce&&Ge(jr)}};u.subscribe(C_t.createOperatorSubscriber(f,function(jr){le=!0,ye=jr,!(Be&&!Be.closed)&&(O?_r():Ge(jr))},function(){ce=!0,!(K&&le&&Be&&!Be.closed)&&f.complete()}))})}Que.throttle=Yvr});var o6e=Ve(Yue=>{"use strict";Object.defineProperty(Yue,"__esModule",{value:!0});Yue.throttleTime=void 0;var Zvr=Rb(),e0r=Xue(),t0r=D6();function r0r(o,a,u){a===void 0&&(a=Zvr.asyncScheduler);var f=t0r.timer(o,a);return e0r.throttle(function(){return f},u)}Yue.throttleTime=r0r});var c6e=Ve(C9=>{"use strict";Object.defineProperty(C9,"__esModule",{value:!0});C9.TimeInterval=C9.timeInterval=void 0;var n0r=Rb(),i0r=go(),a0r=Zo();function s0r(o){return o===void 0&&(o=n0r.asyncScheduler),i0r.operate(function(a,u){var f=o.now();a.subscribe(a0r.createOperatorSubscriber(u,function(d){var w=o.now(),O=w-f;f=w,u.next(new P_t(d,O))}))})}C9.timeInterval=s0r;var P_t=function(){function o(a,u){this.value=a,this.interval=u}return o}();C9.TimeInterval=P_t});var tG=Ve(m7=>{"use strict";Object.defineProperty(m7,"__esModule",{value:!0});m7.timeout=m7.TimeoutError=void 0;var o0r=Rb(),c0r=Pce(),l0r=go(),u0r=zl(),p0r=P6(),f0r=Zo(),_0r=uO();m7.TimeoutError=p0r.createErrorClass(function(o){return function(u){u===void 0&&(u=null),o(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=u}});function d0r(o,a){var u=c0r.isValidDate(o)?{first:o}:typeof o=="number"?{each:o}:o,f=u.first,d=u.each,w=u.with,O=w===void 0?m0r:w,q=u.scheduler,K=q===void 0?a??o0r.asyncScheduler:q,le=u.meta,ye=le===void 0?null:le;if(f==null&&d==null)throw new TypeError("No timeout provided.");return l0r.operate(function(Be,ce){var mt,Re,Ge=null,_r=0,jr=function(si){Re=_0r.executeSchedule(ce,K,function(){try{mt.unsubscribe(),u0r.innerFrom(O({meta:ye,lastValue:Ge,seen:_r})).subscribe(ce)}catch(Oi){ce.error(Oi)}},si)};mt=Be.subscribe(f0r.createOperatorSubscriber(ce,function(si){Re?.unsubscribe(),_r++,ce.next(Ge=si),d>0&&jr(d)},void 0,void 0,function(){Re?.closed||Re?.unsubscribe(),Ge=null})),!_r&&jr(f!=null?typeof f=="number"?f:+f-K.now():d)})}m7.timeout=d0r;function m0r(o){throw new m7.TimeoutError(o)}});var l6e=Ve(Zue=>{"use strict";Object.defineProperty(Zue,"__esModule",{value:!0});Zue.timeoutWith=void 0;var g0r=Rb(),h0r=Pce(),y0r=tG();function v0r(o,a,u){var f,d,w;if(u=u??g0r.async,h0r.isValidDate(o)?f=o:typeof o=="number"&&(d=o),a)w=function(){return a};else throw new TypeError("No observable provided to switch to");if(f==null&&d==null)throw new TypeError("No timeout provided.");return y0r.timeout({first:f,each:d,scheduler:u,with:w})}Zue.timeoutWith=v0r});var u6e=Ve(epe=>{"use strict";Object.defineProperty(epe,"__esModule",{value:!0});epe.timestamp=void 0;var b0r=Tce(),x0r=fO();function S0r(o){return o===void 0&&(o=b0r.dateTimestampProvider),x0r.map(function(a){return{value:a,timestamp:o.now()}})}epe.timestamp=S0r});var p6e=Ve(tpe=>{"use strict";Object.defineProperty(tpe,"__esModule",{value:!0});tpe.window=void 0;var E_t=lv(),T0r=go(),D_t=Zo(),w0r=ov(),k0r=zl();function C0r(o){return T0r.operate(function(a,u){var f=new E_t.Subject;u.next(f.asObservable());var d=function(w){f.error(w),u.error(w)};return a.subscribe(D_t.createOperatorSubscriber(u,function(w){return f?.next(w)},function(){f.complete(),u.complete()},d)),k0r.innerFrom(o).subscribe(D_t.createOperatorSubscriber(u,function(){f.complete(),u.next(f=new E_t.Subject)},w0r.noop,d)),function(){f?.unsubscribe(),f=null}})}tpe.window=C0r});var f6e=Ve(P9=>{"use strict";var P0r=P9&&P9.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(P9,"__esModule",{value:!0});P9.windowCount=void 0;var O_t=lv(),E0r=go(),D0r=Zo();function O0r(o,a){a===void 0&&(a=0);var u=a>0?a:o;return E0r.operate(function(f,d){var w=[new O_t.Subject],O=[],q=0;d.next(w[0].asObservable()),f.subscribe(D0r.createOperatorSubscriber(d,function(K){var le,ye;try{for(var Be=P0r(w),ce=Be.next();!ce.done;ce=Be.next()){var mt=ce.value;mt.next(K)}}catch(_r){le={error:_r}}finally{try{ce&&!ce.done&&(ye=Be.return)&&ye.call(Be)}finally{if(le)throw le.error}}var Re=q-o+1;if(Re>=0&&Re%u===0&&w.shift().complete(),++q%u===0){var Ge=new O_t.Subject;w.push(Ge),d.next(Ge.asObservable())}},function(){for(;w.length>0;)w.shift().complete();d.complete()},function(K){for(;w.length>0;)w.shift().error(K);d.error(K)},function(){O=null,w=null}))})}P9.windowCount=O0r});var _6e=Ve(rpe=>{"use strict";Object.defineProperty(rpe,"__esModule",{value:!0});rpe.windowTime=void 0;var N0r=lv(),A0r=Rb(),I0r=lS(),F0r=go(),M0r=Zo(),R0r=lO(),j0r=jb(),N_t=uO();function L0r(o){for(var a,u,f=[],d=1;d<arguments.length;d++)f[d-1]=arguments[d];var w=(a=j0r.popScheduler(f))!==null&&a!==void 0?a:A0r.asyncScheduler,O=(u=f[0])!==null&&u!==void 0?u:null,q=f[1]||1/0;return F0r.operate(function(K,le){var ye=[],Be=!1,ce=function(_r){var jr=_r.window,si=_r.subs;jr.complete(),si.unsubscribe(),R0r.arrRemove(ye,_r),Be&&mt()},mt=function(){if(ye){var _r=new I0r.Subscription;le.add(_r);var jr=new N0r.Subject,si={window:jr,subs:_r,seen:0};ye.push(si),le.next(jr.asObservable()),N_t.executeSchedule(_r,w,function(){return ce(si)},o)}};O!==null&&O>=0?N_t.executeSchedule(le,w,mt,O,!0):Be=!0,mt();var Re=function(_r){return ye.slice().forEach(_r)},Ge=function(_r){Re(function(jr){var si=jr.window;return _r(si)}),_r(le),le.unsubscribe()};return K.subscribe(M0r.createOperatorSubscriber(le,function(_r){Re(function(jr){jr.window.next(_r),q<=++jr.seen&&ce(jr)})},function(){return Ge(function(_r){return _r.complete()})},function(_r){return Ge(function(jr){return jr.error(_r)})})),function(){ye=null}})}rpe.windowTime=L0r});var m6e=Ve(E9=>{"use strict";var B0r=E9&&E9.__values||function(o){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&o[a],f=0;if(u)return u.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&f>=o.length&&(o=void 0),{value:o&&o[f++],done:!o}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(E9,"__esModule",{value:!0});E9.windowToggle=void 0;var q0r=lv(),J0r=lS(),z0r=go(),A_t=zl(),d6e=Zo(),I_t=ov(),W0r=lO();function U0r(o,a){return z0r.operate(function(u,f){var d=[],w=function(O){for(;0<d.length;)d.shift().error(O);f.error(O)};A_t.innerFrom(o).subscribe(d6e.createOperatorSubscriber(f,function(O){var q=new q0r.Subject;d.push(q);var K=new J0r.Subscription,le=function(){W0r.arrRemove(d,q),q.complete(),K.unsubscribe()},ye;try{ye=A_t.innerFrom(a(O))}catch(Be){w(Be);return}f.next(q.asObservable()),K.add(ye.subscribe(d6e.createOperatorSubscriber(f,le,I_t.noop,w)))},I_t.noop)),u.subscribe(d6e.createOperatorSubscriber(f,function(O){var q,K,le=d.slice();try{for(var ye=B0r(le),Be=ye.next();!Be.done;Be=ye.next()){var ce=Be.value;ce.next(O)}}catch(mt){q={error:mt}}finally{try{Be&&!Be.done&&(K=ye.return)&&K.call(ye)}finally{if(q)throw q.error}}},function(){for(;0<d.length;)d.shift().complete();f.complete()},w,function(){for(;0<d.length;)d.shift().unsubscribe()}))})}E9.windowToggle=U0r});var g6e=Ve(npe=>{"use strict";Object.defineProperty(npe,"__esModule",{value:!0});npe.windowWhen=void 0;var $0r=lv(),V0r=go(),F_t=Zo(),H0r=zl();function G0r(o){return V0r.operate(function(a,u){var f,d,w=function(q){f.error(q),u.error(q)},O=function(){d?.unsubscribe(),f?.complete(),f=new $0r.Subject,u.next(f.asObservable());var q;try{q=H0r.innerFrom(o())}catch(K){w(K);return}q.subscribe(d=F_t.createOperatorSubscriber(u,O,O,w))};O(),a.subscribe(F_t.createOperatorSubscriber(u,function(q){return f.next(q)},function(){f.complete(),u.complete()},w,function(){d?.unsubscribe(),f=null}))})}npe.windowWhen=G0r});var h6e=Ve(U6=>{"use strict";var M_t=U6&&U6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},R_t=U6&&U6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(U6,"__esModule",{value:!0});U6.withLatestFrom=void 0;var K0r=go(),j_t=Zo(),Q0r=zl(),X0r=cv(),Y0r=ov(),Z0r=jb();function e1r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=Z0r.popResultSelector(o);return K0r.operate(function(f,d){for(var w=o.length,O=new Array(w),q=o.map(function(){return!1}),K=!1,le=function(Be){Q0r.innerFrom(o[Be]).subscribe(j_t.createOperatorSubscriber(d,function(ce){O[Be]=ce,!K&&!q[Be]&&(q[Be]=!0,(K=q.every(X0r.identity))&&(q=null))},Y0r.noop))},ye=0;ye<w;ye++)le(ye);f.subscribe(j_t.createOperatorSubscriber(d,function(Be){if(K){var ce=R_t([Be],M_t(O));d.next(u?u.apply(void 0,R_t([],M_t(ce))):ce)}}))})}U6.withLatestFrom=e1r});var ipe=Ve($6=>{"use strict";var t1r=$6&&$6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},r1r=$6&&$6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty($6,"__esModule",{value:!0});$6.zip=void 0;var n1r=Vf(),i1r=zl(),a1r=_7(),s1r=Yw(),o1r=Zo(),c1r=jb();function l1r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=c1r.popResultSelector(o),f=a1r.argsOrArgArray(o);return f.length?new n1r.Observable(function(d){var w=f.map(function(){return[]}),O=f.map(function(){return!1});d.add(function(){w=O=null});for(var q=function(le){i1r.innerFrom(f[le]).subscribe(o1r.createOperatorSubscriber(d,function(ye){if(w[le].push(ye),w.every(function(ce){return ce.length})){var Be=w.map(function(ce){return ce.shift()});d.next(u?u.apply(void 0,r1r([],t1r(Be))):Be),w.some(function(ce,mt){return!ce.length&&O[mt]})&&d.complete()}},function(){O[le]=!0,!w[le].length&&d.complete()}))},K=0;!d.closed&&K<f.length;K++)q(K);return function(){w=O=null}}):s1r.EMPTY}$6.zip=l1r});var y6e=Ve(V6=>{"use strict";var u1r=V6&&V6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},p1r=V6&&V6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(V6,"__esModule",{value:!0});V6.zip=void 0;var f1r=ipe(),_1r=go();function d1r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return _1r.operate(function(u,f){f1r.zip.apply(void 0,p1r([u],u1r(o))).subscribe(f)})}V6.zip=d1r});var v6e=Ve(ape=>{"use strict";Object.defineProperty(ape,"__esModule",{value:!0});ape.zipAll=void 0;var m1r=ipe(),g1r=qNe();function h1r(o){return g1r.joinAllInternals(m1r.zip,o)}ape.zipAll=h1r});var b6e=Ve(H6=>{"use strict";var y1r=H6&&H6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},v1r=H6&&H6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(H6,"__esModule",{value:!0});H6.zipWith=void 0;var b1r=y6e();function x1r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return b1r.zip.apply(void 0,v1r([],y1r(o)))}H6.zipWith=x1r});var D9=Ve(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.mergeAll=Rr.merge=Rr.max=Rr.materialize=Rr.mapTo=Rr.map=Rr.last=Rr.isEmpty=Rr.ignoreElements=Rr.groupBy=Rr.first=Rr.findIndex=Rr.find=Rr.finalize=Rr.filter=Rr.expand=Rr.exhaustMap=Rr.exhaustAll=Rr.exhaust=Rr.every=Rr.endWith=Rr.elementAt=Rr.distinctUntilKeyChanged=Rr.distinctUntilChanged=Rr.distinct=Rr.dematerialize=Rr.delayWhen=Rr.delay=Rr.defaultIfEmpty=Rr.debounceTime=Rr.debounce=Rr.count=Rr.connect=Rr.concatWith=Rr.concatMapTo=Rr.concatMap=Rr.concatAll=Rr.concat=Rr.combineLatestWith=Rr.combineLatest=Rr.combineLatestAll=Rr.combineAll=Rr.catchError=Rr.bufferWhen=Rr.bufferToggle=Rr.bufferTime=Rr.bufferCount=Rr.buffer=Rr.auditTime=Rr.audit=void 0;Rr.timeInterval=Rr.throwIfEmpty=Rr.throttleTime=Rr.throttle=Rr.tap=Rr.takeWhile=Rr.takeUntil=Rr.takeLast=Rr.take=Rr.switchScan=Rr.switchMapTo=Rr.switchMap=Rr.switchAll=Rr.subscribeOn=Rr.startWith=Rr.skipWhile=Rr.skipUntil=Rr.skipLast=Rr.skip=Rr.single=Rr.shareReplay=Rr.share=Rr.sequenceEqual=Rr.scan=Rr.sampleTime=Rr.sample=Rr.refCount=Rr.retryWhen=Rr.retry=Rr.repeatWhen=Rr.repeat=Rr.reduce=Rr.raceWith=Rr.race=Rr.publishReplay=Rr.publishLast=Rr.publishBehavior=Rr.publish=Rr.pluck=Rr.partition=Rr.pairwise=Rr.onErrorResumeNext=Rr.observeOn=Rr.multicast=Rr.min=Rr.mergeWith=Rr.mergeScan=Rr.mergeMapTo=Rr.mergeMap=Rr.flatMap=void 0;Rr.zipWith=Rr.zipAll=Rr.zip=Rr.withLatestFrom=Rr.windowWhen=Rr.windowToggle=Rr.windowTime=Rr.windowCount=Rr.window=Rr.toArray=Rr.timestamp=Rr.timeoutWith=Rr.timeout=void 0;var S1r=Sce();Object.defineProperty(Rr,"audit",{enumerable:!0,get:function(){return S1r.audit}});var T1r=TNe();Object.defineProperty(Rr,"auditTime",{enumerable:!0,get:function(){return T1r.auditTime}});var w1r=wNe();Object.defineProperty(Rr,"buffer",{enumerable:!0,get:function(){return w1r.buffer}});var k1r=CNe();Object.defineProperty(Rr,"bufferCount",{enumerable:!0,get:function(){return k1r.bufferCount}});var C1r=ENe();Object.defineProperty(Rr,"bufferTime",{enumerable:!0,get:function(){return C1r.bufferTime}});var P1r=ONe();Object.defineProperty(Rr,"bufferToggle",{enumerable:!0,get:function(){return P1r.bufferToggle}});var E1r=NNe();Object.defineProperty(Rr,"bufferWhen",{enumerable:!0,get:function(){return E1r.bufferWhen}});var D1r=ANe();Object.defineProperty(Rr,"catchError",{enumerable:!0,get:function(){return D1r.catchError}});var O1r=JNe();Object.defineProperty(Rr,"combineAll",{enumerable:!0,get:function(){return O1r.combineAll}});var N1r=nle();Object.defineProperty(Rr,"combineLatestAll",{enumerable:!0,get:function(){return N1r.combineLatestAll}});var A1r=zNe();Object.defineProperty(Rr,"combineLatest",{enumerable:!0,get:function(){return A1r.combineLatest}});var I1r=WNe();Object.defineProperty(Rr,"combineLatestWith",{enumerable:!0,get:function(){return I1r.combineLatestWith}});var F1r=UNe();Object.defineProperty(Rr,"concat",{enumerable:!0,get:function(){return F1r.concat}});var M1r=QH();Object.defineProperty(Rr,"concatAll",{enumerable:!0,get:function(){return M1r.concatAll}});var R1r=lle();Object.defineProperty(Rr,"concatMap",{enumerable:!0,get:function(){return R1r.concatMap}});var j1r=$Ne();Object.defineProperty(Rr,"concatMapTo",{enumerable:!0,get:function(){return j1r.concatMapTo}});var L1r=VNe();Object.defineProperty(Rr,"concatWith",{enumerable:!0,get:function(){return L1r.concatWith}});var B1r=XH();Object.defineProperty(Rr,"connect",{enumerable:!0,get:function(){return B1r.connect}});var q1r=XNe();Object.defineProperty(Rr,"count",{enumerable:!0,get:function(){return q1r.count}});var J1r=YNe();Object.defineProperty(Rr,"debounce",{enumerable:!0,get:function(){return J1r.debounce}});var z1r=ZNe();Object.defineProperty(Rr,"debounceTime",{enumerable:!0,get:function(){return z1r.debounceTime}});var W1r=m9();Object.defineProperty(Rr,"defaultIfEmpty",{enumerable:!0,get:function(){return W1r.defaultIfEmpty}});var U1r=eAe();Object.defineProperty(Rr,"delay",{enumerable:!0,get:function(){return U1r.delay}});var $1r=kle();Object.defineProperty(Rr,"delayWhen",{enumerable:!0,get:function(){return $1r.delayWhen}});var V1r=rAe();Object.defineProperty(Rr,"dematerialize",{enumerable:!0,get:function(){return V1r.dematerialize}});var H1r=nAe();Object.defineProperty(Rr,"distinct",{enumerable:!0,get:function(){return H1r.distinct}});var G1r=Fle();Object.defineProperty(Rr,"distinctUntilChanged",{enumerable:!0,get:function(){return G1r.distinctUntilChanged}});var K1r=iAe();Object.defineProperty(Rr,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return K1r.distinctUntilKeyChanged}});var Q1r=sAe();Object.defineProperty(Rr,"elementAt",{enumerable:!0,get:function(){return Q1r.elementAt}});var X1r=oAe();Object.defineProperty(Rr,"endWith",{enumerable:!0,get:function(){return X1r.endWith}});var Y1r=cAe();Object.defineProperty(Rr,"every",{enumerable:!0,get:function(){return Y1r.every}});var Z1r=lAe();Object.defineProperty(Rr,"exhaust",{enumerable:!0,get:function(){return Z1r.exhaust}});var ebr=$le();Object.defineProperty(Rr,"exhaustAll",{enumerable:!0,get:function(){return ebr.exhaustAll}});var tbr=Wle();Object.defineProperty(Rr,"exhaustMap",{enumerable:!0,get:function(){return tbr.exhaustMap}});var rbr=uAe();Object.defineProperty(Rr,"expand",{enumerable:!0,get:function(){return rbr.expand}});var nbr=dO();Object.defineProperty(Rr,"filter",{enumerable:!0,get:function(){return nbr.filter}});var ibr=pAe();Object.defineProperty(Rr,"finalize",{enumerable:!0,get:function(){return ibr.finalize}});var abr=Kle();Object.defineProperty(Rr,"find",{enumerable:!0,get:function(){return abr.find}});var sbr=fAe();Object.defineProperty(Rr,"findIndex",{enumerable:!0,get:function(){return sbr.findIndex}});var obr=_Ae();Object.defineProperty(Rr,"first",{enumerable:!0,get:function(){return obr.first}});var cbr=dAe();Object.defineProperty(Rr,"groupBy",{enumerable:!0,get:function(){return cbr.groupBy}});var lbr=xle();Object.defineProperty(Rr,"ignoreElements",{enumerable:!0,get:function(){return lbr.ignoreElements}});var ubr=mAe();Object.defineProperty(Rr,"isEmpty",{enumerable:!0,get:function(){return ubr.isEmpty}});var pbr=gAe();Object.defineProperty(Rr,"last",{enumerable:!0,get:function(){return pbr.last}});var fbr=fO();Object.defineProperty(Rr,"map",{enumerable:!0,get:function(){return fbr.map}});var _br=Tle();Object.defineProperty(Rr,"mapTo",{enumerable:!0,get:function(){return _br.mapTo}});var dbr=yAe();Object.defineProperty(Rr,"materialize",{enumerable:!0,get:function(){return dbr.materialize}});var mbr=vAe();Object.defineProperty(Rr,"max",{enumerable:!0,get:function(){return mbr.max}});var gbr=bAe();Object.defineProperty(Rr,"merge",{enumerable:!0,get:function(){return gbr.merge}});var hbr=d9();Object.defineProperty(Rr,"mergeAll",{enumerable:!0,get:function(){return hbr.mergeAll}});var ybr=xAe();Object.defineProperty(Rr,"flatMap",{enumerable:!0,get:function(){return ybr.flatMap}});var vbr=aP();Object.defineProperty(Rr,"mergeMap",{enumerable:!0,get:function(){return vbr.mergeMap}});var bbr=SAe();Object.defineProperty(Rr,"mergeMapTo",{enumerable:!0,get:function(){return bbr.mergeMapTo}});var xbr=TAe();Object.defineProperty(Rr,"mergeScan",{enumerable:!0,get:function(){return xbr.mergeScan}});var Sbr=wAe();Object.defineProperty(Rr,"mergeWith",{enumerable:!0,get:function(){return Sbr.mergeWith}});var Tbr=kAe();Object.defineProperty(Rr,"min",{enumerable:!0,get:function(){return Tbr.min}});var wbr=eG();Object.defineProperty(Rr,"multicast",{enumerable:!0,get:function(){return wbr.multicast}});var kbr=p9();Object.defineProperty(Rr,"observeOn",{enumerable:!0,get:function(){return kbr.observeOn}});var Cbr=PAe();Object.defineProperty(Rr,"onErrorResumeNext",{enumerable:!0,get:function(){return Cbr.onErrorResumeNext}});var Pbr=EAe();Object.defineProperty(Rr,"pairwise",{enumerable:!0,get:function(){return Pbr.pairwise}});var Ebr=l_t();Object.defineProperty(Rr,"partition",{enumerable:!0,get:function(){return Ebr.partition}});var Dbr=OAe();Object.defineProperty(Rr,"pluck",{enumerable:!0,get:function(){return Dbr.pluck}});var Obr=NAe();Object.defineProperty(Rr,"publish",{enumerable:!0,get:function(){return Obr.publish}});var Nbr=IAe();Object.defineProperty(Rr,"publishBehavior",{enumerable:!0,get:function(){return Nbr.publishBehavior}});var Abr=FAe();Object.defineProperty(Rr,"publishLast",{enumerable:!0,get:function(){return Abr.publishLast}});var Ibr=MAe();Object.defineProperty(Rr,"publishReplay",{enumerable:!0,get:function(){return Ibr.publishReplay}});var Fbr=__t();Object.defineProperty(Rr,"race",{enumerable:!0,get:function(){return Fbr.race}});var Mbr=Sue();Object.defineProperty(Rr,"raceWith",{enumerable:!0,get:function(){return Mbr.raceWith}});var Rbr=f7();Object.defineProperty(Rr,"reduce",{enumerable:!0,get:function(){return Rbr.reduce}});var jbr=jAe();Object.defineProperty(Rr,"repeat",{enumerable:!0,get:function(){return jbr.repeat}});var Lbr=LAe();Object.defineProperty(Rr,"repeatWhen",{enumerable:!0,get:function(){return Lbr.repeatWhen}});var Bbr=BAe();Object.defineProperty(Rr,"retry",{enumerable:!0,get:function(){return Bbr.retry}});var qbr=qAe();Object.defineProperty(Rr,"retryWhen",{enumerable:!0,get:function(){return qbr.retryWhen}});var Jbr=lue();Object.defineProperty(Rr,"refCount",{enumerable:!0,get:function(){return Jbr.refCount}});var zbr=Eue();Object.defineProperty(Rr,"sample",{enumerable:!0,get:function(){return zbr.sample}});var Wbr=zAe();Object.defineProperty(Rr,"sampleTime",{enumerable:!0,get:function(){return Wbr.sampleTime}});var Ubr=WAe();Object.defineProperty(Rr,"scan",{enumerable:!0,get:function(){return Ubr.scan}});var $br=UAe();Object.defineProperty(Rr,"sequenceEqual",{enumerable:!0,get:function(){return $br.sequenceEqual}});var Vbr=Iue();Object.defineProperty(Rr,"share",{enumerable:!0,get:function(){return Vbr.share}});var Hbr=VAe();Object.defineProperty(Rr,"shareReplay",{enumerable:!0,get:function(){return Hbr.shareReplay}});var Gbr=KAe();Object.defineProperty(Rr,"single",{enumerable:!0,get:function(){return Gbr.single}});var Kbr=QAe();Object.defineProperty(Rr,"skip",{enumerable:!0,get:function(){return Kbr.skip}});var Qbr=XAe();Object.defineProperty(Rr,"skipLast",{enumerable:!0,get:function(){return Qbr.skipLast}});var Xbr=YAe();Object.defineProperty(Rr,"skipUntil",{enumerable:!0,get:function(){return Xbr.skipUntil}});var Ybr=ZAe();Object.defineProperty(Rr,"skipWhile",{enumerable:!0,get:function(){return Ybr.skipWhile}});var Zbr=e6e();Object.defineProperty(Rr,"startWith",{enumerable:!0,get:function(){return Zbr.startWith}});var exr=f9();Object.defineProperty(Rr,"subscribeOn",{enumerable:!0,get:function(){return exr.subscribeOn}});var txr=t6e();Object.defineProperty(Rr,"switchAll",{enumerable:!0,get:function(){return txr.switchAll}});var rxr=k9();Object.defineProperty(Rr,"switchMap",{enumerable:!0,get:function(){return rxr.switchMap}});var nxr=r6e();Object.defineProperty(Rr,"switchMapTo",{enumerable:!0,get:function(){return nxr.switchMapTo}});var ixr=n6e();Object.defineProperty(Rr,"switchScan",{enumerable:!0,get:function(){return ixr.switchScan}});var axr=g9();Object.defineProperty(Rr,"take",{enumerable:!0,get:function(){return axr.take}});var sxr=eue();Object.defineProperty(Rr,"takeLast",{enumerable:!0,get:function(){return sxr.takeLast}});var oxr=i6e();Object.defineProperty(Rr,"takeUntil",{enumerable:!0,get:function(){return oxr.takeUntil}});var cxr=a6e();Object.defineProperty(Rr,"takeWhile",{enumerable:!0,get:function(){return cxr.takeWhile}});var lxr=s6e();Object.defineProperty(Rr,"tap",{enumerable:!0,get:function(){return lxr.tap}});var uxr=Xue();Object.defineProperty(Rr,"throttle",{enumerable:!0,get:function(){return uxr.throttle}});var pxr=o6e();Object.defineProperty(Rr,"throttleTime",{enumerable:!0,get:function(){return pxr.throttleTime}});var fxr=h9();Object.defineProperty(Rr,"throwIfEmpty",{enumerable:!0,get:function(){return fxr.throwIfEmpty}});var _xr=c6e();Object.defineProperty(Rr,"timeInterval",{enumerable:!0,get:function(){return _xr.timeInterval}});var dxr=tG();Object.defineProperty(Rr,"timeout",{enumerable:!0,get:function(){return dxr.timeout}});var mxr=l6e();Object.defineProperty(Rr,"timeoutWith",{enumerable:!0,get:function(){return mxr.timeoutWith}});var gxr=u6e();Object.defineProperty(Rr,"timestamp",{enumerable:!0,get:function(){return gxr.timestamp}});var hxr=ele();Object.defineProperty(Rr,"toArray",{enumerable:!0,get:function(){return hxr.toArray}});var yxr=p6e();Object.defineProperty(Rr,"window",{enumerable:!0,get:function(){return yxr.window}});var vxr=f6e();Object.defineProperty(Rr,"windowCount",{enumerable:!0,get:function(){return vxr.windowCount}});var bxr=_6e();Object.defineProperty(Rr,"windowTime",{enumerable:!0,get:function(){return bxr.windowTime}});var xxr=m6e();Object.defineProperty(Rr,"windowToggle",{enumerable:!0,get:function(){return xxr.windowToggle}});var Sxr=g6e();Object.defineProperty(Rr,"windowWhen",{enumerable:!0,get:function(){return Sxr.windowWhen}});var Txr=h6e();Object.defineProperty(Rr,"withLatestFrom",{enumerable:!0,get:function(){return Txr.withLatestFrom}});var wxr=y6e();Object.defineProperty(Rr,"zip",{enumerable:!0,get:function(){return wxr.zip}});var kxr=v6e();Object.defineProperty(Rr,"zipAll",{enumerable:!0,get:function(){return kxr.zipAll}});var Cxr=b6e();Object.defineProperty(Rr,"zipWith",{enumerable:!0,get:function(){return Cxr.zipWith}})});function L_t(o){return o.documentData?o.documentData:o.previousDocumentData}function B_t(o){switch(o.operation){case"INSERT":return{operation:o.operation,id:o.documentId,doc:o.documentData,previous:null};case"UPDATE":return{operation:o.operation,id:o.documentId,doc:Vp.deepFreezeWhenDevMode(o.documentData),previous:o.previousDocumentData?o.previousDocumentData:"UNKNOWN"};case"DELETE":return{operation:o.operation,id:o.documentId,doc:null,previous:o.previousDocumentData}}}function spe(o){return yh(Pxr,o,()=>{for(var a=new Array(o.events.length),u=o.events,f=o.collectionName,d=o.isLocal,w=Vp.deepFreezeWhenDevMode,O=0;O<u.length;O++){var q=u[O];a[O]={documentId:q.documentId,collectionName:f,isLocal:d,operation:q.operation,documentData:w(q.documentData),previousDocumentData:w(q.previousDocumentData)}}return a})}var Pxr,O9=mi(()=>{Ab();O_();Pxr=new Map});var q_t=Ve(rG=>{"use strict";Object.defineProperty(rG,"__esModule",{value:!0});rG.performanceTimestampProvider=void 0;rG.performanceTimestampProvider={now:function(){return(rG.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var x6e=Ve(Zw=>{"use strict";var J_t=Zw&&Zw.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},z_t=Zw&&Zw.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(Zw,"__esModule",{value:!0});Zw.animationFrameProvider=void 0;var Exr=lS();Zw.animationFrameProvider={schedule:function(o){var a=requestAnimationFrame,u=cancelAnimationFrame,f=Zw.animationFrameProvider.delegate;f&&(a=f.requestAnimationFrame,u=f.cancelAnimationFrame);var d=a(function(w){u=void 0,o(w)});return new Exr.Subscription(function(){return u?.(d)})},requestAnimationFrame:function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=Zw.animationFrameProvider.delegate;return(u?.requestAnimationFrame||requestAnimationFrame).apply(void 0,z_t([],J_t(o)))},cancelAnimationFrame:function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=Zw.animationFrameProvider.delegate;return(u?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,z_t([],J_t(o)))},delegate:void 0}});var $_t=Ve(ope=>{"use strict";Object.defineProperty(ope,"__esModule",{value:!0});ope.animationFrames=void 0;var Dxr=Vf(),Oxr=q_t(),W_t=x6e();function Nxr(o){return o?U_t(o):Axr}ope.animationFrames=Nxr;function U_t(o){return new Dxr.Observable(function(a){var u=o||Oxr.performanceTimestampProvider,f=u.now(),d=0,w=function(){a.closed||(d=W_t.animationFrameProvider.requestAnimationFrame(function(O){d=0;var q=u.now();a.next({timestamp:o?q:O,elapsed:q-f}),w()}))};return w(),function(){d&&W_t.animationFrameProvider.cancelAnimationFrame(d)}})}var Axr=U_t()});var H_t=Ve(N9=>{"use strict";Object.defineProperty(N9,"__esModule",{value:!0});N9.TestTools=N9.Immediate=void 0;var Ixr=1,S6e,cpe={};function V_t(o){return o in cpe?(delete cpe[o],!0):!1}N9.Immediate={setImmediate:function(o){var a=Ixr++;return cpe[a]=!0,S6e||(S6e=Promise.resolve()),S6e.then(function(){return V_t(a)&&o()}),a},clearImmediate:function(o){V_t(o)}};N9.TestTools={pending:function(){return Object.keys(cpe).length}}});var K_t=Ve(cP=>{"use strict";var Fxr=cP&&cP.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},Mxr=cP&&cP.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(cP,"__esModule",{value:!0});cP.immediateProvider=void 0;var G_t=H_t(),Rxr=G_t.Immediate.setImmediate,jxr=G_t.Immediate.clearImmediate;cP.immediateProvider={setImmediate:function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=cP.immediateProvider.delegate;return(u?.setImmediate||Rxr).apply(void 0,Mxr([],Fxr(o)))},clearImmediate:function(o){var a=cP.immediateProvider.delegate;return(a?.clearImmediate||jxr)(o)},delegate:void 0}});var X_t=Ve(A9=>{"use strict";var Lxr=A9&&A9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(A9,"__esModule",{value:!0});A9.AsapAction=void 0;var Bxr=a9(),Q_t=K_t(),qxr=function(o){Lxr(a,o);function a(u,f){var d=o.call(this,u,f)||this;return d.scheduler=u,d.work=f,d}return a.prototype.requestAsyncId=function(u,f,d){return d===void 0&&(d=0),d!==null&&d>0?o.prototype.requestAsyncId.call(this,u,f,d):(u.actions.push(this),u._scheduled||(u._scheduled=Q_t.immediateProvider.setImmediate(u.flush.bind(u,void 0))))},a.prototype.recycleAsyncId=function(u,f,d){var w;if(d===void 0&&(d=0),d!=null?d>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,u,f,d);var O=u.actions;f!=null&&((w=O[O.length-1])===null||w===void 0?void 0:w.id)!==f&&(Q_t.immediateProvider.clearImmediate(f),u._scheduled===f&&(u._scheduled=void 0))},a}(Bxr.AsyncAction);A9.AsapAction=qxr});var Y_t=Ve(I9=>{"use strict";var Jxr=I9&&I9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(I9,"__esModule",{value:!0});I9.AsapScheduler=void 0;var zxr=o9(),Wxr=function(o){Jxr(a,o);function a(){return o!==null&&o.apply(this,arguments)||this}return a.prototype.flush=function(u){this._active=!0;var f=this._scheduled;this._scheduled=void 0;var d=this.actions,w;u=u||d.shift();do if(w=u.execute(u.state,u.delay))break;while((u=d[0])&&u.id===f&&d.shift());if(this._active=!1,w){for(;(u=d[0])&&u.id===f&&d.shift();)u.unsubscribe();throw w}},a}(zxr.AsyncScheduler);I9.AsapScheduler=Wxr});var Z_t=Ve(g7=>{"use strict";Object.defineProperty(g7,"__esModule",{value:!0});g7.asap=g7.asapScheduler=void 0;var Uxr=X_t(),$xr=Y_t();g7.asapScheduler=new $xr.AsapScheduler(Uxr.AsapAction);g7.asap=g7.asapScheduler});var edt=Ve(F9=>{"use strict";var Vxr=F9&&F9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(F9,"__esModule",{value:!0});F9.QueueAction=void 0;var Hxr=a9(),Gxr=function(o){Vxr(a,o);function a(u,f){var d=o.call(this,u,f)||this;return d.scheduler=u,d.work=f,d}return a.prototype.schedule=function(u,f){return f===void 0&&(f=0),f>0?o.prototype.schedule.call(this,u,f):(this.delay=f,this.state=u,this.scheduler.flush(this),this)},a.prototype.execute=function(u,f){return f>0||this.closed?o.prototype.execute.call(this,u,f):this._execute(u,f)},a.prototype.requestAsyncId=function(u,f,d){return d===void 0&&(d=0),d!=null&&d>0||d==null&&this.delay>0?o.prototype.requestAsyncId.call(this,u,f,d):(u.flush(this),0)},a}(Hxr.AsyncAction);F9.QueueAction=Gxr});var tdt=Ve(M9=>{"use strict";var Kxr=M9&&M9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(M9,"__esModule",{value:!0});M9.QueueScheduler=void 0;var Qxr=o9(),Xxr=function(o){Kxr(a,o);function a(){return o!==null&&o.apply(this,arguments)||this}return a}(Qxr.AsyncScheduler);M9.QueueScheduler=Xxr});var rdt=Ve(h7=>{"use strict";Object.defineProperty(h7,"__esModule",{value:!0});h7.queue=h7.queueScheduler=void 0;var Yxr=edt(),Zxr=tdt();h7.queueScheduler=new Zxr.QueueScheduler(Yxr.QueueAction);h7.queue=h7.queueScheduler});var idt=Ve(R9=>{"use strict";var eSr=R9&&R9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(R9,"__esModule",{value:!0});R9.AnimationFrameAction=void 0;var tSr=a9(),ndt=x6e(),rSr=function(o){eSr(a,o);function a(u,f){var d=o.call(this,u,f)||this;return d.scheduler=u,d.work=f,d}return a.prototype.requestAsyncId=function(u,f,d){return d===void 0&&(d=0),d!==null&&d>0?o.prototype.requestAsyncId.call(this,u,f,d):(u.actions.push(this),u._scheduled||(u._scheduled=ndt.animationFrameProvider.requestAnimationFrame(function(){return u.flush(void 0)})))},a.prototype.recycleAsyncId=function(u,f,d){var w;if(d===void 0&&(d=0),d!=null?d>0:this.delay>0)return o.prototype.recycleAsyncId.call(this,u,f,d);var O=u.actions;f!=null&&f===u._scheduled&&((w=O[O.length-1])===null||w===void 0?void 0:w.id)!==f&&(ndt.animationFrameProvider.cancelAnimationFrame(f),u._scheduled=void 0)},a}(tSr.AsyncAction);R9.AnimationFrameAction=rSr});var adt=Ve(j9=>{"use strict";var nSr=j9&&j9.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(j9,"__esModule",{value:!0});j9.AnimationFrameScheduler=void 0;var iSr=o9(),aSr=function(o){nSr(a,o);function a(){return o!==null&&o.apply(this,arguments)||this}return a.prototype.flush=function(u){this._active=!0;var f;u?f=u.id:(f=this._scheduled,this._scheduled=void 0);var d=this.actions,w;u=u||d.shift();do if(w=u.execute(u.state,u.delay))break;while((u=d[0])&&u.id===f&&d.shift());if(this._active=!1,w){for(;(u=d[0])&&u.id===f&&d.shift();)u.unsubscribe();throw w}},a}(iSr.AsyncScheduler);j9.AnimationFrameScheduler=aSr});var sdt=Ve(y7=>{"use strict";Object.defineProperty(y7,"__esModule",{value:!0});y7.animationFrame=y7.animationFrameScheduler=void 0;var sSr=idt(),oSr=adt();y7.animationFrameScheduler=new oSr.AnimationFrameScheduler(sSr.AnimationFrameAction);y7.animationFrame=y7.animationFrameScheduler});var ldt=Ve(G6=>{"use strict";var odt=G6&&G6.__extends||function(){var o=function(a,u){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var w in d)Object.prototype.hasOwnProperty.call(d,w)&&(f[w]=d[w])},o(a,u)};return function(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");o(a,u);function f(){this.constructor=a}a.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();Object.defineProperty(G6,"__esModule",{value:!0});G6.VirtualAction=G6.VirtualTimeScheduler=void 0;var cSr=a9(),lSr=lS(),uSr=o9(),pSr=function(o){odt(a,o);function a(u,f){u===void 0&&(u=cdt),f===void 0&&(f=1/0);var d=o.call(this,u,function(){return d.frame})||this;return d.maxFrames=f,d.frame=0,d.index=-1,d}return a.prototype.flush=function(){for(var u=this,f=u.actions,d=u.maxFrames,w,O;(O=f[0])&&O.delay<=d&&(f.shift(),this.frame=O.delay,!(w=O.execute(O.state,O.delay))););if(w){for(;O=f.shift();)O.unsubscribe();throw w}},a.frameTimeFactor=10,a}(uSr.AsyncScheduler);G6.VirtualTimeScheduler=pSr;var cdt=function(o){odt(a,o);function a(u,f,d){d===void 0&&(d=u.index+=1);var w=o.call(this,u,f)||this;return w.scheduler=u,w.work=f,w.index=d,w.active=!0,w.index=u.index=d,w}return a.prototype.schedule=function(u,f){if(f===void 0&&(f=0),Number.isFinite(f)){if(!this.id)return o.prototype.schedule.call(this,u,f);this.active=!1;var d=new a(this.scheduler,this.work);return this.add(d),d.schedule(u,f)}else return lSr.Subscription.EMPTY},a.prototype.requestAsyncId=function(u,f,d){d===void 0&&(d=0),this.delay=u.frame+d;var w=u.actions;return w.push(this),w.sort(a.sortActions),1},a.prototype.recycleAsyncId=function(u,f,d){d===void 0&&(d=0)},a.prototype._execute=function(u,f){if(this.active===!0)return o.prototype._execute.call(this,u,f)},a.sortActions=function(u,f){return u.delay===f.delay?u.index===f.index?0:u.index>f.index?1:-1:u.delay>f.delay?1:-1},a}(cSr.AsyncAction);G6.VirtualAction=cdt});var pdt=Ve(lpe=>{"use strict";Object.defineProperty(lpe,"__esModule",{value:!0});lpe.isObservable=void 0;var fSr=Vf(),udt=Pf();function _Sr(o){return!!o&&(o instanceof fSr.Observable||udt.isFunction(o.lift)&&udt.isFunction(o.subscribe))}lpe.isObservable=_Sr});var fdt=Ve(upe=>{"use strict";Object.defineProperty(upe,"__esModule",{value:!0});upe.lastValueFrom=void 0;var dSr=j6();function mSr(o,a){var u=typeof a=="object";return new Promise(function(f,d){var w=!1,O;o.subscribe({next:function(q){O=q,w=!0},error:d,complete:function(){w?f(O):u?f(a.defaultValue):d(new dSr.EmptyError)}})})}upe.lastValueFrom=mSr});var _dt=Ve(ppe=>{"use strict";Object.defineProperty(ppe,"__esModule",{value:!0});ppe.firstValueFrom=void 0;var gSr=j6(),hSr=YL();function ySr(o,a){var u=typeof a=="object";return new Promise(function(f,d){var w=new hSr.SafeSubscriber({next:function(O){f(O),w.unsubscribe()},error:d,complete:function(){u?f(a.defaultValue):d(new gSr.EmptyError)}});o.subscribe(w)})}ppe.firstValueFrom=ySr});var w6e=Ve(K6=>{"use strict";var vSr=K6&&K6.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w},ddt=K6&&K6.__spreadArray||function(o,a){for(var u=0,f=a.length,d=o.length;u<f;u++,d++)o[d]=a[u];return o};Object.defineProperty(K6,"__esModule",{value:!0});K6.bindCallbackInternals=void 0;var bSr=KH(),xSr=Vf(),SSr=f9(),TSr=A6(),wSr=p9(),kSr=yue();function T6e(o,a,u,f){if(u)if(bSr.isScheduler(u))f=u;else return function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];return T6e(o,a,f).apply(this,d).pipe(TSr.mapOneOrManyArgs(u))};return f?function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];return T6e(o,a).apply(this,d).pipe(SSr.subscribeOn(f),wSr.observeOn(f))}:function(){for(var d=this,w=[],O=0;O<arguments.length;O++)w[O]=arguments[O];var q=new kSr.AsyncSubject,K=!0;return new xSr.Observable(function(le){var ye=q.subscribe(le);if(K){K=!1;var Be=!1,ce=!1;a.apply(d,ddt(ddt([],vSr(w)),[function(){for(var mt=[],Re=0;Re<arguments.length;Re++)mt[Re]=arguments[Re];if(o){var Ge=mt.shift();if(Ge!=null){q.error(Ge);return}}q.next(1<mt.length?mt:mt[0]),ce=!0,Be&&q.complete()}])),ce&&q.complete(),Be=!0}return ye})}}K6.bindCallbackInternals=T6e});var mdt=Ve(fpe=>{"use strict";Object.defineProperty(fpe,"__esModule",{value:!0});fpe.bindCallback=void 0;var CSr=w6e();function PSr(o,a,u){return CSr.bindCallbackInternals(!1,o,a,u)}fpe.bindCallback=PSr});var gdt=Ve(_pe=>{"use strict";Object.defineProperty(_pe,"__esModule",{value:!0});_pe.bindNodeCallback=void 0;var ESr=w6e();function DSr(o,a,u){return ESr.bindCallbackInternals(!0,o,a,u)}_pe.bindNodeCallback=DSr});var nG=Ve(dpe=>{"use strict";Object.defineProperty(dpe,"__esModule",{value:!0});dpe.defer=void 0;var OSr=Vf(),NSr=zl();function ASr(o){return new OSr.Observable(function(a){NSr.innerFrom(o()).subscribe(a)})}dpe.defer=ASr});var hdt=Ve(mpe=>{"use strict";Object.defineProperty(mpe,"__esModule",{value:!0});mpe.connectable=void 0;var ISr=lv(),FSr=Vf(),MSr=nG(),RSr={connector:function(){return new ISr.Subject},resetOnDisconnect:!0};function jSr(o,a){a===void 0&&(a=RSr);var u=null,f=a.connector,d=a.resetOnDisconnect,w=d===void 0?!0:d,O=f(),q=new FSr.Observable(function(K){return O.subscribe(K)});return q.connect=function(){return(!u||u.closed)&&(u=MSr.defer(function(){return o}).subscribe(O),w&&u.add(function(){return O=f()})),u},q}mpe.connectable=jSr});var ydt=Ve(gpe=>{"use strict";Object.defineProperty(gpe,"__esModule",{value:!0});gpe.forkJoin=void 0;var LSr=Vf(),BSr=INe(),qSr=zl(),JSr=jb(),zSr=Zo(),WSr=A6(),USr=LNe();function $Sr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=JSr.popResultSelector(o),f=BSr.argsArgArrayOrObject(o),d=f.args,w=f.keys,O=new LSr.Observable(function(q){var K=d.length;if(!K){q.complete();return}for(var le=new Array(K),ye=K,Be=K,ce=function(Re){var Ge=!1;qSr.innerFrom(d[Re]).subscribe(zSr.createOperatorSubscriber(q,function(_r){Ge||(Ge=!0,Be--),le[Re]=_r},function(){return ye--},void 0,function(){(!ye||!Ge)&&(Be||q.next(w?USr.createObject(w,le):le),q.complete())}))},mt=0;mt<K;mt++)ce(mt)});return u?O.pipe(WSr.mapOneOrManyArgs(u)):O}gpe.forkJoin=$Sr});var bdt=Ve(L9=>{"use strict";var VSr=L9&&L9.__read||function(o,a){var u=typeof Symbol=="function"&&o[Symbol.iterator];if(!u)return o;var f=u.call(o),d,w=[],O;try{for(;(a===void 0||a-- >0)&&!(d=f.next()).done;)w.push(d.value)}catch(q){O={error:q}}finally{try{d&&!d.done&&(u=f.return)&&u.call(f)}finally{if(O)throw O.error}}return w};Object.defineProperty(L9,"__esModule",{value:!0});L9.fromEvent=void 0;var HSr=zl(),GSr=Vf(),KSr=aP(),QSr=rce(),v7=Pf(),XSr=A6(),YSr=["addListener","removeListener"],ZSr=["addEventListener","removeEventListener"],eTr=["on","off"];function k6e(o,a,u,f){if(v7.isFunction(u)&&(f=u,u=void 0),f)return k6e(o,a,u).pipe(XSr.mapOneOrManyArgs(f));var d=VSr(nTr(o)?ZSr.map(function(q){return function(K){return o[q](a,K,u)}}):tTr(o)?YSr.map(vdt(o,a)):rTr(o)?eTr.map(vdt(o,a)):[],2),w=d[0],O=d[1];if(!w&&QSr.isArrayLike(o))return KSr.mergeMap(function(q){return k6e(q,a,u)})(HSr.innerFrom(o));if(!w)throw new TypeError("Invalid event target");return new GSr.Observable(function(q){var K=function(){for(var le=[],ye=0;ye<arguments.length;ye++)le[ye]=arguments[ye];return q.next(1<le.length?le:le[0])};return w(K),function(){return O(K)}})}L9.fromEvent=k6e;function vdt(o,a){return function(u){return function(f){return o[u](a,f)}}}function tTr(o){return v7.isFunction(o.addListener)&&v7.isFunction(o.removeListener)}function rTr(o){return v7.isFunction(o.on)&&v7.isFunction(o.off)}function nTr(o){return v7.isFunction(o.addEventListener)&&v7.isFunction(o.removeEventListener)}});var Sdt=Ve(hpe=>{"use strict";Object.defineProperty(hpe,"__esModule",{value:!0});hpe.fromEventPattern=void 0;var iTr=Vf(),aTr=Pf(),sTr=A6();function xdt(o,a,u){return u?xdt(o,a).pipe(sTr.mapOneOrManyArgs(u)):new iTr.Observable(function(f){var d=function(){for(var O=[],q=0;q<arguments.length;q++)O[q]=arguments[q];return f.next(O.length===1?O[0]:O)},w=o(d);return aTr.isFunction(a)?function(){return a(d,w)}:void 0})}hpe.fromEventPattern=xdt});var wdt=Ve(B9=>{"use strict";var oTr=B9&&B9.__generator||function(o,a){var u={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},f,d,w,O;return O={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function q(le){return function(ye){return K([le,ye])}}function K(le){if(f)throw new TypeError("Generator is already executing.");for(;u;)try{if(f=1,d&&(w=le[0]&2?d.return:le[0]?d.throw||((w=d.return)&&w.call(d),0):d.next)&&!(w=w.call(d,le[1])).done)return w;switch(d=0,w&&(le=[le[0]&2,w.value]),le[0]){case 0:case 1:w=le;break;case 4:return u.label++,{value:le[1],done:!1};case 5:u.label++,d=le[1],le=[0];continue;case 7:le=u.ops.pop(),u.trys.pop();continue;default:if(w=u.trys,!(w=w.length>0&&w[w.length-1])&&(le[0]===6||le[0]===2)){u=0;continue}if(le[0]===3&&(!w||le[1]>w[0]&&le[1]<w[3])){u.label=le[1];break}if(le[0]===6&&u.label<w[1]){u.label=w[1],w=le;break}if(w&&u.label<w[2]){u.label=w[2],u.ops.push(le);break}w[2]&&u.ops.pop(),u.trys.pop();continue}le=a.call(o,u)}catch(ye){le=[6,ye],d=0}finally{f=w=0}if(le[0]&5)throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}};Object.defineProperty(B9,"__esModule",{value:!0});B9.generate=void 0;var Tdt=cv(),cTr=KH(),lTr=nG(),uTr=MNe();function pTr(o,a,u,f,d){var w,O,q,K;arguments.length===1?(w=o,K=w.initialState,a=w.condition,u=w.iterate,O=w.resultSelector,q=O===void 0?Tdt.identity:O,d=w.scheduler):(K=o,!f||cTr.isScheduler(f)?(q=Tdt.identity,d=f):q=f);function le(){var ye;return oTr(this,function(Be){switch(Be.label){case 0:ye=K,Be.label=1;case 1:return!a||a(ye)?[4,q(ye)]:[3,4];case 2:Be.sent(),Be.label=3;case 3:return ye=u(ye),[3,1];case 4:return[2]}})}return lTr.defer(d?function(){return uTr.scheduleIterable(le(),d)}:le)}B9.generate=pTr});var kdt=Ve(ype=>{"use strict";Object.defineProperty(ype,"__esModule",{value:!0});ype.iif=void 0;var fTr=nG();function _Tr(o,a,u){return fTr.defer(function(){return o()?a:u})}ype.iif=_Tr});var Pdt=Ve(vpe=>{"use strict";Object.defineProperty(vpe,"__esModule",{value:!0});vpe.merge=void 0;var dTr=d9(),mTr=zl(),gTr=Yw(),Cdt=jb(),hTr=pO();function yTr(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=Cdt.popScheduler(o),f=Cdt.popNumber(o,1/0),d=o;return d.length?d.length===1?mTr.innerFrom(d[0]):dTr.mergeAll(f)(hTr.from(d,u)):gTr.EMPTY}vpe.merge=yTr});var C6e=Ve(b7=>{"use strict";Object.defineProperty(b7,"__esModule",{value:!0});b7.never=b7.NEVER=void 0;var vTr=Vf(),bTr=ov();b7.NEVER=new vTr.Observable(bTr.noop);function xTr(){return b7.NEVER}b7.never=xTr});var Edt=Ve(bpe=>{"use strict";Object.defineProperty(bpe,"__esModule",{value:!0});bpe.pairs=void 0;var STr=pO();function TTr(o,a){return STr.from(Object.entries(o),a)}bpe.pairs=TTr});var Ndt=Ve(xpe=>{"use strict";Object.defineProperty(xpe,"__esModule",{value:!0});xpe.partition=void 0;var wTr=DAe(),Ddt=dO(),Odt=zl();function kTr(o,a,u){return[Ddt.filter(a,u)(Odt.innerFrom(o)),Ddt.filter(wTr.not(a,u))(Odt.innerFrom(o))]}xpe.partition=kTr});var Adt=Ve(Spe=>{"use strict";Object.defineProperty(Spe,"__esModule",{value:!0});Spe.range=void 0;var CTr=Vf(),PTr=Yw();function ETr(o,a,u){if(a==null&&(a=o,o=0),a<=0)return PTr.EMPTY;var f=a+o;return new CTr.Observable(u?function(d){var w=o;return u.schedule(function(){w<f?(d.next(w++),this.schedule()):d.complete()})}:function(d){for(var w=o;w<f&&!d.closed;)d.next(w++);d.complete()})}Spe.range=ETr});var Idt=Ve(Tpe=>{"use strict";Object.defineProperty(Tpe,"__esModule",{value:!0});Tpe.using=void 0;var DTr=Vf(),OTr=zl(),NTr=Yw();function ATr(o,a){return new DTr.Observable(function(u){var f=o(),d=a(f),w=d?OTr.innerFrom(d):NTr.EMPTY;return w.subscribe(u),function(){f&&f.unsubscribe()}})}Tpe.using=ATr});var Mdt=Ve(Fdt=>{"use strict";Object.defineProperty(Fdt,"__esModule",{value:!0})});var q9=Ve(Mt=>{"use strict";var ITr=Mt&&Mt.__createBinding||(Object.create?function(o,a,u,f){f===void 0&&(f=u),Object.defineProperty(o,f,{enumerable:!0,get:function(){return a[u]}})}:function(o,a,u,f){f===void 0&&(f=u),o[f]=a[u]}),FTr=Mt&&Mt.__exportStar||function(o,a){for(var u in o)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&ITr(a,o,u)};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.interval=Mt.iif=Mt.generate=Mt.fromEventPattern=Mt.fromEvent=Mt.from=Mt.forkJoin=Mt.empty=Mt.defer=Mt.connectable=Mt.concat=Mt.combineLatest=Mt.bindNodeCallback=Mt.bindCallback=Mt.UnsubscriptionError=Mt.TimeoutError=Mt.SequenceError=Mt.ObjectUnsubscribedError=Mt.NotFoundError=Mt.EmptyError=Mt.ArgumentOutOfRangeError=Mt.firstValueFrom=Mt.lastValueFrom=Mt.isObservable=Mt.identity=Mt.noop=Mt.pipe=Mt.NotificationKind=Mt.Notification=Mt.Subscriber=Mt.Subscription=Mt.Scheduler=Mt.VirtualAction=Mt.VirtualTimeScheduler=Mt.animationFrameScheduler=Mt.animationFrame=Mt.queueScheduler=Mt.queue=Mt.asyncScheduler=Mt.async=Mt.asapScheduler=Mt.asap=Mt.AsyncSubject=Mt.ReplaySubject=Mt.BehaviorSubject=Mt.Subject=Mt.animationFrames=Mt.observable=Mt.ConnectableObservable=Mt.Observable=void 0;Mt.filter=Mt.expand=Mt.exhaustMap=Mt.exhaustAll=Mt.exhaust=Mt.every=Mt.endWith=Mt.elementAt=Mt.distinctUntilKeyChanged=Mt.distinctUntilChanged=Mt.distinct=Mt.dematerialize=Mt.delayWhen=Mt.delay=Mt.defaultIfEmpty=Mt.debounceTime=Mt.debounce=Mt.count=Mt.connect=Mt.concatWith=Mt.concatMapTo=Mt.concatMap=Mt.concatAll=Mt.combineLatestWith=Mt.combineLatestAll=Mt.combineAll=Mt.catchError=Mt.bufferWhen=Mt.bufferToggle=Mt.bufferTime=Mt.bufferCount=Mt.buffer=Mt.auditTime=Mt.audit=Mt.config=Mt.NEVER=Mt.EMPTY=Mt.scheduled=Mt.zip=Mt.using=Mt.timer=Mt.throwError=Mt.range=Mt.race=Mt.partition=Mt.pairs=Mt.onErrorResumeNext=Mt.of=Mt.never=Mt.merge=void 0;Mt.switchMap=Mt.switchAll=Mt.subscribeOn=Mt.startWith=Mt.skipWhile=Mt.skipUntil=Mt.skipLast=Mt.skip=Mt.single=Mt.shareReplay=Mt.share=Mt.sequenceEqual=Mt.scan=Mt.sampleTime=Mt.sample=Mt.refCount=Mt.retryWhen=Mt.retry=Mt.repeatWhen=Mt.repeat=Mt.reduce=Mt.raceWith=Mt.publishReplay=Mt.publishLast=Mt.publishBehavior=Mt.publish=Mt.pluck=Mt.pairwise=Mt.onErrorResumeNextWith=Mt.observeOn=Mt.multicast=Mt.min=Mt.mergeWith=Mt.mergeScan=Mt.mergeMapTo=Mt.mergeMap=Mt.flatMap=Mt.mergeAll=Mt.max=Mt.materialize=Mt.mapTo=Mt.map=Mt.last=Mt.isEmpty=Mt.ignoreElements=Mt.groupBy=Mt.first=Mt.findIndex=Mt.find=Mt.finalize=void 0;Mt.zipWith=Mt.zipAll=Mt.withLatestFrom=Mt.windowWhen=Mt.windowToggle=Mt.windowTime=Mt.windowCount=Mt.window=Mt.toArray=Mt.timestamp=Mt.timeoutWith=Mt.timeout=Mt.timeInterval=Mt.throwIfEmpty=Mt.throttleTime=Mt.throttle=Mt.tap=Mt.takeWhile=Mt.takeUntil=Mt.takeLast=Mt.take=Mt.switchScan=Mt.switchMapTo=void 0;var MTr=Vf();Object.defineProperty(Mt,"Observable",{enumerable:!0,get:function(){return MTr.Observable}});var RTr=ZH();Object.defineProperty(Mt,"ConnectableObservable",{enumerable:!0,get:function(){return RTr.ConnectableObservable}});var jTr=VH();Object.defineProperty(Mt,"observable",{enumerable:!0,get:function(){return jTr.observable}});var LTr=$_t();Object.defineProperty(Mt,"animationFrames",{enumerable:!0,get:function(){return LTr.animationFrames}});var BTr=lv();Object.defineProperty(Mt,"Subject",{enumerable:!0,get:function(){return BTr.Subject}});var qTr=AAe();Object.defineProperty(Mt,"BehaviorSubject",{enumerable:!0,get:function(){return qTr.BehaviorSubject}});var JTr=bue();Object.defineProperty(Mt,"ReplaySubject",{enumerable:!0,get:function(){return JTr.ReplaySubject}});var zTr=yue();Object.defineProperty(Mt,"AsyncSubject",{enumerable:!0,get:function(){return zTr.AsyncSubject}});var Rdt=Z_t();Object.defineProperty(Mt,"asap",{enumerable:!0,get:function(){return Rdt.asap}});Object.defineProperty(Mt,"asapScheduler",{enumerable:!0,get:function(){return Rdt.asapScheduler}});var jdt=Rb();Object.defineProperty(Mt,"async",{enumerable:!0,get:function(){return jdt.async}});Object.defineProperty(Mt,"asyncScheduler",{enumerable:!0,get:function(){return jdt.asyncScheduler}});var Ldt=rdt();Object.defineProperty(Mt,"queue",{enumerable:!0,get:function(){return Ldt.queue}});Object.defineProperty(Mt,"queueScheduler",{enumerable:!0,get:function(){return Ldt.queueScheduler}});var Bdt=sdt();Object.defineProperty(Mt,"animationFrame",{enumerable:!0,get:function(){return Bdt.animationFrame}});Object.defineProperty(Mt,"animationFrameScheduler",{enumerable:!0,get:function(){return Bdt.animationFrameScheduler}});var qdt=ldt();Object.defineProperty(Mt,"VirtualTimeScheduler",{enumerable:!0,get:function(){return qdt.VirtualTimeScheduler}});Object.defineProperty(Mt,"VirtualAction",{enumerable:!0,get:function(){return qdt.VirtualAction}});var WTr=SNe();Object.defineProperty(Mt,"Scheduler",{enumerable:!0,get:function(){return WTr.Scheduler}});var UTr=lS();Object.defineProperty(Mt,"Subscription",{enumerable:!0,get:function(){return UTr.Subscription}});var $Tr=YL();Object.defineProperty(Mt,"Subscriber",{enumerable:!0,get:function(){return $Tr.Subscriber}});var Jdt=Ole();Object.defineProperty(Mt,"Notification",{enumerable:!0,get:function(){return Jdt.Notification}});Object.defineProperty(Mt,"NotificationKind",{enumerable:!0,get:function(){return Jdt.NotificationKind}});var VTr=HH();Object.defineProperty(Mt,"pipe",{enumerable:!0,get:function(){return VTr.pipe}});var HTr=ov();Object.defineProperty(Mt,"noop",{enumerable:!0,get:function(){return HTr.noop}});var GTr=cv();Object.defineProperty(Mt,"identity",{enumerable:!0,get:function(){return GTr.identity}});var KTr=pdt();Object.defineProperty(Mt,"isObservable",{enumerable:!0,get:function(){return KTr.isObservable}});var QTr=fdt();Object.defineProperty(Mt,"lastValueFrom",{enumerable:!0,get:function(){return QTr.lastValueFrom}});var XTr=_dt();Object.defineProperty(Mt,"firstValueFrom",{enumerable:!0,get:function(){return XTr.firstValueFrom}});var YTr=aAe();Object.defineProperty(Mt,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return YTr.ArgumentOutOfRangeError}});var ZTr=j6();Object.defineProperty(Mt,"EmptyError",{enumerable:!0,get:function(){return ZTr.EmptyError}});var e2r=GAe();Object.defineProperty(Mt,"NotFoundError",{enumerable:!0,get:function(){return e2r.NotFoundError}});var t2r=HNe();Object.defineProperty(Mt,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return t2r.ObjectUnsubscribedError}});var r2r=HAe();Object.defineProperty(Mt,"SequenceError",{enumerable:!0,get:function(){return r2r.SequenceError}});var n2r=tG();Object.defineProperty(Mt,"TimeoutError",{enumerable:!0,get:function(){return n2r.TimeoutError}});var i2r=iNe();Object.defineProperty(Mt,"UnsubscriptionError",{enumerable:!0,get:function(){return i2r.UnsubscriptionError}});var a2r=mdt();Object.defineProperty(Mt,"bindCallback",{enumerable:!0,get:function(){return a2r.bindCallback}});var s2r=gdt();Object.defineProperty(Mt,"bindNodeCallback",{enumerable:!0,get:function(){return s2r.bindNodeCallback}});var o2r=Hce();Object.defineProperty(Mt,"combineLatest",{enumerable:!0,get:function(){return o2r.combineLatest}});var c2r=YH();Object.defineProperty(Mt,"concat",{enumerable:!0,get:function(){return c2r.concat}});var l2r=hdt();Object.defineProperty(Mt,"connectable",{enumerable:!0,get:function(){return l2r.connectable}});var u2r=nG();Object.defineProperty(Mt,"defer",{enumerable:!0,get:function(){return u2r.defer}});var p2r=Yw();Object.defineProperty(Mt,"empty",{enumerable:!0,get:function(){return p2r.empty}});var f2r=ydt();Object.defineProperty(Mt,"forkJoin",{enumerable:!0,get:function(){return f2r.forkJoin}});var _2r=pO();Object.defineProperty(Mt,"from",{enumerable:!0,get:function(){return _2r.from}});var d2r=bdt();Object.defineProperty(Mt,"fromEvent",{enumerable:!0,get:function(){return d2r.fromEvent}});var m2r=Sdt();Object.defineProperty(Mt,"fromEventPattern",{enumerable:!0,get:function(){return m2r.fromEventPattern}});var g2r=wdt();Object.defineProperty(Mt,"generate",{enumerable:!0,get:function(){return g2r.generate}});var h2r=kdt();Object.defineProperty(Mt,"iif",{enumerable:!0,get:function(){return h2r.iif}});var y2r=JAe();Object.defineProperty(Mt,"interval",{enumerable:!0,get:function(){return y2r.interval}});var v2r=Pdt();Object.defineProperty(Mt,"merge",{enumerable:!0,get:function(){return v2r.merge}});var b2r=C6e();Object.defineProperty(Mt,"never",{enumerable:!0,get:function(){return b2r.never}});var x2r=Ele();Object.defineProperty(Mt,"of",{enumerable:!0,get:function(){return x2r.of}});var S2r=CAe();Object.defineProperty(Mt,"onErrorResumeNext",{enumerable:!0,get:function(){return S2r.onErrorResumeNext}});var T2r=Edt();Object.defineProperty(Mt,"pairs",{enumerable:!0,get:function(){return T2r.pairs}});var w2r=Ndt();Object.defineProperty(Mt,"partition",{enumerable:!0,get:function(){return w2r.partition}});var k2r=RAe();Object.defineProperty(Mt,"race",{enumerable:!0,get:function(){return k2r.race}});var C2r=Adt();Object.defineProperty(Mt,"range",{enumerable:!0,get:function(){return C2r.range}});var P2r=tAe();Object.defineProperty(Mt,"throwError",{enumerable:!0,get:function(){return P2r.throwError}});var E2r=D6();Object.defineProperty(Mt,"timer",{enumerable:!0,get:function(){return E2r.timer}});var D2r=Idt();Object.defineProperty(Mt,"using",{enumerable:!0,get:function(){return D2r.using}});var O2r=ipe();Object.defineProperty(Mt,"zip",{enumerable:!0,get:function(){return O2r.zip}});var N2r=jNe();Object.defineProperty(Mt,"scheduled",{enumerable:!0,get:function(){return N2r.scheduled}});var A2r=Yw();Object.defineProperty(Mt,"EMPTY",{enumerable:!0,get:function(){return A2r.EMPTY}});var I2r=C6e();Object.defineProperty(Mt,"NEVER",{enumerable:!0,get:function(){return I2r.NEVER}});FTr(Mdt(),Mt);var F2r=QL();Object.defineProperty(Mt,"config",{enumerable:!0,get:function(){return F2r.config}});var M2r=Sce();Object.defineProperty(Mt,"audit",{enumerable:!0,get:function(){return M2r.audit}});var R2r=TNe();Object.defineProperty(Mt,"auditTime",{enumerable:!0,get:function(){return R2r.auditTime}});var j2r=wNe();Object.defineProperty(Mt,"buffer",{enumerable:!0,get:function(){return j2r.buffer}});var L2r=CNe();Object.defineProperty(Mt,"bufferCount",{enumerable:!0,get:function(){return L2r.bufferCount}});var B2r=ENe();Object.defineProperty(Mt,"bufferTime",{enumerable:!0,get:function(){return B2r.bufferTime}});var q2r=ONe();Object.defineProperty(Mt,"bufferToggle",{enumerable:!0,get:function(){return q2r.bufferToggle}});var J2r=NNe();Object.defineProperty(Mt,"bufferWhen",{enumerable:!0,get:function(){return J2r.bufferWhen}});var z2r=ANe();Object.defineProperty(Mt,"catchError",{enumerable:!0,get:function(){return z2r.catchError}});var W2r=JNe();Object.defineProperty(Mt,"combineAll",{enumerable:!0,get:function(){return W2r.combineAll}});var U2r=nle();Object.defineProperty(Mt,"combineLatestAll",{enumerable:!0,get:function(){return U2r.combineLatestAll}});var $2r=WNe();Object.defineProperty(Mt,"combineLatestWith",{enumerable:!0,get:function(){return $2r.combineLatestWith}});var V2r=QH();Object.defineProperty(Mt,"concatAll",{enumerable:!0,get:function(){return V2r.concatAll}});var H2r=lle();Object.defineProperty(Mt,"concatMap",{enumerable:!0,get:function(){return H2r.concatMap}});var G2r=$Ne();Object.defineProperty(Mt,"concatMapTo",{enumerable:!0,get:function(){return G2r.concatMapTo}});var K2r=VNe();Object.defineProperty(Mt,"concatWith",{enumerable:!0,get:function(){return K2r.concatWith}});var Q2r=XH();Object.defineProperty(Mt,"connect",{enumerable:!0,get:function(){return Q2r.connect}});var X2r=XNe();Object.defineProperty(Mt,"count",{enumerable:!0,get:function(){return X2r.count}});var Y2r=YNe();Object.defineProperty(Mt,"debounce",{enumerable:!0,get:function(){return Y2r.debounce}});var Z2r=ZNe();Object.defineProperty(Mt,"debounceTime",{enumerable:!0,get:function(){return Z2r.debounceTime}});var ewr=m9();Object.defineProperty(Mt,"defaultIfEmpty",{enumerable:!0,get:function(){return ewr.defaultIfEmpty}});var twr=eAe();Object.defineProperty(Mt,"delay",{enumerable:!0,get:function(){return twr.delay}});var rwr=kle();Object.defineProperty(Mt,"delayWhen",{enumerable:!0,get:function(){return rwr.delayWhen}});var nwr=rAe();Object.defineProperty(Mt,"dematerialize",{enumerable:!0,get:function(){return nwr.dematerialize}});var iwr=nAe();Object.defineProperty(Mt,"distinct",{enumerable:!0,get:function(){return iwr.distinct}});var awr=Fle();Object.defineProperty(Mt,"distinctUntilChanged",{enumerable:!0,get:function(){return awr.distinctUntilChanged}});var swr=iAe();Object.defineProperty(Mt,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return swr.distinctUntilKeyChanged}});var owr=sAe();Object.defineProperty(Mt,"elementAt",{enumerable:!0,get:function(){return owr.elementAt}});var cwr=oAe();Object.defineProperty(Mt,"endWith",{enumerable:!0,get:function(){return cwr.endWith}});var lwr=cAe();Object.defineProperty(Mt,"every",{enumerable:!0,get:function(){return lwr.every}});var uwr=lAe();Object.defineProperty(Mt,"exhaust",{enumerable:!0,get:function(){return uwr.exhaust}});var pwr=$le();Object.defineProperty(Mt,"exhaustAll",{enumerable:!0,get:function(){return pwr.exhaustAll}});var fwr=Wle();Object.defineProperty(Mt,"exhaustMap",{enumerable:!0,get:function(){return fwr.exhaustMap}});var _wr=uAe();Object.defineProperty(Mt,"expand",{enumerable:!0,get:function(){return _wr.expand}});var dwr=dO();Object.defineProperty(Mt,"filter",{enumerable:!0,get:function(){return dwr.filter}});var mwr=pAe();Object.defineProperty(Mt,"finalize",{enumerable:!0,get:function(){return mwr.finalize}});var gwr=Kle();Object.defineProperty(Mt,"find",{enumerable:!0,get:function(){return gwr.find}});var hwr=fAe();Object.defineProperty(Mt,"findIndex",{enumerable:!0,get:function(){return hwr.findIndex}});var ywr=_Ae();Object.defineProperty(Mt,"first",{enumerable:!0,get:function(){return ywr.first}});var vwr=dAe();Object.defineProperty(Mt,"groupBy",{enumerable:!0,get:function(){return vwr.groupBy}});var bwr=xle();Object.defineProperty(Mt,"ignoreElements",{enumerable:!0,get:function(){return bwr.ignoreElements}});var xwr=mAe();Object.defineProperty(Mt,"isEmpty",{enumerable:!0,get:function(){return xwr.isEmpty}});var Swr=gAe();Object.defineProperty(Mt,"last",{enumerable:!0,get:function(){return Swr.last}});var Twr=fO();Object.defineProperty(Mt,"map",{enumerable:!0,get:function(){return Twr.map}});var wwr=Tle();Object.defineProperty(Mt,"mapTo",{enumerable:!0,get:function(){return wwr.mapTo}});var kwr=yAe();Object.defineProperty(Mt,"materialize",{enumerable:!0,get:function(){return kwr.materialize}});var Cwr=vAe();Object.defineProperty(Mt,"max",{enumerable:!0,get:function(){return Cwr.max}});var Pwr=d9();Object.defineProperty(Mt,"mergeAll",{enumerable:!0,get:function(){return Pwr.mergeAll}});var Ewr=xAe();Object.defineProperty(Mt,"flatMap",{enumerable:!0,get:function(){return Ewr.flatMap}});var Dwr=aP();Object.defineProperty(Mt,"mergeMap",{enumerable:!0,get:function(){return Dwr.mergeMap}});var Owr=SAe();Object.defineProperty(Mt,"mergeMapTo",{enumerable:!0,get:function(){return Owr.mergeMapTo}});var Nwr=TAe();Object.defineProperty(Mt,"mergeScan",{enumerable:!0,get:function(){return Nwr.mergeScan}});var Awr=wAe();Object.defineProperty(Mt,"mergeWith",{enumerable:!0,get:function(){return Awr.mergeWith}});var Iwr=kAe();Object.defineProperty(Mt,"min",{enumerable:!0,get:function(){return Iwr.min}});var Fwr=eG();Object.defineProperty(Mt,"multicast",{enumerable:!0,get:function(){return Fwr.multicast}});var Mwr=p9();Object.defineProperty(Mt,"observeOn",{enumerable:!0,get:function(){return Mwr.observeOn}});var Rwr=PAe();Object.defineProperty(Mt,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Rwr.onErrorResumeNextWith}});var jwr=EAe();Object.defineProperty(Mt,"pairwise",{enumerable:!0,get:function(){return jwr.pairwise}});var Lwr=OAe();Object.defineProperty(Mt,"pluck",{enumerable:!0,get:function(){return Lwr.pluck}});var Bwr=NAe();Object.defineProperty(Mt,"publish",{enumerable:!0,get:function(){return Bwr.publish}});var qwr=IAe();Object.defineProperty(Mt,"publishBehavior",{enumerable:!0,get:function(){return qwr.publishBehavior}});var Jwr=FAe();Object.defineProperty(Mt,"publishLast",{enumerable:!0,get:function(){return Jwr.publishLast}});var zwr=MAe();Object.defineProperty(Mt,"publishReplay",{enumerable:!0,get:function(){return zwr.publishReplay}});var Wwr=Sue();Object.defineProperty(Mt,"raceWith",{enumerable:!0,get:function(){return Wwr.raceWith}});var Uwr=f7();Object.defineProperty(Mt,"reduce",{enumerable:!0,get:function(){return Uwr.reduce}});var $wr=jAe();Object.defineProperty(Mt,"repeat",{enumerable:!0,get:function(){return $wr.repeat}});var Vwr=LAe();Object.defineProperty(Mt,"repeatWhen",{enumerable:!0,get:function(){return Vwr.repeatWhen}});var Hwr=BAe();Object.defineProperty(Mt,"retry",{enumerable:!0,get:function(){return Hwr.retry}});var Gwr=qAe();Object.defineProperty(Mt,"retryWhen",{enumerable:!0,get:function(){return Gwr.retryWhen}});var Kwr=lue();Object.defineProperty(Mt,"refCount",{enumerable:!0,get:function(){return Kwr.refCount}});var Qwr=Eue();Object.defineProperty(Mt,"sample",{enumerable:!0,get:function(){return Qwr.sample}});var Xwr=zAe();Object.defineProperty(Mt,"sampleTime",{enumerable:!0,get:function(){return Xwr.sampleTime}});var Ywr=WAe();Object.defineProperty(Mt,"scan",{enumerable:!0,get:function(){return Ywr.scan}});var Zwr=UAe();Object.defineProperty(Mt,"sequenceEqual",{enumerable:!0,get:function(){return Zwr.sequenceEqual}});var ekr=Iue();Object.defineProperty(Mt,"share",{enumerable:!0,get:function(){return ekr.share}});var tkr=VAe();Object.defineProperty(Mt,"shareReplay",{enumerable:!0,get:function(){return tkr.shareReplay}});var rkr=KAe();Object.defineProperty(Mt,"single",{enumerable:!0,get:function(){return rkr.single}});var nkr=QAe();Object.defineProperty(Mt,"skip",{enumerable:!0,get:function(){return nkr.skip}});var ikr=XAe();Object.defineProperty(Mt,"skipLast",{enumerable:!0,get:function(){return ikr.skipLast}});var akr=YAe();Object.defineProperty(Mt,"skipUntil",{enumerable:!0,get:function(){return akr.skipUntil}});var skr=ZAe();Object.defineProperty(Mt,"skipWhile",{enumerable:!0,get:function(){return skr.skipWhile}});var okr=e6e();Object.defineProperty(Mt,"startWith",{enumerable:!0,get:function(){return okr.startWith}});var ckr=f9();Object.defineProperty(Mt,"subscribeOn",{enumerable:!0,get:function(){return ckr.subscribeOn}});var lkr=t6e();Object.defineProperty(Mt,"switchAll",{enumerable:!0,get:function(){return lkr.switchAll}});var ukr=k9();Object.defineProperty(Mt,"switchMap",{enumerable:!0,get:function(){return ukr.switchMap}});var pkr=r6e();Object.defineProperty(Mt,"switchMapTo",{enumerable:!0,get:function(){return pkr.switchMapTo}});var fkr=n6e();Object.defineProperty(Mt,"switchScan",{enumerable:!0,get:function(){return fkr.switchScan}});var _kr=g9();Object.defineProperty(Mt,"take",{enumerable:!0,get:function(){return _kr.take}});var dkr=eue();Object.defineProperty(Mt,"takeLast",{enumerable:!0,get:function(){return dkr.takeLast}});var mkr=i6e();Object.defineProperty(Mt,"takeUntil",{enumerable:!0,get:function(){return mkr.takeUntil}});var gkr=a6e();Object.defineProperty(Mt,"takeWhile",{enumerable:!0,get:function(){return gkr.takeWhile}});var hkr=s6e();Object.defineProperty(Mt,"tap",{enumerable:!0,get:function(){return hkr.tap}});var ykr=Xue();Object.defineProperty(Mt,"throttle",{enumerable:!0,get:function(){return ykr.throttle}});var vkr=o6e();Object.defineProperty(Mt,"throttleTime",{enumerable:!0,get:function(){return vkr.throttleTime}});var bkr=h9();Object.defineProperty(Mt,"throwIfEmpty",{enumerable:!0,get:function(){return bkr.throwIfEmpty}});var xkr=c6e();Object.defineProperty(Mt,"timeInterval",{enumerable:!0,get:function(){return xkr.timeInterval}});var Skr=tG();Object.defineProperty(Mt,"timeout",{enumerable:!0,get:function(){return Skr.timeout}});var Tkr=l6e();Object.defineProperty(Mt,"timeoutWith",{enumerable:!0,get:function(){return Tkr.timeoutWith}});var wkr=u6e();Object.defineProperty(Mt,"timestamp",{enumerable:!0,get:function(){return wkr.timestamp}});var kkr=ele();Object.defineProperty(Mt,"toArray",{enumerable:!0,get:function(){return kkr.toArray}});var Ckr=p6e();Object.defineProperty(Mt,"window",{enumerable:!0,get:function(){return Ckr.window}});var Pkr=f6e();Object.defineProperty(Mt,"windowCount",{enumerable:!0,get:function(){return Pkr.windowCount}});var Ekr=_6e();Object.defineProperty(Mt,"windowTime",{enumerable:!0,get:function(){return Ekr.windowTime}});var Dkr=m6e();Object.defineProperty(Mt,"windowToggle",{enumerable:!0,get:function(){return Dkr.windowToggle}});var Okr=g6e();Object.defineProperty(Mt,"windowWhen",{enumerable:!0,get:function(){return Okr.windowWhen}});var Nkr=h6e();Object.defineProperty(Mt,"withLatestFrom",{enumerable:!0,get:function(){return Nkr.withLatestFrom}});var Akr=v6e();Object.defineProperty(Mt,"zipAll",{enumerable:!0,get:function(){return Akr.zipAll}});var Ikr=b6e();Object.defineProperty(Mt,"zipWith",{enumerable:!0,get:function(){return Ikr.zipWith}})});function zdt(o,a){var u=a.selector,f=o.indexes?o.indexes.slice(0):[];a.index&&(f=[a.index]);var d=!!a.sort.find(ye=>Object.values(ye)[0]==="desc"),w=new Set;Object.keys(u).forEach(ye=>{var Be=cO(o,ye);Be&&Be.type==="boolean"&&Object.prototype.hasOwnProperty.call(u[ye],"$eq")&&w.add(ye)});var O=a.sort.map(ye=>Object.keys(ye)[0]),q=O.filter(ye=>!w.has(ye)).join(","),K=-1,le;if(f.forEach(ye=>{var Be=!0,ce=!0,mt=ye.map(si=>{var Oi=u[si],ys=Oi?Object.keys(Oi):[],ns={};if(!Oi||!ys.length){var sn=ce?S7:x7;ns={startKey:sn,endKey:Be?x7:S7,inclusiveStart:!0,inclusiveEnd:!0}}else ys.forEach(Ir=>{if(wpe.has(Ir)){var Ks=Oi[Ir],Va=jkr(Ir,Ks);ns=Object.assign(ns,Va)}});return typeof ns.startKey>"u"&&(ns.startKey=S7),typeof ns.endKey>"u"&&(ns.endKey=x7),typeof ns.inclusiveStart>"u"&&(ns.inclusiveStart=!0),typeof ns.inclusiveEnd>"u"&&(ns.inclusiveEnd=!0),ce&&!ns.inclusiveStart&&(ce=!1),Be&&!ns.inclusiveEnd&&(Be=!1),ns}),Re=mt.map(si=>si.startKey),Ge=mt.map(si=>si.endKey),_r={index:ye,startKeys:Re,endKeys:Ge,inclusiveEnd:Be,inclusiveStart:ce,sortSatisfiedByIndex:!d&&q===ye.filter(si=>!w.has(si)).join(","),selectorSatisfiedByIndex:Rkr(ye,a.selector,Re,Ge)},jr=Lkr(o,a,_r);(jr>=K||a.index)&&(K=jr,le=_r)}),!le)throw mo("SNH",{query:a});return le}function Rkr(o,a,u,f){var d=Object.entries(a),w=d.find(([Ir,Ks])=>{if(!o.includes(Ir))return!0;var Va=Object.entries(Ks).find(([up,Ta])=>!wpe.has(up));return Va});if(w||a.$and||a.$or)return!1;var O=[],q=new Set;for(var[K,le]of Object.entries(a)){if(!o.includes(K))return!1;var ye=Object.keys(le).filter(Ir=>Fkr.has(Ir));if(ye.length>1)return!1;var Be=ye[0];if(Be&&q.add(K),Be!=="$eq"){if(O.length>0)return!1;O.push(Be)}}var ce=[],mt=new Set;for(var[Re,Ge]of Object.entries(a)){if(!o.includes(Re))return!1;var _r=Object.keys(Ge).filter(Ir=>Mkr.has(Ir));if(_r.length>1)return!1;var jr=_r[0];if(jr&&mt.add(Re),jr!=="$eq"){if(ce.length>0)return!1;ce.push(jr)}}var si=0;for(var Oi of o){for(var ys of[q,mt]){if(!ys.has(Oi)&&ys.size>0)return!1;ys.delete(Oi)}var ns=u[si],sn=f[si];if(ns!==sn&&q.size>0&&mt.size>0)return!1;si++}return!0}function jkr(o,a){switch(o){case"$eq":return{startKey:a,endKey:a,inclusiveEnd:!0,inclusiveStart:!0};case"$lte":return{endKey:a,inclusiveEnd:!0};case"$gte":return{startKey:a,inclusiveStart:!0};case"$lt":return{endKey:a,inclusiveEnd:!1};case"$gt":return{startKey:a,inclusiveStart:!1};default:throw new Error("SNH")}}function Lkr(o,a,u){var f=0,d=ye=>{ye>0&&(f=f+ye)},w=10,O=Joe(u.startKeys,ye=>ye!==S7&&ye!==x7);d(O*w);var q=Joe(u.startKeys,ye=>ye!==x7&&ye!==S7);d(q*w);var K=Joe(u.startKeys,(ye,Be)=>ye===u.endKeys[Be]);d(K*w*1.5);var le=u.sortSatisfiedByIndex?5:0;return d(le),f}var x7,S7,wpe,Fkr,Mkr,kpe=mi(()=>{O_();ng();Qw();x7="\uFFFF",S7=Number.MIN_SAFE_INTEGER;wpe=new Set(["$eq","$gt","$gte","$lt","$lte"]),Fkr=new Set(["$eq","$gt","$gte"]),Mkr=new Set(["$eq","$lt","$lte"])});var qi=Ve((Vhn,rmt)=>{var N6e=Object.defineProperty,Bkr=Object.getOwnPropertyDescriptor,qkr=Object.getOwnPropertyNames,Jkr=Object.prototype.hasOwnProperty,zkr=(o,a)=>{for(var u in a)N6e(o,u,{get:a[u],enumerable:!0})},Wkr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of qkr(a))!Jkr.call(o,d)&&d!==u&&N6e(o,d,{get:()=>a[d],enumerable:!(f=Bkr(a,d))||f.enumerable});return o},Ukr=o=>Wkr(N6e({},"__esModule",{value:!0}),o),$dt={};zkr($dt,{MingoError:()=>Ppe,ValueMap:()=>J9,assert:()=>Qdt,cloneDeep:()=>E6e,compare:()=>Kdt,ensureArray:()=>Kkr,filterMissing:()=>O6e,findInsertIndex:()=>lCr,flatten:()=>Ykr,groupBy:()=>tCr,has:()=>M6e,hashCode:()=>emt,intersection:()=>Xkr,into:()=>rCr,isArray:()=>_0,isBoolean:()=>A6e,isDate:()=>Npe,isEmpty:()=>Gkr,isEqual:()=>z9,isFunction:()=>F6e,isNil:()=>Y6,isNotNaN:()=>Vkr,isNumber:()=>I6e,isObject:()=>X6,isObjectLike:()=>Ope,isOperator:()=>tmt,isRegExp:()=>cG,isString:()=>Dpe,isSymbol:()=>Xdt,merge:()=>Ydt,normalize:()=>cCr,removeValue:()=>sCr,resolve:()=>iCr,resolveGraph:()=>Cpe,setValue:()=>aCr,stringify:()=>iG,truthy:()=>Hkr,typeOf:()=>Epe,unique:()=>eCr,walk:()=>sG});rmt.exports=Ukr($dt);var Ppe=class extends Error{},aG=Symbol("missing"),Vdt=Object.freeze(new Error("mingo: cycle detected while processing object/array")),oG=o=>{let a=iG(o),u=0,f=a.length;for(;f;)u=(u<<5)-u^a.charCodeAt(--f);return u>>>0},Q6=o=>typeof o!="object"&&typeof o!="function"||o===null,Hdt=o=>Q6(o)||Npe(o)||cG(o),Gdt={undefined:1,null:2,number:3,string:4,symbol:5,object:6,array:7,arraybuffer:8,boolean:9,date:10,regexp:11,function:12},Kdt=(o,a)=>{o===aG&&(o=void 0),a===aG&&(a=void 0);let[u,f]=[o,a].map(d=>Gdt[Epe(d)]||0);return u!==f?u-f:z9(o,a)?0:o<a?-1:o>a?1:0},J9=class o extends Map{#e=oG;#t=new Map;#r=a=>{let u=this.#e(a);return[(this.#t.get(u)||[]).find(f=>z9(f,a)),u]};constructor(){super()}static init(a){let u=new o;return a&&(u.#e=a),u}clear(){super.clear(),this.#t.clear()}delete(a){if(Q6(a))return super.delete(a);let[u,f]=this.#r(a);return super.delete(u)?(this.#t.set(f,this.#t.get(f).filter(d=>!z9(d,u))),!0):!1}get(a){if(Q6(a))return super.get(a);let[u,f]=this.#r(a);return super.get(u)}has(a){if(Q6(a))return super.has(a);let[u,f]=this.#r(a);return super.has(u)}set(a,u){if(Q6(a))return super.set(a,u);let[f,d]=this.#r(a);if(super.has(f))super.set(f,u);else{super.set(a,u);let w=this.#t.get(d)||[];w.push(a),this.#t.set(d,w)}return this}get size(){return super.size}};function Qdt(o,a){if(!o)throw new Ppe(a)}var $kr=Object.keys(Gdt).reduce((o,a)=>(o["[object "+a[0].toUpperCase()+a.substring(1)+"]"]=a,o),{});function Epe(o){let a=Object.prototype.toString.call(o);return a==="[object Object]"?o?.constructor?.name?.toLowerCase()||"object":$kr[a]||a.substring(8,a.length-1).toLowerCase()}var A6e=o=>typeof o=="boolean",Dpe=o=>typeof o=="string",Xdt=o=>typeof o=="symbol",I6e=o=>!isNaN(o)&&typeof o=="number",Vkr=o=>!(isNaN(o)&&typeof o=="number"),_0=Array.isArray;function X6(o){if(!o)return!1;let a=Object.getPrototypeOf(o);return(a===Object.prototype||a===null)&&Epe(o)==="object"}var Ope=o=>!Q6(o),Npe=o=>o instanceof Date,cG=o=>o instanceof RegExp,F6e=o=>typeof o=="function",Y6=o=>o==null,Hkr=(o,a=!0)=>!!o||a&&o==="",Gkr=o=>Y6(o)||Dpe(o)&&!o||_0(o)&&o.length===0||X6(o)&&Object.keys(o).length===0,Kkr=o=>_0(o)?o:[o],M6e=(o,a)=>!!o&&Object.prototype.hasOwnProperty.call(o,a),Qkr=o=>typeof ArrayBuffer<"u"&&ArrayBuffer.isView(o),E6e=(o,a)=>{if(Y6(o)||A6e(o)||I6e(o)||Dpe(o))return o;if(Npe(o))return new Date(o);if(cG(o))return new RegExp(o);if(Qkr(o)){let u=o.constructor;return new u(o)}if(a instanceof Set||(a=new Set),a.has(o))throw Vdt;a.add(o);try{if(_0(o)){let u=new Array(o.length);for(let f=0;f<o.length;f++)u[f]=E6e(o[f],a);return u}if(X6(o)){let u={};for(let f of Object.keys(o))u[f]=E6e(o[f],a);return u}}finally{a.delete(o)}return o},Wdt=o=>o===aG;function Ydt(o,a){if(Wdt(o)||Y6(o))return a;if(Wdt(a)||Y6(a))return o;if(Q6(o)||Q6(a))return a;_0(o)&&_0(a)&&Qdt(o.length===a.length,"arrays must be of equal length to merge.");for(let u of Object.keys(a))o[u]=Ydt(o[u],a[u]);return o}function Xkr(o,a=oG){let u=[J9.init(a),J9.init(a)];if(o.length===0)return[];if(o.some(f=>f.length===0))return[];if(o.length===1)return[...o];o[o.length-1].forEach(f=>u[0].set(f,!0));for(let f=o.length-2;f>-1;f--){if(o[f].forEach(d=>{u[0].has(d)&&u[1].set(d,!0)}),u[1].size===0)return[];u.reverse(),u[1].clear()}return Array.from(u[0].keys())}function Ykr(o,a=1){let u=new Array;function f(d,w){for(let O=0,q=d.length;O<q;O++)_0(d[O])&&(w>0||w<0)?f(d[O],Math.max(-1,w-1)):u.push(d[O])}return f(o,a),u}function Zkr(o){let a={};for(;o;){for(let u of Object.getOwnPropertyNames(o))u in a||(a[u]=o[u]);o=Object.getPrototypeOf(o)}return a}function Zdt(o){for(;o;){if(Object.getOwnPropertyNames(o).includes("toString"))return o.toString!==Object.prototype.toString;o=Object.getPrototypeOf(o)}return!1}function z9(o,a){if(o===a||Object.is(o,a))return!0;if(o===null||a===null||typeof o!=typeof a||typeof o!="object"||o.constructor!==a.constructor)return!1;if(o instanceof Date)return+o==+a;if(o instanceof RegExp)return o.toString()===a.toString();let u=o.constructor;if(u===Array||u===Object){let f=Object.keys(o).sort(),d=Object.keys(a).sort();if(f.length!==d.length)return!1;for(let w=0,O=f[w];w<f.length;O=f[++w])if(O!==d[w]||!z9(o[O],a[O]))return!1;return!0}return Zdt(o)&&o.toString()===a.toString()}function eCr(o,a=oG){let u=J9.init(a);return o.forEach(f=>u.set(f,!0)),Array.from(u.keys())}var iG=(o,a)=>{if(o===null)return"null";if(o===void 0)return"undefined";if(Dpe(o)||I6e(o)||A6e(o))return JSON.stringify(o);if(Npe(o))return o.toISOString();if(cG(o)||Xdt(o)||F6e(o))return o.toString();if(a instanceof Set||(a=new Set),a.has(o))throw Vdt;try{if(a.add(o),_0(o))return"["+o.map(f=>iG(f,a)).join(",")+"]";if(X6(o))return"{"+Object.keys(o).sort().map(d=>`${d}:${iG(o[d],a)}`).join()+"}";let u=Zdt(o)?o.toString():iG(Zkr(o),a);return Epe(o)+"("+u+")"}finally{a.delete(o)}};function emt(o,a){return Y6(o)?null:(a=a||oG,a(o))}function tCr(o,a,u=oG){if(o.length<1)return new Map;let f=new Map,d=new Map;for(let w=0;w<o.length;w++){let O=o[w],q=a(O,w),K=emt(q,u);if(K===null)d.has(null)?d.get(null).push(O):d.set(null,[O]);else{let le=f.has(K)?f.get(K).find(ye=>z9(ye,q)):null;Y6(le)?(d.set(q,[O]),f.has(K)?f.get(K).push(q):f.set(K,[q])):d.get(le).push(O)}}return d}var P6e=5e4;function rCr(o,...a){if(_0(o)){for(let u of a){let f=Math.ceil(u.length/P6e),d=0;for(;f-- >0;)Array.prototype.push.apply(o,u.slice(d,d+P6e)),d+=P6e}return o}else return a.filter(Ope).reduce((u,f)=>(Object.assign(u,f),u),o)}function D6e(o,a){return Ope(o)?o[a]:void 0}function nCr(o,a){if(a<1)return o;for(;a--&&o.length===1;)o=o[0];return o}function iCr(o,a,u){let f=0;function d(O,q){let K=O;for(let le=0;le<q.length;le++){let ye=q[le];if(/^\d+$/.exec(ye)===null&&_0(K)){if(le===0&&f>0)break;f+=1;let ce=q.slice(le);K=K.reduce((mt,Re)=>{let Ge=d(Re,ce);return Ge!==void 0&&mt.push(Ge),mt},[]);break}else K=D6e(K,ye);if(K===void 0)break}return K}let w=Hdt(o)?o:d(o,a.split("."));return _0(w)&&u?.unwrapArray?nCr(w,f):w}function Cpe(o,a,u){let f=a.indexOf("."),d=f==-1?a:a.substring(0,f),w=a.substring(f+1),O=f!=-1;if(_0(o)){let le=/^\d+$/.test(d),ye=le&&u?.preserveIndex?[...o]:[];if(le){let Be=parseInt(d),ce=D6e(o,Be);O&&(ce=Cpe(ce,w,u)),u?.preserveIndex?ye[Be]=ce:ye.push(ce)}else for(let Be of o){let ce=Cpe(Be,a,u);u?.preserveMissing?ye.push(ce??aG):(ce!=null||u?.preserveIndex)&&ye.push(ce)}return ye}let q=u?.preserveKeys?{...o}:{},K=D6e(o,d);if(O&&(K=Cpe(K,w,u)),K!==void 0)return q[d]=K,q}function O6e(o){if(_0(o))for(let a=o.length-1;a>=0;a--)o[a]===aG?o.splice(a,1):O6e(o[a]);else if(X6(o))for(let a in o)M6e(o,a)&&O6e(o[a])}var Udt=/^\d+$/;function sG(o,a,u,f){let d=a.split("."),w=d[0],O=d.slice(1).join(".");if(d.length===1)(X6(o)||_0(o)&&Udt.test(w))&&u(o,w);else{f?.buildGraph&&Y6(o[w])&&(o[w]={});let q=o[w];if(!q)return;let K=!!(d.length>1&&Udt.test(d[1]));_0(q)&&f?.descendArray&&!K?q.forEach(le=>sG(le,O,u,f)):sG(q,O,u,f)}}function aCr(o,a,u){sG(o,a,(f,d)=>{f[d]=F6e(u)?u(f[d]):u},{buildGraph:!0})}function sCr(o,a,u){sG(o,a,(f,d)=>{if(_0(f)){if(/^\d+$/.test(d))f.splice(parseInt(d),1);else if(u&&u.descendArray)for(let w of f)X6(w)&&delete w[d]}else X6(f)&&delete f[d]},u)}var oCr=/^\$[a-zA-Z0-9_]+$/;function tmt(o){return oCr.test(o)}function cCr(o){if(Hdt(o))return cG(o)?{$regex:o}:{$eq:o};if(Ope(o)){if(!Object.keys(o).some(tmt))return{$eq:o};if(M6e(o,"$regex")){let a={...o};return a.$regex=new RegExp(o.$regex,o.$options),delete a.$options,a}}return o}function lCr(o,a,u=Kdt){let f=0,d=o.length-1;for(;f<=d;){let w=Math.round(f+(d-f)/2);if(u(a,o[w])<0)d=w-1;else if(u(a,o[w])>0)f=w+1;else return w}return f}});var Ji=Ve((Hhn,cmt)=>{var j6e=Object.defineProperty,uCr=Object.getOwnPropertyDescriptor,pCr=Object.getOwnPropertyNames,fCr=Object.prototype.hasOwnProperty,_Cr=(o,a)=>{for(var u in a)j6e(o,u,{get:a[u],enumerable:!0})},dCr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of pCr(a))!fCr.call(o,d)&&d!==u&&j6e(o,d,{get:()=>a[d],enumerable:!(f=uCr(a,d))||f.enumerable});return o},mCr=o=>dCr(j6e({},"__esModule",{value:!0}),o),nmt={};_Cr(nmt,{ComputeOptions:()=>lG,Context:()=>w7,OperatorType:()=>amt,ProcessingMode:()=>imt,computeValue:()=>smt,getOperator:()=>Ape,initOptions:()=>gCr,redact:()=>R6e,useOperators:()=>hCr});cmt.exports=mCr(nmt);var kd=qi(),imt=(o=>(o[o.CLONE_OFF=0]="CLONE_OFF",o[o.CLONE_INPUT=1]="CLONE_INPUT",o[o.CLONE_OUTPUT=2]="CLONE_OUTPUT",o[o.CLONE_ALL=3]="CLONE_ALL",o))(imt||{}),lG=class o{#e;#t;#r;constructor(a,u,f){this.#e=a,this.update(u,f)}static init(a,u,f){return a instanceof o?new o(a.#e,a.root??u,{...a.#r,...f,variables:Object.assign({},a.#r?.variables,f?.variables)}):new o(a,u,f)}update(a,u){this.#t=a;let f=Object.assign({},this.#r?.variables,u?.variables);return Object.keys(f).length?this.#r={...u,variables:f}:this.#r=u??{},this}getOptions(){return Object.freeze({...this.#e,context:w7.from(this.#e.context)})}get root(){return this.#t}get local(){return this.#r}get idKey(){return this.#e.idKey}get collation(){return this.#e?.collation}get processingMode(){return this.#e?.processingMode||0}get useStrictMode(){return this.#e?.useStrictMode}get scriptEnabled(){return this.#e?.scriptEnabled}get useGlobalContext(){return this.#e?.useGlobalContext}get hashFunction(){return this.#e?.hashFunction}get collectionResolver(){return this.#e?.collectionResolver}get jsonSchemaValidator(){return this.#e?.jsonSchemaValidator}get variables(){return this.#e?.variables}get context(){return this.#e?.context}};function gCr(o){return o instanceof lG?o.getOptions():Object.freeze({idKey:"_id",scriptEnabled:!0,useStrictMode:!0,useGlobalContext:!0,processingMode:0,...o,context:o?.context?w7.from(o?.context):w7.init()})}var amt=(o=>(o.ACCUMULATOR="accumulator",o.EXPRESSION="expression",o.PIPELINE="pipeline",o.PROJECTION="projection",o.QUERY="query",o.WINDOW="window",o))(amt||{}),w7=class o{#e=new Map;constructor(){}static init(){return new o}static from(a){let u=o.init();return(0,kd.isNil)(a)||a.#e.forEach((f,d)=>u.addOperators(d,f)),u}addOperators(a,u){this.#e.has(a)||this.#e.set(a,{});for(let[f,d]of Object.entries(u))this.getOperator(a,f)||(this.#e.get(a)[f]=d);return this}getOperator(a,u){return(this.#e.get(a)??{})[u]??null}addAccumulatorOps(a){return this.addOperators("accumulator",a)}addExpressionOps(a){return this.addOperators("expression",a)}addQueryOps(a){return this.addOperators("query",a)}addPipelineOps(a){return this.addOperators("pipeline",a)}addProjectionOps(a){return this.addOperators("projection",a)}addWindowOps(a){return this.addOperators("window",a)}},T7=w7.init();function hCr(o,a){for(let[u,f]of Object.entries(a)){(0,kd.assert)((0,kd.isFunction)(f)&&(0,kd.isOperator)(u),`'${u}' is not a valid operator`);let d=Ape(o,u,null);(0,kd.assert)(!d||f===d,`${u} already exists for '${o}' operators. Cannot change operator function once registered.`)}switch(o){case"accumulator":T7.addAccumulatorOps(a);break;case"expression":T7.addExpressionOps(a);break;case"pipeline":T7.addPipelineOps(a);break;case"projection":T7.addProjectionOps(a);break;case"query":T7.addQueryOps(a);break;case"window":T7.addWindowOps(a);break}}function Ape(o,a,u){let{context:f,useGlobalContext:d}=u||{},w=f?f.getOperator(o,a):null;return!w&&d?T7.getOperator(o,a):w}function smt(o,a,u,f){let d=lG.init(f,o);return u&&(0,kd.isOperator)(u)?omt(o,a,u,d):Ipe(o,a,d)}var yCr=["$$ROOT","$$CURRENT","$$REMOVE","$$NOW"];function Ipe(o,a,u){if((0,kd.isString)(a)&&a.length>0&&a[0]==="$"){if(vCr.includes(a))return a;let f=u.root,d=a.split(".");if(yCr.includes(d[0])){switch(d[0]){case"$$ROOT":break;case"$$CURRENT":f=o;break;case"$$REMOVE":f=void 0;break;case"$$NOW":f=new Date;break}a=a.slice(d[0].length+1)}else if(d[0].slice(0,2)==="$$"){f=Object.assign({},u.variables,{this:o},u?.local?.variables);let w=d[0].slice(2);(0,kd.assert)((0,kd.has)(f,w),`Use of undefined variable: ${w}`),a=a.slice(2)}else a=a.slice(1);return a===""?f:(0,kd.resolve)(f,a)}if((0,kd.isArray)(a))return a.map(f=>Ipe(o,f,u));if((0,kd.isObject)(a)){let f={},d=Object.entries(a);for(let[w,O]of d){if((0,kd.isOperator)(w))return(0,kd.assert)(d.length==1,"expression must have single operator."),omt(o,O,w,u);f[w]=Ipe(o,O,u)}return f}return a}function omt(o,a,u,f){let d=Ape("expression",u,f);if(d)return d(o,a,f);let w=Ape("accumulator",u,f);return(0,kd.assert)(!!w,`accumulator '${u}' is not registered.`),(0,kd.isArray)(o)||(o=Ipe(o,a,f),a=null),(0,kd.assert)((0,kd.isArray)(o),`arguments must resolve to array for ${u}.`),w(o,a,f)}var vCr=["$$KEEP","$$PRUNE","$$DESCEND"];function R6e(o,a,u){let f=smt(o,a,null,u);switch(f){case"$$KEEP":return o;case"$$PRUNE":return;case"$$DESCEND":{if(!(0,kd.has)(a,"$cond"))return o;let d={};for(let[w,O]of Object.entries(o))if((0,kd.isArray)(O)){let q=new Array;for(let K of O)(0,kd.isObject)(K)&&(K=R6e(K,a,u.update(K))),(0,kd.isNil)(K)||q.push(K);d[w]=q}else if((0,kd.isObject)(O)){let q=R6e(O,a,u.update(O));(0,kd.isNil)(q)||(d[w]=q)}else d[w]=O;return d}default:return f}}});var Lb=Ve((Ghn,pmt)=>{var B6e=Object.defineProperty,bCr=Object.getOwnPropertyDescriptor,xCr=Object.getOwnPropertyNames,SCr=Object.prototype.hasOwnProperty,TCr=(o,a)=>{for(var u in a)B6e(o,u,{get:a[u],enumerable:!0})},wCr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of xCr(a))!SCr.call(o,d)&&d!==u&&B6e(o,d,{get:()=>a[d],enumerable:!(f=bCr(a,d))||f.enumerable});return o},kCr=o=>wCr(B6e({},"__esModule",{value:!0}),o),umt={};TCr(umt,{Iterator:()=>uG,Lazy:()=>Fpe,concat:()=>CCr});pmt.exports=kCr(umt);var lmt=qi();function Fpe(o){return o instanceof uG?o:new uG(o)}function CCr(...o){let a=0;return Fpe(()=>{for(;a<o.length;){let u=o[a].next();if(!u.done)return u;a++}return{done:!0}})}function PCr(o){return!!o&&typeof o=="object"&&o?.next instanceof Function}function ECr(o,a){let u=o.slice(a+1);o.splice(a),Array.prototype.push.apply(o,u)}var L6e=new Error;function DCr(o,a,u){let f=!1,d=-1,w=0;return function(O){try{e:for(;!f;){let q=o();d++;let K=-1,le=a.length,ye=!1;for(;++K<le;){let Be=a[K];switch(Be.action){case 0:q=Be.func(q,d);break;case 1:if(!Be.func(q,d))continue e;break;case 2:--Be.count,Be.count||(ye=!0);break;case 3:--Be.count,Be.count||ECr(a,K);continue e;default:break e}}if(f=ye,O)u[w++]=q;else return{value:q,done:!1}}}catch(q){if(q!==L6e)throw q}return f=!0,{done:f}}}var uG=class{constructor(a){this.#e=[],this.#t=[],this.isDone=!1;let u;if(a instanceof Function&&(a={next:a}),PCr(a)){let f=a;u=()=>{let d=f.next();if(d.done)throw L6e;return d.value}}else if((0,lmt.isArray)(a)){let f=a,d=f.length,w=0;u=()=>{if(w<d)return f[w++];throw L6e}}else if(!(a instanceof Function))throw new lmt.MingoError("Lazy must be initialized with an array, generator, or function.");this.#r=DCr(u,this.#e,this.#t)}#e;#t;#r;push(a,u){return typeof u=="function"?this.#e.push({action:a,func:u}):typeof u=="number"&&this.#e.push({action:a,count:u}),this}next(){return this.#r()}map(a){return this.push(0,a)}filter(a){return this.push(1,a)}take(a){return a>0?this.push(2,a):this}drop(a){return a>0?this.push(3,a):this}transform(a){let u=this,f;return Fpe(()=>(f||(f=Fpe(a(u.value()))),f.next()))}value(){return this.isDone||(this.isDone=this.#r(!0).done),this.#t}each(a){for(;;){let u=this.next();if(u.done)break;if(a(u.value)===!1)return!1}return!0}reduce(a,u){let f=this.next();for(u===void 0&&!f.done&&(u=f.value,f=this.next());!f.done;)u=a(u,f.value),f=this.next();return u}size(){return this.reduce((a,u)=>++a,0)}[Symbol.iterator](){return this}}});var J6e=Ve((Khn,_mt)=>{var q6e=Object.defineProperty,OCr=Object.getOwnPropertyDescriptor,NCr=Object.getOwnPropertyNames,ACr=Object.prototype.hasOwnProperty,ICr=(o,a)=>{for(var u in a)q6e(o,u,{get:a[u],enumerable:!0})},FCr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of NCr(a))!ACr.call(o,d)&&d!==u&&q6e(o,d,{get:()=>a[d],enumerable:!(f=OCr(a,d))||f.enumerable});return o},MCr=o=>FCr(q6e({},"__esModule",{value:!0}),o),fmt={};ICr(fmt,{$limit:()=>RCr});_mt.exports=MCr(fmt);var RCr=(o,a,u)=>o.take(a)});var Mpe=Ve((Qhn,hmt)=>{var z6e=Object.defineProperty,jCr=Object.getOwnPropertyDescriptor,LCr=Object.getOwnPropertyNames,BCr=Object.prototype.hasOwnProperty,qCr=(o,a)=>{for(var u in a)z6e(o,u,{get:a[u],enumerable:!0})},JCr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of LCr(a))!BCr.call(o,d)&&d!==u&&z6e(o,d,{get:()=>a[d],enumerable:!(f=jCr(a,d))||f.enumerable});return o},zCr=o=>JCr(z6e({},"__esModule",{value:!0}),o),dmt={};qCr(dmt,{$project:()=>WCr});hmt.exports=zCr(dmt);var k7=Ji(),sd=qi(),WCr=(o,a,u)=>(0,sd.isEmpty)(a)?o:(gmt(a,u),o.map(mmt(a,k7.ComputeOptions.init(u))));function mmt(o,a,u=!0){let f=a.idKey,d=Object.keys(o),w=new Array,O=new Array,q={};for(let mt of d){let Re=o[mt];if((0,sd.isNumber)(Re)||(0,sd.isBoolean)(Re))Re?O.push(mt):w.push(mt);else if((0,sd.isArray)(Re))q[mt]=Ge=>Re.map(_r=>(0,k7.computeValue)(Ge,_r,null,a.update(Ge))??null);else if((0,sd.isObject)(Re)){let Ge=Object.keys(Re),_r=Ge.length==1?Ge[0]:"",jr=(0,k7.getOperator)("projection",_r,a);jr?_r==="$slice"&&!(0,sd.ensureArray)(Re[_r]).every(sd.isNumber)?q[mt]=Oi=>(0,k7.computeValue)(Oi,Re,mt,a.update(Oi)):q[mt]=Oi=>jr(Oi,Re[_r],mt,a.update(Oi)):(0,sd.isOperator)(_r)?q[mt]=si=>(0,k7.computeValue)(si,Re[_r],_r,a):(gmt(Re,a),q[mt]=si=>{if(!(0,sd.has)(si,mt))return(0,k7.computeValue)(si,Re,null,a);u&&a.update(si);let Oi=(0,sd.resolve)(si,mt),ys=mmt(Re,a,!1);return(0,sd.isArray)(Oi)?Oi.map(ys):(0,sd.isObject)(Oi)?ys(Oi):ys(si)})}else q[mt]=(0,sd.isString)(Re)&&Re[0]==="$"?Ge=>(0,k7.computeValue)(Ge,Re,mt,a):Ge=>Re}let K=Object.keys(q),le=w.includes(f);if(u&&le&&w.length===1&&!O.length&&!K.length)return mt=>{let Re={...mt};return delete Re[f],Re};let Be=u&&!le&&!O.includes(f),ce={preserveMissing:!0};return mt=>{let Re={};if(w.length&&!O.length){(0,sd.merge)(Re,mt);for(let Ge of w)(0,sd.removeValue)(Re,Ge,{descendArray:!0})}for(let Ge of O){let _r=(0,sd.resolveGraph)(mt,Ge,ce)??{};(0,sd.merge)(Re,_r)}O.length&&(0,sd.filterMissing)(Re);for(let Ge of K){let _r=q[Ge](mt);_r===void 0?(0,sd.removeValue)(Re,Ge,{descendArray:!0}):(0,sd.setValue)(Re,Ge,_r)}return Be&&(0,sd.has)(mt,f)&&(Re[f]=(0,sd.resolve)(mt,f)),Re}}function gmt(o,a){let u=!1,f=!1;for(let[d,w]of Object.entries(o))(0,sd.assert)(!d.startsWith("$"),"Field names may not start with '$'."),(0,sd.assert)(!d.endsWith(".$"),"Positional projection operator '$' is not supported."),d!==a?.idKey&&(w===0||w===!1?u=!0:(w===1||w===!0)&&(f=!0),(0,sd.assert)(!(u&&f),"Projection cannot have a mix of inclusion and exclusion."))}});var U6e=Ve((Xhn,vmt)=>{var W6e=Object.defineProperty,UCr=Object.getOwnPropertyDescriptor,$Cr=Object.getOwnPropertyNames,VCr=Object.prototype.hasOwnProperty,HCr=(o,a)=>{for(var u in a)W6e(o,u,{get:a[u],enumerable:!0})},GCr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of $Cr(a))!VCr.call(o,d)&&d!==u&&W6e(o,d,{get:()=>a[d],enumerable:!(f=UCr(a,d))||f.enumerable});return o},KCr=o=>GCr(W6e({},"__esModule",{value:!0}),o),ymt={};HCr(ymt,{$skip:()=>QCr});vmt.exports=KCr(ymt);var QCr=(o,a,u)=>o.drop(a)});var mO=Ve((Yhn,xmt)=>{var $6e=Object.defineProperty,XCr=Object.getOwnPropertyDescriptor,YCr=Object.getOwnPropertyNames,ZCr=Object.prototype.hasOwnProperty,ePr=(o,a)=>{for(var u in a)$6e(o,u,{get:a[u],enumerable:!0})},tPr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of YCr(a))!ZCr.call(o,d)&&d!==u&&$6e(o,d,{get:()=>a[d],enumerable:!(f=XCr(a,d))||f.enumerable});return o},rPr=o=>tPr($6e({},"__esModule",{value:!0}),o),bmt={};ePr(bmt,{$sort:()=>nPr});xmt.exports=rPr(bmt);var ek=qi(),nPr=(o,a,u)=>{if((0,ek.isEmpty)(a)||!(0,ek.isObject)(a))return o;let f=ek.compare,d=u.collation;return(0,ek.isObject)(d)&&(0,ek.isString)(d.locale)&&(f=aPr(d)),o.transform(w=>{let O=Object.keys(a);for(let q of O.reverse()){let K=(0,ek.groupBy)(w,Be=>(0,ek.resolve)(Be,q),u.hashFunction),le=Array.from(K.keys()).sort(f);a[q]===-1&&le.reverse();let ye=0;for(let Be of le)for(let ce of K.get(Be))w[ye++]=ce;(0,ek.assert)(ye==w.length,"bug: counter must match collection size.")}return w})},iPr={1:"base",2:"accent",3:"variant"};function aPr(o){let a={sensitivity:iPr[o.strength||3],caseFirst:o.caseFirst==="off"?"false":o.caseFirst||"false",numeric:o.numericOrdering||!1,ignorePunctuation:o.alternate==="shifted"};(o.caseLevel||!1)===!0&&(a.sensitivity==="base"&&(a.sensitivity="case"),a.sensitivity==="accent"&&(a.sensitivity="variant"));let u=new Intl.Collator(o.locale,a);return(f,d)=>{if(!(0,ek.isString)(f)||!(0,ek.isString)(d))return(0,ek.compare)(f,d);let w=u.compare(f,d);return w<0?-1:w>0?1:0}}});var kmt=Ve((Zhn,wmt)=>{var K6e=Object.defineProperty,sPr=Object.getOwnPropertyDescriptor,oPr=Object.getOwnPropertyNames,cPr=Object.prototype.hasOwnProperty,lPr=(o,a)=>{for(var u in a)K6e(o,u,{get:a[u],enumerable:!0})},uPr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of oPr(a))!cPr.call(o,d)&&d!==u&&K6e(o,d,{get:()=>a[d],enumerable:!(f=sPr(a,d))||f.enumerable});return o},pPr=o=>uPr(K6e({},"__esModule",{value:!0}),o),Tmt={};lPr(Tmt,{Cursor:()=>G6e});wmt.exports=pPr(Tmt);var Smt=Ji(),V6e=Lb(),fPr=J6e(),_Pr=Mpe(),dPr=U6e(),mPr=mO(),H6e=qi(),gPr={$sort:mPr.$sort,$skip:dPr.$skip,$limit:fPr.$limit},G6e=class{#e;#t;#r;#i;#s={};#n=null;#a=[];constructor(a,u,f,d){this.#e=a,this.#t=u,this.#r=f,this.#i=d}fetch(){if(this.#n)return this.#n;this.#n=(0,V6e.Lazy)(this.#e).filter(this.#t);let a=this.#i.processingMode;a&Smt.ProcessingMode.CLONE_INPUT&&this.#n.map(H6e.cloneDeep);for(let u of["$sort","$skip","$limit"])(0,H6e.has)(this.#s,u)&&(this.#n=gPr[u](this.#n,this.#s[u],this.#i));return Object.keys(this.#r).length&&(this.#n=(0,_Pr.$project)(this.#n,this.#r,this.#i)),a&Smt.ProcessingMode.CLONE_OUTPUT&&this.#n.map(H6e.cloneDeep),this.#n}fetchAll(){let a=(0,V6e.Lazy)([...this.#a]);return this.#a=[],(0,V6e.concat)(a,this.fetch())}all(){return this.fetchAll().value()}count(){return this.all().length}skip(a){return this.#s.$skip=a,this}limit(a){return this.#s.$limit=a,this}sort(a){return this.#s.$sort=a,this}collation(a){return this.#i={...this.#i,collation:a},this}next(){if(this.#a.length>0)return this.#a.pop();let a=this.fetch().next();if(!a.done)return a.value}hasNext(){if(this.#a.length>0)return!0;let a=this.fetch().next();return a.done?!1:(this.#a.push(a.value),!0)}map(a){return this.all().map(a)}forEach(a){this.all().forEach(a)}[Symbol.iterator](){return this.fetchAll()}}});var C7=Ve((eyn,Emt)=>{var X6e=Object.defineProperty,hPr=Object.getOwnPropertyDescriptor,yPr=Object.getOwnPropertyNames,vPr=Object.prototype.hasOwnProperty,bPr=(o,a)=>{for(var u in a)X6e(o,u,{get:a[u],enumerable:!0})},xPr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of yPr(a))!vPr.call(o,d)&&d!==u&&X6e(o,d,{get:()=>a[d],enumerable:!(f=hPr(a,d))||f.enumerable});return o},SPr=o=>xPr(X6e({},"__esModule",{value:!0}),o),Pmt={};bPr(Pmt,{Query:()=>Q6e});Emt.exports=SPr(Pmt);var Cmt=Ji(),TPr=kmt(),Z6=qi(),wPr=new Set(Array.from(["$and","$or","$nor","$expr","$jsonSchema"])),Q6e=class{#e;#t;#r;constructor(a,u){this.#r=(0,Z6.cloneDeep)(a),this.#t=(0,Cmt.initOptions)(u),this.#e=[],this.compile()}compile(){(0,Z6.assert)((0,Z6.isObject)(this.#r),`query criteria must be an object: ${JSON.stringify(this.#r)}`);let a={};for(let[u,f]of Object.entries(this.#r)){if(u==="$where")(0,Z6.assert)(this.#t.scriptEnabled,"$where operator requires 'scriptEnabled' option to be true."),Object.assign(a,{field:u,expr:f});else if(wPr.has(u))this.processOperator(u,u,f);else{(0,Z6.assert)(!(0,Z6.isOperator)(u),`unknown top level operator: ${u}`);for(let[d,w]of Object.entries((0,Z6.normalize)(f)))this.processOperator(u,d,w)}a.field&&this.processOperator(a.field,a.field,a.expr)}}processOperator(a,u,f){let d=(0,Cmt.getOperator)("query",u,this.#t);(0,Z6.assert)(!!d,`unknown query operator ${u}`),this.#e.push(d(a,f,this.#t))}test(a){return this.#e.every(u=>u(a))}find(a,u){return new TPr.Cursor(a,f=>this.test(f),u||{},this.#t)}remove(a){return a.reduce((u,f)=>(this.test(f)||u.push(f),u),[])}}});var pG=Ve((tyn,Nmt)=>{var Y6e=Object.defineProperty,kPr=Object.getOwnPropertyDescriptor,CPr=Object.getOwnPropertyNames,PPr=Object.prototype.hasOwnProperty,EPr=(o,a)=>{for(var u in a)Y6e(o,u,{get:a[u],enumerable:!0})},DPr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of CPr(a))!PPr.call(o,d)&&d!==u&&Y6e(o,d,{get:()=>a[d],enumerable:!(f=kPr(a,d))||f.enumerable});return o},OPr=o=>DPr(Y6e({},"__esModule",{value:!0}),o),Omt={};EPr(Omt,{$addFields:()=>APr});Nmt.exports=OPr(Omt);var NPr=Ji(),Dmt=qi(),APr=(o,a,u)=>{let f=Object.keys(a);return f.length===0?o:o.map(d=>{let w={...d};for(let O of f){let q=(0,NPr.computeValue)(d,a[O],null,u);q!==void 0?(0,Dmt.setValue)(w,O,q):(0,Dmt.removeValue)(w,O)}return w})}});var Rmt=Ve((ryn,Mmt)=>{var Z6e=Object.defineProperty,IPr=Object.getOwnPropertyDescriptor,FPr=Object.getOwnPropertyNames,MPr=Object.prototype.hasOwnProperty,RPr=(o,a)=>{for(var u in a)Z6e(o,u,{get:a[u],enumerable:!0})},jPr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of FPr(a))!MPr.call(o,d)&&d!==u&&Z6e(o,d,{get:()=>a[d],enumerable:!(f=IPr(a,d))||f.enumerable});return o},LPr=o=>jPr(Z6e({},"__esModule",{value:!0}),o),Fmt={};RPr(Fmt,{$bucket:()=>BPr});Mmt.exports=LPr(Fmt);var Amt=Ji(),Imt=Lb(),Qd=qi(),BPr=(o,a,u)=>{let f=[...a.boundaries],d=a.default,w=f[0],O=f[f.length-1],q=a.output||{count:{$sum:1}};(0,Qd.assert)(f.length>1,"$bucket must specify at least two boundaries.");let K=f.every((Be,ce)=>ce===0||(0,Qd.typeOf)(Be)===(0,Qd.typeOf)(f[ce-1])&&(0,Qd.compare)(Be,f[ce-1])>0);(0,Qd.assert)(K,"$bucket: bounds must be of same type and in ascending order"),!(0,Qd.isNil)(d)&&(0,Qd.typeOf)(d)===(0,Qd.typeOf)(w)&&(0,Qd.assert)((0,Qd.compare)(d,O)>=0||(0,Qd.compare)(d,w)<0,"$bucket 'default' expression must be out of boundaries range");let le=()=>{let Be=new Map;for(let ce=0;ce<f.length-1;ce++)Be.set(f[ce],[]);return(0,Qd.isNil)(d)||Be.set(d,[]),o.each(ce=>{let mt=(0,Amt.computeValue)(ce,a.groupBy,null,u);if((0,Qd.isNil)(mt)||(0,Qd.compare)(mt,w)<0||(0,Qd.compare)(mt,O)>=0)(0,Qd.assert)(!(0,Qd.isNil)(d),"$bucket require a default for out of range values"),Be.get(d).push(ce);else{(0,Qd.assert)((0,Qd.compare)(mt,w)>=0&&(0,Qd.compare)(mt,O)<0,"$bucket 'groupBy' expression must resolve to a value in range of boundaries");let Re=(0,Qd.findInsertIndex)(f,mt),Ge=f[Math.max(0,Re-1)];Be.get(Ge).push(ce)}}),f.pop(),(0,Qd.isNil)(d)||f.push(d),(0,Qd.assert)(Be.size===f.length,"bounds and groups must be of equal size."),(0,Imt.Lazy)(f).map(ce=>({...(0,Amt.computeValue)(Be.get(ce),q,null,u),_id:ce}))},ye;return(0,Imt.Lazy)(()=>(ye||(ye=le()),ye.next()))}});var Jmt=Ve((nyn,qmt)=>{var eIe=Object.defineProperty,qPr=Object.getOwnPropertyDescriptor,JPr=Object.getOwnPropertyNames,zPr=Object.prototype.hasOwnProperty,WPr=(o,a)=>{for(var u in a)eIe(o,u,{get:a[u],enumerable:!0})},UPr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of JPr(a))!zPr.call(o,d)&&d!==u&&eIe(o,d,{get:()=>a[d],enumerable:!(f=qPr(a,d))||f.enumerable});return o},$Pr=o=>UPr(eIe({},"__esModule",{value:!0}),o),Bmt={};WPr(Bmt,{$bucketAuto:()=>HPr});qmt.exports=$Pr(Bmt);var jmt=Ji(),VPr=Lb(),_1=qi(),HPr=(o,a,u)=>{let{buckets:f,groupBy:d,output:w,granularity:O}=a,q=w??{count:{$sum:1}};(0,_1.assert)(f>0,`$bucketAuto: 'buckets' field must be greater than 0, but found: ${f}`),O&&(0,_1.assert)(/^(POWERSOF2|1-2-5|E(6|12|24|48|96|192)|R(5|10|20|40|80))$/.test(O),`$bucketAuto: invalid granularity '${O}'.`);let K=new Map,le=O?(mt,Re)=>{}:(mt,Re)=>K.set(mt,Re),ye=o.map(mt=>{let Re=(0,jmt.computeValue)(mt,d,null,u)??null;return(0,_1.assert)(!O||(0,_1.isNumber)(Re),"$bucketAuto: groupBy values must be numeric when granularity is specified."),le(mt,Re??null),[Re??null,mt]}).value();ye.sort((mt,Re)=>(0,_1.isNil)(mt[0])?-1:(0,_1.isNil)(Re[0])?1:(0,_1.compare)(mt[0],Re[0]));let Be;O?O=="POWERSOF2"?Be=KPr(ye,f):Be=XPr(ye,f,O):Be=GPr(ye,f,K);let ce=!1;return(0,VPr.Lazy)(()=>{if(ce)return{done:!0};let{min:mt,max:Re,bucket:Ge,done:_r}=Be();ce=_r;let jr=(0,jmt.computeValue)(Ge,q,null,u);for(let[si,Oi]of Object.entries(jr))(0,_1.isArray)(Oi)&&(jr[si]=Oi.filter(ys=>ys!==void 0));return{done:!1,value:{...jr,_id:{min:mt,max:Re}}}})};function GPr(o,a,u){let f=o.length,d=Math.max(1,Math.round(o.length/a)),w=0,O=0;return()=>{let q=++O==a,K=new Array;for(;w<f&&(q||K.length<d||w>0&&(0,_1.isEqual)(o[w-1][0],o[w][0]));)K.push(o[w++][1]);let le=u.get(K[0]),ye;return w<f?ye=o[w][0]:ye=u.get(K[K.length-1]),(0,_1.assert)((0,_1.isNil)(ye)||(0,_1.isNil)(le)||le<=ye,"error: $bucketAuto boundary must be in order."),{min:le,max:ye,bucket:K,done:w>=f}}}function KPr(o,a){let u=o.length,f=Math.max(1,Math.round(o.length/a)),d=K=>K===0?0:2**(Math.floor(Math.log2(K))+1),w=0,O=0,q=0;return()=>{let K=new Array,le=d(q);for(O=w>0?q:0;K.length<f&&w<u&&(q===0||o[w][0]<le);)K.push(o[w++][1]);for(q=q==0?d(o[w-1][0]):le;w<u&&o[w][0]<q;)K.push(o[w++][1]);return{min:O,max:q,bucket:K,done:w>=u}}}var QPr=Object.freeze({R5:[10,16,25,40,63],R10:[100,125,160,200,250,315,400,500,630,800],R20:[100,112,125,140,160,180,200,224,250,280,315,355,400,450,500,560,630,710,800,900],R40:[100,106,112,118,125,132,140,150,160,170,180,190,200,212,224,236,250,265,280,300,315,355,375,400,425,450,475,500,530,560,600,630,670,710,750,800,850,900,950],R80:[103,109,115,122,128,136,145,155,165,175,185,195,206,218,230,243,258,272,290,307,325,345,365,387,412,437,462,487,515,545,575,615,650,690,730,775,825,875,925,975],"1-2-5":[10,20,50],E6:[10,15,22,33,47,68],E12:[10,12,15,18,22,27,33,39,47,56,68,82],E24:[10,11,12,13,15,16,18,20,22,24,27,30,33,36,39,43,47,51,56,62,68,75,82,91],E48:[100,105,110,115,121,127,133,140,147,154,162,169,178,187,196,205,215,226,237,249,261,274,287,301,316,332,348,365,383,402,422,442,464,487,511,536,562,590,619,649,681,715,750,787,825,866,909,953],E96:[100,102,105,107,110,113,115,118,121,124,127,130,133,137,140,143,147,150,154,158,162,165,169,174,178,182,187,191,196,200,205,210,215,221,226,232,237,243,249,255,261,267,274,280,287,294,301,309,316,324,332,340,348,357,365,374,383,392,402,412,422,432,442,453,464,475,487,499,511,523,536,549,562,576,590,604,619,634,649,665,681,698,715,732,750,768,787,806,825,845,866,887,909,931,953,976],E192:[100,101,102,104,105,106,107,109,110,111,113,114,115,117,118,120,121,123,124,126,127,129,130,132,133,135,137,138,140,142,143,145,147,149,150,152,154,156,158,160,162,164,165,167,169,172,174,176,178,180,182,184,187,189,191,193,196,198,200,203,205,208,210,213,215,218,221,223,226,229,232,234,237,240,243,246,249,252,255,258,261,264,267,271,274,277,280,284,287,291,294,298,301,305,309,312,316,320,324,328,332,336,340,344,348,352,357,361,365,370,374,379,383,388,392,397,402,407,412,417,422,427,432,437,442,448,453,459,464,470,475,481,487,493,499,505,511,517,523,530,536,542,549,556,562,569,576,583,590,597,604,612,619,626,634,642,649,657,665,673,681,690,698,706,715,723,732,741,750,759,768,777,787,796,806,816,825,835,845,856,866,876,887,898,909,920,931,942,953,965,976,988]}),Lmt=(o,a)=>{if(o==0)return 0;let u=QPr[a],f=u[0],d=u[u.length-1],w=1;for(;o>=d*w;)w*=10;let O=0;for(;o<f*w;)if(O=f*w,w/=10,o>=d*w)return O;(0,_1.assert)(o>=f*w&&o<d*w,"$bucketAuto: number out of range of series.");let q=(0,_1.findInsertIndex)(u,o,(le,ye)=>(ye*=w,le<ye?-1:le>ye?1:0)),K=u[q]*w;return o==K?u[q+1]*w:K};function XPr(o,a,u){let f=o.length,d=Math.max(1,Math.round(o.length/a)),w=0,O=0,q=0,K=0;return()=>{let le=++O==a,ye=new Array;for(q=w>0?K:0;w<f&&(le||ye.length<d);)ye.push(o[w++][1]);K=Lmt(o[w-1][0],u);let Be=ye.length;for(;w<f&&(le||o[w][0]<K);)ye.push(o[w++][1]);return Be!=ye.length&&(K=Lmt(o[w-1][0],u)),(0,_1.assert)(q<K,`$bucketAuto: ${q} < ${K}.`),{min:q,max:K,bucket:ye,done:w>=f}}}});var Umt=Ve((iyn,Wmt)=>{var rIe=Object.defineProperty,YPr=Object.getOwnPropertyDescriptor,ZPr=Object.getOwnPropertyNames,eEr=Object.prototype.hasOwnProperty,tEr=(o,a)=>{for(var u in a)rIe(o,u,{get:a[u],enumerable:!0})},rEr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ZPr(a))!eEr.call(o,d)&&d!==u&&rIe(o,d,{get:()=>a[d],enumerable:!(f=YPr(a,d))||f.enumerable});return o},nEr=o=>rEr(rIe({},"__esModule",{value:!0}),o),zmt={};tEr(zmt,{$count:()=>aEr});Wmt.exports=nEr(zmt);var iEr=Lb(),tIe=qi(),aEr=(o,a,u)=>((0,tIe.assert)((0,tIe.isString)(a)&&!(0,tIe.isEmpty)(a)&&a.indexOf(".")===-1&&a.trim()[0]!=="$","Invalid expression value for $count"),(0,iEr.Lazy)([{[a]:o.size()}]))});var iIe=Ve((ayn,Vmt)=>{var nIe=Object.defineProperty,sEr=Object.getOwnPropertyDescriptor,oEr=Object.getOwnPropertyNames,cEr=Object.prototype.hasOwnProperty,lEr=(o,a)=>{for(var u in a)nIe(o,u,{get:a[u],enumerable:!0})},uEr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of oEr(a))!cEr.call(o,d)&&d!==u&&nIe(o,d,{get:()=>a[d],enumerable:!(f=sEr(a,d))||f.enumerable});return o},pEr=o=>uEr(nIe({},"__esModule",{value:!0}),o),$mt={};lEr($mt,{TIME_UNITS:()=>fEr});Vmt.exports=pEr($mt);var fEr=["year","quarter","month","week","day","hour","minute","second","millisecond"]});var Nm=Ve((syn,sgt)=>{var cIe=Object.defineProperty,_Er=Object.getOwnPropertyDescriptor,dEr=Object.getOwnPropertyNames,mEr=Object.prototype.hasOwnProperty,gEr=(o,a)=>{for(var u in a)cIe(o,u,{get:a[u],enumerable:!0})},hEr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of dEr(a))!mEr.call(o,d)&&d!==u&&cIe(o,d,{get:()=>a[d],enumerable:!(f=_Er(a,d))||f.enumerable});return o},yEr=o=>hEr(cIe({},"__esModule",{value:!0}),o),Xmt={};gEr(Xmt,{DATE_FORMAT:()=>EEr,DATE_PART_INTERVAL:()=>DEr,DATE_SYM_TABLE:()=>rgt,DAYS_OF_WEEK:()=>tgt,DAYS_OF_WEEK_SET:()=>CEr,DAYS_PER_WEEK:()=>fG,LEAP_YEAR_REF_POINT:()=>Ymt,MILLIS_PER_DAY:()=>sIe,MINUTES_PER_HOUR:()=>jpe,TIMEUNIT_IN_MILLIS:()=>egt,adjustDate:()=>igt,computeDate:()=>AEr,dateAdd:()=>jEr,dateDiffDay:()=>uIe,dateDiffHour:()=>REr,dateDiffMonth:()=>IEr,dateDiffQuarter:()=>FEr,dateDiffWeek:()=>MEr,dateDiffYear:()=>lIe,dayOfYear:()=>Rpe,daysBetweenYears:()=>agt,daysInMonth:()=>SEr,daysInYear:()=>bEr,formatTimezone:()=>NEr,isLeapYear:()=>Lpe,isoWeek:()=>wEr,isoWeekYear:()=>kEr,isoWeekday:()=>aIe,padDigits:()=>oIe,parseTimezone:()=>ngt});sgt.exports=yEr(Xmt);var vEr=Ji(),W9=qi(),Ymt=-1e9,fG=7,Lpe=o=>(o&3)==0&&(o%100!=0||o%400==0),Zmt=[365,366],bEr=o=>Zmt[+Lpe(o)],xEr=[31,28,31,30,31,30,31,31,30,31,30,31],SEr=o=>xEr[o.getUTCMonth()]+Number(o.getUTCMonth()===1&&Lpe(o.getUTCFullYear())),TEr=[[0,31,59,90,120,151,181,212,243,273,304,334],[0,31,60,91,121,152,182,213,244,274,305,335]],Rpe=o=>TEr[+Lpe(o.getUTCFullYear())][o.getUTCMonth()]+o.getUTCDate(),aIe=(o,a="sun")=>((o.getUTCDay()||7)-PEr[a]+fG)%fG,Hmt=o=>(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7,Gmt=o=>52+ +(Hmt(o)==4||Hmt(o-1)==3);function wEr(o){let a=o.getUTCDay()||7,u=Math.floor((10+Rpe(o)-a)/7);return u<1?Gmt(o.getUTCFullYear()-1):u>Gmt(o.getUTCFullYear())?1:u}function kEr(o){return o.getUTCFullYear()-+(o.getUTCMonth()===0&&o.getUTCDate()==1&&o.getUTCDay()<1)}var jpe=60,sIe=1e3*60*60*24,egt={week:sIe*fG,day:sIe,hour:1e3*60*60,minute:1e3*60,second:1e3,millisecond:1},tgt=["monday","mon","tuesday","tue","wednesday","wed","thursday","thu","friday","fri","saturday","sat","sunday","sun"],CEr=new Set(tgt),PEr=Object.freeze({mon:1,tue:2,wed:3,thu:4,fri:5,sat:6,sun:7}),EEr="%Y-%m-%dT%H:%M:%S.%LZ",DEr=[["year",0,9999],["month",1,12],["day",1,31],["hour",0,23],["minute",0,59],["second",0,59],["millisecond",0,999]],rgt=Object.freeze({"%Y":{name:"year",padding:4,re:/([0-9]{4})/},"%G":{name:"year",padding:4,re:/([0-9]{4})/},"%m":{name:"month",padding:2,re:/(0[1-9]|1[012])/},"%d":{name:"day",padding:2,re:/(0[1-9]|[12][0-9]|3[01])/},"%H":{name:"hour",padding:2,re:/([01][0-9]|2[0-3])/},"%M":{name:"minute",padding:2,re:/([0-5][0-9])/},"%S":{name:"second",padding:2,re:/([0-5][0-9]|60)/},"%L":{name:"millisecond",padding:3,re:/([0-9]{3})/},"%u":{name:"weekday",padding:1,re:/([1-7])/},"%U":{name:"week",padding:2,re:/([1-4][0-9]?|5[0-3]?)/},"%V":{name:"isoWeek",padding:2,re:/([1-4][0-9]?|5[0-3]?)/},"%z":{name:"timezone",padding:2,re:/(([+-][01][0-9]|2[0-3]):?([0-5][0-9])?)/},"%Z":{name:"minuteOffset",padding:3,re:/([+-][0-9]{3})/}}),OEr=/^[a-zA-Z_]+\/[a-zA-Z_]+$/;function ngt(o){if((0,W9.isNil)(o))return 0;if(OEr.test(o)){let d=new Date,w=new Date(d.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(d.toLocaleString("en-US",{timeZone:o})).getTime()-w.getTime())/6e4}let a=rgt["%z"].re.exec(o);if(!a)throw new W9.MingoError(`Timezone '${o}' is invalid or not supported`);let u=parseInt(a[2])||0,f=parseInt(a[3])||0;return(Math.abs(u*jpe)+f)*(u<0?-1:1)}function NEr(o){return(o<0?"-":"+")+oIe(Math.abs(Math.floor(o/jpe)),2)+oIe(Math.abs(o)%jpe,2)}function igt(o,a){o.setUTCMinutes(o.getUTCMinutes()+a)}function AEr(o,a,u){if((0,W9.isDate)(o))return o;let f=(0,vEr.computeValue)(o,a,null,u);if((0,W9.isDate)(f))return new Date(f);if((0,W9.isNumber)(f))return new Date(f*1e3);if(f.date){let d=(0,W9.isDate)(f.date)?new Date(f.date):new Date(f.date*1e3);return f.timezone&&igt(d,ngt(f.timezone)),d}throw Error(`cannot convert ${JSON.stringify(a)} to date`)}function oIe(o,a){return new Array(Math.max(a-String(o).length+1,0)).join("0")+o.toString()}var Kmt=o=>{let a=o-Ymt;return Math.trunc(a/4)-Math.trunc(a/100)+Math.trunc(a/400)};function agt(o,a){return Math.trunc(Kmt(a-1)-Kmt(o-1)+(a-o)*Zmt[0])}var lIe=(o,a)=>a.getUTCFullYear()-o.getUTCFullYear(),IEr=(o,a)=>a.getUTCMonth()-o.getUTCMonth()+lIe(o,a)*12,FEr=(o,a)=>{let u=Math.trunc(o.getUTCMonth()/3);return Math.trunc(a.getUTCMonth()/3)-u+lIe(o,a)*4},uIe=(o,a)=>Rpe(a)-Rpe(o)+agt(o.getUTCFullYear(),a.getUTCFullYear()),MEr=(o,a,u)=>{let f=(u||"sun").substring(0,3);return Math.trunc((uIe(o,a)+aIe(o,f)-aIe(a,f))/fG)},REr=(o,a)=>a.getUTCHours()-o.getUTCHours()+uIe(o,a)*24,Qmt=(o,a)=>{let u=o.getUTCMonth()+a,f=Math.floor(u/12);if(u<0){let d=u%12+12;o.setUTCFullYear(o.getUTCFullYear()+f,d,o.getUTCDate())}else o.setUTCFullYear(o.getUTCFullYear()+f,u%12,o.getUTCDate())},jEr=(o,a,u,f)=>{let d=new Date(o);switch(a){case"year":d.setUTCFullYear(d.getUTCFullYear()+u);break;case"quarter":Qmt(d,3*u);break;case"month":Qmt(d,u);break;default:d.setTime(d.getTime()+egt[a]*u)}return d}});var _G=Ve((oyn,cgt)=>{var pIe=Object.defineProperty,LEr=Object.getOwnPropertyDescriptor,BEr=Object.getOwnPropertyNames,qEr=Object.prototype.hasOwnProperty,JEr=(o,a)=>{for(var u in a)pIe(o,u,{get:a[u],enumerable:!0})},zEr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of BEr(a))!qEr.call(o,d)&&d!==u&&pIe(o,d,{get:()=>a[d],enumerable:!(f=LEr(a,d))||f.enumerable});return o},WEr=o=>zEr(pIe({},"__esModule",{value:!0}),o),ogt={};JEr(ogt,{$dateAdd:()=>VEr});cgt.exports=WEr(ogt);var UEr=Ji(),$Er=Nm(),VEr=(o,a,u)=>{let f=(0,UEr.computeValue)(o,a,null,u);return(0,$Er.dateAdd)(f.startDate,f.unit,f.amount,f.timezone)}});var fgt=Ve((cyn,pgt)=>{var fIe=Object.defineProperty,HEr=Object.getOwnPropertyDescriptor,GEr=Object.getOwnPropertyNames,KEr=Object.prototype.hasOwnProperty,QEr=(o,a)=>{for(var u in a)fIe(o,u,{get:a[u],enumerable:!0})},XEr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of GEr(a))!KEr.call(o,d)&&d!==u&&fIe(o,d,{get:()=>a[d],enumerable:!(f=HEr(a,d))||f.enumerable});return o},YEr=o=>XEr(fIe({},"__esModule",{value:!0}),o),ugt={};QEr(ugt,{$densify:()=>nDr});pgt.exports=YEr(ugt);var ZEr=Ji(),dG=Lb(),lgt=iIe(),uf=qi(),eDr=_G(),tDr=mO(),rDr=Object.freeze({}),nDr=(o,a,u)=>{let{step:f,bounds:d,unit:w}=a.range;w?((0,uf.assert)(lgt.TIME_UNITS.includes(w),""),(0,uf.assert)(Number.isInteger(f)&&f>0,"The step parameter in a range statement must be a whole number when densifying a date range.")):(0,uf.assert)((0,uf.isNumber)(f)&&f>0,"The step parameter in a range statement must be a strictly positive numeric value."),(0,uf.isArray)(d)&&((0,uf.assert)(!!d&&d.length===2,"A bounding array in a range statement must have exactly two elements."),(0,uf.assert)((d.every(uf.isNumber)||d.every(uf.isDate))&&d[0]<d[1],"A bounding array must be an ascending array of either two dates or two numbers."),(0,uf.assert)(w&&!d.some(uf.isNumber),"Numeric bounds may not have unit parameter.")),a.partitionByFields&&(0,uf.assert)((0,uf.isArray)(a.partitionByFields),"$densify: `partitionByFields` must be an array of strings"),o=(0,tDr.$sort)(o,{[a.field]:1},u);let O=ZEr.ComputeOptions.init(u,null),q=sn=>(0,uf.isNumber)(sn)?sn+f:(0,eDr.$dateAdd)(rDr,{startDate:sn,unit:w,amount:f},O),K=!!w&&lgt.TIME_UNITS.includes(w),le=sn=>{let Ir=(0,uf.resolve)(sn,a.field);return(0,uf.isNil)(Ir)||((0,uf.isNumber)(Ir)?(0,uf.assert)(!K,"$densify: Encountered non-date value in collection when step has a date unit."):(0,uf.isDate)(Ir)?(0,uf.assert)(K,"$densify: Encountered date value in collection when step does not have a date unit."):(0,uf.assert)(!1,"$densify: Densify field type must be numeric or a date")),Ir},ye=new Array,Be=(0,dG.Lazy)(()=>{let sn=o.next(),Ir=le(sn.value);return(0,uf.isNil)(Ir)?sn:(ye.push(sn),{done:!0})}),ce=uf.ValueMap.init(u.hashFunction),[mt,Re]=(0,uf.isArray)(d)?d:[d,d],Ge,_r=sn=>{Ge=Ge===void 0||Ge<sn?sn:Ge},jr=[],si=(0,dG.Lazy)(()=>{let sn=ye.length>0?ye.pop():o.next();if(sn.done)return sn;let Ir=jr;(0,uf.isArray)(a.partitionByFields)&&(Ir=a.partitionByFields.map(Ta=>(0,uf.resolve)(sn.value,Ta)),(0,uf.assert)(Ir.every(uf.isString),"$densify: Partition fields must evaluate to string values.")),(0,uf.assert)((0,uf.isObject)(sn.value),"$densify: collection must contain documents");let Ks=le(sn.value);ce.has(Ir)||(mt=="full"?(ce.has(jr)||ce.set(jr,Ks),ce.set(Ir,ce.get(jr))):mt=="partition"?ce.set(Ir,Ks):ce.set(Ir,mt));let Va=ce.get(Ir);if(Ks<=Va||Re!="full"&&Re!="partition"&&Va>=Re)return Va<=Ks&&ce.set(Ir,q(Va)),_r(Ks),sn;ce.set(Ir,q(Va)),_r(Va);let up={[a.field]:Va};return Ir&&Ir.forEach((Ta,f_)=>{up[a.partitionByFields[f_]]=Ta}),ye.push(sn),{done:!1,value:up}});if(mt!=="full")return(0,dG.concat)(Be,si);let Oi=-1,ys,ns=(0,dG.Lazy)(()=>{if(Oi===-1){let sn=ce.get(jr);ce.delete(jr),ys=Array.from(ce.keys()),ys.length===0&&(ys.push(jr),ce.set(jr,sn)),Oi++}do{let sn=ys[Oi],Ir=ce.get(sn);if(Ir<Ge){ce.set(sn,q(Ir));let Ks={[a.field]:Ir};return sn.forEach((Va,up)=>{Ks[a.partitionByFields[up]]=Va}),{done:!1,value:Ks}}Oi++}while(Oi<ys.length);return{done:!0}});return(0,dG.concat)(Be,si,ns)}});var mG=Ve((lyn,dgt)=>{var dIe=Object.defineProperty,iDr=Object.getOwnPropertyDescriptor,aDr=Object.getOwnPropertyNames,sDr=Object.prototype.hasOwnProperty,oDr=(o,a)=>{for(var u in a)dIe(o,u,{get:a[u],enumerable:!0})},cDr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of aDr(a))!sDr.call(o,d)&&d!==u&&dIe(o,d,{get:()=>a[d],enumerable:!(f=iDr(a,d))||f.enumerable});return o},lDr=o=>cDr(dIe({},"__esModule",{value:!0}),o),_gt={};oDr(_gt,{Aggregator:()=>_Ie});dgt.exports=lDr(_gt);var Bpe=Ji(),uDr=Lb(),qpe=qi(),_Ie=class{#e;#t;constructor(a,u){this.#e=a,this.#t=(0,Bpe.initOptions)(u)}stream(a,u){let f=(0,uDr.Lazy)(a),d=u??this.#t,w=d.processingMode;w&Bpe.ProcessingMode.CLONE_INPUT&&f.map(qpe.cloneDeep);let O=new Array;if(!(0,qpe.isEmpty)(this.#e))for(let q of this.#e){let K=Object.keys(q),le=K[0],ye=(0,Bpe.getOperator)("pipeline",le,d);(0,qpe.assert)(K.length===1&&!!ye,`invalid pipeline operator ${le}`),O.push(le),f=ye(f,q[le],d)}return w&Bpe.ProcessingMode.CLONE_OUTPUT&&f.map(qpe.cloneDeep),f}run(a,u){return this.stream(a,u).value()}}});var hgt=Ve((uyn,ggt)=>{var mIe=Object.defineProperty,pDr=Object.getOwnPropertyDescriptor,fDr=Object.getOwnPropertyNames,_Dr=Object.prototype.hasOwnProperty,dDr=(o,a)=>{for(var u in a)mIe(o,u,{get:a[u],enumerable:!0})},mDr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of fDr(a))!_Dr.call(o,d)&&d!==u&&mIe(o,d,{get:()=>a[d],enumerable:!(f=pDr(a,d))||f.enumerable});return o},gDr=o=>mDr(mIe({},"__esModule",{value:!0}),o),mgt={};dDr(mgt,{$facet:()=>vDr});ggt.exports=gDr(mgt);var hDr=mG(),yDr=Ji(),vDr=(o,a,u)=>o.transform(f=>{let d={};for(let[w,O]of Object.entries(a))d[w]=new hDr.Aggregator(O,{...u,processingMode:yDr.ProcessingMode.CLONE_INPUT}).run(f);return[d]})});var hIe=Ve((pyn,vgt)=>{var gIe=Object.defineProperty,bDr=Object.getOwnPropertyDescriptor,xDr=Object.getOwnPropertyNames,SDr=Object.prototype.hasOwnProperty,TDr=(o,a)=>{for(var u in a)gIe(o,u,{get:a[u],enumerable:!0})},wDr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of xDr(a))!SDr.call(o,d)&&d!==u&&gIe(o,d,{get:()=>a[d],enumerable:!(f=bDr(a,d))||f.enumerable});return o},kDr=o=>wDr(gIe({},"__esModule",{value:!0}),o),ygt={};TDr(ygt,{$ifNull:()=>EDr});vgt.exports=kDr(ygt);var CDr=Ji(),PDr=qi(),EDr=(o,a,u)=>{let f=(0,CDr.computeValue)(o,a,null,u);return f.find(d=>!(0,PDr.isNil)(d))??f[f.length-1]}});var Sgt=Ve((fyn,xgt)=>{var vIe=Object.defineProperty,DDr=Object.getOwnPropertyDescriptor,ODr=Object.getOwnPropertyNames,NDr=Object.prototype.hasOwnProperty,ADr=(o,a)=>{for(var u in a)vIe(o,u,{get:a[u],enumerable:!0})},IDr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ODr(a))!NDr.call(o,d)&&d!==u&&vIe(o,d,{get:()=>a[d],enumerable:!(f=DDr(a,d))||f.enumerable});return o},FDr=o=>IDr(vIe({},"__esModule",{value:!0}),o),bgt={};ADr(bgt,{$accumulator:()=>RDr});xgt.exports=FDr(bgt);var yIe=Ji(),MDr=qi(),RDr=(o,a,u)=>{if((0,MDr.assert)(!!u&&u.scriptEnabled,"$accumulator operator requires 'scriptEnabled' option to be true"),o.length==0)return a.initArgs;let f=yIe.ComputeOptions.init(u),d=(0,yIe.computeValue)({},a.initArgs||[],null,f.update(f?.local?.groupId||{})),w=a.init.call(null,...d);for(let O of o){let q=(0,yIe.computeValue)(O,a.accumulateArgs,null,f.update(O));w=a.accumulate.call(null,w,...q)}return a.finalize?a.finalize.call(null,w):w}});var vh=Ve((_yn,kgt)=>{var bIe=Object.defineProperty,jDr=Object.getOwnPropertyDescriptor,LDr=Object.getOwnPropertyNames,BDr=Object.prototype.hasOwnProperty,qDr=(o,a)=>{for(var u in a)bIe(o,u,{get:a[u],enumerable:!0})},JDr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of LDr(a))!BDr.call(o,d)&&d!==u&&bIe(o,d,{get:()=>a[d],enumerable:!(f=jDr(a,d))||f.enumerable});return o},zDr=o=>JDr(bIe({},"__esModule",{value:!0}),o),wgt={};qDr(wgt,{$push:()=>UDr});kgt.exports=zDr(wgt);var Tgt=Ji(),WDr=qi(),UDr=(o,a,u)=>{if((0,WDr.isNil)(a))return o;let f=Tgt.ComputeOptions.init(u);return o.map(d=>(0,Tgt.computeValue)(d,a,null,f.update(d)))}});var Egt=Ve((dyn,Pgt)=>{var xIe=Object.defineProperty,$Dr=Object.getOwnPropertyDescriptor,VDr=Object.getOwnPropertyNames,HDr=Object.prototype.hasOwnProperty,GDr=(o,a)=>{for(var u in a)xIe(o,u,{get:a[u],enumerable:!0})},KDr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of VDr(a))!HDr.call(o,d)&&d!==u&&xIe(o,d,{get:()=>a[d],enumerable:!(f=$Dr(a,d))||f.enumerable});return o},QDr=o=>KDr(xIe({},"__esModule",{value:!0}),o),Cgt={};GDr(Cgt,{$addToSet:()=>ZDr});Pgt.exports=QDr(Cgt);var XDr=qi(),YDr=vh(),ZDr=(o,a,u)=>(0,XDr.unique)((0,YDr.$push)(o,a,u),u?.hashFunction)});var Ngt=Ve((myn,Ogt)=>{var SIe=Object.defineProperty,eOr=Object.getOwnPropertyDescriptor,tOr=Object.getOwnPropertyNames,rOr=Object.prototype.hasOwnProperty,nOr=(o,a)=>{for(var u in a)SIe(o,u,{get:a[u],enumerable:!0})},iOr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of tOr(a))!rOr.call(o,d)&&d!==u&&SIe(o,d,{get:()=>a[d],enumerable:!(f=eOr(a,d))||f.enumerable});return o},aOr=o=>iOr(SIe({},"__esModule",{value:!0}),o),Dgt={};nOr(Dgt,{$avg:()=>cOr});Ogt.exports=aOr(Dgt);var sOr=qi(),oOr=vh(),cOr=(o,a,u)=>{let f=(0,oOr.$push)(o,a,u).filter(sOr.isNumber);return f.reduce((w,O)=>w+O,0)/(f.length||1)}});var wIe=Ve((gyn,Fgt)=>{var TIe=Object.defineProperty,lOr=Object.getOwnPropertyDescriptor,uOr=Object.getOwnPropertyNames,pOr=Object.prototype.hasOwnProperty,fOr=(o,a)=>{for(var u in a)TIe(o,u,{get:a[u],enumerable:!0})},_Or=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of uOr(a))!pOr.call(o,d)&&d!==u&&TIe(o,d,{get:()=>a[d],enumerable:!(f=lOr(a,d))||f.enumerable});return o},dOr=o=>_Or(TIe({},"__esModule",{value:!0}),o),Igt={};fOr(Igt,{$bottomN:()=>yOr});Fgt.exports=dOr(Igt);var Agt=Ji(),mOr=Lb(),gOr=mO(),hOr=vh(),yOr=(o,a,u)=>{let f=Agt.ComputeOptions.init(u),{n:d,sortBy:w}=(0,Agt.computeValue)(f.local.groupId,a,null,f),O=(0,gOr.$sort)((0,mOr.Lazy)(o),w,u).value(),q=O.length,K=d;return(0,hOr.$push)(q<=K?O:O.slice(q-K),a.output,f)}});var jgt=Ve((hyn,Rgt)=>{var kIe=Object.defineProperty,vOr=Object.getOwnPropertyDescriptor,bOr=Object.getOwnPropertyNames,xOr=Object.prototype.hasOwnProperty,SOr=(o,a)=>{for(var u in a)kIe(o,u,{get:a[u],enumerable:!0})},TOr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of bOr(a))!xOr.call(o,d)&&d!==u&&kIe(o,d,{get:()=>a[d],enumerable:!(f=vOr(a,d))||f.enumerable});return o},wOr=o=>TOr(kIe({},"__esModule",{value:!0}),o),Mgt={};SOr(Mgt,{$bottom:()=>COr});Rgt.exports=wOr(Mgt);var kOr=wIe(),COr=(o,a,u)=>(0,kOr.$bottomN)(o,{...a,n:1},u)});var qgt=Ve((yyn,Bgt)=>{var CIe=Object.defineProperty,POr=Object.getOwnPropertyDescriptor,EOr=Object.getOwnPropertyNames,DOr=Object.prototype.hasOwnProperty,OOr=(o,a)=>{for(var u in a)CIe(o,u,{get:a[u],enumerable:!0})},NOr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of EOr(a))!DOr.call(o,d)&&d!==u&&CIe(o,d,{get:()=>a[d],enumerable:!(f=POr(a,d))||f.enumerable});return o},AOr=o=>NOr(CIe({},"__esModule",{value:!0}),o),Lgt={};OOr(Lgt,{$count:()=>IOr});Bgt.exports=AOr(Lgt);var IOr=(o,a,u)=>o.length});var gG=Ve((vyn,zgt)=>{var PIe=Object.defineProperty,FOr=Object.getOwnPropertyDescriptor,MOr=Object.getOwnPropertyNames,ROr=Object.prototype.hasOwnProperty,jOr=(o,a)=>{for(var u in a)PIe(o,u,{get:a[u],enumerable:!0})},LOr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of MOr(a))!ROr.call(o,d)&&d!==u&&PIe(o,d,{get:()=>a[d],enumerable:!(f=FOr(a,d))||f.enumerable});return o},BOr=o=>LOr(PIe({},"__esModule",{value:!0}),o),Jgt={};jOr(Jgt,{covariance:()=>JOr,stddev:()=>qOr});zgt.exports=BOr(Jgt);function qOr(o,a=!0){let u=o.reduce((w,O)=>w+O,0),f=o.length||1,d=u/f;return Math.sqrt(o.reduce((w,O)=>w+Math.pow(O-d,2),0)/(f-Number(a)))}function JOr(o,a=!0){if(!o)return null;if(o.length<2)return a?null:0;let u=0,f=0;for(let[w,O]of o)u+=w,f+=O;u/=o.length,f/=o.length;let d=0;for(let[w,O]of o)d+=(w-u)*(O-f);return d/(o.length-Number(a))}});var Vgt=Ve((byn,Ugt)=>{var EIe=Object.defineProperty,zOr=Object.getOwnPropertyDescriptor,WOr=Object.getOwnPropertyNames,UOr=Object.prototype.hasOwnProperty,$Or=(o,a)=>{for(var u in a)EIe(o,u,{get:a[u],enumerable:!0})},VOr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of WOr(a))!UOr.call(o,d)&&d!==u&&EIe(o,d,{get:()=>a[d],enumerable:!(f=zOr(a,d))||f.enumerable});return o},HOr=o=>VOr(EIe({},"__esModule",{value:!0}),o),Wgt={};$Or(Wgt,{$covariancePop:()=>QOr});Ugt.exports=HOr(Wgt);var GOr=gG(),KOr=vh(),QOr=(o,a,u)=>(0,GOr.covariance)((0,KOr.$push)(o,a,u),!1)});var Kgt=Ve((xyn,Ggt)=>{var DIe=Object.defineProperty,XOr=Object.getOwnPropertyDescriptor,YOr=Object.getOwnPropertyNames,ZOr=Object.prototype.hasOwnProperty,eNr=(o,a)=>{for(var u in a)DIe(o,u,{get:a[u],enumerable:!0})},tNr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of YOr(a))!ZOr.call(o,d)&&d!==u&&DIe(o,d,{get:()=>a[d],enumerable:!(f=XOr(a,d))||f.enumerable});return o},rNr=o=>tNr(DIe({},"__esModule",{value:!0}),o),Hgt={};eNr(Hgt,{$covarianceSamp:()=>aNr});Ggt.exports=rNr(Hgt);var nNr=gG(),iNr=vh(),aNr=(o,a,u)=>(0,nNr.covariance)((0,iNr.$push)(o,a,u),!0)});var NIe=Ve((Syn,Ygt)=>{var OIe=Object.defineProperty,sNr=Object.getOwnPropertyDescriptor,oNr=Object.getOwnPropertyNames,cNr=Object.prototype.hasOwnProperty,lNr=(o,a)=>{for(var u in a)OIe(o,u,{get:a[u],enumerable:!0})},uNr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of oNr(a))!cNr.call(o,d)&&d!==u&&OIe(o,d,{get:()=>a[d],enumerable:!(f=sNr(a,d))||f.enumerable});return o},pNr=o=>uNr(OIe({},"__esModule",{value:!0}),o),Xgt={};lNr(Xgt,{$first:()=>fNr});Ygt.exports=pNr(Xgt);var Qgt=Ji(),fNr=(o,a,u)=>{if(o.length===0)return;let f=Qgt.ComputeOptions.init(u).update(o[0]);return(0,Qgt.computeValue)(o[0],a,null,f)}});var IIe=Ve((Tyn,tht)=>{var AIe=Object.defineProperty,_Nr=Object.getOwnPropertyDescriptor,dNr=Object.getOwnPropertyNames,mNr=Object.prototype.hasOwnProperty,gNr=(o,a)=>{for(var u in a)AIe(o,u,{get:a[u],enumerable:!0})},hNr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of dNr(a))!mNr.call(o,d)&&d!==u&&AIe(o,d,{get:()=>a[d],enumerable:!(f=_Nr(a,d))||f.enumerable});return o},yNr=o=>hNr(AIe({},"__esModule",{value:!0}),o),eht={};gNr(eht,{$firstN:()=>bNr});tht.exports=yNr(eht);var Zgt=Ji(),vNr=vh(),bNr=(o,a,u)=>{let f=Zgt.ComputeOptions.init(u),d=o.length,w=(0,Zgt.computeValue)(f?.local?.groupId,a.n,null,f);return(0,vNr.$push)(d<=w?o:o.slice(0,w),a.input,u)}});var MIe=Ve((wyn,iht)=>{var FIe=Object.defineProperty,xNr=Object.getOwnPropertyDescriptor,SNr=Object.getOwnPropertyNames,TNr=Object.prototype.hasOwnProperty,wNr=(o,a)=>{for(var u in a)FIe(o,u,{get:a[u],enumerable:!0})},kNr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of SNr(a))!TNr.call(o,d)&&d!==u&&FIe(o,d,{get:()=>a[d],enumerable:!(f=xNr(a,d))||f.enumerable});return o},CNr=o=>kNr(FIe({},"__esModule",{value:!0}),o),nht={};wNr(nht,{$last:()=>PNr});iht.exports=CNr(nht);var rht=Ji(),PNr=(o,a,u)=>{if(o.length===0)return;let f=o[o.length-1],d=rht.ComputeOptions.init(u).update(f);return(0,rht.computeValue)(f,a,null,d)}});var jIe=Ve((kyn,oht)=>{var RIe=Object.defineProperty,ENr=Object.getOwnPropertyDescriptor,DNr=Object.getOwnPropertyNames,ONr=Object.prototype.hasOwnProperty,NNr=(o,a)=>{for(var u in a)RIe(o,u,{get:a[u],enumerable:!0})},ANr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of DNr(a))!ONr.call(o,d)&&d!==u&&RIe(o,d,{get:()=>a[d],enumerable:!(f=ENr(a,d))||f.enumerable});return o},INr=o=>ANr(RIe({},"__esModule",{value:!0}),o),sht={};NNr(sht,{$lastN:()=>MNr});oht.exports=INr(sht);var aht=Ji(),FNr=vh(),MNr=(o,a,u)=>{let f=aht.ComputeOptions.init(u),d=o.length,w=(0,aht.computeValue)(f?.local?.groupId,a.n,null,f);return(0,FNr.$push)(d<=w?o:o.slice(d-w),a.input,u)}});var uht=Ve((Cyn,lht)=>{var LIe=Object.defineProperty,RNr=Object.getOwnPropertyDescriptor,jNr=Object.getOwnPropertyNames,LNr=Object.prototype.hasOwnProperty,BNr=(o,a)=>{for(var u in a)LIe(o,u,{get:a[u],enumerable:!0})},qNr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of jNr(a))!LNr.call(o,d)&&d!==u&&LIe(o,d,{get:()=>a[d],enumerable:!(f=RNr(a,d))||f.enumerable});return o},JNr=o=>qNr(LIe({},"__esModule",{value:!0}),o),cht={};BNr(cht,{$max:()=>WNr});lht.exports=JNr(cht);var hG=qi(),zNr=vh(),WNr=(o,a,u)=>{let f=(0,zNr.$push)(o,a,u);if((0,hG.isEmpty)(f))return null;(0,hG.assert)((0,hG.isArray)(f),"$max: input must resolve to array");let d=f[0];for(let w of f)(0,hG.isNil)(w)||isNaN(w)||(0,hG.compare)(w,d)>=0&&(d=w);return d}});var qIe=Ve((Pyn,dht)=>{var BIe=Object.defineProperty,UNr=Object.getOwnPropertyDescriptor,$Nr=Object.getOwnPropertyNames,VNr=Object.prototype.hasOwnProperty,HNr=(o,a)=>{for(var u in a)BIe(o,u,{get:a[u],enumerable:!0})},GNr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of $Nr(a))!VNr.call(o,d)&&d!==u&&BIe(o,d,{get:()=>a[d],enumerable:!(f=UNr(a,d))||f.enumerable});return o},KNr=o=>GNr(BIe({},"__esModule",{value:!0}),o),_ht={};HNr(_ht,{$maxN:()=>XNr});dht.exports=KNr(_ht);var pht=Ji(),fht=qi(),QNr=vh(),XNr=(o,a,u)=>{let f=pht.ComputeOptions.init(u),d=o.length,w=(0,pht.computeValue)(f?.local?.groupId,a.n,null,f),O=(0,QNr.$push)(o,a.input,u).filter(q=>!(0,fht.isNil)(q));return O.sort((q,K)=>-1*(0,fht.compare)(q,K)),d<=w?O:O.slice(0,w)}});var zpe=Ve((Eyn,hht)=>{var JIe=Object.defineProperty,YNr=Object.getOwnPropertyDescriptor,ZNr=Object.getOwnPropertyNames,eAr=Object.prototype.hasOwnProperty,tAr=(o,a)=>{for(var u in a)JIe(o,u,{get:a[u],enumerable:!0})},rAr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ZNr(a))!eAr.call(o,d)&&d!==u&&JIe(o,d,{get:()=>a[d],enumerable:!(f=YNr(a,d))||f.enumerable});return o},nAr=o=>rAr(JIe({},"__esModule",{value:!0}),o),ght={};tAr(ght,{$percentile:()=>iAr});hht.exports=nAr(ght);var Jpe=qi(),mht=vh(),iAr=(o,a,u)=>{let f=(0,mht.$push)(o,a.input,u).filter(Jpe.isNumber).sort(),d=(0,mht.$push)(a.p,"$$CURRENT",u).filter(Jpe.isNumber),w=a.method||"approximate";return d.map(O=>{(0,Jpe.assert)(O>0&&O<=1,`percentile value must be between 0 (exclusive) and 1 (inclusive): invalid '${O}'.`);let q=O*(f.length-1)+1,K=Math.floor(q),le=q===K?f[q-1]:f[K-1]+q%1*(f[K]-f[K-1]||0);switch(w){case"exact":return le;case"approximate":{let ye=(0,Jpe.findInsertIndex)(f,le);return ye/f.length>=O?f[Math.max(ye-1,0)]:f[ye]}}})}});var WIe=Ve((Dyn,vht)=>{var zIe=Object.defineProperty,aAr=Object.getOwnPropertyDescriptor,sAr=Object.getOwnPropertyNames,oAr=Object.prototype.hasOwnProperty,cAr=(o,a)=>{for(var u in a)zIe(o,u,{get:a[u],enumerable:!0})},lAr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of sAr(a))!oAr.call(o,d)&&d!==u&&zIe(o,d,{get:()=>a[d],enumerable:!(f=aAr(a,d))||f.enumerable});return o},uAr=o=>lAr(zIe({},"__esModule",{value:!0}),o),yht={};cAr(yht,{$median:()=>fAr});vht.exports=uAr(yht);var pAr=zpe(),fAr=(o,a,u)=>(0,pAr.$percentile)(o,{...a,p:[.5]},u).pop()});var $Ie=Ve((Oyn,xht)=>{var UIe=Object.defineProperty,_Ar=Object.getOwnPropertyDescriptor,dAr=Object.getOwnPropertyNames,mAr=Object.prototype.hasOwnProperty,gAr=(o,a)=>{for(var u in a)UIe(o,u,{get:a[u],enumerable:!0})},hAr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of dAr(a))!mAr.call(o,d)&&d!==u&&UIe(o,d,{get:()=>a[d],enumerable:!(f=_Ar(a,d))||f.enumerable});return o},yAr=o=>hAr(UIe({},"__esModule",{value:!0}),o),bht={};gAr(bht,{$mergeObjects:()=>xAr});xht.exports=yAr(bht);var vAr=Ji(),bAr=qi(),xAr=(o,a,u)=>{let f=(0,vAr.computeValue)(o,a,null,u)??[],d={};for(let w of f)if(!(0,bAr.isNil)(w))for(let O of Object.keys(w))w[O]!==void 0&&(d[O]=w[O]);return d}});var wht=Ve((Nyn,Tht)=>{var VIe=Object.defineProperty,SAr=Object.getOwnPropertyDescriptor,TAr=Object.getOwnPropertyNames,wAr=Object.prototype.hasOwnProperty,kAr=(o,a)=>{for(var u in a)VIe(o,u,{get:a[u],enumerable:!0})},CAr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of TAr(a))!wAr.call(o,d)&&d!==u&&VIe(o,d,{get:()=>a[d],enumerable:!(f=SAr(a,d))||f.enumerable});return o},PAr=o=>CAr(VIe({},"__esModule",{value:!0}),o),Sht={};kAr(Sht,{$mergeObjects:()=>OAr});Tht.exports=PAr(Sht);var EAr=Ji(),DAr=$Ie(),OAr=(o,a,u)=>{let f=(0,EAr.computeValue)(o,a,null,u);return(0,DAr.$mergeObjects)(null,f,u)}});var Pht=Ve((Ayn,Cht)=>{var HIe=Object.defineProperty,NAr=Object.getOwnPropertyDescriptor,AAr=Object.getOwnPropertyNames,IAr=Object.prototype.hasOwnProperty,FAr=(o,a)=>{for(var u in a)HIe(o,u,{get:a[u],enumerable:!0})},MAr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of AAr(a))!IAr.call(o,d)&&d!==u&&HIe(o,d,{get:()=>a[d],enumerable:!(f=NAr(a,d))||f.enumerable});return o},RAr=o=>MAr(HIe({},"__esModule",{value:!0}),o),kht={};FAr(kht,{$min:()=>LAr});Cht.exports=RAr(kht);var yG=qi(),jAr=vh(),LAr=(o,a,u)=>{let f=(0,jAr.$push)(o,a,u);if((0,yG.isEmpty)(f))return null;(0,yG.assert)((0,yG.isArray)(f),"$min: input must resolve to array");let d=f[0];for(let w of f)(0,yG.isNil)(w)||isNaN(w)||(0,yG.compare)(w,d)<=0&&(d=w);return d}});var KIe=Ve((Iyn,Nht)=>{var GIe=Object.defineProperty,BAr=Object.getOwnPropertyDescriptor,qAr=Object.getOwnPropertyNames,JAr=Object.prototype.hasOwnProperty,zAr=(o,a)=>{for(var u in a)GIe(o,u,{get:a[u],enumerable:!0})},WAr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of qAr(a))!JAr.call(o,d)&&d!==u&&GIe(o,d,{get:()=>a[d],enumerable:!(f=BAr(a,d))||f.enumerable});return o},UAr=o=>WAr(GIe({},"__esModule",{value:!0}),o),Oht={};zAr(Oht,{$minN:()=>VAr});Nht.exports=UAr(Oht);var Eht=Ji(),Dht=qi(),$Ar=vh(),VAr=(o,a,u)=>{let f=Eht.ComputeOptions.init(u),d=o.length,w=(0,Eht.computeValue)(f?.local?.groupId,a.n,null,f),O=(0,$Ar.$push)(o,a.input,u).filter(q=>!(0,Dht.isNil)(q));return O.sort(Dht.compare),d<=w?O:O.slice(0,w)}});var Fht=Ve((Fyn,Iht)=>{var QIe=Object.defineProperty,HAr=Object.getOwnPropertyDescriptor,GAr=Object.getOwnPropertyNames,KAr=Object.prototype.hasOwnProperty,QAr=(o,a)=>{for(var u in a)QIe(o,u,{get:a[u],enumerable:!0})},XAr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of GAr(a))!KAr.call(o,d)&&d!==u&&QIe(o,d,{get:()=>a[d],enumerable:!(f=HAr(a,d))||f.enumerable});return o},YAr=o=>XAr(QIe({},"__esModule",{value:!0}),o),Aht={};QAr(Aht,{$stdDevPop:()=>r6r});Iht.exports=YAr(Aht);var ZAr=qi(),e6r=gG(),t6r=vh(),r6r=(o,a,u)=>(0,e6r.stddev)((0,t6r.$push)(o,a,u).filter(ZAr.isNumber),!1)});var jht=Ve((Myn,Rht)=>{var XIe=Object.defineProperty,n6r=Object.getOwnPropertyDescriptor,i6r=Object.getOwnPropertyNames,a6r=Object.prototype.hasOwnProperty,s6r=(o,a)=>{for(var u in a)XIe(o,u,{get:a[u],enumerable:!0})},o6r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i6r(a))!a6r.call(o,d)&&d!==u&&XIe(o,d,{get:()=>a[d],enumerable:!(f=n6r(a,d))||f.enumerable});return o},c6r=o=>o6r(XIe({},"__esModule",{value:!0}),o),Mht={};s6r(Mht,{$stdDevSamp:()=>f6r});Rht.exports=c6r(Mht);var l6r=qi(),u6r=gG(),p6r=vh(),f6r=(o,a,u)=>(0,u6r.stddev)((0,p6r.$push)(o,a,u).filter(l6r.isNumber),!0)});var qht=Ve((Ryn,Bht)=>{var ZIe=Object.defineProperty,_6r=Object.getOwnPropertyDescriptor,d6r=Object.getOwnPropertyNames,m6r=Object.prototype.hasOwnProperty,g6r=(o,a)=>{for(var u in a)ZIe(o,u,{get:a[u],enumerable:!0})},h6r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of d6r(a))!m6r.call(o,d)&&d!==u&&ZIe(o,d,{get:()=>a[d],enumerable:!(f=_6r(a,d))||f.enumerable});return o},y6r=o=>h6r(ZIe({},"__esModule",{value:!0}),o),Lht={};g6r(Lht,{$sum:()=>b6r});Bht.exports=y6r(Lht);var YIe=qi(),v6r=vh(),b6r=(o,a,u)=>(0,YIe.isArray)(o)?(0,YIe.isNumber)(a)?o.length*a:(0,v6r.$push)(o,a,u).filter(YIe.isNumber).reduce((d,w)=>d+w,0):0});var t4e=Ve((jyn,Wht)=>{var e4e=Object.defineProperty,x6r=Object.getOwnPropertyDescriptor,S6r=Object.getOwnPropertyNames,T6r=Object.prototype.hasOwnProperty,w6r=(o,a)=>{for(var u in a)e4e(o,u,{get:a[u],enumerable:!0})},k6r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of S6r(a))!T6r.call(o,d)&&d!==u&&e4e(o,d,{get:()=>a[d],enumerable:!(f=x6r(a,d))||f.enumerable});return o},C6r=o=>k6r(e4e({},"__esModule",{value:!0}),o),zht={};w6r(zht,{$topN:()=>O6r});Wht.exports=C6r(zht);var Jht=Ji(),P6r=Lb(),E6r=mO(),D6r=vh(),O6r=(o,a,u)=>{let f=Jht.ComputeOptions.init(u),{n:d,sortBy:w}=(0,Jht.computeValue)(f.local.groupId,a,null,f),O=(0,E6r.$sort)((0,P6r.Lazy)(o),w,u).take(d).value();return(0,D6r.$push)(O,a.output,f)}});var Vht=Ve((Lyn,$ht)=>{var r4e=Object.defineProperty,N6r=Object.getOwnPropertyDescriptor,A6r=Object.getOwnPropertyNames,I6r=Object.prototype.hasOwnProperty,F6r=(o,a)=>{for(var u in a)r4e(o,u,{get:a[u],enumerable:!0})},M6r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of A6r(a))!I6r.call(o,d)&&d!==u&&r4e(o,d,{get:()=>a[d],enumerable:!(f=N6r(a,d))||f.enumerable});return o},R6r=o=>M6r(r4e({},"__esModule",{value:!0}),o),Uht={};F6r(Uht,{$top:()=>L6r});$ht.exports=R6r(Uht);var j6r=t4e(),L6r=(o,a,u)=>(0,j6r.$topN)(o,{...a,n:1},u)});var i4e=Ve((Byn,u_)=>{var Hht=Object.defineProperty,B6r=Object.getOwnPropertyDescriptor,q6r=Object.getOwnPropertyNames,J6r=Object.prototype.hasOwnProperty,n4e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of q6r(a))!J6r.call(o,d)&&d!==u&&Hht(o,d,{get:()=>a[d],enumerable:!(f=B6r(a,d))||f.enumerable});return o},od=(o,a,u)=>(n4e(o,a,"default"),u&&n4e(u,a,"default")),z6r=o=>n4e(Hht({},"__esModule",{value:!0}),o),N_={};u_.exports=z6r(N_);od(N_,Sgt(),u_.exports);od(N_,Egt(),u_.exports);od(N_,Ngt(),u_.exports);od(N_,jgt(),u_.exports);od(N_,wIe(),u_.exports);od(N_,qgt(),u_.exports);od(N_,Vgt(),u_.exports);od(N_,Kgt(),u_.exports);od(N_,NIe(),u_.exports);od(N_,IIe(),u_.exports);od(N_,MIe(),u_.exports);od(N_,jIe(),u_.exports);od(N_,uht(),u_.exports);od(N_,qIe(),u_.exports);od(N_,WIe(),u_.exports);od(N_,wht(),u_.exports);od(N_,Pht(),u_.exports);od(N_,KIe(),u_.exports);od(N_,zpe(),u_.exports);od(N_,vh(),u_.exports);od(N_,Fht(),u_.exports);od(N_,jht(),u_.exports);od(N_,qht(),u_.exports);od(N_,Vht(),u_.exports);od(N_,t4e(),u_.exports)});var s4e=Ve((qyn,Kht)=>{var a4e=Object.defineProperty,W6r=Object.getOwnPropertyDescriptor,U6r=Object.getOwnPropertyNames,$6r=Object.prototype.hasOwnProperty,V6r=(o,a)=>{for(var u in a)a4e(o,u,{get:a[u],enumerable:!0})},H6r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of U6r(a))!$6r.call(o,d)&&d!==u&&a4e(o,d,{get:()=>a[d],enumerable:!(f=W6r(a,d))||f.enumerable});return o},G6r=o=>H6r(a4e({},"__esModule",{value:!0}),o),Ght={};V6r(Ght,{isUnbounded:()=>K6r});Kht.exports=G6r(Ght);var K6r=o=>{let a=o?.documents||o?.range;return!a||a[0]==="unbounded"&&a[1]==="unbounded"}});var u4e=Ve((Jyn,Yht)=>{var l4e=Object.defineProperty,Q6r=Object.getOwnPropertyDescriptor,X6r=Object.getOwnPropertyNames,Y6r=Object.prototype.hasOwnProperty,Z6r=(o,a)=>{for(var u in a)l4e(o,u,{get:a[u],enumerable:!0})},eIr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of X6r(a))!Y6r.call(o,d)&&d!==u&&l4e(o,d,{get:()=>a[d],enumerable:!(f=Q6r(a,d))||f.enumerable});return o},tIr=o=>eIr(l4e({},"__esModule",{value:!0}),o),Qht={};Z6r(Qht,{MILLIS_PER_UNIT:()=>iIr,rank:()=>aIr,withMemo:()=>Xht});Yht.exports=tIr(Qht);var o4e=qi(),rIr=i4e(),c4e=Nm(),nIr=s4e(),iIr={week:c4e.MILLIS_PER_DAY*7,day:c4e.MILLIS_PER_DAY,hour:c4e.MILLIS_PER_DAY/24,minute:6e4,second:1e3,millisecond:1},Wpe=new WeakMap;function Xht(o,a,u,f){if(!(0,nIr.isUnbounded)(a.parentExpr.output[a.field].window))return f(u());Wpe.has(o)||Wpe.set(o,{[a.field]:u()});let d=Wpe.get(o);d[a.field]===void 0&&(d[a.field]=u());let w=!1;try{return f(d[a.field])}catch{w=!0}finally{(w||a.documentNumber===o.length)&&(delete d[a.field],Object.keys(d).length===0&&Wpe.delete(o))}}function aIr(o,a,u,f,d){return Xht(a,u,()=>{let w="$"+Object.keys(u.parentExpr.sortBy)[0],O=(0,rIr.$push)(a,w,f),q=(0,o4e.groupBy)(O,(K,le)=>O[le],f.hashFunction);return{values:O,groups:q}},w=>{let{values:O,groups:q}=w;if(q.size==a.length)return u.documentNumber;let K=O[u.documentNumber-1],le=0,ye=0;for(let Be of q.keys()){if((0,o4e.isEqual)(K,Be))return d?le+1:ye+1;le++,ye+=q.get(Be).length}throw new o4e.MingoError("rank: invalid return value. please submit a bug report.")})}});var tyt=Ve((zyn,eyt)=>{var f4e=Object.defineProperty,sIr=Object.getOwnPropertyDescriptor,oIr=Object.getOwnPropertyNames,cIr=Object.prototype.hasOwnProperty,lIr=(o,a)=>{for(var u in a)f4e(o,u,{get:a[u],enumerable:!0})},uIr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of oIr(a))!cIr.call(o,d)&&d!==u&&f4e(o,d,{get:()=>a[d],enumerable:!(f=sIr(a,d))||f.enumerable});return o},pIr=o=>uIr(f4e({},"__esModule",{value:!0}),o),Zht={};lIr(Zht,{$linearFill:()=>mIr});eyt.exports=pIr(Zht);var p4e=qi(),fIr=i4e(),_Ir=u4e(),dIr=(o,a,u,f,d)=>a+(d-o)*((f-a)/(u-o)),mIr=(o,a,u,f)=>(0,_Ir.withMemo)(a,u,()=>{let d="$"+Object.keys(u.parentExpr.sortBy)[0],w=(0,fIr.$push)(a,[d,u.inputExpr],f).filter(([K,le])=>(0,p4e.isNumber)(+K));if(w.length!==a.length)return null;let O=-1,q=0;for(;q<w.length;){for(;O+1<w.length&&(0,p4e.isNumber)(w[O+1][1]);)O++,q=O;for(;q+1<w.length&&!(0,p4e.isNumber)(w[q+1][1]);)q++;if(q+1>=w.length)break;for(q++;O+1<q;)w[O+1][1]=dIr(w[O][0],w[O][1],w[q][0],w[q][1],w[O+1][0]),O++;O=q}return w.map(([K,le])=>le)},d=>d[u.documentNumber-1])});var iyt=Ve((Wyn,nyt)=>{var _4e=Object.defineProperty,gIr=Object.getOwnPropertyDescriptor,hIr=Object.getOwnPropertyNames,yIr=Object.prototype.hasOwnProperty,vIr=(o,a)=>{for(var u in a)_4e(o,u,{get:a[u],enumerable:!0})},bIr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of hIr(a))!yIr.call(o,d)&&d!==u&&_4e(o,d,{get:()=>a[d],enumerable:!(f=gIr(a,d))||f.enumerable});return o},xIr=o=>bIr(_4e({},"__esModule",{value:!0}),o),ryt={};vIr(ryt,{$locf:()=>kIr});nyt.exports=xIr(ryt);var SIr=qi(),TIr=vh(),wIr=u4e(),kIr=(o,a,u,f)=>(0,wIr.withMemo)(a,u,()=>{let d=(0,TIr.$push)(a,u.inputExpr,f);for(let w=1;w<d.length;w++)(0,SIr.isNil)(d[w])&&(d[w]=d[w-1]);return d},d=>d[u.documentNumber-1])});var m4e=Ve((Uyn,syt)=>{var d4e=Object.defineProperty,CIr=Object.getOwnPropertyDescriptor,PIr=Object.getOwnPropertyNames,EIr=Object.prototype.hasOwnProperty,DIr=(o,a)=>{for(var u in a)d4e(o,u,{get:a[u],enumerable:!0})},OIr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of PIr(a))!EIr.call(o,d)&&d!==u&&d4e(o,d,{get:()=>a[d],enumerable:!(f=CIr(a,d))||f.enumerable});return o},NIr=o=>OIr(d4e({},"__esModule",{value:!0}),o),ayt={};DIr(ayt,{$function:()=>FIr});syt.exports=NIr(ayt);var AIr=Ji(),IIr=qi(),FIr=(o,a,u)=>{(0,IIr.assert)(u.scriptEnabled,"$function operator requires 'scriptEnabled' option to be true");let f=(0,AIr.computeValue)(o,a,null,u);return f.body.apply(null,f.args)}});var $pe=Ve(($yn,cyt)=>{var y4e=Object.defineProperty,MIr=Object.getOwnPropertyDescriptor,RIr=Object.getOwnPropertyNames,jIr=Object.prototype.hasOwnProperty,LIr=(o,a)=>{for(var u in a)y4e(o,u,{get:a[u],enumerable:!0})},BIr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of RIr(a))!jIr.call(o,d)&&d!==u&&y4e(o,d,{get:()=>a[d],enumerable:!(f=MIr(a,d))||f.enumerable});return o},qIr=o=>BIr(y4e({},"__esModule",{value:!0}),o),oyt={};LIr(oyt,{$group:()=>JIr});cyt.exports=qIr(oyt);var g4e=Ji(),h4e=qi(),Upe="_id",JIr=(o,a,u)=>{(0,h4e.assert)((0,h4e.has)(a,Upe),"$group specification must include an '_id'");let f=a[Upe],d=g4e.ComputeOptions.init(u),w=Object.keys(a).filter(O=>O!=Upe);return o.transform(O=>{let q=(0,h4e.groupBy)(O,ye=>(0,g4e.computeValue)(ye,f,null,u),u.hashFunction),K=-1,le=Array.from(q.keys());return()=>{if(++K===q.size)return{done:!0};let ye=le[K],Be={};ye!==void 0&&(Be[Upe]=ye);for(let ce of w)Be[ce]=(0,g4e.computeValue)(q.get(ye),a[ce],null,d.update(null,{groupId:ye}));return{value:Be,done:!1}}})}});var b4e=Ve((Vyn,fyt)=>{var v4e=Object.defineProperty,zIr=Object.getOwnPropertyDescriptor,WIr=Object.getOwnPropertyNames,UIr=Object.prototype.hasOwnProperty,$Ir=(o,a)=>{for(var u in a)v4e(o,u,{get:a[u],enumerable:!0})},VIr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of WIr(a))!UIr.call(o,d)&&d!==u&&v4e(o,d,{get:()=>a[d],enumerable:!(f=zIr(a,d))||f.enumerable});return o},HIr=o=>VIr(v4e({},"__esModule",{value:!0}),o),pyt={};$Ir(pyt,{$setWindowFields:()=>t4r});fyt.exports=HIr(pyt);var vG=Ji(),lyt=Lb(),ZT=qi(),GIr=m4e(),KIr=_G(),QIr=s4e(),XIr=pG(),YIr=$pe(),ZIr=mO(),uyt=new Set(["$denseRank","$documentNumber","$first","$last","$linearFill","$rank","$shift"]),e4r=new Set(["$denseRank","$expMovingAvg","$linearFill","$locf","$rank","$shift"]),t4r=(o,a,u)=>{u=(0,vG.initOptions)(u),u.context.addExpressionOps({$function:GIr.$function});for(let f of Object.values(a.output)){let d=Object.keys(f),w=d.find(ZT.isOperator);if((0,ZT.assert)(!!(0,vG.getOperator)("window",w,u)||!!(0,vG.getOperator)("accumulator",w,u),`'${w}' is not a valid window operator`),(0,ZT.assert)(d.length>0&&d.length<=2&&(d.length==1||d.includes("window")),"'output' option should have a single window operator."),f?.window){let{documents:O,range:q}=f.window;(0,ZT.assert)(!!O&&!q||!O&&!!q||!O&&!q,"'window' option supports only one of 'documents' or 'range'.")}}return a.sortBy&&(o=(0,ZIr.$sort)(o,a.sortBy,u)),o=(0,YIr.$group)(o,{_id:a.partitionBy,items:{$push:"$$CURRENT"}},u),o.transform(f=>{let d=[],w=[];for(let[O,q]of Object.entries(a.output)){let K=Object.keys(q).find(ZT.isOperator),le={operatorName:K,func:{left:(0,vG.getOperator)("accumulator",K,u),right:(0,vG.getOperator)("window",K,u)},args:q[K],field:O,window:q.window};(0,ZT.assert)(!!a.sortBy||!(uyt.has(K)||!le.window),`${uyt.has(K)?`'${K}'`:"bounded window operation"} requires a sortBy.`),(0,ZT.assert)(!le.window||!e4r.has(K),`${K} does not accept a 'window' field.`),w.push(le)}return f.forEach(O=>{let q=O.items,K=(0,lyt.Lazy)(q),le={};for(let ye of w){let{func:Be,args:ce,field:mt,window:Re}=ye,Ge=_r=>{let jr=-1;return si=>{if(++jr,Be.left)return Be.left(_r(si,jr),ce,u);if(Be.right)return Be.right(si,_r(si,jr),{parentExpr:a,inputExpr:ce,documentNumber:jr+1,field:mt},u)}};if(Re){let{documents:_r,range:jr,unit:si}=Re,Oi=_r||jr;if(!(0,QIr.isUnbounded)(Re)){let[ys,ns]=Oi,sn=Va=>ys=="current"?Va:ys=="unbounded"?0:Math.max(ys+Va,0),Ir=Va=>ns=="current"?Va+1:ns=="unbounded"?q.length:ns+Va+1,Ks=(Va,up)=>{if(_r||Oi.every(ZT.isString))return q.slice(sn(up),Ir(up));let Ta=Object.keys(a.sortBy)[0],f_,Vu;if(si){let __=wa=>(0,KIr.$dateAdd)(Va,{startDate:new Date(Va[Ta]),unit:si,amount:wa},u).getTime();f_=(0,ZT.isNumber)(ys)?__(ys):-1/0,Vu=(0,ZT.isNumber)(ns)?__(ns):1/0}else{let __=Va[Ta];f_=(0,ZT.isNumber)(ys)?__+ys:-1/0,Vu=(0,ZT.isNumber)(ns)?__+ns:1/0}let Cn=q;return ys=="current"&&(Cn=q.slice(up)),ns=="current"&&(Cn=q.slice(0,up+1)),Cn.filter(__=>{let wa=+__[Ta];return wa>=f_&&wa<=Vu})};le[mt]=Ge(Ks)}}le[mt]||(le[mt]=Ge(_r=>q)),K=(0,XIr.$addFields)(K,{[mt]:{$function:{body:_r=>le[mt](_r),args:["$$CURRENT"]}}},u)}d.push(K)}),(0,lyt.concat)(...d)})}});var myt=Ve((Hyn,dyt)=>{var x4e=Object.defineProperty,r4r=Object.getOwnPropertyDescriptor,n4r=Object.getOwnPropertyNames,i4r=Object.prototype.hasOwnProperty,a4r=(o,a)=>{for(var u in a)x4e(o,u,{get:a[u],enumerable:!0})},s4r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of n4r(a))!i4r.call(o,d)&&d!==u&&x4e(o,d,{get:()=>a[d],enumerable:!(f=r4r(a,d))||f.enumerable});return o},o4r=o=>s4r(x4e({},"__esModule",{value:!0}),o),_yt={};a4r(_yt,{$fill:()=>m4r});dyt.exports=o4r(_yt);var c4r=Ji(),eI=qi(),l4r=hIe(),u4r=tyt(),p4r=iyt(),f4r=pG(),_4r=b4e(),d4r={locf:"$locf",linear:"$linearFill"},m4r=(o,a,u)=>{(0,eI.assert)(!a.sortBy||(0,eI.isObject)(a.sortBy),"sortBy must be an object."),(0,eI.assert)(!!a.sortBy||Object.values(a.output).every(O=>(0,eI.has)(O,"value")),"sortBy required if any output field specifies a 'method'."),(0,eI.assert)(!(a.partitionBy&&a.partitionByFields),"specify either partitionBy or partitionByFields."),(0,eI.assert)(!a.partitionByFields||a?.partitionByFields?.every(O=>O[0]!=="$"),"fields in partitionByFields cannot begin with '$'."),u=(0,c4r.initOptions)(u),u.context.addExpressionOps({$ifNull:l4r.$ifNull}),u.context.addWindowOps({$locf:p4r.$locf,$linearFill:u4r.$linearFill});let f=a.partitionBy||a?.partitionByFields?.map(O=>"$"+O),d={},w={};for(let[O,q]of Object.entries(a.output))if((0,eI.has)(q,"value"))d[O]={$ifNull:[`$$CURRENT.${O}`,q.value]};else{let K=d4r[q.method];(0,eI.assert)(!!K,`invalid fill method '${q.method}'.`),w[O]={[K]:"$"+O}}return Object.keys(w).length>0&&(o=(0,_4r.$setWindowFields)(o,{sortBy:a.sortBy||{},partitionBy:f,output:w},u)),Object.keys(d).length>0&&(o=(0,f4r.$addFields)(o,d,u)),o}});var T4e=Ve((Gyn,hyt)=>{var S4e=Object.defineProperty,g4r=Object.getOwnPropertyDescriptor,h4r=Object.getOwnPropertyNames,y4r=Object.prototype.hasOwnProperty,v4r=(o,a)=>{for(var u in a)S4e(o,u,{get:a[u],enumerable:!0})},b4r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of h4r(a))!y4r.call(o,d)&&d!==u&&S4e(o,d,{get:()=>a[d],enumerable:!(f=g4r(a,d))||f.enumerable});return o},x4r=o=>b4r(S4e({},"__esModule",{value:!0}),o),gyt={};v4r(gyt,{$lookup:()=>w4r});hyt.exports=x4r(gyt);var S4r=mG(),T4r=Ji(),P7=qi(),w4r=(o,a,u)=>{let f=(0,P7.isString)(a.from)?u?.collectionResolver(a.from):a.from,{let:d,pipeline:w,foreignField:O,localField:q}=a,K=w||[],le=ce=>[!0,[]];if(O&&q){let ce=P7.ValueMap.init(u.hashFunction);for(let mt of f)(0,P7.ensureArray)((0,P7.resolve)(mt,O)??null).forEach(Re=>{let Ge=ce.get(Re),_r=Ge??[];_r.push(mt),_r!==Ge&&ce.set(Re,_r)});if(le=mt=>{let Re=(0,P7.resolve)(mt,q)??null;if((0,P7.isArray)(Re)){if(K.length)return[Re.some(jr=>ce.has(jr)),null];let _r=Array.from(new Set((0,P7.flatten)(Re.map(jr=>ce.get(jr),u.hashFunction))));return[_r.length>0,_r]}let Ge=ce.get(Re)??null;return[Ge!==null,Ge??[]]},K.length===0)return o.map(mt=>({...mt,[a.as]:le(mt).pop()}))}let ye=new S4r.Aggregator(K,u),Be={...u};return o.map(ce=>{let mt=(0,T4r.computeValue)(ce,d,null,u);Be.variables={...u.variables,...mt};let[Re,Ge]=le(ce);return{...ce,[a.as]:Re?ye.run(f,Be):Ge}})}});var byt=Ve((Kyn,vyt)=>{var w4e=Object.defineProperty,k4r=Object.getOwnPropertyDescriptor,C4r=Object.getOwnPropertyNames,P4r=Object.prototype.hasOwnProperty,E4r=(o,a)=>{for(var u in a)w4e(o,u,{get:a[u],enumerable:!0})},D4r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of C4r(a))!P4r.call(o,d)&&d!==u&&w4e(o,d,{get:()=>a[d],enumerable:!(f=k4r(a,d))||f.enumerable});return o},O4r=o=>D4r(w4e({},"__esModule",{value:!0}),o),yyt={};E4r(yyt,{$graphLookup:()=>F4r});vyt.exports=O4r(yyt);var N4r=Ji(),A4r=Lb(),bG=qi(),I4r=T4e(),F4r=(o,a,u)=>{let f=(0,bG.isString)(a.from)?u?.collectionResolver(a.from):a.from,{connectFromField:d,connectToField:w,as:O,maxDepth:q,depthField:K,restrictSearchWithMatch:le}=a,ye=le?{pipeline:[{$match:le}]}:{};return o.map(Be=>{let ce={};(0,bG.setValue)(ce,d,(0,N4r.computeValue)(Be,a.startWith,null,u));let mt=[ce],Re=-1,Ge=bG.ValueMap.init(u.hashFunction);do{Re++,mt=(0,bG.flatten)((0,I4r.$lookup)((0,A4r.Lazy)(mt),{from:f,localField:d,foreignField:w,as:O,...ye},u).map(Oi=>Oi[O]).value());let si=Ge.size;if(mt.forEach(Oi=>Ge.set(Oi,Ge.get(Oi)??Re)),si==Ge.size)break}while((0,bG.isNil)(q)||Re<q);let _r=new Array(Ge.size),jr=0;return Ge.forEach((si,Oi)=>{_r[jr++]=Object.assign(K?{[K]:si}:{},Oi)}),{...Be,[O]:_r}})}});var Tyt=Ve((Qyn,Syt)=>{var k4e=Object.defineProperty,M4r=Object.getOwnPropertyDescriptor,R4r=Object.getOwnPropertyNames,j4r=Object.prototype.hasOwnProperty,L4r=(o,a)=>{for(var u in a)k4e(o,u,{get:a[u],enumerable:!0})},B4r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of R4r(a))!j4r.call(o,d)&&d!==u&&k4e(o,d,{get:()=>a[d],enumerable:!(f=M4r(a,d))||f.enumerable});return o},q4r=o=>B4r(k4e({},"__esModule",{value:!0}),o),xyt={};L4r(xyt,{$match:()=>z4r});Syt.exports=q4r(xyt);var J4r=C7(),z4r=(o,a,u)=>{let f=new J4r.Query(a,u);return o.filter(d=>f.test(d))}});var Cyt=Ve((Xyn,kyt)=>{var C4e=Object.defineProperty,W4r=Object.getOwnPropertyDescriptor,U4r=Object.getOwnPropertyNames,$4r=Object.prototype.hasOwnProperty,V4r=(o,a)=>{for(var u in a)C4e(o,u,{get:a[u],enumerable:!0})},H4r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of U4r(a))!$4r.call(o,d)&&d!==u&&C4e(o,d,{get:()=>a[d],enumerable:!(f=W4r(a,d))||f.enumerable});return o},G4r=o=>H4r(C4e({},"__esModule",{value:!0}),o),wyt={};V4r(wyt,{$abs:()=>X4r});kyt.exports=G4r(wyt);var K4r=Ji(),Q4r=qi(),X4r=(o,a,u)=>{let f=(0,K4r.computeValue)(o,a,null,u);return(0,Q4r.isNil)(f)?null:Math.abs(f)}});var Oyt=Ve((Yyn,Dyt)=>{var P4e=Object.defineProperty,Y4r=Object.getOwnPropertyDescriptor,Z4r=Object.getOwnPropertyNames,e3r=Object.prototype.hasOwnProperty,t3r=(o,a)=>{for(var u in a)P4e(o,u,{get:a[u],enumerable:!0})},r3r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Z4r(a))!e3r.call(o,d)&&d!==u&&P4e(o,d,{get:()=>a[d],enumerable:!(f=Y4r(a,d))||f.enumerable});return o},n3r=o=>r3r(P4e({},"__esModule",{value:!0}),o),Eyt={};t3r(Eyt,{$add:()=>a3r});Dyt.exports=n3r(Eyt);var i3r=Ji(),Pyt=qi(),a3r=(o,a,u)=>{let f=(0,i3r.computeValue)(o,a,null,u),d=!1,w=0;for(let O of f)(0,Pyt.isDate)(O)&&((0,Pyt.assert)(!d,"'$add' can only have one date value"),d=!0),w+=+O;return d?new Date(w):w}});var Iyt=Ve((Zyn,Ayt)=>{var D4e=Object.defineProperty,s3r=Object.getOwnPropertyDescriptor,o3r=Object.getOwnPropertyNames,c3r=Object.prototype.hasOwnProperty,l3r=(o,a)=>{for(var u in a)D4e(o,u,{get:a[u],enumerable:!0})},u3r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of o3r(a))!c3r.call(o,d)&&d!==u&&D4e(o,d,{get:()=>a[d],enumerable:!(f=s3r(a,d))||f.enumerable});return o},p3r=o=>u3r(D4e({},"__esModule",{value:!0}),o),Nyt={};l3r(Nyt,{$ceil:()=>_3r});Ayt.exports=p3r(Nyt);var f3r=Ji(),E4e=qi(),_3r=(o,a,u)=>{let f=(0,f3r.computeValue)(o,a,null,u);return(0,E4e.isNil)(f)?null:((0,E4e.assert)((0,E4e.isNumber)(f)||isNaN(f),"$ceil expression must resolve to a number."),Math.ceil(f))}});var Ryt=Ve((evn,Myt)=>{var O4e=Object.defineProperty,d3r=Object.getOwnPropertyDescriptor,m3r=Object.getOwnPropertyNames,g3r=Object.prototype.hasOwnProperty,h3r=(o,a)=>{for(var u in a)O4e(o,u,{get:a[u],enumerable:!0})},y3r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of m3r(a))!g3r.call(o,d)&&d!==u&&O4e(o,d,{get:()=>a[d],enumerable:!(f=d3r(a,d))||f.enumerable});return o},v3r=o=>y3r(O4e({},"__esModule",{value:!0}),o),Fyt={};h3r(Fyt,{$divide:()=>x3r});Myt.exports=v3r(Fyt);var b3r=Ji(),x3r=(o,a,u)=>{let f=(0,b3r.computeValue)(o,a,null,u);return f[0]/f[1]}});var Byt=Ve((tvn,Lyt)=>{var A4e=Object.defineProperty,S3r=Object.getOwnPropertyDescriptor,T3r=Object.getOwnPropertyNames,w3r=Object.prototype.hasOwnProperty,k3r=(o,a)=>{for(var u in a)A4e(o,u,{get:a[u],enumerable:!0})},C3r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of T3r(a))!w3r.call(o,d)&&d!==u&&A4e(o,d,{get:()=>a[d],enumerable:!(f=S3r(a,d))||f.enumerable});return o},P3r=o=>C3r(A4e({},"__esModule",{value:!0}),o),jyt={};k3r(jyt,{$exp:()=>D3r});Lyt.exports=P3r(jyt);var E3r=Ji(),N4e=qi(),D3r=(o,a,u)=>{let f=(0,E3r.computeValue)(o,a,null,u);return(0,N4e.isNil)(f)?null:((0,N4e.assert)((0,N4e.isNumber)(f)||isNaN(f),"$exp expression must resolve to a number."),Math.exp(f))}});var zyt=Ve((rvn,Jyt)=>{var F4e=Object.defineProperty,O3r=Object.getOwnPropertyDescriptor,N3r=Object.getOwnPropertyNames,A3r=Object.prototype.hasOwnProperty,I3r=(o,a)=>{for(var u in a)F4e(o,u,{get:a[u],enumerable:!0})},F3r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of N3r(a))!A3r.call(o,d)&&d!==u&&F4e(o,d,{get:()=>a[d],enumerable:!(f=O3r(a,d))||f.enumerable});return o},M3r=o=>F3r(F4e({},"__esModule",{value:!0}),o),qyt={};I3r(qyt,{$floor:()=>j3r});Jyt.exports=M3r(qyt);var R3r=Ji(),I4e=qi(),j3r=(o,a,u)=>{let f=(0,R3r.computeValue)(o,a,null,u);return(0,I4e.isNil)(f)?null:((0,I4e.assert)((0,I4e.isNumber)(f)||isNaN(f),"$floor expression must resolve to a number."),Math.floor(f))}});var $yt=Ve((nvn,Uyt)=>{var R4e=Object.defineProperty,L3r=Object.getOwnPropertyDescriptor,B3r=Object.getOwnPropertyNames,q3r=Object.prototype.hasOwnProperty,J3r=(o,a)=>{for(var u in a)R4e(o,u,{get:a[u],enumerable:!0})},z3r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of B3r(a))!q3r.call(o,d)&&d!==u&&R4e(o,d,{get:()=>a[d],enumerable:!(f=L3r(a,d))||f.enumerable});return o},W3r=o=>z3r(R4e({},"__esModule",{value:!0}),o),Wyt={};J3r(Wyt,{$ln:()=>$3r});Uyt.exports=W3r(Wyt);var U3r=Ji(),M4e=qi(),$3r=(o,a,u)=>{let f=(0,U3r.computeValue)(o,a,null,u);return(0,M4e.isNil)(f)?null:((0,M4e.assert)((0,M4e.isNumber)(f)||isNaN(f),"$ln expression must resolve to a number."),Math.log(f))}});var Gyt=Ve((ivn,Hyt)=>{var j4e=Object.defineProperty,V3r=Object.getOwnPropertyDescriptor,H3r=Object.getOwnPropertyNames,G3r=Object.prototype.hasOwnProperty,K3r=(o,a)=>{for(var u in a)j4e(o,u,{get:a[u],enumerable:!0})},Q3r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of H3r(a))!G3r.call(o,d)&&d!==u&&j4e(o,d,{get:()=>a[d],enumerable:!(f=V3r(a,d))||f.enumerable});return o},X3r=o=>Q3r(j4e({},"__esModule",{value:!0}),o),Vyt={};K3r(Vyt,{$log:()=>Z3r});Hyt.exports=X3r(Vyt);var Y3r=Ji(),xG=qi(),Z3r=(o,a,u)=>{let f=(0,Y3r.computeValue)(o,a,null,u),d="$log expression must resolve to array(2) of numbers";return(0,xG.assert)((0,xG.isArray)(f)&&f.length===2,d),f.some(xG.isNil)?null:((0,xG.assert)(f.some(isNaN)||f.every(xG.isNumber),d),Math.log10(f[0])/Math.log10(f[1]))}});var Xyt=Ve((avn,Qyt)=>{var B4e=Object.defineProperty,e8r=Object.getOwnPropertyDescriptor,t8r=Object.getOwnPropertyNames,r8r=Object.prototype.hasOwnProperty,n8r=(o,a)=>{for(var u in a)B4e(o,u,{get:a[u],enumerable:!0})},i8r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of t8r(a))!r8r.call(o,d)&&d!==u&&B4e(o,d,{get:()=>a[d],enumerable:!(f=e8r(a,d))||f.enumerable});return o},a8r=o=>i8r(B4e({},"__esModule",{value:!0}),o),Kyt={};n8r(Kyt,{$log10:()=>o8r});Qyt.exports=a8r(Kyt);var s8r=Ji(),L4e=qi(),o8r=(o,a,u)=>{let f=(0,s8r.computeValue)(o,a,null,u);return(0,L4e.isNil)(f)?null:((0,L4e.assert)((0,L4e.isNumber)(f)||isNaN(f),"$log10 expression must resolve to a number."),Math.log10(f))}});var evt=Ve((svn,Zyt)=>{var q4e=Object.defineProperty,c8r=Object.getOwnPropertyDescriptor,l8r=Object.getOwnPropertyNames,u8r=Object.prototype.hasOwnProperty,p8r=(o,a)=>{for(var u in a)q4e(o,u,{get:a[u],enumerable:!0})},f8r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of l8r(a))!u8r.call(o,d)&&d!==u&&q4e(o,d,{get:()=>a[d],enumerable:!(f=c8r(a,d))||f.enumerable});return o},_8r=o=>f8r(q4e({},"__esModule",{value:!0}),o),Yyt={};p8r(Yyt,{$mod:()=>m8r});Zyt.exports=_8r(Yyt);var d8r=Ji(),m8r=(o,a,u)=>{let f=(0,d8r.computeValue)(o,a,null,u);return f[0]%f[1]}});var nvt=Ve((ovn,rvt)=>{var J4e=Object.defineProperty,g8r=Object.getOwnPropertyDescriptor,h8r=Object.getOwnPropertyNames,y8r=Object.prototype.hasOwnProperty,v8r=(o,a)=>{for(var u in a)J4e(o,u,{get:a[u],enumerable:!0})},b8r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of h8r(a))!y8r.call(o,d)&&d!==u&&J4e(o,d,{get:()=>a[d],enumerable:!(f=g8r(a,d))||f.enumerable});return o},x8r=o=>b8r(J4e({},"__esModule",{value:!0}),o),tvt={};v8r(tvt,{$multiply:()=>T8r});rvt.exports=x8r(tvt);var S8r=Ji(),T8r=(o,a,u)=>(0,S8r.computeValue)(o,a,null,u).reduce((d,w)=>d*w,1)});var svt=Ve((cvn,avt)=>{var z4e=Object.defineProperty,w8r=Object.getOwnPropertyDescriptor,k8r=Object.getOwnPropertyNames,C8r=Object.prototype.hasOwnProperty,P8r=(o,a)=>{for(var u in a)z4e(o,u,{get:a[u],enumerable:!0})},E8r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of k8r(a))!C8r.call(o,d)&&d!==u&&z4e(o,d,{get:()=>a[d],enumerable:!(f=w8r(a,d))||f.enumerable});return o},D8r=o=>E8r(z4e({},"__esModule",{value:!0}),o),ivt={};P8r(ivt,{$pow:()=>N8r});avt.exports=D8r(ivt);var O8r=Ji(),Vpe=qi(),N8r=(o,a,u)=>{let f=(0,O8r.computeValue)(o,a,null,u);return(0,Vpe.assert)((0,Vpe.isArray)(f)&&f.length===2&&f.every(Vpe.isNumber),"$pow expression must resolve to array(2) of numbers"),(0,Vpe.assert)(!(f[0]===0&&f[1]<0),"$pow cannot raise 0 to a negative exponent"),Math.pow(f[0],f[1])}});var U4e=Ve((lvn,cvt)=>{var W4e=Object.defineProperty,A8r=Object.getOwnPropertyDescriptor,I8r=Object.getOwnPropertyNames,F8r=Object.prototype.hasOwnProperty,M8r=(o,a)=>{for(var u in a)W4e(o,u,{get:a[u],enumerable:!0})},R8r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of I8r(a))!F8r.call(o,d)&&d!==u&&W4e(o,d,{get:()=>a[d],enumerable:!(f=A8r(a,d))||f.enumerable});return o},j8r=o=>R8r(W4e({},"__esModule",{value:!0}),o),ovt={};M8r(ovt,{truncate:()=>L8r});cvt.exports=j8r(ovt);function L8r(o,a=0,u=!1){let f=Math.abs(o)===o?1:-1;o=Math.abs(o);let d=Math.trunc(o),w=parseFloat((o-d).toFixed(a+1));if(a===0){let O=Math.trunc(10*w);u&&((d&1)===1&&O>=5||O>5)&&d++}else if(a>0){let O=Math.pow(10,a),q=Math.trunc(w*O),K=Math.trunc(w*O*10)%10;u&&K>5&&(q+=1),d=(d*O+q)/O}else if(a<0){let O=Math.pow(10,-1*a),q=d%O;if(d=Math.max(0,d-q),u&&f===-1){for(;q>10;)q-=q%10;d>0&&q>=5&&(d+=O)}}return d*f}});var pvt=Ve((uvn,uvt)=>{var V4e=Object.defineProperty,B8r=Object.getOwnPropertyDescriptor,q8r=Object.getOwnPropertyNames,J8r=Object.prototype.hasOwnProperty,z8r=(o,a)=>{for(var u in a)V4e(o,u,{get:a[u],enumerable:!0})},W8r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of q8r(a))!J8r.call(o,d)&&d!==u&&V4e(o,d,{get:()=>a[d],enumerable:!(f=B8r(a,d))||f.enumerable});return o},U8r=o=>W8r(V4e({},"__esModule",{value:!0}),o),lvt={};z8r(lvt,{$round:()=>H8r});uvt.exports=U8r(lvt);var $8r=Ji(),$4e=qi(),V8r=U4e(),H8r=(o,a,u)=>{let f=(0,$8r.computeValue)(o,a,null,u),d=f[0],w=f[1];return(0,$4e.isNil)(d)||isNaN(d)||Math.abs(d)===1/0?d:((0,$4e.assert)((0,$4e.isNumber)(d),"$round expression must resolve to a number."),(0,V8r.truncate)(d,w,!0))}});var dvt=Ve((pvn,_vt)=>{var G4e=Object.defineProperty,G8r=Object.getOwnPropertyDescriptor,K8r=Object.getOwnPropertyNames,Q8r=Object.prototype.hasOwnProperty,X8r=(o,a)=>{for(var u in a)G4e(o,u,{get:a[u],enumerable:!0})},Y8r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of K8r(a))!Q8r.call(o,d)&&d!==u&&G4e(o,d,{get:()=>a[d],enumerable:!(f=G8r(a,d))||f.enumerable});return o},Z8r=o=>Y8r(G4e({},"__esModule",{value:!0}),o),fvt={};X8r(fvt,{$sqrt:()=>t7r});_vt.exports=Z8r(fvt);var e7r=Ji(),H4e=qi(),t7r=(o,a,u)=>{let f=(0,e7r.computeValue)(o,a,null,u);return(0,H4e.isNil)(f)?null:((0,H4e.assert)((0,H4e.isNumber)(f)&&f>0||isNaN(f),"$sqrt expression must resolve to non-negative number."),Math.sqrt(f))}});var hvt=Ve((fvn,gvt)=>{var K4e=Object.defineProperty,r7r=Object.getOwnPropertyDescriptor,n7r=Object.getOwnPropertyNames,i7r=Object.prototype.hasOwnProperty,a7r=(o,a)=>{for(var u in a)K4e(o,u,{get:a[u],enumerable:!0})},s7r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of n7r(a))!i7r.call(o,d)&&d!==u&&K4e(o,d,{get:()=>a[d],enumerable:!(f=r7r(a,d))||f.enumerable});return o},o7r=o=>s7r(K4e({},"__esModule",{value:!0}),o),mvt={};a7r(mvt,{$subtract:()=>l7r});gvt.exports=o7r(mvt);var c7r=Ji(),E7=qi(),l7r=(o,a,u)=>{let[f,d]=(0,c7r.computeValue)(o,a,null,u);if((0,E7.isNumber)(f)&&(0,E7.isNumber)(d)||(0,E7.isDate)(f)&&(0,E7.isDate)(d))return+f-+d;if((0,E7.isDate)(f)&&(0,E7.isNumber)(d))return new Date(+f-d);(0,E7.assert)(!1,"$subtract: must resolve to number/date.")}});var bvt=Ve((_vn,vvt)=>{var Q4e=Object.defineProperty,u7r=Object.getOwnPropertyDescriptor,p7r=Object.getOwnPropertyNames,f7r=Object.prototype.hasOwnProperty,_7r=(o,a)=>{for(var u in a)Q4e(o,u,{get:a[u],enumerable:!0})},d7r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of p7r(a))!f7r.call(o,d)&&d!==u&&Q4e(o,d,{get:()=>a[d],enumerable:!(f=u7r(a,d))||f.enumerable});return o},m7r=o=>d7r(Q4e({},"__esModule",{value:!0}),o),yvt={};_7r(yvt,{$trunc:()=>y7r});vvt.exports=m7r(yvt);var g7r=Ji(),U9=qi(),h7r=U4e(),y7r=(o,a,u)=>{let f=(0,g7r.computeValue)(o,a,null,u),d=f[0],w=f[1];return(0,U9.isNil)(d)||isNaN(d)||Math.abs(d)===1/0?d:((0,U9.assert)((0,U9.isNumber)(d),"$trunc expression must resolve to a number."),(0,U9.assert)((0,U9.isNil)(w)||(0,U9.isNumber)(w)&&w>-20&&w<100,"$trunc expression has invalid place"),(0,h7r.truncate)(d,w,!1))}});var Svt=Ve((dvn,xy)=>{var xvt=Object.defineProperty,v7r=Object.getOwnPropertyDescriptor,b7r=Object.getOwnPropertyNames,x7r=Object.prototype.hasOwnProperty,X4e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of b7r(a))!x7r.call(o,d)&&d!==u&&xvt(o,d,{get:()=>a[d],enumerable:!(f=v7r(a,d))||f.enumerable});return o},d0=(o,a,u)=>(X4e(o,a,"default"),u&&X4e(u,a,"default")),S7r=o=>X4e(xvt({},"__esModule",{value:!0}),o),uv={};xy.exports=S7r(uv);d0(uv,Cyt(),xy.exports);d0(uv,Oyt(),xy.exports);d0(uv,Iyt(),xy.exports);d0(uv,Ryt(),xy.exports);d0(uv,Byt(),xy.exports);d0(uv,zyt(),xy.exports);d0(uv,$yt(),xy.exports);d0(uv,Gyt(),xy.exports);d0(uv,Xyt(),xy.exports);d0(uv,evt(),xy.exports);d0(uv,nvt(),xy.exports);d0(uv,svt(),xy.exports);d0(uv,pvt(),xy.exports);d0(uv,dvt(),xy.exports);d0(uv,hvt(),xy.exports);d0(uv,bvt(),xy.exports)});var kvt=Ve((mvn,wvt)=>{var Z4e=Object.defineProperty,T7r=Object.getOwnPropertyDescriptor,w7r=Object.getOwnPropertyNames,k7r=Object.prototype.hasOwnProperty,C7r=(o,a)=>{for(var u in a)Z4e(o,u,{get:a[u],enumerable:!0})},P7r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of w7r(a))!k7r.call(o,d)&&d!==u&&Z4e(o,d,{get:()=>a[d],enumerable:!(f=T7r(a,d))||f.enumerable});return o},E7r=o=>P7r(Z4e({},"__esModule",{value:!0}),o),Tvt={};C7r(Tvt,{$arrayElemAt:()=>O7r});wvt.exports=E7r(Tvt);var D7r=Ji(),Y4e=qi(),O7r=(o,a,u)=>{let f=(0,D7r.computeValue)(o,a,null,u);if((0,Y4e.assert)((0,Y4e.isArray)(f)&&f.length===2,"$arrayElemAt expression must resolve to array(2)"),f.some(Y4e.isNil))return null;let d=f[1],w=f[0];if(d<0&&Math.abs(d)<=w.length)return w[(d+w.length)%w.length];if(d>=0&&d<w.length)return w[d]}});var Evt=Ve((gvn,Pvt)=>{var e3e=Object.defineProperty,N7r=Object.getOwnPropertyDescriptor,A7r=Object.getOwnPropertyNames,I7r=Object.prototype.hasOwnProperty,F7r=(o,a)=>{for(var u in a)e3e(o,u,{get:a[u],enumerable:!0})},M7r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of A7r(a))!I7r.call(o,d)&&d!==u&&e3e(o,d,{get:()=>a[d],enumerable:!(f=N7r(a,d))||f.enumerable});return o},R7r=o=>M7r(e3e({},"__esModule",{value:!0}),o),Cvt={};F7r(Cvt,{$arrayToObject:()=>L7r});Pvt.exports=R7r(Cvt);var j7r=Ji(),tI=qi(),L7r=(o,a,u)=>{let f=(0,j7r.computeValue)(o,a,null,u);return(0,tI.assert)((0,tI.isArray)(f),"$arrayToObject: expression must resolve to an array"),f.reduce((d,w)=>{for(;(0,tI.isArray)(w)&&w.length===1;)w=w[0];if((0,tI.isArray)(w)&&w.length==2)d[w[0]]=w[1];else{let O=w;(0,tI.assert)((0,tI.isObject)(O)&&(0,tI.has)(O,"k")&&(0,tI.has)(O,"v"),"$arrayToObject expression is invalid."),d[O.k]=O.v}return d},{})}});var Nvt=Ve((hvn,Ovt)=>{var r3e=Object.defineProperty,B7r=Object.getOwnPropertyDescriptor,q7r=Object.getOwnPropertyNames,J7r=Object.prototype.hasOwnProperty,z7r=(o,a)=>{for(var u in a)r3e(o,u,{get:a[u],enumerable:!0})},W7r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of q7r(a))!J7r.call(o,d)&&d!==u&&r3e(o,d,{get:()=>a[d],enumerable:!(f=B7r(a,d))||f.enumerable});return o},U7r=o=>W7r(r3e({},"__esModule",{value:!0}),o),Dvt={};z7r(Dvt,{$concatArrays:()=>V7r});Ovt.exports=U7r(Dvt);var $7r=Ji(),t3e=qi(),V7r=(o,a,u)=>{let f=(0,$7r.computeValue)(o,a,null,u);(0,t3e.assert)((0,t3e.isArray)(f),"$concatArrays: input must resolve to an array");let d=0;for(let q of f){if((0,t3e.isNil)(q))return null;d+=q.length}let w=new Array(d),O=0;for(let q of f)for(let K of q)w[O++]=K;return w}});var Fvt=Ve((yvn,Ivt)=>{var i3e=Object.defineProperty,H7r=Object.getOwnPropertyDescriptor,G7r=Object.getOwnPropertyNames,K7r=Object.prototype.hasOwnProperty,Q7r=(o,a)=>{for(var u in a)i3e(o,u,{get:a[u],enumerable:!0})},X7r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of G7r(a))!K7r.call(o,d)&&d!==u&&i3e(o,d,{get:()=>a[d],enumerable:!(f=H7r(a,d))||f.enumerable});return o},Y7r=o=>X7r(i3e({},"__esModule",{value:!0}),o),Avt={};Q7r(Avt,{$filter:()=>Z7r});Ivt.exports=Y7r(Avt);var n3e=Ji(),Hpe=qi(),Z7r=(o,a,u)=>{let f=(0,n3e.computeValue)(o,a.input,null,u);if((0,Hpe.isNil)(f))return null;(0,Hpe.assert)((0,Hpe.isArray)(f),"$filter 'input' expression must resolve to an array");let d=n3e.ComputeOptions.init(u,o),w=a.as||"this",O={variables:{[w]:null}};return f.filter(q=>{O.variables[w]=q;let K=(0,n3e.computeValue)(o,a.cond,null,d.update(d.root,O));return(0,Hpe.truthy)(K,u.useStrictMode)})}});var jvt=Ve((vvn,Rvt)=>{var a3e=Object.defineProperty,eFr=Object.getOwnPropertyDescriptor,tFr=Object.getOwnPropertyNames,rFr=Object.prototype.hasOwnProperty,nFr=(o,a)=>{for(var u in a)a3e(o,u,{get:a[u],enumerable:!0})},iFr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of tFr(a))!rFr.call(o,d)&&d!==u&&a3e(o,d,{get:()=>a[d],enumerable:!(f=eFr(a,d))||f.enumerable});return o},aFr=o=>iFr(a3e({},"__esModule",{value:!0}),o),Mvt={};nFr(Mvt,{$first:()=>cFr});Rvt.exports=aFr(Mvt);var sFr=Ji(),SG=qi(),oFr=NIe(),cFr=(o,a,u)=>{if((0,SG.isArray)(o))return(0,oFr.$first)(o,a,u);let f=(0,sFr.computeValue)(o,a,null,u);return(0,SG.isNil)(f)?null:((0,SG.assert)((0,SG.isArray)(f)&&f.length>0,"$first must resolve to a non-empty array."),(0,SG.flatten)(f)[0])}});var Jvt=Ve((bvn,qvt)=>{var s3e=Object.defineProperty,lFr=Object.getOwnPropertyDescriptor,uFr=Object.getOwnPropertyNames,pFr=Object.prototype.hasOwnProperty,fFr=(o,a)=>{for(var u in a)s3e(o,u,{get:a[u],enumerable:!0})},_Fr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of uFr(a))!pFr.call(o,d)&&d!==u&&s3e(o,d,{get:()=>a[d],enumerable:!(f=lFr(a,d))||f.enumerable});return o},dFr=o=>_Fr(s3e({},"__esModule",{value:!0}),o),Bvt={};fFr(Bvt,{$firstN:()=>gFr});qvt.exports=dFr(Bvt);var mFr=Ji(),Gpe=qi(),Lvt=IIe(),gFr=(o,a,u)=>{if((0,Gpe.isArray)(o))return(0,Lvt.$firstN)(o,a,u);let{input:f,n:d}=(0,mFr.computeValue)(o,a,null,u);return(0,Gpe.isNil)(f)?null:((0,Gpe.assert)((0,Gpe.isArray)(f),"Must resolve to an array/null or missing"),(0,Lvt.$firstN)(f,{n:d,input:"$$this"},u))}});var Uvt=Ve((xvn,Wvt)=>{var c3e=Object.defineProperty,hFr=Object.getOwnPropertyDescriptor,yFr=Object.getOwnPropertyNames,vFr=Object.prototype.hasOwnProperty,bFr=(o,a)=>{for(var u in a)c3e(o,u,{get:a[u],enumerable:!0})},xFr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of yFr(a))!vFr.call(o,d)&&d!==u&&c3e(o,d,{get:()=>a[d],enumerable:!(f=hFr(a,d))||f.enumerable});return o},SFr=o=>xFr(c3e({},"__esModule",{value:!0}),o),zvt={};bFr(zvt,{$in:()=>wFr});Wvt.exports=SFr(zvt);var TFr=Ji(),o3e=qi(),wFr=(o,a,u)=>{let[f,d]=(0,TFr.computeValue)(o,a,null,u);return(0,o3e.assert)((0,o3e.isArray)(d),"$in second argument must be an array"),d.some(w=>(0,o3e.isEqual)(w,f))}});var Hvt=Ve((Svn,Vvt)=>{var l3e=Object.defineProperty,kFr=Object.getOwnPropertyDescriptor,CFr=Object.getOwnPropertyNames,PFr=Object.prototype.hasOwnProperty,EFr=(o,a)=>{for(var u in a)l3e(o,u,{get:a[u],enumerable:!0})},DFr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of CFr(a))!PFr.call(o,d)&&d!==u&&l3e(o,d,{get:()=>a[d],enumerable:!(f=kFr(a,d))||f.enumerable});return o},OFr=o=>DFr(l3e({},"__esModule",{value:!0}),o),$vt={};EFr($vt,{$indexOfArray:()=>AFr});Vvt.exports=OFr($vt);var NFr=Ji(),D7=qi(),AFr=(o,a,u)=>{let f=(0,NFr.computeValue)(o,a,null,u);if((0,D7.isNil)(f))return null;let d=f[0],w=f[1];if((0,D7.isNil)(d))return null;(0,D7.assert)((0,D7.isArray)(d),"$indexOfArray expression must resolve to an array.");let O=f[2]||0,q=f[3];if((0,D7.isNil)(q)&&(q=d.length),O>q)return-1;(0,D7.assert)(O>=0&&q>=0,"$indexOfArray expression is invalid"),(O>0||q<d.length)&&(d=d.slice(O,q));let K=-1;return d.some((le,ye)=>{let Be=(0,D7.isEqual)(le,w);return Be&&(K=ye),Be}),K+O}});var Qvt=Ve((Tvn,Kvt)=>{var u3e=Object.defineProperty,IFr=Object.getOwnPropertyDescriptor,FFr=Object.getOwnPropertyNames,MFr=Object.prototype.hasOwnProperty,RFr=(o,a)=>{for(var u in a)u3e(o,u,{get:a[u],enumerable:!0})},jFr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of FFr(a))!MFr.call(o,d)&&d!==u&&u3e(o,d,{get:()=>a[d],enumerable:!(f=IFr(a,d))||f.enumerable});return o},LFr=o=>jFr(u3e({},"__esModule",{value:!0}),o),Gvt={};RFr(Gvt,{$isArray:()=>JFr});Kvt.exports=LFr(Gvt);var BFr=Ji(),qFr=qi(),JFr=(o,a,u)=>(0,qFr.isArray)((0,BFr.computeValue)(o,a[0],null,u))});var Zvt=Ve((wvn,Yvt)=>{var p3e=Object.defineProperty,zFr=Object.getOwnPropertyDescriptor,WFr=Object.getOwnPropertyNames,UFr=Object.prototype.hasOwnProperty,$Fr=(o,a)=>{for(var u in a)p3e(o,u,{get:a[u],enumerable:!0})},VFr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of WFr(a))!UFr.call(o,d)&&d!==u&&p3e(o,d,{get:()=>a[d],enumerable:!(f=zFr(a,d))||f.enumerable});return o},HFr=o=>VFr(p3e({},"__esModule",{value:!0}),o),Xvt={};$Fr(Xvt,{$last:()=>QFr});Yvt.exports=HFr(Xvt);var GFr=Ji(),TG=qi(),KFr=MIe(),QFr=(o,a,u)=>{if((0,TG.isArray)(o))return(0,KFr.$last)(o,a,u);let f=(0,GFr.computeValue)(o,a,null,u);return(0,TG.isNil)(f)?null:((0,TG.assert)((0,TG.isArray)(f)&&f.length>0,"$last must resolve to a non-empty array."),(0,TG.flatten)(f)[f.length-1])}});var n0t=Ve((kvn,r0t)=>{var f3e=Object.defineProperty,XFr=Object.getOwnPropertyDescriptor,YFr=Object.getOwnPropertyNames,ZFr=Object.prototype.hasOwnProperty,e5r=(o,a)=>{for(var u in a)f3e(o,u,{get:a[u],enumerable:!0})},t5r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of YFr(a))!ZFr.call(o,d)&&d!==u&&f3e(o,d,{get:()=>a[d],enumerable:!(f=XFr(a,d))||f.enumerable});return o},r5r=o=>t5r(f3e({},"__esModule",{value:!0}),o),t0t={};e5r(t0t,{$lastN:()=>i5r});r0t.exports=r5r(t0t);var n5r=Ji(),Kpe=qi(),e0t=jIe(),i5r=(o,a,u)=>{if((0,Kpe.isArray)(o))return(0,e0t.$lastN)(o,a,u);let{input:f,n:d}=(0,n5r.computeValue)(o,a,null,u);return(0,Kpe.isNil)(f)?null:((0,Kpe.assert)((0,Kpe.isArray)(f),"Must resolve to an array/null or missing"),(0,e0t.$lastN)(f,{n:d,input:"$$this"},u))}});var s0t=Ve((Cvn,a0t)=>{var m3e=Object.defineProperty,a5r=Object.getOwnPropertyDescriptor,s5r=Object.getOwnPropertyNames,o5r=Object.prototype.hasOwnProperty,c5r=(o,a)=>{for(var u in a)m3e(o,u,{get:a[u],enumerable:!0})},l5r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of s5r(a))!o5r.call(o,d)&&d!==u&&m3e(o,d,{get:()=>a[d],enumerable:!(f=a5r(a,d))||f.enumerable});return o},u5r=o=>l5r(m3e({},"__esModule",{value:!0}),o),i0t={};c5r(i0t,{$map:()=>p5r});a0t.exports=u5r(i0t);var _3e=Ji(),d3e=qi(),p5r=(o,a,u)=>{let f=(0,_3e.computeValue)(o,a.input,null,u);if((0,d3e.isNil)(f))return null;(0,d3e.assert)((0,d3e.isArray)(f),"$map 'input' expression must resolve to an array");let d=_3e.ComputeOptions.init(u),w=a.as||"this";return f.map(O=>(0,_3e.computeValue)(o,a.in,null,d.update(d.root,{variables:{[w]:O}})))}});var u0t=Ve((Pvn,l0t)=>{var g3e=Object.defineProperty,f5r=Object.getOwnPropertyDescriptor,_5r=Object.getOwnPropertyNames,d5r=Object.prototype.hasOwnProperty,m5r=(o,a)=>{for(var u in a)g3e(o,u,{get:a[u],enumerable:!0})},g5r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of _5r(a))!d5r.call(o,d)&&d!==u&&g3e(o,d,{get:()=>a[d],enumerable:!(f=f5r(a,d))||f.enumerable});return o},h5r=o=>g5r(g3e({},"__esModule",{value:!0}),o),c0t={};m5r(c0t,{$maxN:()=>v5r});l0t.exports=h5r(c0t);var y5r=Ji(),Qpe=qi(),o0t=qIe(),v5r=(o,a,u)=>{if((0,Qpe.isArray)(o))return(0,o0t.$maxN)(o,a,u);let{input:f,n:d}=(0,y5r.computeValue)(o,a,null,u);return(0,Qpe.isNil)(f)?null:((0,Qpe.assert)((0,Qpe.isArray)(f),"Must resolve to an array/null or missing"),(0,o0t.$maxN)(f,{n:d,input:"$$this"},u))}});var d0t=Ve((Evn,_0t)=>{var h3e=Object.defineProperty,b5r=Object.getOwnPropertyDescriptor,x5r=Object.getOwnPropertyNames,S5r=Object.prototype.hasOwnProperty,T5r=(o,a)=>{for(var u in a)h3e(o,u,{get:a[u],enumerable:!0})},w5r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of x5r(a))!S5r.call(o,d)&&d!==u&&h3e(o,d,{get:()=>a[d],enumerable:!(f=b5r(a,d))||f.enumerable});return o},k5r=o=>w5r(h3e({},"__esModule",{value:!0}),o),f0t={};T5r(f0t,{$minN:()=>P5r});_0t.exports=k5r(f0t);var C5r=Ji(),Xpe=qi(),p0t=KIe(),P5r=(o,a,u)=>{if((0,Xpe.isArray)(o))return(0,p0t.$minN)(o,a,u);let{input:f,n:d}=(0,C5r.computeValue)(o,a,null,u);return(0,Xpe.isNil)(f)?null:((0,Xpe.assert)((0,Xpe.isArray)(f),"Must resolve to an array/null or missing"),(0,p0t.$minN)(f,{n:d,input:"$$this"},u))}});var Am=Ve((Dvn,x0t)=>{var y3e=Object.defineProperty,E5r=Object.getOwnPropertyDescriptor,D5r=Object.getOwnPropertyNames,O5r=Object.prototype.hasOwnProperty,N5r=(o,a)=>{for(var u in a)y3e(o,u,{get:a[u],enumerable:!0})},A5r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of D5r(a))!O5r.call(o,d)&&d!==u&&y3e(o,d,{get:()=>a[d],enumerable:!(f=E5r(a,d))||f.enumerable});return o},I5r=o=>A5r(y3e({},"__esModule",{value:!0}),o),h0t={};N5r(h0t,{$all:()=>V5r,$elemMatch:()=>b0t,$eq:()=>y0t,$gt:()=>z5r,$gte:()=>W5r,$in:()=>v0t,$lt:()=>q5r,$lte:()=>J5r,$mod:()=>U5r,$ne:()=>L5r,$nin:()=>B5r,$regex:()=>$5r,$size:()=>H5r,$type:()=>Q5r,createExpressionOperator:()=>j5r,createQueryOperator:()=>R5r});x0t.exports=I5r(h0t);var F5r=Ji(),M5r=C7(),lc=qi();function R5r(o){return(u,f,d)=>{let w={unwrapArray:!0},O=Math.max(1,u.split(".").length-1);return q=>{let K=(0,lc.resolve)(q,u,w);return o(K,f,{...d,depth:O})}}}function j5r(o){return(a,u,f)=>{let d=(0,F5r.computeValue)(a,u,null,f);return o(...d)}}function y0t(o,a,u){return(0,lc.isEqual)(o,a)||(0,lc.isNil)(o)&&(0,lc.isNil)(a)?!0:(0,lc.isArray)(o)?o.some(f=>(0,lc.isEqual)(f,a))||(0,lc.flatten)(o,u?.depth).some(f=>(0,lc.isEqual)(f,a)):!1}function L5r(o,a,u){return!y0t(o,a,u)}function v0t(o,a,u){return(0,lc.isNil)(o)?a.some(f=>f===null):(0,lc.intersection)([(0,lc.ensureArray)(o),a],u?.hashFunction).length>0}function B5r(o,a,u){return!v0t(o,a,u)}function q5r(o,a,u){return Ype(o,a,(f,d)=>(0,lc.compare)(f,d)<0)}function J5r(o,a,u){return Ype(o,a,(f,d)=>(0,lc.compare)(f,d)<=0)}function z5r(o,a,u){return Ype(o,a,(f,d)=>(0,lc.compare)(f,d)>0)}function W5r(o,a,u){return Ype(o,a,(f,d)=>(0,lc.compare)(f,d)>=0)}function U5r(o,a,u){return(0,lc.ensureArray)(o).some(f=>a.length===2&&f%a[0]===a[1])}function $5r(o,a,u){let f=(0,lc.ensureArray)(o),d=w=>(0,lc.isString)(w)&&(0,lc.truthy)(a.exec(w),u?.useStrictMode);return f.some(d)||(0,lc.flatten)(f,1).some(d)}function V5r(o,a,u){if(!(0,lc.isArray)(o)||!(0,lc.isArray)(a)||!o.length||!a.length)return!1;let f=!0;for(let d of a){if(!f)break;(0,lc.isObject)(d)&&Object.keys(d).includes("$elemMatch")?f=b0t(o,d.$elemMatch,u):(0,lc.isRegExp)(d)?f=o.some(w=>typeof w=="string"&&d.test(w)):f=o.some(w=>(0,lc.isEqual)(d,w))}return f}function H5r(o,a,u){return Array.isArray(o)&&o.length===a}function G5r(o){return(0,lc.isOperator)(o)&&["$and","$or","$nor"].indexOf(o)===-1}function b0t(o,a,u){if((0,lc.isArray)(o)&&!(0,lc.isEmpty)(o)){let f=O=>O,d=a;Object.keys(a).every(G5r)&&(d={temp:a},f=O=>({temp:O}));let w=new M5r.Query(d,u);for(let O=0,q=o.length;O<q;O++)if(w.test(f(o[O])))return!0}return!1}var m0t=o=>o===null,K5r={array:lc.isArray,boolean:lc.isBoolean,bool:lc.isBoolean,date:lc.isDate,number:lc.isNumber,int:lc.isNumber,long:lc.isNumber,double:lc.isNumber,decimal:lc.isNumber,null:m0t,object:lc.isObject,regexp:lc.isRegExp,regex:lc.isRegExp,string:lc.isString,undefined:lc.isNil,function:o=>{throw new lc.MingoError("unsupported type key `function`.")},1:lc.isNumber,2:lc.isString,3:lc.isObject,4:lc.isArray,6:lc.isNil,8:lc.isBoolean,9:lc.isDate,10:m0t,11:lc.isRegExp,16:lc.isNumber,18:lc.isNumber,19:lc.isNumber};function g0t(o,a,u){let f=K5r[a];return f?f(o):!1}function Q5r(o,a,u){return(0,lc.isArray)(a)?a.findIndex(f=>g0t(o,f,u))>=0:g0t(o,a,u)}function Ype(o,a,u){return(0,lc.ensureArray)(o).some(f=>(0,lc.typeOf)(f)===(0,lc.typeOf)(a)&&u(f,a))}});var k0t=Ve((Ovn,w0t)=>{var v3e=Object.defineProperty,X5r=Object.getOwnPropertyDescriptor,Y5r=Object.getOwnPropertyNames,Z5r=Object.prototype.hasOwnProperty,eMr=(o,a)=>{for(var u in a)v3e(o,u,{get:a[u],enumerable:!0})},tMr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Y5r(a))!Z5r.call(o,d)&&d!==u&&v3e(o,d,{get:()=>a[d],enumerable:!(f=X5r(a,d))||f.enumerable});return o},rMr=o=>tMr(v3e({},"__esModule",{value:!0}),o),T0t={};eMr(T0t,{$nin:()=>nMr});w0t.exports=rMr(T0t);var S0t=Am(),nMr=(0,S0t.createExpressionOperator)(S0t.$nin)});var E0t=Ve((Nvn,P0t)=>{var b3e=Object.defineProperty,iMr=Object.getOwnPropertyDescriptor,aMr=Object.getOwnPropertyNames,sMr=Object.prototype.hasOwnProperty,oMr=(o,a)=>{for(var u in a)b3e(o,u,{get:a[u],enumerable:!0})},cMr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of aMr(a))!sMr.call(o,d)&&d!==u&&b3e(o,d,{get:()=>a[d],enumerable:!(f=iMr(a,d))||f.enumerable});return o},lMr=o=>cMr(b3e({},"__esModule",{value:!0}),o),C0t={};oMr(C0t,{$range:()=>pMr});P0t.exports=lMr(C0t);var uMr=Ji(),pMr=(o,a,u)=>{let f=(0,uMr.computeValue)(o,a,null,u),d=f[0],w=f[1],O=f[2]||1,q=new Array,K=d;for(;K<w&&O>0||K>w&&O<0;)q.push(K),K+=O;return q}});var N0t=Ve((Avn,O0t)=>{var S3e=Object.defineProperty,fMr=Object.getOwnPropertyDescriptor,_Mr=Object.getOwnPropertyNames,dMr=Object.prototype.hasOwnProperty,mMr=(o,a)=>{for(var u in a)S3e(o,u,{get:a[u],enumerable:!0})},gMr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of _Mr(a))!dMr.call(o,d)&&d!==u&&S3e(o,d,{get:()=>a[d],enumerable:!(f=fMr(a,d))||f.enumerable});return o},hMr=o=>gMr(S3e({},"__esModule",{value:!0}),o),D0t={};mMr(D0t,{$reduce:()=>yMr});O0t.exports=hMr(D0t);var Zpe=Ji(),x3e=qi(),yMr=(o,a,u)=>{let f=Zpe.ComputeOptions.init(u),d=(0,Zpe.computeValue)(o,a.input,null,f),w=(0,Zpe.computeValue)(o,a.initialValue,null,f),O=a.in;return(0,x3e.isNil)(d)?null:((0,x3e.assert)((0,x3e.isArray)(d),"$reduce 'input' expression must resolve to an array"),d.reduce((q,K)=>(0,Zpe.computeValue)(K,O,null,f.update(f.root,{variables:{value:q}})),w))}});var F0t=Ve((Ivn,I0t)=>{var w3e=Object.defineProperty,vMr=Object.getOwnPropertyDescriptor,bMr=Object.getOwnPropertyNames,xMr=Object.prototype.hasOwnProperty,SMr=(o,a)=>{for(var u in a)w3e(o,u,{get:a[u],enumerable:!0})},TMr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of bMr(a))!xMr.call(o,d)&&d!==u&&w3e(o,d,{get:()=>a[d],enumerable:!(f=vMr(a,d))||f.enumerable});return o},wMr=o=>TMr(w3e({},"__esModule",{value:!0}),o),A0t={};SMr(A0t,{$reverseArray:()=>CMr});I0t.exports=wMr(A0t);var kMr=Ji(),T3e=qi(),CMr=(o,a,u)=>{let f=(0,kMr.computeValue)(o,a,null,u);if((0,T3e.isNil)(f))return null;(0,T3e.assert)((0,T3e.isArray)(f),"$reverseArray expression must resolve to an array");let d=f.slice(0);return d.reverse(),d}});var j0t=Ve((Fvn,R0t)=>{var k3e=Object.defineProperty,PMr=Object.getOwnPropertyDescriptor,EMr=Object.getOwnPropertyNames,DMr=Object.prototype.hasOwnProperty,OMr=(o,a)=>{for(var u in a)k3e(o,u,{get:a[u],enumerable:!0})},NMr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of EMr(a))!DMr.call(o,d)&&d!==u&&k3e(o,d,{get:()=>a[d],enumerable:!(f=PMr(a,d))||f.enumerable});return o},AMr=o=>NMr(k3e({},"__esModule",{value:!0}),o),M0t={};OMr(M0t,{$size:()=>MMr});R0t.exports=AMr(M0t);var IMr=Ji(),FMr=qi(),MMr=(o,a,u)=>{let f=(0,IMr.computeValue)(o,a,null,u);return(0,FMr.isArray)(f)?f.length:void 0}});var J0t=Ve((Mvn,q0t)=>{var C3e=Object.defineProperty,RMr=Object.getOwnPropertyDescriptor,jMr=Object.getOwnPropertyNames,LMr=Object.prototype.hasOwnProperty,BMr=(o,a)=>{for(var u in a)C3e(o,u,{get:a[u],enumerable:!0})},qMr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of jMr(a))!LMr.call(o,d)&&d!==u&&C3e(o,d,{get:()=>a[d],enumerable:!(f=RMr(a,d))||f.enumerable});return o},JMr=o=>qMr(C3e({},"__esModule",{value:!0}),o),B0t={};BMr(B0t,{$slice:()=>WMr});q0t.exports=JMr(B0t);var zMr=Ji(),L0t=qi(),WMr=(o,a,u)=>{let f=(0,zMr.computeValue)(o,a,null,u),d=f[0],w=f[1],O=f[2];return(0,L0t.isNil)(O)?w<0?w=Math.max(0,d.length+w):(O=w,w=0):(w<0&&(w=Math.max(0,d.length+w)),(0,L0t.assert)(O>0,"Invalid argument for $slice operator. Limit must be a positive number"),O+=w),d.slice(w,O)}});var U0t=Ve((Rvn,W0t)=>{var P3e=Object.defineProperty,UMr=Object.getOwnPropertyDescriptor,$Mr=Object.getOwnPropertyNames,VMr=Object.prototype.hasOwnProperty,HMr=(o,a)=>{for(var u in a)P3e(o,u,{get:a[u],enumerable:!0})},GMr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of $Mr(a))!VMr.call(o,d)&&d!==u&&P3e(o,d,{get:()=>a[d],enumerable:!(f=UMr(a,d))||f.enumerable});return o},KMr=o=>GMr(P3e({},"__esModule",{value:!0}),o),z0t={};HMr(z0t,{$sortArray:()=>ZMr});W0t.exports=KMr(z0t);var QMr=Ji(),XMr=Lb(),wG=qi(),YMr=mO(),ZMr=(o,a,u)=>{let{input:f,sortBy:d}=(0,QMr.computeValue)(o,a,null,u);if((0,wG.isNil)(f))return null;if((0,wG.assert)((0,wG.isArray)(f),"$sortArray expression must resolve to an array"),(0,wG.isObject)(d))return(0,YMr.$sort)((0,XMr.Lazy)(f),d,u).value();let w=[...f];return w.sort(wG.compare),d===-1&&w.reverse(),w}});var H0t=Ve((jvn,V0t)=>{var E3e=Object.defineProperty,eRr=Object.getOwnPropertyDescriptor,tRr=Object.getOwnPropertyNames,rRr=Object.prototype.hasOwnProperty,nRr=(o,a)=>{for(var u in a)E3e(o,u,{get:a[u],enumerable:!0})},iRr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of tRr(a))!rRr.call(o,d)&&d!==u&&E3e(o,d,{get:()=>a[d],enumerable:!(f=eRr(a,d))||f.enumerable});return o},aRr=o=>iRr(E3e({},"__esModule",{value:!0}),o),$0t={};nRr($0t,{$zip:()=>oRr});V0t.exports=aRr($0t);var sRr=Ji(),tk=qi(),oRr=(o,a,u)=>{let f=(0,sRr.computeValue)(o,a.inputs,null,u),d=a.useLongestLength||!1;if((0,tk.isNil)(f))return null;(0,tk.assert)((0,tk.isArray)(f),"'inputs' expression must resolve to an array"),(0,tk.assert)((0,tk.isBoolean)(d),"'useLongestLength' must be a boolean"),(0,tk.isArray)(a.defaults)&&(0,tk.assert)(d,"'useLongestLength' must be set to true to use 'defaults'");let w=0;for(let K of f){if((0,tk.isNil)(K))return null;(0,tk.assert)((0,tk.isArray)(K),"'inputs' expression values must resolve to an array or null"),w=d?Math.max(w,K.length):Math.min(w||K.length,K.length)}let O=[],q=a.defaults||[];for(let K=0;K<w;K++){let le=f.map((ye,Be)=>(0,tk.isNil)(ye[K])?q[Be]||null:ye[K]);O.push(le)}return O}});var K0t=Ve((Lvn,Cd)=>{var G0t=Object.defineProperty,cRr=Object.getOwnPropertyDescriptor,lRr=Object.getOwnPropertyNames,uRr=Object.prototype.hasOwnProperty,D3e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of lRr(a))!uRr.call(o,d)&&d!==u&&G0t(o,d,{get:()=>a[d],enumerable:!(f=cRr(a,d))||f.enumerable});return o},Im=(o,a,u)=>(D3e(o,a,"default"),u&&D3e(u,a,"default")),pRr=o=>D3e(G0t({},"__esModule",{value:!0}),o),Xd={};Cd.exports=pRr(Xd);Im(Xd,kvt(),Cd.exports);Im(Xd,Evt(),Cd.exports);Im(Xd,Nvt(),Cd.exports);Im(Xd,Fvt(),Cd.exports);Im(Xd,jvt(),Cd.exports);Im(Xd,Jvt(),Cd.exports);Im(Xd,Uvt(),Cd.exports);Im(Xd,Hvt(),Cd.exports);Im(Xd,Qvt(),Cd.exports);Im(Xd,Zvt(),Cd.exports);Im(Xd,n0t(),Cd.exports);Im(Xd,s0t(),Cd.exports);Im(Xd,u0t(),Cd.exports);Im(Xd,d0t(),Cd.exports);Im(Xd,k0t(),Cd.exports);Im(Xd,E0t(),Cd.exports);Im(Xd,N0t(),Cd.exports);Im(Xd,F0t(),Cd.exports);Im(Xd,j0t(),Cd.exports);Im(Xd,J0t(),Cd.exports);Im(Xd,U0t(),Cd.exports);Im(Xd,H0t(),Cd.exports)});var efe=Ve((Bvn,X0t)=>{var O3e=Object.defineProperty,fRr=Object.getOwnPropertyDescriptor,_Rr=Object.getOwnPropertyNames,dRr=Object.prototype.hasOwnProperty,mRr=(o,a)=>{for(var u in a)O3e(o,u,{get:a[u],enumerable:!0})},gRr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of _Rr(a))!dRr.call(o,d)&&d!==u&&O3e(o,d,{get:()=>a[d],enumerable:!(f=fRr(a,d))||f.enumerable});return o},hRr=o=>gRr(O3e({},"__esModule",{value:!0}),o),Q0t={};mRr(Q0t,{bitwise:()=>vRr});X0t.exports=hRr(Q0t);var yRr=Ji(),kG=qi(),vRr=(o,a)=>(u,f,d)=>{(0,kG.assert)((0,kG.isArray)(f),`${o}: expression must be an array.`);let w=(0,yRr.computeValue)(u,f,null,d);return w.some(kG.isNil)?null:((0,kG.assert)(w.every(kG.isNumber),`${o}: expression must evalue to array of numbers.`),a(w))}});var e1t=Ve((qvn,Z0t)=>{var N3e=Object.defineProperty,bRr=Object.getOwnPropertyDescriptor,xRr=Object.getOwnPropertyNames,SRr=Object.prototype.hasOwnProperty,TRr=(o,a)=>{for(var u in a)N3e(o,u,{get:a[u],enumerable:!0})},wRr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of xRr(a))!SRr.call(o,d)&&d!==u&&N3e(o,d,{get:()=>a[d],enumerable:!(f=bRr(a,d))||f.enumerable});return o},kRr=o=>wRr(N3e({},"__esModule",{value:!0}),o),Y0t={};TRr(Y0t,{$bitAnd:()=>PRr});Z0t.exports=kRr(Y0t);var CRr=efe(),PRr=(0,CRr.bitwise)("$bitAnd",o=>o.reduce((a,u)=>a&u,-1))});var n1t=Ve((Jvn,r1t)=>{var I3e=Object.defineProperty,ERr=Object.getOwnPropertyDescriptor,DRr=Object.getOwnPropertyNames,ORr=Object.prototype.hasOwnProperty,NRr=(o,a)=>{for(var u in a)I3e(o,u,{get:a[u],enumerable:!0})},ARr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of DRr(a))!ORr.call(o,d)&&d!==u&&I3e(o,d,{get:()=>a[d],enumerable:!(f=ERr(a,d))||f.enumerable});return o},IRr=o=>ARr(I3e({},"__esModule",{value:!0}),o),t1t={};NRr(t1t,{$bitNot:()=>MRr});r1t.exports=IRr(t1t);var FRr=Ji(),A3e=qi(),MRr=(o,a,u)=>{let f=(0,FRr.computeValue)(o,a,null,u);if((0,A3e.isNil)(f))return null;if((0,A3e.isNumber)(f))return~f;throw new A3e.MingoError("$bitNot: expression must evaluate to a number.")}});var s1t=Ve((zvn,a1t)=>{var F3e=Object.defineProperty,RRr=Object.getOwnPropertyDescriptor,jRr=Object.getOwnPropertyNames,LRr=Object.prototype.hasOwnProperty,BRr=(o,a)=>{for(var u in a)F3e(o,u,{get:a[u],enumerable:!0})},qRr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of jRr(a))!LRr.call(o,d)&&d!==u&&F3e(o,d,{get:()=>a[d],enumerable:!(f=RRr(a,d))||f.enumerable});return o},JRr=o=>qRr(F3e({},"__esModule",{value:!0}),o),i1t={};BRr(i1t,{$bitOr:()=>WRr});a1t.exports=JRr(i1t);var zRr=efe(),WRr=(0,zRr.bitwise)("$bitOr",o=>o.reduce((a,u)=>a|u,0))});var l1t=Ve((Wvn,c1t)=>{var M3e=Object.defineProperty,URr=Object.getOwnPropertyDescriptor,$Rr=Object.getOwnPropertyNames,VRr=Object.prototype.hasOwnProperty,HRr=(o,a)=>{for(var u in a)M3e(o,u,{get:a[u],enumerable:!0})},GRr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of $Rr(a))!VRr.call(o,d)&&d!==u&&M3e(o,d,{get:()=>a[d],enumerable:!(f=URr(a,d))||f.enumerable});return o},KRr=o=>GRr(M3e({},"__esModule",{value:!0}),o),o1t={};HRr(o1t,{$bitXor:()=>XRr});c1t.exports=KRr(o1t);var QRr=efe(),XRr=(0,QRr.bitwise)("$bitXor",o=>o.reduce((a,u)=>a^u,0))});var p1t=Ve((Uvn,$9)=>{var u1t=Object.defineProperty,YRr=Object.getOwnPropertyDescriptor,ZRr=Object.getOwnPropertyNames,ejr=Object.prototype.hasOwnProperty,R3e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ZRr(a))!ejr.call(o,d)&&d!==u&&u1t(o,d,{get:()=>a[d],enumerable:!(f=YRr(a,d))||f.enumerable});return o},tfe=(o,a,u)=>(R3e(o,a,"default"),u&&R3e(u,a,"default")),tjr=o=>R3e(u1t({},"__esModule",{value:!0}),o),CG={};$9.exports=tjr(CG);tfe(CG,e1t(),$9.exports);tfe(CG,n1t(),$9.exports);tfe(CG,s1t(),$9.exports);tfe(CG,l1t(),$9.exports)});var m1t=Ve(($vn,d1t)=>{var j3e=Object.defineProperty,rjr=Object.getOwnPropertyDescriptor,njr=Object.getOwnPropertyNames,ijr=Object.prototype.hasOwnProperty,ajr=(o,a)=>{for(var u in a)j3e(o,u,{get:a[u],enumerable:!0})},sjr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of njr(a))!ijr.call(o,d)&&d!==u&&j3e(o,d,{get:()=>a[d],enumerable:!(f=rjr(a,d))||f.enumerable});return o},ojr=o=>sjr(j3e({},"__esModule",{value:!0}),o),_1t={};ajr(_1t,{$and:()=>ljr});d1t.exports=ojr(_1t);var cjr=Ji(),f1t=qi(),ljr=(o,a,u)=>{let f=(0,cjr.computeValue)(o,a,null,u);return(0,f1t.truthy)(f,u.useStrictMode)&&f.every(d=>(0,f1t.truthy)(d,u.useStrictMode))}});var v1t=Ve((Vvn,y1t)=>{var L3e=Object.defineProperty,ujr=Object.getOwnPropertyDescriptor,pjr=Object.getOwnPropertyNames,fjr=Object.prototype.hasOwnProperty,_jr=(o,a)=>{for(var u in a)L3e(o,u,{get:a[u],enumerable:!0})},djr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of pjr(a))!fjr.call(o,d)&&d!==u&&L3e(o,d,{get:()=>a[d],enumerable:!(f=ujr(a,d))||f.enumerable});return o},mjr=o=>djr(L3e({},"__esModule",{value:!0}),o),h1t={};_jr(h1t,{$not:()=>hjr});y1t.exports=mjr(h1t);var gjr=Ji(),g1t=qi(),hjr=(o,a,u)=>{let f=(0,g1t.ensureArray)(a);return f.length==0?!1:((0,g1t.assert)(f.length==1,"Expression $not takes exactly 1 argument"),!(0,gjr.computeValue)(o,f[0],null,u))}});var T1t=Ve((Hvn,S1t)=>{var B3e=Object.defineProperty,yjr=Object.getOwnPropertyDescriptor,vjr=Object.getOwnPropertyNames,bjr=Object.prototype.hasOwnProperty,xjr=(o,a)=>{for(var u in a)B3e(o,u,{get:a[u],enumerable:!0})},Sjr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of vjr(a))!bjr.call(o,d)&&d!==u&&B3e(o,d,{get:()=>a[d],enumerable:!(f=yjr(a,d))||f.enumerable});return o},Tjr=o=>Sjr(B3e({},"__esModule",{value:!0}),o),x1t={};xjr(x1t,{$or:()=>kjr});S1t.exports=Tjr(x1t);var wjr=Ji(),b1t=qi(),kjr=(o,a,u)=>{let f=(0,wjr.computeValue)(o,a,null,u),d=u.useStrictMode;return(0,b1t.truthy)(f,d)&&f.some(w=>(0,b1t.truthy)(w,d))}});var k1t=Ve((Gvn,PG)=>{var w1t=Object.defineProperty,Cjr=Object.getOwnPropertyDescriptor,Pjr=Object.getOwnPropertyNames,Ejr=Object.prototype.hasOwnProperty,q3e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Pjr(a))!Ejr.call(o,d)&&d!==u&&w1t(o,d,{get:()=>a[d],enumerable:!(f=Cjr(a,d))||f.enumerable});return o},J3e=(o,a,u)=>(q3e(o,a,"default"),u&&q3e(u,a,"default")),Djr=o=>q3e(w1t({},"__esModule",{value:!0}),o),rfe={};PG.exports=Djr(rfe);J3e(rfe,m1t(),PG.exports);J3e(rfe,v1t(),PG.exports);J3e(rfe,T1t(),PG.exports)});var E1t=Ve((Kvn,P1t)=>{var W3e=Object.defineProperty,Ojr=Object.getOwnPropertyDescriptor,Njr=Object.getOwnPropertyNames,Ajr=Object.prototype.hasOwnProperty,Ijr=(o,a)=>{for(var u in a)W3e(o,u,{get:a[u],enumerable:!0})},Fjr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Njr(a))!Ajr.call(o,d)&&d!==u&&W3e(o,d,{get:()=>a[d],enumerable:!(f=Ojr(a,d))||f.enumerable});return o},Mjr=o=>Fjr(W3e({},"__esModule",{value:!0}),o),C1t={};Ijr(C1t,{$cmp:()=>jjr});P1t.exports=Mjr(C1t);var Rjr=Ji(),z3e=qi(),jjr=(o,a,u)=>{let f=(0,Rjr.computeValue)(o,a,null,u);return(0,z3e.assert)((0,z3e.isArray)(f)&&f.length==2,"$cmp: expression must resolve to array of size 2."),(0,z3e.compare)(f[0],f[1])}});var A1t=Ve((Qvn,N1t)=>{var U3e=Object.defineProperty,Ljr=Object.getOwnPropertyDescriptor,Bjr=Object.getOwnPropertyNames,qjr=Object.prototype.hasOwnProperty,Jjr=(o,a)=>{for(var u in a)U3e(o,u,{get:a[u],enumerable:!0})},zjr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Bjr(a))!qjr.call(o,d)&&d!==u&&U3e(o,d,{get:()=>a[d],enumerable:!(f=Ljr(a,d))||f.enumerable});return o},Wjr=o=>zjr(U3e({},"__esModule",{value:!0}),o),O1t={};Jjr(O1t,{$eq:()=>Ujr});N1t.exports=Wjr(O1t);var D1t=Am(),Ujr=(0,D1t.createExpressionOperator)(D1t.$eq)});var R1t=Ve((Xvn,M1t)=>{var $3e=Object.defineProperty,$jr=Object.getOwnPropertyDescriptor,Vjr=Object.getOwnPropertyNames,Hjr=Object.prototype.hasOwnProperty,Gjr=(o,a)=>{for(var u in a)$3e(o,u,{get:a[u],enumerable:!0})},Kjr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Vjr(a))!Hjr.call(o,d)&&d!==u&&$3e(o,d,{get:()=>a[d],enumerable:!(f=$jr(a,d))||f.enumerable});return o},Qjr=o=>Kjr($3e({},"__esModule",{value:!0}),o),F1t={};Gjr(F1t,{$gt:()=>Xjr});M1t.exports=Qjr(F1t);var I1t=Am(),Xjr=(0,I1t.createExpressionOperator)(I1t.$gt)});var q1t=Ve((Yvn,B1t)=>{var V3e=Object.defineProperty,Yjr=Object.getOwnPropertyDescriptor,Zjr=Object.getOwnPropertyNames,eLr=Object.prototype.hasOwnProperty,tLr=(o,a)=>{for(var u in a)V3e(o,u,{get:a[u],enumerable:!0})},rLr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Zjr(a))!eLr.call(o,d)&&d!==u&&V3e(o,d,{get:()=>a[d],enumerable:!(f=Yjr(a,d))||f.enumerable});return o},nLr=o=>rLr(V3e({},"__esModule",{value:!0}),o),L1t={};tLr(L1t,{$gte:()=>iLr});B1t.exports=nLr(L1t);var j1t=Am(),iLr=(0,j1t.createExpressionOperator)(j1t.$gte)});var U1t=Ve((Zvn,W1t)=>{var H3e=Object.defineProperty,aLr=Object.getOwnPropertyDescriptor,sLr=Object.getOwnPropertyNames,oLr=Object.prototype.hasOwnProperty,cLr=(o,a)=>{for(var u in a)H3e(o,u,{get:a[u],enumerable:!0})},lLr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of sLr(a))!oLr.call(o,d)&&d!==u&&H3e(o,d,{get:()=>a[d],enumerable:!(f=aLr(a,d))||f.enumerable});return o},uLr=o=>lLr(H3e({},"__esModule",{value:!0}),o),z1t={};cLr(z1t,{$lt:()=>pLr});W1t.exports=uLr(z1t);var J1t=Am(),pLr=(0,J1t.createExpressionOperator)(J1t.$lt)});var G1t=Ve((e0n,H1t)=>{var G3e=Object.defineProperty,fLr=Object.getOwnPropertyDescriptor,_Lr=Object.getOwnPropertyNames,dLr=Object.prototype.hasOwnProperty,mLr=(o,a)=>{for(var u in a)G3e(o,u,{get:a[u],enumerable:!0})},gLr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of _Lr(a))!dLr.call(o,d)&&d!==u&&G3e(o,d,{get:()=>a[d],enumerable:!(f=fLr(a,d))||f.enumerable});return o},hLr=o=>gLr(G3e({},"__esModule",{value:!0}),o),V1t={};mLr(V1t,{$lte:()=>yLr});H1t.exports=hLr(V1t);var $1t=Am(),yLr=(0,$1t.createExpressionOperator)($1t.$lte)});var Y1t=Ve((t0n,X1t)=>{var K3e=Object.defineProperty,vLr=Object.getOwnPropertyDescriptor,bLr=Object.getOwnPropertyNames,xLr=Object.prototype.hasOwnProperty,SLr=(o,a)=>{for(var u in a)K3e(o,u,{get:a[u],enumerable:!0})},TLr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of bLr(a))!xLr.call(o,d)&&d!==u&&K3e(o,d,{get:()=>a[d],enumerable:!(f=vLr(a,d))||f.enumerable});return o},wLr=o=>TLr(K3e({},"__esModule",{value:!0}),o),Q1t={};SLr(Q1t,{$ne:()=>kLr});X1t.exports=wLr(Q1t);var K1t=Am(),kLr=(0,K1t.createExpressionOperator)(K1t.$ne)});var ebt=Ve((r0n,gO)=>{var Z1t=Object.defineProperty,CLr=Object.getOwnPropertyDescriptor,PLr=Object.getOwnPropertyNames,ELr=Object.prototype.hasOwnProperty,Q3e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of PLr(a))!ELr.call(o,d)&&d!==u&&Z1t(o,d,{get:()=>a[d],enumerable:!(f=CLr(a,d))||f.enumerable});return o},O7=(o,a,u)=>(Q3e(o,a,"default"),u&&Q3e(u,a,"default")),DLr=o=>Q3e(Z1t({},"__esModule",{value:!0}),o),rI={};gO.exports=DLr(rI);O7(rI,E1t(),gO.exports);O7(rI,A1t(),gO.exports);O7(rI,R1t(),gO.exports);O7(rI,q1t(),gO.exports);O7(rI,U1t(),gO.exports);O7(rI,G1t(),gO.exports);O7(rI,Y1t(),gO.exports)});var ibt=Ve((n0n,nbt)=>{var X3e=Object.defineProperty,OLr=Object.getOwnPropertyDescriptor,NLr=Object.getOwnPropertyNames,ALr=Object.prototype.hasOwnProperty,ILr=(o,a)=>{for(var u in a)X3e(o,u,{get:a[u],enumerable:!0})},FLr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of NLr(a))!ALr.call(o,d)&&d!==u&&X3e(o,d,{get:()=>a[d],enumerable:!(f=OLr(a,d))||f.enumerable});return o},MLr=o=>FLr(X3e({},"__esModule",{value:!0}),o),rbt={};ILr(rbt,{$cond:()=>RLr});nbt.exports=MLr(rbt);var tbt=Ji(),EG=qi(),RLr=(o,a,u)=>{let f,d,w,O="$cond: invalid arguments";(0,EG.isArray)(a)?((0,EG.assert)(a.length===3,O),f=a[0],d=a[1],w=a[2]):((0,EG.assert)((0,EG.isObject)(a),O),f=a.if,d=a.then,w=a.else);let q=(0,EG.truthy)((0,tbt.computeValue)(o,f,null,u),u.useStrictMode);return(0,tbt.computeValue)(o,q?d:w,null,u)}});var cbt=Ve((i0n,obt)=>{var Y3e=Object.defineProperty,jLr=Object.getOwnPropertyDescriptor,LLr=Object.getOwnPropertyNames,BLr=Object.prototype.hasOwnProperty,qLr=(o,a)=>{for(var u in a)Y3e(o,u,{get:a[u],enumerable:!0})},JLr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of LLr(a))!BLr.call(o,d)&&d!==u&&Y3e(o,d,{get:()=>a[d],enumerable:!(f=jLr(a,d))||f.enumerable});return o},zLr=o=>JLr(Y3e({},"__esModule",{value:!0}),o),sbt={};qLr(sbt,{$switch:()=>ULr});obt.exports=zLr(sbt);var abt=Ji(),WLr=qi(),ULr=(o,a,u)=>{let f=null;return a.branches.some(d=>{let w=(0,WLr.truthy)((0,abt.computeValue)(o,d.case,null,u),u.useStrictMode);return w&&(f=d.then),w}),(0,abt.computeValue)(o,f!==null?f:a.default,null,u)}});var ubt=Ve((a0n,DG)=>{var lbt=Object.defineProperty,$Lr=Object.getOwnPropertyDescriptor,VLr=Object.getOwnPropertyNames,HLr=Object.prototype.hasOwnProperty,Z3e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of VLr(a))!HLr.call(o,d)&&d!==u&&lbt(o,d,{get:()=>a[d],enumerable:!(f=$Lr(a,d))||f.enumerable});return o},e8e=(o,a,u)=>(Z3e(o,a,"default"),u&&Z3e(u,a,"default")),GLr=o=>Z3e(lbt({},"__esModule",{value:!0}),o),nfe={};DG.exports=GLr(nfe);e8e(nfe,ibt(),DG.exports);e8e(nfe,hIe(),DG.exports);e8e(nfe,cbt(),DG.exports)});var _bt=Ve((s0n,r8e)=>{var pbt=Object.defineProperty,KLr=Object.getOwnPropertyDescriptor,QLr=Object.getOwnPropertyNames,XLr=Object.prototype.hasOwnProperty,t8e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of QLr(a))!XLr.call(o,d)&&d!==u&&pbt(o,d,{get:()=>a[d],enumerable:!(f=KLr(a,d))||f.enumerable});return o},YLr=(o,a,u)=>(t8e(o,a,"default"),u&&t8e(u,a,"default")),ZLr=o=>t8e(pbt({},"__esModule",{value:!0}),o),fbt={};r8e.exports=ZLr(fbt);YLr(fbt,m4e(),r8e.exports)});var gbt=Ve((o0n,mbt)=>{var n8e=Object.defineProperty,e9r=Object.getOwnPropertyDescriptor,t9r=Object.getOwnPropertyNames,r9r=Object.prototype.hasOwnProperty,n9r=(o,a)=>{for(var u in a)n8e(o,u,{get:a[u],enumerable:!0})},i9r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of t9r(a))!r9r.call(o,d)&&d!==u&&n8e(o,d,{get:()=>a[d],enumerable:!(f=e9r(a,d))||f.enumerable});return o},a9r=o=>i9r(n8e({},"__esModule",{value:!0}),o),dbt={};n9r(dbt,{$dateDiff:()=>o9r});mbt.exports=a9r(dbt);var s9r=Ji(),rk=Nm(),o9r=(o,a,u)=>{let{startDate:f,endDate:d,unit:w,timezone:O,startOfWeek:q}=(0,s9r.computeValue)(o,a,null,u),K=new Date(f),le=new Date(d),ye=(0,rk.parseTimezone)(O);switch((0,rk.adjustDate)(K,ye),(0,rk.adjustDate)(le,ye),w){case"year":return(0,rk.dateDiffYear)(K,le);case"quarter":return(0,rk.dateDiffQuarter)(K,le);case"month":return(0,rk.dateDiffMonth)(K,le);case"week":return(0,rk.dateDiffWeek)(K,le,q);case"day":return(0,rk.dateDiffDay)(K,le);case"hour":return(0,rk.dateDiffHour)(K,le);case"minute":return K.setUTCSeconds(0),K.setUTCMilliseconds(0),le.setUTCSeconds(0),le.setUTCMilliseconds(0),Math.round((le.getTime()-K.getTime())/rk.TIMEUNIT_IN_MILLIS[w]);default:return Math.round((le.getTime()-K.getTime())/rk.TIMEUNIT_IN_MILLIS[w])}}});var vbt=Ve((c0n,ybt)=>{var i8e=Object.defineProperty,c9r=Object.getOwnPropertyDescriptor,l9r=Object.getOwnPropertyNames,u9r=Object.prototype.hasOwnProperty,p9r=(o,a)=>{for(var u in a)i8e(o,u,{get:a[u],enumerable:!0})},f9r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of l9r(a))!u9r.call(o,d)&&d!==u&&i8e(o,d,{get:()=>a[d],enumerable:!(f=c9r(a,d))||f.enumerable});return o},_9r=o=>f9r(i8e({},"__esModule",{value:!0}),o),hbt={};p9r(hbt,{$dateFromParts:()=>h9r});ybt.exports=_9r(hbt);var d9r=Ji(),V9=Nm(),m9r=[31,28,31,30,31,30,31,31,30,31,30,31],g9r=o=>o.month==2&&(0,V9.isLeapYear)(o.year)?29:m9r[o.month-1],h9r=(o,a,u)=>{let f=(0,d9r.computeValue)(o,a,null,u),d=(0,V9.parseTimezone)(f.timezone);for(let w=V9.DATE_PART_INTERVAL.length-1,O=0;w>=0;w--){let q=V9.DATE_PART_INTERVAL[w],K=q[0],le=q[1],ye=q[2],Be=(f[K]||0)+O;O=0;let ce=ye+1;if(K=="hour"&&(Be+=Math.floor(d/V9.MINUTES_PER_HOUR)*-1),K=="minute"&&(Be+=d%V9.MINUTES_PER_HOUR*-1),Be<le){let mt=le-Be;O=-1*Math.ceil(mt/ce),Be=ce-mt%ce}else Be>ye&&(Be+=le,O=Math.trunc(Be/ce),Be%=ce);f[K]=Be}return f.day=Math.min(f.day,g9r(f)),new Date(Date.UTC(f.year,f.month-1,f.day,f.hour,f.minute,f.second,f.millisecond))}});var Tbt=Ve((l0n,Sbt)=>{var a8e=Object.defineProperty,y9r=Object.getOwnPropertyDescriptor,v9r=Object.getOwnPropertyNames,b9r=Object.prototype.hasOwnProperty,x9r=(o,a)=>{for(var u in a)a8e(o,u,{get:a[u],enumerable:!0})},S9r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of v9r(a))!b9r.call(o,d)&&d!==u&&a8e(o,d,{get:()=>a[d],enumerable:!(f=y9r(a,d))||f.enumerable});return o},T9r=o=>S9r(a8e({},"__esModule",{value:!0}),o),xbt={};x9r(xbt,{$dateFromString:()=>D9r});Sbt.exports=T9r(xbt);var w9r=Ji(),lP=qi(),OG=Nm(),bbt=(o,a)=>{let u={};return o.split("").forEach((f,d)=>u[f]=a*(d+1)),u},k9r={...bbt("ABCDEFGHIKLM",1),...bbt("NOPQRSTUVWXY",-1),Z:0},C9r=o=>o.replace(/^\//,"").replace(/\/$/,""),P9r=["^",".","-","*","?","$"],E9r=o=>(P9r.forEach(a=>{o=o.replace(a,`\\${a}`)}),o),D9r=(o,a,u)=>{let f=(0,w9r.computeValue)(o,a,null,u);f.format=f.format||OG.DATE_FORMAT,f.onNull=f.onNull||null;let d=f.dateString;if((0,lP.isNil)(d))return f.onNull;let w=f.format.split(/%[YGmdHMSLuVzZ]/);w.reverse();let O=f.format.match(/(%%|%Y|%G|%m|%d|%H|%M|%S|%L|%u|%V|%z|%Z)/g),q={},K="";for(let ce=0,mt=O.length;ce<mt;ce++){let Re=O[ce],Ge=OG.DATE_SYM_TABLE[Re];if((0,lP.isObject)(Ge)){let _r=Ge.re.exec(d),jr=w.pop()||"";_r!==null?(q[Ge.name]=/^\d+$/.exec(_r[0])?parseInt(_r[0]):_r[0],d=d.substr(0,_r.index)+d.substr(_r.index+_r[0].length),K+=E9r(jr)+C9r(Ge.re.toString())):q[Ge.name]=null}}if((0,lP.isNil)(q.year)||(0,lP.isNil)(q.month)||(0,lP.isNil)(q.day)||!new RegExp("^"+K+"[A-Z]?$").exec(f.dateString))return f.onError;let le=f.dateString.match(/([A-Z])$/);(0,lP.assert)(!(le&&f.timezone),`$dateFromString: you cannot pass in a date/time string with time zone information ('${le&&le[0]}') together with a timezone argument`);let ye=le?k9r[le[0]]*OG.MINUTES_PER_HOUR:(0,OG.parseTimezone)(f.timezone),Be=new Date(Date.UTC(q.year,q.month-1,q.day,0,0,0));return(0,lP.isNil)(q.hour)||Be.setUTCHours(q.hour),(0,lP.isNil)(q.minute)||Be.setUTCMinutes(q.minute),(0,lP.isNil)(q.second)||Be.setUTCSeconds(q.second),(0,lP.isNil)(q.millisecond)||Be.setUTCMilliseconds(q.millisecond),(0,OG.adjustDate)(Be,-ye),Be}});var Cbt=Ve((u0n,kbt)=>{var s8e=Object.defineProperty,O9r=Object.getOwnPropertyDescriptor,N9r=Object.getOwnPropertyNames,A9r=Object.prototype.hasOwnProperty,I9r=(o,a)=>{for(var u in a)s8e(o,u,{get:a[u],enumerable:!0})},F9r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of N9r(a))!A9r.call(o,d)&&d!==u&&s8e(o,d,{get:()=>a[d],enumerable:!(f=O9r(a,d))||f.enumerable});return o},M9r=o=>F9r(s8e({},"__esModule",{value:!0}),o),wbt={};I9r(wbt,{$dateSubtract:()=>L9r});kbt.exports=M9r(wbt);var R9r=Ji(),j9r=_G(),L9r=(o,a,u)=>{let f=(0,R9r.computeValue)(o,a?.amount,null,u);return(0,j9r.$dateAdd)(o,{...a,amount:-1*f},u)}});var Dbt=Ve((p0n,Ebt)=>{var o8e=Object.defineProperty,B9r=Object.getOwnPropertyDescriptor,q9r=Object.getOwnPropertyNames,J9r=Object.prototype.hasOwnProperty,z9r=(o,a)=>{for(var u in a)o8e(o,u,{get:a[u],enumerable:!0})},W9r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of q9r(a))!J9r.call(o,d)&&d!==u&&o8e(o,d,{get:()=>a[d],enumerable:!(f=B9r(a,d))||f.enumerable});return o},U9r=o=>W9r(o8e({},"__esModule",{value:!0}),o),Pbt={};z9r(Pbt,{$dateToParts:()=>V9r});Ebt.exports=U9r(Pbt);var $9r=Ji(),ife=Nm(),V9r=(o,a,u)=>{let f=(0,$9r.computeValue)(o,a,null,u),d=new Date(f.date),w=(0,ife.parseTimezone)(f.timezone);(0,ife.adjustDate)(d,w);let O={hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()};return f.iso8601==!0?Object.assign(O,{isoWeekYear:(0,ife.isoWeekYear)(d),isoWeek:(0,ife.isoWeek)(d),isoDayOfWeek:d.getUTCDay()||7}):Object.assign(O,{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate()})}});var l8e=Ve((f0n,Nbt)=>{var c8e=Object.defineProperty,H9r=Object.getOwnPropertyDescriptor,G9r=Object.getOwnPropertyNames,K9r=Object.prototype.hasOwnProperty,Q9r=(o,a)=>{for(var u in a)c8e(o,u,{get:a[u],enumerable:!0})},X9r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of G9r(a))!K9r.call(o,d)&&d!==u&&c8e(o,d,{get:()=>a[d],enumerable:!(f=H9r(a,d))||f.enumerable});return o},Y9r=o=>X9r(c8e({},"__esModule",{value:!0}),o),Obt={};Q9r(Obt,{$dayOfMonth:()=>eBr});Nbt.exports=Y9r(Obt);var Z9r=Nm(),eBr=(o,a,u)=>(0,Z9r.computeDate)(o,a,u).getUTCDate()});var p8e=Ve((_0n,Ibt)=>{var u8e=Object.defineProperty,tBr=Object.getOwnPropertyDescriptor,rBr=Object.getOwnPropertyNames,nBr=Object.prototype.hasOwnProperty,iBr=(o,a)=>{for(var u in a)u8e(o,u,{get:a[u],enumerable:!0})},aBr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of rBr(a))!nBr.call(o,d)&&d!==u&&u8e(o,d,{get:()=>a[d],enumerable:!(f=tBr(a,d))||f.enumerable});return o},sBr=o=>aBr(u8e({},"__esModule",{value:!0}),o),Abt={};iBr(Abt,{$hour:()=>cBr});Ibt.exports=sBr(Abt);var oBr=Nm(),cBr=(o,a,u)=>(0,oBr.computeDate)(o,a,u).getUTCHours()});var _8e=Ve((d0n,Mbt)=>{var f8e=Object.defineProperty,lBr=Object.getOwnPropertyDescriptor,uBr=Object.getOwnPropertyNames,pBr=Object.prototype.hasOwnProperty,fBr=(o,a)=>{for(var u in a)f8e(o,u,{get:a[u],enumerable:!0})},_Br=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of uBr(a))!pBr.call(o,d)&&d!==u&&f8e(o,d,{get:()=>a[d],enumerable:!(f=lBr(a,d))||f.enumerable});return o},dBr=o=>_Br(f8e({},"__esModule",{value:!0}),o),Fbt={};fBr(Fbt,{$isoDayOfWeek:()=>gBr});Mbt.exports=dBr(Fbt);var mBr=Nm(),gBr=(o,a,u)=>(0,mBr.computeDate)(o,a,u).getUTCDay()||7});var m8e=Ve((m0n,Lbt)=>{var d8e=Object.defineProperty,hBr=Object.getOwnPropertyDescriptor,yBr=Object.getOwnPropertyNames,vBr=Object.prototype.hasOwnProperty,bBr=(o,a)=>{for(var u in a)d8e(o,u,{get:a[u],enumerable:!0})},xBr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of yBr(a))!vBr.call(o,d)&&d!==u&&d8e(o,d,{get:()=>a[d],enumerable:!(f=hBr(a,d))||f.enumerable});return o},SBr=o=>xBr(d8e({},"__esModule",{value:!0}),o),jbt={};bBr(jbt,{$isoWeek:()=>TBr});Lbt.exports=SBr(jbt);var Rbt=Nm(),TBr=(o,a,u)=>(0,Rbt.isoWeek)((0,Rbt.computeDate)(o,a,u))});var h8e=Ve((g0n,qbt)=>{var g8e=Object.defineProperty,wBr=Object.getOwnPropertyDescriptor,kBr=Object.getOwnPropertyNames,CBr=Object.prototype.hasOwnProperty,PBr=(o,a)=>{for(var u in a)g8e(o,u,{get:a[u],enumerable:!0})},EBr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of kBr(a))!CBr.call(o,d)&&d!==u&&g8e(o,d,{get:()=>a[d],enumerable:!(f=wBr(a,d))||f.enumerable});return o},DBr=o=>EBr(g8e({},"__esModule",{value:!0}),o),Bbt={};PBr(Bbt,{$millisecond:()=>NBr});qbt.exports=DBr(Bbt);var OBr=Nm(),NBr=(o,a,u)=>(0,OBr.computeDate)(o,a,u).getUTCMilliseconds()});var v8e=Ve((h0n,zbt)=>{var y8e=Object.defineProperty,ABr=Object.getOwnPropertyDescriptor,IBr=Object.getOwnPropertyNames,FBr=Object.prototype.hasOwnProperty,MBr=(o,a)=>{for(var u in a)y8e(o,u,{get:a[u],enumerable:!0})},RBr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of IBr(a))!FBr.call(o,d)&&d!==u&&y8e(o,d,{get:()=>a[d],enumerable:!(f=ABr(a,d))||f.enumerable});return o},jBr=o=>RBr(y8e({},"__esModule",{value:!0}),o),Jbt={};MBr(Jbt,{$minute:()=>BBr});zbt.exports=jBr(Jbt);var LBr=Nm(),BBr=(o,a,u)=>(0,LBr.computeDate)(o,a,u).getUTCMinutes()});var x8e=Ve((y0n,Ubt)=>{var b8e=Object.defineProperty,qBr=Object.getOwnPropertyDescriptor,JBr=Object.getOwnPropertyNames,zBr=Object.prototype.hasOwnProperty,WBr=(o,a)=>{for(var u in a)b8e(o,u,{get:a[u],enumerable:!0})},UBr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of JBr(a))!zBr.call(o,d)&&d!==u&&b8e(o,d,{get:()=>a[d],enumerable:!(f=qBr(a,d))||f.enumerable});return o},$Br=o=>UBr(b8e({},"__esModule",{value:!0}),o),Wbt={};WBr(Wbt,{$month:()=>HBr});Ubt.exports=$Br(Wbt);var VBr=Nm(),HBr=(o,a,u)=>(0,VBr.computeDate)(o,a,u).getUTCMonth()+1});var T8e=Ve((v0n,Vbt)=>{var S8e=Object.defineProperty,GBr=Object.getOwnPropertyDescriptor,KBr=Object.getOwnPropertyNames,QBr=Object.prototype.hasOwnProperty,XBr=(o,a)=>{for(var u in a)S8e(o,u,{get:a[u],enumerable:!0})},YBr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of KBr(a))!QBr.call(o,d)&&d!==u&&S8e(o,d,{get:()=>a[d],enumerable:!(f=GBr(a,d))||f.enumerable});return o},ZBr=o=>YBr(S8e({},"__esModule",{value:!0}),o),$bt={};XBr($bt,{$second:()=>tqr});Vbt.exports=ZBr($bt);var eqr=Nm(),tqr=(o,a,u)=>(0,eqr.computeDate)(o,a,u).getUTCSeconds()});var k8e=Ve((b0n,Kbt)=>{var w8e=Object.defineProperty,rqr=Object.getOwnPropertyDescriptor,nqr=Object.getOwnPropertyNames,iqr=Object.prototype.hasOwnProperty,aqr=(o,a)=>{for(var u in a)w8e(o,u,{get:a[u],enumerable:!0})},sqr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of nqr(a))!iqr.call(o,d)&&d!==u&&w8e(o,d,{get:()=>a[d],enumerable:!(f=rqr(a,d))||f.enumerable});return o},oqr=o=>sqr(w8e({},"__esModule",{value:!0}),o),Gbt={};aqr(Gbt,{$week:()=>cqr});Kbt.exports=oqr(Gbt);var Hbt=Nm(),cqr=(o,a,u)=>{let f=(0,Hbt.computeDate)(o,a,u),d=(0,Hbt.isoWeek)(f);return f.getUTCDay()>0&&f.getUTCDate()==1&&f.getUTCMonth()==0?0:f.getUTCDay()==0?d+1:d}});var P8e=Ve((x0n,Xbt)=>{var C8e=Object.defineProperty,lqr=Object.getOwnPropertyDescriptor,uqr=Object.getOwnPropertyNames,pqr=Object.prototype.hasOwnProperty,fqr=(o,a)=>{for(var u in a)C8e(o,u,{get:a[u],enumerable:!0})},_qr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of uqr(a))!pqr.call(o,d)&&d!==u&&C8e(o,d,{get:()=>a[d],enumerable:!(f=lqr(a,d))||f.enumerable});return o},dqr=o=>_qr(C8e({},"__esModule",{value:!0}),o),Qbt={};fqr(Qbt,{$year:()=>gqr});Xbt.exports=dqr(Qbt);var mqr=Nm(),gqr=(o,a,u)=>(0,mqr.computeDate)(o,a,u).getUTCFullYear()});var D8e=Ve((S0n,ext)=>{var E8e=Object.defineProperty,hqr=Object.getOwnPropertyDescriptor,yqr=Object.getOwnPropertyNames,vqr=Object.prototype.hasOwnProperty,bqr=(o,a)=>{for(var u in a)E8e(o,u,{get:a[u],enumerable:!0})},xqr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of yqr(a))!vqr.call(o,d)&&d!==u&&E8e(o,d,{get:()=>a[d],enumerable:!(f=hqr(a,d))||f.enumerable});return o},Sqr=o=>xqr(E8e({},"__esModule",{value:!0}),o),Zbt={};bqr(Zbt,{$dateToString:()=>Fqr});ext.exports=Sqr(Zbt);var Tqr=Ji(),afe=qi(),N7=Nm(),wqr=l8e(),kqr=p8e(),Cqr=_8e(),Pqr=m8e(),Eqr=h8e(),Dqr=v8e(),Oqr=x8e(),Nqr=T8e(),Aqr=k8e(),Ybt=P8e(),Iqr={"%Y":Ybt.$year,"%G":Ybt.$year,"%m":Oqr.$month,"%d":wqr.$dayOfMonth,"%H":kqr.$hour,"%M":Dqr.$minute,"%S":Nqr.$second,"%L":Eqr.$millisecond,"%u":Cqr.$isoDayOfWeek,"%U":Aqr.$week,"%V":Pqr.$isoWeek},Fqr=(o,a,u)=>{let f=(0,Tqr.computeValue)(o,a,null,u);if((0,afe.isNil)(f.onNull)&&(f.onNull=null),(0,afe.isNil)(f.date))return f.onNull;let d=(0,N7.computeDate)(o,f.date,u),w=f.format||N7.DATE_FORMAT,O=(0,N7.parseTimezone)(f.timezone),q=w.match(/(%%|%Y|%G|%m|%d|%H|%M|%S|%L|%u|%U|%V|%z|%Z)/g);(0,N7.adjustDate)(d,O);for(let K=0,le=q.length;K<le;K++){let ye=q[K],Be=N7.DATE_SYM_TABLE[ye],ce=Iqr[ye],mt;(0,afe.isObject)(Be)&&(Be.name==="timezone"?mt=(0,N7.formatTimezone)(O):Be.name==="minuteOffset"?mt=O.toString():((0,afe.assert)(!!ce,`unsupported date format specifier '${ye}'`),mt=(0,N7.padDigits)(ce(o,d,u),Be.padding))),w=w.replace(ye,mt)}return w}});var axt=Ve((T0n,ixt)=>{var O8e=Object.defineProperty,Mqr=Object.getOwnPropertyDescriptor,Rqr=Object.getOwnPropertyNames,jqr=Object.prototype.hasOwnProperty,Lqr=(o,a)=>{for(var u in a)O8e(o,u,{get:a[u],enumerable:!0})},Bqr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Rqr(a))!jqr.call(o,d)&&d!==u&&O8e(o,d,{get:()=>a[d],enumerable:!(f=Mqr(a,d))||f.enumerable});return o},qqr=o=>Bqr(O8e({},"__esModule",{value:!0}),o),nxt={};Lqr(nxt,{$dateTrunc:()=>Uqr});ixt.exports=qqr(nxt);var Jqr=Ji(),zqr=iIe(),hO=qi(),Bb=Nm(),txt=9466848e5,rxt=(o,a)=>{let u=o%a;return u<0&&(u+=a),u},Wqr={day:Bb.dateDiffDay,month:Bb.dateDiffMonth,quarter:Bb.dateDiffQuarter,year:Bb.dateDiffYear},Uqr=(o,a,u)=>{let{date:f,unit:d,binSize:w,timezone:O,startOfWeek:q}=(0,Jqr.computeValue)(o,a,null,u);if((0,hO.isNil)(f)||(0,hO.isNil)(d))return null;let K=(q??"sun").toLowerCase().substring(0,3);(0,hO.assert)((0,hO.isDate)(f),"$dateTrunc: 'date' must resolve to a valid Date object."),(0,hO.assert)(zqr.TIME_UNITS.includes(d),"$dateTrunc: unit is invalid."),(0,hO.assert)(d!="week"||Bb.DAYS_OF_WEEK_SET.has(K),`$dateTrunc: startOfWeek '${K}' is not a valid.`),(0,hO.assert)((0,hO.isNil)(w)||w>0,"$dateTrunc requires 'binSize' to be greater than 0, but got value 0.");let le=w??1;switch(d){case"millisecond":case"second":case"minute":case"hour":{let ye=le*Bb.TIMEUNIT_IN_MILLIS[d],Be=f.getTime()-txt;return new Date(f.getTime()-rxt(Be,ye))}default:{(0,hO.assert)(le<=1e11,"dateTrunc unsupported binSize value");let ye=new Date(f),Be=new Date(txt),ce=0;if(d=="week"){let _r=(0,Bb.isoWeekday)(Be,K),jr=(Bb.DAYS_PER_WEEK-_r)%Bb.DAYS_PER_WEEK;Be.setTime(Be.getTime()+jr*Bb.TIMEUNIT_IN_MILLIS.day),ce=(0,Bb.dateDiffWeek)(Be,ye,K)}else ce=Wqr[d](Be,ye);let mt=ce-rxt(ce,le),Re=(0,Bb.dateAdd)(Be,d,mt,O),Ge=(0,Bb.parseTimezone)(O);return(0,Bb.adjustDate)(Re,-Ge),Re}}}});var cxt=Ve((w0n,oxt)=>{var N8e=Object.defineProperty,$qr=Object.getOwnPropertyDescriptor,Vqr=Object.getOwnPropertyNames,Hqr=Object.prototype.hasOwnProperty,Gqr=(o,a)=>{for(var u in a)N8e(o,u,{get:a[u],enumerable:!0})},Kqr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Vqr(a))!Hqr.call(o,d)&&d!==u&&N8e(o,d,{get:()=>a[d],enumerable:!(f=$qr(a,d))||f.enumerable});return o},Qqr=o=>Kqr(N8e({},"__esModule",{value:!0}),o),sxt={};Gqr(sxt,{$dayOfWeek:()=>Yqr});oxt.exports=Qqr(sxt);var Xqr=Nm(),Yqr=(o,a,u)=>(0,Xqr.computeDate)(o,a,u).getUTCDay()+1});var fxt=Ve((k0n,pxt)=>{var A8e=Object.defineProperty,Zqr=Object.getOwnPropertyDescriptor,eJr=Object.getOwnPropertyNames,tJr=Object.prototype.hasOwnProperty,rJr=(o,a)=>{for(var u in a)A8e(o,u,{get:a[u],enumerable:!0})},nJr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of eJr(a))!tJr.call(o,d)&&d!==u&&A8e(o,d,{get:()=>a[d],enumerable:!(f=Zqr(a,d))||f.enumerable});return o},iJr=o=>nJr(A8e({},"__esModule",{value:!0}),o),uxt={};rJr(uxt,{$dayOfYear:()=>aJr});pxt.exports=iJr(uxt);var lxt=Nm(),aJr=(o,a,u)=>(0,lxt.dayOfYear)((0,lxt.computeDate)(o,a,u))});var gxt=Ve((C0n,mxt)=>{var I8e=Object.defineProperty,sJr=Object.getOwnPropertyDescriptor,oJr=Object.getOwnPropertyNames,cJr=Object.prototype.hasOwnProperty,lJr=(o,a)=>{for(var u in a)I8e(o,u,{get:a[u],enumerable:!0})},uJr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of oJr(a))!cJr.call(o,d)&&d!==u&&I8e(o,d,{get:()=>a[d],enumerable:!(f=sJr(a,d))||f.enumerable});return o},pJr=o=>uJr(I8e({},"__esModule",{value:!0}),o),dxt={};lJr(dxt,{$isoWeekYear:()=>fJr});mxt.exports=pJr(dxt);var _xt=Nm(),fJr=(o,a,u)=>(0,_xt.isoWeekYear)((0,_xt.computeDate)(o,a,u))});var yxt=Ve((P0n,Yd)=>{var hxt=Object.defineProperty,_Jr=Object.getOwnPropertyDescriptor,dJr=Object.getOwnPropertyNames,mJr=Object.prototype.hasOwnProperty,F8e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of dJr(a))!mJr.call(o,d)&&d!==u&&hxt(o,d,{get:()=>a[d],enumerable:!(f=_Jr(a,d))||f.enumerable});return o},ig=(o,a,u)=>(F8e(o,a,"default"),u&&F8e(u,a,"default")),gJr=o=>F8e(hxt({},"__esModule",{value:!0}),o),Fm={};Yd.exports=gJr(Fm);ig(Fm,_G(),Yd.exports);ig(Fm,gbt(),Yd.exports);ig(Fm,vbt(),Yd.exports);ig(Fm,Tbt(),Yd.exports);ig(Fm,Cbt(),Yd.exports);ig(Fm,Dbt(),Yd.exports);ig(Fm,D8e(),Yd.exports);ig(Fm,axt(),Yd.exports);ig(Fm,l8e(),Yd.exports);ig(Fm,cxt(),Yd.exports);ig(Fm,fxt(),Yd.exports);ig(Fm,p8e(),Yd.exports);ig(Fm,_8e(),Yd.exports);ig(Fm,m8e(),Yd.exports);ig(Fm,gxt(),Yd.exports);ig(Fm,h8e(),Yd.exports);ig(Fm,v8e(),Yd.exports);ig(Fm,x8e(),Yd.exports);ig(Fm,T8e(),Yd.exports);ig(Fm,k8e(),Yd.exports);ig(Fm,P8e(),Yd.exports)});var xxt=Ve((E0n,bxt)=>{var M8e=Object.defineProperty,hJr=Object.getOwnPropertyDescriptor,yJr=Object.getOwnPropertyNames,vJr=Object.prototype.hasOwnProperty,bJr=(o,a)=>{for(var u in a)M8e(o,u,{get:a[u],enumerable:!0})},xJr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of yJr(a))!vJr.call(o,d)&&d!==u&&M8e(o,d,{get:()=>a[d],enumerable:!(f=hJr(a,d))||f.enumerable});return o},SJr=o=>xJr(M8e({},"__esModule",{value:!0}),o),vxt={};bJr(vxt,{$literal:()=>TJr});bxt.exports=SJr(vxt);var TJr=(o,a,u)=>a});var wxt=Ve((D0n,Txt)=>{var R8e=Object.defineProperty,wJr=Object.getOwnPropertyDescriptor,kJr=Object.getOwnPropertyNames,CJr=Object.prototype.hasOwnProperty,PJr=(o,a)=>{for(var u in a)R8e(o,u,{get:a[u],enumerable:!0})},EJr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of kJr(a))!CJr.call(o,d)&&d!==u&&R8e(o,d,{get:()=>a[d],enumerable:!(f=wJr(a,d))||f.enumerable});return o},DJr=o=>EJr(R8e({},"__esModule",{value:!0}),o),Sxt={};PJr(Sxt,{$median:()=>AJr});Txt.exports=DJr(Sxt);var OJr=Ji(),NJr=WIe(),AJr=(o,a,u)=>{let f=(0,OJr.computeValue)(o,a.input,null,u);return(0,NJr.$median)(f,{input:"$$CURRENT"},u)}});var Pxt=Ve((O0n,Cxt)=>{var j8e=Object.defineProperty,IJr=Object.getOwnPropertyDescriptor,FJr=Object.getOwnPropertyNames,MJr=Object.prototype.hasOwnProperty,RJr=(o,a)=>{for(var u in a)j8e(o,u,{get:a[u],enumerable:!0})},jJr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of FJr(a))!MJr.call(o,d)&&d!==u&&j8e(o,d,{get:()=>a[d],enumerable:!(f=IJr(a,d))||f.enumerable});return o},LJr=o=>jJr(j8e({},"__esModule",{value:!0}),o),kxt={};RJr(kxt,{$getField:()=>qJr});Cxt.exports=LJr(kxt);var BJr=Ji(),H9=qi(),qJr=(o,a,u)=>{let f=(0,BJr.computeValue)(o,a,null,u),[d,w]=(0,H9.isObject)(f)?[f.field,f.input||o]:[f,o];return(0,H9.isNil)(w)?null:((0,H9.assert)((0,H9.isObject)(w),"$getField expression 'input' must evaluate to an object"),(0,H9.assert)((0,H9.isString)(d),"$getField expression 'field' must evaluate to a string"),w[d])}});var Oxt=Ve((N0n,Dxt)=>{var L8e=Object.defineProperty,JJr=Object.getOwnPropertyDescriptor,zJr=Object.getOwnPropertyNames,WJr=Object.prototype.hasOwnProperty,UJr=(o,a)=>{for(var u in a)L8e(o,u,{get:a[u],enumerable:!0})},$Jr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of zJr(a))!WJr.call(o,d)&&d!==u&&L8e(o,d,{get:()=>a[d],enumerable:!(f=JJr(a,d))||f.enumerable});return o},VJr=o=>$Jr(L8e({},"__esModule",{value:!0}),o),Ext={};UJr(Ext,{$rand:()=>HJr});Dxt.exports=VJr(Ext);var HJr=(o,a,u)=>Math.random()});var Ixt=Ve((A0n,Axt)=>{var B8e=Object.defineProperty,GJr=Object.getOwnPropertyDescriptor,KJr=Object.getOwnPropertyNames,QJr=Object.prototype.hasOwnProperty,XJr=(o,a)=>{for(var u in a)B8e(o,u,{get:a[u],enumerable:!0})},YJr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of KJr(a))!QJr.call(o,d)&&d!==u&&B8e(o,d,{get:()=>a[d],enumerable:!(f=GJr(a,d))||f.enumerable});return o},ZJr=o=>YJr(B8e({},"__esModule",{value:!0}),o),Nxt={};XJr(Nxt,{$sampleRate:()=>tzr});Axt.exports=ZJr(Nxt);var ezr=Ji(),tzr=(o,a,u)=>Math.random()<=(0,ezr.computeValue)(o,a,null,u)});var Mxt=Ve((I0n,NG)=>{var Fxt=Object.defineProperty,rzr=Object.getOwnPropertyDescriptor,nzr=Object.getOwnPropertyNames,izr=Object.prototype.hasOwnProperty,q8e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of nzr(a))!izr.call(o,d)&&d!==u&&Fxt(o,d,{get:()=>a[d],enumerable:!(f=rzr(a,d))||f.enumerable});return o},J8e=(o,a,u)=>(q8e(o,a,"default"),u&&q8e(u,a,"default")),azr=o=>q8e(Fxt({},"__esModule",{value:!0}),o),sfe={};NG.exports=azr(sfe);J8e(sfe,Pxt(),NG.exports);J8e(sfe,Oxt(),NG.exports);J8e(sfe,Ixt(),NG.exports)});var Lxt=Ve((F0n,jxt)=>{var z8e=Object.defineProperty,szr=Object.getOwnPropertyDescriptor,ozr=Object.getOwnPropertyNames,czr=Object.prototype.hasOwnProperty,lzr=(o,a)=>{for(var u in a)z8e(o,u,{get:a[u],enumerable:!0})},uzr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ozr(a))!czr.call(o,d)&&d!==u&&z8e(o,d,{get:()=>a[d],enumerable:!(f=szr(a,d))||f.enumerable});return o},pzr=o=>uzr(z8e({},"__esModule",{value:!0}),o),Rxt={};lzr(Rxt,{$objectToArray:()=>_zr});jxt.exports=pzr(Rxt);var fzr=Ji(),ofe=qi(),_zr=(o,a,u)=>{let f=(0,fzr.computeValue)(o,a,null,u);if((0,ofe.isNil)(f))return null;(0,ofe.assert)((0,ofe.isObject)(f),`$objectToArray requires a document input, found: ${(0,ofe.typeOf)(f)}`);let d=Object.entries(f),w=new Array(d.length),O=0;for(let[q,K]of d)w[O++]={k:q,v:K};return w}});var U8e=Ve((M0n,qxt)=>{var W8e=Object.defineProperty,dzr=Object.getOwnPropertyDescriptor,mzr=Object.getOwnPropertyNames,gzr=Object.prototype.hasOwnProperty,hzr=(o,a)=>{for(var u in a)W8e(o,u,{get:a[u],enumerable:!0})},yzr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of mzr(a))!gzr.call(o,d)&&d!==u&&W8e(o,d,{get:()=>a[d],enumerable:!(f=dzr(a,d))||f.enumerable});return o},vzr=o=>yzr(W8e({},"__esModule",{value:!0}),o),Bxt={};hzr(Bxt,{$setField:()=>xzr});qxt.exports=vzr(Bxt);var bzr=Ji(),AG=qi(),xzr=(o,a,u)=>{let{input:f,field:d,value:w}=(0,bzr.computeValue)(o,a,null,u);if((0,AG.isNil)(f))return null;(0,AG.assert)((0,AG.isObject)(f),"$setField expression 'input' must evaluate to an object"),(0,AG.assert)((0,AG.isString)(d),"$setField expression 'field' must evaluate to a string");let O={...f};return a.value=="$$REMOVE"?delete O[d]:O[d]=w,O}});var Wxt=Ve((R0n,zxt)=>{var $8e=Object.defineProperty,Szr=Object.getOwnPropertyDescriptor,Tzr=Object.getOwnPropertyNames,wzr=Object.prototype.hasOwnProperty,kzr=(o,a)=>{for(var u in a)$8e(o,u,{get:a[u],enumerable:!0})},Czr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Tzr(a))!wzr.call(o,d)&&d!==u&&$8e(o,d,{get:()=>a[d],enumerable:!(f=Szr(a,d))||f.enumerable});return o},Pzr=o=>Czr($8e({},"__esModule",{value:!0}),o),Jxt={};kzr(Jxt,{$unsetField:()=>Dzr});zxt.exports=Pzr(Jxt);var Ezr=U8e(),Dzr=(o,a,u)=>(0,Ezr.$setField)(o,{...a,value:"$$REMOVE"},u)});var $xt=Ve((j0n,G9)=>{var Uxt=Object.defineProperty,Ozr=Object.getOwnPropertyDescriptor,Nzr=Object.getOwnPropertyNames,Azr=Object.prototype.hasOwnProperty,V8e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Nzr(a))!Azr.call(o,d)&&d!==u&&Uxt(o,d,{get:()=>a[d],enumerable:!(f=Ozr(a,d))||f.enumerable});return o},cfe=(o,a,u)=>(V8e(o,a,"default"),u&&V8e(u,a,"default")),Izr=o=>V8e(Uxt({},"__esModule",{value:!0}),o),IG={};G9.exports=Izr(IG);cfe(IG,$Ie(),G9.exports);cfe(IG,Lxt(),G9.exports);cfe(IG,U8e(),G9.exports);cfe(IG,Wxt(),G9.exports)});var Gxt=Ve((L0n,Hxt)=>{var H8e=Object.defineProperty,Fzr=Object.getOwnPropertyDescriptor,Mzr=Object.getOwnPropertyNames,Rzr=Object.prototype.hasOwnProperty,jzr=(o,a)=>{for(var u in a)H8e(o,u,{get:a[u],enumerable:!0})},Lzr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Mzr(a))!Rzr.call(o,d)&&d!==u&&H8e(o,d,{get:()=>a[d],enumerable:!(f=Fzr(a,d))||f.enumerable});return o},Bzr=o=>Lzr(H8e({},"__esModule",{value:!0}),o),Vxt={};jzr(Vxt,{$percentile:()=>zzr});Hxt.exports=Bzr(Vxt);var qzr=Ji(),Jzr=zpe(),zzr=(o,a,u)=>{let f=(0,qzr.computeValue)(o,a.input,null,u);return(0,Jzr.$percentile)(f,{...a,input:"$$CURRENT"},u)}});var Xxt=Ve((B0n,Qxt)=>{var G8e=Object.defineProperty,Wzr=Object.getOwnPropertyDescriptor,Uzr=Object.getOwnPropertyNames,$zr=Object.prototype.hasOwnProperty,Vzr=(o,a)=>{for(var u in a)G8e(o,u,{get:a[u],enumerable:!0})},Hzr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Uzr(a))!$zr.call(o,d)&&d!==u&&G8e(o,d,{get:()=>a[d],enumerable:!(f=Wzr(a,d))||f.enumerable});return o},Gzr=o=>Hzr(G8e({},"__esModule",{value:!0}),o),Kxt={};Vzr(Kxt,{$allElementsTrue:()=>Xzr});Qxt.exports=Gzr(Kxt);var Kzr=Ji(),Qzr=qi(),Xzr=(o,a,u)=>(0,Kzr.computeValue)(o,a,null,u)[0].every(d=>(0,Qzr.truthy)(d,u.useStrictMode))});var eSt=Ve((q0n,Zxt)=>{var K8e=Object.defineProperty,Yzr=Object.getOwnPropertyDescriptor,Zzr=Object.getOwnPropertyNames,eWr=Object.prototype.hasOwnProperty,tWr=(o,a)=>{for(var u in a)K8e(o,u,{get:a[u],enumerable:!0})},rWr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Zzr(a))!eWr.call(o,d)&&d!==u&&K8e(o,d,{get:()=>a[d],enumerable:!(f=Yzr(a,d))||f.enumerable});return o},nWr=o=>rWr(K8e({},"__esModule",{value:!0}),o),Yxt={};tWr(Yxt,{$anyElementTrue:()=>sWr});Zxt.exports=nWr(Yxt);var iWr=Ji(),aWr=qi(),sWr=(o,a,u)=>(0,iWr.computeValue)(o,a,null,u)[0].some(d=>(0,aWr.truthy)(d,u.useStrictMode))});var nSt=Ve((J0n,rSt)=>{var Q8e=Object.defineProperty,oWr=Object.getOwnPropertyDescriptor,cWr=Object.getOwnPropertyNames,lWr=Object.prototype.hasOwnProperty,uWr=(o,a)=>{for(var u in a)Q8e(o,u,{get:a[u],enumerable:!0})},pWr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of cWr(a))!lWr.call(o,d)&&d!==u&&Q8e(o,d,{get:()=>a[d],enumerable:!(f=oWr(a,d))||f.enumerable});return o},fWr=o=>pWr(Q8e({},"__esModule",{value:!0}),o),tSt={};uWr(tSt,{$setDifference:()=>dWr});rSt.exports=fWr(tSt);var _Wr=Ji(),nI=qi(),dWr=(o,a,u)=>{let f=(0,_Wr.computeValue)(o,a,null,u);if((0,nI.isNil)(f)||((0,nI.assert)((0,nI.isArray)(f),"$setDifference must be an arrays."),f.some(nI.isNil)))return null;(0,nI.assert)(f.length==2,"$setDifference takes exactly 2 arguments."),(0,nI.assert)(f.every(nI.isArray),"$setDifference operands must be arrays.");let d=nI.ValueMap.init(u.hashFunction);return f[0].forEach(w=>d.set(w,!0)),f[1].forEach(w=>d.delete(w)),Array.from(d.keys())}});var sSt=Ve((z0n,aSt)=>{var X8e=Object.defineProperty,mWr=Object.getOwnPropertyDescriptor,gWr=Object.getOwnPropertyNames,hWr=Object.prototype.hasOwnProperty,yWr=(o,a)=>{for(var u in a)X8e(o,u,{get:a[u],enumerable:!0})},vWr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of gWr(a))!hWr.call(o,d)&&d!==u&&X8e(o,d,{get:()=>a[d],enumerable:!(f=mWr(a,d))||f.enumerable});return o},bWr=o=>vWr(X8e({},"__esModule",{value:!0}),o),iSt={};yWr(iSt,{$setEquals:()=>SWr});aSt.exports=bWr(iSt);var xWr=Ji(),lfe=qi(),SWr=(o,a,u)=>{let f=(0,xWr.computeValue)(o,a,null,u);(0,lfe.assert)((0,lfe.isArray)(f)&&f.every(lfe.isArray),"$setEquals operands must be arrays.");let d=lfe.ValueMap.init();f[0].every((w,O)=>d.set(w,O));for(let w=1;w<f.length;w++){let O=f[w],q=new Set;for(let K=0;K<O.length;K++){let le=d.get(O[K])??-1;if(le===-1)return!1;q.add(le)}if(q.size!==d.size)return!1}return!0}});var lSt=Ve((W0n,cSt)=>{var Y8e=Object.defineProperty,TWr=Object.getOwnPropertyDescriptor,wWr=Object.getOwnPropertyNames,kWr=Object.prototype.hasOwnProperty,CWr=(o,a)=>{for(var u in a)Y8e(o,u,{get:a[u],enumerable:!0})},PWr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of wWr(a))!kWr.call(o,d)&&d!==u&&Y8e(o,d,{get:()=>a[d],enumerable:!(f=TWr(a,d))||f.enumerable});return o},EWr=o=>PWr(Y8e({},"__esModule",{value:!0}),o),oSt={};CWr(oSt,{$setIntersection:()=>OWr});cSt.exports=EWr(oSt);var DWr=Ji(),FG=qi(),OWr=(o,a,u)=>{let f=(0,DWr.computeValue)(o,a,null,u);return(0,FG.isNil)(f)?null:((0,FG.assert)((0,FG.isArray)(f)&&f.every(FG.isArray),"$setIntersection operands must be arrays."),(0,FG.intersection)(f,u?.hashFunction))}});var fSt=Ve((U0n,pSt)=>{var Z8e=Object.defineProperty,NWr=Object.getOwnPropertyDescriptor,AWr=Object.getOwnPropertyNames,IWr=Object.prototype.hasOwnProperty,FWr=(o,a)=>{for(var u in a)Z8e(o,u,{get:a[u],enumerable:!0})},MWr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of AWr(a))!IWr.call(o,d)&&d!==u&&Z8e(o,d,{get:()=>a[d],enumerable:!(f=NWr(a,d))||f.enumerable});return o},RWr=o=>MWr(Z8e({},"__esModule",{value:!0}),o),uSt={};FWr(uSt,{$setIsSubset:()=>LWr});pSt.exports=RWr(uSt);var jWr=Ji(),ufe=qi(),LWr=(o,a,u)=>{let f=(0,jWr.computeValue)(o,a,null,u);(0,ufe.assert)((0,ufe.isArray)(f)&&f.every(ufe.isArray),"$setIsSubset operands must be arrays.");let d=f[0],w=f[1],O=ufe.ValueMap.init(),q=new Set;d.every((K,le)=>O.set(K,le));for(let K of w)if(q.add(O.get(K)??-1),q.size>O.size)return!0;return q.delete(-1),q.size==O.size}});var mSt=Ve(($0n,dSt)=>{var e7e=Object.defineProperty,BWr=Object.getOwnPropertyDescriptor,qWr=Object.getOwnPropertyNames,JWr=Object.prototype.hasOwnProperty,zWr=(o,a)=>{for(var u in a)e7e(o,u,{get:a[u],enumerable:!0})},WWr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of qWr(a))!JWr.call(o,d)&&d!==u&&e7e(o,d,{get:()=>a[d],enumerable:!(f=BWr(a,d))||f.enumerable});return o},UWr=o=>WWr(e7e({},"__esModule",{value:!0}),o),_St={};zWr(_St,{$setUnion:()=>VWr});dSt.exports=UWr(_St);var $Wr=Ji(),K9=qi(),VWr=(o,a,u)=>{let f=(0,$Wr.computeValue)(o,a,null,u);return(0,K9.isNil)(f)||((0,K9.assert)((0,K9.isArray)(f),"$setUnion operands must be arrays."),f.some(K9.isNil))?null:(0,K9.unique)((0,K9.flatten)(f),u?.hashFunction)}});var hSt=Ve((V0n,yO)=>{var gSt=Object.defineProperty,HWr=Object.getOwnPropertyDescriptor,GWr=Object.getOwnPropertyNames,KWr=Object.prototype.hasOwnProperty,t7e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of GWr(a))!KWr.call(o,d)&&d!==u&&gSt(o,d,{get:()=>a[d],enumerable:!(f=HWr(a,d))||f.enumerable});return o},A7=(o,a,u)=>(t7e(o,a,"default"),u&&t7e(u,a,"default")),QWr=o=>t7e(gSt({},"__esModule",{value:!0}),o),iI={};yO.exports=QWr(iI);A7(iI,Xxt(),yO.exports);A7(iI,eSt(),yO.exports);A7(iI,nSt(),yO.exports);A7(iI,sSt(),yO.exports);A7(iI,lSt(),yO.exports);A7(iI,fSt(),yO.exports);A7(iI,mSt(),yO.exports)});var bSt=Ve((H0n,vSt)=>{var r7e=Object.defineProperty,XWr=Object.getOwnPropertyDescriptor,YWr=Object.getOwnPropertyNames,ZWr=Object.prototype.hasOwnProperty,eUr=(o,a)=>{for(var u in a)r7e(o,u,{get:a[u],enumerable:!0})},tUr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of YWr(a))!ZWr.call(o,d)&&d!==u&&r7e(o,d,{get:()=>a[d],enumerable:!(f=XWr(a,d))||f.enumerable});return o},rUr=o=>tUr(r7e({},"__esModule",{value:!0}),o),ySt={};eUr(ySt,{$concat:()=>iUr});vSt.exports=rUr(ySt);var nUr=Ji(),pfe=qi(),iUr=(o,a,u)=>{let f=(0,nUr.computeValue)(o,a,null,u);return(0,pfe.assert)(f.every(d=>(0,pfe.isString)(d)||(0,pfe.isNil)(d)),"$concat only supports strings."),f.some(pfe.isNil)?null:f.join("")}});var TSt=Ve((G0n,SSt)=>{var n7e=Object.defineProperty,aUr=Object.getOwnPropertyDescriptor,sUr=Object.getOwnPropertyNames,oUr=Object.prototype.hasOwnProperty,cUr=(o,a)=>{for(var u in a)n7e(o,u,{get:a[u],enumerable:!0})},lUr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of sUr(a))!oUr.call(o,d)&&d!==u&&n7e(o,d,{get:()=>a[d],enumerable:!(f=aUr(a,d))||f.enumerable});return o},uUr=o=>lUr(n7e({},"__esModule",{value:!0}),o),xSt={};cUr(xSt,{$indexOfBytes:()=>fUr});SSt.exports=uUr(xSt);var pUr=Ji(),vO=qi(),fUr=(o,a,u)=>{let f=(0,pUr.computeValue)(o,a,null,u),d="$indexOfBytes expression resolves to invalid an argument";if((0,vO.isNil)(f[0]))return null;(0,vO.assert)((0,vO.isString)(f[0])&&(0,vO.isString)(f[1]),d);let w=f[0],O=f[1],q=f[2],K=f[3],le=(0,vO.isNil)(q)||(0,vO.isNumber)(q)&&q>=0&&Math.round(q)===q;if(le=le&&((0,vO.isNil)(K)||(0,vO.isNumber)(K)&&K>=0&&Math.round(K)===K),(0,vO.assert)(le,d),q=q||0,K=K||w.length,q>K)return-1;let ye=w.substring(q,K).indexOf(O);return ye>-1?ye+q:ye}});var I7=Ve((K0n,CSt)=>{var i7e=Object.defineProperty,_Ur=Object.getOwnPropertyDescriptor,dUr=Object.getOwnPropertyNames,mUr=Object.prototype.hasOwnProperty,gUr=(o,a)=>{for(var u in a)i7e(o,u,{get:a[u],enumerable:!0})},hUr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of dUr(a))!mUr.call(o,d)&&d!==u&&i7e(o,d,{get:()=>a[d],enumerable:!(f=_Ur(a,d))||f.enumerable});return o},yUr=o=>hUr(i7e({},"__esModule",{value:!0}),o),wSt={};gUr(wSt,{regexSearch:()=>xUr,trimString:()=>bUr});CSt.exports=yUr(wSt);var kSt=Ji(),MG=qi(),vUr=[0,32,9,10,11,12,13,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202];function bUr(o,a,u,f){let d=(0,kSt.computeValue)(o,a,null,u),w=d.input;if((0,MG.isNil)(w))return null;let O=(0,MG.isNil)(d.chars)?vUr:d.chars.split("").map(le=>le.codePointAt(0)),q=0,K=w.length-1;for(;f.left&&q<=K&&O.indexOf(w[q].codePointAt(0))!==-1;)q++;for(;f.right&&q<=K&&O.indexOf(w[K].codePointAt(0))!==-1;)K--;return w.substring(q,K+1)}function xUr(o,a,u,f){let d=(0,kSt.computeValue)(o,a,null,u);if(!(0,MG.isString)(d.input))return[];let w=d.options;w&&((0,MG.assert)(w.indexOf("x")===-1,"extended capability option 'x' not supported"),(0,MG.assert)(w.indexOf("g")===-1,"global option 'g' not supported"));let O=d.input,q=new RegExp(d.regex,w),K,le=new Array,ye=0;for(;K=q.exec(O);){let Be={match:K[0],idx:K.index+ye,captures:[]};for(let ce=1;ce<K.length;ce++)Be.captures.push(K[ce]||null);if(le.push(Be),!f.global)break;ye=K.index+K[0].length,O=O.substring(ye)}return le}});var DSt=Ve((Q0n,ESt)=>{var a7e=Object.defineProperty,SUr=Object.getOwnPropertyDescriptor,TUr=Object.getOwnPropertyNames,wUr=Object.prototype.hasOwnProperty,kUr=(o,a)=>{for(var u in a)a7e(o,u,{get:a[u],enumerable:!0})},CUr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of TUr(a))!wUr.call(o,d)&&d!==u&&a7e(o,d,{get:()=>a[d],enumerable:!(f=SUr(a,d))||f.enumerable});return o},PUr=o=>CUr(a7e({},"__esModule",{value:!0}),o),PSt={};kUr(PSt,{$ltrim:()=>DUr});ESt.exports=PUr(PSt);var EUr=I7(),DUr=(o,a,u)=>(0,EUr.trimString)(o,a,u,{left:!0,right:!1})});var ASt=Ve((X0n,NSt)=>{var s7e=Object.defineProperty,OUr=Object.getOwnPropertyDescriptor,NUr=Object.getOwnPropertyNames,AUr=Object.prototype.hasOwnProperty,IUr=(o,a)=>{for(var u in a)s7e(o,u,{get:a[u],enumerable:!0})},FUr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of NUr(a))!AUr.call(o,d)&&d!==u&&s7e(o,d,{get:()=>a[d],enumerable:!(f=OUr(a,d))||f.enumerable});return o},MUr=o=>FUr(s7e({},"__esModule",{value:!0}),o),OSt={};IUr(OSt,{$regexFind:()=>jUr});NSt.exports=MUr(OSt);var RUr=I7(),jUr=(o,a,u)=>{let f=(0,RUr.regexSearch)(o,a,u,{global:!1});return f&&f.length>0?f[0]:null}});var MSt=Ve((Y0n,FSt)=>{var o7e=Object.defineProperty,LUr=Object.getOwnPropertyDescriptor,BUr=Object.getOwnPropertyNames,qUr=Object.prototype.hasOwnProperty,JUr=(o,a)=>{for(var u in a)o7e(o,u,{get:a[u],enumerable:!0})},zUr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of BUr(a))!qUr.call(o,d)&&d!==u&&o7e(o,d,{get:()=>a[d],enumerable:!(f=LUr(a,d))||f.enumerable});return o},WUr=o=>zUr(o7e({},"__esModule",{value:!0}),o),ISt={};JUr(ISt,{$regexFindAll:()=>$Ur});FSt.exports=WUr(ISt);var UUr=I7(),$Ur=(o,a,u)=>(0,UUr.regexSearch)(o,a,u,{global:!0})});var LSt=Ve((Z0n,jSt)=>{var c7e=Object.defineProperty,VUr=Object.getOwnPropertyDescriptor,HUr=Object.getOwnPropertyNames,GUr=Object.prototype.hasOwnProperty,KUr=(o,a)=>{for(var u in a)c7e(o,u,{get:a[u],enumerable:!0})},QUr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of HUr(a))!GUr.call(o,d)&&d!==u&&c7e(o,d,{get:()=>a[d],enumerable:!(f=VUr(a,d))||f.enumerable});return o},XUr=o=>QUr(c7e({},"__esModule",{value:!0}),o),RSt={};KUr(RSt,{$regexMatch:()=>ZUr});jSt.exports=XUr(RSt);var YUr=I7(),ZUr=(o,a,u)=>(0,YUr.regexSearch)(o,a,u,{global:!1}).length!=0});var JSt=Ve((e1n,qSt)=>{var u7e=Object.defineProperty,e$r=Object.getOwnPropertyDescriptor,t$r=Object.getOwnPropertyNames,r$r=Object.prototype.hasOwnProperty,n$r=(o,a)=>{for(var u in a)u7e(o,u,{get:a[u],enumerable:!0})},i$r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of t$r(a))!r$r.call(o,d)&&d!==u&&u7e(o,d,{get:()=>a[d],enumerable:!(f=e$r(a,d))||f.enumerable});return o},a$r=o=>i$r(u7e({},"__esModule",{value:!0}),o),BSt={};n$r(BSt,{$replaceAll:()=>o$r});qSt.exports=a$r(BSt);var s$r=Ji(),l7e=qi(),o$r=(o,a,u)=>{let f=(0,s$r.computeValue)(o,a,null,u),d=[f.input,f.find,f.replacement];return d.some(l7e.isNil)?null:((0,l7e.assert)(d.every(l7e.isString),"$replaceAll expression fields must evaluate to string"),f.input.replace(new RegExp(f.find,"g"),f.replacement))}});var USt=Ve((t1n,WSt)=>{var f7e=Object.defineProperty,c$r=Object.getOwnPropertyDescriptor,l$r=Object.getOwnPropertyNames,u$r=Object.prototype.hasOwnProperty,p$r=(o,a)=>{for(var u in a)f7e(o,u,{get:a[u],enumerable:!0})},f$r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of l$r(a))!u$r.call(o,d)&&d!==u&&f7e(o,d,{get:()=>a[d],enumerable:!(f=c$r(a,d))||f.enumerable});return o},_$r=o=>f$r(f7e({},"__esModule",{value:!0}),o),zSt={};p$r(zSt,{$replaceOne:()=>m$r});WSt.exports=_$r(zSt);var d$r=Ji(),p7e=qi(),m$r=(o,a,u)=>{let f=(0,d$r.computeValue)(o,a,null,u),d=[f.input,f.find,f.replacement];return d.some(p7e.isNil)?null:((0,p7e.assert)(d.every(p7e.isString),"$replaceOne expression fields must evaluate to string"),f.input.replace(f.find,f.replacement))}});var HSt=Ve((r1n,VSt)=>{var _7e=Object.defineProperty,g$r=Object.getOwnPropertyDescriptor,h$r=Object.getOwnPropertyNames,y$r=Object.prototype.hasOwnProperty,v$r=(o,a)=>{for(var u in a)_7e(o,u,{get:a[u],enumerable:!0})},b$r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of h$r(a))!y$r.call(o,d)&&d!==u&&_7e(o,d,{get:()=>a[d],enumerable:!(f=g$r(a,d))||f.enumerable});return o},x$r=o=>b$r(_7e({},"__esModule",{value:!0}),o),$St={};v$r($St,{$rtrim:()=>T$r});VSt.exports=x$r($St);var S$r=I7(),T$r=(o,a,u)=>(0,S$r.trimString)(o,a,u,{left:!1,right:!0})});var QSt=Ve((n1n,KSt)=>{var m7e=Object.defineProperty,w$r=Object.getOwnPropertyDescriptor,k$r=Object.getOwnPropertyNames,C$r=Object.prototype.hasOwnProperty,P$r=(o,a)=>{for(var u in a)m7e(o,u,{get:a[u],enumerable:!0})},E$r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of k$r(a))!C$r.call(o,d)&&d!==u&&m7e(o,d,{get:()=>a[d],enumerable:!(f=w$r(a,d))||f.enumerable});return o},D$r=o=>E$r(m7e({},"__esModule",{value:!0}),o),GSt={};P$r(GSt,{$split:()=>N$r});KSt.exports=D$r(GSt);var O$r=Ji(),d7e=qi(),N$r=(o,a,u)=>{let f=(0,O$r.computeValue)(o,a,null,u);return(0,d7e.isNil)(f[0])?null:((0,d7e.assert)(f.every(d7e.isString),"$split expression must result to array(2) of strings"),f[0].split(f[1]))}});var ZSt=Ve((i1n,YSt)=>{var g7e=Object.defineProperty,A$r=Object.getOwnPropertyDescriptor,I$r=Object.getOwnPropertyNames,F$r=Object.prototype.hasOwnProperty,M$r=(o,a)=>{for(var u in a)g7e(o,u,{get:a[u],enumerable:!0})},R$r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of I$r(a))!F$r.call(o,d)&&d!==u&&g7e(o,d,{get:()=>a[d],enumerable:!(f=A$r(a,d))||f.enumerable});return o},j$r=o=>R$r(g7e({},"__esModule",{value:!0}),o),XSt={};M$r(XSt,{$strcasecmp:()=>B$r});YSt.exports=j$r(XSt);var L$r=Ji(),ffe=qi(),B$r=(o,a,u)=>{let f=(0,L$r.computeValue)(o,a,null,u),d=f[0],w=f[1];return(0,ffe.isEqual)(d,w)||f.every(ffe.isNil)?0:((0,ffe.assert)(f.every(ffe.isString),"$strcasecmp must resolve to array(2) of strings"),d=d.toUpperCase(),w=w.toUpperCase(),d>w&&1||d<w&&-1||0)}});var rTt=Ve((a1n,tTt)=>{var h7e=Object.defineProperty,q$r=Object.getOwnPropertyDescriptor,J$r=Object.getOwnPropertyNames,z$r=Object.prototype.hasOwnProperty,W$r=(o,a)=>{for(var u in a)h7e(o,u,{get:a[u],enumerable:!0})},U$r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of J$r(a))!z$r.call(o,d)&&d!==u&&h7e(o,d,{get:()=>a[d],enumerable:!(f=q$r(a,d))||f.enumerable});return o},$$r=o=>U$r(h7e({},"__esModule",{value:!0}),o),eTt={};W$r(eTt,{$strLenBytes:()=>H$r});tTt.exports=$$r(eTt);var V$r=Ji(),H$r=(o,a,u)=>~-encodeURI((0,V$r.computeValue)(o,a,null,u)).split(/%..|./).length});var aTt=Ve((s1n,iTt)=>{var y7e=Object.defineProperty,G$r=Object.getOwnPropertyDescriptor,K$r=Object.getOwnPropertyNames,Q$r=Object.prototype.hasOwnProperty,X$r=(o,a)=>{for(var u in a)y7e(o,u,{get:a[u],enumerable:!0})},Y$r=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of K$r(a))!Q$r.call(o,d)&&d!==u&&y7e(o,d,{get:()=>a[d],enumerable:!(f=G$r(a,d))||f.enumerable});return o},Z$r=o=>Y$r(y7e({},"__esModule",{value:!0}),o),nTt={};X$r(nTt,{$strLenCP:()=>tVr});iTt.exports=Z$r(nTt);var eVr=Ji(),tVr=(o,a,u)=>(0,eVr.computeValue)(o,a,null,u).length});var b7e=Ve((o1n,oTt)=>{var v7e=Object.defineProperty,rVr=Object.getOwnPropertyDescriptor,nVr=Object.getOwnPropertyNames,iVr=Object.prototype.hasOwnProperty,aVr=(o,a)=>{for(var u in a)v7e(o,u,{get:a[u],enumerable:!0})},sVr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of nVr(a))!iVr.call(o,d)&&d!==u&&v7e(o,d,{get:()=>a[d],enumerable:!(f=rVr(a,d))||f.enumerable});return o},oVr=o=>sVr(v7e({},"__esModule",{value:!0}),o),sTt={};aVr(sTt,{$substr:()=>uVr});oTt.exports=oVr(sTt);var cVr=Ji(),lVr=qi(),uVr=(o,a,u)=>{let[f,d,w]=(0,cVr.computeValue)(o,a,null,u);return d<0||!(0,lVr.isString)(f)?"":w<0?f.substring(d):f.substring(d,d+w)}});var uTt=Ve((c1n,lTt)=>{var x7e=Object.defineProperty,pVr=Object.getOwnPropertyDescriptor,fVr=Object.getOwnPropertyNames,_Vr=Object.prototype.hasOwnProperty,dVr=(o,a)=>{for(var u in a)x7e(o,u,{get:a[u],enumerable:!0})},mVr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of fVr(a))!_Vr.call(o,d)&&d!==u&&x7e(o,d,{get:()=>a[d],enumerable:!(f=pVr(a,d))||f.enumerable});return o},gVr=o=>mVr(x7e({},"__esModule",{value:!0}),o),cTt={};dVr(cTt,{$substrBytes:()=>xVr});lTt.exports=gVr(cTt);var hVr=Ji(),RG=qi(),yVr=[192,224,240];function vVr(o){if(o<128)return[o];let a=o<2048&&1||o<65536&&2||3,u=yVr[a-1],f=[(o>>6*a)+u];for(;a>0;)f.push(128|o>>6*--a&63);return f}function bVr(o){let a=[];for(let u=0,f=o.length;u<f;u++)a.push(vVr(o.codePointAt(u)));return a}var xVr=(o,a,u)=>{let f=(0,hVr.computeValue)(o,a,null,u),d=f[0],w=f[1],O=f[2];(0,RG.assert)((0,RG.isString)(d)&&(0,RG.isNumber)(w)&&w>=0&&(0,RG.isNumber)(O)&&O>=0,"$substrBytes: invalid arguments");let q=bVr(d),K=[],le=0;for(let ce=0;ce<q.length;ce++)K.push(le),le+=q[ce].length;let ye=K.indexOf(w),Be=K.indexOf(w+O);return(0,RG.assert)(ye>-1&&Be>-1,"$substrBytes: invalid range, start or end index is a UTF-8 continuation byte."),d.substring(ye,Be)}});var _Tt=Ve((l1n,fTt)=>{var S7e=Object.defineProperty,SVr=Object.getOwnPropertyDescriptor,TVr=Object.getOwnPropertyNames,wVr=Object.prototype.hasOwnProperty,kVr=(o,a)=>{for(var u in a)S7e(o,u,{get:a[u],enumerable:!0})},CVr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of TVr(a))!wVr.call(o,d)&&d!==u&&S7e(o,d,{get:()=>a[d],enumerable:!(f=SVr(a,d))||f.enumerable});return o},PVr=o=>CVr(S7e({},"__esModule",{value:!0}),o),pTt={};kVr(pTt,{$substrCP:()=>DVr});fTt.exports=PVr(pTt);var EVr=b7e(),DVr=(o,a,u)=>(0,EVr.$substr)(o,a,u)});var gTt=Ve((u1n,mTt)=>{var T7e=Object.defineProperty,OVr=Object.getOwnPropertyDescriptor,NVr=Object.getOwnPropertyNames,AVr=Object.prototype.hasOwnProperty,IVr=(o,a)=>{for(var u in a)T7e(o,u,{get:a[u],enumerable:!0})},FVr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of NVr(a))!AVr.call(o,d)&&d!==u&&T7e(o,d,{get:()=>a[d],enumerable:!(f=OVr(a,d))||f.enumerable});return o},MVr=o=>FVr(T7e({},"__esModule",{value:!0}),o),dTt={};IVr(dTt,{$toLower:()=>LVr});mTt.exports=MVr(dTt);var RVr=Ji(),jVr=qi(),LVr=(o,a,u)=>{let f=(0,RVr.computeValue)(o,a,null,u);return(0,jVr.isEmpty)(f)?"":f.toLowerCase()}});var vTt=Ve((p1n,yTt)=>{var w7e=Object.defineProperty,BVr=Object.getOwnPropertyDescriptor,qVr=Object.getOwnPropertyNames,JVr=Object.prototype.hasOwnProperty,zVr=(o,a)=>{for(var u in a)w7e(o,u,{get:a[u],enumerable:!0})},WVr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of qVr(a))!JVr.call(o,d)&&d!==u&&w7e(o,d,{get:()=>a[d],enumerable:!(f=BVr(a,d))||f.enumerable});return o},UVr=o=>WVr(w7e({},"__esModule",{value:!0}),o),hTt={};zVr(hTt,{$toUpper:()=>HVr});yTt.exports=UVr(hTt);var $Vr=Ji(),VVr=qi(),HVr=(o,a,u)=>{let f=(0,$Vr.computeValue)(o,a,null,u);return(0,VVr.isEmpty)(f)?"":f.toUpperCase()}});var STt=Ve((f1n,xTt)=>{var k7e=Object.defineProperty,GVr=Object.getOwnPropertyDescriptor,KVr=Object.getOwnPropertyNames,QVr=Object.prototype.hasOwnProperty,XVr=(o,a)=>{for(var u in a)k7e(o,u,{get:a[u],enumerable:!0})},YVr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of KVr(a))!QVr.call(o,d)&&d!==u&&k7e(o,d,{get:()=>a[d],enumerable:!(f=GVr(a,d))||f.enumerable});return o},ZVr=o=>YVr(k7e({},"__esModule",{value:!0}),o),bTt={};XVr(bTt,{$trim:()=>tHr});xTt.exports=ZVr(bTt);var eHr=I7(),tHr=(o,a,u)=>(0,eHr.trimString)(o,a,u,{left:!0,right:!0})});var wTt=Ve((_1n,ag)=>{var TTt=Object.defineProperty,rHr=Object.getOwnPropertyDescriptor,nHr=Object.getOwnPropertyNames,iHr=Object.prototype.hasOwnProperty,C7e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of nHr(a))!iHr.call(o,d)&&d!==u&&TTt(o,d,{get:()=>a[d],enumerable:!(f=rHr(a,d))||f.enumerable});return o},bh=(o,a,u)=>(C7e(o,a,"default"),u&&C7e(u,a,"default")),aHr=o=>C7e(TTt({},"__esModule",{value:!0}),o),Ig={};ag.exports=aHr(Ig);bh(Ig,bSt(),ag.exports);bh(Ig,TSt(),ag.exports);bh(Ig,DSt(),ag.exports);bh(Ig,ASt(),ag.exports);bh(Ig,MSt(),ag.exports);bh(Ig,LSt(),ag.exports);bh(Ig,JSt(),ag.exports);bh(Ig,USt(),ag.exports);bh(Ig,HSt(),ag.exports);bh(Ig,QSt(),ag.exports);bh(Ig,ZSt(),ag.exports);bh(Ig,rTt(),ag.exports);bh(Ig,aTt(),ag.exports);bh(Ig,b7e(),ag.exports);bh(Ig,uTt(),ag.exports);bh(Ig,_Tt(),ag.exports);bh(Ig,gTt(),ag.exports);bh(Ig,vTt(),ag.exports);bh(Ig,STt(),ag.exports)});var qb=Ve((d1n,PTt)=>{var P7e=Object.defineProperty,sHr=Object.getOwnPropertyDescriptor,oHr=Object.getOwnPropertyNames,cHr=Object.prototype.hasOwnProperty,lHr=(o,a)=>{for(var u in a)P7e(o,u,{get:a[u],enumerable:!0})},uHr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of oHr(a))!cHr.call(o,d)&&d!==u&&P7e(o,d,{get:()=>a[d],enumerable:!(f=sHr(a,d))||f.enumerable});return o},pHr=o=>uHr(P7e({},"__esModule",{value:!0}),o),CTt={};lHr(CTt,{createTrignometryOperator:()=>dHr});PTt.exports=pHr(CTt);var fHr=Ji(),_Hr=qi(),kTt={undefined:null,null:null,NaN:NaN,Infinity:new Error,"-Infinity":new Error};function dHr(o,a=kTt){let u=Object.assign({},kTt,a),f=new Set(Object.keys(u));return(d,w,O)=>{let q=(0,fHr.computeValue)(d,w,null,O);if(f.has(`${q}`)){let K=u[`${q}`];if(K instanceof Error)throw new _Hr.MingoError(`cannot apply $${o.name} to -inf, value must in (-inf,inf)`);return K}return o(q)}}});var OTt=Ve((m1n,DTt)=>{var E7e=Object.defineProperty,mHr=Object.getOwnPropertyDescriptor,gHr=Object.getOwnPropertyNames,hHr=Object.prototype.hasOwnProperty,yHr=(o,a)=>{for(var u in a)E7e(o,u,{get:a[u],enumerable:!0})},vHr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of gHr(a))!hHr.call(o,d)&&d!==u&&E7e(o,d,{get:()=>a[d],enumerable:!(f=mHr(a,d))||f.enumerable});return o},bHr=o=>vHr(E7e({},"__esModule",{value:!0}),o),ETt={};yHr(ETt,{$acos:()=>SHr});DTt.exports=bHr(ETt);var xHr=qb(),SHr=(0,xHr.createTrignometryOperator)(Math.acos,{Infinity:1/0,0:new Error})});var ITt=Ve((g1n,ATt)=>{var D7e=Object.defineProperty,THr=Object.getOwnPropertyDescriptor,wHr=Object.getOwnPropertyNames,kHr=Object.prototype.hasOwnProperty,CHr=(o,a)=>{for(var u in a)D7e(o,u,{get:a[u],enumerable:!0})},PHr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of wHr(a))!kHr.call(o,d)&&d!==u&&D7e(o,d,{get:()=>a[d],enumerable:!(f=THr(a,d))||f.enumerable});return o},EHr=o=>PHr(D7e({},"__esModule",{value:!0}),o),NTt={};CHr(NTt,{$acosh:()=>OHr});ATt.exports=EHr(NTt);var DHr=qb(),OHr=(0,DHr.createTrignometryOperator)(Math.acosh,{Infinity:1/0,0:new Error})});var RTt=Ve((h1n,MTt)=>{var O7e=Object.defineProperty,NHr=Object.getOwnPropertyDescriptor,AHr=Object.getOwnPropertyNames,IHr=Object.prototype.hasOwnProperty,FHr=(o,a)=>{for(var u in a)O7e(o,u,{get:a[u],enumerable:!0})},MHr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of AHr(a))!IHr.call(o,d)&&d!==u&&O7e(o,d,{get:()=>a[d],enumerable:!(f=NHr(a,d))||f.enumerable});return o},RHr=o=>MHr(O7e({},"__esModule",{value:!0}),o),FTt={};FHr(FTt,{$asin:()=>LHr});MTt.exports=RHr(FTt);var jHr=qb(),LHr=(0,jHr.createTrignometryOperator)(Math.asin)});var BTt=Ve((y1n,LTt)=>{var N7e=Object.defineProperty,BHr=Object.getOwnPropertyDescriptor,qHr=Object.getOwnPropertyNames,JHr=Object.prototype.hasOwnProperty,zHr=(o,a)=>{for(var u in a)N7e(o,u,{get:a[u],enumerable:!0})},WHr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of qHr(a))!JHr.call(o,d)&&d!==u&&N7e(o,d,{get:()=>a[d],enumerable:!(f=BHr(a,d))||f.enumerable});return o},UHr=o=>WHr(N7e({},"__esModule",{value:!0}),o),jTt={};zHr(jTt,{$asinh:()=>VHr});LTt.exports=UHr(jTt);var $Hr=qb(),VHr=(0,$Hr.createTrignometryOperator)(Math.asinh,{Infinity:1/0,"-Infinity":-1/0})});var zTt=Ve((v1n,JTt)=>{var A7e=Object.defineProperty,HHr=Object.getOwnPropertyDescriptor,GHr=Object.getOwnPropertyNames,KHr=Object.prototype.hasOwnProperty,QHr=(o,a)=>{for(var u in a)A7e(o,u,{get:a[u],enumerable:!0})},XHr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of GHr(a))!KHr.call(o,d)&&d!==u&&A7e(o,d,{get:()=>a[d],enumerable:!(f=HHr(a,d))||f.enumerable});return o},YHr=o=>XHr(A7e({},"__esModule",{value:!0}),o),qTt={};QHr(qTt,{$atan:()=>eGr});JTt.exports=YHr(qTt);var ZHr=qb(),eGr=(0,ZHr.createTrignometryOperator)(Math.atan)});var VTt=Ve((b1n,$Tt)=>{var I7e=Object.defineProperty,tGr=Object.getOwnPropertyDescriptor,rGr=Object.getOwnPropertyNames,nGr=Object.prototype.hasOwnProperty,iGr=(o,a)=>{for(var u in a)I7e(o,u,{get:a[u],enumerable:!0})},aGr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of rGr(a))!nGr.call(o,d)&&d!==u&&I7e(o,d,{get:()=>a[d],enumerable:!(f=tGr(a,d))||f.enumerable});return o},sGr=o=>aGr(I7e({},"__esModule",{value:!0}),o),UTt={};iGr(UTt,{$atan2:()=>cGr});$Tt.exports=sGr(UTt);var oGr=Ji(),WTt=qi(),cGr=(o,a,u)=>{let[f,d]=(0,oGr.computeValue)(o,a,null,u);return isNaN(f)||(0,WTt.isNil)(f)?f:isNaN(d)||(0,WTt.isNil)(d)?d:Math.atan2(f,d)}});var KTt=Ve((x1n,GTt)=>{var F7e=Object.defineProperty,lGr=Object.getOwnPropertyDescriptor,uGr=Object.getOwnPropertyNames,pGr=Object.prototype.hasOwnProperty,fGr=(o,a)=>{for(var u in a)F7e(o,u,{get:a[u],enumerable:!0})},_Gr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of uGr(a))!pGr.call(o,d)&&d!==u&&F7e(o,d,{get:()=>a[d],enumerable:!(f=lGr(a,d))||f.enumerable});return o},dGr=o=>_Gr(F7e({},"__esModule",{value:!0}),o),HTt={};fGr(HTt,{$atanh:()=>gGr});GTt.exports=dGr(HTt);var mGr=qb(),gGr=(0,mGr.createTrignometryOperator)(Math.atanh,{1:1/0,"-1":-1/0})});var YTt=Ve((S1n,XTt)=>{var M7e=Object.defineProperty,hGr=Object.getOwnPropertyDescriptor,yGr=Object.getOwnPropertyNames,vGr=Object.prototype.hasOwnProperty,bGr=(o,a)=>{for(var u in a)M7e(o,u,{get:a[u],enumerable:!0})},xGr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of yGr(a))!vGr.call(o,d)&&d!==u&&M7e(o,d,{get:()=>a[d],enumerable:!(f=hGr(a,d))||f.enumerable});return o},SGr=o=>xGr(M7e({},"__esModule",{value:!0}),o),QTt={};bGr(QTt,{$cos:()=>wGr});XTt.exports=SGr(QTt);var TGr=qb(),wGr=(0,TGr.createTrignometryOperator)(Math.cos)});var t2t=Ve((T1n,e2t)=>{var R7e=Object.defineProperty,kGr=Object.getOwnPropertyDescriptor,CGr=Object.getOwnPropertyNames,PGr=Object.prototype.hasOwnProperty,EGr=(o,a)=>{for(var u in a)R7e(o,u,{get:a[u],enumerable:!0})},DGr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of CGr(a))!PGr.call(o,d)&&d!==u&&R7e(o,d,{get:()=>a[d],enumerable:!(f=kGr(a,d))||f.enumerable});return o},OGr=o=>DGr(R7e({},"__esModule",{value:!0}),o),ZTt={};EGr(ZTt,{$cosh:()=>AGr});e2t.exports=OGr(ZTt);var NGr=qb(),AGr=(0,NGr.createTrignometryOperator)(Math.cosh,{"-Infinity":1/0,Infinity:1/0})});var i2t=Ve((w1n,n2t)=>{var j7e=Object.defineProperty,IGr=Object.getOwnPropertyDescriptor,FGr=Object.getOwnPropertyNames,MGr=Object.prototype.hasOwnProperty,RGr=(o,a)=>{for(var u in a)j7e(o,u,{get:a[u],enumerable:!0})},jGr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of FGr(a))!MGr.call(o,d)&&d!==u&&j7e(o,d,{get:()=>a[d],enumerable:!(f=IGr(a,d))||f.enumerable});return o},LGr=o=>jGr(j7e({},"__esModule",{value:!0}),o),r2t={};RGr(r2t,{$degreesToRadians:()=>JGr});n2t.exports=LGr(r2t);var BGr=qb(),qGr=Math.PI/180,JGr=(0,BGr.createTrignometryOperator)(o=>o*qGr,{Infinity:1/0,"-Infinity":1/0})});var o2t=Ve((k1n,s2t)=>{var L7e=Object.defineProperty,zGr=Object.getOwnPropertyDescriptor,WGr=Object.getOwnPropertyNames,UGr=Object.prototype.hasOwnProperty,$Gr=(o,a)=>{for(var u in a)L7e(o,u,{get:a[u],enumerable:!0})},VGr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of WGr(a))!UGr.call(o,d)&&d!==u&&L7e(o,d,{get:()=>a[d],enumerable:!(f=zGr(a,d))||f.enumerable});return o},HGr=o=>VGr(L7e({},"__esModule",{value:!0}),o),a2t={};$Gr(a2t,{$radiansToDegrees:()=>QGr});s2t.exports=HGr(a2t);var GGr=qb(),KGr=180/Math.PI,QGr=(0,GGr.createTrignometryOperator)(o=>o*KGr,{Infinity:1/0,"-Infinity":-1/0})});var u2t=Ve((C1n,l2t)=>{var B7e=Object.defineProperty,XGr=Object.getOwnPropertyDescriptor,YGr=Object.getOwnPropertyNames,ZGr=Object.prototype.hasOwnProperty,eKr=(o,a)=>{for(var u in a)B7e(o,u,{get:a[u],enumerable:!0})},tKr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of YGr(a))!ZGr.call(o,d)&&d!==u&&B7e(o,d,{get:()=>a[d],enumerable:!(f=XGr(a,d))||f.enumerable});return o},rKr=o=>tKr(B7e({},"__esModule",{value:!0}),o),c2t={};eKr(c2t,{$sin:()=>iKr});l2t.exports=rKr(c2t);var nKr=qb(),iKr=(0,nKr.createTrignometryOperator)(Math.sin)});var _2t=Ve((P1n,f2t)=>{var q7e=Object.defineProperty,aKr=Object.getOwnPropertyDescriptor,sKr=Object.getOwnPropertyNames,oKr=Object.prototype.hasOwnProperty,cKr=(o,a)=>{for(var u in a)q7e(o,u,{get:a[u],enumerable:!0})},lKr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of sKr(a))!oKr.call(o,d)&&d!==u&&q7e(o,d,{get:()=>a[d],enumerable:!(f=aKr(a,d))||f.enumerable});return o},uKr=o=>lKr(q7e({},"__esModule",{value:!0}),o),p2t={};cKr(p2t,{$sinh:()=>fKr});f2t.exports=uKr(p2t);var pKr=qb(),fKr=(0,pKr.createTrignometryOperator)(Math.sinh,{"-Infinity":-1/0,Infinity:1/0})});var g2t=Ve((E1n,m2t)=>{var J7e=Object.defineProperty,_Kr=Object.getOwnPropertyDescriptor,dKr=Object.getOwnPropertyNames,mKr=Object.prototype.hasOwnProperty,gKr=(o,a)=>{for(var u in a)J7e(o,u,{get:a[u],enumerable:!0})},hKr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of dKr(a))!mKr.call(o,d)&&d!==u&&J7e(o,d,{get:()=>a[d],enumerable:!(f=_Kr(a,d))||f.enumerable});return o},yKr=o=>hKr(J7e({},"__esModule",{value:!0}),o),d2t={};gKr(d2t,{$tan:()=>bKr});m2t.exports=yKr(d2t);var vKr=qb(),bKr=(0,vKr.createTrignometryOperator)(Math.tan)});var y2t=Ve((D1n,m0)=>{var h2t=Object.defineProperty,xKr=Object.getOwnPropertyDescriptor,SKr=Object.getOwnPropertyNames,TKr=Object.prototype.hasOwnProperty,z7e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of SKr(a))!TKr.call(o,d)&&d!==u&&h2t(o,d,{get:()=>a[d],enumerable:!(f=xKr(a,d))||f.enumerable});return o},Jb=(o,a,u)=>(z7e(o,a,"default"),u&&z7e(u,a,"default")),wKr=o=>z7e(h2t({},"__esModule",{value:!0}),o),d1={};m0.exports=wKr(d1);Jb(d1,OTt(),m0.exports);Jb(d1,ITt(),m0.exports);Jb(d1,RTt(),m0.exports);Jb(d1,BTt(),m0.exports);Jb(d1,zTt(),m0.exports);Jb(d1,VTt(),m0.exports);Jb(d1,KTt(),m0.exports);Jb(d1,YTt(),m0.exports);Jb(d1,t2t(),m0.exports);Jb(d1,i2t(),m0.exports);Jb(d1,o2t(),m0.exports);Jb(d1,u2t(),m0.exports);Jb(d1,_2t(),m0.exports);Jb(d1,g2t(),m0.exports)});var F7=Ve((O1n,x2t)=>{var W7e=Object.defineProperty,kKr=Object.getOwnPropertyDescriptor,CKr=Object.getOwnPropertyNames,PKr=Object.prototype.hasOwnProperty,EKr=(o,a)=>{for(var u in a)W7e(o,u,{get:a[u],enumerable:!0})},DKr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of CKr(a))!PKr.call(o,d)&&d!==u&&W7e(o,d,{get:()=>a[d],enumerable:!(f=kKr(a,d))||f.enumerable});return o},OKr=o=>DKr(W7e({},"__esModule",{value:!0}),o),v2t={};EKr(v2t,{MAX_INT:()=>b2t,MAX_LONG:()=>IKr,MIN_INT:()=>AKr,MIN_LONG:()=>FKr,TypeConvertError:()=>dfe,toInteger:()=>MKr});x2t.exports=OKr(v2t);var NKr=Ji(),_fe=qi(),b2t=2147483647,AKr=-2147483648,IKr=Number.MAX_SAFE_INTEGER,FKr=Number.MIN_SAFE_INTEGER,dfe=class extends Error{constructor(a){super(a)}};function MKr(o,a,u,f,d){let w=(0,NKr.computeValue)(o,a,null,u);if(w===!0)return 1;if(w===!1)return 0;if((0,_fe.isNil)(w))return null;if((0,_fe.isDate)(w))return w.getTime();let O=Number(w);if((0,_fe.isNumber)(O)&&O>=f&&O<=d&&(!(0,_fe.isString)(w)||O.toString().indexOf(".")===-1))return Math.trunc(O);throw new dfe(`cannot convert '${w}' to ${d==b2t?"int":"long"}`)}});var $7e=Ve((N1n,w2t)=>{var U7e=Object.defineProperty,RKr=Object.getOwnPropertyDescriptor,jKr=Object.getOwnPropertyNames,LKr=Object.prototype.hasOwnProperty,BKr=(o,a)=>{for(var u in a)U7e(o,u,{get:a[u],enumerable:!0})},qKr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of jKr(a))!LKr.call(o,d)&&d!==u&&U7e(o,d,{get:()=>a[d],enumerable:!(f=RKr(a,d))||f.enumerable});return o},JKr=o=>qKr(U7e({},"__esModule",{value:!0}),o),T2t={};BKr(T2t,{$toBool:()=>WKr});w2t.exports=JKr(T2t);var zKr=Ji(),S2t=qi(),WKr=(o,a,u)=>{let f=(0,zKr.computeValue)(o,a,null,u);return(0,S2t.isNil)(f)?null:(0,S2t.isString)(f)?!0:!!f}});var H7e=Ve((A1n,P2t)=>{var V7e=Object.defineProperty,UKr=Object.getOwnPropertyDescriptor,$Kr=Object.getOwnPropertyNames,VKr=Object.prototype.hasOwnProperty,HKr=(o,a)=>{for(var u in a)V7e(o,u,{get:a[u],enumerable:!0})},GKr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of $Kr(a))!VKr.call(o,d)&&d!==u&&V7e(o,d,{get:()=>a[d],enumerable:!(f=UKr(a,d))||f.enumerable});return o},KKr=o=>GKr(V7e({},"__esModule",{value:!0}),o),C2t={};HKr(C2t,{$toDate:()=>YKr});P2t.exports=KKr(C2t);var QKr=Ji(),k2t=qi(),XKr=F7(),YKr=(o,a,u)=>{let f=(0,QKr.computeValue)(o,a,null,u);if((0,k2t.isDate)(f))return f;if((0,k2t.isNil)(f))return null;let d=new Date(f),w=d.getTime();if(!isNaN(w))return d;throw new XKr.TypeConvertError(`cannot convert '${f}' to date`)}});var mfe=Ve((I1n,D2t)=>{var K7e=Object.defineProperty,ZKr=Object.getOwnPropertyDescriptor,eQr=Object.getOwnPropertyNames,tQr=Object.prototype.hasOwnProperty,rQr=(o,a)=>{for(var u in a)K7e(o,u,{get:a[u],enumerable:!0})},nQr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of eQr(a))!tQr.call(o,d)&&d!==u&&K7e(o,d,{get:()=>a[d],enumerable:!(f=ZKr(a,d))||f.enumerable});return o},iQr=o=>nQr(K7e({},"__esModule",{value:!0}),o),E2t={};rQr(E2t,{$toDouble:()=>oQr});D2t.exports=iQr(E2t);var aQr=Ji(),G7e=qi(),sQr=F7(),oQr=(o,a,u)=>{let f=(0,aQr.computeValue)(o,a,null,u);if((0,G7e.isNil)(f))return null;if((0,G7e.isDate)(f))return f.getTime();if(f===!0)return 1;if(f===!1)return 0;let d=Number(f);if((0,G7e.isNumber)(d))return d;throw new sQr.TypeConvertError(`cannot convert '${f}' to double/decimal`)}});var Y7e=Ve((F1n,N2t)=>{var X7e=Object.defineProperty,cQr=Object.getOwnPropertyDescriptor,lQr=Object.getOwnPropertyNames,uQr=Object.prototype.hasOwnProperty,pQr=(o,a)=>{for(var u in a)X7e(o,u,{get:a[u],enumerable:!0})},fQr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of lQr(a))!uQr.call(o,d)&&d!==u&&X7e(o,d,{get:()=>a[d],enumerable:!(f=cQr(a,d))||f.enumerable});return o},_Qr=o=>fQr(X7e({},"__esModule",{value:!0}),o),O2t={};pQr(O2t,{$toInt:()=>dQr});N2t.exports=_Qr(O2t);var Q7e=F7(),dQr=(o,a,u)=>(0,Q7e.toInteger)(o,a,u,Q7e.MIN_INT,Q7e.MAX_INT)});var tFe=Ve((M1n,I2t)=>{var eFe=Object.defineProperty,mQr=Object.getOwnPropertyDescriptor,gQr=Object.getOwnPropertyNames,hQr=Object.prototype.hasOwnProperty,yQr=(o,a)=>{for(var u in a)eFe(o,u,{get:a[u],enumerable:!0})},vQr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of gQr(a))!hQr.call(o,d)&&d!==u&&eFe(o,d,{get:()=>a[d],enumerable:!(f=mQr(a,d))||f.enumerable});return o},bQr=o=>vQr(eFe({},"__esModule",{value:!0}),o),A2t={};yQr(A2t,{$toLong:()=>xQr});I2t.exports=bQr(A2t);var Z7e=F7(),xQr=(o,a,u)=>(0,Z7e.toInteger)(o,a,u,Z7e.MIN_LONG,Z7e.MAX_LONG)});var nFe=Ve((R1n,R2t)=>{var rFe=Object.defineProperty,SQr=Object.getOwnPropertyDescriptor,TQr=Object.getOwnPropertyNames,wQr=Object.prototype.hasOwnProperty,kQr=(o,a)=>{for(var u in a)rFe(o,u,{get:a[u],enumerable:!0})},CQr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of TQr(a))!wQr.call(o,d)&&d!==u&&rFe(o,d,{get:()=>a[d],enumerable:!(f=SQr(a,d))||f.enumerable});return o},PQr=o=>CQr(rFe({},"__esModule",{value:!0}),o),M2t={};kQr(M2t,{$toString:()=>OQr});R2t.exports=PQr(M2t);var EQr=Ji(),F2t=qi(),DQr=D8e(),OQr=(o,a,u)=>{let f=(0,EQr.computeValue)(o,a,null,u);return(0,F2t.isNil)(f)?null:(0,F2t.isDate)(f)?(0,DQr.$dateToString)(o,{date:a,format:"%Y-%m-%dT%H:%M:%S.%LZ"},u):f.toString()}});var B2t=Ve((j1n,L2t)=>{var iFe=Object.defineProperty,NQr=Object.getOwnPropertyDescriptor,AQr=Object.getOwnPropertyNames,IQr=Object.prototype.hasOwnProperty,FQr=(o,a)=>{for(var u in a)iFe(o,u,{get:a[u],enumerable:!0})},MQr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of AQr(a))!IQr.call(o,d)&&d!==u&&iFe(o,d,{get:()=>a[d],enumerable:!(f=NQr(a,d))||f.enumerable});return o},RQr=o=>MQr(iFe({},"__esModule",{value:!0}),o),j2t={};FQr(j2t,{$convert:()=>VQr});L2t.exports=RQr(j2t);var jQr=Ji(),LQr=qi(),BQr=F7(),qQr=$7e(),JQr=H7e(),zQr=mfe(),WQr=Y7e(),UQr=tFe(),$Qr=nFe(),VQr=(o,a,u)=>{let f=(0,jQr.computeValue)(o,a,null,u);if(f.onNull=f.onNull===void 0?null:f.onNull,(0,LQr.isNil)(f.input))return f.onNull;try{switch(f.to){case 2:case"string":return(0,$Qr.$toString)(o,f.input,u);case 8:case"boolean":case"bool":return(0,qQr.$toBool)(o,f.input,u);case 9:case"date":return(0,JQr.$toDate)(o,f.input,u);case 1:case 19:case"double":case"decimal":case"number":return(0,zQr.$toDouble)(o,f.input,u);case 16:case"int":return(0,WQr.$toInt)(o,f.input,u);case 18:case"long":return(0,UQr.$toLong)(o,f.input,u)}}catch{}if(f.onError!==void 0)return f.onError;throw new BQr.TypeConvertError(`could not convert to type ${f.to}.`)}});var z2t=Ve((L1n,J2t)=>{var aFe=Object.defineProperty,HQr=Object.getOwnPropertyDescriptor,GQr=Object.getOwnPropertyNames,KQr=Object.prototype.hasOwnProperty,QQr=(o,a)=>{for(var u in a)aFe(o,u,{get:a[u],enumerable:!0})},XQr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of GQr(a))!KQr.call(o,d)&&d!==u&&aFe(o,d,{get:()=>a[d],enumerable:!(f=HQr(a,d))||f.enumerable});return o},YQr=o=>XQr(aFe({},"__esModule",{value:!0}),o),q2t={};QQr(q2t,{$isNumber:()=>tXr});J2t.exports=YQr(q2t);var ZQr=Ji(),eXr=qi(),tXr=(o,a,u)=>{let f=(0,ZQr.computeValue)(o,a,null,u);return(0,eXr.isNumber)(f)}});var $2t=Ve((B1n,U2t)=>{var sFe=Object.defineProperty,rXr=Object.getOwnPropertyDescriptor,nXr=Object.getOwnPropertyNames,iXr=Object.prototype.hasOwnProperty,aXr=(o,a)=>{for(var u in a)sFe(o,u,{get:a[u],enumerable:!0})},sXr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of nXr(a))!iXr.call(o,d)&&d!==u&&sFe(o,d,{get:()=>a[d],enumerable:!(f=rXr(a,d))||f.enumerable});return o},oXr=o=>sXr(sFe({},"__esModule",{value:!0}),o),W2t={};aXr(W2t,{$toDecimal:()=>lXr});U2t.exports=oXr(W2t);var cXr=mfe(),lXr=cXr.$toDouble});var K2t=Ve((q1n,G2t)=>{var cFe=Object.defineProperty,uXr=Object.getOwnPropertyDescriptor,pXr=Object.getOwnPropertyNames,fXr=Object.prototype.hasOwnProperty,_Xr=(o,a)=>{for(var u in a)cFe(o,u,{get:a[u],enumerable:!0})},dXr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of pXr(a))!fXr.call(o,d)&&d!==u&&cFe(o,d,{get:()=>a[d],enumerable:!(f=uXr(a,d))||f.enumerable});return o},mXr=o=>dXr(cFe({},"__esModule",{value:!0}),o),H2t={};_Xr(H2t,{$type:()=>hXr});G2t.exports=mXr(H2t);var gXr=Ji(),oFe=qi(),V2t=F7(),hXr=(o,a,u)=>{let f=(0,gXr.computeValue)(o,a,null,u);if(u.useStrictMode){if(f===void 0)return"missing";if(f===!0||f===!1)return"bool";if((0,oFe.isNumber)(f))return f%1!=0?"double":f>=V2t.MIN_INT&&f<=V2t.MAX_INT?"int":"long";if((0,oFe.isRegExp)(f))return"regex"}return(0,oFe.typeOf)(f)}});var X2t=Ve((J1n,e2)=>{var Q2t=Object.defineProperty,yXr=Object.getOwnPropertyDescriptor,vXr=Object.getOwnPropertyNames,bXr=Object.prototype.hasOwnProperty,lFe=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of vXr(a))!bXr.call(o,d)&&d!==u&&Q2t(o,d,{get:()=>a[d],enumerable:!(f=yXr(a,d))||f.enumerable});return o},uP=(o,a,u)=>(lFe(o,a,"default"),u&&lFe(u,a,"default")),xXr=o=>lFe(Q2t({},"__esModule",{value:!0}),o),nk={};e2.exports=xXr(nk);uP(nk,B2t(),e2.exports);uP(nk,z2t(),e2.exports);uP(nk,$7e(),e2.exports);uP(nk,H7e(),e2.exports);uP(nk,$2t(),e2.exports);uP(nk,mfe(),e2.exports);uP(nk,Y7e(),e2.exports);uP(nk,tFe(),e2.exports);uP(nk,nFe(),e2.exports);uP(nk,K2t(),e2.exports)});var ewt=Ve((z1n,Z2t)=>{var pFe=Object.defineProperty,SXr=Object.getOwnPropertyDescriptor,TXr=Object.getOwnPropertyNames,wXr=Object.prototype.hasOwnProperty,kXr=(o,a)=>{for(var u in a)pFe(o,u,{get:a[u],enumerable:!0})},CXr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of TXr(a))!wXr.call(o,d)&&d!==u&&pFe(o,d,{get:()=>a[d],enumerable:!(f=SXr(a,d))||f.enumerable});return o},PXr=o=>CXr(pFe({},"__esModule",{value:!0}),o),Y2t={};kXr(Y2t,{$let:()=>EXr});Z2t.exports=PXr(Y2t);var uFe=Ji(),EXr=(o,a,u)=>{let f={};for(let[d,w]of Object.entries(a.vars))f[d]=(0,uFe.computeValue)(o,w,null,u);return(0,uFe.computeValue)(o,a.in,null,uFe.ComputeOptions.init(u,o,{variables:f}))}});var nwt=Ve((W1n,_Fe)=>{var twt=Object.defineProperty,DXr=Object.getOwnPropertyDescriptor,OXr=Object.getOwnPropertyNames,NXr=Object.prototype.hasOwnProperty,fFe=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of OXr(a))!NXr.call(o,d)&&d!==u&&twt(o,d,{get:()=>a[d],enumerable:!(f=DXr(a,d))||f.enumerable});return o},AXr=(o,a,u)=>(fFe(o,a,"default"),u&&fFe(u,a,"default")),IXr=o=>fFe(twt({},"__esModule",{value:!0}),o),rwt={};_Fe.exports=IXr(rwt);AXr(rwt,ewt(),_Fe.exports)});var awt=Ve((U1n,Fg)=>{var iwt=Object.defineProperty,FXr=Object.getOwnPropertyDescriptor,MXr=Object.getOwnPropertyNames,RXr=Object.prototype.hasOwnProperty,dFe=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of MXr(a))!RXr.call(o,d)&&d!==u&&iwt(o,d,{get:()=>a[d],enumerable:!(f=FXr(a,d))||f.enumerable});return o},Sy=(o,a,u)=>(dFe(o,a,"default"),u&&dFe(u,a,"default")),jXr=o=>dFe(iwt({},"__esModule",{value:!0}),o),xh={};Fg.exports=jXr(xh);Sy(xh,Svt(),Fg.exports);Sy(xh,K0t(),Fg.exports);Sy(xh,p1t(),Fg.exports);Sy(xh,k1t(),Fg.exports);Sy(xh,ebt(),Fg.exports);Sy(xh,ubt(),Fg.exports);Sy(xh,_bt(),Fg.exports);Sy(xh,yxt(),Fg.exports);Sy(xh,xxt(),Fg.exports);Sy(xh,wxt(),Fg.exports);Sy(xh,Mxt(),Fg.exports);Sy(xh,$xt(),Fg.exports);Sy(xh,Gxt(),Fg.exports);Sy(xh,hSt(),Fg.exports);Sy(xh,wTt(),Fg.exports);Sy(xh,y2t(),Fg.exports);Sy(xh,X2t(),Fg.exports);Sy(xh,nwt(),Fg.exports)});var lwt=Ve(($1n,cwt)=>{var mFe=Object.defineProperty,LXr=Object.getOwnPropertyDescriptor,BXr=Object.getOwnPropertyNames,qXr=Object.prototype.hasOwnProperty,JXr=(o,a)=>{for(var u in a)mFe(o,u,{get:a[u],enumerable:!0})},zXr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of BXr(a))!qXr.call(o,d)&&d!==u&&mFe(o,d,{get:()=>a[d],enumerable:!(f=LXr(a,d))||f.enumerable});return o},WXr=o=>zXr(mFe({},"__esModule",{value:!0}),o),owt={};JXr(owt,{$merge:()=>VXr});cwt.exports=WXr(owt);var UXr=mG(),swt=Ji(),uS=qi(),$Xr=awt(),VXr=(o,a,u)=>{let f=(0,uS.isString)(a.into)?u?.collectionResolver(a.into):a.into;(0,uS.assert)((0,uS.isArray)(f),"$merge: option 'into' must resolve to an array");let d=a.on||u.idKey,w=(0,uS.isString)(d)?K=>(0,uS.hashCode)((0,uS.resolve)(K,d),u.hashFunction):K=>(0,uS.hashCode)(d.map(le=>(0,uS.resolve)(K,le),u.hashFunction)),O=uS.ValueMap.init();for(let K=0;K<f.length;K++){let le=f[K],ye=w(le);(0,uS.assert)(!O.has(ye),"$merge: 'into' collection must have unique entries for the 'on' field."),O.set(ye,[le,K])}let q=swt.ComputeOptions.init(u);return o.map(K=>{let le=w(K);if(O.has(le)){let[ye,Be]=O.get(le),ce=(0,swt.computeValue)(ye,a.let||{new:"$$ROOT"},null,q.update(K));if((0,uS.isArray)(a.whenMatched)){let mt=new UXr.Aggregator(a.whenMatched,{...u,variables:ce});f[Be]=mt.run([ye])[0]}else switch(a.whenMatched){case"replace":f[Be]=K;break;case"fail":throw new uS.MingoError("$merge: failed due to matching as specified by 'whenMatched' option.");case"keepExisting":break;case"merge":default:f[Be]=(0,$Xr.$mergeObjects)(ye,[ye,K],q.update(K,{variables:ce}));break}}else switch(a.whenNotMatched){case"discard":break;case"fail":throw new uS.MingoError("$merge: failed due to matching as specified by 'whenMatched' option.");case"insert":default:f.push(K);break}return K})}});var fwt=Ve((V1n,pwt)=>{var gFe=Object.defineProperty,HXr=Object.getOwnPropertyDescriptor,GXr=Object.getOwnPropertyNames,KXr=Object.prototype.hasOwnProperty,QXr=(o,a)=>{for(var u in a)gFe(o,u,{get:a[u],enumerable:!0})},XXr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of GXr(a))!KXr.call(o,d)&&d!==u&&gFe(o,d,{get:()=>a[d],enumerable:!(f=HXr(a,d))||f.enumerable});return o},YXr=o=>XXr(gFe({},"__esModule",{value:!0}),o),uwt={};QXr(uwt,{$out:()=>ZXr});pwt.exports=YXr(uwt);var gfe=qi(),ZXr=(o,a,u)=>{let f=(0,gfe.isString)(a)?u?.collectionResolver(a):a;return(0,gfe.assert)((0,gfe.isArray)(f),"expression must resolve to an array"),o.map(d=>(f.push((0,gfe.cloneDeep)(d)),d))}});var gwt=Ve((H1n,mwt)=>{var hFe=Object.defineProperty,eYr=Object.getOwnPropertyDescriptor,tYr=Object.getOwnPropertyNames,rYr=Object.prototype.hasOwnProperty,nYr=(o,a)=>{for(var u in a)hFe(o,u,{get:a[u],enumerable:!0})},iYr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of tYr(a))!rYr.call(o,d)&&d!==u&&hFe(o,d,{get:()=>a[d],enumerable:!(f=eYr(a,d))||f.enumerable});return o},aYr=o=>iYr(hFe({},"__esModule",{value:!0}),o),dwt={};nYr(dwt,{$redact:()=>sYr});mwt.exports=aYr(dwt);var _wt=Ji(),sYr=(o,a,u)=>{let f=_wt.ComputeOptions.init(u);return o.map(d=>(0,_wt.redact)(d,a,f.update(d)))}});var bwt=Ve((G1n,vwt)=>{var yFe=Object.defineProperty,oYr=Object.getOwnPropertyDescriptor,cYr=Object.getOwnPropertyNames,lYr=Object.prototype.hasOwnProperty,uYr=(o,a)=>{for(var u in a)yFe(o,u,{get:a[u],enumerable:!0})},pYr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of cYr(a))!lYr.call(o,d)&&d!==u&&yFe(o,d,{get:()=>a[d],enumerable:!(f=oYr(a,d))||f.enumerable});return o},fYr=o=>pYr(yFe({},"__esModule",{value:!0}),o),ywt={};uYr(ywt,{$replaceRoot:()=>dYr});vwt.exports=fYr(ywt);var _Yr=Ji(),hwt=qi(),dYr=(o,a,u)=>o.map(f=>(f=(0,_Yr.computeValue)(f,a.newRoot,null,u),(0,hwt.assert)((0,hwt.isObject)(f),"$replaceRoot expression must return an object"),f))});var wwt=Ve((K1n,Twt)=>{var vFe=Object.defineProperty,mYr=Object.getOwnPropertyDescriptor,gYr=Object.getOwnPropertyNames,hYr=Object.prototype.hasOwnProperty,yYr=(o,a)=>{for(var u in a)vFe(o,u,{get:a[u],enumerable:!0})},vYr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of gYr(a))!hYr.call(o,d)&&d!==u&&vFe(o,d,{get:()=>a[d],enumerable:!(f=mYr(a,d))||f.enumerable});return o},bYr=o=>vYr(vFe({},"__esModule",{value:!0}),o),Swt={};yYr(Swt,{$replaceWith:()=>SYr});Twt.exports=bYr(Swt);var xYr=Ji(),xwt=qi(),SYr=(o,a,u)=>o.map(f=>(f=(0,xYr.computeValue)(f,a,null,u),(0,xwt.assert)((0,xwt.isObject)(f),"$replaceWith expression must return an object"),f))});var Pwt=Ve((Q1n,Cwt)=>{var bFe=Object.defineProperty,TYr=Object.getOwnPropertyDescriptor,wYr=Object.getOwnPropertyNames,kYr=Object.prototype.hasOwnProperty,CYr=(o,a)=>{for(var u in a)bFe(o,u,{get:a[u],enumerable:!0})},PYr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of wYr(a))!kYr.call(o,d)&&d!==u&&bFe(o,d,{get:()=>a[d],enumerable:!(f=TYr(a,d))||f.enumerable});return o},EYr=o=>PYr(bFe({},"__esModule",{value:!0}),o),kwt={};CYr(kwt,{$sample:()=>DYr});Cwt.exports=EYr(kwt);var DYr=(o,a,u)=>o.transform(f=>{let d=f.length,w=-1;return()=>{if(++w===a.size)return{done:!0};let O=Math.floor(Math.random()*d);return{value:f[O],done:!1}}})});var Owt=Ve((X1n,Dwt)=>{var xFe=Object.defineProperty,OYr=Object.getOwnPropertyDescriptor,NYr=Object.getOwnPropertyNames,AYr=Object.prototype.hasOwnProperty,IYr=(o,a)=>{for(var u in a)xFe(o,u,{get:a[u],enumerable:!0})},FYr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of NYr(a))!AYr.call(o,d)&&d!==u&&xFe(o,d,{get:()=>a[d],enumerable:!(f=OYr(a,d))||f.enumerable});return o},MYr=o=>FYr(xFe({},"__esModule",{value:!0}),o),Ewt={};IYr(Ewt,{$set:()=>jYr});Dwt.exports=MYr(Ewt);var RYr=pG(),jYr=RYr.$addFields});var Iwt=Ve((Y1n,Awt)=>{var SFe=Object.defineProperty,LYr=Object.getOwnPropertyDescriptor,BYr=Object.getOwnPropertyNames,qYr=Object.prototype.hasOwnProperty,JYr=(o,a)=>{for(var u in a)SFe(o,u,{get:a[u],enumerable:!0})},zYr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of BYr(a))!qYr.call(o,d)&&d!==u&&SFe(o,d,{get:()=>a[d],enumerable:!(f=LYr(a,d))||f.enumerable});return o},WYr=o=>zYr(SFe({},"__esModule",{value:!0}),o),Nwt={};JYr(Nwt,{$sortByCount:()=>VYr});Awt.exports=WYr(Nwt);var UYr=$pe(),$Yr=mO(),VYr=(o,a,u)=>(0,$Yr.$sort)((0,UYr.$group)(o,{_id:a,count:{$sum:1}},u),{count:-1},u)});var jwt=Ve((Z1n,Rwt)=>{var TFe=Object.defineProperty,HYr=Object.getOwnPropertyDescriptor,GYr=Object.getOwnPropertyNames,KYr=Object.prototype.hasOwnProperty,QYr=(o,a)=>{for(var u in a)TFe(o,u,{get:a[u],enumerable:!0})},XYr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of GYr(a))!KYr.call(o,d)&&d!==u&&TFe(o,d,{get:()=>a[d],enumerable:!(f=HYr(a,d))||f.enumerable});return o},YYr=o=>XYr(TFe({},"__esModule",{value:!0}),o),Mwt={};QYr(Mwt,{$unionWith:()=>tZr});Rwt.exports=YYr(Mwt);var ZYr=mG(),Fwt=Lb(),eZr=qi(),tZr=(o,a,u)=>{let f=(0,eZr.isString)(a.coll)?u.collectionResolver(a.coll):a.coll,d=[o];return d.push(a.pipeline?new ZYr.Aggregator(a.pipeline,u).stream(f):(0,Fwt.Lazy)(f)),(0,Fwt.concat)(...d)}});var qwt=Ve((ebn,Bwt)=>{var wFe=Object.defineProperty,rZr=Object.getOwnPropertyDescriptor,nZr=Object.getOwnPropertyNames,iZr=Object.prototype.hasOwnProperty,aZr=(o,a)=>{for(var u in a)wFe(o,u,{get:a[u],enumerable:!0})},sZr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of nZr(a))!iZr.call(o,d)&&d!==u&&wFe(o,d,{get:()=>a[d],enumerable:!(f=rZr(a,d))||f.enumerable});return o},oZr=o=>sZr(wFe({},"__esModule",{value:!0}),o),Lwt={};aZr(Lwt,{$unset:()=>uZr});Bwt.exports=oZr(Lwt);var cZr=qi(),lZr=Mpe(),uZr=(o,a,u)=>{a=(0,cZr.ensureArray)(a);let f={};for(let d of a)f[d]=0;return(0,lZr.$project)(o,f,u)}});var Wwt=Ve((tbn,zwt)=>{var CFe=Object.defineProperty,pZr=Object.getOwnPropertyDescriptor,fZr=Object.getOwnPropertyNames,_Zr=Object.prototype.hasOwnProperty,dZr=(o,a)=>{for(var u in a)CFe(o,u,{get:a[u],enumerable:!0})},mZr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of fZr(a))!_Zr.call(o,d)&&d!==u&&CFe(o,d,{get:()=>a[d],enumerable:!(f=pZr(a,d))||f.enumerable});return o},gZr=o=>mZr(CFe({},"__esModule",{value:!0}),o),Jwt={};dZr(Jwt,{$unwind:()=>hZr});zwt.exports=gZr(Jwt);var kFe=Lb(),M7=qi(),hZr=(o,a,u)=>{(0,M7.isString)(a)&&(a={path:a});let d=a.path.substring(1),w=a?.includeArrayIndex||!1,O=a.preserveNullAndEmptyArrays||!1,q=(le,ye)=>(w!==!1&&(le[w]=ye),le),K;return(0,kFe.Lazy)(()=>{for(;;){if(K instanceof kFe.Iterator){let Be=K.next();if(!Be.done)return Be}let le=o.next();if(le.done)return le;let ye=le.value;if(K=(0,M7.resolve)(ye,d),(0,M7.isArray)(K)){if(K.length===0&&O===!0)return K=null,(0,M7.removeValue)(ye,d),{value:q(ye,null),done:!1};K=(0,kFe.Lazy)(K).map((Be,ce)=>{let mt=(0,M7.resolveGraph)(ye,d,{preserveKeys:!0});return(0,M7.setValue)(mt,d,Be),q(mt,ce)})}else if(!(0,M7.isEmpty)(K)||O===!0)return{value:q(ye,null),done:!1}}})}});var $wt=Ve((rbn,Ef)=>{var Uwt=Object.defineProperty,yZr=Object.getOwnPropertyDescriptor,vZr=Object.getOwnPropertyNames,bZr=Object.prototype.hasOwnProperty,PFe=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of vZr(a))!bZr.call(o,d)&&d!==u&&Uwt(o,d,{get:()=>a[d],enumerable:!(f=yZr(a,d))||f.enumerable});return o},p_=(o,a,u)=>(PFe(o,a,"default"),u&&PFe(u,a,"default")),xZr=o=>PFe(Uwt({},"__esModule",{value:!0}),o),Hf={};Ef.exports=xZr(Hf);p_(Hf,pG(),Ef.exports);p_(Hf,Rmt(),Ef.exports);p_(Hf,Jmt(),Ef.exports);p_(Hf,Umt(),Ef.exports);p_(Hf,fgt(),Ef.exports);p_(Hf,hgt(),Ef.exports);p_(Hf,myt(),Ef.exports);p_(Hf,byt(),Ef.exports);p_(Hf,$pe(),Ef.exports);p_(Hf,J6e(),Ef.exports);p_(Hf,T4e(),Ef.exports);p_(Hf,Tyt(),Ef.exports);p_(Hf,lwt(),Ef.exports);p_(Hf,fwt(),Ef.exports);p_(Hf,Mpe(),Ef.exports);p_(Hf,gwt(),Ef.exports);p_(Hf,bwt(),Ef.exports);p_(Hf,wwt(),Ef.exports);p_(Hf,Pwt(),Ef.exports);p_(Hf,Owt(),Ef.exports);p_(Hf,b4e(),Ef.exports);p_(Hf,U6e(),Ef.exports);p_(Hf,mO(),Ef.exports);p_(Hf,Iwt(),Ef.exports);p_(Hf,jwt(),Ef.exports);p_(Hf,qwt(),Ef.exports);p_(Hf,Wwt(),Ef.exports)});var Kwt=Ve((nbn,Gwt)=>{var EFe=Object.defineProperty,SZr=Object.getOwnPropertyDescriptor,TZr=Object.getOwnPropertyNames,wZr=Object.prototype.hasOwnProperty,kZr=(o,a)=>{for(var u in a)EFe(o,u,{get:a[u],enumerable:!0})},CZr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of TZr(a))!wZr.call(o,d)&&d!==u&&EFe(o,d,{get:()=>a[d],enumerable:!(f=SZr(a,d))||f.enumerable});return o},PZr=o=>CZr(EFe({},"__esModule",{value:!0}),o),Hwt={};kZr(Hwt,{$and:()=>DZr});Gwt.exports=PZr(Hwt);var EZr=C7(),Vwt=qi(),DZr=(o,a,u)=>{(0,Vwt.assert)((0,Vwt.isArray)(a),"Invalid expression: $and expects value to be an Array.");let f=a.map(d=>new EZr.Query(d,u));return d=>f.every(w=>w.test(d))}});var OFe=Ve((ibn,Ywt)=>{var DFe=Object.defineProperty,OZr=Object.getOwnPropertyDescriptor,NZr=Object.getOwnPropertyNames,AZr=Object.prototype.hasOwnProperty,IZr=(o,a)=>{for(var u in a)DFe(o,u,{get:a[u],enumerable:!0})},FZr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of NZr(a))!AZr.call(o,d)&&d!==u&&DFe(o,d,{get:()=>a[d],enumerable:!(f=OZr(a,d))||f.enumerable});return o},MZr=o=>FZr(DFe({},"__esModule",{value:!0}),o),Xwt={};IZr(Xwt,{$or:()=>jZr});Ywt.exports=MZr(Xwt);var RZr=C7(),Qwt=qi(),jZr=(o,a,u)=>{(0,Qwt.assert)((0,Qwt.isArray)(a),"Invalid expression. $or expects value to be an Array");let f=a.map(d=>new RZr.Query(d,u));return d=>f.some(w=>w.test(d))}});var rkt=Ve((abn,tkt)=>{var NFe=Object.defineProperty,LZr=Object.getOwnPropertyDescriptor,BZr=Object.getOwnPropertyNames,qZr=Object.prototype.hasOwnProperty,JZr=(o,a)=>{for(var u in a)NFe(o,u,{get:a[u],enumerable:!0})},zZr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of BZr(a))!qZr.call(o,d)&&d!==u&&NFe(o,d,{get:()=>a[d],enumerable:!(f=LZr(a,d))||f.enumerable});return o},WZr=o=>zZr(NFe({},"__esModule",{value:!0}),o),ekt={};JZr(ekt,{$nor:()=>$Zr});tkt.exports=WZr(ekt);var Zwt=qi(),UZr=OFe(),$Zr=(o,a,u)=>{(0,Zwt.assert)((0,Zwt.isArray)(a),"Invalid expression. $nor expects value to be an array.");let f=(0,UZr.$or)("$or",a,u);return d=>!f(d)}});var akt=Ve((sbn,ikt)=>{var AFe=Object.defineProperty,VZr=Object.getOwnPropertyDescriptor,HZr=Object.getOwnPropertyNames,GZr=Object.prototype.hasOwnProperty,KZr=(o,a)=>{for(var u in a)AFe(o,u,{get:a[u],enumerable:!0})},QZr=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of HZr(a))!GZr.call(o,d)&&d!==u&&AFe(o,d,{get:()=>a[d],enumerable:!(f=VZr(a,d))||f.enumerable});return o},XZr=o=>QZr(AFe({},"__esModule",{value:!0}),o),nkt={};KZr(nkt,{$not:()=>een});ikt.exports=XZr(nkt);var YZr=C7(),ZZr=qi(),een=(o,a,u)=>{let f={};f[o]=(0,ZZr.normalize)(a);let d=new YZr.Query(f,u);return w=>!d.test(w)}});var okt=Ve((obn,Q9)=>{var skt=Object.defineProperty,ten=Object.getOwnPropertyDescriptor,ren=Object.getOwnPropertyNames,nen=Object.prototype.hasOwnProperty,IFe=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ren(a))!nen.call(o,d)&&d!==u&&skt(o,d,{get:()=>a[d],enumerable:!(f=ten(a,d))||f.enumerable});return o},hfe=(o,a,u)=>(IFe(o,a,"default"),u&&IFe(u,a,"default")),ien=o=>IFe(skt({},"__esModule",{value:!0}),o),jG={};Q9.exports=ien(jG);hfe(jG,Kwt(),Q9.exports);hfe(jG,rkt(),Q9.exports);hfe(jG,akt(),Q9.exports);hfe(jG,OFe(),Q9.exports)});var pkt=Ve((cbn,ukt)=>{var FFe=Object.defineProperty,aen=Object.getOwnPropertyDescriptor,sen=Object.getOwnPropertyNames,oen=Object.prototype.hasOwnProperty,cen=(o,a)=>{for(var u in a)FFe(o,u,{get:a[u],enumerable:!0})},len=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of sen(a))!oen.call(o,d)&&d!==u&&FFe(o,d,{get:()=>a[d],enumerable:!(f=aen(a,d))||f.enumerable});return o},uen=o=>len(FFe({},"__esModule",{value:!0}),o),lkt={};cen(lkt,{$eq:()=>pen});ukt.exports=uen(lkt);var ckt=Am(),pen=(0,ckt.createQueryOperator)(ckt.$eq)});var mkt=Ve((lbn,dkt)=>{var MFe=Object.defineProperty,fen=Object.getOwnPropertyDescriptor,_en=Object.getOwnPropertyNames,den=Object.prototype.hasOwnProperty,men=(o,a)=>{for(var u in a)MFe(o,u,{get:a[u],enumerable:!0})},gen=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of _en(a))!den.call(o,d)&&d!==u&&MFe(o,d,{get:()=>a[d],enumerable:!(f=fen(a,d))||f.enumerable});return o},hen=o=>gen(MFe({},"__esModule",{value:!0}),o),_kt={};men(_kt,{$gt:()=>yen});dkt.exports=hen(_kt);var fkt=Am(),yen=(0,fkt.createQueryOperator)(fkt.$gt)});var vkt=Ve((ubn,ykt)=>{var RFe=Object.defineProperty,ven=Object.getOwnPropertyDescriptor,ben=Object.getOwnPropertyNames,xen=Object.prototype.hasOwnProperty,Sen=(o,a)=>{for(var u in a)RFe(o,u,{get:a[u],enumerable:!0})},Ten=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ben(a))!xen.call(o,d)&&d!==u&&RFe(o,d,{get:()=>a[d],enumerable:!(f=ven(a,d))||f.enumerable});return o},wen=o=>Ten(RFe({},"__esModule",{value:!0}),o),hkt={};Sen(hkt,{$gte:()=>ken});ykt.exports=wen(hkt);var gkt=Am(),ken=(0,gkt.createQueryOperator)(gkt.$gte)});var Tkt=Ve((pbn,Skt)=>{var jFe=Object.defineProperty,Cen=Object.getOwnPropertyDescriptor,Pen=Object.getOwnPropertyNames,Een=Object.prototype.hasOwnProperty,Den=(o,a)=>{for(var u in a)jFe(o,u,{get:a[u],enumerable:!0})},Oen=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Pen(a))!Een.call(o,d)&&d!==u&&jFe(o,d,{get:()=>a[d],enumerable:!(f=Cen(a,d))||f.enumerable});return o},Nen=o=>Oen(jFe({},"__esModule",{value:!0}),o),xkt={};Den(xkt,{$in:()=>Aen});Skt.exports=Nen(xkt);var bkt=Am(),Aen=(0,bkt.createQueryOperator)(bkt.$in)});var Pkt=Ve((fbn,Ckt)=>{var LFe=Object.defineProperty,Ien=Object.getOwnPropertyDescriptor,Fen=Object.getOwnPropertyNames,Men=Object.prototype.hasOwnProperty,Ren=(o,a)=>{for(var u in a)LFe(o,u,{get:a[u],enumerable:!0})},jen=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Fen(a))!Men.call(o,d)&&d!==u&&LFe(o,d,{get:()=>a[d],enumerable:!(f=Ien(a,d))||f.enumerable});return o},Len=o=>jen(LFe({},"__esModule",{value:!0}),o),kkt={};Ren(kkt,{$lt:()=>Ben});Ckt.exports=Len(kkt);var wkt=Am(),Ben=(0,wkt.createQueryOperator)(wkt.$lt)});var Nkt=Ve((_bn,Okt)=>{var BFe=Object.defineProperty,qen=Object.getOwnPropertyDescriptor,Jen=Object.getOwnPropertyNames,zen=Object.prototype.hasOwnProperty,Wen=(o,a)=>{for(var u in a)BFe(o,u,{get:a[u],enumerable:!0})},Uen=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Jen(a))!zen.call(o,d)&&d!==u&&BFe(o,d,{get:()=>a[d],enumerable:!(f=qen(a,d))||f.enumerable});return o},$en=o=>Uen(BFe({},"__esModule",{value:!0}),o),Dkt={};Wen(Dkt,{$lte:()=>Ven});Okt.exports=$en(Dkt);var Ekt=Am(),Ven=(0,Ekt.createQueryOperator)(Ekt.$lte)});var Mkt=Ve((dbn,Fkt)=>{var qFe=Object.defineProperty,Hen=Object.getOwnPropertyDescriptor,Gen=Object.getOwnPropertyNames,Ken=Object.prototype.hasOwnProperty,Qen=(o,a)=>{for(var u in a)qFe(o,u,{get:a[u],enumerable:!0})},Xen=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Gen(a))!Ken.call(o,d)&&d!==u&&qFe(o,d,{get:()=>a[d],enumerable:!(f=Hen(a,d))||f.enumerable});return o},Yen=o=>Xen(qFe({},"__esModule",{value:!0}),o),Ikt={};Qen(Ikt,{$ne:()=>Zen});Fkt.exports=Yen(Ikt);var Akt=Am(),Zen=(0,Akt.createQueryOperator)(Akt.$ne)});var Bkt=Ve((mbn,Lkt)=>{var JFe=Object.defineProperty,etn=Object.getOwnPropertyDescriptor,ttn=Object.getOwnPropertyNames,rtn=Object.prototype.hasOwnProperty,ntn=(o,a)=>{for(var u in a)JFe(o,u,{get:a[u],enumerable:!0})},itn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ttn(a))!rtn.call(o,d)&&d!==u&&JFe(o,d,{get:()=>a[d],enumerable:!(f=etn(a,d))||f.enumerable});return o},atn=o=>itn(JFe({},"__esModule",{value:!0}),o),jkt={};ntn(jkt,{$nin:()=>stn});Lkt.exports=atn(jkt);var Rkt=Am(),stn=(0,Rkt.createQueryOperator)(Rkt.$nin)});var zkt=Ve((gbn,Jkt)=>{var zFe=Object.defineProperty,otn=Object.getOwnPropertyDescriptor,ctn=Object.getOwnPropertyNames,ltn=Object.prototype.hasOwnProperty,utn=(o,a)=>{for(var u in a)zFe(o,u,{get:a[u],enumerable:!0})},ptn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of ctn(a))!ltn.call(o,d)&&d!==u&&zFe(o,d,{get:()=>a[d],enumerable:!(f=otn(a,d))||f.enumerable});return o},ftn=o=>ptn(zFe({},"__esModule",{value:!0}),o),qkt={};utn(qkt,{$eq:()=>_tn.$eq,$gt:()=>dtn.$gt,$gte:()=>mtn.$gte,$in:()=>gtn.$in,$lt:()=>htn.$lt,$lte:()=>ytn.$lte,$ne:()=>vtn.$ne,$nin:()=>btn.$nin});Jkt.exports=ftn(qkt);var _tn=pkt(),dtn=mkt(),mtn=vkt(),gtn=Tkt(),htn=Pkt(),ytn=Nkt(),vtn=Mkt(),btn=Bkt()});var $kt=Ve((hbn,Ukt)=>{var WFe=Object.defineProperty,xtn=Object.getOwnPropertyDescriptor,Stn=Object.getOwnPropertyNames,Ttn=Object.prototype.hasOwnProperty,wtn=(o,a)=>{for(var u in a)WFe(o,u,{get:a[u],enumerable:!0})},ktn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Stn(a))!Ttn.call(o,d)&&d!==u&&WFe(o,d,{get:()=>a[d],enumerable:!(f=xtn(a,d))||f.enumerable});return o},Ctn=o=>ktn(WFe({},"__esModule",{value:!0}),o),Wkt={};wtn(Wkt,{$expr:()=>Etn});Ukt.exports=Ctn(Wkt);var Ptn=Ji();function Etn(o,a,u){return f=>(0,Ptn.computeValue)(f,a,null,u)}});var Gkt=Ve((ybn,Hkt)=>{var UFe=Object.defineProperty,Dtn=Object.getOwnPropertyDescriptor,Otn=Object.getOwnPropertyNames,Ntn=Object.prototype.hasOwnProperty,Atn=(o,a)=>{for(var u in a)UFe(o,u,{get:a[u],enumerable:!0})},Itn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Otn(a))!Ntn.call(o,d)&&d!==u&&UFe(o,d,{get:()=>a[d],enumerable:!(f=Dtn(a,d))||f.enumerable});return o},Ftn=o=>Itn(UFe({},"__esModule",{value:!0}),o),Vkt={};Atn(Vkt,{$jsonSchema:()=>Rtn});Hkt.exports=Ftn(Vkt);var Mtn=qi();function Rtn(o,a,u){if(!u?.jsonSchemaValidator)throw new Mtn.MingoError("Missing option 'jsonSchemaValidator'. Configure to use '$jsonSchema' operator.");let f=u?.jsonSchemaValidator(a);return d=>f(d)}});var Ykt=Ve((vbn,Xkt)=>{var $Fe=Object.defineProperty,jtn=Object.getOwnPropertyDescriptor,Ltn=Object.getOwnPropertyNames,Btn=Object.prototype.hasOwnProperty,qtn=(o,a)=>{for(var u in a)$Fe(o,u,{get:a[u],enumerable:!0})},Jtn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Ltn(a))!Btn.call(o,d)&&d!==u&&$Fe(o,d,{get:()=>a[d],enumerable:!(f=jtn(a,d))||f.enumerable});return o},ztn=o=>Jtn($Fe({},"__esModule",{value:!0}),o),Qkt={};qtn(Qkt,{$mod:()=>Wtn});Xkt.exports=ztn(Qkt);var Kkt=Am(),Wtn=(0,Kkt.createQueryOperator)(Kkt.$mod)});var rCt=Ve((bbn,tCt)=>{var VFe=Object.defineProperty,Utn=Object.getOwnPropertyDescriptor,$tn=Object.getOwnPropertyNames,Vtn=Object.prototype.hasOwnProperty,Htn=(o,a)=>{for(var u in a)VFe(o,u,{get:a[u],enumerable:!0})},Gtn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of $tn(a))!Vtn.call(o,d)&&d!==u&&VFe(o,d,{get:()=>a[d],enumerable:!(f=Utn(a,d))||f.enumerable});return o},Ktn=o=>Gtn(VFe({},"__esModule",{value:!0}),o),eCt={};Htn(eCt,{$regex:()=>Qtn});tCt.exports=Ktn(eCt);var Zkt=Am(),Qtn=(0,Zkt.createQueryOperator)(Zkt.$regex)});var aCt=Ve((xbn,iCt)=>{var HFe=Object.defineProperty,Xtn=Object.getOwnPropertyDescriptor,Ytn=Object.getOwnPropertyNames,Ztn=Object.prototype.hasOwnProperty,ern=(o,a)=>{for(var u in a)HFe(o,u,{get:a[u],enumerable:!0})},trn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Ytn(a))!Ztn.call(o,d)&&d!==u&&HFe(o,d,{get:()=>a[d],enumerable:!(f=Xtn(a,d))||f.enumerable});return o},rrn=o=>trn(HFe({},"__esModule",{value:!0}),o),nCt={};ern(nCt,{$where:()=>nrn});iCt.exports=rrn(nCt);var yfe=qi();function nrn(o,a,u){(0,yfe.assert)(u.scriptEnabled,"$where operator requires 'scriptEnabled' option to be true");let f=a;return(0,yfe.assert)((0,yfe.isFunction)(f),"$where only accepts a Function object"),d=>(0,yfe.truthy)(f.call(d),u?.useStrictMode)}});var oCt=Ve((Sbn,R7)=>{var sCt=Object.defineProperty,irn=Object.getOwnPropertyDescriptor,arn=Object.getOwnPropertyNames,srn=Object.prototype.hasOwnProperty,GFe=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of arn(a))!srn.call(o,d)&&d!==u&&sCt(o,d,{get:()=>a[d],enumerable:!(f=irn(a,d))||f.enumerable});return o},LG=(o,a,u)=>(GFe(o,a,"default"),u&&GFe(u,a,"default")),orn=o=>GFe(sCt({},"__esModule",{value:!0}),o),X9={};R7.exports=orn(X9);LG(X9,$kt(),R7.exports);LG(X9,Gkt(),R7.exports);LG(X9,Ykt(),R7.exports);LG(X9,rCt(),R7.exports);LG(X9,aCt(),R7.exports)});var pCt=Ve((Tbn,uCt)=>{var KFe=Object.defineProperty,crn=Object.getOwnPropertyDescriptor,lrn=Object.getOwnPropertyNames,urn=Object.prototype.hasOwnProperty,prn=(o,a)=>{for(var u in a)KFe(o,u,{get:a[u],enumerable:!0})},frn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of lrn(a))!urn.call(o,d)&&d!==u&&KFe(o,d,{get:()=>a[d],enumerable:!(f=crn(a,d))||f.enumerable});return o},_rn=o=>frn(KFe({},"__esModule",{value:!0}),o),lCt={};prn(lCt,{$all:()=>drn});uCt.exports=_rn(lCt);var cCt=Am(),drn=(0,cCt.createQueryOperator)(cCt.$all)});var mCt=Ve((wbn,dCt)=>{var QFe=Object.defineProperty,mrn=Object.getOwnPropertyDescriptor,grn=Object.getOwnPropertyNames,hrn=Object.prototype.hasOwnProperty,yrn=(o,a)=>{for(var u in a)QFe(o,u,{get:a[u],enumerable:!0})},vrn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of grn(a))!hrn.call(o,d)&&d!==u&&QFe(o,d,{get:()=>a[d],enumerable:!(f=mrn(a,d))||f.enumerable});return o},brn=o=>vrn(QFe({},"__esModule",{value:!0}),o),_Ct={};yrn(_Ct,{$elemMatch:()=>xrn});dCt.exports=brn(_Ct);var fCt=Am(),xrn=(0,fCt.createQueryOperator)(fCt.$elemMatch)});var vCt=Ve((kbn,yCt)=>{var XFe=Object.defineProperty,Srn=Object.getOwnPropertyDescriptor,Trn=Object.getOwnPropertyNames,wrn=Object.prototype.hasOwnProperty,krn=(o,a)=>{for(var u in a)XFe(o,u,{get:a[u],enumerable:!0})},Crn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Trn(a))!wrn.call(o,d)&&d!==u&&XFe(o,d,{get:()=>a[d],enumerable:!(f=Srn(a,d))||f.enumerable});return o},Prn=o=>Crn(XFe({},"__esModule",{value:!0}),o),hCt={};krn(hCt,{$size:()=>Ern});yCt.exports=Prn(hCt);var gCt=Am(),Ern=(0,gCt.createQueryOperator)(gCt.$size)});var xCt=Ve((Cbn,BG)=>{var bCt=Object.defineProperty,Drn=Object.getOwnPropertyDescriptor,Orn=Object.getOwnPropertyNames,Nrn=Object.prototype.hasOwnProperty,YFe=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Orn(a))!Nrn.call(o,d)&&d!==u&&bCt(o,d,{get:()=>a[d],enumerable:!(f=Drn(a,d))||f.enumerable});return o},ZFe=(o,a,u)=>(YFe(o,a,"default"),u&&YFe(u,a,"default")),Arn=o=>YFe(bCt({},"__esModule",{value:!0}),o),vfe={};BG.exports=Arn(vfe);ZFe(vfe,pCt(),BG.exports);ZFe(vfe,mCt(),BG.exports);ZFe(vfe,vCt(),BG.exports)});var wCt=Ve((Pbn,TCt)=>{var e5e=Object.defineProperty,Irn=Object.getOwnPropertyDescriptor,Frn=Object.getOwnPropertyNames,Mrn=Object.prototype.hasOwnProperty,Rrn=(o,a)=>{for(var u in a)e5e(o,u,{get:a[u],enumerable:!0})},jrn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Frn(a))!Mrn.call(o,d)&&d!==u&&e5e(o,d,{get:()=>a[d],enumerable:!(f=Irn(a,d))||f.enumerable});return o},Lrn=o=>jrn(e5e({},"__esModule",{value:!0}),o),SCt={};Rrn(SCt,{$exists:()=>Brn});TCt.exports=Lrn(SCt);var bfe=qi(),Brn=(o,a,u)=>{let f=o.includes("."),d=!!a;return!f||o.match(/\.\d+$/)?w=>(0,bfe.resolve)(w,o)!==void 0===d:w=>{let O=(0,bfe.resolveGraph)(w,o,{preserveIndex:!0}),q=(0,bfe.resolve)(O,o.substring(0,o.lastIndexOf(".")));return(0,bfe.isArray)(q)?q.some(K=>K!==void 0)===d:q!==void 0===d}}});var ECt=Ve((Ebn,PCt)=>{var t5e=Object.defineProperty,qrn=Object.getOwnPropertyDescriptor,Jrn=Object.getOwnPropertyNames,zrn=Object.prototype.hasOwnProperty,Wrn=(o,a)=>{for(var u in a)t5e(o,u,{get:a[u],enumerable:!0})},Urn=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Jrn(a))!zrn.call(o,d)&&d!==u&&t5e(o,d,{get:()=>a[d],enumerable:!(f=qrn(a,d))||f.enumerable});return o},$rn=o=>Urn(t5e({},"__esModule",{value:!0}),o),CCt={};Wrn(CCt,{$type:()=>Vrn});PCt.exports=$rn(CCt);var kCt=Am(),Vrn=(0,kCt.createQueryOperator)(kCt.$type)});var NCt=Ve((Dbn,xfe)=>{var DCt=Object.defineProperty,Hrn=Object.getOwnPropertyDescriptor,Grn=Object.getOwnPropertyNames,Krn=Object.prototype.hasOwnProperty,r5e=(o,a,u,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of Grn(a))!Krn.call(o,d)&&d!==u&&DCt(o,d,{get:()=>a[d],enumerable:!(f=Hrn(a,d))||f.enumerable});return o},OCt=(o,a,u)=>(r5e(o,a,"default"),u&&r5e(u,a,"default")),Qrn=o=>r5e(DCt({},"__esModule",{value:!0}),o),n5e={};xfe.exports=Qrn(n5e);OCt(n5e,wCt(),xfe.exports);OCt(n5e,ECt(),xfe.exports)});function FCt(o){return ACt||((0,i5e.useOperators)("pipeline",{$sort:Sfe.$sort,$project:Sfe.$project}),(0,i5e.useOperators)("query",{$and:aI.$and,$eq:g0.$eq,$elemMatch:wfe.$elemMatch,$exists:kfe.$exists,$gt:g0.$gt,$gte:g0.$gte,$in:g0.$in,$lt:g0.$lt,$lte:g0.$lte,$ne:g0.$ne,$nin:g0.$nin,$mod:Tfe.$mod,$nor:aI.$nor,$not:aI.$not,$or:aI.$or,$regex:Tfe.$regex,$size:wfe.$size,$type:kfe.$type}),ACt=!0),new ICt.Query(o)}var i5e,ICt,Sfe,aI,g0,Tfe,wfe,kfe,ACt,MCt=mi(()=>{i5e=Ea(Ji(),1),ICt=Ea(C7(),1),Sfe=Ea($wt(),1),aI=Ea(okt(),1),g0=Ea(zkt(),1),Tfe=Ea(oCt(),1),wfe=Ea(xCt(),1),kfe=Ea(NCt(),1),ACt=!1});function Y9(o,a){var u=XT(o.primaryKey);a=Kd(a);var f=QT(a);if(typeof f.skip!="number"&&(f.skip=0),f.selector?(f.selector=f.selector,Object.entries(f.selector).forEach(([Be,ce])=>{(typeof ce!="object"||ce===null)&&(f.selector[Be]={$eq:ce})})):f.selector={},f.index){var d=jH(f.index);d.includes(u)||d.push(u),f.index=d}if(f.sort){var ye=f.sort.find(Be=>ept(Be)===u);ye||(f.sort=f.sort.slice(0),f.sort.push({[u]:"asc"}))}else if(f.index)f.sort=f.index.map(Be=>({[Be]:"asc"}));else{if(o.indexes){var w=new Set;Object.entries(f.selector).forEach(([Be,ce])=>{var mt=!1;typeof ce=="object"&&ce!==null?mt=!!Object.keys(ce).find(Re=>wpe.has(Re)):mt=!0,mt&&w.add(Be)});var O=-1,q;o.indexes.forEach(Be=>{var ce=a7(Be)?Be:[Be],mt=ce.findIndex(Re=>!w.has(Re));mt>0&&mt>O&&(O=mt,q=ce)}),q&&(f.sort=q.map(Be=>({[Be]:"asc"})))}if(!f.sort)if(o.indexes&&o.indexes.length>0){var K=o.indexes[0],le=a7(K)?K:[K];f.sort=le.map(Be=>({[Be]:"asc"}))}else f.sort=[{[u]:"asc"}]}return f}function Cfe(o,a){if(!a.sort)throw mo("SNH",{query:a});var u=[];a.sort.forEach(d=>{var w=Object.keys(d)[0],O=Object.values(d)[0];u.push({key:w,direction:O,getValueFn:Zut(w)})});var f=(d,w)=>{for(var O=0;O<u.length;++O){var q=u[O],K=q.getValueFn(d),le=q.getValueFn(w);if(K!==le){var ye=q.direction==="asc"?(0,a5e.compare)(K,le):(0,a5e.compare)(le,K);return ye}}};return f}function Z9(o,a){if(!a.sort)throw mo("SNH",{query:a});var u=FCt(a.selector),f=d=>u.test(d);return f}async function eB(o,a){var u=await o.exec();if(!u)return null;if(Array.isArray(u))return Promise.all(u.map(d=>a(d)));if(u instanceof Map)return Promise.all([...u.values()].map(d=>a(d)));var f=await a(u);return f}function Pfe(o,a){if(!a.sort)throw mo("SNH",{query:a});var u=zdt(o,a);return{query:a,queryPlan:u}}var a5e,tB=mi(()=>{kpe();Qw();O_();a5e=Ea(qi(),1);ng();MCt()});async function o5e(o,a){var u=await o.findDocumentsById([a],!1),f=u[0];if(f)return f}function rB(o,a,u,f){if(f)throw f.status===409?mo("CONFLICT",{collection:o.name,id:a,writeError:f,data:u}):f.status===422?mo("VD2",{collection:o.name,id:a,writeError:f,data:u}):f}function jCt(o,a,u,f,d,w,O){for(var q=!!o.schema.attachments,K=[],le=[],ye=[],Be=o7(10),ce={id:Be,events:[],checkpoint:null,context:d},mt=ce.events,Re=[],Ge=[],_r=[],jr=u.size>0,si,Oi=f.length,ys=function(){var sn=f[ns],Ir=sn.document,Ks=sn.previous,Va=Ir[a],up=Ir._deleted,Ta=Ks&&Ks._deleted,f_=void 0;jr&&(f_=u.get(Va));var Vu;if(f_){var wa=f_._rev;if(!Ks||Ks&&wa!==Ks._rev){var Dt={isError:!0,status:409,documentId:Va,writeRow:sn,documentInDb:f_};return ye.push(Dt),1}var ci=q?s5e(sn):sn;q&&(up?Ks&&Object.keys(Ks._attachments).forEach(Xl=>{Ge.push({documentId:Va,attachmentId:Xl,digest:xp(Ks)._attachments[Xl].digest})}):(Object.entries(Ir._attachments).find(([Xl,Vc])=>{var ku=Ks?Ks._attachments[Xl]:void 0;return!ku&&!Vc.data&&(Vu={documentId:Va,documentInDb:f_,isError:!0,status:510,writeRow:sn,attachmentId:Xl}),!0}),Vu||Object.entries(Ir._attachments).forEach(([Xl,Vc])=>{var ku=Ks?Ks._attachments[Xl]:void 0;if(!ku)Re.push({documentId:Va,attachmentId:Xl,attachmentData:Vc,digest:Vc.digest});else{var Bi=ci.document._attachments[Xl].digest;Vc.data&&ku.digest!==Bi&&_r.push({documentId:Va,attachmentId:Xl,attachmentData:Vc,digest:Vc.digest})}}))),Vu?ye.push(Vu):(q?(le.push(s5e(ci)),O&&O(Ir)):(le.push(ci),O&&O(Ir)),si=ci);var ia=null,js=null,li=null;if(Ta&&!up)li="INSERT",ia=q?pP(Ir):Ir;else if(Ks&&!Ta&&!up)li="UPDATE",ia=q?pP(Ir):Ir,js=Ks;else if(up)li="DELETE",ia=xp(Ir),js=Ks;else throw mo("SNH",{args:{writeRow:sn}});var xl={documentId:Va,documentData:ia,previousDocumentData:js,operation:li};mt.push(xl)}else{var Cn=!!up;if(q&&Object.entries(Ir._attachments).forEach(([Xl,Vc])=>{Vc.data?Re.push({documentId:Va,attachmentId:Xl,attachmentData:Vc,digest:Vc.digest}):(Vu={documentId:Va,isError:!0,status:510,writeRow:sn,attachmentId:Xl},ye.push(Vu))}),Vu||(q?(K.push(s5e(sn)),w&&w(Ir)):(K.push(sn),w&&w(Ir)),si=sn),!Cn){var __={documentId:Va,operation:"INSERT",documentData:q?pP(Ir):Ir,previousDocumentData:q&&Ks?pP(Ks):Ks};mt.push(__)}}},ns=0;ns<Oi;ns++)ys();return{bulkInsertDocs:K,bulkUpdateDocs:le,newestRow:si,errors:ye,eventBulk:ce,attachmentsAdd:Re,attachmentsRemove:Ge,attachmentsUpdate:_r}}function s5e(o){return{previous:o.previous,document:pP(o.document)}}function Xrn(o){return atob(o).length}function Yrn(o){var a=o.data;if(!a)return o;var u={length:Xrn(a),digest:o.digest,type:o.type};return u}function pP(o){if(!o._attachments||Object.keys(o._attachments).length===0)return o;var a=Kd(o);return a._attachments={},Object.entries(o._attachments).forEach(([u,f])=>{a._attachments[u]=Yrn(f)}),a}function j7(o){return Object.assign({},o,{_meta:Kd(o._meta)})}function Efe(o,a,u){Vp.deepFreezeWhenDevMode(u);var f=XT(a.schema.primaryKey),d={originalStorageInstance:a,schema:a.schema,internals:a.internals,collectionName:a.collectionName,databaseName:a.databaseName,options:a.options,async bulkWrite(w,O){for(var q=o.token,K=new Array(w.length),le=Fb(),ye=0;ye<w.length;ye++){var Be=w[ye],ce=j7(Be.document);ce._meta.lwt=le;var mt=Be.previous;ce._rev=LH(q,mt),K[ye]={document:ce,previous:mt}}Om("preStorageWrite",{storageInstance:this.originalStorageInstance,rows:K});var Re=await o.lockedRun(()=>a.bulkWrite(K,O)),Ge={error:[]};BCt.set(Ge,K);var _r=Re.error.length===0?[]:Re.error.filter(sn=>sn.status===409&&!sn.writeRow.previous&&!sn.writeRow.document._deleted&&xp(sn.documentInDb)._deleted?!0:(Ge.error.push(sn),!1));if(_r.length>0){var jr=new Set,si=_r.map(sn=>(jr.add(sn.documentId),{previous:sn.documentInDb,document:Object.assign({},sn.writeRow.document,{_rev:LH(o.token,sn.documentInDb)})})),Oi=await o.lockedRun(()=>a.bulkWrite(si,O));eP(Ge.error,Oi.error);var ys=ik(f,K,Ge,jr),ns=ik(f,si,Oi);return eP(ys,ns),Ge}return Ge},query(w){return o.lockedRun(()=>a.query(w))},count(w){return o.lockedRun(()=>a.count(w))},findDocumentsById(w,O){return o.lockedRun(()=>a.findDocumentsById(w,O))},getAttachmentData(w,O,q){return o.lockedRun(()=>a.getAttachmentData(w,O,q))},getChangedDocumentsSince:a.getChangedDocumentsSince?(w,O)=>o.lockedRun(()=>a.getChangedDocumentsSince(xp(w),O)):void 0,cleanup(w){return o.lockedRun(()=>a.cleanup(w))},remove(){return o.storageInstances.delete(d),o.lockedRun(()=>a.remove())},close(){return o.storageInstances.delete(d),o.lockedRun(()=>a.close())},changeStream(){return a.changeStream()}};return o.storageInstances.add(d),d}function LCt(o){if(o.schema.keyCompression)throw mo("UT5",{args:{params:o}});if(Zrn(o.schema))throw mo("UT6",{args:{params:o}});if(o.schema.attachments&&o.schema.attachments.compression)throw mo("UT7",{args:{params:o}})}function Zrn(o){return!!(o.encrypted&&o.encrypted.length>0||o.attachments&&o.attachments.encrypted)}function ik(o,a,u,f){return yh(enn,u,()=>{var d=[],w=BCt.get(u);if(w||(w=a),u.error.length>0||f){for(var O=f||new Set,q=0;q<u.error.length;q++){var K=u.error[q];O.add(K.documentId)}for(var le=0;le<w.length;le++){var ye=w[le].document;O.has(ye[o])||d.push(pP(ye))}}else{d.length=a.length-u.error.length;for(var Be=0;Be<w.length;Be++){var ce=w[Be].document;d[Be]=pP(ce)}}return d})}var RCt,BCt,enn,ak=mi(()=>{Ab();ng();Qw();O_();Kw();RCt="_rxdb_internal";BCt=new WeakMap,enn=new WeakMap});function c5e(o){var a=async u=>{var f=rpt(u);f._deleted=u._deleted;var d=await o(f),w=Object.assign({},d,{_meta:u._meta,_attachments:u._attachments,_rev:u._rev,_deleted:typeof d._deleted<"u"?d._deleted:u._deleted});return typeof w._deleted>"u"&&(w._deleted=!1),w};return a}function tnn(o){var a=o[0],u=s7(a._rev);return o.forEach(f=>{var d=s7(f._rev);d>u&&(a=f,u=d)}),a}var qCt,l5e=mi(()=>{ng();O_();ak();qCt=function(){function o(u,f,d,w){this.queueByDocId=new Map,this.isRunning=!1,this.storageInstance=u,this.primaryPath=f,this.preWrite=d,this.postWrite=w}var a=o.prototype;return a.addWrite=function(f,d){var w=f[this.primaryPath],O=yh(this.queueByDocId,w,()=>[]),q=new Promise((K,le)=>{var ye={lastKnownDocumentState:f,modifier:d,resolve:K,reject:le};xp(O).push(ye),this.triggerRun()});return q},a.triggerRun=async function(){if(!(this.isRunning===!0||this.queueByDocId.size===0)){this.isRunning=!0;var f=[],d=this.queueByDocId;this.queueByDocId=new Map,await Promise.all(Array.from(d.entries()).map(async([O,q])=>{var K=tnn(q.map(Be=>Be.lastKnownDocumentState)),le=K;for(var ye of q)try{le=await ye.modifier(QT(le))}catch(Be){ye.reject(Be),ye.reject=()=>{},ye.resolve=()=>{}}try{await this.preWrite(le,K)}catch(Be){q.forEach(ce=>ce.reject(Be));return}f.push({previous:K,document:le})}));var w=f.length>0?await this.storageInstance.bulkWrite(f,"incremental-write"):{error:[]};return await Promise.all(ik(this.primaryPath,f,w).map(O=>{var q=O[this.primaryPath];this.postWrite(O);var K=l7(d,q);K.forEach(le=>le.resolve(O))})),w.error.forEach(O=>{var q=O.documentId,K=l7(d,q),le=Uoe(O);if(le){var ye=yh(this.queueByDocId,q,()=>[]);K.reverse().forEach(ce=>{ce.lastKnownDocumentState=xp(le.documentInDb),xp(ye).unshift(ce)})}else{var Be=$oe(O);K.forEach(ce=>ce.reject(Be))}}),this.isRunning=!1,this.triggerRun()}},o}()});function JCt(o=qG){var a=function(f,d){this.collection=f,this._data=d,this._propertyCache=new Map,this.isInstanceOfRxDocument=!0};return a.prototype=o,a}function zCt(o,a,u){var f=new o(a,u);return Om("createRxDocument",f),f}function u5e(o,a,u){return a._meta=Object.assign({},u._meta,a._meta),Vp.isDevMode()&&o.schema.validateChange(u,a),o._runHooks("pre","save",a,u)}function WCt(o,a){return yh(o._propertyCache,a,()=>{var u=oO(o._data,a);if(typeof u!="object"||u===null||Array.isArray(u))return Vp.deepFreezeWhenDevMode(u);var f=new Proxy(Kd(u),{get(d,w){if(typeof w!="string")return d[w];var O=w.charAt(w.length-1);if(O==="$")if(w.endsWith("$$")){var q=w.slice(0,-2);return o.get$$(c7(a+"."+q))}else{var K=w.slice(0,-1);return o.get$(c7(a+"."+K))}else if(O==="_"){var le=w.slice(0,-1);return o.populate(c7(a+"."+le))}else{var ye=d[w];return typeof ye=="number"||typeof ye=="string"||typeof ye=="boolean"?ye:WCt(o,c7(a+"."+w))}}});return f})}var h0,qG,JG=mi(()=>{h0=Ea(D9(),1);O_();ng();Kw();O9();Ab();Qw();ak();l5e();qG={get primaryPath(){var o=this;if(o.isInstanceOfRxDocument)return o.collection.schema.primaryPath},get primary(){var o=this;if(o.isInstanceOfRxDocument)return o._data[o.primaryPath]},get revision(){var o=this;if(o.isInstanceOfRxDocument)return o._data._rev},get deleted$(){var o=this;if(o.isInstanceOfRxDocument)return o.$.pipe((0,h0.map)(a=>a._data._deleted))},get deleted$$(){var o=this,a=o.collection.database.getReactivityFactory();return a.fromObservable(o.deleted$,o.getLatest().deleted,o.collection.database)},get deleted(){var o=this;if(o.isInstanceOfRxDocument)return o._data._deleted},getLatest(){var o=this.collection._docCache.getLatestDocumentData(this.primary);return this.collection._docCache.getCachedRxDocument(o)},get $(){var o=this,a=this.primary;return o.collection.eventBulks$.pipe((0,h0.filter)(u=>!u.isLocal),(0,h0.map)(u=>u.events.find(f=>f.documentId===a)),(0,h0.filter)(u=>!!u),(0,h0.map)(u=>L_t(xp(u))),(0,h0.startWith)(o.collection._docCache.getLatestDocumentData(a)),(0,h0.distinctUntilChanged)((u,f)=>u._rev===f._rev),(0,h0.map)(u=>this.collection._docCache.getCachedRxDocument(u)),(0,h0.shareReplay)(Koe))},get $$(){var o=this,a=o.collection.database.getReactivityFactory();return a.fromObservable(o.$,o.getLatest()._data,o.collection.database)},get$(o){if(Vp.isDevMode()){if(o.includes(".item."))throw mo("DOC1",{path:o});if(o===this.primaryPath)throw mo("DOC2");if(this.collection.schema.finalFields.includes(o))throw mo("DOC3",{path:o});var a=cO(this.collection.schema.jsonSchema,o);if(!a)throw mo("DOC4",{path:o})}return this.$.pipe((0,h0.map)(u=>oO(u,o)),(0,h0.distinctUntilChanged)())},get$$(o){var a=this.get$(o),u=this.collection.database.getReactivityFactory();return u.fromObservable(a,this.getLatest().get(o),this.collection.database)},populate(o){var a=cO(this.collection.schema.jsonSchema,o),u=this.get(o);if(!u)return gpt;if(!a)throw mo("DOC5",{path:o});if(!a.ref)throw mo("DOC6",{path:o,schemaObj:a});var f=this.collection.database.collections[a.ref];if(!f)throw mo("DOC7",{ref:a.ref,path:o,schemaObj:a});return a.type==="array"?f.findByIds(u).exec().then(d=>{var w=d.values();return Array.from(w)}):f.findOne(u).exec()},get(o){return WCt(this,o)},toJSON(o=!1){if(o)return Vp.deepFreezeWhenDevMode(this._data);var a=Kd(this._data);return delete a._rev,delete a._attachments,delete a._deleted,delete a._meta,Vp.deepFreezeWhenDevMode(a)},toMutableJSON(o=!1){return QT(this.toJSON(o))},update(o){throw Mp("update")},incrementalUpdate(o){throw Mp("update")},updateCRDT(o){throw Mp("crdt")},putAttachment(){throw Mp("attachments")},putAttachmentBase64(){throw Mp("attachments")},getAttachment(){throw Mp("attachments")},allAttachments(){throw Mp("attachments")},get allAttachments$(){throw Mp("attachments")},async modify(o,a){var u=this._data,f=await c5e(o)(u);return this._saveData(f,u)},incrementalModify(o,a){return this.collection.incrementalWriteQueue.addWrite(this._data,c5e(o)).then(u=>this.collection._docCache.getCachedRxDocument(u))},patch(o){var a=this._data,u=QT(a);return Object.entries(o).forEach(([f,d])=>{u[f]=d}),this._saveData(u,a)},incrementalPatch(o){return this.incrementalModify(a=>(Object.entries(o).forEach(([u,f])=>{a[u]=f}),a))},async _saveData(o,a){if(o=Kd(o),this._data._deleted)throw mo("DOC11",{id:this.primary,document:this});await u5e(this.collection,o,a);var u=[{previous:a,document:o}],f=await this.collection.storageInstance.bulkWrite(u,"rx-document-save-data"),d=f.error[0];return rB(this.collection,this.primary,o,d),await this.collection._runHooks("post","save",o,this),this.collection._docCache.getCachedRxDocument(ik(this.collection.schema.primaryPath,u,f)[0])},async remove(){if(this.deleted)return Promise.reject(mo("DOC13",{document:this,id:this.primary}));var o=await this.collection.bulkRemove([this]);if(o.error.length>0){var a=o.error[0];rB(this.collection,this.primary,this._data,a)}return o.success[0]},incrementalRemove(){return this.incrementalModify(async o=>(await this.collection._runHooks("pre","remove",o,this),o._deleted=!0,o)).then(async o=>(await this.collection._runHooks("post","remove",o._data,o),o))},close(){throw mo("DOC14")}}});function Dfe(o){return o[o.length-1]}function rnn(o){let a=typeof o;return o!==null&&(a==="object"||a==="function")}function p5e(o,a,u){if(Array.isArray(a)&&(a=a.join(".")),!rnn(o)||typeof a!="string")return u===void 0?o:u;let f=a.split(".");if(f.length===0)return u;for(let d=0;d<f.length;d++){let w=f[d];if(nnn(o,w)?o=d===f.length-1?void 0:null:o=o[w],o==null){if(d!==f.length-1)return u;break}}return o===void 0?u:o}function nnn(o,a){if(typeof a!="number"&&Array.isArray(o)){let u=Number.parseInt(a,10);return Number.isInteger(u)&&o[u]===o[a]}return!1}var f5e=mi(()=>{});var _5e,UCt,$Ct,VCt,HCt,GCt,KCt,QCt,XCt,YCt,ZCt,ePt,tPt,rPt,nPt,iPt,aPt,sPt,d5e=mi(()=>{f5e();_5e=o=>!!o.queryParams.limit,UCt=o=>o.queryParams.limit===1,$Ct=o=>!!(o.queryParams.skip&&o.queryParams.skip>0),VCt=o=>o.changeEvent.operation==="DELETE",HCt=o=>o.changeEvent.operation==="INSERT",GCt=o=>o.changeEvent.operation==="UPDATE",KCt=o=>_5e(o)&&o.previousResults.length>=o.queryParams.limit,QCt=o=>{let a=o.queryParams.sortFields,u=o.changeEvent.previous,f=o.changeEvent.doc;if(!f)return!1;if(!u)return!0;for(let d=0;d<a.length;d++){let w=a[d],O=p5e(u,w),q=p5e(f,w);if(O!==q)return!0}return!1},XCt=o=>{let a=o.changeEvent.id;if(o.keyDocumentMap)return o.keyDocumentMap.has(a);{let u=o.queryParams.primaryKey,f=o.previousResults;for(let d=0;d<f.length;d++)if(f[d][u]===a)return!0;return!1}},YCt=o=>{let a=o.previousResults[0];return!!(a&&a[o.queryParams.primaryKey]===o.changeEvent.id)},ZCt=o=>{let a=Dfe(o.previousResults);return!!(a&&a[o.queryParams.primaryKey]===o.changeEvent.id)},ePt=o=>{let a=o.changeEvent.previous;if(!a)return!1;let u=o.previousResults[0];return u?u[o.queryParams.primaryKey]===o.changeEvent.id?!0:o.queryParams.sortComparator(a,u)<0:!1},tPt=o=>{let a=o.changeEvent.previous;if(!a)return!1;let u=Dfe(o.previousResults);return u?u[o.queryParams.primaryKey]===o.changeEvent.id?!0:o.queryParams.sortComparator(a,u)>0:!1},rPt=o=>{let a=o.changeEvent.doc;if(!a)return!1;let u=o.previousResults[0];return u?u[o.queryParams.primaryKey]===o.changeEvent.id?!0:o.queryParams.sortComparator(a,u)<0:!1},nPt=o=>{let a=o.changeEvent.doc;if(!a)return!1;let u=Dfe(o.previousResults);return u?u[o.queryParams.primaryKey]===o.changeEvent.id?!0:o.queryParams.sortComparator(a,u)>0:!1},iPt=o=>{let a=o.changeEvent.previous;return a?o.queryParams.queryMatcher(a):!1},aPt=o=>{let a=o.changeEvent.doc;return a?o.queryParams.queryMatcher(a):!1},sPt=o=>o.previousResults.length===0});var oPt,m5e=mi(()=>{d5e();d5e();oPt={0:HCt,1:GCt,2:VCt,3:_5e,4:UCt,5:$Ct,6:sPt,7:KCt,8:YCt,9:ZCt,10:QCt,11:XCt,12:ePt,13:tPt,14:rPt,15:nPt,16:iPt,17:aPt}});function cPt(o,a,u,f){var d=o.length,w=d-1,O=0;if(d===0)return o.push(a),0;for(var q;f<=w;)O=f+(w-f>>1),q=o[O],u(q,a)<=0?f=O+1:w=O-1;return u(q,a)<=0&&O++,o.splice(O,0,a),O}var lPt=mi(()=>{});var uPt,Ofe,Nfe,Afe,Ife,pPt,fPt,_Pt,dPt,g5e,mPt,gPt,h5e,hPt,yPt,vPt,y5e=mi(()=>{lPt();uPt=o=>{},Ofe=o=>{o.previousResults.unshift(o.changeEvent.doc),o.keyDocumentMap&&o.keyDocumentMap.set(o.changeEvent.id,o.changeEvent.doc)},Nfe=o=>{o.previousResults.push(o.changeEvent.doc),o.keyDocumentMap&&o.keyDocumentMap.set(o.changeEvent.id,o.changeEvent.doc)},Afe=o=>{let a=o.previousResults.shift();o.keyDocumentMap&&a&&o.keyDocumentMap.delete(a[o.queryParams.primaryKey])},Ife=o=>{let a=o.previousResults.pop();o.keyDocumentMap&&a&&o.keyDocumentMap.delete(a[o.queryParams.primaryKey])},pPt=o=>{Afe(o),Nfe(o)},fPt=o=>{Ife(o),Ofe(o)},_Pt=o=>{Afe(o),Ofe(o)},dPt=o=>{Ife(o),Nfe(o)},g5e=o=>{o.keyDocumentMap&&o.keyDocumentMap.delete(o.changeEvent.id);let a=o.queryParams.primaryKey,u=o.previousResults;for(let f=0;f<u.length;f++)if(u[f][a]===o.changeEvent.id){u.splice(f,1);break}},mPt=o=>{let a=o.changeEvent.doc,u=o.queryParams.primaryKey,f=o.previousResults;for(let d=0;d<f.length;d++)if(f[d][u]===o.changeEvent.id){f[d]=a,o.keyDocumentMap&&o.keyDocumentMap.set(o.changeEvent.id,a);break}},gPt=o=>{let a={_id:"wrongHuman"+new Date().getTime()};o.previousResults.length=0,o.previousResults.push(a),o.keyDocumentMap&&(o.keyDocumentMap.clear(),o.keyDocumentMap.set(a._id,a))},h5e=o=>{let a=o.changeEvent.id,u=o.changeEvent.doc;if(o.keyDocumentMap){if(o.keyDocumentMap.has(a))return;o.keyDocumentMap.set(a,u)}else if(o.previousResults.find(d=>d[o.queryParams.primaryKey]===a))return;cPt(o.previousResults,u,o.queryParams.sortComparator,0)},hPt=o=>{g5e(o),h5e(o)},yPt=o=>{throw new Error("Action runFullQueryAgain must be implemented by yourself")},vPt=o=>{throw new Error("Action unknownAction should never be called")}});var bPt,xPt,v5e=mi(()=>{y5e();y5e();bPt=["doNothing","insertFirst","insertLast","removeFirstItem","removeLastItem","removeFirstInsertLast","removeLastInsertFirst","removeFirstInsertFirst","removeLastInsertLast","removeExisting","replaceExisting","alwaysWrong","insertAtSortPosition","removeExistingAndInsertAtSortPosition","runFullQueryAgain","unknownAction"],xPt={doNothing:uPt,insertFirst:Ofe,insertLast:Nfe,removeFirstItem:Afe,removeLastItem:Ife,removeFirstInsertLast:pPt,removeLastInsertFirst:fPt,removeFirstInsertFirst:_Pt,removeLastInsertLast:dPt,removeExisting:g5e,replaceExisting:mPt,alwaysWrong:gPt,insertAtSortPosition:h5e,removeExistingAndInsertAtSortPosition:hPt,runFullQueryAgain:yPt,unknownAction:vPt}});function Ffe(o){return o.charCodeAt(0)-40}var b5e=mi(()=>{});var SPt=mi(()=>{});function TPt(o){return o?"1":"0"}function inn(o=6){let a="",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",f=u.length;for(let d=0;d<o;d++)a+=u.charAt(Math.floor(Math.random()*f));return a}function x5e(o,a){let u=[];for(let f=0,d=o.length;f<d;f+=a)u.push(o.substring(f,f+a));return u}var hxn,Mfe=mi(()=>{hxn=inn(4)});function wPt(o){let a=new Map,f=2+parseInt(o.charAt(0)+o.charAt(1),10)*2,d=o.substring(2,f),w=x5e(d,2);for(let Ge=0;Ge<w.length;Ge++){let _r=w[Ge],jr=_r.charAt(0),si=Ffe(_r.charAt(1));a.set(jr,si)}let O=o.substring(f,o.length-3),q=x5e(O,4);for(let Ge=0;Ge<q.length;Ge++){let _r=q[Ge],jr=_r.charAt(0),si=_r.charAt(1),Oi=_r.charAt(2),ys=Ffe(_r.charAt(3));if(!a.has(si))throw new Error("missing node with id "+si);if(!a.has(Oi))throw new Error("missing node with id "+Oi);let ns=a.get(si),sn=a.get(Oi),Ir={l:ys,0:ns,1:sn};a.set(jr,Ir)}let K=o.slice(-3),le=K.charAt(0),ye=K.charAt(1),Be=Ffe(K.charAt(2)),ce=a.get(le),mt=a.get(ye);return{l:Be,0:ce,1:mt}}var kPt=mi(()=>{Mfe();b5e()});function CPt(o,a,u){let f=o,d=o.l;for(;;){let w=a[d](u),O=TPt(w);if(f=f[O],typeof f=="number"||typeof f=="string")return f;d=f.l}}var PPt=mi(()=>{Mfe()});var EPt=mi(()=>{});var DPt=mi(()=>{SPt();kPt();PPt();b5e();EPt()});var OPt=mi(()=>{});var NPt=mi(()=>{});var APt=mi(()=>{});var IPt=mi(()=>{});var FPt=mi(()=>{});var MPt=mi(()=>{});var RPt=mi(()=>{});var jPt=mi(()=>{});var LPt=mi(()=>{});var BPt=mi(()=>{});var qPt=mi(()=>{});var JPt=mi(()=>{DPt();NPt();APt();jPt();LPt();BPt();OPt();MPt();RPt();qPt();FPt();IPt();Mfe()});function snn(){return S5e||(S5e=wPt(ann)),S5e}var ann,S5e,zPt,WPt=mi(()=>{JPt();m5e();ann="14a1b,c+d2e5f0g/h.i4j*k-l)m(n6oeh6pnm6qen6ril6snh6tin6ubo9vce9wmh9xns9yne9zmi9{cm9|ad9}cp9~aq9\x7Fae9\xA1bf9\xA2bq9\xA3cg9\xA4ck9\xA5cn9\xA6nd9\xA7np9\xA8nq9\xA9nf9\xAAng9\xABnm9\xACnk9\xADmr9\xAEms9\xAFmt9\xB0mj9\xB1mk9\xB2ml9\xB3mn9\xB4mc8\xB5\xB3{8\xB6\xAF}8\xB7\xB0\xA48\xB8\xB3\xA78\xB9mn8\xBA\xB3\xAB8\xBB\xB3m8\xBCm\xB44\xBDz\xB24\xBE\xB3w4\xBFz\xB54\xC0\xAF\xB64\xC1\xB0\xB74\xC2\xB3\xBA4\xC3\xB3\xB84\xC4m\xB94\xC5v\xA47\xC6yn7\xC7\xC0\xC17\xC8~\x7F7\xC9\xA5\xA47\xCA\xC3\xC47\xCB\xA8n7\xCC\xBA\xB97\xCD\xAD\xB07\xCE\xAEm7\xCF\xAF\xB07\xD0\xB1m7\xD1\xB3m7\xD2\xBCm5\xD3\xC4m5\xD4\xB9m5\xD5\xBD\xB05\xD6\xBEm5\xD7\xBF\xB05\xD8\xC7\xCF5\xD9\xC2m5\xDA\xCA\xD15\xDB\xB1m5\xDC\xBAm5\xDD\xCC\xD15\xDE\xD5\xCD2\xDF|\x7F2\xE0\xA1u2\xE1\xA3\xC52\xE2\xD6\xCE2\xE3\xA6\xC62\xE4\xA9x2\xE5\xAA\xC62\xE6\xD7\xD82\xE7|\xC82\xE8\xA1\xA22\xE9\xA3\xC92\xEA\xA4\xA52\xEB\xD9\xDA2\xEC\xA6\xCB2\xED\xA9n2\xEE\xAAn2\xEF\xDB\xD02\xF0\xDC\xDD2\xF1\xACn2\xF2\xD2\xD3/\xF3an/\xF4bn/\xF5cn/\xF6\xDE\xE2/\xF7\xDF\xE3/\xF8\xE0\xE4/\xF9\xE1\xE5/\xFA\xE6\xEB/\xFB\xE7\xEC/\xFC\xE8\xED/\xFD\xE9\xEE/\xFE\xCD\xCE/\xFF\xCF\xD1/\u0100\xF2\xD4,\u0101cn,\u0102\xF6\xEF,\u0103\xA4\xF1,\u0104\xFA\xF0,\u0105\xEA\xF1,\u0106\xFE\xD0,\u0107\xFF\xD1,\u0108ac0\u0109bc0\u010A\xF3\xF50\u010B\xF4\u01010\u010C\xDF\xE10\u010D\xE0\xA40\u010E\xE7\xE90\u010F\xE8\xEA0\u0110\xF7\xF90\u0111\xF8\u01030\u0112\xFB\xFD0\u0113\xFC\u01050\u0114m\xD2-\u0115m\u0100-\u0116\xDE\xE6-\u0117\u010C\u010E-\u0118\u010D\u010F-\u0119\u0102\u0104-\u011A\u0110\u0112-\u011B\u0111\u0113-\u011C\xB2\xBB-\u011D\xCD\xCF-\u011E\u0106\u0107-\u011F\xB2\xB3-\u0120\u0114\u01083\u0121\u0115\u010A3\u0122\u0116\u01173\u0123\u0119\u011A3\u0124\u0122\u011D(\u0125\u011C\u011F(\u0126\u0123\u011E(\u0127\u0120\u0121+\u0128\u0109\u010B+\u0129\u0124\u0126+\u012A\u0118\u011B+\u012B\u0127\u01281\u012C\u0129\u012A1\u012D\u012C\u012B*\u012E\u0125m*\u012D\u012E.";zPt=o=>CPt(snn(),oPt,o)});function UPt(o){let a=zPt(o);return bPt[a]}function $Pt(o,a,u,f,d){let w=xPt[o];return w({queryParams:a,changeEvent:u,previousResults:f,keyDocumentMap:d}),f}var VPt=mi(()=>{v5e();WPt();m5e();f5e();v5e()});function onn(o,a){return!a.sort||a.sort.length===0?[o]:a.sort.map(u=>Object.keys(u)[0])}function lnn(o){return yh(cnn,o,()=>{var a=o.collection,u=Y9(a.storageInstance.schema,QT(o.mangoQuery)),f=a.schema.primaryPath,d=Cfe(a.schema.jsonSchema,u),w=(le,ye)=>{var Be={docA:le,docB:ye,rxQuery:o};return d(Be.docA,Be.docB)},O=Z9(a.schema.jsonSchema,u),q=le=>{var ye={doc:le,rxQuery:o};return O(ye.doc)},K={primaryKey:o.collection.schema.primaryPath,skip:u.skip,limit:u.limit,sortFields:onn(f,u),sortComparator:w,queryMatcher:q};return K})}function HPt(o,a){if(!o.collection.database.eventReduce)return{runFullQueryAgain:!0};for(var u=lnn(o),f=xp(o._result).docsData.slice(0),d=xp(o._result).docsDataMap,w=!1,O=[],q=0;q<a.length;q++){var K=a[q],le=B_t(K);le&&O.push(le)}var ye=O.find(Be=>{var ce={queryParams:u,changeEvent:Be,previousResults:f,keyDocumentMap:d},mt=UPt(ce);if(mt==="runFullQueryAgain")return!0;if(mt!=="doNothing")return w=!0,$Pt(mt,u,Be,f,d),!1});return ye?{runFullQueryAgain:!0}:{runFullQueryAgain:!1,changed:w,newResults:f}}var cnn,GPt=mi(()=>{VPt();O9();O_();tB();cnn=new WeakMap});function QPt(){return new unn}function KPt(o,a){a.uncached=!0;var u=a.toString();o._map.delete(u)}function pnn(o){return o.refCount$.observers.length}function XPt(o){T5e.has(o)||(T5e.add(o),dpt().then(()=>hpt(200)).then(()=>{o.closed||o.cacheReplacementPolicy(o,o._queryCache),T5e.delete(o)}))}var unn,fnn,_nn,dnn,w5e,T5e,Rfe=mi(()=>{O_();unn=function(){function o(){this._map=new Map}var a=o.prototype;return a.getByQuery=function(f){var d=f.toString(),w=yh(this._map,d,()=>f);return w},o}();fnn=100,_nn=30*1e3,dnn=(o,a)=>(u,f)=>{if(!(f._map.size<o)){var d=Fb()-a,w=[],O=Array.from(f._map.values());for(var q of O)if(!(pnn(q)>0)){if(q._lastEnsureEqual===0&&q._creationTime<d){KPt(f,q);continue}w.push(q)}var K=w.length-o;if(!(K<=0)){var le=w.sort((Be,ce)=>Be._lastEnsureEqual-ce._lastEnsureEqual),ye=le.slice(0,K);ye.forEach(Be=>KPt(f,Be))}}},w5e=dnn(fnn,_nn),T5e=new WeakSet});function YPt(o){var a=o.primaryPath,u=o.cacheItemByDocId,f=o.registry,d=Vp.deepFreezeWhenDevMode,w=o.documentCreator,O=q=>{for(var K=new Array(q.length),le=[],ye=0;ye<q.length;ye++){var Be=q[ye],ce=Be[a],mt=s7(Be._rev),Re=void 0,Ge=void 0,_r=u.get(ce);_r?(Re=_r[0],Ge=Re.get(mt+Be._meta.lwt+"")):(Re=new Map,_r=[Re,Be],u.set(ce,_r));var jr=Ge?Ge.deref():void 0;jr||(Be=d(Be),jr=w(Be),Re.set(mt+Be._meta.lwt+"",gnn(jr)),f&&le.push(jr)),K[ye]=jr}return le.length>0&&f&&(o.tasks.add(()=>{for(var si=0;si<le.length;si++){var Oi=le[si];f.register(Oi,{docId:Oi.primary,revisionHeight:s7(Oi.revision),lwt:Oi._data._meta.lwt})}}),o.tasks.size<=1&&VL().then(()=>{o.processTasks()})),K};return O}function zG(o,a){var u=o.getCachedRxDocuments;return u(a)}function hnn(o){return new WeakRef(o)}function ynn(o){return{deref(){return o}}}var ZPt,eEt,mnn,gnn,k5e=mi(()=>{ZPt=Ea(k6(),1);O_();Ab();eEt=function(){function o(u,f,d){this.cacheItemByDocId=new Map,this.tasks=new Set,this.registry=typeof FinalizationRegistry=="function"?new FinalizationRegistry(w=>{var O=w.docId,q=this.cacheItemByDocId.get(O);q&&(q[0].delete(w.revisionHeight+w.lwt+""),q[0].size===0&&this.cacheItemByDocId.delete(O))}):void 0,this.primaryPath=u,this.changes$=f,this.documentCreator=d,f.subscribe(w=>{this.tasks.add(()=>{for(var O=this.cacheItemByDocId,q=0;q<w.length;q++){var K=w[q],le=O.get(K.documentId);if(le){var ye=K.documentData;ye||(ye=K.previousDocumentData),le[1]=ye}}}),this.tasks.size<=1&&VL().then(()=>{this.processTasks()})})}var a=o.prototype;return a.processTasks=function(){if(this.tasks.size!==0){var f=Array.from(this.tasks);f.forEach(d=>d()),this.tasks.clear()}},a.getLatestDocumentData=function(f){this.processTasks();var d=l7(this.cacheItemByDocId,f);return d[1]},a.getLatestDocumentDataIfExists=function(f){this.processTasks();var d=this.cacheItemByDocId.get(f);if(d)return d[1]},(0,ZPt.default)(o,[{key:"getCachedRxDocuments",get:function(){var u=YPt(this);return cS(this,"getCachedRxDocuments",u)}},{key:"getCachedRxDocument",get:function(){var u=YPt(this);return cS(this,"getCachedRxDocument",f=>u([f])[0])}}])}();mnn=typeof WeakRef=="function",gnn=mnn?hnn:ynn});var tEt,C5e,P5e=mi(()=>{tEt=Ea(k6(),1);k5e();O_();ng();C5e=function(){function o(u,f,d){this.time=Fb(),this.query=u,this.count=d,this.documents=zG(this.query.collection._docCache,f)}var a=o.prototype;return a.getValue=function(f){var d=this.query.op;if(d==="count")return this.count;if(d==="findOne"){var w=this.documents.length===0?null:this.documents[0];if(!w&&f)throw mo("QU10",{collection:this.query.collection.name,query:this.query.mangoQuery,op:d});return w}else return d==="findByIds"?this.docsMap:this.documents.slice(0)},(0,tEt.default)(o,[{key:"docsData",get:function(){return cS(this,"docsData",this.documents.map(u=>u._data))}},{key:"docsDataMap",get:function(){var u=new Map;return this.documents.forEach(f=>{u.set(f.primary,f._data)}),cS(this,"docsDataMap",u)}},{key:"docsMap",get:function(){for(var u=new Map,f=this.documents,d=0;d<f.length;d++){var w=f[d];u.set(w.primary,w)}return cS(this,"docsMap",u)}}])}()});function WG(){return{selector:{}}}function xnn(o){return o.collection._queryCache.getByQuery(o)}function sI(o,a,u,f){Om("preCreateRxQuery",{op:o,queryObj:a,collection:u,other:f});var d=new E5e(o,a,u,f);return d=xnn(d),XPt(u),d}function iEt(o){var a=o.asRxQuery.collection._changeEventBuffer.getCounter();return o._latestChangeEvent>=a}async function rEt(o){return o.collection.awaitBeforeReads.size>0&&await Promise.all(Array.from(o.collection.awaitBeforeReads).map(a=>a())),o.collection.database.closed||iEt(o)?!1:(o._ensureEqualQueue=o._ensureEqualQueue.then(()=>Snn(o)),o._ensureEqualQueue)}function Snn(o){if(o._lastEnsureEqual=Fb(),o.collection.database.closed||iEt(o))return tP;var a=!1,u=!1;if(o._latestChangeEvent===-1&&(u=!0),!u){var f=o.asRxQuery.collection._changeEventBuffer.getFrom(o._latestChangeEvent+1);if(f===null)u=!0;else{o._latestChangeEvent=o.asRxQuery.collection._changeEventBuffer.getCounter();var d=o.asRxQuery.collection._changeEventBuffer.reduceByLastOfDoc(f);if(o.op==="count"){var w=xp(o._result).count,O=w;d.forEach(K=>{var le=K.previousDocumentData&&o.doesDocumentDataMatch(K.previousDocumentData),ye=o.doesDocumentDataMatch(K.documentData);!le&&ye&&O++,le&&!ye&&O--}),O!==w&&(a=!0,o._setResultData(O))}else{var q=HPt(o,d);q.runFullQueryAgain?u=!0:q.changed&&(a=!0,o._setResultData(q.newResults))}}}return u?o._execOverDatabase().then(K=>(o._latestChangeEvent=o.collection._changeEventBuffer.getCounter(),typeof K=="number"?((!o._result||K!==o._result.count)&&(a=!0,o._setResultData(K)),a):((!o._result||!npt(o.collection.schema.primaryPath,K,o._result.docsData))&&(a=!0,o._setResultData(K)),a))):Promise.resolve(a)}async function Tnn(o){var a=[],u=o.collection;if(o.isFindOneByIdQuery)if(Array.isArray(o.isFindOneByIdQuery)){var f=o.isFindOneByIdQuery;if(f=f.filter(ye=>{var Be=o.collection._docCache.getLatestDocumentDataIfExists(ye);return Be?(Be._deleted||a.push(Be),!1):!0}),f.length>0){var d=await u.storageInstance.findDocumentsById(f,!1);eP(a,d)}}else{var w=o.isFindOneByIdQuery,O=o.collection._docCache.getLatestDocumentDataIfExists(w);if(!O){var q=await u.storageInstance.findDocumentsById([w],!1);q[0]&&(O=q[0])}O&&!O._deleted&&a.push(O)}else{var K=o.getPreparedQuery(),le=await u.storageInstance.query(K);a=le.documents}return a}function wnn(o,a){if(!a.skip&&a.selector&&Object.keys(a.selector).length===1&&a.selector[o]){var u=a.selector[o];if(typeof u=="string")return u;if(Object.keys(u).length===1&&typeof u.$eq=="string"||Object.keys(u).length===1&&Array.isArray(u.$eq)&&!u.$eq.find(f=>typeof f!="string"))return u.$eq}return!1}var nEt,jfe,m1,vnn,bnn,E5e,UG=mi(()=>{nEt=Ea(k6(),1),jfe=Ea(q9(),1),m1=Ea(D9(),1);O_();ng();Kw();GPt();Rfe();tB();P5e();vnn=0,bnn=function(){return++vnn},E5e=function(){function o(u,f,d,w={}){this.id=bnn(),this._execOverDatabaseCount=0,this._creationTime=Fb(),this._lastEnsureEqual=0,this.uncached=!1,this.refCount$=new jfe.BehaviorSubject(null),this._result=null,this._latestChangeEvent=-1,this._ensureEqualQueue=tP,this.op=u,this.mangoQuery=f,this.collection=d,this.other=w,f||(this.mangoQuery=WG()),this.isFindOneByIdQuery=wnn(this.collection.schema.primaryPath,f)}var a=o.prototype;return a._setResultData=function(f){if(typeof f>"u")throw mo("QU18",{database:this.collection.database.name,collection:this.collection.name});if(typeof f=="number"){this._result=new C5e(this,[],f);return}else f instanceof Map&&(f=Array.from(f.values()));var d=new C5e(this,f,f.length);this._result=d},a._execOverDatabase=async function(){if(this._execOverDatabaseCount=this._execOverDatabaseCount+1,this.op==="count"){var f=this.getPreparedQuery(),d=await this.collection.storageInstance.count(f);if(d.mode==="slow"&&!this.collection.database.allowSlowCount)throw mo("QU14",{collection:this.collection,queryObj:this.mangoQuery});return d.count}if(this.op==="findByIds"){var w=xp(this.mangoQuery.selector)[this.collection.schema.primaryPath].$in,O=new Map,q=[];if(w.forEach(ye=>{var Be=this.collection._docCache.getLatestDocumentDataIfExists(ye);if(Be){if(!Be._deleted){var ce=this.collection._docCache.getCachedRxDocument(Be);O.set(ye,ce)}}else q.push(ye)}),q.length>0){var K=await this.collection.storageInstance.findDocumentsById(q,!1);K.forEach(ye=>{var Be=this.collection._docCache.getCachedRxDocument(ye);O.set(Be.primary,Be)})}return O}var le=Tnn(this);return le.then(ye=>ye)},a.exec=async function(f){if(f&&this.op!=="findOne")throw mo("QU9",{collection:this.collection.name,query:this.mangoQuery,op:this.op});await rEt(this);var d=xp(this._result);return d.getValue(f)},a.toString=function(){var f=WL({op:this.op,query:Y9(this.collection.schema.jsonSchema,this.mangoQuery),other:this.other},!0),d=JSON.stringify(f);return this.toString=()=>d,d},a.getPreparedQuery=function(){var f={rxQuery:this,mangoQuery:Y9(this.collection.schema.jsonSchema,this.mangoQuery)};f.mangoQuery.selector._deleted={$eq:!1},f.mangoQuery.index&&f.mangoQuery.index.unshift("_deleted"),Om("prePrepareQuery",f);var d=Pfe(this.collection.schema.jsonSchema,f.mangoQuery);return this.getPreparedQuery=()=>d,d},a.doesDocumentDataMatch=function(f){return f._deleted?!1:this.queryMatcher(f)},a.remove=async function(){var f=await this.exec();if(Array.isArray(f)){var d=await this.collection.bulkRemove(f);if(d.error.length>0)throw $oe(d.error[0]);return d.success}else return f.remove()},a.incrementalRemove=function(){return eB(this.asRxQuery,f=>f.incrementalRemove())},a.update=function(f){throw Mp("update")},a.patch=function(f){return eB(this.asRxQuery,d=>d.patch(f))},a.incrementalPatch=function(f){return eB(this.asRxQuery,d=>d.incrementalPatch(f))},a.modify=function(f){return eB(this.asRxQuery,d=>d.modify(f))},a.incrementalModify=function(f){return eB(this.asRxQuery,d=>d.incrementalModify(f))},a.where=function(f){throw Mp("query-builder")},a.sort=function(f){throw Mp("query-builder")},a.skip=function(f){throw Mp("query-builder")},a.limit=function(f){throw Mp("query-builder")},(0,nEt.default)(o,[{key:"$",get:function(){if(!this._$){var u=this.collection.eventBulks$.pipe((0,m1.filter)(f=>!f.isLocal),(0,m1.startWith)(null),(0,m1.mergeMap)(()=>rEt(this)),(0,m1.map)(()=>this._result),(0,m1.shareReplay)(Koe),(0,m1.distinctUntilChanged)((f,d)=>!!(f&&f.time===xp(d).time)),(0,m1.filter)(f=>!!f),(0,m1.map)(f=>xp(f).getValue()));this._$=(0,jfe.merge)(u,this.refCount$.pipe((0,m1.filter)(()=>!1)))}return this._$}},{key:"$$",get:function(){var u=this.collection.database.getReactivityFactory();return u.fromObservable(this.$,void 0,this.collection.database)}},{key:"queryMatcher",get:function(){var u=this.collection.schema.jsonSchema,f=Y9(this.collection.schema.jsonSchema,this.mangoQuery);return cS(this,"queryMatcher",Z9(u,f))}},{key:"asRxQuery",get:function(){return this}}])}()});function Bfe(o,a){return UH(Lfe,{key:o,context:a})}async function qfe(o){var a=Pfe(o.schema,{selector:{context:nB,_deleted:{$eq:!1}},sort:[{id:"asc"}],skip:0}),u=await o.query(a),f=u.documents;return f}async function sEt(o){var a=o7(10),u=o.password?await o.hashFunction(JSON.stringify(o.password)):void 0,f={id:Enn,context:D5e,key:aEt,data:{rxdbVersion:o.rxdbVersion,token:a,instanceToken:o.token,passwordHash:u},_deleted:!1,_meta:UL(),_rev:$L(),_attachments:{}},d=[{document:f}],w=await o.internalStore.bulkWrite(d,"internal-add-storage-token");if(!w.error[0])return ik("id",d,w)[0];var O=xp(w.error[0]);if(O.isError&&Uoe(O)){var q=O;if(!Dnn(q.documentInDb.data.rxdbVersion,o.rxdbVersion))throw mo("DM5",{args:{database:o.name,databaseStateVersion:q.documentInDb.data.rxdbVersion,codeVersion:o.rxdbVersion}});if(u&&u!==q.documentInDb.data.passwordHash)throw mo("DB1",{passwordHash:u,existingPasswordHash:q.documentInDb.data.passwordHash});var K=q.documentInDb;return xp(K)}throw O}function Dnn(o,a){if(!o)return!1;var u=o.split(".")[0],f=a.split(".")[0];return u==="15"&&f==="16"?!0:u===f}function O5e(o,a){return o+"-"+a.version}var nB,D5e,knn,Cnn,Pnn,Lfe,aEt,Enn,Jfe=mi(()=>{ng();Qw();ak();O_();tB();nB="collection",D5e="storage-token",knn="rx-migration-status",Cnn="rx-pipeline-checkpoint",Pnn="RxInternalDocument",Lfe=Yoe({version:0,title:Pnn,primaryKey:{key:"id",fields:["context","key"],separator:"|"},type:"object",properties:{id:{type:"string",maxLength:200},key:{type:"string"},context:{type:"string",enum:[nB,D5e,knn,Cnn,"OTHER"]},data:{type:"object",additionalProperties:!0}},indexes:[],required:["key","context","data"],additionalProperties:!1,sharding:{shards:1,mode:"collection"}});aEt="storageToken",Enn=Bfe(aEt,D5e)});function $G(o,a){return a=Kd(a),a=Mpt(o,a),typeof o.jsonSchema.primaryKey!="string"&&(a=Ipt(o.primaryPath,o.jsonSchema,a)),a._meta=UL(),Object.prototype.hasOwnProperty.call(a,"_deleted")||(a._deleted=!1),Object.prototype.hasOwnProperty.call(a,"_attachments")||(a._attachments={}),Object.prototype.hasOwnProperty.call(a,"_rev")||(a._rev=$L()),a}async function oEt(o,a){a.multiInstance=o.multiInstance;var u=await o.storage.createStorageInstance(a);return u}async function zfe(o,a,u,f,d,w,O,q){var K=await qfe(a),le=K.filter(mt=>mt.data.name===d),ye=[];le.forEach(mt=>{ye.push({collectionName:mt.data.name,schema:mt.data.schema,isCollection:!0}),mt.data.connectedStorages.forEach(Re=>ye.push({collectionName:Re.collectionName,isCollection:!1,schema:Re.schema}))});var Be=new Set;if(ye=ye.filter(mt=>{var Re=mt.collectionName+"||"+mt.schema.version;return Be.has(Re)?!1:(Be.add(Re),!0)}),await Promise.all(ye.map(async mt=>{var Re=await o.createStorageInstance({collectionName:mt.collectionName,databaseInstanceToken:u,databaseName:f,multiInstance:w,options:{},schema:mt.schema,password:O,devMode:Vp.isDevMode()});await Re.remove(),mt.isCollection&&await C6("postRemoveRxCollection",{storage:o,databaseName:f,collectionName:d})})),q){var ce=le.map(mt=>{var Re=j7(mt);return Re._deleted=!0,Re._meta.lwt=Fb(),Re._rev=LH(u,mt),{previous:mt,document:Re}});await a.bulkWrite(ce,"rx-database-remove-collection-all")}}function pS(o){if(o.closed)throw mo("COL21",{collection:o.name,version:o.schema.version})}var Wfe=mi(()=>{O_();Qw();Kw();Jfe();ak();Ab();ng()});function lEt(o){return new Onn(o)}var cEt,Onn,uEt=mi(()=>{cEt=Ea(D9(),1);O_();Onn=function(){function o(u){this.subs=[],this.counter=0,this.eventCounterMap=new WeakMap,this.buffer=[],this.limit=100,this.tasks=new Set,this.collection=u,this.subs.push(this.collection.eventBulks$.pipe((0,cEt.filter)(f=>!f.isLocal)).subscribe(f=>{this.tasks.add(()=>this._handleChangeEvents(f.events)),this.tasks.size<=1&&VL().then(()=>{this.processTasks()})}))}var a=o.prototype;return a.processTasks=function(){if(this.tasks.size!==0){var f=Array.from(this.tasks);f.forEach(d=>d()),this.tasks.clear()}},a._handleChangeEvents=function(f){var d=this.counter;this.counter=this.counter+f.length,f.length>this.limit?this.buffer=f.slice(f.length*-1):(eP(this.buffer,f),this.buffer=this.buffer.slice(this.limit*-1));for(var w=d+1,O=this.eventCounterMap,q=0;q<f.length;q++){var K=f[q];O.set(K,w+q)}},a.getCounter=function(){return this.processTasks(),this.counter},a.getBuffer=function(){return this.processTasks(),this.buffer},a.getArrayIndexByPointer=function(f){this.processTasks();var d=this.buffer[0],w=this.eventCounterMap.get(d);if(f<w)return null;var O=f-w;return O},a.getFrom=function(f){this.processTasks();var d=[],w=this.getArrayIndexByPointer(f);if(w===null)return null;for(;;){var O=this.buffer[w];if(w++,O)d.push(O);else return d}},a.runFrom=function(f,d){this.processTasks();var w=this.getFrom(f);if(w===null)throw new Error("out of bounds");w.forEach(O=>d(O))},a.reduceByLastOfDoc=function(f){return this.processTasks(),f.slice(0)},a.close=function(){this.tasks.clear(),this.subs.forEach(f=>f.unsubscribe())},o}()});function Ann(o){var a=o.schema.getDocumentPrototype(),u=Inn(o),f=qG,d={};return[a,u,f].forEach(w=>{var O=Object.getOwnPropertyNames(w);O.forEach(q=>{var K=Object.getOwnPropertyDescriptor(w,q),le=!0;(q.startsWith("_")||q.endsWith("_")||q.startsWith("$")||q.endsWith("$"))&&(le=!1),typeof K.value=="function"?Object.defineProperty(d,q,{get(){return K.value.bind(this)},enumerable:le,configurable:!1}):(K.enumerable=le,K.configurable=!1,K.writable&&(K.writable=!1),Object.defineProperty(d,q,K))})}),d}function pEt(o){return yh(Nnn,o,()=>JCt(Ann(o)))}function fEt(o,a,u){var f=zCt(a,o,Vp.deepFreezeWhenDevMode(u));return o._runHooksSync("post","create",u,f),Om("postCreateRxDocument",f),f}function Inn(o){var a={};return Object.entries(o.methods).forEach(([u,f])=>{a[u]=f}),a}var Nnn,N5e=mi(()=>{JG();Kw();Ab();O_();Nnn=new WeakMap});var A5e,I5e=mi(()=>{O_();ak();A5e={isEqual(o,a){return HL(pP(o),pP(a))},resolve(o){return o.realMasterState}}});function Fnn(o){if(!_Et){_Et=!0;var a=Object.getPrototypeOf(o);gEt.forEach(u=>{mEt.map(f=>{var d=f+Goe(u);a[d]=function(w,O){return this.addHook(f,u,w,O)}})})}}function Mnn(o,a){return o.incrementalModify(u=>a)}function Rnn(o,a,u){var f=o._docCache.getLatestDocumentDataIfExists(a);return f?Promise.resolve({doc:o._docCache.getCachedRxDocuments([f])[0],inserted:!1}):o.findOne(a).exec().then(d=>d?{doc:d,inserted:!1}:o.insert(u).then(w=>({doc:w,inserted:!0})))}async function hEt({database:o,name:a,schema:u,instanceCreationOptions:f={},migrationStrategies:d={},autoMigrate:w=!0,statics:O={},methods:q={},attachments:K={},options:le={},localDocuments:ye=!1,cacheReplacementPolicy:Be=w5e,conflictHandler:ce=A5e}){var mt={databaseInstanceToken:o.token,databaseName:o.name,collectionName:a,schema:u.jsonSchema,options:f,multiInstance:o.multiInstance,password:o.password,devMode:Vp.isDevMode()};Om("preCreateRxStorageInstance",mt);var Re=await oEt(o,mt),Ge=new F5e(o,a,u,Re,f,d,q,K,le,Be,O,ce);try{await Ge.prepare(),Object.entries(O).forEach(([_r,jr])=>{Object.defineProperty(Ge,_r,{get:()=>jr.bind(Ge)})}),Om("createRxCollection",{collection:Ge,creator:{name:a,schema:u,storageInstance:Re,instanceCreationOptions:f,migrationStrategies:d,methods:q,attachments:K,options:le,cacheReplacementPolicy:Be,localDocuments:ye,statics:O}}),w&&Ge.schema.version!==0&&await Ge.migratePromise()}catch(_r){throw iB.delete(Ge),await Re.close(),_r}return Ge}var dEt,t2,mEt,gEt,_Et,iB,F5e,Ufe=mi(()=>{dEt=Ea(k6(),1),t2=Ea(q9(),1);O_();Wfe();UG();ng();k5e();Rfe();uEt();Kw();N5e();ak();l5e();JG();Ab();I5e();O9();mEt=["pre","post"],gEt=["insert","save","remove","create"],_Et=!1,iB=new Set,F5e=function(){function o(u,f,d,w,O={},q={},K={},le={},ye={},Be=w5e,ce={},mt=A5e){this.storageInstance={},this.timeouts=new Set,this.incrementalWriteQueue={},this.awaitBeforeReads=new Set,this._incrementalUpsertQueues=new Map,this.synced=!1,this.hooks={},this._subs=[],this._docCache={},this._queryCache=QPt(),this.$={},this.checkpoint$={},this._changeEventBuffer={},this.eventBulks$={},this.onClose=[],this.closed=!1,this.onRemove=[],this.database=u,this.name=f,this.schema=d,this.internalStorageInstance=w,this.instanceCreationOptions=O,this.migrationStrategies=q,this.methods=K,this.attachments=le,this.options=ye,this.cacheReplacementPolicy=Be,this.statics=ce,this.conflictHandler=mt,Fnn(this.asRxCollection),u&&(this.eventBulks$=u.eventBulks$.pipe((0,t2.filter)(Re=>Re.collectionName===this.name))),this.database&&iB.add(this)}var a=o.prototype;return a.prepare=async function(){if(!await Xoe()){for(var f=0;f<10&&iB.size>eNe;)f++,await this.promiseWait(30);if(iB.size>eNe)throw mo("COL23",{database:this.database.name,collection:this.name,args:{existing:Array.from(iB.values()).map(K=>({db:K.database?K.database.name:"",c:K.name}))}})}this.storageInstance=Efe(this.database,this.internalStorageInstance,this.schema.jsonSchema),this.incrementalWriteQueue=new qCt(this.storageInstance,this.schema.primaryPath,(K,le)=>u5e(this,K,le),K=>this._runHooks("post","save",K)),this.$=this.eventBulks$.pipe((0,t2.mergeMap)(K=>spe(K))),this.checkpoint$=this.eventBulks$.pipe((0,t2.map)(K=>K.checkpoint)),this._changeEventBuffer=lEt(this.asRxCollection);var d;this._docCache=new eEt(this.schema.primaryPath,this.eventBulks$.pipe((0,t2.filter)(K=>!K.isLocal),(0,t2.map)(K=>K.events)),K=>(d||(d=pEt(this.asRxCollection)),fEt(this.asRxCollection,d,K)));var w=this.database.internalStore.changeStream().pipe((0,t2.filter)(K=>{var le=this.name+"-"+this.schema.version,ye=K.events.find(Be=>Be.documentData.context==="collection"&&Be.documentData.key===le&&Be.operation==="DELETE");return!!ye})).subscribe(async()=>{await this.close(),await Promise.all(this.onRemove.map(K=>K()))});this._subs.push(w);var O=await this.database.storageToken,q=this.storageInstance.changeStream().subscribe(K=>{var le={id:K.id,isLocal:!1,internal:!1,collectionName:this.name,storageToken:O,events:K.events,databaseToken:this.database.token,checkpoint:K.checkpoint,context:K.context};this.database.$emit(le)});return this._subs.push(q),zH},a.cleanup=function(f){throw pS(this),Mp("cleanup")},a.migrationNeeded=function(){throw Mp("migration-schema")},a.getMigrationState=function(){throw Mp("migration-schema")},a.startMigration=function(f=10){return pS(this),this.getMigrationState().startMigration(f)},a.migratePromise=function(f=10){return this.getMigrationState().migratePromise(f)},a.insert=async function(f){pS(this);var d=await this.bulkInsert([f]),w=d.error[0];rB(this,f[this.schema.primaryPath],f,w);var O=xp(d.success[0]);return O},a.insertIfNotExists=async function(f){var d=await this.bulkInsert([f]);if(d.error.length>0){var w=d.error[0];if(w.status===409){var O=w.documentInDb;return zG(this._docCache,[O])[0]}else throw w}return d.success[0]},a.bulkInsert=async function(f){if(pS(this),f.length===0)return{success:[],error:[]};var d=this.schema.primaryPath,w=new Set,O;if(this.hasHooks("pre","insert"))O=await Promise.all(f.map(_r=>{var jr=$G(this.schema,_r);return this._runHooks("pre","insert",jr).then(()=>(w.add(jr[d]),{document:jr}))}));else{O=new Array(f.length);for(var q=this.schema,K=0;K<f.length;K++){var le=f[K],ye=$G(q,le);w.add(ye[d]),O[K]={document:ye}}}if(w.size!==f.length)throw mo("COL22",{collection:this.name,args:{documents:f}});var Be=await this.storageInstance.bulkWrite(O,"rx-collection-bulk-insert"),ce,mt=this,Re={get success(){if(!ce){var _r=ik(mt.schema.primaryPath,O,Be);ce=zG(mt._docCache,_r)}return ce},error:Be.error};if(this.hasHooks("post","insert")){var Ge=new Map;O.forEach(_r=>{var jr=_r.document;Ge.set(jr[d],jr)}),await Promise.all(Re.success.map(_r=>this._runHooks("post","insert",Ge.get(_r.primary),_r)))}return Re},a.bulkRemove=async function(f){pS(this);var d=this.schema.primaryPath;if(f.length===0)return{success:[],error:[]};var w;typeof f[0]=="string"?w=await this.findByIds(f).exec():(w=new Map,f.forEach(mt=>w.set(mt.primary,mt)));var O=[],q=new Map;Array.from(w.values()).forEach(mt=>{var Re=mt.toMutableJSON(!0);O.push(Re),q.set(mt.primary,Re)}),await Promise.all(O.map(mt=>{var Re=mt[this.schema.primaryPath];return this._runHooks("pre","remove",mt,w.get(Re))}));var K=O.map(mt=>{var Re=Kd(mt);return Re._deleted=!0,{previous:mt,document:Re}}),le=await this.storageInstance.bulkWrite(K,"rx-collection-bulk-remove"),ye=ik(this.schema.primaryPath,K,le),Be=[],ce=ye.map(mt=>{var Re=mt[d],Ge=this._docCache.getCachedRxDocument(mt);return Be.push(Ge),Re});return await Promise.all(ce.map(mt=>this._runHooks("post","remove",q.get(mt),w.get(mt)))),{success:Be,error:le.error}},a.bulkUpsert=async function(f){pS(this);var d=[],w=new Map;f.forEach(le=>{var ye=$G(this.schema,le),Be=ye[this.schema.primaryPath];if(!Be)throw mo("COL3",{primaryPath:this.schema.primaryPath,data:ye,schema:this.schema.jsonSchema});w.set(Be,ye),d.push(ye)});var O=await this.bulkInsert(d),q=O.success.slice(0),K=[];return await Promise.all(O.error.map(async le=>{if(le.status!==409)K.push(le);else{var ye=le.documentId,Be=l7(w,ye),ce=xp(le.documentInDb),mt=this._docCache.getCachedRxDocuments([ce])[0],Re=await mt.incrementalModify(()=>Be);q.push(Re)}})),{error:K,success:q}},a.upsert=async function(f){pS(this);var d=await this.bulkUpsert([f]);return rB(this.asRxCollection,f[this.schema.primaryPath],f,d.error[0]),d.success[0]},a.incrementalUpsert=function(f){pS(this);var d=$G(this.schema,f),w=d[this.schema.primaryPath];if(!w)throw mo("COL4",{data:f});var O=this._incrementalUpsertQueues.get(w);return O||(O=zH),O=O.then(()=>Rnn(this,w,d)).then(q=>q.inserted?q.doc:Mnn(q.doc,d)),this._incrementalUpsertQueues.set(w,O),O},a.find=function(f){pS(this),Om("prePrepareRxQuery",{op:"find",queryObj:f,collection:this}),f||(f=WG());var d=sI("find",f,this);return d},a.findOne=function(f){pS(this),Om("prePrepareRxQuery",{op:"findOne",queryObj:f,collection:this});var d;if(typeof f=="string")d=sI("findOne",{selector:{[this.schema.primaryPath]:f},limit:1},this);else{if(f||(f=WG()),f.limit)throw mo("QU6");f=Kd(f),f.limit=1,d=sI("findOne",f,this)}return d},a.count=function(f){pS(this),f||(f=WG());var d=sI("count",f,this);return d},a.findByIds=function(f){pS(this);var d={selector:{[this.schema.primaryPath]:{$in:f.slice(0)}}},w=sI("findByIds",d,this);return w},a.exportJSON=function(){throw Mp("json-dump")},a.importJSON=function(f){throw Mp("json-dump")},a.insertCRDT=function(f){throw Mp("crdt")},a.addPipeline=function(f){throw Mp("pipeline")},a.addHook=function(f,d,w,O=!1){if(typeof w!="function")throw Ib("COL7",{key:d,when:f});if(!mEt.includes(f))throw Ib("COL8",{key:d,when:f});if(!gEt.includes(d))throw mo("COL9",{key:d});if(f==="post"&&d==="create"&&O===!0)throw mo("COL10",{when:f,key:d,parallel:O});var q=w.bind(this),K=O?"parallel":"series";this.hooks[d]=this.hooks[d]||{},this.hooks[d][f]=this.hooks[d][f]||{series:[],parallel:[]},this.hooks[d][f][K].push(q)},a.getHooks=function(f,d){return!this.hooks[d]||!this.hooks[d][f]?{series:[],parallel:[]}:this.hooks[d][f]},a.hasHooks=function(f,d){if(!this.hooks[d]||!this.hooks[d][f])return!1;var w=this.getHooks(f,d);return w?w.series.length>0||w.parallel.length>0:!1},a._runHooks=function(f,d,w,O){var q=this.getHooks(f,d);if(!q)return zH;var K=q.series.map(le=>()=>le(w,O));return ypt(K).then(()=>Promise.all(q.parallel.map(le=>le(w,O))))},a._runHooksSync=function(f,d,w,O){if(this.hasHooks(f,d)){var q=this.getHooks(f,d);q&&q.series.forEach(K=>K(w,O))}},a.promiseWait=function(f){var d=new Promise(w=>{var O=setTimeout(()=>{this.timeouts.delete(O),w()},f);this.timeouts.add(O)});return d},a.close=async function(){return this.closed?tP:(iB.delete(this),await Promise.all(this.onClose.map(f=>f())),this.closed=!0,Array.from(this.timeouts).forEach(f=>clearTimeout(f)),this._changeEventBuffer&&this._changeEventBuffer.close(),this.database.requestIdlePromise().then(()=>this.storageInstance.close()).then(()=>(this._subs.forEach(f=>f.unsubscribe()),delete this.database.collections[this.name],C6("postCloseRxCollection",this).then(()=>!0))))},a.remove=async function(){await this.close(),await Promise.all(this.onRemove.map(f=>f())),await zfe(this.database.storage,this.database.internalStore,this.database.token,this.database.name,this.name,this.database.multiInstance,this.database.password,this.database.hashFunction)},(0,dEt.default)(o,[{key:"insert$",get:function(){return this.$.pipe((0,t2.filter)(u=>u.operation==="INSERT"))}},{key:"update$",get:function(){return this.$.pipe((0,t2.filter)(u=>u.operation==="UPDATE"))}},{key:"remove$",get:function(){return this.$.pipe((0,t2.filter)(u=>u.operation==="DELETE"))}},{key:"asRxCollection",get:function(){return this}}])}()});var yEt=Ve($fe=>{"use strict";Object.defineProperty($fe,"__esModule",{value:!0});$fe.IdleQueue=void 0;var jnn=$fe.IdleQueue=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this._parallels=a||1,this._qC=0,this._iC=new Set,this._lHN=0,this._hPM=new Map,this._pHM=new Map};jnn.prototype={isIdle:function(){return this._qC<this._parallels},lock:function(){this._qC++},unlock:function(){this._qC--,R5e(this)},wrapCall:function(a){var u=this;this._qC++;var f;try{f=a()}catch(d){throw this.unlock(),d}return!f.then||typeof f.then!="function"?(this.unlock(),f):f.then(function(d){return u.unlock(),d}).catch(function(d){throw u.unlock(),d})},requestIdlePromise:function(a){var u=this;a=a||{};var f,d=new Promise(function(q){return f=q}),w=function(){M5e(u,d),f()};if(d._manRes=w,a.timeout){var O=setTimeout(function(){d._manRes()},a.timeout);d._timeoutObj=O}return this._iC.add(d),R5e(this),d},cancelIdlePromise:function(a){M5e(this,a)},requestIdleCallback:function(a,u){var f=this._lHN++,d=this.requestIdlePromise(u);return this._hPM.set(f,d),this._pHM.set(d,f),d.then(function(){return a()}),f},cancelIdleCallback:function(a){var u=this._hPM.get(a);this.cancelIdlePromise(u)},clear:function(){var a=this;this._iC.forEach(function(u){return M5e(a,u)}),this._qC=0,this._iC.clear(),this._hPM=new Map,this._pHM=new Map}};function Lnn(o){if(o._iC.size!==0){var a=o._iC.values(),u=a.next().value;u._manRes(),setTimeout(function(){return R5e(o)},0)}}function M5e(o,a){if(a){if(a._timeoutObj&&clearTimeout(a._timeoutObj),o._pHM.has(a)){var u=o._pHM.get(a);o._hPM.delete(u),o._pHM.delete(a)}o._iC.delete(a)}}function R5e(o){o._tryIR||o._iC.size===0||(o._tryIR=!0,setTimeout(function(){if(!o.isIdle()){o._tryIR=!1;return}setTimeout(function(){if(!o.isIdle()){o._tryIR=!1;return}Lnn(o),o._tryIR=!1},0)},0))}});var bEt=Ve((xTn,vEt)=>{"use strict";var Bnn=yEt();vEt.exports={IdleQueue:Bnn.IdleQueue}});function qnn(o){let a=xEt()-o.ttl,u=o.map[Symbol.iterator]();for(;;){let f=u.next().value;if(!f)return;let d=f[0];if(f[1]<a)o.map.delete(d);else return}}function xEt(){return Date.now()}var fP,VG=mi(()=>{fP=class{ttl;map=new Map;_to=!1;constructor(a){this.ttl=a}has(a){return this.map.has(a)}add(a){this.map.set(a,xEt()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,qnn(this)},0))}clear(){this.map.clear()}}});function Jnn(o,a){if(j5e.has(DEt(o,a)))throw mo("DB8",{name:o,storage:a.name,link:"https://rxdb.info/rx-database.html#ignoreduplicate"})}function EEt(){var o,a,u=new Promise((f,d)=>{o=f,a=d});return{promise:u,resolve:o,reject:a}}function DEt(o,a){return a.name+"|"+o}async function OEt(o,a,u,f,d,w){var O=await a.createStorageInstance({databaseInstanceToken:o,databaseName:u,collectionName:RCt,schema:Lfe,options:f,multiInstance:d,password:w,devMode:Vp.isDevMode()});return O}function NEt({storage:o,instanceCreationOptions:a,name:u,password:f,multiInstance:d=!0,eventReduce:w=!0,ignoreDuplicate:O=!1,options:q={},cleanupPolicy:K,closeDuplicates:le=!1,allowSlowCount:ye=!1,localDocuments:Be=!1,hashFunction:ce=Hoe,reactivity:mt}){Om("preCreateRxDatabase",{storage:o,instanceCreationOptions:a,name:u,password:f,multiInstance:d,eventReduce:w,ignoreDuplicate:O,options:q,localDocuments:Be});var Re=DEt(u,o),Ge=SEt.get(Re)||new Set,_r=EEt(),jr=Array.from(Ge),si=()=>{Ge.delete(_r.promise),j5e.delete(Re)};return Ge.add(_r.promise),SEt.set(Re,Ge),(async()=>{if(le&&await Promise.all(jr.map(sn=>sn.catch(()=>null).then(Ir=>Ir&&Ir.close()))),O){if(!Vp.isDevMode())throw mo("DB9",{database:u})}else Jnn(u,o);j5e.add(Re);var Oi=o7(10),ys=await OEt(Oi,o,u,a,d,f),ns=new L5e(u,Oi,o,a,f,d,w,q,ys,ce,K,ye,mt,si);return await C6("createRxDatabase",{database:ns,creator:{storage:o,instanceCreationOptions:a,name:u,password:f,multiInstance:d,eventReduce:w,ignoreDuplicate:O,options:q,localDocuments:Be}}),ns})().then(Oi=>{_r.resolve(Oi)}).catch(Oi=>{_r.reject(Oi),si()}),_r.promise}async function znn(o,a,u=!0,f){var d=o7(10),w=await OEt(d,a,o,{},u,f),O=await qfe(w),q=new Set;O.forEach(le=>q.add(le.data.name));var K=Array.from(q);return await Promise.all(K.map(le=>zfe(a,w,d,o,le,u,f))),await C6("postRemoveRxDatabase",{databaseName:o,storage:a}),await w.remove(),K}async function Wnn(o){if(await o.storageToken,o.startupErrors[0])throw o.startupErrors[0]}var wEt,kEt,CEt,PEt,j5e,SEt,TEt,L5e,B5e=mi(()=>{wEt=Ea(k6(),1),kEt=Ea(bEt(),1);VG();O_();ng();Zoe();Kw();CEt=Ea(q9(),1),PEt=Ea(D9(),1);Ufe();ak();Jfe();Wfe();Ab();O9();j5e=new Set,SEt=new Map,TEt=0,L5e=function(){function o(u,f,d,w,O,q,K=!1,le={},ye,Be,ce,mt,Re,Ge){this.idleQueue=new kEt.IdleQueue,this.rxdbVersion=WH,this.storageInstances=new Set,this._subs=[],this.startupErrors=[],this.onClose=[],this.closed=!1,this.collections={},this.states={},this.eventBulks$=new CEt.Subject,this.closePromise=null,this.observable$=this.eventBulks$.pipe((0,PEt.mergeMap)(_r=>spe(_r))),this.storageToken=tP,this.storageTokenDocument=tP,this.emittedEventBulkIds=new fP(60*1e3),this.name=u,this.token=f,this.storage=d,this.instanceCreationOptions=w,this.password=O,this.multiInstance=q,this.eventReduce=K,this.options=le,this.internalStore=ye,this.hashFunction=Be,this.cleanupPolicy=ce,this.allowSlowCount=mt,this.reactivity=Re,this.onClosed=Ge,TEt++,this.name!=="pseudoInstance"&&(this.internalStore=Efe(this.asRxDatabase,ye,Lfe),this.storageTokenDocument=sEt(this.asRxDatabase).catch(_r=>this.startupErrors.push(_r)),this.storageToken=this.storageTokenDocument.then(_r=>_r.data.token).catch(_r=>this.startupErrors.push(_r)))}var a=o.prototype;return a.getReactivityFactory=function(){if(!this.reactivity)throw mo("DB14",{database:this.name});return this.reactivity},a.$emit=function(f){this.emittedEventBulkIds.has(f.id)||(this.emittedEventBulkIds.add(f.id),this.eventBulks$.next(f))},a.removeCollectionDoc=async function(f,d){var w=await o5e(this.internalStore,Bfe(O5e(f,d),nB));if(!w)throw mo("SNH",{name:f,schema:d});var O=j7(w);O._deleted=!0,await this.internalStore.bulkWrite([{document:O,previous:w}],"rx-database-remove-collection")},a.addCollections=async function(f){var d={},w={},O=[],q={};await Promise.all(Object.entries(f).map(async([ye,Be])=>{var ce=ye,mt=Be.schema;d[ce]=mt;var Re=jpt(mt,this.hashFunction);if(w[ce]=Re,this.collections[ye])throw mo("DB3",{name:ye});var Ge=O5e(ye,mt),_r={id:Bfe(Ge,nB),key:Ge,context:nB,data:{name:ce,schemaHash:await Re.hash,schema:Re.jsonSchema,version:Re.version,connectedStorages:[]},_deleted:!1,_meta:UL(),_rev:$L(),_attachments:{}};O.push({document:_r});var jr=Object.assign({},Be,{name:ce,schema:Re,database:this}),si=Kd(Be);si.database=this,si.name=ye,Om("preCreateRxCollection",si),jr.conflictHandler=si.conflictHandler,q[ce]=jr}));var K=await this.internalStore.bulkWrite(O,"rx-database-add-collection");await Wnn(this),await Promise.all(K.error.map(async ye=>{if(ye.status!==409)throw mo("DB12",{database:this.name,writeError:ye});var Be=xp(ye.documentInDb),ce=Be.data.name,mt=w[ce];if(Be.data.schemaHash!==await mt.hash)throw mo("DB6",{database:this.name,collection:ce,previousSchemaHash:Be.data.schemaHash,schemaHash:await mt.hash,previousSchema:Be.data.schema,schema:xp(d[ce])})}));var le={};return await Promise.all(Object.keys(f).map(async ye=>{var Be=q[ye],ce=await hEt(Be);le[ye]=ce,this.collections[ye]=ce,this[ye]||Object.defineProperty(this,ye,{get:()=>this.collections[ye]})})),le},a.lockedRun=function(f){return this.idleQueue.wrapCall(f)},a.requestIdlePromise=function(){return this.idleQueue.requestIdlePromise()},a.exportJSON=function(f){throw Mp("json-dump")},a.addState=function(f){throw Mp("state")},a.importJSON=function(f){throw Mp("json-dump")},a.backup=function(f){throw Mp("backup")},a.leaderElector=function(){throw Mp("leader-election")},a.isLeader=function(){throw Mp("leader-election")},a.waitForLeadership=function(){throw Mp("leader-election")},a.migrationStates=function(){throw Mp("migration-schema")},a.close=function(){if(this.closePromise)return this.closePromise;var{promise:f,resolve:d}=EEt(),w=O=>{this.onClosed&&this.onClosed(),this.closed=!0,d(O)};return this.closePromise=f,(async()=>{if(await C6("preCloseRxDatabase",this),this.eventBulks$.complete(),TEt--,this._subs.map(O=>O.unsubscribe()),this.name==="pseudoInstance"){w(!1);return}return this.requestIdlePromise().then(()=>Promise.all(this.onClose.map(O=>O()))).then(()=>Promise.all(Object.keys(this.collections).map(O=>this.collections[O]).map(O=>O.close()))).then(()=>this.internalStore.close()).then(()=>w(!0))})(),f},a.remove=function(){return this.close().then(()=>znn(this.name,this.storage,this.multiInstance,this.password))},(0,wEt.default)(o,[{key:"$",get:function(){return this.observable$}},{key:"asRxDatabase",get:function(){return this}}])}()});function J5e(o){if(Om("preAddRxPlugin",{plugin:o,plugins:q5e}),!q5e.has(o)){{if(AEt.has(o.name))throw mo("PL3",{name:o.name,plugin:o});q5e.add(o),AEt.add(o.name)}if(!o.rxdb)throw Ib("PL1",{plugin:o});o.init&&o.init(),o.prototypes&&Object.entries(o.prototypes).forEach(([a,u])=>u(Unn[a])),o.overwritable&&Object.assign(Vp,o.overwritable),o.hooks&&Object.entries(o.hooks).forEach(([a,u])=>{u.after&&GL[a].push(u.after),u.before&&GL[a].unshift(u.before)})}}var Unn,q5e,AEt,IEt=mi(()=>{Zoe();JG();UG();Ufe();B5e();Ab();Kw();ng();Unn={RxSchema:rNe.prototype,RxDocument:qG,RxQuery:E5e.prototype,RxCollection:F5e.prototype,RxDatabase:L5e.prototype},q5e=new Set,AEt=new Set});var FEt=mi(()=>{});var MEt=mi(()=>{});var REt=mi(()=>{});var jEt=mi(()=>{});var LEt=mi(()=>{});var BEt=mi(()=>{});var qEt=mi(()=>{FEt();jEt();BEt();REt();LEt();MEt();I5e()});function JEt(o){return o&&typeof o.then=="function"}function _P(o,a){return o||(o=0),new Promise(function(u){return setTimeout(function(){return u(a)},o)})}function Vfe(o,a){return Math.floor(Math.random()*(a-o+1)+o)}function r2(){return Math.random().toString(36).substring(2)}function bO(){var o=Date.now()*1e3;return o<=z5e&&(o=z5e+1),z5e=o,o}function WEt(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}var $nn,zEt,y0,z5e,xO=mi(()=>{$nn=Promise.resolve(!1),zEt=Promise.resolve(!0),y0=Promise.resolve();z5e=0});function Gnn(o){var a={time:bO(),messagesCallback:null,bc:new BroadcastChannel(o),subFns:[]};return a.bc.onmessage=function(u){a.messagesCallback&&a.messagesCallback(u.data)},a}function Knn(o){o.bc.close(),o.subFns=[]}function Qnn(o,a){try{return o.bc.postMessage(a,!1),y0}catch(u){return Promise.reject(u)}}function Xnn(o,a){o.messagesCallback=a}function Ynn(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function Znn(){return 150}var Vnn,Hnn,UEt,$Et=mi(()=>{xO();Vnn=bO,Hnn="native";UEt={create:Gnn,close:Knn,onMessage:Xnn,postMessage:Qnn,canBeUsed:Ynn,type:Hnn,averageResponseTime:Znn,microSeconds:Vnn}});function oI(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=JSON.parse(JSON.stringify(o));return typeof a.webWorkerSupport>"u"&&(a.webWorkerSupport=!0),a.idb||(a.idb={}),a.idb.ttl||(a.idb.ttl=1e3*45),a.idb.fallbackInterval||(a.idb.fallbackInterval=150),o.idb&&typeof o.idb.onclose=="function"&&(a.idb.onclose=o.idb.onclose),a.localstorage||(a.localstorage={}),a.localstorage.removeTimeout||(a.localstorage.removeTimeout=1e3*60),o.methods&&(a.methods=o.methods),a.node||(a.node={}),a.node.ttl||(a.node.ttl=1e3*60*2),a.node.maxParallelWrites||(a.node.maxParallelWrites=2048),typeof a.node.useFastPath>"u"&&(a.node.useFastPath=!0),a}var HG=mi(()=>{});function VEt(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function W5e(o){o.commit&&o.commit()}function nin(o){var a=VEt(),u=tin+o,f=a.open(u);return f.onupgradeneeded=function(d){var w=d.target.result;w.createObjectStore(SO,{keyPath:"id",autoIncrement:!0})},new Promise(function(d,w){f.onerror=function(O){return w(O)},f.onsuccess=function(){d(f.result)}})}function iin(o,a,u){var f=Date.now(),d={uuid:a,time:f,data:u},w=o.transaction([SO],"readwrite",Hfe);return new Promise(function(O,q){w.oncomplete=function(){return O()},w.onerror=function(le){return q(le)};var K=w.objectStore(SO);K.add(d),W5e(w)})}function ain(o,a){var u=o.transaction(SO,"readonly",Hfe),f=u.objectStore(SO),d=[],w=IDBKeyRange.bound(a+1,1/0);if(f.getAll){var O=f.getAll(w);return new Promise(function(K,le){O.onerror=function(ye){return le(ye)},O.onsuccess=function(ye){K(ye.target.result)}})}function q(){try{return w=IDBKeyRange.bound(a+1,1/0),f.openCursor(w)}catch{return f.openCursor()}}return new Promise(function(K,le){var ye=q();ye.onerror=function(Be){return le(Be)},ye.onsuccess=function(Be){var ce=Be.target.result;ce?ce.value.id<a+1?ce.continue(a+1):(d.push(ce.value),ce.continue()):(W5e(u),K(d))}})}function sin(o,a){if(o.closed)return Promise.resolve([]);var u=o.db.transaction(SO,"readwrite",Hfe),f=u.objectStore(SO);return Promise.all(a.map(function(d){var w=f.delete(d);return new Promise(function(O){w.onsuccess=function(){return O()}})}))}function oin(o,a){var u=Date.now()-a,f=o.transaction(SO,"readonly",Hfe),d=f.objectStore(SO),w=[];return new Promise(function(O){d.openCursor().onsuccess=function(q){var K=q.target.result;if(K){var le=K.value;le.time<u?(w.push(le),K.continue()):(W5e(f),O(w))}else O(w)}})}function cin(o){return oin(o.db,o.options.idb.ttl).then(function(a){return sin(o,a.map(function(u){return u.id}))})}function lin(o,a){return a=oI(a),nin(o).then(function(u){var f={closed:!1,lastCursorId:0,channelName:o,options:a,uuid:r2(),eMIs:new fP(a.idb.ttl*2),writeBlockPromise:y0,messagesCallback:null,readQueuePromises:[],db:u};return u.onclose=function(){f.closed=!0,a.idb.onclose&&a.idb.onclose()},HEt(f),f})}function HEt(o){o.closed||GEt(o).then(function(){return _P(o.options.idb.fallbackInterval)}).then(function(){return HEt(o)})}function uin(o,a){return!(o.uuid===a.uuid||a.eMIs.has(o.id)||o.data.time<a.messagesCallbackTime)}function GEt(o){return o.closed?y0:o.messagesCallback?ain(o.db,o.lastCursorId).then(function(a){var u=a.filter(function(f){return!!f}).map(function(f){return f.id>o.lastCursorId&&(o.lastCursorId=f.id),f}).filter(function(f){return uin(f,o)}).sort(function(f,d){return f.time-d.time});return u.forEach(function(f){o.messagesCallback&&(o.eMIs.add(f.id),o.messagesCallback(f.data))}),y0}):y0}function pin(o){o.closed=!0,o.db.close()}function fin(o,a){return o.writeBlockPromise=o.writeBlockPromise.then(function(){return iin(o.db,o.uuid,a)}).then(function(){Vfe(0,10)===0&&cin(o)}),o.writeBlockPromise}function _in(o,a,u){o.messagesCallbackTime=u,o.messagesCallback=a,GEt(o)}function din(){return!!VEt()}function min(o){return o.idb.fallbackInterval*2}var ein,tin,SO,Hfe,rin,KEt,QEt=mi(()=>{xO();VG();HG();ein=bO,tin="pubkey.broadcast-channel-0-",SO="messages",Hfe={durability:"relaxed"},rin="idb";KEt={create:lin,close:pin,onMessage:_in,postMessage:fin,canBeUsed:din,type:rin,averageResponseTime:min,microSeconds:ein}});function XEt(){var o;if(typeof window>"u")return null;try{o=window.localStorage,o=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return o}function YEt(o){return hin+o}function vin(o,a){return new Promise(function(u){_P().then(function(){var f=YEt(o.channelName),d={token:r2(),time:Date.now(),data:a,uuid:o.uuid},w=JSON.stringify(d);XEt().setItem(f,w);var O=document.createEvent("Event");O.initEvent("storage",!0,!0),O.key=f,O.newValue=w,window.dispatchEvent(O),u()})})}function bin(o,a){var u=YEt(o),f=function(w){w.key===u&&a(JSON.parse(w.newValue))};return window.addEventListener("storage",f),f}function xin(o){window.removeEventListener("storage",o)}function Sin(o,a){if(a=oI(a),!ZEt())throw new Error("BroadcastChannel: localstorage cannot be used");var u=r2(),f=new fP(a.localstorage.removeTimeout),d={channelName:o,uuid:u,eMIs:f};return d.listener=bin(o,function(w){d.messagesCallback&&w.uuid!==u&&(!w.token||f.has(w.token)||w.data.time&&w.data.time<d.messagesCallbackTime||(f.add(w.token),d.messagesCallback(w.data)))}),d}function Tin(o){xin(o.listener)}function win(o,a,u){o.messagesCallbackTime=u,o.messagesCallback=a}function ZEt(){var o=XEt();if(!o)return!1;try{var a="__broadcastchannel_check";o.setItem(a,"works"),o.removeItem(a)}catch{return!1}return!0}function kin(){var o=120,a=navigator.userAgent.toLowerCase();return a.includes("safari")&&!a.includes("chrome")?o*2:o}var gin,hin,yin,eDt,tDt=mi(()=>{VG();HG();xO();gin=bO,hin="pubkey.broadcastChannel-",yin="localstorage";eDt={create:Sin,close:Tin,onMessage:win,postMessage:vin,canBeUsed:ZEt,type:yin,averageResponseTime:kin,microSeconds:gin}});function Pin(o){var a={time:rDt(),name:o,messagesCallback:null};return U5e.add(a),a}function Ein(o){U5e.delete(o)}function Din(o,a){return new Promise(function(u){return setTimeout(function(){var f=Array.from(U5e);f.forEach(function(d){d.name===o.name&&d!==o&&d.messagesCallback&&d.time<a.time&&d.messagesCallback(a)}),u()},nDt)})}function Oin(o,a){o.messagesCallback=a}function Nin(){return!0}function Ain(){return nDt}var rDt,Cin,U5e,nDt,iDt,aDt=mi(()=>{xO();rDt=bO,Cin="simulate",U5e=new Set;nDt=5;iDt={create:Pin,close:Ein,onMessage:Oin,postMessage:Din,canBeUsed:Nin,type:Cin,averageResponseTime:Ain,microSeconds:rDt}});var oDt=Ve((y2n,GG)=>{function sDt(o,a,u,f,d,w,O){try{var q=o[w](O),K=q.value}catch(le){return void u(le)}q.done?a(K):Promise.resolve(K).then(f,d)}function Iin(o){return function(){var a=this,u=arguments;return new Promise(function(f,d){var w=o.apply(a,u);function O(K){sDt(w,f,d,O,q,"next",K)}function q(K){sDt(w,f,d,O,q,"throw",K)}O(void 0)})}}GG.exports=Iin,GG.exports.__esModule=!0,GG.exports.default=GG.exports});var cDt=Ve((v2n,TO)=>{function $5e(o){"@babel/helpers - typeof";return TO.exports=$5e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},TO.exports.__esModule=!0,TO.exports.default=TO.exports,$5e(o)}TO.exports=$5e,TO.exports.__esModule=!0,TO.exports.default=TO.exports});var pDt=Ve((b2n,wO)=>{var lDt=cDt().default;function uDt(){"use strict";wO.exports=uDt=function(){return a},wO.exports.__esModule=!0,wO.exports.default=wO.exports;var o,a={},u=Object.prototype,f=u.hasOwnProperty,d=Object.defineProperty||function(wa,Dt,ci){wa[Dt]=ci.value},w=typeof Symbol=="function"?Symbol:{},O=w.iterator||"@@iterator",q=w.asyncIterator||"@@asyncIterator",K=w.toStringTag||"@@toStringTag";function le(wa,Dt,ci){return Object.defineProperty(wa,Dt,{value:ci,enumerable:!0,configurable:!0,writable:!0}),wa[Dt]}try{le({},"")}catch{le=function(ci,ia,js){return ci[ia]=js}}function ye(wa,Dt,ci,ia){var js=Dt&&Dt.prototype instanceof jr?Dt:jr,li=Object.create(js.prototype),xl=new Cn(ia||[]);return d(li,"_invoke",{value:up(wa,ci,xl)}),li}function Be(wa,Dt,ci){try{return{type:"normal",arg:wa.call(Dt,ci)}}catch(ia){return{type:"throw",arg:ia}}}a.wrap=ye;var ce="suspendedStart",mt="suspendedYield",Re="executing",Ge="completed",_r={};function jr(){}function si(){}function Oi(){}var ys={};le(ys,O,function(){return this});var ns=Object.getPrototypeOf,sn=ns&&ns(ns(__([])));sn&&sn!==u&&f.call(sn,O)&&(ys=sn);var Ir=Oi.prototype=jr.prototype=Object.create(ys);function Ks(wa){["next","throw","return"].forEach(function(Dt){le(wa,Dt,function(ci){return this._invoke(Dt,ci)})})}function Va(wa,Dt){function ci(js,li,xl,Xl){var Vc=Be(wa[js],wa,li);if(Vc.type!=="throw"){var ku=Vc.arg,Bi=ku.value;return Bi&&lDt(Bi)=="object"&&f.call(Bi,"__await")?Dt.resolve(Bi.__await).then(function(pf){ci("next",pf,xl,Xl)},function(pf){ci("throw",pf,xl,Xl)}):Dt.resolve(Bi).then(function(pf){ku.value=pf,xl(ku)},function(pf){return ci("throw",pf,xl,Xl)})}Xl(Vc.arg)}var ia;d(this,"_invoke",{value:function(li,xl){function Xl(){return new Dt(function(Vc,ku){ci(li,xl,Vc,ku)})}return ia=ia?ia.then(Xl,Xl):Xl()}})}function up(wa,Dt,ci){var ia=ce;return function(js,li){if(ia===Re)throw Error("Generator is already running");if(ia===Ge){if(js==="throw")throw li;return{value:o,done:!0}}for(ci.method=js,ci.arg=li;;){var xl=ci.delegate;if(xl){var Xl=Ta(xl,ci);if(Xl){if(Xl===_r)continue;return Xl}}if(ci.method==="next")ci.sent=ci._sent=ci.arg;else if(ci.method==="throw"){if(ia===ce)throw ia=Ge,ci.arg;ci.dispatchException(ci.arg)}else ci.method==="return"&&ci.abrupt("return",ci.arg);ia=Re;var Vc=Be(wa,Dt,ci);if(Vc.type==="normal"){if(ia=ci.done?Ge:mt,Vc.arg===_r)continue;return{value:Vc.arg,done:ci.done}}Vc.type==="throw"&&(ia=Ge,ci.method="throw",ci.arg=Vc.arg)}}}function Ta(wa,Dt){var ci=Dt.method,ia=wa.iterator[ci];if(ia===o)return Dt.delegate=null,ci==="throw"&&wa.iterator.return&&(Dt.method="return",Dt.arg=o,Ta(wa,Dt),Dt.method==="throw")||ci!=="return"&&(Dt.method="throw",Dt.arg=new TypeError("The iterator does not provide a '"+ci+"' method")),_r;var js=Be(ia,wa.iterator,Dt.arg);if(js.type==="throw")return Dt.method="throw",Dt.arg=js.arg,Dt.delegate=null,_r;var li=js.arg;return li?li.done?(Dt[wa.resultName]=li.value,Dt.next=wa.nextLoc,Dt.method!=="return"&&(Dt.method="next",Dt.arg=o),Dt.delegate=null,_r):li:(Dt.method="throw",Dt.arg=new TypeError("iterator result is not an object"),Dt.delegate=null,_r)}function f_(wa){var Dt={tryLoc:wa[0]};1 in wa&&(Dt.catchLoc=wa[1]),2 in wa&&(Dt.finallyLoc=wa[2],Dt.afterLoc=wa[3]),this.tryEntries.push(Dt)}function Vu(wa){var Dt=wa.completion||{};Dt.type="normal",delete Dt.arg,wa.completion=Dt}function Cn(wa){this.tryEntries=[{tryLoc:"root"}],wa.forEach(f_,this),this.reset(!0)}function __(wa){if(wa||wa===""){var Dt=wa[O];if(Dt)return Dt.call(wa);if(typeof wa.next=="function")return wa;if(!isNaN(wa.length)){var ci=-1,ia=function js(){for(;++ci<wa.length;)if(f.call(wa,ci))return js.value=wa[ci],js.done=!1,js;return js.value=o,js.done=!0,js};return ia.next=ia}}throw new TypeError(lDt(wa)+" is not iterable")}return si.prototype=Oi,d(Ir,"constructor",{value:Oi,configurable:!0}),d(Oi,"constructor",{value:si,configurable:!0}),si.displayName=le(Oi,K,"GeneratorFunction"),a.isGeneratorFunction=function(wa){var Dt=typeof wa=="function"&&wa.constructor;return!!Dt&&(Dt===si||(Dt.displayName||Dt.name)==="GeneratorFunction")},a.mark=function(wa){return Object.setPrototypeOf?Object.setPrototypeOf(wa,Oi):(wa.__proto__=Oi,le(wa,K,"GeneratorFunction")),wa.prototype=Object.create(Ir),wa},a.awrap=function(wa){return{__await:wa}},Ks(Va.prototype),le(Va.prototype,q,function(){return this}),a.AsyncIterator=Va,a.async=function(wa,Dt,ci,ia,js){js===void 0&&(js=Promise);var li=new Va(ye(wa,Dt,ci,ia),js);return a.isGeneratorFunction(Dt)?li:li.next().then(function(xl){return xl.done?xl.value:li.next()})},Ks(Ir),le(Ir,K,"Generator"),le(Ir,O,function(){return this}),le(Ir,"toString",function(){return"[object Generator]"}),a.keys=function(wa){var Dt=Object(wa),ci=[];for(var ia in Dt)ci.push(ia);return ci.reverse(),function js(){for(;ci.length;){var li=ci.pop();if(li in Dt)return js.value=li,js.done=!1,js}return js.done=!0,js}},a.values=__,Cn.prototype={constructor:Cn,reset:function(Dt){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(Vu),!Dt)for(var ci in this)ci.charAt(0)==="t"&&f.call(this,ci)&&!isNaN(+ci.slice(1))&&(this[ci]=o)},stop:function(){this.done=!0;var Dt=this.tryEntries[0].completion;if(Dt.type==="throw")throw Dt.arg;return this.rval},dispatchException:function(Dt){if(this.done)throw Dt;var ci=this;function ia(ku,Bi){return xl.type="throw",xl.arg=Dt,ci.next=ku,Bi&&(ci.method="next",ci.arg=o),!!Bi}for(var js=this.tryEntries.length-1;js>=0;--js){var li=this.tryEntries[js],xl=li.completion;if(li.tryLoc==="root")return ia("end");if(li.tryLoc<=this.prev){var Xl=f.call(li,"catchLoc"),Vc=f.call(li,"finallyLoc");if(Xl&&Vc){if(this.prev<li.catchLoc)return ia(li.catchLoc,!0);if(this.prev<li.finallyLoc)return ia(li.finallyLoc)}else if(Xl){if(this.prev<li.catchLoc)return ia(li.catchLoc,!0)}else{if(!Vc)throw Error("try statement without catch or finally");if(this.prev<li.finallyLoc)return ia(li.finallyLoc)}}}},abrupt:function(Dt,ci){for(var ia=this.tryEntries.length-1;ia>=0;--ia){var js=this.tryEntries[ia];if(js.tryLoc<=this.prev&&f.call(js,"finallyLoc")&&this.prev<js.finallyLoc){var li=js;break}}li&&(Dt==="break"||Dt==="continue")&&li.tryLoc<=ci&&ci<=li.finallyLoc&&(li=null);var xl=li?li.completion:{};return xl.type=Dt,xl.arg=ci,li?(this.method="next",this.next=li.finallyLoc,_r):this.complete(xl)},complete:function(Dt,ci){if(Dt.type==="throw")throw Dt.arg;return Dt.type==="break"||Dt.type==="continue"?this.next=Dt.arg:Dt.type==="return"?(this.rval=this.arg=Dt.arg,this.method="return",this.next="end"):Dt.type==="normal"&&ci&&(this.next=ci),_r},finish:function(Dt){for(var ci=this.tryEntries.length-1;ci>=0;--ci){var ia=this.tryEntries[ci];if(ia.finallyLoc===Dt)return this.complete(ia.completion,ia.afterLoc),Vu(ia),_r}},catch:function(Dt){for(var ci=this.tryEntries.length-1;ci>=0;--ci){var ia=this.tryEntries[ci];if(ia.tryLoc===Dt){var js=ia.completion;if(js.type==="throw"){var li=js.arg;Vu(ia)}return li}}throw Error("illegal catch attempt")},delegateYield:function(Dt,ci,ia){return this.delegate={iterator:__(Dt),resultName:ci,nextLoc:ia},this.method==="next"&&(this.arg=o),_r}},a}wO.exports=uDt,wO.exports.__esModule=!0,wO.exports.default=wO.exports});var _Dt=Ve((x2n,fDt)=>{var Gfe=pDt()();fDt.exports=Gfe;try{regeneratorRuntime=Gfe}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Gfe:Function("r","regeneratorRuntime = r")(Gfe)}});var mDt=Ve((S2n,V5e)=>{"use strict";var Fin=Object.prototype.hasOwnProperty,g1="~";function KG(){}Object.create&&(KG.prototype=Object.create(null),new KG().__proto__||(g1=!1));function Min(o,a,u){this.fn=o,this.context=a,this.once=u||!1}function dDt(o,a,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var w=new Min(u,f||o,d),O=g1?g1+a:a;return o._events[O]?o._events[O].fn?o._events[O]=[o._events[O],w]:o._events[O].push(w):(o._events[O]=w,o._eventsCount++),o}function Kfe(o,a){--o._eventsCount===0?o._events=new KG:delete o._events[a]}function v0(){this._events=new KG,this._eventsCount=0}v0.prototype.eventNames=function(){var a=[],u,f;if(this._eventsCount===0)return a;for(f in u=this._events)Fin.call(u,f)&&a.push(g1?f.slice(1):f);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(u)):a};v0.prototype.listeners=function(a){var u=g1?g1+a:a,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,w=f.length,O=new Array(w);d<w;d++)O[d]=f[d].fn;return O};v0.prototype.listenerCount=function(a){var u=g1?g1+a:a,f=this._events[u];return f?f.fn?1:f.length:0};v0.prototype.emit=function(a,u,f,d,w,O){var q=g1?g1+a:a;if(!this._events[q])return!1;var K=this._events[q],le=arguments.length,ye,Be;if(K.fn){switch(K.once&&this.removeListener(a,K.fn,void 0,!0),le){case 1:return K.fn.call(K.context),!0;case 2:return K.fn.call(K.context,u),!0;case 3:return K.fn.call(K.context,u,f),!0;case 4:return K.fn.call(K.context,u,f,d),!0;case 5:return K.fn.call(K.context,u,f,d,w),!0;case 6:return K.fn.call(K.context,u,f,d,w,O),!0}for(Be=1,ye=new Array(le-1);Be<le;Be++)ye[Be-1]=arguments[Be];K.fn.apply(K.context,ye)}else{var ce=K.length,mt;for(Be=0;Be<ce;Be++)switch(K[Be].once&&this.removeListener(a,K[Be].fn,void 0,!0),le){case 1:K[Be].fn.call(K[Be].context);break;case 2:K[Be].fn.call(K[Be].context,u);break;case 3:K[Be].fn.call(K[Be].context,u,f);break;case 4:K[Be].fn.call(K[Be].context,u,f,d);break;default:if(!ye)for(mt=1,ye=new Array(le-1);mt<le;mt++)ye[mt-1]=arguments[mt];K[Be].fn.apply(K[Be].context,ye)}}return!0};v0.prototype.on=function(a,u,f){return dDt(this,a,u,f,!1)};v0.prototype.once=function(a,u,f){return dDt(this,a,u,f,!0)};v0.prototype.removeListener=function(a,u,f,d){var w=g1?g1+a:a;if(!this._events[w])return this;if(!u)return Kfe(this,w),this;var O=this._events[w];if(O.fn)O.fn===u&&(!d||O.once)&&(!f||O.context===f)&&Kfe(this,w);else{for(var q=0,K=[],le=O.length;q<le;q++)(O[q].fn!==u||d&&!O[q].once||f&&O[q].context!==f)&&K.push(O[q]);K.length?this._events[w]=K.length===1?K[0]:K:Kfe(this,w)}return this};v0.prototype.removeAllListeners=function(a){var u;return a?(u=g1?g1+a:a,this._events[u]&&Kfe(this,u)):(this._events=new KG,this._eventsCount=0),this};v0.prototype.off=v0.prototype.removeListener;v0.prototype.addListener=v0.prototype.on;v0.prefixed=g1;v0.EventEmitter=v0;typeof V5e<"u"&&(V5e.exports=v0)});var hDt=Ve((T2n,gDt)=>{"use strict";gDt.exports=(o,a)=>(a=a||(()=>{}),o.then(u=>new Promise(f=>{f(a())}).then(()=>u),u=>new Promise(f=>{f(a())}).then(()=>{throw u})))});var vDt=Ve((w2n,Xfe)=>{"use strict";var Rin=hDt(),Qfe=class extends Error{constructor(a){super(a),this.name="TimeoutError"}},yDt=(o,a,u)=>new Promise((f,d)=>{if(typeof a!="number"||a<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(a===1/0){f(o);return}let w=setTimeout(()=>{if(typeof u=="function"){try{f(u())}catch(K){d(K)}return}let O=typeof u=="string"?u:`Promise timed out after ${a} milliseconds`,q=u instanceof Error?u:new Qfe(O);typeof o.cancel=="function"&&o.cancel(),d(q)},a);Rin(o.then(f,d),()=>{clearTimeout(w)})});Xfe.exports=yDt;Xfe.exports.default=yDt;Xfe.exports.TimeoutError=Qfe});var bDt=Ve(H5e=>{"use strict";Object.defineProperty(H5e,"__esModule",{value:!0});function jin(o,a,u){let f=0,d=o.length;for(;d>0;){let w=d/2|0,O=f+w;u(o[O],a)<=0?(f=++O,d-=w+1):d=w}return f}H5e.default=jin});var xDt=Ve(K5e=>{"use strict";Object.defineProperty(K5e,"__esModule",{value:!0});var Lin=bDt(),G5e=class{constructor(){this._queue=[]}enqueue(a,u){u=Object.assign({priority:0},u);let f={priority:u.priority,run:a};if(this.size&&this._queue[this.size-1].priority>=u.priority){this._queue.push(f);return}let d=Lin.default(this._queue,f,(w,O)=>O.priority-w.priority);this._queue.splice(d,0,f)}dequeue(){let a=this._queue.shift();return a?.run}filter(a){return this._queue.filter(u=>u.priority===a.priority).map(u=>u.run)}get size(){return this._queue.length}};K5e.default=G5e});var TDt=Ve(X5e=>{"use strict";Object.defineProperty(X5e,"__esModule",{value:!0});var Bin=mDt(),SDt=vDt(),qin=xDt(),Yfe=()=>{},Jin=new SDt.TimeoutError,Q5e=class extends Bin{constructor(a){var u,f,d,w;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=Yfe,this._resolveIdle=Yfe,a=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:qin.default},a),!(typeof a.intervalCap=="number"&&a.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(f=(u=a.intervalCap)===null||u===void 0?void 0:u.toString())!==null&&f!==void 0?f:""}\` (${typeof a.intervalCap})`);if(a.interval===void 0||!(Number.isFinite(a.interval)&&a.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(w=(d=a.interval)===null||d===void 0?void 0:d.toString())!==null&&w!==void 0?w:""}\` (${typeof a.interval})`);this._carryoverConcurrencyCount=a.carryoverConcurrencyCount,this._isIntervalIgnored=a.intervalCap===1/0||a.interval===0,this._intervalCap=a.intervalCap,this._interval=a.interval,this._queue=new a.queueClass,this._queueClass=a.queueClass,this.concurrency=a.concurrency,this._timeout=a.timeout,this._throwOnTimeout=a.throwOnTimeout===!0,this._isPaused=a.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=Yfe,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=Yfe,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let a=Date.now();if(this._intervalId===void 0){let u=this._intervalEnd-a;if(u<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},u)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let a=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let u=this._queue.dequeue();return u?(this.emit("active"),u(),a&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(a){if(!(typeof a=="number"&&a>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${a}\` (${typeof a})`);this._concurrency=a,this._processQueue()}async add(a,u={}){return new Promise((f,d)=>{let w=async()=>{this._pendingCount++,this._intervalCount++;try{let O=this._timeout===void 0&&u.timeout===void 0?a():SDt.default(Promise.resolve(a()),u.timeout===void 0?this._timeout:u.timeout,()=>{(u.throwOnTimeout===void 0?this._throwOnTimeout:u.throwOnTimeout)&&d(Jin)});f(await O)}catch(O){d(O)}this._next()};this._queue.enqueue(w,u),this._tryToStartAnother(),this.emit("add")})}async addAll(a,u){return Promise.all(a.map(async f=>this.add(f,u)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(a=>{let u=this._resolveEmpty;this._resolveEmpty=()=>{u(),a()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(a=>{let u=this._resolveIdle;this._resolveIdle=()=>{u(),a()}})}get size(){return this._queue.size}sizeBy(a){return this._queue.filter(a).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(a){this._timeout=a}};X5e.default=Q5e});var wDt=Ve(Y5e=>{"use strict";Object.defineProperty(Y5e,"__esModule",{value:!0});Y5e.addBrowser=zin;function zin(o){if(typeof WorkerGlobalScope=="function"&&self instanceof WorkerGlobalScope){var a=self.close.bind(self);self.close=function(){return o(),a()}}else{if(typeof window.addEventListener!="function")return;window.addEventListener("beforeunload",function(){o()},!0),window.addEventListener("unload",function(){o()},!0)}}});var kDt=Ve(Z5e=>{"use strict";Object.defineProperty(Z5e,"__esModule",{value:!0});Z5e.addNode=Win;function Win(o){process.on("exit",function(){return o()}),process.on("beforeExit",function(){return o().then(function(){return process.exit()})}),process.on("SIGINT",function(){return o().then(function(){return process.exit()})}),process.on("uncaughtException",function(a){return o().then(function(){console.trace(a),process.exit(101)})})}});var eMe=Ve(aB=>{"use strict";Object.defineProperty(aB,"__esModule",{value:!0});aB.add=Qin;aB.getSize=Yin;aB.removeAll=Xin;aB.runAll=PDt;var Uin=wDt(),Vin=kDt(),Hin=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",Gin=Hin?Vin.addNode:Uin.addBrowser,L7=new Set,CDt=!1;function Kin(){CDt||(CDt=!0,Gin(PDt))}function Qin(o){if(Kin(),typeof o!="function")throw new Error("Listener is no function");L7.add(o);var a={remove:function(){return L7.delete(o)},run:function(){return L7.delete(o),o()}};return a}function PDt(){var o=[];return L7.forEach(function(a){o.push(a()),L7.delete(a)}),Promise.all(o)}function Xin(){L7.clear()}function Yin(){return L7.size}});var wMe={};uH(wMe,{TMP_FOLDER_BASE:()=>cI,_filterMessage:()=>xMe,averageResponseTime:()=>fan,canBeUsed:()=>pan,cleanOldMessages:()=>VDt,cleanPipeName:()=>IDt,clearNodeFolder:()=>aan,close:()=>GDt,countChannelFolders:()=>BDt,create:()=>can,createSocketEventEmitter:()=>qDt,createSocketInfoFile:()=>LDt,emitOverFastPath:()=>HDt,ensureFoldersExist:()=>RDt,getAllMessages:()=>bMe,getPaths:()=>mP,getReadersUuids:()=>WDt,getSingleMessage:()=>UDt,handleMessagePing:()=>SMe,messagePath:()=>san,microSeconds:()=>oB,onMessage:()=>uan,openClientConnection:()=>JDt,postMessage:()=>lan,readMessage:()=>$Dt,refreshReaderClients:()=>TMe,socketInfoPath:()=>jDt,socketPath:()=>vMe,type:()=>oan,writeMessage:()=>zDt});function IDt(o){return process.platform==="win32"&&!o.startsWith("\\\\.\\pipe\\")?(o=o.replace(/^\//,""),o=o.replace(/\//g,"-"),"\\\\.\\pipe\\"+o):o}function mP(o){if(!rMe.has(o)){var a=DDt.default.createHash("sha256").update(o).digest("hex"),u="A"+a.substring(0,20),f=sk.default.join(cI,u),d=sk.default.join(f,"rdrs"),w=sk.default.join(f,"msgs"),O={channelBase:f,readers:d,messages:w};return rMe.set(o,O),O}return rMe.get(o)}function MDt(){return nMe.apply(this,arguments)}function nMe(){return nMe=(0,sg.default)(Ql.default.mark(function o(){return Ql.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return QG||(QG=e_e(cI).catch(function(){return null})),u.abrupt("return",QG);case 2:case"end":return u.stop()}},o)})),nMe.apply(this,arguments)}function RDt(o,a){return iMe.apply(this,arguments)}function iMe(){return iMe=(0,sg.default)(Ql.default.mark(function o(a,u){var f;return Ql.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return u=u||mP(a),w.next=3,MDt();case 3:return w.next=5,e_e(u.channelBase).catch(function(){return null});case 5:return w.next=7,Promise.all([e_e(u.readers).catch(function(){return null}),e_e(u.messages).catch(function(){return null})]);case 7:return f="777",w.next=10,Promise.all([tMe(u.channelBase,f),tMe(u.readers,f),tMe(u.messages,f)]).catch(function(){return null});case 10:case"end":return w.stop()}},o)})),iMe.apply(this,arguments)}function aan(){return aMe.apply(this,arguments)}function aMe(){return aMe=(0,sg.default)(Ql.default.mark(function o(){return Ql.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(!cI||cI===""||cI==="/")){u.next=2;break}throw new Error("BroadcastChannel.clearNodeFolder(): path is wrong");case 2:return QG=null,u.next=5,nan(cI);case 5:return QG=null,u.abrupt("return",!0);case 7:case"end":return u.stop()}},o)})),aMe.apply(this,arguments)}function vMe(o,a,u){u=u||mP(o);var f=sk.default.join(u.readers,a+".s");return IDt(f)}function jDt(o,a,u){return u=u||mP(o),sk.default.join(u.readers,a+".json")}function LDt(o,a,u){var f=jDt(o,a,u);return FDt(f,JSON.stringify({time:oB()})).then(function(){return f})}function BDt(){return sMe.apply(this,arguments)}function sMe(){return sMe=(0,sg.default)(Ql.default.mark(function o(){var a;return Ql.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,MDt();case 2:return f.next=4,yMe(cI);case 4:return a=f.sent,f.abrupt("return",a.length);case 6:case"end":return f.stop()}},o)})),sMe.apply(this,arguments)}function EDt(o){return oMe.apply(this,arguments)}function oMe(){return oMe=(0,sg.default)(Ql.default.mark(function o(a){var u,f,d;return Ql.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,BDt();case 2:if(u=O.sent,!(u<30)){O.next=5;break}return O.abrupt("return",a);case 5:return f={},Object.entries(a).forEach(function(q){var K=q[0],le=q[1];return f[K]=le}),d="BroadcastChannel.create(): error: This might happen if you have created to many channels, like when you use BroadcastChannel in unit-tests.Try using BroadcastChannel.clearNodeFolder() to clear the tmp-folder before each test.See https://github.com/pubkey/broadcast-channel#clear-tmp-folder",O.abrupt("return",new Error(d+": "+JSON.stringify(f,null,2)));case 9:case"end":return O.stop()}},o)})),oMe.apply(this,arguments)}function qDt(o,a,u){return cMe.apply(this,arguments)}function cMe(){return cMe=(0,sg.default)(Ql.default.mark(function o(a,u,f){var d,w,O;return Ql.default.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return d=vMe(a,u,f),w=new NDt.default.EventEmitter,O=hMe.default.createServer(function(le){le.on("end",function(){}),le.on("data",function(ye){w.emit("data",ye.toString())})}),K.next=5,new Promise(function(le,ye){O.on("error",function(){var Be=(0,sg.default)(Ql.default.mark(function ce(mt){var Re;return Ql.default.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,EDt(mt);case 2:Re=_r.sent,ye(Re);case 4:case"end":return _r.stop()}},ce)}));return function(ce){return Be.apply(this,arguments)}}()),O.listen(d,function(){var Be=(0,sg.default)(Ql.default.mark(function ce(mt,Re){var Ge;return Ql.default.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(!mt){jr.next=7;break}return jr.next=3,EDt(mt);case 3:Ge=jr.sent,ye(Ge),jr.next=8;break;case 7:le(Re);case 8:case"end":return jr.stop()}},ce)}));return function(ce,mt){return Be.apply(this,arguments)}}())});case 5:return K.abrupt("return",{path:d,emitter:w,server:O});case 6:case"end":return K.stop()}},o)})),cMe.apply(this,arguments)}function JDt(o,a){return lMe.apply(this,arguments)}function lMe(){return lMe=(0,sg.default)(Ql.default.mark(function o(a,u){var f,d;return Ql.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return f=vMe(a,u),d=new hMe.default.Socket,O.abrupt("return",new Promise(function(q,K){d.connect(f,function(){return q(d)}),d.on("error",function(le){return K(le)})}));case 3:case"end":return O.stop()}},o)})),lMe.apply(this,arguments)}function zDt(o,a,u,f){var d=u.time;d||(d=oB()),f=f||mP(o);var w={uuid:a,data:u},O=r2(),q=d+"_"+a+"_"+O+".json",K=sk.default.join(f.messages,q);return FDt(K,JSON.stringify(w)).then(function(){return{time:d,uuid:a,token:O,path:K}})}function WDt(o,a){return uMe.apply(this,arguments)}function uMe(){return uMe=(0,sg.default)(Ql.default.mark(function o(a,u){var f,d;return Ql.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return u=u||mP(a),f=u.readers,O.next=4,yMe(f);case 4:return d=O.sent,O.abrupt("return",d.map(function(q){return q.split(".")}).filter(function(q){return q[1]==="json"}).map(function(q){return q[0]}));case 6:case"end":return O.stop()}},o)})),uMe.apply(this,arguments)}function san(o,a,u,f){return pMe.apply(this,arguments)}function pMe(){return pMe=(0,sg.default)(Ql.default.mark(function o(a,u,f,d){var w;return Ql.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return w=u+"_"+d+"_"+f+".json",q.abrupt("return",sk.default.join(mP(a).messages,w));case 2:case"end":return q.stop()}},o)})),pMe.apply(this,arguments)}function bMe(o,a){return fMe.apply(this,arguments)}function fMe(){return fMe=(0,sg.default)(Ql.default.mark(function o(a,u){var f,d;return Ql.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return u=u||mP(a),f=u.messages,O.next=4,yMe(f);case 4:return d=O.sent,O.abrupt("return",d.map(function(q){var K=q.split(".")[0],le=K.split("_");return{path:sk.default.join(f,q),time:parseInt(le[0]),senderUuid:le[1],token:le[2]}}));case 6:case"end":return O.stop()}},o)})),fMe.apply(this,arguments)}function UDt(o,a,u){return u=u||mP(o),{path:sk.default.join(u.messages,a.t+"_"+a.u+"_"+a.to+".json"),time:a.t,senderUuid:a.u,token:a.to}}function $Dt(o){return ean(o.path,"utf8").then(function(a){return JSON.parse(a)})}function VDt(o,a){return _Me.apply(this,arguments)}function _Me(){return _Me=(0,sg.default)(Ql.default.mark(function o(a,u){var f;return Ql.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return f=oB()-u*1e3,w.next=3,Promise.all(a.filter(function(O){return O.time<f}).map(function(O){return tan(O.path).catch(function(){return null})}));case 3:case"end":return w.stop()}},o)})),_Me.apply(this,arguments)}function can(o){return dMe.apply(this,arguments)}function dMe(){return dMe=(0,sg.default)(Ql.default.mark(function o(a){var u,f,d,w,O,q,K,le,ye,Be=arguments;return Ql.default.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return u=Be.length>1&&Be[1]!==void 0?Be[1]:{},u=oI(u),f=oB(),d=mP(a),w=RDt(a,d),O=r2(),q={time:f,channelName:a,options:u,uuid:O,paths:d,emittedMessagesIds:new fP(u.node.ttl*2),writeFileQueue:new Zin({concurrency:u.node.maxParallelWrites}),messagesCallbackTime:null,messagesCallback:null,writeBlockPromise:y0,otherReaderClients:{},removeUnload:(0,ADt.add)(function(){return GDt(q)}),closed:!1},sB[a]||(sB[a]=[]),sB[a].push(q),mt.next=11,w;case 11:return mt.next=13,Promise.all([qDt(a,O,d),LDt(a,O,d),TMe(q)]);case 13:return K=mt.sent,le=K[0],ye=K[1],q.socketEE=le,q.infoFilePath=ye,le.emitter.on("data",function(Re){var Ge=Re.split("|");Ge.filter(function(_r){return _r!==""}).forEach(function(_r){try{var jr=JSON.parse(_r);SMe(q,jr)}catch{throw new Error("could not parse data: "+_r)}})}),mt.abrupt("return",q);case 20:case"end":return mt.stop()}},o)})),dMe.apply(this,arguments)}function xMe(o,a){return o.senderUuid===a.uuid||a.emittedMessagesIds.has(o.token)||!a.messagesCallback||o.time<a.messagesCallbackTime||o.time<a.time?!1:(a.emittedMessagesIds.add(o.token),!0)}function SMe(o,a){return mMe.apply(this,arguments)}function mMe(){return mMe=(0,sg.default)(Ql.default.mark(function o(a,u){var f,d;return Ql.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(a.messagesCallback){O.next=2;break}return O.abrupt("return");case 2:if(u){O.next=8;break}return O.next=5,bMe(a.channelName,a.paths);case 5:f=O.sent,O.next=9;break;case 8:f=[UDt(a.channelName,u,a.paths)];case 9:if(d=f.filter(function(q){return xMe(q,a)}).sort(function(q,K){return q.time-K.time}),!(!d.length||!a.messagesCallback)){O.next=12;break}return O.abrupt("return");case 12:return O.next=14,Promise.all(d.map(function(q){return $Dt(q).then(function(K){return q.content=K})}));case 14:d.forEach(function(q){a.emittedMessagesIds.add(q.token),a.messagesCallback&&a.messagesCallback(q.content.data)});case 15:case"end":return O.stop()}},o)})),mMe.apply(this,arguments)}function TMe(o){return WDt(o.channelName,o.paths).then(function(a){return Object.keys(o.otherReaderClients).filter(function(u){return!a.includes(u)}).forEach(function(){var u=(0,sg.default)(Ql.default.mark(function f(d){return Ql.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,O.next=3,o.otherReaderClients[d].destroy();case 3:O.next=7;break;case 5:O.prev=5,O.t0=O.catch(0);case 7:delete o.otherReaderClients[d];case 8:case"end":return O.stop()}},f,null,[[0,5]])}));return function(f){return u.apply(this,arguments)}}()),Promise.all(a.filter(function(u){return u!==o.uuid}).filter(function(u){return!o.otherReaderClients[u]}).map(function(){var u=(0,sg.default)(Ql.default.mark(function f(d){var w;return Ql.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(q.prev=0,!o.closed){q.next=3;break}return q.abrupt("return");case 3:return q.prev=3,q.next=6,JDt(o.channelName,d);case 6:w=q.sent,o.otherReaderClients[d]=w,q.next=12;break;case 10:q.prev=10,q.t0=q.catch(3);case 12:q.next=16;break;case 14:q.prev=14,q.t1=q.catch(0);case 16:case"end":return q.stop()}},f,null,[[0,14],[3,10]])}));return function(f){return u.apply(this,arguments)}}()))})}function lan(o,a){return gMe.apply(this,arguments)}function gMe(){return gMe=(0,sg.default)(Ql.default.mark(function o(a,u){var f;return Ql.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return f=a.writeFileQueue.add(function(){return zDt(a.channelName,a.uuid,u,a.paths)}),a.writeBlockPromise=a.writeBlockPromise.then((0,sg.default)(Ql.default.mark(function O(){var q,K,le,ye;return Ql.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.next=2,new Promise(function(mt){return setTimeout(mt,0)});case 2:return ce.next=4,Promise.all([f,TMe(a)]);case 4:return q=ce.sent,K=q[0],HDt(a,K,u),le='{"t":'+K.time+',"u":"'+K.uuid+'","to":"'+K.token+'"}|',ye=Promise.all(Object.values(a.otherReaderClients).filter(function(mt){return mt.writable}).map(function(mt){return new Promise(function(Re){mt.write(le,Re)})})),Vfe(0,20)===0&&bMe(a.channelName,a.paths).then(function(mt){return VDt(mt,a.options.node.ttl)}),ce.abrupt("return",ye);case 11:case"end":return ce.stop()}},O)}))),w.abrupt("return",a.writeBlockPromise);case 3:case"end":return w.stop()}},o)})),gMe.apply(this,arguments)}function HDt(o,a,u){if(o.options.node.useFastPath){var f=sB[o.channelName].filter(function(w){return w!==o}),d={time:a.time,senderUuid:a.uuid,token:a.token};f.filter(function(w){return xMe(d,w)}).forEach(function(w){w.messagesCallback(u)})}}function uan(o,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oB();o.messagesCallbackTime=u,o.messagesCallback=a,SMe(o)}function GDt(o){return o.closed?y0:(o.closed=!0,o.emittedMessagesIds.clear(),sB[o.channelName]=sB[o.channelName].filter(function(a){return a!==o}),o.removeUnload&&o.removeUnload.remove(),new Promise(function(a){if(o.socketEE&&o.socketEE.emitter.removeAllListeners(),Object.values(o.otherReaderClients).forEach(function(u){return u.destroy()}),o.infoFilePath)try{dP.default.unlinkSync(o.infoFilePath)}catch{}setTimeout(function(){o.socketEE.server.close(),a()},200)}))}function pan(){return typeof dP.default.mkdir=="function"}function fan(){return 200}function oB(){return parseInt(_an()/1e3)}function _an(){return Number(process.hrtime.bigint())}var sg,Ql,lI,dP,DDt,ODt,NDt,hMe,sk,Zfe,ADt,Zin,e_e,FDt,ean,tan,yMe,tMe,ran,nan,sB,ian,cI,rMe,QG,oan,KDt=mi(()=>{sg=Ea(oDt(),1),Ql=Ea(_Dt(),1),lI=Ea(require("util"),1),dP=Ea(require("fs"),1),DDt=Ea(require("crypto"),1),ODt=Ea(require("os"),1),NDt=Ea(require("events"),1),hMe=Ea(require("net"),1),sk=Ea(require("path"),1),Zfe=Ea(TDt(),1),ADt=Ea(eMe(),1);HG();xO();VG();Zin=Zfe.default.default?Zfe.default.default:Zfe.default;e_e=lI.default.promisify(dP.default.mkdir),FDt=lI.default.promisify(dP.default.writeFile),ean=lI.default.promisify(dP.default.readFile),tan=lI.default.promisify(dP.default.unlink),yMe=lI.default.promisify(dP.default.readdir),tMe=lI.default.promisify(dP.default.chmod),ran=lI.default.promisify(dP.default.rm),nan=function(){var o=(0,sg.default)(Ql.default.mark(function a(u){return Ql.default.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,ran(u,{recursive:!0});case 3:return d.abrupt("return",d.sent);case 6:if(d.prev=6,d.t0=d.catch(0),d.t0.code==="ENOENT"){d.next=10;break}throw d.t0;case 10:case"end":return d.stop()}},a,null,[[0,6]])}));return function(u){return o.apply(this,arguments)}}(),sB={},ian="pubkey.bc",cI=sk.default.join(ODt.default.tmpdir(),ian),rMe=new Map;QG=null;oan="node"});function XDt(o){var a=[].concat(o.methods,QDt).filter(Boolean);if(a.push(wMe),o.type){if(o.type==="simulate")return iDt;var u=a.find(function(d){return d.type===o.type});if(u)return u;throw new Error("method-type "+o.type+" not found")}o.webWorkerSupport||(a=a.filter(function(d){return d.type!=="idb"}));var f=a.find(function(d){return d.canBeUsed()});if(f)return f;throw new Error("No usable method found in "+JSON.stringify(QDt.map(function(d){return d.type})))}var QDt,YDt=mi(()=>{$Et();QEt();tDt();aDt();KDt();QDt=[UEt,KEt,eDt]});function eOt(o,a,u){var f=o.method.microSeconds(),d={time:f,type:a,data:u},w=o._prepP?o._prepP:y0;return w.then(function(){var O=o.method.postMessage(o._state,d);return o._uMP.add(O),O.catch().then(function(){return o._uMP.delete(O)}),O})}function man(o){var a=o.method.create(o.name,o.options);JEt(a)?(o._prepP=a,a.then(function(u){o._state=u})):o._state=a}function nOt(o){return o._addEL.message.length>0||o._addEL.internal.length>0}function tOt(o,a,u){o._addEL[a].push(u),gan(o)}function rOt(o,a,u){o._addEL[a]=o._addEL[a].filter(function(f){return f!==u}),han(o)}function gan(o){if(!o._iL&&nOt(o)){var a=function(d){o._addEL[d.type].forEach(function(w){d.time>=w.time&&w.fn(d.data)})},u=o.method.microSeconds();o._prepP?o._prepP.then(function(){o._iL=!0,o.method.onMessage(o._state,a,u)}):(o._iL=!0,o.method.onMessage(o._state,a,u))}}function han(o){if(o._iL&&!nOt(o)){o._iL=!1;var a=o.method.microSeconds();o.method.onMessage(o._state,null,a)}}var kMe,dan,XG,ZDt,iOt=mi(()=>{xO();YDt();HG();kMe=new Set,dan=0,XG=function(a,u){this.id=dan++,kMe.add(this),this.name=a,ZDt&&(u=ZDt),this.options=oI(u),this.method=XDt(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,man(this)};XG._pubkey=!0;XG.prototype={postMessage:function(a){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(a));return eOt(this,"message",a)},postInternal:function(a){return eOt(this,"internal",a)},set onmessage(o){var a=this.method.microSeconds(),u={time:a,fn:o};rOt(this,"message",this._onML),o&&typeof o=="function"?(this._onML=u,tOt(this,"message",u)):this._onML=null},addEventListener:function(a,u){var f=this.method.microSeconds(),d={time:f,fn:u};tOt(this,a,d)},removeEventListener:function(a,u){var f=this._addEL[a].find(function(d){return d.fn===u});rOt(this,a,f)},close:function(){var a=this;if(!this.closed){kMe.delete(this),this.closed=!0;var u=this._prepP?this._prepP:y0;return this._onML=null,this._addEL.message=[],u.then(function(){return Promise.all(Array.from(a._uMP))}).then(function(){return Promise.all(a._befC.map(function(f){return f()}))}).then(function(){return a.method.close(a._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}}});function kO(o,a){var u={context:"leader",action:a,token:o.token};return o.broadcastChannel.postInternal(u)}function t_e(o){o.isLeader=!0,o._hasLeader=!0;var a=(0,aOt.add)(function(){return o.die()});o._unl.push(a);var u=function(d){d.context==="leader"&&d.action==="apply"&&kO(o,"tell"),d.context==="leader"&&d.action==="tell"&&!o._dpLC&&(o._dpLC=!0,o._dpL(),kO(o,"tell"))};return o.broadcastChannel.addEventListener("internal",u),o._lstns.push(u),kO(o,"tell")}var aOt,CMe=mi(()=>{aOt=Ea(eMe(),1)});var PMe,sOt=mi(()=>{xO();CMe();PMe=function(a,u){var f=this;this.broadcastChannel=a,a._befC.push(function(){return f.die()}),this._options=u,this.isLeader=!1,this.isDead=!1,this.token=r2(),this._lstns=[],this._unl=[],this._dpL=function(){},this._dpLC=!1,this._wKMC={},this.lN="pubkey-bc||"+a.method.type+"||"+a.name};PMe.prototype={hasLeader:function(){var a=this;return navigator.locks.query().then(function(u){var f=u.held?u.held.filter(function(d){return d.name===a.lN}):[];return!!(f&&f.length>0)})},awaitLeadership:function(){var a=this;if(!this._wLMP){this._wKMC.c=new AbortController;var u=new Promise(function(f,d){a._wKMC.res=f,a._wKMC.rej=d});this._wLMP=new Promise(function(f){navigator.locks.request(a.lN,{signal:a._wKMC.c.signal},function(){return a._wKMC.c=void 0,t_e(a),f(),u}).catch(function(){})})}return this._wLMP},set onduplicate(o){},die:function(){var a=this;return this._lstns.forEach(function(u){return a.broadcastChannel.removeEventListener("internal",u)}),this._lstns=[],this._unl.forEach(function(u){return u.remove()}),this._unl=[],this.isLeader&&(this.isLeader=!1),this.isDead=!0,this._wKMC.res&&this._wKMC.res(),this._wKMC.c&&this._wKMC.c.abort("LeaderElectionWebLock.die() called"),kO(this,"death")}}});function yan(o){return o.isLeader?y0:new Promise(function(a){var u=!1;function f(){u||(u=!0,o.broadcastChannel.removeEventListener("internal",w),a(!0))}o.applyOnce().then(function(){o.isLeader&&f()});var d=function(){return _P(o._options.fallbackInterval).then(function(){if(!(o.isDead||u))if(o.isLeader)f();else return o.applyOnce(!0).then(function(){o.isLeader?f():d()})})};d();var w=function(q){q.context==="leader"&&q.action==="death"&&(o._hasLeader=!1,o.applyOnce().then(function(){o.isLeader&&f()}))};o.broadcastChannel.addEventListener("internal",w),o._lstns.push(w)})}function van(o,a){return o||(o={}),o=JSON.parse(JSON.stringify(o)),o.fallbackInterval||(o.fallbackInterval=3e3),o.responseTime||(o.responseTime=a.method.averageResponseTime(a.options)),o}function EMe(o,a){if(o._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");a=van(a,o);var u=WEt()?new PMe(o,a):new oOt(o,a);return o._befC.push(function(){return u.die()}),o._leaderElector=u,u}var oOt,cOt=mi(()=>{xO();CMe();sOt();oOt=function(a,u){var f=this;this.broadcastChannel=a,this._options=u,this.isLeader=!1,this._hasLeader=!1,this.isDead=!1,this.token=r2(),this._aplQ=y0,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1;var d=function(O){O.context==="leader"&&(O.action==="death"&&(f._hasLeader=!1),O.action==="tell"&&(f._hasLeader=!0))};this.broadcastChannel.addEventListener("internal",d),this._lstns.push(d)};oOt.prototype={hasLeader:function(){return Promise.resolve(this._hasLeader)},applyOnce:function(a){var u=this;if(this.isLeader)return _P(0,!0);if(this.isDead)return _P(0,!1);if(this._aplQC>1)return this._aplQ;var f=function(){if(u.isLeader)return zEt;var w=!1,O,q=new Promise(function(ye){O=function(){w=!0,ye()}}),K=function(Be){Be.context==="leader"&&Be.token!=u.token&&(Be.action==="apply"&&Be.token>u.token&&O(),Be.action==="tell"&&(O(),u._hasLeader=!0))};u.broadcastChannel.addEventListener("internal",K);var le=a?u._options.responseTime*4:u._options.responseTime;return kO(u,"apply").then(function(){return Promise.race([_P(le),q.then(function(){return Promise.reject(new Error)})])}).then(function(){return kO(u,"apply")}).then(function(){return Promise.race([_P(le),q.then(function(){return Promise.reject(new Error)})])}).catch(function(){}).then(function(){return u.broadcastChannel.removeEventListener("internal",K),w?!1:t_e(u).then(function(){return!0})})};return this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then(function(){return f()}).then(function(){u._aplQC=u._aplQC-1}),this._aplQ.then(function(){return u.isLeader})},awaitLeadership:function(){return this._aLP||(this._aLP=yan(this)),this._aLP},set onduplicate(o){this._dpL=o},die:function(){var a=this;return this._lstns.forEach(function(u){return a.broadcastChannel.removeEventListener("internal",u)}),this._lstns=[],this._unl.forEach(function(u){return u.remove()}),this._unl=[],this.isLeader&&(this._hasLeader=!1,this.isLeader=!1),this.isDead=!0,kO(this,"death")}}});var DMe=mi(()=>{iOt();cOt()});function OMe(o,a,u,f){var d=r_e.get(a);return d||(d={bc:new XG(["RxDB:",o,u].join("|")),refs:new Set},r_e.set(a,d)),d.refs.add(f),d.bc}function n_e(o,a){var u=r_e.get(o);if(u&&(u.refs.delete(a),u.refs.size===0))return r_e.delete(o),u.bc.close()}function pOt(o,a,u,f){if(a.multiInstance){var d=f||OMe(o,a.databaseInstanceToken,u.databaseName,u),w=new lOt.Subject,O=ce=>{ce.storageName===o&&ce.databaseName===a.databaseName&&ce.collectionName===a.collectionName&&ce.version===a.schema.version&&w.next(ce.eventBulk)};d.addEventListener("message",O);var q=u.changeStream(),K=!1,le=q.subscribe(ce=>{K||d.postMessage({storageName:o,databaseName:a.databaseName,collectionName:a.collectionName,version:a.schema.version,eventBulk:ce})});u.changeStream=function(){return w.asObservable().pipe((0,uOt.mergeWith)(q))};var ye=u.close.bind(u);u.close=async function(){return K=!0,le.unsubscribe(),d.removeEventListener("message",O),f||await n_e(a.databaseInstanceToken,u),ye()};var Be=u.remove.bind(u);u.remove=async function(){return K=!0,le.unsubscribe(),d.removeEventListener("message",O),f||await n_e(a.databaseInstanceToken,u),Be()}}}var lOt,uOt,r_e,i_e=mi(()=>{lOt=Ea(q9(),1),uOt=Ea(D9(),1);DMe();r_e=new Map});var fOt=mi(()=>{});var _Ot=mi(()=>{});var dOt=mi(()=>{IEt();B5e();ng();Jfe();Ab();Ufe();Wfe();JG();O9();N5e();UG();P5e();tB();Zoe();Qw();ak();qEt();i_e();fOt();kpe();_Ot();O_();Kw();Rfe()});var mOt=Ve((NMe,AMe)=>{(function(o,a){typeof NMe=="object"&&typeof AMe<"u"?AMe.exports=a():typeof define=="function"&&define.amd?define(a):(o=typeof globalThis<"u"?globalThis:o||self,o.Dexie=a())})(NMe,function(){"use strict";var o=function(Z,ee){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,Je){Ce.__proto__=Je}||function(Ce,Je){for(var Ze in Je)Object.prototype.hasOwnProperty.call(Je,Ze)&&(Ce[Ze]=Je[Ze])},o(Z,ee)};function a(Z,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");o(Z,ee);function Ce(){this.constructor=Z}Z.prototype=ee===null?Object.create(ee):(Ce.prototype=ee.prototype,new Ce)}var u=function(){return u=Object.assign||function(ee){for(var Ce,Je=1,Ze=arguments.length;Je<Ze;Je++){Ce=arguments[Je];for(var bt in Ce)Object.prototype.hasOwnProperty.call(Ce,bt)&&(ee[bt]=Ce[bt])}return ee},u.apply(this,arguments)};function f(Z,ee,Ce){if(Ce||arguments.length===2)for(var Je=0,Ze=ee.length,bt;Je<Ze;Je++)(bt||!(Je in ee))&&(bt||(bt=Array.prototype.slice.call(ee,0,Je)),bt[Je]=ee[Je]);return Z.concat(bt||Array.prototype.slice.call(ee))}var d=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,w=Object.keys,O=Array.isArray;typeof Promise<"u"&&!d.Promise&&(d.Promise=Promise);function q(Z,ee){return typeof ee!="object"||w(ee).forEach(function(Ce){Z[Ce]=ee[Ce]}),Z}var K=Object.getPrototypeOf,le={}.hasOwnProperty;function ye(Z,ee){return le.call(Z,ee)}function Be(Z,ee){typeof ee=="function"&&(ee=ee(K(Z))),(typeof Reflect>"u"?w:Reflect.ownKeys)(ee).forEach(function(Ce){mt(Z,Ce,ee[Ce])})}var ce=Object.defineProperty;function mt(Z,ee,Ce,Je){ce(Z,ee,q(Ce&&ye(Ce,"get")&&typeof Ce.get=="function"?{get:Ce.get,set:Ce.set,configurable:!0}:{value:Ce,configurable:!0,writable:!0},Je))}function Re(Z){return{from:function(ee){return Z.prototype=Object.create(ee.prototype),mt(Z.prototype,"constructor",Z),{extend:Be.bind(null,Z.prototype)}}}}var Ge=Object.getOwnPropertyDescriptor;function _r(Z,ee){var Ce=Ge(Z,ee),Je;return Ce||(Je=K(Z))&&_r(Je,ee)}var jr=[].slice;function si(Z,ee,Ce){return jr.call(Z,ee,Ce)}function Oi(Z,ee){return ee(Z)}function ys(Z){if(!Z)throw new Error("Assertion Failed")}function ns(Z){d.setImmediate?setImmediate(Z):setTimeout(Z,0)}function sn(Z,ee){return Z.reduce(function(Ce,Je,Ze){var bt=ee(Je,Ze);return bt&&(Ce[bt[0]]=bt[1]),Ce},{})}function Ir(Z,ee){if(typeof ee=="string"&&ye(Z,ee))return Z[ee];if(!ee)return Z;if(typeof ee!="string"){for(var Ce=[],Je=0,Ze=ee.length;Je<Ze;++Je){var bt=Ir(Z,ee[Je]);Ce.push(bt)}return Ce}var Ht=ee.indexOf(".");if(Ht!==-1){var mr=Z[ee.substr(0,Ht)];return mr==null?void 0:Ir(mr,ee.substr(Ht+1))}}function Ks(Z,ee,Ce){if(!(!Z||ee===void 0)&&!("isFrozen"in Object&&Object.isFrozen(Z)))if(typeof ee!="string"&&"length"in ee){ys(typeof Ce!="string"&&"length"in Ce);for(var Je=0,Ze=ee.length;Je<Ze;++Je)Ks(Z,ee[Je],Ce[Je])}else{var bt=ee.indexOf(".");if(bt!==-1){var Ht=ee.substr(0,bt),mr=ee.substr(bt+1);if(mr==="")Ce===void 0?O(Z)&&!isNaN(parseInt(Ht))?Z.splice(Ht,1):delete Z[Ht]:Z[Ht]=Ce;else{var hr=Z[Ht];(!hr||!ye(Z,Ht))&&(hr=Z[Ht]={}),Ks(hr,mr,Ce)}}else Ce===void 0?O(Z)&&!isNaN(parseInt(ee))?Z.splice(ee,1):delete Z[ee]:Z[ee]=Ce}}function Va(Z,ee){typeof ee=="string"?Ks(Z,ee,void 0):"length"in ee&&[].map.call(ee,function(Ce){Ks(Z,Ce,void 0)})}function up(Z){var ee={};for(var Ce in Z)ye(Z,Ce)&&(ee[Ce]=Z[Ce]);return ee}var Ta=[].concat;function f_(Z){return Ta.apply([],Z)}var Vu="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(f_([8,16,32,64].map(function(Z){return["Int","Uint","Float"].map(function(ee){return ee+Z+"Array"})}))).filter(function(Z){return d[Z]}),Cn=new Set(Vu.map(function(Z){return d[Z]}));function __(Z){var ee={};for(var Ce in Z)if(ye(Z,Ce)){var Je=Z[Ce];ee[Ce]=!Je||typeof Je!="object"||Cn.has(Je.constructor)?Je:__(Je)}return ee}function wa(Z){for(var ee in Z)if(ye(Z,ee))return!1;return!0}var Dt=null;function ci(Z){Dt=new WeakMap;var ee=ia(Z);return Dt=null,ee}function ia(Z){if(!Z||typeof Z!="object")return Z;var ee=Dt.get(Z);if(ee)return ee;if(O(Z)){ee=[],Dt.set(Z,ee);for(var Ce=0,Je=Z.length;Ce<Je;++Ce)ee.push(ia(Z[Ce]))}else if(Cn.has(Z.constructor))ee=Z;else{var Ze=K(Z);ee=Ze===Object.prototype?{}:Object.create(Ze),Dt.set(Z,ee);for(var bt in Z)ye(Z,bt)&&(ee[bt]=ia(Z[bt]))}return ee}var js={}.toString;function li(Z){return js.call(Z).slice(8,-1)}var xl=typeof Symbol<"u"?Symbol.iterator:"@@iterator",Xl=typeof xl=="symbol"?function(Z){var ee;return Z!=null&&(ee=Z[xl])&&ee.apply(Z)}:function(){return null};function Vc(Z,ee){var Ce=Z.indexOf(ee);return Ce>=0&&Z.splice(Ce,1),Ce>=0}var ku={};function Bi(Z){var ee,Ce,Je,Ze;if(arguments.length===1){if(O(Z))return Z.slice();if(this===ku&&typeof Z=="string")return[Z];if(Ze=Xl(Z)){for(Ce=[];Je=Ze.next(),!Je.done;)Ce.push(Je.value);return Ce}if(Z==null)return[Z];if(ee=Z.length,typeof ee=="number"){for(Ce=new Array(ee);ee--;)Ce[ee]=Z[ee];return Ce}return[Z]}for(ee=arguments.length,Ce=new Array(ee);ee--;)Ce[ee]=arguments[ee];return Ce}var pf=typeof Symbol<"u"?function(Z){return Z[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},A_=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],Ty=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],uI=A_.concat(Ty),z7={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 ok(Z,ee){this.name=Z,this.message=ee}Re(ok).from(Error).extend({toString:function(){return this.name+": "+this.message}});function Pt(Z,ee){return Z+". Errors: "+Object.keys(ee).map(function(Ce){return ee[Ce].toString()}).filter(function(Ce,Je,Ze){return Ze.indexOf(Ce)===Je}).join(`
|
|
`)}function gP(Z,ee,Ce,Je){this.failures=ee,this.failedKeys=Je,this.successCount=Ce,this.message=Pt(Z,ee)}Re(gP).from(ok);function ya(Z,ee){this.name="BulkError",this.failures=Object.keys(ee).map(function(Ce){return ee[Ce]}),this.failuresByPos=ee,this.message=Pt(Z,this.failures)}Re(ya).from(ok);var _B=uI.reduce(function(Z,ee){return Z[ee]=ee+"Error",Z},{}),pI=ok,yc=uI.reduce(function(Z,ee){var Ce=ee+"Error";function Je(Ze,bt){this.name=Ce,Ze?typeof Ze=="string"?(this.message="".concat(Ze).concat(bt?`
|
|
`+bt:""),this.inner=bt||null):typeof Ze=="object"&&(this.message="".concat(Ze.name," ").concat(Ze.message),this.inner=Ze):(this.message=z7[ee]||Ce,this.inner=null)}return Re(Je).from(pI),Z[ee]=Je,Z},{});yc.Syntax=SyntaxError,yc.Type=TypeError,yc.Range=RangeError;var iK=Ty.reduce(function(Z,ee){return Z[ee+"Error"]=yc[ee],Z},{});function zb(Z,ee){if(!Z||Z instanceof ok||Z instanceof TypeError||Z instanceof SyntaxError||!Z.name||!iK[Z.name])return Z;var Ce=new iK[Z.name](ee||Z.message,Z);return"stack"in Z&&mt(Ce,"stack",{get:function(){return this.inner.stack}}),Ce}var W7=uI.reduce(function(Z,ee){return["Syntax","Type","Range"].indexOf(ee)===-1&&(Z[ee+"Error"]=yc[ee]),Z},{});W7.ModifyError=gP,W7.DexieError=ok,W7.BulkError=ya;function pp(){}function Mg(Z){return Z}function hP(Z,ee){return Z==null||Z===Mg?ee:function(Ce){return ee(Z(Ce))}}function Rp(Z,ee){return function(){Z.apply(this,arguments),ee.apply(this,arguments)}}function PO(Z,ee){return Z===pp?ee:function(){var Ce=Z.apply(this,arguments);Ce!==void 0&&(arguments[0]=Ce);var Je=this.onsuccess,Ze=this.onerror;this.onsuccess=null,this.onerror=null;var bt=ee.apply(this,arguments);return Je&&(this.onsuccess=this.onsuccess?Rp(Je,this.onsuccess):Je),Ze&&(this.onerror=this.onerror?Rp(Ze,this.onerror):Ze),bt!==void 0?bt:Ce}}function dB(Z,ee){return Z===pp?ee:function(){Z.apply(this,arguments);var Ce=this.onsuccess,Je=this.onerror;this.onsuccess=this.onerror=null,ee.apply(this,arguments),Ce&&(this.onsuccess=this.onsuccess?Rp(Ce,this.onsuccess):Ce),Je&&(this.onerror=this.onerror?Rp(Je,this.onerror):Je)}}function Zr(Z,ee){return Z===pp?ee:function(Ce){var Je=Z.apply(this,arguments);q(Ce,Je);var Ze=this.onsuccess,bt=this.onerror;this.onsuccess=null,this.onerror=null;var Ht=ee.apply(this,arguments);return Ze&&(this.onsuccess=this.onsuccess?Rp(Ze,this.onsuccess):Ze),bt&&(this.onerror=this.onerror?Rp(bt,this.onerror):bt),Je===void 0?Ht===void 0?void 0:Ht:q(Je,Ht)}}function n2(Z,ee){return Z===pp?ee:function(){return ee.apply(this,arguments)===!1?!1:Z.apply(this,arguments)}}function fI(Z,ee){return Z===pp?ee:function(){var Ce=Z.apply(this,arguments);if(Ce&&typeof Ce.then=="function"){for(var Je=this,Ze=arguments.length,bt=new Array(Ze);Ze--;)bt[Ze]=arguments[Ze];return Ce.then(function(){return ee.apply(Je,bt)})}return ee.apply(this,arguments)}}var ti=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function I_(Z,ee){ti=Z}var Mm={},aK=100,ff=typeof Promise>"u"?[]:function(){var Z=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[Z,K(Z),Z];var ee=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[ee,K(ee),Z]}(),_I=ff[0],dI=ff[1],b0=ff[2],Yl=dI&&dI.then,h1=_I&&_I.constructor,ho=!!b0;function U7(){queueMicrotask(ck)}var dc=function(Z,ee){Qu.push([Z,ee]),Zd&&(U7(),Zd=!1)},ao=!0,Zd=!0,fS=[],em=[],EO=Mg,tm={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pp,pgp:!1,env:{},finalize:pp},ko=tm,Qu=[],og=0,ec=[];function As(Z){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var ee=this._PSD=ko;if(typeof Z!="function"){if(Z!==Mm)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&mI(this,this._value);return}this._state=null,this._value=null,++ee.ref,_S(this,Z)}var rm={get:function(){var Z=ko,ee=vP;function Ce(Je,Ze){var bt=this,Ht=!Z.global&&(Z!==ko||ee!==vP),mr=Ht&&!nm(),hr=new As(function(Jr,On){y1(bt,new mB(vc(Je,Z,Ht,mr),vc(Ze,Z,Ht,mr),Jr,On,Z))});return this._consoleTask&&(hr._consoleTask=this._consoleTask),hr}return Ce.prototype=Mm,Ce},set:function(Z){mt(this,"then",Z&&Z.prototype===Mm?rm:{get:function(){return Z},set:rm.set})}};Be(As.prototype,{then:rm,_then:function(Z,ee){y1(this,new mB(null,null,Z,ee,ko))},catch:function(Z){if(arguments.length===1)return this.then(null,Z);var ee=arguments[0],Ce=arguments[1];return typeof ee=="function"?this.then(null,function(Je){return Je instanceof ee?Ce(Je):yP(Je)}):this.then(null,function(Je){return Je&&Je.name===ee?Ce(Je):yP(Je)})},finally:function(Z){return this.then(function(ee){return As.resolve(Z()).then(function(){return ee})},function(ee){return As.resolve(Z()).then(function(){return yP(ee)})})},timeout:function(Z,ee){var Ce=this;return Z<1/0?new As(function(Je,Ze){var bt=setTimeout(function(){return Ze(new yc.Timeout(ee))},Z);Ce.then(Je,Ze).finally(clearTimeout.bind(null,bt))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&mt(As.prototype,Symbol.toStringTag,"Dexie.Promise"),tm.env=v1();function mB(Z,ee,Ce,Je,Ze){this.onFulfilled=typeof Z=="function"?Z:null,this.onRejected=typeof ee=="function"?ee:null,this.resolve=Ce,this.reject=Je,this.psd=Ze}Be(As,{all:function(){var Z=Bi.apply(null,arguments).map(_i);return new As(function(ee,Ce){Z.length===0&&ee([]);var Je=Z.length;Z.forEach(function(Ze,bt){return As.resolve(Ze).then(function(Ht){Z[bt]=Ht,--Je||ee(Z)},Ce)})})},resolve:function(Z){if(Z instanceof As)return Z;if(Z&&typeof Z.then=="function")return new As(function(Ce,Je){Z.then(Ce,Je)});var ee=new As(Mm,!0,Z);return ee},reject:yP,race:function(){var Z=Bi.apply(null,arguments).map(_i);return new As(function(ee,Ce){Z.map(function(Je){return As.resolve(Je).then(ee,Ce)})})},PSD:{get:function(){return ko},set:function(Z){return ko=Z}},totalEchoes:{get:function(){return vP}},newPSD:Sh,usePSD:Rg,scheduler:{get:function(){return dc},set:function(Z){dc=Z}},rejectionMapper:{get:function(){return EO},set:function(Z){EO=Z}},follow:function(Z,ee){return new As(function(Ce,Je){return Sh(function(Ze,bt){var Ht=ko;Ht.unhandleds=[],Ht.onunhandled=bt,Ht.finalize=Rp(function(){var mr=this;$7(function(){mr.unhandleds.length===0?Ze():bt(mr.unhandleds[0])})},Ht.finalize),Z()},ee,Ce,Je)})}}),h1&&(h1.allSettled&&mt(As,"allSettled",function(){var Z=Bi.apply(null,arguments).map(_i);return new As(function(ee){Z.length===0&&ee([]);var Ce=Z.length,Je=new Array(Ce);Z.forEach(function(Ze,bt){return As.resolve(Ze).then(function(Ht){return Je[bt]={status:"fulfilled",value:Ht}},function(Ht){return Je[bt]={status:"rejected",reason:Ht}}).then(function(){return--Ce||ee(Je)})})})}),h1.any&&typeof AggregateError<"u"&&mt(As,"any",function(){var Z=Bi.apply(null,arguments).map(_i);return new As(function(ee,Ce){Z.length===0&&Ce(new AggregateError([]));var Je=Z.length,Ze=new Array(Je);Z.forEach(function(bt,Ht){return As.resolve(bt).then(function(mr){return ee(mr)},function(mr){Ze[Ht]=mr,--Je||Ce(new AggregateError(Ze))})})})}),h1.withResolvers&&(As.withResolvers=h1.withResolvers));function _S(Z,ee){try{ee(function(Ce){if(Z._state===null){if(Ce===Z)throw new TypeError("A promise cannot be resolved with itself.");var Je=Z._lib&&lk();Ce&&typeof Ce.then=="function"?_S(Z,function(Ze,bt){Ce instanceof As?Ce._then(Ze,bt):Ce.then(Ze,bt)}):(Z._state=!0,Z._value=Ce,Ka(Z)),Je&&Wb()}},mI.bind(null,Z))}catch(Ce){mI(Z,Ce)}}function mI(Z,ee){if(em.push(ee),Z._state===null){var Ce=Z._lib&&lk();ee=EO(ee),Z._state=!1,Z._value=ee,hB(Z),Ka(Z),Ce&&Wb()}}function Ka(Z){var ee=Z._listeners;Z._listeners=[];for(var Ce=0,Je=ee.length;Ce<Je;++Ce)y1(Z,ee[Ce]);var Ze=Z._PSD;--Ze.ref||Ze.finalize(),og===0&&(++og,dc(function(){--og===0&&dS()},[]))}function y1(Z,ee){if(Z._state===null){Z._listeners.push(ee);return}var Ce=Z._state?ee.onFulfilled:ee.onRejected;if(Ce===null)return(Z._state?ee.resolve:ee.reject)(Z._value);++ee.psd.ref,++og,dc(gB,[Ce,Z,ee])}function gB(Z,ee,Ce){try{var Je,Ze=ee._value;!ee._state&&em.length&&(em=[]),Je=ti&&ee._consoleTask?ee._consoleTask.run(function(){return Z(Ze)}):Z(Ze),!ee._state&&em.indexOf(Ze)===-1&&gI(ee),Ce.resolve(Je)}catch(bt){Ce.reject(bt)}finally{--og===0&&dS(),--Ce.psd.ref||Ce.psd.finalize()}}function ck(){Rg(tm,function(){lk()&&Wb()})}function lk(){var Z=ao;return ao=!1,Zd=!1,Z}function Wb(){var Z,ee,Ce;do for(;Qu.length>0;)for(Z=Qu,Qu=[],Ce=Z.length,ee=0;ee<Ce;++ee){var Je=Z[ee];Je[0].apply(null,Je[1])}while(Qu.length>0);ao=!0,Zd=!0}function dS(){var Z=fS;fS=[],Z.forEach(function(Je){Je._PSD.onunhandled.call(null,Je._value,Je)});for(var ee=ec.slice(0),Ce=ee.length;Ce;)ee[--Ce]()}function $7(Z){function ee(){Z(),ec.splice(ec.indexOf(ee),1)}ec.push(ee),++og,dc(function(){--og===0&&dS()},[])}function hB(Z){fS.some(function(ee){return ee._value===Z._value})||fS.push(Z)}function gI(Z){for(var ee=fS.length;ee;)if(fS[--ee]._value===Z._value){fS.splice(ee,1);return}}function yP(Z){return new As(Mm,!1,Z)}function Ra(Z,ee){var Ce=ko;return function(){var Je=lk(),Ze=ko;try{return cd(Ce,!0),Z.apply(this,arguments)}catch(bt){ee&&ee(bt)}finally{cd(Ze,!1),Je&&Wb()}}}var Zl={awaits:0,echoes:0,id:0},__e=0,V7=[],i2=0,vP=0,cs=0;function Sh(Z,ee,Ce,Je){var Ze=ko,bt=Object.create(Ze);bt.parent=Ze,bt.ref=0,bt.global=!1,bt.id=++cs,tm.env,bt.env=ho?{Promise:As,PromiseProp:{value:As,configurable:!0,writable:!0},all:As.all,race:As.race,allSettled:As.allSettled,any:As.any,resolve:As.resolve,reject:As.reject}:{},ee&&q(bt,ee),++Ze.ref,bt.finalize=function(){--this.parent.ref||this.parent.finalize()};var Ht=Rg(bt,Z,Ce,Je);return bt.ref===0&&bt.finalize(),Ht}function Ua(){return Zl.id||(Zl.id=++__e),++Zl.awaits,Zl.echoes+=aK,Zl.id}function nm(){return Zl.awaits?(--Zl.awaits===0&&(Zl.id=0),Zl.echoes=Zl.awaits*aK,!0):!1}(""+Yl).indexOf("[native code]")===-1&&(Ua=nm=pp);function _i(Z){return Zl.echoes&&Z&&Z.constructor===h1?(Ua(),Z.then(function(ee){return nm(),ee},function(ee){return nm(),ld(ee)})):Z}function Js(Z){++vP,(!Zl.echoes||--Zl.echoes===0)&&(Zl.echoes=Zl.awaits=Zl.id=0),V7.push(ko),cd(Z,!0)}function Ko(){var Z=V7[V7.length-1];V7.pop(),cd(Z,!1)}function cd(Z,ee){var Ce=ko;if((ee?Zl.echoes&&(!i2++||Z!==ko):i2&&(!--i2||Z!==ko))&&queueMicrotask(ee?Js.bind(null,Z):Ko),Z!==ko&&(ko=Z,Ce===tm&&(tm.env=v1()),ho)){var Je=tm.env.Promise,Ze=Z.env;(Ce.global||Z.global)&&(Object.defineProperty(d,"Promise",Ze.PromiseProp),Je.all=Ze.all,Je.race=Ze.race,Je.resolve=Ze.resolve,Je.reject=Ze.reject,Ze.allSettled&&(Je.allSettled=Ze.allSettled),Ze.any&&(Je.any=Ze.any))}}function v1(){var Z=d.Promise;return ho?{Promise:Z,PromiseProp:Object.getOwnPropertyDescriptor(d,"Promise"),all:Z.all,race:Z.race,allSettled:Z.allSettled,any:Z.any,resolve:Z.resolve,reject:Z.reject}:{}}function Rg(Z,ee,Ce,Je,Ze){var bt=ko;try{return cd(Z,!0),ee(Ce,Je,Ze)}finally{cd(bt,!1)}}function vc(Z,ee,Ce,Je){return typeof Z!="function"?Z:function(){var Ze=ko;Ce&&Ua(),cd(ee,!0);try{return Z.apply(this,arguments)}finally{cd(Ze,!1),Je&&queueMicrotask(nm)}}}function yB(Z){Promise===h1&&Zl.echoes===0?i2===0?Z():enqueueNativeMicroTask(Z):setTimeout(Z,0)}var ld=As.reject;function wy(Z,ee,Ce,Je){if(!Z.idbdb||!Z._state.openComplete&&!ko.letThrough&&!Z._vip){if(Z._state.openComplete)return ld(new yc.DatabaseClosed(Z._state.dbOpenError));if(!Z._state.isBeingOpened){if(!Z._state.autoOpen)return ld(new yc.DatabaseClosed);Z.open().catch(pp)}return Z._state.dbReadyPromise.then(function(){return wy(Z,ee,Ce,Je)})}else{var Ze=Z._createTransaction(ee,Ce,Z._dbSchema);try{Ze.create(),Z._state.PR1398_maxLoop=3}catch(bt){return bt.name===_B.InvalidState&&Z.isOpen()&&--Z._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),Z.close({disableAutoOpen:!1}),Z.open().then(function(){return wy(Z,ee,Ce,Je)})):ld(bt)}return Ze._promise(ee,function(bt,Ht){return Sh(function(){return ko.trans=Ze,Je(bt,Ht,Ze)})}).then(function(bt){if(ee==="readwrite")try{Ze.idbtrans.commit()}catch{}return ee==="readonly"?bt:Ze._completion.then(function(){return bt})})}}var zs="4.0.10",Cu="\uFFFF",im=-1/0,Ub="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",pv="String expected.",cg=[],fv="__dbnames",H7="readonly",mc="readwrite";function $b(Z,ee){return Z?ee?function(){return Z.apply(this,arguments)&&ee.apply(this,arguments)}:Z:ee}var hI={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function bP(Z){return typeof Z=="string"&&!/\./.test(Z)?function(ee){return ee[Z]===void 0&&Z in ee&&(ee=ci(ee),delete ee[Z]),ee}:function(ee){return ee}}function xP(){throw yc.Type()}function au(Z,ee){try{var Ce=sK(Z),Je=sK(ee);if(Ce!==Je)return Ce==="Array"?1:Je==="Array"?-1:Ce==="binary"?1:Je==="binary"?-1:Ce==="string"?1:Je==="string"?-1:Ce==="Date"?1:Je!=="Date"?NaN:-1;switch(Ce){case"number":case"Date":case"string":return Z>ee?1:Z<ee?-1:0;case"binary":return uk(yI(Z),yI(ee));case"Array":return fp(Z,ee)}}catch{}return NaN}function fp(Z,ee){for(var Ce=Z.length,Je=ee.length,Ze=Ce<Je?Ce:Je,bt=0;bt<Ze;++bt){var Ht=au(Z[bt],ee[bt]);if(Ht!==0)return Ht}return Ce===Je?0:Ce<Je?-1:1}function uk(Z,ee){for(var Ce=Z.length,Je=ee.length,Ze=Ce<Je?Ce:Je,bt=0;bt<Ze;++bt)if(Z[bt]!==ee[bt])return Z[bt]<ee[bt]?-1:1;return Ce===Je?0:Ce<Je?-1:1}function sK(Z){var ee=typeof Z;if(ee!=="object")return ee;if(ArrayBuffer.isView(Z))return"binary";var Ce=li(Z);return Ce==="ArrayBuffer"?"binary":Ce}function yI(Z){return Z instanceof Uint8Array?Z:ArrayBuffer.isView(Z)?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z)}var vI=function(){function Z(){}return Z.prototype._trans=function(ee,Ce,Je){var Ze=this._tx||ko.trans,bt=this.name,Ht=ti&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(ee==="readonly"?"read":"write"," ").concat(this.name));function mr(On,fn,Ni){if(!Ni.schema[bt])throw new yc.NotFound("Table "+bt+" not part of transaction");return Ce(Ni.idbtrans,Ni)}var hr=lk();try{var Jr=Ze&&Ze.db._novip===this.db._novip?Ze===ko.trans?Ze._promise(ee,mr,Je):Sh(function(){return Ze._promise(ee,mr,Je)},{trans:Ze,transless:ko.transless||ko}):wy(this.db,ee,[this.name],mr);return Ht&&(Jr._consoleTask=Ht,Jr=Jr.catch(function(On){return console.trace(On),ld(On)})),Jr}finally{hr&&Wb()}},Z.prototype.get=function(ee,Ce){var Je=this;return ee&&ee.constructor===Object?this.where(ee).first(Ce):ee==null?ld(new yc.Type("Invalid argument to Table.get()")):this._trans("readonly",function(Ze){return Je.core.get({trans:Ze,key:ee}).then(function(bt){return Je.hook.reading.fire(bt)})}).then(Ce)},Z.prototype.where=function(ee){if(typeof ee=="string")return new this.db.WhereClause(this,ee);if(O(ee))return new this.db.WhereClause(this,"[".concat(ee.join("+"),"]"));var Ce=w(ee);if(Ce.length===1)return this.where(Ce[0]).equals(ee[Ce[0]]);var Je=this.schema.indexes.concat(this.schema.primKey).filter(function(On){if(On.compound&&Ce.every(function(Ni){return On.keyPath.indexOf(Ni)>=0})){for(var fn=0;fn<Ce.length;++fn)if(Ce.indexOf(On.keyPath[fn])===-1)return!1;return!0}return!1}).sort(function(On,fn){return On.keyPath.length-fn.keyPath.length})[0];if(Je&&this.db._maxKey!==Cu){var Ze=Je.keyPath.slice(0,Ce.length);return this.where(Ze).equals(Ze.map(function(On){return ee[On]}))}!Je&&ti&&console.warn("The query ".concat(JSON.stringify(ee)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(Ce.join("+"),"]"));var bt=this.schema.idxByName;function Ht(On,fn){return au(On,fn)===0}var mr=Ce.reduce(function(On,fn){var Ni=On[0],Ba=On[1],mn=bt[fn],$n=ee[fn];return[Ni||mn,Ni||!mn?$b(Ba,mn&&mn.multi?function(Si){var ea=Ir(Si,fn);return O(ea)&&ea.some(function(zi){return Ht($n,zi)})}:function(Si){return Ht($n,Ir(Si,fn))}):Ba]},[null,null]),hr=mr[0],Jr=mr[1];return hr?this.where(hr.name).equals(ee[hr.keyPath]).filter(Jr):Je?this.filter(Jr):this.where(Ce).equals("")},Z.prototype.filter=function(ee){return this.toCollection().and(ee)},Z.prototype.count=function(ee){return this.toCollection().count(ee)},Z.prototype.offset=function(ee){return this.toCollection().offset(ee)},Z.prototype.limit=function(ee){return this.toCollection().limit(ee)},Z.prototype.each=function(ee){return this.toCollection().each(ee)},Z.prototype.toArray=function(ee){return this.toCollection().toArray(ee)},Z.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Z.prototype.orderBy=function(ee){return new this.db.Collection(new this.db.WhereClause(this,O(ee)?"[".concat(ee.join("+"),"]"):ee))},Z.prototype.reverse=function(){return this.toCollection().reverse()},Z.prototype.mapToClass=function(ee){var Ce=this,Je=Ce.db,Ze=Ce.name;this.schema.mappedClass=ee,ee.prototype instanceof xP&&(ee=function(hr){a(Jr,hr);function Jr(){return hr!==null&&hr.apply(this,arguments)||this}return Object.defineProperty(Jr.prototype,"db",{get:function(){return Je},enumerable:!1,configurable:!0}),Jr.prototype.table=function(){return Ze},Jr}(ee));for(var bt=new Set,Ht=ee.prototype;Ht;Ht=K(Ht))Object.getOwnPropertyNames(Ht).forEach(function(hr){return bt.add(hr)});var mr=function(hr){if(!hr)return hr;var Jr=Object.create(ee.prototype);for(var On in hr)if(!bt.has(On))try{Jr[On]=hr[On]}catch{}return Jr};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=mr,this.hook("reading",mr),ee},Z.prototype.defineClass=function(){function ee(Ce){q(this,Ce)}return this.mapToClass(ee)},Z.prototype.add=function(ee,Ce){var Je=this,Ze=this.schema.primKey,bt=Ze.auto,Ht=Ze.keyPath,mr=ee;return Ht&&bt&&(mr=bP(Ht)(ee)),this._trans("readwrite",function(hr){return Je.core.mutate({trans:hr,type:"add",keys:Ce!=null?[Ce]:null,values:[mr]})}).then(function(hr){return hr.numFailures?As.reject(hr.failures[0]):hr.lastResult}).then(function(hr){if(Ht)try{Ks(ee,Ht,hr)}catch{}return hr})},Z.prototype.update=function(ee,Ce){if(typeof ee=="object"&&!O(ee)){var Je=Ir(ee,this.schema.primKey.keyPath);return Je===void 0?ld(new yc.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(Je).modify(Ce)}else return this.where(":id").equals(ee).modify(Ce)},Z.prototype.put=function(ee,Ce){var Je=this,Ze=this.schema.primKey,bt=Ze.auto,Ht=Ze.keyPath,mr=ee;return Ht&&bt&&(mr=bP(Ht)(ee)),this._trans("readwrite",function(hr){return Je.core.mutate({trans:hr,type:"put",values:[mr],keys:Ce!=null?[Ce]:null})}).then(function(hr){return hr.numFailures?As.reject(hr.failures[0]):hr.lastResult}).then(function(hr){if(Ht)try{Ks(ee,Ht,hr)}catch{}return hr})},Z.prototype.delete=function(ee){var Ce=this;return this._trans("readwrite",function(Je){return Ce.core.mutate({trans:Je,type:"delete",keys:[ee]})}).then(function(Je){return Je.numFailures?As.reject(Je.failures[0]):void 0})},Z.prototype.clear=function(){var ee=this;return this._trans("readwrite",function(Ce){return ee.core.mutate({trans:Ce,type:"deleteRange",range:hI})}).then(function(Ce){return Ce.numFailures?As.reject(Ce.failures[0]):void 0})},Z.prototype.bulkGet=function(ee){var Ce=this;return this._trans("readonly",function(Je){return Ce.core.getMany({keys:ee,trans:Je}).then(function(Ze){return Ze.map(function(bt){return Ce.hook.reading.fire(bt)})})})},Z.prototype.bulkAdd=function(ee,Ce,Je){var Ze=this,bt=Array.isArray(Ce)?Ce:void 0;Je=Je||(bt?void 0:Ce);var Ht=Je?Je.allKeys:void 0;return this._trans("readwrite",function(mr){var hr=Ze.schema.primKey,Jr=hr.auto,On=hr.keyPath;if(On&&bt)throw new yc.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(bt&&bt.length!==ee.length)throw new yc.InvalidArgument("Arguments objects and keys must have the same length");var fn=ee.length,Ni=On&&Jr?ee.map(bP(On)):ee;return Ze.core.mutate({trans:mr,type:"add",keys:bt,values:Ni,wantResults:Ht}).then(function(Ba){var mn=Ba.numFailures,$n=Ba.results,Si=Ba.lastResult,ea=Ba.failures,zi=Ht?$n:Si;if(mn===0)return zi;throw new ya("".concat(Ze.name,".bulkAdd(): ").concat(mn," of ").concat(fn," operations failed"),ea)})})},Z.prototype.bulkPut=function(ee,Ce,Je){var Ze=this,bt=Array.isArray(Ce)?Ce:void 0;Je=Je||(bt?void 0:Ce);var Ht=Je?Je.allKeys:void 0;return this._trans("readwrite",function(mr){var hr=Ze.schema.primKey,Jr=hr.auto,On=hr.keyPath;if(On&&bt)throw new yc.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(bt&&bt.length!==ee.length)throw new yc.InvalidArgument("Arguments objects and keys must have the same length");var fn=ee.length,Ni=On&&Jr?ee.map(bP(On)):ee;return Ze.core.mutate({trans:mr,type:"put",keys:bt,values:Ni,wantResults:Ht}).then(function(Ba){var mn=Ba.numFailures,$n=Ba.results,Si=Ba.lastResult,ea=Ba.failures,zi=Ht?$n:Si;if(mn===0)return zi;throw new ya("".concat(Ze.name,".bulkPut(): ").concat(mn," of ").concat(fn," operations failed"),ea)})})},Z.prototype.bulkUpdate=function(ee){var Ce=this,Je=this.core,Ze=ee.map(function(mr){return mr.key}),bt=ee.map(function(mr){return mr.changes}),Ht=[];return this._trans("readwrite",function(mr){return Je.getMany({trans:mr,keys:Ze,cache:"clone"}).then(function(hr){var Jr=[],On=[];ee.forEach(function(Ni,Ba){var mn=Ni.key,$n=Ni.changes,Si=hr[Ba];if(Si){for(var ea=0,zi=Object.keys($n);ea<zi.length;ea++){var Hi=zi[ea],va=$n[Hi];if(Hi===Ce.schema.primKey.keyPath){if(au(va,mn)!==0)throw new yc.Constraint("Cannot update primary key in bulkUpdate()")}else Ks(Si,Hi,va)}Ht.push(Ba),Jr.push(mn),On.push(Si)}});var fn=Jr.length;return Je.mutate({trans:mr,type:"put",keys:Jr,values:On,updates:{keys:Ze,changeSpecs:bt}}).then(function(Ni){var Ba=Ni.numFailures,mn=Ni.failures;if(Ba===0)return fn;for(var $n=0,Si=Object.keys(mn);$n<Si.length;$n++){var ea=Si[$n],zi=Ht[Number(ea)];if(zi!=null){var Hi=mn[ea];delete mn[ea],mn[zi]=Hi}}throw new ya("".concat(Ce.name,".bulkUpdate(): ").concat(Ba," of ").concat(fn," operations failed"),mn)})})})},Z.prototype.bulkDelete=function(ee){var Ce=this,Je=ee.length;return this._trans("readwrite",function(Ze){return Ce.core.mutate({trans:Ze,type:"delete",keys:ee})}).then(function(Ze){var bt=Ze.numFailures,Ht=Ze.lastResult,mr=Ze.failures;if(bt===0)return Ht;throw new ya("".concat(Ce.name,".bulkDelete(): ").concat(bt," of ").concat(Je," operations failed"),mr)})},Z}();function SP(Z){var ee={},Ce=function(mr,hr){if(hr){for(var Jr=arguments.length,On=new Array(Jr-1);--Jr;)On[Jr-1]=arguments[Jr];return ee[mr].subscribe.apply(null,On),Z}else if(typeof mr=="string")return ee[mr]};Ce.addEventType=bt;for(var Je=1,Ze=arguments.length;Je<Ze;++Je)bt(arguments[Je]);return Ce;function bt(mr,hr,Jr){if(typeof mr=="object")return Ht(mr);hr||(hr=n2),Jr||(Jr=pp);var On={subscribers:[],fire:Jr,subscribe:function(fn){On.subscribers.indexOf(fn)===-1&&(On.subscribers.push(fn),On.fire=hr(On.fire,fn))},unsubscribe:function(fn){On.subscribers=On.subscribers.filter(function(Ni){return Ni!==fn}),On.fire=On.subscribers.reduce(hr,Jr)}};return ee[mr]=Ce[mr]=On,On}function Ht(mr){w(mr).forEach(function(hr){var Jr=mr[hr];if(O(Jr))bt(hr,mr[hr][0],mr[hr][1]);else if(Jr==="asap")var On=bt(hr,Mg,function(){for(var Ni=arguments.length,Ba=new Array(Ni);Ni--;)Ba[Ni]=arguments[Ni];On.subscribers.forEach(function(mn){ns(function(){mn.apply(null,Ba)})})});else throw new yc.InvalidArgument("Invalid event config")})}}function TP(Z,ee){return Re(ee).from({prototype:Z}),ee}function DO(Z){return TP(vI.prototype,function(Ce,Je,Ze){this.db=Z,this._tx=Ze,this.name=Ce,this.schema=Je,this.hook=Z._allTables[Ce]?Z._allTables[Ce].hook:SP(null,{creating:[PO,pp],reading:[hP,Mg],updating:[Zr,pp],deleting:[dB,pp]})})}function pk(Z,ee){return!(Z.filter||Z.algorithm||Z.or)&&(ee?Z.justLimit:!Z.replayFilter)}function _v(Z,ee){Z.filter=$b(Z.filter,ee)}function x0(Z,ee,Ce){var Je=Z.replayFilter;Z.replayFilter=Je?function(){return $b(Je(),ee())}:ee,Z.justLimit=Ce&&!Je}function d_e(Z,ee){Z.isMatch=$b(Z.isMatch,ee)}function bc(Z,ee){if(Z.isPrimKey)return ee.primaryKey;var Ce=ee.getIndexByKeyPath(Z.index);if(!Ce)throw new yc.Schema("KeyPath "+Z.index+" on object store "+ee.name+" is not indexed");return Ce}function a2(Z,ee,Ce){var Je=bc(Z,ee.schema);return ee.openCursor({trans:Ce,values:!Z.keysOnly,reverse:Z.dir==="prev",unique:!!Z.unique,query:{index:Je,range:Z.range}})}function OO(Z,ee,Ce,Je){var Ze=Z.replayFilter?$b(Z.filter,Z.replayFilter()):Z.filter;if(Z.or){var bt={},Ht=function(mr,hr,Jr){if(!Ze||Ze(hr,Jr,function(Ni){return hr.stop(Ni)},function(Ni){return hr.fail(Ni)})){var On=hr.primaryKey,fn=""+On;fn==="[object ArrayBuffer]"&&(fn=""+new Uint8Array(On)),ye(bt,fn)||(bt[fn]=!0,ee(mr,hr,Jr))}};return Promise.all([Z.or._iterate(Ht,Ce),bI(a2(Z,Je,Ce),Z.algorithm,Ht,!Z.keysOnly&&Z.valueMapper)])}else return bI(a2(Z,Je,Ce),$b(Z.algorithm,Ze),ee,!Z.keysOnly&&Z.valueMapper)}function bI(Z,ee,Ce,Je){var Ze=Je?function(Ht,mr,hr){return Ce(Je(Ht),mr,hr)}:Ce,bt=Ra(Ze);return Z.then(function(Ht){if(Ht)return Ht.start(function(){var mr=function(){return Ht.continue()};(!ee||ee(Ht,function(hr){return mr=hr},function(hr){Ht.stop(hr),mr=pp},function(hr){Ht.fail(hr),mr=pp}))&&bt(Ht.value,Ht,function(hr){return mr=hr}),mr()})})}var wP=Symbol(),jg=function(){function Z(ee){Object.assign(this,ee)}return Z.prototype.execute=function(ee){var Ce;if(this.add!==void 0){var Je=this.add;if(O(Je))return f(f([],O(ee)?ee:[],!0),Je,!0).sort();if(typeof Je=="number")return(Number(ee)||0)+Je;if(typeof Je=="bigint")try{return BigInt(ee)+Je}catch{return BigInt(0)+Je}throw new TypeError("Invalid term ".concat(Je))}if(this.remove!==void 0){var Ze=this.remove;if(O(Ze))return O(ee)?ee.filter(function(Ht){return!Ze.includes(Ht)}).sort():[];if(typeof Ze=="number")return Number(ee)-Ze;if(typeof Ze=="bigint")try{return BigInt(ee)-Ze}catch{return BigInt(0)-Ze}throw new TypeError("Invalid subtrahend ".concat(Ze))}var bt=(Ce=this.replacePrefix)===null||Ce===void 0?void 0:Ce[0];return bt&&typeof ee=="string"&&ee.startsWith(bt)?this.replacePrefix[1]+ee.substring(bt.length):ee},Z}(),oK=function(){function Z(){}return Z.prototype._read=function(ee,Ce){var Je=this._ctx;return Je.error?Je.table._trans(null,ld.bind(null,Je.error)):Je.table._trans("readonly",ee).then(Ce)},Z.prototype._write=function(ee){var Ce=this._ctx;return Ce.error?Ce.table._trans(null,ld.bind(null,Ce.error)):Ce.table._trans("readwrite",ee,"locked")},Z.prototype._addAlgorithm=function(ee){var Ce=this._ctx;Ce.algorithm=$b(Ce.algorithm,ee)},Z.prototype._iterate=function(ee,Ce){return OO(this._ctx,ee,Ce,this._ctx.table.core)},Z.prototype.clone=function(ee){var Ce=Object.create(this.constructor.prototype),Je=Object.create(this._ctx);return ee&&q(Je,ee),Ce._ctx=Je,Ce},Z.prototype.raw=function(){return this._ctx.valueMapper=null,this},Z.prototype.each=function(ee){var Ce=this._ctx;return this._read(function(Je){return OO(Ce,ee,Je,Ce.table.core)})},Z.prototype.count=function(ee){var Ce=this;return this._read(function(Je){var Ze=Ce._ctx,bt=Ze.table.core;if(pk(Ze,!0))return bt.count({trans:Je,query:{index:bc(Ze,bt.schema),range:Ze.range}}).then(function(mr){return Math.min(mr,Ze.limit)});var Ht=0;return OO(Ze,function(){return++Ht,!1},Je,bt).then(function(){return Ht})}).then(ee)},Z.prototype.sortBy=function(ee,Ce){var Je=ee.split(".").reverse(),Ze=Je[0],bt=Je.length-1;function Ht(Jr,On){return On?Ht(Jr[Je[On]],On-1):Jr[Ze]}var mr=this._ctx.dir==="next"?1:-1;function hr(Jr,On){var fn=Ht(Jr,bt),Ni=Ht(On,bt);return au(fn,Ni)*mr}return this.toArray(function(Jr){return Jr.sort(hr)}).then(Ce)},Z.prototype.toArray=function(ee){var Ce=this;return this._read(function(Je){var Ze=Ce._ctx;if(Ze.dir==="next"&&pk(Ze,!0)&&Ze.limit>0){var bt=Ze.valueMapper,Ht=bc(Ze,Ze.table.core.schema);return Ze.table.core.query({trans:Je,limit:Ze.limit,values:!0,query:{index:Ht,range:Ze.range}}).then(function(hr){var Jr=hr.result;return bt?Jr.map(bt):Jr})}else{var mr=[];return OO(Ze,function(hr){return mr.push(hr)},Je,Ze.table.core).then(function(){return mr})}},ee)},Z.prototype.offset=function(ee){var Ce=this._ctx;return ee<=0?this:(Ce.offset+=ee,pk(Ce)?x0(Ce,function(){var Je=ee;return function(Ze,bt){return Je===0?!0:Je===1?(--Je,!1):(bt(function(){Ze.advance(Je),Je=0}),!1)}}):x0(Ce,function(){var Je=ee;return function(){return--Je<0}}),this)},Z.prototype.limit=function(ee){return this._ctx.limit=Math.min(this._ctx.limit,ee),x0(this._ctx,function(){var Ce=ee;return function(Je,Ze,bt){return--Ce<=0&&Ze(bt),Ce>=0}},!0),this},Z.prototype.until=function(ee,Ce){return _v(this._ctx,function(Je,Ze,bt){return ee(Je.value)?(Ze(bt),Ce):!0}),this},Z.prototype.first=function(ee){return this.limit(1).toArray(function(Ce){return Ce[0]}).then(ee)},Z.prototype.last=function(ee){return this.reverse().first(ee)},Z.prototype.filter=function(ee){return _v(this._ctx,function(Ce){return ee(Ce.value)}),d_e(this._ctx,ee),this},Z.prototype.and=function(ee){return this.filter(ee)},Z.prototype.or=function(ee){return new this.db.WhereClause(this._ctx.table,ee,this)},Z.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Z.prototype.desc=function(){return this.reverse()},Z.prototype.eachKey=function(ee){var Ce=this._ctx;return Ce.keysOnly=!Ce.isMatch,this.each(function(Je,Ze){ee(Ze.key,Ze)})},Z.prototype.eachUniqueKey=function(ee){return this._ctx.unique="unique",this.eachKey(ee)},Z.prototype.eachPrimaryKey=function(ee){var Ce=this._ctx;return Ce.keysOnly=!Ce.isMatch,this.each(function(Je,Ze){ee(Ze.primaryKey,Ze)})},Z.prototype.keys=function(ee){var Ce=this._ctx;Ce.keysOnly=!Ce.isMatch;var Je=[];return this.each(function(Ze,bt){Je.push(bt.key)}).then(function(){return Je}).then(ee)},Z.prototype.primaryKeys=function(ee){var Ce=this._ctx;if(Ce.dir==="next"&&pk(Ce,!0)&&Ce.limit>0)return this._read(function(Ze){var bt=bc(Ce,Ce.table.core.schema);return Ce.table.core.query({trans:Ze,values:!1,limit:Ce.limit,query:{index:bt,range:Ce.range}})}).then(function(Ze){var bt=Ze.result;return bt}).then(ee);Ce.keysOnly=!Ce.isMatch;var Je=[];return this.each(function(Ze,bt){Je.push(bt.primaryKey)}).then(function(){return Je}).then(ee)},Z.prototype.uniqueKeys=function(ee){return this._ctx.unique="unique",this.keys(ee)},Z.prototype.firstKey=function(ee){return this.limit(1).keys(function(Ce){return Ce[0]}).then(ee)},Z.prototype.lastKey=function(ee){return this.reverse().firstKey(ee)},Z.prototype.distinct=function(){var ee=this._ctx,Ce=ee.index&&ee.table.schema.idxByName[ee.index];if(!Ce||!Ce.multi)return this;var Je={};return _v(this._ctx,function(Ze){var bt=Ze.primaryKey.toString(),Ht=ye(Je,bt);return Je[bt]=!0,!Ht}),this},Z.prototype.modify=function(ee){var Ce=this,Je=this._ctx;return this._write(function(Ze){var bt;if(typeof ee=="function")bt=ee;else{var Ht=w(ee),mr=Ht.length;bt=function(zi){for(var Hi=!1,va=0;va<mr;++va){var Li=Ht[va],fs=ee[Li],Ws=Ir(zi,Li);fs instanceof jg?(Ks(zi,Li,fs.execute(Ws)),Hi=!0):Ws!==fs&&(Ks(zi,Li,fs),Hi=!0)}return Hi}}var hr=Je.table.core,Jr=hr.schema.primaryKey,On=Jr.outbound,fn=Jr.extractKey,Ni=200,Ba=Ce.db._options.modifyChunkSize;Ba&&(typeof Ba=="object"?Ni=Ba[hr.name]||Ba["*"]||200:Ni=Ba);var mn=[],$n=0,Si=[],ea=function(zi,Hi){var va=Hi.failures,Li=Hi.numFailures;$n+=zi-Li;for(var fs=0,Ws=w(va);fs<Ws.length;fs++){var ws=Ws[fs];mn.push(va[ws])}};return Ce.clone().primaryKeys().then(function(zi){var Hi=pk(Je)&&Je.limit===1/0&&(typeof ee!="function"||ee===Vb)&&{index:Je.index,range:Je.range},va=function(Li){var fs=Math.min(Ni,zi.length-Li);return hr.getMany({trans:Ze,keys:zi.slice(Li,Li+fs),cache:"immutable"}).then(function(Ws){for(var ws=[],ic=[],dl=On?[]:null,so=[],Us=0;Us<fs;++Us){var Sc=Ws[Us],mu={value:ci(Sc),primKey:zi[Li+Us]};bt.call(mu,mu.value,mu)!==!1&&(mu.value==null?so.push(zi[Li+Us]):!On&&au(fn(Sc),fn(mu.value))!==0?(so.push(zi[Li+Us]),ws.push(mu.value)):(ic.push(mu.value),On&&dl.push(zi[Li+Us])))}return Promise.resolve(ws.length>0&&hr.mutate({trans:Ze,type:"add",values:ws}).then(function(ac){for(var d_ in ac.failures)so.splice(parseInt(d_),1);ea(ws.length,ac)})).then(function(){return(ic.length>0||Hi&&typeof ee=="object")&&hr.mutate({trans:Ze,type:"put",keys:dl,values:ic,criteria:Hi,changeSpec:typeof ee!="function"&&ee,isAdditionalChunk:Li>0}).then(function(ac){return ea(ic.length,ac)})}).then(function(){return(so.length>0||Hi&&ee===Vb)&&hr.mutate({trans:Ze,type:"delete",keys:so,criteria:Hi,isAdditionalChunk:Li>0}).then(function(ac){return ea(so.length,ac)})}).then(function(){return zi.length>Li+fs&&va(Li+Ni)})})};return va(0).then(function(){if(mn.length>0)throw new gP("Error modifying one or more objects",mn,$n,Si);return zi.length})})})},Z.prototype.delete=function(){var ee=this._ctx,Ce=ee.range;return pk(ee)&&(ee.isPrimKey||Ce.type===3)?this._write(function(Je){var Ze=ee.table.core.schema.primaryKey,bt=Ce;return ee.table.core.count({trans:Je,query:{index:Ze,range:bt}}).then(function(Ht){return ee.table.core.mutate({trans:Je,type:"deleteRange",range:bt}).then(function(mr){var hr=mr.failures;mr.lastResult,mr.results;var Jr=mr.numFailures;if(Jr)throw new gP("Could not delete some values",Object.keys(hr).map(function(On){return hr[On]}),Ht-Jr);return Ht-Jr})})}):this.modify(Vb)},Z}(),Vb=function(Z,ee){return ee.value=null};function m_e(Z){return TP(oK.prototype,function(Ce,Je){this.db=Z;var Ze=hI,bt=null;if(Je)try{Ze=Je()}catch(Jr){bt=Jr}var Ht=Ce._ctx,mr=Ht.table,hr=mr.hook.reading.fire;this._ctx={table:mr,index:Ht.index,isPrimKey:!Ht.index||mr.schema.primKey.keyPath&&Ht.index===mr.schema.primKey.name,range:Ze,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:bt,or:Ht.or,valueMapper:hr!==Mg?hr:null}})}function Xu(Z,ee){return Z<ee?-1:Z===ee?0:1}function vB(Z,ee){return Z>ee?-1:Z===ee?0:1}function ky(Z,ee,Ce){var Je=Z instanceof NO?new Z.Collection(Z):Z;return Je._ctx.error=Ce?new Ce(ee):new TypeError(ee),Je}function s2(Z){return new Z.Collection(Z,function(){return Df("")}).limit(0)}function La(Z){return Z==="next"?function(ee){return ee.toUpperCase()}:function(ee){return ee.toLowerCase()}}function kP(Z){return Z==="next"?function(ee){return ee.toLowerCase()}:function(ee){return ee.toUpperCase()}}function G7(Z,ee,Ce,Je,Ze,bt){for(var Ht=Math.min(Z.length,Je.length),mr=-1,hr=0;hr<Ht;++hr){var Jr=ee[hr];if(Jr!==Je[hr])return Ze(Z[hr],Ce[hr])<0?Z.substr(0,hr)+Ce[hr]+Ce.substr(hr+1):Ze(Z[hr],Je[hr])<0?Z.substr(0,hr)+Je[hr]+Ce.substr(hr+1):mr>=0?Z.substr(0,mr)+ee[mr]+Ce.substr(mr+1):null;Ze(Z[hr],Jr)<0&&(mr=hr)}return Ht<Je.length&&bt==="next"?Z+Ce.substr(Z.length):Ht<Z.length&&bt==="prev"?Z.substr(0,Ce.length):mr<0?null:Z.substr(0,mr)+Je[mr]+Ce.substr(mr+1)}function fk(Z,ee,Ce,Je){var Ze,bt,Ht,mr,hr,Jr,On,fn=Ce.length;if(!Ce.every(function($n){return typeof $n=="string"}))return ky(Z,pv);function Ni($n){Ze=La($n),bt=kP($n),Ht=$n==="next"?Xu:vB;var Si=Ce.map(function(ea){return{lower:bt(ea),upper:Ze(ea)}}).sort(function(ea,zi){return Ht(ea.lower,zi.lower)});mr=Si.map(function(ea){return ea.upper}),hr=Si.map(function(ea){return ea.lower}),Jr=$n,On=$n==="next"?"":Je}Ni("next");var Ba=new Z.Collection(Z,function(){return b1(mr[0],hr[fn-1]+Je)});Ba._ondirectionchange=function($n){Ni($n)};var mn=0;return Ba._addAlgorithm(function($n,Si,ea){var zi=$n.key;if(typeof zi!="string")return!1;var Hi=bt(zi);if(ee(Hi,hr,mn))return!0;for(var va=null,Li=mn;Li<fn;++Li){var fs=G7(zi,Hi,mr[Li],hr[Li],Ht,Jr);fs===null&&va===null?mn=Li+1:(va===null||Ht(va,fs)>0)&&(va=fs)}return Si(va!==null?function(){$n.continue(va+On)}:ea),!1}),Ba}function b1(Z,ee,Ce,Je){return{type:2,lower:Z,upper:ee,lowerOpen:Ce,upperOpen:Je}}function Df(Z){return{type:1,lower:Z,upper:Z}}var NO=function(){function Z(){}return Object.defineProperty(Z.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Z.prototype.between=function(ee,Ce,Je,Ze){Je=Je!==!1,Ze=Ze===!0;try{return this._cmp(ee,Ce)>0||this._cmp(ee,Ce)===0&&(Je||Ze)&&!(Je&&Ze)?s2(this):new this.Collection(this,function(){return b1(ee,Ce,!Je,!Ze)})}catch{return ky(this,Ub)}},Z.prototype.equals=function(ee){return ee==null?ky(this,Ub):new this.Collection(this,function(){return Df(ee)})},Z.prototype.above=function(ee){return ee==null?ky(this,Ub):new this.Collection(this,function(){return b1(ee,void 0,!0)})},Z.prototype.aboveOrEqual=function(ee){return ee==null?ky(this,Ub):new this.Collection(this,function(){return b1(ee,void 0,!1)})},Z.prototype.below=function(ee){return ee==null?ky(this,Ub):new this.Collection(this,function(){return b1(void 0,ee,!1,!0)})},Z.prototype.belowOrEqual=function(ee){return ee==null?ky(this,Ub):new this.Collection(this,function(){return b1(void 0,ee)})},Z.prototype.startsWith=function(ee){return typeof ee!="string"?ky(this,pv):this.between(ee,ee+Cu,!0,!0)},Z.prototype.startsWithIgnoreCase=function(ee){return ee===""?this.startsWith(ee):fk(this,function(Ce,Je){return Ce.indexOf(Je[0])===0},[ee],Cu)},Z.prototype.equalsIgnoreCase=function(ee){return fk(this,function(Ce,Je){return Ce===Je[0]},[ee],"")},Z.prototype.anyOfIgnoreCase=function(){var ee=Bi.apply(ku,arguments);return ee.length===0?s2(this):fk(this,function(Ce,Je){return Je.indexOf(Ce)!==-1},ee,"")},Z.prototype.startsWithAnyOfIgnoreCase=function(){var ee=Bi.apply(ku,arguments);return ee.length===0?s2(this):fk(this,function(Ce,Je){return Je.some(function(Ze){return Ce.indexOf(Ze)===0})},ee,Cu)},Z.prototype.anyOf=function(){var ee=this,Ce=Bi.apply(ku,arguments),Je=this._cmp;try{Ce.sort(Je)}catch{return ky(this,Ub)}if(Ce.length===0)return s2(this);var Ze=new this.Collection(this,function(){return b1(Ce[0],Ce[Ce.length-1])});Ze._ondirectionchange=function(Ht){Je=Ht==="next"?ee._ascending:ee._descending,Ce.sort(Je)};var bt=0;return Ze._addAlgorithm(function(Ht,mr,hr){for(var Jr=Ht.key;Je(Jr,Ce[bt])>0;)if(++bt,bt===Ce.length)return mr(hr),!1;return Je(Jr,Ce[bt])===0?!0:(mr(function(){Ht.continue(Ce[bt])}),!1)}),Ze},Z.prototype.notEqual=function(ee){return this.inAnyRange([[im,ee],[ee,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Z.prototype.noneOf=function(){var ee=Bi.apply(ku,arguments);if(ee.length===0)return new this.Collection(this);try{ee.sort(this._ascending)}catch{return ky(this,Ub)}var Ce=ee.reduce(function(Je,Ze){return Je?Je.concat([[Je[Je.length-1][1],Ze]]):[[im,Ze]]},null);return Ce.push([ee[ee.length-1],this.db._maxKey]),this.inAnyRange(Ce,{includeLowers:!1,includeUppers:!1})},Z.prototype.inAnyRange=function(ee,Ce){var Je=this,Ze=this._cmp,bt=this._ascending,Ht=this._descending,mr=this._min,hr=this._max;if(ee.length===0)return s2(this);if(!ee.every(function(Li){return Li[0]!==void 0&&Li[1]!==void 0&&bt(Li[0],Li[1])<=0}))return ky(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",yc.InvalidArgument);var Jr=!Ce||Ce.includeLowers!==!1,On=Ce&&Ce.includeUppers===!0;function fn(Li,fs){for(var Ws=0,ws=Li.length;Ws<ws;++Ws){var ic=Li[Ws];if(Ze(fs[0],ic[1])<0&&Ze(fs[1],ic[0])>0){ic[0]=mr(ic[0],fs[0]),ic[1]=hr(ic[1],fs[1]);break}}return Ws===ws&&Li.push(fs),Li}var Ni=bt;function Ba(Li,fs){return Ni(Li[0],fs[0])}var mn;try{mn=ee.reduce(fn,[]),mn.sort(Ba)}catch{return ky(this,Ub)}var $n=0,Si=On?function(Li){return bt(Li,mn[$n][1])>0}:function(Li){return bt(Li,mn[$n][1])>=0},ea=Jr?function(Li){return Ht(Li,mn[$n][0])>0}:function(Li){return Ht(Li,mn[$n][0])>=0};function zi(Li){return!Si(Li)&&!ea(Li)}var Hi=Si,va=new this.Collection(this,function(){return b1(mn[0][0],mn[mn.length-1][1],!Jr,!On)});return va._ondirectionchange=function(Li){Li==="next"?(Hi=Si,Ni=bt):(Hi=ea,Ni=Ht),mn.sort(Ba)},va._addAlgorithm(function(Li,fs,Ws){for(var ws=Li.key;Hi(ws);)if(++$n,$n===mn.length)return fs(Ws),!1;return zi(ws)?!0:(Je._cmp(ws,mn[$n][1])===0||Je._cmp(ws,mn[$n][0])===0||fs(function(){Ni===bt?Li.continue(mn[$n][0]):Li.continue(mn[$n][1])}),!1)}),va},Z.prototype.startsWithAnyOf=function(){var ee=Bi.apply(ku,arguments);return ee.every(function(Ce){return typeof Ce=="string"})?ee.length===0?s2(this):this.inAnyRange(ee.map(function(Ce){return[Ce,Ce+Cu]})):ky(this,"startsWithAnyOf() only works with strings")},Z}();function cK(Z){return TP(NO.prototype,function(Ce,Je,Ze){if(this.db=Z,this._ctx={table:Ce,index:Je===":id"?null:Je,or:Ze},this._cmp=this._ascending=au,this._descending=function(bt,Ht){return au(Ht,bt)},this._max=function(bt,Ht){return au(bt,Ht)>0?bt:Ht},this._min=function(bt,Ht){return au(bt,Ht)<0?bt:Ht},this._IDBKeyRange=Z._deps.IDBKeyRange,!this._IDBKeyRange)throw new yc.MissingAPI})}function lg(Z){return Ra(function(ee){return o2(ee),Z(ee.target.error),!1})}function o2(Z){Z.stopPropagation&&Z.stopPropagation(),Z.preventDefault&&Z.preventDefault()}var CP="storagemutated",K7="x-storagemutated-1",Hb=SP(null,CP),bB=function(){function Z(){}return Z.prototype._lock=function(){return ys(!ko.global),++this._reculock,this._reculock===1&&!ko.global&&(ko.lockOwnerFor=this),this},Z.prototype._unlock=function(){if(ys(!ko.global),--this._reculock===0)for(ko.global||(ko.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var ee=this._blockedFuncs.shift();try{Rg(ee[1],ee[0])}catch{}}return this},Z.prototype._locked=function(){return this._reculock&&ko.lockOwnerFor!==this},Z.prototype.create=function(ee){var Ce=this;if(!this.mode)return this;var Je=this.db.idbdb,Ze=this.db._state.dbOpenError;if(ys(!this.idbtrans),!ee&&!Je)switch(Ze&&Ze.name){case"DatabaseClosedError":throw new yc.DatabaseClosed(Ze);case"MissingAPIError":throw new yc.MissingAPI(Ze.message,Ze);default:throw new yc.OpenFailed(Ze)}if(!this.active)throw new yc.TransactionInactive;return ys(this._completion._state===null),ee=this.idbtrans=ee||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):Je.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),ee.onerror=Ra(function(bt){o2(bt),Ce._reject(ee.error)}),ee.onabort=Ra(function(bt){o2(bt),Ce.active&&Ce._reject(new yc.Abort(ee.error)),Ce.active=!1,Ce.on("abort").fire(bt)}),ee.oncomplete=Ra(function(){Ce.active=!1,Ce._resolve(),"mutatedParts"in ee&&Hb.storagemutated.fire(ee.mutatedParts)}),this},Z.prototype._promise=function(ee,Ce,Je){var Ze=this;if(ee==="readwrite"&&this.mode!=="readwrite")return ld(new yc.ReadOnly("Transaction is readonly"));if(!this.active)return ld(new yc.TransactionInactive);if(this._locked())return new As(function(Ht,mr){Ze._blockedFuncs.push([function(){Ze._promise(ee,Ce,Je).then(Ht,mr)},ko])});if(Je)return Sh(function(){var Ht=new As(function(mr,hr){Ze._lock();var Jr=Ce(mr,hr,Ze);Jr&&Jr.then&&Jr.then(mr,hr)});return Ht.finally(function(){return Ze._unlock()}),Ht._lib=!0,Ht});var bt=new As(function(Ht,mr){var hr=Ce(Ht,mr,Ze);hr&&hr.then&&hr.then(Ht,mr)});return bt._lib=!0,bt},Z.prototype._root=function(){return this.parent?this.parent._root():this},Z.prototype.waitFor=function(ee){var Ce=this._root(),Je=As.resolve(ee);if(Ce._waitingFor)Ce._waitingFor=Ce._waitingFor.then(function(){return Je});else{Ce._waitingFor=Je,Ce._waitingQueue=[];var Ze=Ce.idbtrans.objectStore(Ce.storeNames[0]);(function Ht(){for(++Ce._spinCount;Ce._waitingQueue.length;)Ce._waitingQueue.shift()();Ce._waitingFor&&(Ze.get(-1/0).onsuccess=Ht)})()}var bt=Ce._waitingFor;return new As(function(Ht,mr){Je.then(function(hr){return Ce._waitingQueue.push(Ra(Ht.bind(null,hr)))},function(hr){return Ce._waitingQueue.push(Ra(mr.bind(null,hr)))}).finally(function(){Ce._waitingFor===bt&&(Ce._waitingFor=null)})})},Z.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new yc.Abort))},Z.prototype.table=function(ee){var Ce=this._memoizedTables||(this._memoizedTables={});if(ye(Ce,ee))return Ce[ee];var Je=this.schema[ee];if(!Je)throw new yc.NotFound("Table "+ee+" not part of transaction");var Ze=new this.db.Table(ee,Je,this);return Ze.core=this.db.core.table(ee),Ce[ee]=Ze,Ze},Z}();function Q7(Z){return TP(bB.prototype,function(Ce,Je,Ze,bt,Ht){var mr=this;this.db=Z,this.mode=Ce,this.storeNames=Je,this.schema=Ze,this.chromeTransactionDurability=bt,this.idbtrans=null,this.on=SP(this,"complete","error","abort"),this.parent=Ht||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 As(function(hr,Jr){mr._resolve=hr,mr._reject=Jr}),this._completion.then(function(){mr.active=!1,mr.on.complete.fire()},function(hr){var Jr=mr.active;return mr.active=!1,mr.on.error.fire(hr),mr.parent?mr.parent._reject(hr):Jr&&mr.idbtrans&&mr.idbtrans.abort(),ld(hr)})})}function xI(Z,ee,Ce,Je,Ze,bt,Ht){return{name:Z,keyPath:ee,unique:Ce,multi:Je,auto:Ze,compound:bt,src:(Ce&&!Ht?"&":"")+(Je?"*":"")+(Ze?"++":"")+I(ee)}}function I(Z){return typeof Z=="string"?Z:Z?"["+[].join.call(Z,"+")+"]":""}function xB(Z,ee,Ce){return{name:Z,primKey:ee,indexes:Ce,mappedClass:null,idxByName:sn(Ce,function(Je){return[Je.name,Je]})}}function g_e(Z){return Z.length===1?Z[0]:Z}var SI=function(Z){try{return Z.only([[]]),SI=function(){return[[]]},[[]]}catch{return SI=function(){return Cu},Cu}};function SB(Z){return Z==null?function(){}:typeof Z=="string"?h_e(Z):function(ee){return Ir(ee,Z)}}function h_e(Z){var ee=Z.split(".");return ee.length===1?function(Ce){return Ce[Z]}:function(Ce){return Ir(Ce,Z)}}function TB(Z){return[].slice.call(Z)}var wB=0;function F_(Z){return Z==null?":id":typeof Z=="string"?Z:"[".concat(Z.join("+"),"]")}function lK(Z,ee,Ce){function Je(fn,Ni){var Ba=TB(fn.objectStoreNames);return{schema:{name:fn.name,tables:Ba.map(function(mn){return Ni.objectStore(mn)}).map(function(mn){var $n=mn.keyPath,Si=mn.autoIncrement,ea=O($n),zi=$n==null,Hi={},va={name:mn.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:zi,compound:ea,keyPath:$n,autoIncrement:Si,unique:!0,extractKey:SB($n)},indexes:TB(mn.indexNames).map(function(Li){return mn.index(Li)}).map(function(Li){var fs=Li.name,Ws=Li.unique,ws=Li.multiEntry,ic=Li.keyPath,dl=O(ic),so={name:fs,compound:dl,keyPath:ic,unique:Ws,multiEntry:ws,extractKey:SB(ic)};return Hi[F_(ic)]=so,so}),getIndexByKeyPath:function(Li){return Hi[F_(Li)]}};return Hi[":id"]=va.primaryKey,$n!=null&&(Hi[F_($n)]=va.primaryKey),va})},hasGetAll:Ba.length>0&&"getAll"in Ni.objectStore(Ba[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function Ze(fn){if(fn.type===3)return null;if(fn.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var Ni=fn.lower,Ba=fn.upper,mn=fn.lowerOpen,$n=fn.upperOpen,Si=Ni===void 0?Ba===void 0?null:ee.upperBound(Ba,!!$n):Ba===void 0?ee.lowerBound(Ni,!!mn):ee.bound(Ni,Ba,!!mn,!!$n);return Si}function bt(fn){var Ni=fn.name;function Ba(Si){var ea=Si.trans,zi=Si.type,Hi=Si.keys,va=Si.values,Li=Si.range;return new Promise(function(fs,Ws){fs=Ra(fs);var ws=ea.objectStore(Ni),ic=ws.keyPath==null,dl=zi==="put"||zi==="add";if(!dl&&zi!=="delete"&&zi!=="deleteRange")throw new Error("Invalid operation type: "+zi);var so=(Hi||va||{length:1}).length;if(Hi&&va&&Hi.length!==va.length)throw new Error("Given keys array must have same length as given values array.");if(so===0)return fs({numFailures:0,failures:{},results:[],lastResult:void 0});var Us,Sc=[],mu=[],ac=0,d_=function(Xb){++ac,o2(Xb)};if(zi==="deleteRange"){if(Li.type===4)return fs({numFailures:ac,failures:mu,results:[],lastResult:void 0});Li.type===3?Sc.push(Us=ws.clear()):Sc.push(Us=ws.delete(Ze(Li)))}else{var pg=dl?ic?[va,Hi]:[va,null]:[Hi,null],S1=pg[0],fg=pg[1];if(dl)for(var dv=0;dv<so;++dv)Sc.push(Us=fg&&fg[dv]!==void 0?ws[zi](S1[dv],fg[dv]):ws[zi](S1[dv])),Us.onerror=d_;else for(var dv=0;dv<so;++dv)Sc.push(Us=ws[zi](S1[dv])),Us.onerror=d_}var mv=function(Xb){var OP=Xb.target.result;Sc.forEach(function(gv,Hp){return gv.error!=null&&(mu[Hp]=gv.error)}),fs({numFailures:ac,failures:mu,results:zi==="delete"?Hi:Sc.map(function(gv){return gv.result}),lastResult:OP})};Us.onerror=function(Xb){d_(Xb),mv(Xb)},Us.onsuccess=mv})}function mn(Si){var ea=Si.trans,zi=Si.values,Hi=Si.query,va=Si.reverse,Li=Si.unique;return new Promise(function(fs,Ws){fs=Ra(fs);var ws=Hi.index,ic=Hi.range,dl=ea.objectStore(Ni),so=ws.isPrimaryKey?dl:dl.index(ws.name),Us=va?Li?"prevunique":"prev":Li?"nextunique":"next",Sc=zi||!("openKeyCursor"in so)?so.openCursor(Ze(ic),Us):so.openKeyCursor(Ze(ic),Us);Sc.onerror=lg(Ws),Sc.onsuccess=Ra(function(mu){var ac=Sc.result;if(!ac){fs(null);return}ac.___id=++wB,ac.done=!1;var d_=ac.continue.bind(ac),pg=ac.continuePrimaryKey;pg&&(pg=pg.bind(ac));var S1=ac.advance.bind(ac),fg=function(){throw new Error("Cursor not started")},dv=function(){throw new Error("Cursor not stopped")};ac.trans=ea,ac.stop=ac.continue=ac.continuePrimaryKey=ac.advance=fg,ac.fail=Ra(Ws),ac.next=function(){var mv=this,Xb=1;return this.start(function(){return Xb--?mv.continue():mv.stop()}).then(function(){return mv})},ac.start=function(mv){var Xb=new Promise(function(gv,Hp){gv=Ra(gv),Sc.onerror=lg(Hp),ac.fail=Hp,ac.stop=function(l2){ac.stop=ac.continue=ac.continuePrimaryKey=ac.advance=dv,gv(l2)}}),OP=function(){if(Sc.result)try{mv()}catch(gv){ac.fail(gv)}else ac.done=!0,ac.start=function(){throw new Error("Cursor behind last entry")},ac.stop()};return Sc.onsuccess=Ra(function(gv){Sc.onsuccess=OP,OP()}),ac.continue=d_,ac.continuePrimaryKey=pg,ac.advance=S1,OP(),Xb},fs(ac)},Ws)})}function $n(Si){return function(ea){return new Promise(function(zi,Hi){zi=Ra(zi);var va=ea.trans,Li=ea.values,fs=ea.limit,Ws=ea.query,ws=fs===1/0?void 0:fs,ic=Ws.index,dl=Ws.range,so=va.objectStore(Ni),Us=ic.isPrimaryKey?so:so.index(ic.name),Sc=Ze(dl);if(fs===0)return zi({result:[]});if(Si){var mu=Li?Us.getAll(Sc,ws):Us.getAllKeys(Sc,ws);mu.onsuccess=function(S1){return zi({result:S1.target.result})},mu.onerror=lg(Hi)}else{var ac=0,d_=Li||!("openKeyCursor"in Us)?Us.openCursor(Sc):Us.openKeyCursor(Sc),pg=[];d_.onsuccess=function(S1){var fg=d_.result;if(!fg)return zi({result:pg});if(pg.push(Li?fg.value:fg.primaryKey),++ac===fs)return zi({result:pg});fg.continue()},d_.onerror=lg(Hi)}})}}return{name:Ni,schema:fn,mutate:Ba,getMany:function(Si){var ea=Si.trans,zi=Si.keys;return new Promise(function(Hi,va){Hi=Ra(Hi);for(var Li=ea.objectStore(Ni),fs=zi.length,Ws=new Array(fs),ws=0,ic=0,dl,so=function(ac){var d_=ac.target;(Ws[d_._pos]=d_.result)!=null,++ic===ws&&Hi(Ws)},Us=lg(va),Sc=0;Sc<fs;++Sc){var mu=zi[Sc];mu!=null&&(dl=Li.get(zi[Sc]),dl._pos=Sc,dl.onsuccess=so,dl.onerror=Us,++ws)}ws===0&&Hi(Ws)})},get:function(Si){var ea=Si.trans,zi=Si.key;return new Promise(function(Hi,va){Hi=Ra(Hi);var Li=ea.objectStore(Ni),fs=Li.get(zi);fs.onsuccess=function(Ws){return Hi(Ws.target.result)},fs.onerror=lg(va)})},query:$n(hr),openCursor:mn,count:function(Si){var ea=Si.query,zi=Si.trans,Hi=ea.index,va=ea.range;return new Promise(function(Li,fs){var Ws=zi.objectStore(Ni),ws=Hi.isPrimaryKey?Ws:Ws.index(Hi.name),ic=Ze(va),dl=ic?ws.count(ic):ws.count();dl.onsuccess=Ra(function(so){return Li(so.target.result)}),dl.onerror=lg(fs)})}}}var Ht=Je(Z,Ce),mr=Ht.schema,hr=Ht.hasGetAll,Jr=mr.tables.map(function(fn){return bt(fn)}),On={};return Jr.forEach(function(fn){return On[fn.name]=fn}),{stack:"dbcore",transaction:Z.transaction.bind(Z),table:function(fn){var Ni=On[fn];if(!Ni)throw new Error("Table '".concat(fn,"' not found"));return On[fn]},MIN_KEY:-1/0,MAX_KEY:SI(ee),schema:mr}}function y_e(Z,ee){return ee.reduce(function(Ce,Je){var Ze=Je.create;return u(u({},Ce),Ze(Ce))},Z)}function TI(Z,ee,Ce,Je){var Ze=Ce.IDBKeyRange;Ce.indexedDB;var bt=y_e(lK(ee,Ze,Je),Z.dbcore);return{dbcore:bt}}function X7(Z,ee){var Ce=ee.db,Je=TI(Z._middlewares,Ce,Z._deps,ee);Z.core=Je.dbcore,Z.tables.forEach(function(Ze){var bt=Ze.name;Z.core.schema.tables.some(function(Ht){return Ht.name===bt})&&(Ze.core=Z.core.table(bt),Z[bt]instanceof Z.Table&&(Z[bt].core=Ze.core))})}function Y7(Z,ee,Ce,Je){Ce.forEach(function(Ze){var bt=Je[Ze];ee.forEach(function(Ht){var mr=_r(Ht,Ze);(!mr||"value"in mr&&mr.value===void 0)&&(Ht===Z.Transaction.prototype||Ht instanceof Z.Transaction?mt(Ht,Ze,{get:function(){return this.table(Ze)},set:function(hr){ce(this,Ze,{value:hr,writable:!0,configurable:!0,enumerable:!0})}}):Ht[Ze]=new Z.Table(Ze,bt))})})}function kB(Z,ee){ee.forEach(function(Ce){for(var Je in Ce)Ce[Je]instanceof Z.Table&&delete Ce[Je]})}function v_e(Z,ee){return Z._cfg.version-ee._cfg.version}function b_e(Z,ee,Ce,Je){var Ze=Z._dbSchema;Ce.objectStoreNames.contains("$meta")&&!Ze.$meta&&(Ze.$meta=xB("$meta",pK("")[0],[]),Z._storeNames.push("$meta"));var bt=Z._createTransaction("readwrite",Z._storeNames,Ze);bt.create(Ce),bt._completion.catch(Je);var Ht=bt._reject.bind(bt),mr=ko.transless||ko;Sh(function(){if(ko.trans=bt,ko.transless=mr,ee===0)w(Ze).forEach(function(hr){M_(Ce,hr,Ze[hr].primKey,Ze[hr].indexes)}),X7(Z,Ce),As.follow(function(){return Z.on.populate.fire(bt)}).catch(Ht);else return X7(Z,Ce),CB(Z,bt,ee).then(function(hr){return x_e(Z,hr,bt,Ce)}).catch(Ht)})}function uK(Z,ee){ug(Z._dbSchema,ee),ee.db.version%10===0&&!ee.objectStoreNames.contains("$meta")&&ee.db.createObjectStore("$meta").add(Math.ceil(ee.db.version/10-1),"version");var Ce=eF(Z,Z.idbdb,ee);tF(Z,Z._dbSchema,ee);for(var Je=PB(Ce,Z._dbSchema),Ze=function(Jr){if(Jr.change.length||Jr.recreate)return console.warn("Unable to patch indexes of table ".concat(Jr.name," because it has changes on the type of index or primary key.")),{value:void 0};var On=ee.objectStore(Jr.name);Jr.add.forEach(function(fn){ti&&console.debug("Dexie upgrade patch: Creating missing index ".concat(Jr.name,".").concat(fn.src)),Z7(On,fn)})},bt=0,Ht=Je.change;bt<Ht.length;bt++){var mr=Ht[bt],hr=Ze(mr);if(typeof hr=="object")return hr.value}}function CB(Z,ee,Ce){return ee.storeNames.includes("$meta")?ee.table("$meta").get("version").then(function(Je){return Je??Ce}):As.resolve(Ce)}function x_e(Z,ee,Ce,Je){var Ze=[],bt=Z._versions,Ht=Z._dbSchema=eF(Z,Z.idbdb,Je),mr=bt.filter(function(Jr){return Jr._cfg.version>=ee});if(mr.length===0)return As.resolve();mr.forEach(function(Jr){Ze.push(function(){var On=Ht,fn=Jr._cfg.dbschema;tF(Z,On,Je),tF(Z,fn,Je),Ht=Z._dbSchema=fn;var Ni=PB(On,fn);Ni.add.forEach(function(zi){M_(Je,zi[0],zi[1].primKey,zi[1].indexes)}),Ni.change.forEach(function(zi){if(zi.recreate)throw new yc.Upgrade("Not yet support for changing primary key");var Hi=Je.objectStore(zi.name);zi.add.forEach(function(va){return Z7(Hi,va)}),zi.change.forEach(function(va){Hi.deleteIndex(va.name),Z7(Hi,va)}),zi.del.forEach(function(va){return Hi.deleteIndex(va)})});var Ba=Jr._cfg.contentUpgrade;if(Ba&&Jr._cfg.version>ee){X7(Z,Je),Ce._memoizedTables={};var mn=up(fn);Ni.del.forEach(function(zi){mn[zi]=On[zi]}),kB(Z,[Z.Transaction.prototype]),Y7(Z,[Z.Transaction.prototype],w(mn),mn),Ce.schema=mn;var $n=pf(Ba);$n&&Ua();var Si,ea=As.follow(function(){if(Si=Ba(Ce),Si&&$n){var zi=nm.bind(null,null);Si.then(zi,zi)}});return Si&&typeof Si.then=="function"?As.resolve(Si):ea.then(function(){return Si})}}),Ze.push(function(On){var fn=Jr._cfg.dbschema;S_e(fn,On),kB(Z,[Z.Transaction.prototype]),Y7(Z,[Z.Transaction.prototype],Z._storeNames,Z._dbSchema),Ce.schema=Z._dbSchema}),Ze.push(function(On){Z.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Z.idbdb.version/10)===Jr._cfg.version?(Z.idbdb.deleteObjectStore("$meta"),delete Z._dbSchema.$meta,Z._storeNames=Z._storeNames.filter(function(fn){return fn!=="$meta"})):On.objectStore("$meta").put(Jr._cfg.version,"version"))})});function hr(){return Ze.length?As.resolve(Ze.shift()(Ce.idbtrans)).then(hr):As.resolve()}return hr().then(function(){ug(Ht,Je)})}function PB(Z,ee){var Ce={del:[],add:[],change:[]},Je;for(Je in Z)ee[Je]||Ce.del.push(Je);for(Je in ee){var Ze=Z[Je],bt=ee[Je];if(!Ze)Ce.add.push([Je,bt]);else{var Ht={name:Je,def:bt,recreate:!1,del:[],add:[],change:[]};if(""+(Ze.primKey.keyPath||"")!=""+(bt.primKey.keyPath||"")||Ze.primKey.auto!==bt.primKey.auto)Ht.recreate=!0,Ce.change.push(Ht);else{var mr=Ze.idxByName,hr=bt.idxByName,Jr=void 0;for(Jr in mr)hr[Jr]||Ht.del.push(Jr);for(Jr in hr){var On=mr[Jr],fn=hr[Jr];On?On.src!==fn.src&&Ht.change.push(fn):Ht.add.push(fn)}(Ht.del.length>0||Ht.add.length>0||Ht.change.length>0)&&Ce.change.push(Ht)}}}return Ce}function M_(Z,ee,Ce,Je){var Ze=Z.db.createObjectStore(ee,Ce.keyPath?{keyPath:Ce.keyPath,autoIncrement:Ce.auto}:{autoIncrement:Ce.auto});return Je.forEach(function(bt){return Z7(Ze,bt)}),Ze}function ug(Z,ee){w(Z).forEach(function(Ce){ee.db.objectStoreNames.contains(Ce)||(ti&&console.debug("Dexie: Creating missing table",Ce),M_(ee,Ce,Z[Ce].primKey,Z[Ce].indexes))})}function S_e(Z,ee){[].slice.call(ee.db.objectStoreNames).forEach(function(Ce){return Z[Ce]==null&&ee.db.deleteObjectStore(Ce)})}function Z7(Z,ee){Z.createIndex(ee.name,ee.keyPath,{unique:ee.unique,multiEntry:ee.multi})}function eF(Z,ee,Ce){var Je={},Ze=si(ee.objectStoreNames,0);return Ze.forEach(function(bt){for(var Ht=Ce.objectStore(bt),mr=Ht.keyPath,hr=xI(I(mr),mr||"",!0,!1,!!Ht.autoIncrement,mr&&typeof mr!="string",!0),Jr=[],On=0;On<Ht.indexNames.length;++On){var fn=Ht.index(Ht.indexNames[On]);mr=fn.keyPath;var Ni=xI(fn.name,mr,!!fn.unique,!!fn.multiEntry,!1,mr&&typeof mr!="string",!1);Jr.push(Ni)}Je[bt]=xB(bt,hr,Jr)}),Je}function T_e(Z,ee,Ce){Z.verno=ee.version/10;var Je=Z._dbSchema=eF(Z,ee,Ce);Z._storeNames=si(ee.objectStoreNames,0),Y7(Z,[Z._allTables],w(Je),Je)}function w_e(Z,ee){var Ce=eF(Z,Z.idbdb,ee),Je=PB(Ce,Z._dbSchema);return!(Je.add.length||Je.change.some(function(Ze){return Ze.add.length||Ze.change.length}))}function tF(Z,ee,Ce){for(var Je=Ce.db.objectStoreNames,Ze=0;Ze<Je.length;++Ze){var bt=Je[Ze],Ht=Ce.objectStore(bt);Z._hasGetAll="getAll"in Ht;for(var mr=0;mr<Ht.indexNames.length;++mr){var hr=Ht.indexNames[mr],Jr=Ht.index(hr).keyPath,On=typeof Jr=="string"?Jr:"["+si(Jr).join("+")+"]";if(ee[bt]){var fn=ee[bt].idxByName[On];fn&&(fn.name=hr,delete ee[bt].idxByName[On],ee[bt].idxByName[hr]=fn)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(Z._hasGetAll=!1)}function pK(Z){return Z.split(",").map(function(ee,Ce){ee=ee.trim();var Je=ee.replace(/([&*]|\+\+)/g,""),Ze=/^\[/.test(Je)?Je.match(/^\[(.*)\]$/)[1].split("+"):Je;return xI(Je,Ze||null,/\&/.test(ee),/\*/.test(ee),/\+\+/.test(ee),O(Ze),Ce===0)})}var k_e=function(){function Z(){}return Z.prototype._parseStoresSpec=function(ee,Ce){w(ee).forEach(function(Je){if(ee[Je]!==null){var Ze=pK(ee[Je]),bt=Ze.shift();if(bt.unique=!0,bt.multi)throw new yc.Schema("Primary key cannot be multi-valued");Ze.forEach(function(Ht){if(Ht.auto)throw new yc.Schema("Only primary key can be marked as autoIncrement (++)");if(!Ht.keyPath)throw new yc.Schema("Index must have a name and cannot be an empty string")}),Ce[Je]=xB(Je,bt,Ze)}})},Z.prototype.stores=function(ee){var Ce=this.db;this._cfg.storesSource=this._cfg.storesSource?q(this._cfg.storesSource,ee):ee;var Je=Ce._versions,Ze={},bt={};return Je.forEach(function(Ht){q(Ze,Ht._cfg.storesSource),bt=Ht._cfg.dbschema={},Ht._parseStoresSpec(Ze,bt)}),Ce._dbSchema=bt,kB(Ce,[Ce._allTables,Ce,Ce.Transaction.prototype]),Y7(Ce,[Ce._allTables,Ce,Ce.Transaction.prototype,this._cfg.tables],w(bt),bt),Ce._storeNames=w(bt),this},Z.prototype.upgrade=function(ee){return this._cfg.contentUpgrade=fI(this._cfg.contentUpgrade||pp,ee),this},Z}();function EB(Z){return TP(k_e.prototype,function(Ce){this.db=Z,this._cfg={version:Ce,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function rF(Z,ee){var Ce=Z._dbNamesDB;return Ce||(Ce=Z._dbNamesDB=new Kb(fv,{addons:[],indexedDB:Z,IDBKeyRange:ee}),Ce.version(1).stores({dbnames:"name"})),Ce.table("dbnames")}function wI(Z){return Z&&typeof Z.databases=="function"}function xc(Z){var ee=Z.indexedDB,Ce=Z.IDBKeyRange;return wI(ee)?Promise.resolve(ee.databases()).then(function(Je){return Je.map(function(Ze){return Ze.name}).filter(function(Ze){return Ze!==fv})}):rF(ee,Ce).toCollection().primaryKeys()}function DB(Z,ee){var Ce=Z.indexedDB,Je=Z.IDBKeyRange;!wI(Ce)&&ee!==fv&&rF(Ce,Je).put({name:ee}).catch(pp)}function PP(Z,ee){var Ce=Z.indexedDB,Je=Z.IDBKeyRange;!wI(Ce)&&ee!==fv&&rF(Ce,Je).delete(ee).catch(pp)}function x1(Z){return Sh(function(){return ko.letThrough=!0,Z()})}function fK(){var Z=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!Z||!indexedDB.databases)return Promise.resolve();var ee;return new Promise(function(Ce){var Je=function(){return indexedDB.databases().finally(Ce)};ee=setInterval(Je,100),Je()}).finally(function(){return clearInterval(ee)})}var AO;function kI(Z){return!("from"in Z)}var ud=function(Z,ee){if(this)q(this,arguments.length?{d:1,from:Z,to:arguments.length>1?ee:Z}:{d:0});else{var Ce=new ud;return Z&&"d"in Z&&q(Ce,Z),Ce}};Be(ud.prototype,(AO={add:function(Z){return Gb(this,Z),this},addKey:function(Z){return IO(this,Z,Z),this},addKeys:function(Z){var ee=this;return Z.forEach(function(Ce){return IO(ee,Ce,Ce)}),this},hasKey:function(Z){var ee=mS(this).next(Z).value;return ee&&au(ee.from,Z)<=0&&au(ee.to,Z)>=0}},AO[xl]=function(){return mS(this)},AO));function IO(Z,ee,Ce){var Je=au(ee,Ce);if(!isNaN(Je)){if(Je>0)throw RangeError();if(kI(Z))return q(Z,{from:ee,to:Ce,d:1});var Ze=Z.l,bt=Z.r;if(au(Ce,Z.from)<0)return Ze?IO(Ze,ee,Ce):Z.l={from:ee,to:Ce,d:1,l:null,r:null},Qc(Z);if(au(ee,Z.to)>0)return bt?IO(bt,ee,Ce):Z.r={from:ee,to:Ce,d:1,l:null,r:null},Qc(Z);au(ee,Z.from)<0&&(Z.from=ee,Z.l=null,Z.d=bt?bt.d+1:1),au(Ce,Z.to)>0&&(Z.to=Ce,Z.r=null,Z.d=Z.l?Z.l.d+1:1);var Ht=!Z.r;Ze&&!Z.l&&Gb(Z,Ze),bt&&Ht&&Gb(Z,bt)}}function Gb(Z,ee){function Ce(Je,Ze){var bt=Ze.from,Ht=Ze.to,mr=Ze.l,hr=Ze.r;IO(Je,bt,Ht),mr&&Ce(Je,mr),hr&&Ce(Je,hr)}kI(ee)||Ce(Z,ee)}function EP(Z,ee){var Ce=mS(ee),Je=Ce.next();if(Je.done)return!1;for(var Ze=Je.value,bt=mS(Z),Ht=bt.next(Ze.from),mr=Ht.value;!Je.done&&!Ht.done;){if(au(mr.from,Ze.to)<=0&&au(mr.to,Ze.from)>=0)return!0;au(Ze.from,mr.from)<0?Ze=(Je=Ce.next(mr.from)).value:mr=(Ht=bt.next(Ze.from)).value}return!1}function mS(Z){var ee=kI(Z)?null:{s:0,n:Z};return{next:function(Ce){for(var Je=arguments.length>0;ee;)switch(ee.s){case 0:if(ee.s=1,Je)for(;ee.n.l&&au(Ce,ee.n.from)<0;)ee={up:ee,n:ee.n.l,s:1};else for(;ee.n.l;)ee={up:ee,n:ee.n.l,s:1};case 1:if(ee.s=2,!Je||au(Ce,ee.n.to)<=0)return{value:ee.n,done:!1};case 2:if(ee.n.r){ee.s=3,ee={up:ee,n:ee.n.r,s:0};continue}case 3:ee=ee.up}return{done:!0}}}}function Qc(Z){var ee,Ce,Je=(((ee=Z.r)===null||ee===void 0?void 0:ee.d)||0)-(((Ce=Z.l)===null||Ce===void 0?void 0:Ce.d)||0),Ze=Je>1?"r":Je<-1?"l":"";if(Ze){var bt=Ze==="r"?"l":"r",Ht=u({},Z),mr=Z[Ze];Z.from=mr.from,Z.to=mr.to,Z[Ze]=mr[Ze],Ht[Ze]=mr[bt],Z[bt]=Ht,Ht.d=R_(Ht)}Z.d=R_(Z)}function R_(Z){var ee=Z.r,Ce=Z.l;return(ee?Ce?Math.max(ee.d,Ce.d):ee.d:Ce?Ce.d:0)+1}function CI(Z,ee){return w(ee).forEach(function(Ce){Z[Ce]?Gb(Z[Ce],ee[Ce]):Z[Ce]=__(ee[Ce])}),Z}function c2(Z,ee){return Z.all||ee.all||Object.keys(Z).some(function(Ce){return ee[Ce]&&EP(ee[Ce],Z[Ce])})}var gS={},nF={},iF=!1;function PI(Z,ee){CI(nF,Z),iF||(iF=!0,setTimeout(function(){iF=!1;var Ce=nF;nF={},EI(Ce,!1)},0))}function EI(Z,ee){ee===void 0&&(ee=!1);var Ce=new Set;if(Z.all)for(var Je=0,Ze=Object.values(gS);Je<Ze.length;Je++){var bt=Ze[Je];DI(bt,Z,Ce,ee)}else for(var Ht in Z){var mr=/^idb\:\/\/(.*)\/(.*)\//.exec(Ht);if(mr){var hr=mr[1],Jr=mr[2],bt=gS["idb://".concat(hr,"/").concat(Jr)];bt&&DI(bt,Z,Ce,ee)}}Ce.forEach(function(On){return On()})}function DI(Z,ee,Ce,Je){for(var Ze=[],bt=0,Ht=Object.entries(Z.queries.query);bt<Ht.length;bt++){for(var mr=Ht[bt],hr=mr[0],Jr=mr[1],On=[],fn=0,Ni=Jr;fn<Ni.length;fn++){var Ba=Ni[fn];c2(ee,Ba.obsSet)?Ba.subscribers.forEach(function(ea){return Ce.add(ea)}):Je&&On.push(Ba)}Je&&Ze.push([hr,On])}if(Je)for(var mn=0,$n=Ze;mn<$n.length;mn++){var Si=$n[mn],hr=Si[0],On=Si[1];Z.queries.query[hr]=On}}function OB(Z){var ee=Z._state,Ce=Z._deps.indexedDB;if(ee.isBeingOpened||Z.idbdb)return ee.dbReadyPromise.then(function(){return ee.dbOpenError?ld(ee.dbOpenError):Z});ee.isBeingOpened=!0,ee.dbOpenError=null,ee.openComplete=!1;var Je=ee.openCanceller,Ze=Math.round(Z.verno*10),bt=!1;function Ht(){if(ee.openCanceller!==Je)throw new yc.DatabaseClosed("db.open() was cancelled")}var mr=ee.dbReadyResolve,hr=null,Jr=!1,On=function(){return new As(function(fn,Ni){if(Ht(),!Ce)throw new yc.MissingAPI;var Ba=Z.name,mn=ee.autoSchema||!Ze?Ce.open(Ba):Ce.open(Ba,Ze);if(!mn)throw new yc.MissingAPI;mn.onerror=lg(Ni),mn.onblocked=Ra(Z._fireOnBlocked),mn.onupgradeneeded=Ra(function($n){if(hr=mn.transaction,ee.autoSchema&&!Z._options.allowEmptyDB){mn.onerror=o2,hr.abort(),mn.result.close();var Si=Ce.deleteDatabase(Ba);Si.onsuccess=Si.onerror=Ra(function(){Ni(new yc.NoSuchDatabase("Database ".concat(Ba," doesnt exist")))})}else{hr.onerror=lg(Ni);var ea=$n.oldVersion>Math.pow(2,62)?0:$n.oldVersion;Jr=ea<1,Z.idbdb=mn.result,bt&&uK(Z,hr),b_e(Z,ea/10,hr,Ni)}},Ni),mn.onsuccess=Ra(function(){hr=null;var $n=Z.idbdb=mn.result,Si=si($n.objectStoreNames);if(Si.length>0)try{var ea=$n.transaction(g_e(Si),"readonly");if(ee.autoSchema)T_e(Z,$n,ea);else if(tF(Z,Z._dbSchema,ea),!w_e(Z,ea)&&!bt)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."),$n.close(),Ze=$n.version+1,bt=!0,fn(On());X7(Z,ea)}catch{}cg.push(Z),$n.onversionchange=Ra(function(zi){ee.vcFired=!0,Z.on("versionchange").fire(zi)}),$n.onclose=Ra(function(zi){Z.on("close").fire(zi)}),Jr&&DB(Z._deps,Ba),fn()},Ni)}).catch(function(fn){switch(fn?.name){case"UnknownError":if(ee.PR1398_maxLoop>0)return ee.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),On();break;case"VersionError":if(Ze>0)return Ze=0,On();break}return As.reject(fn)})};return As.race([Je,(typeof navigator>"u"?As.resolve():fK()).then(On)]).then(function(){return Ht(),ee.onReadyBeingFired=[],As.resolve(x1(function(){return Z.on.ready.fire(Z.vip)})).then(function fn(){if(ee.onReadyBeingFired.length>0){var Ni=ee.onReadyBeingFired.reduce(fI,pp);return ee.onReadyBeingFired=[],As.resolve(x1(function(){return Ni(Z.vip)})).then(fn)}})}).finally(function(){ee.openCanceller===Je&&(ee.onReadyBeingFired=null,ee.isBeingOpened=!1)}).catch(function(fn){ee.dbOpenError=fn;try{hr&&hr.abort()}catch{}return Je===ee.openCanceller&&Z._close(),ld(fn)}).finally(function(){ee.openComplete=!0,mr()}).then(function(){if(Jr){var fn={};Z.tables.forEach(function(Ni){Ni.schema.indexes.forEach(function(Ba){Ba.name&&(fn["idb://".concat(Z.name,"/").concat(Ni.name,"/").concat(Ba.name)]=new ud(-1/0,[[[]]]))}),fn["idb://".concat(Z.name,"/").concat(Ni.name,"/")]=fn["idb://".concat(Z.name,"/").concat(Ni.name,"/:dels")]=new ud(-1/0,[[[]]])}),Hb(CP).fire(fn),EI(fn,!0)}return Z})}function Fn(Z){var ee=function(Ht){return Z.next(Ht)},Ce=function(Ht){return Z.throw(Ht)},Je=bt(ee),Ze=bt(Ce);function bt(Ht){return function(mr){var hr=Ht(mr),Jr=hr.value;return hr.done?Jr:!Jr||typeof Jr.then!="function"?O(Jr)?Promise.all(Jr).then(Je,Ze):Je(Jr):Jr.then(Je,Ze)}}return bt(ee)()}function FO(Z,ee,Ce){var Je=arguments.length;if(Je<2)throw new yc.InvalidArgument("Too few arguments");for(var Ze=new Array(Je-1);--Je;)Ze[Je-1]=arguments[Je];Ce=Ze.pop();var bt=f_(Ze);return[Z,bt,Ce]}function aF(Z,ee,Ce,Je,Ze){return As.resolve().then(function(){var bt=ko.transless||ko,Ht=Z._createTransaction(ee,Ce,Z._dbSchema,Je);Ht.explicit=!0;var mr={trans:Ht,transless:bt};if(Je)Ht.idbtrans=Je.idbtrans;else try{Ht.create(),Ht.idbtrans._explicit=!0,Z._state.PR1398_maxLoop=3}catch(fn){return fn.name===_B.InvalidState&&Z.isOpen()&&--Z._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),Z.close({disableAutoOpen:!1}),Z.open().then(function(){return aF(Z,ee,Ce,null,Ze)})):ld(fn)}var hr=pf(Ze);hr&&Ua();var Jr,On=As.follow(function(){if(Jr=Ze.call(Ht,Ht),Jr)if(hr){var fn=nm.bind(null,null);Jr.then(fn,fn)}else typeof Jr.next=="function"&&typeof Jr.throw=="function"&&(Jr=Fn(Jr))},mr);return(Jr&&typeof Jr.then=="function"?As.resolve(Jr).then(function(fn){return Ht.active?fn:ld(new yc.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):On.then(function(){return Jr})).then(function(fn){return Je&&Ht._resolve(),Ht._completion.then(function(){return fn})}).catch(function(fn){return Ht._reject(fn),ld(fn)})})}function MO(Z,ee,Ce){for(var Je=O(Z)?Z.slice():[Z],Ze=0;Ze<Ce;++Ze)Je.push(ee);return Je}function sF(Z){return u(u({},Z),{table:function(ee){var Ce=Z.table(ee),Je=Ce.schema,Ze={},bt=[];function Ht($n,Si,ea){var zi=F_($n),Hi=Ze[zi]=Ze[zi]||[],va=$n==null?0:typeof $n=="string"?1:$n.length,Li=Si>0,fs=u(u({},ea),{name:Li?"".concat(zi,"(virtual-from:").concat(ea.name,")"):ea.name,lowLevelIndex:ea,isVirtual:Li,keyTail:Si,keyLength:va,extractKey:SB($n),unique:!Li&&ea.unique});if(Hi.push(fs),fs.isPrimaryKey||bt.push(fs),va>1){var Ws=va===2?$n[0]:$n.slice(0,va-1);Ht(Ws,Si+1,ea)}return Hi.sort(function(ws,ic){return ws.keyTail-ic.keyTail}),fs}var mr=Ht(Je.primaryKey.keyPath,0,Je.primaryKey);Ze[":id"]=[mr];for(var hr=0,Jr=Je.indexes;hr<Jr.length;hr++){var On=Jr[hr];Ht(On.keyPath,0,On)}function fn($n){var Si=Ze[F_($n)];return Si&&Si[0]}function Ni($n,Si){return{type:$n.type===1?2:$n.type,lower:MO($n.lower,$n.lowerOpen?Z.MAX_KEY:Z.MIN_KEY,Si),lowerOpen:!0,upper:MO($n.upper,$n.upperOpen?Z.MIN_KEY:Z.MAX_KEY,Si),upperOpen:!0}}function Ba($n){var Si=$n.query.index;return Si.isVirtual?u(u({},$n),{query:{index:Si.lowLevelIndex,range:Ni($n.query.range,Si.keyTail)}}):$n}var mn=u(u({},Ce),{schema:u(u({},Je),{primaryKey:mr,indexes:bt,getIndexByKeyPath:fn}),count:function($n){return Ce.count(Ba($n))},query:function($n){return Ce.query(Ba($n))},openCursor:function($n){var Si=$n.query.index,ea=Si.keyTail,zi=Si.isVirtual,Hi=Si.keyLength;if(!zi)return Ce.openCursor($n);function va(Li){function fs(ws){ws!=null?Li.continue(MO(ws,$n.reverse?Z.MAX_KEY:Z.MIN_KEY,ea)):$n.unique?Li.continue(Li.key.slice(0,Hi).concat($n.reverse?Z.MIN_KEY:Z.MAX_KEY,ea)):Li.continue()}var Ws=Object.create(Li,{continue:{value:fs},continuePrimaryKey:{value:function(ws,ic){Li.continuePrimaryKey(MO(ws,Z.MAX_KEY,ea),ic)}},primaryKey:{get:function(){return Li.primaryKey}},key:{get:function(){var ws=Li.key;return Hi===1?ws[0]:ws.slice(0,Hi)}},value:{get:function(){return Li.value}}});return Ws}return Ce.openCursor(Ba($n)).then(function(Li){return Li&&va(Li)})}});return mn}})}var oF={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:sF};function RO(Z,ee,Ce,Je){return Ce=Ce||{},Je=Je||"",w(Z).forEach(function(Ze){if(!ye(ee,Ze))Ce[Je+Ze]=void 0;else{var bt=Z[Ze],Ht=ee[Ze];if(typeof bt=="object"&&typeof Ht=="object"&&bt&&Ht){var mr=li(bt),hr=li(Ht);mr!==hr?Ce[Je+Ze]=ee[Ze]:mr==="Object"?RO(bt,Ht,Ce,Je+Ze+"."):bt!==Ht&&(Ce[Je+Ze]=ee[Ze])}else bt!==Ht&&(Ce[Je+Ze]=ee[Ze])}}),w(ee).forEach(function(Ze){ye(Z,Ze)||(Ce[Je+Ze]=ee[Ze])}),Ce}function OI(Z,ee){return ee.type==="delete"?ee.keys:ee.keys||ee.values.map(Z.extractKey)}var cF={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(Z){return u(u({},Z),{table:function(ee){var Ce=Z.table(ee),Je=Ce.schema.primaryKey,Ze=u(u({},Ce),{mutate:function(bt){var Ht=ko.trans,mr=Ht.table(ee).hook,hr=mr.deleting,Jr=mr.creating,On=mr.updating;switch(bt.type){case"add":if(Jr.fire===pp)break;return Ht._promise("readwrite",function(){return fn(bt)},!0);case"put":if(Jr.fire===pp&&On.fire===pp)break;return Ht._promise("readwrite",function(){return fn(bt)},!0);case"delete":if(hr.fire===pp)break;return Ht._promise("readwrite",function(){return fn(bt)},!0);case"deleteRange":if(hr.fire===pp)break;return Ht._promise("readwrite",function(){return Ni(bt)},!0)}return Ce.mutate(bt);function fn(mn){var $n=ko.trans,Si=mn.keys||OI(Je,mn);if(!Si)throw new Error("Keys missing");return mn=mn.type==="add"||mn.type==="put"?u(u({},mn),{keys:Si}):u({},mn),mn.type!=="delete"&&(mn.values=f([],mn.values,!0)),mn.keys&&(mn.keys=f([],mn.keys,!0)),NB(Ce,mn,Si).then(function(ea){var zi=Si.map(function(Hi,va){var Li=ea[va],fs={onerror:null,onsuccess:null};if(mn.type==="delete")hr.fire.call(fs,Hi,Li,$n);else if(mn.type==="add"||Li===void 0){var Ws=Jr.fire.call(fs,Hi,mn.values[va],$n);Hi==null&&Ws!=null&&(Hi=Ws,mn.keys[va]=Hi,Je.outbound||Ks(mn.values[va],Je.keyPath,Hi))}else{var ws=RO(Li,mn.values[va]),ic=On.fire.call(fs,ws,Hi,Li,$n);if(ic){var dl=mn.values[va];Object.keys(ic).forEach(function(so){ye(dl,so)?dl[so]=ic[so]:Ks(dl,so,ic[so])})}}return fs});return Ce.mutate(mn).then(function(Hi){for(var va=Hi.failures,Li=Hi.results,fs=Hi.numFailures,Ws=Hi.lastResult,ws=0;ws<Si.length;++ws){var ic=Li?Li[ws]:Si[ws],dl=zi[ws];ic==null?dl.onerror&&dl.onerror(va[ws]):dl.onsuccess&&dl.onsuccess(mn.type==="put"&&ea[ws]?mn.values[ws]:ic)}return{failures:va,results:Li,numFailures:fs,lastResult:Ws}}).catch(function(Hi){return zi.forEach(function(va){return va.onerror&&va.onerror(Hi)}),Promise.reject(Hi)})})}function Ni(mn){return Ba(mn.trans,mn.range,1e4)}function Ba(mn,$n,Si){return Ce.query({trans:mn,values:!1,query:{index:Je,range:$n},limit:Si}).then(function(ea){var zi=ea.result;return fn({type:"delete",keys:zi,trans:mn}).then(function(Hi){return Hi.numFailures>0?Promise.reject(Hi.failures[0]):zi.length<Si?{failures:[],numFailures:0,lastResult:void 0}:Ba(mn,u(u({},$n),{lower:zi[zi.length-1],lowerOpen:!0}),Si)})})}}});return Ze}})}};function NB(Z,ee,Ce){return ee.type==="add"?Promise.resolve([]):Z.getMany({trans:ee.trans,keys:Ce,cache:"immutable"})}function NI(Z,ee,Ce){try{if(!ee||ee.keys.length<Z.length)return null;for(var Je=[],Ze=0,bt=0;Ze<ee.keys.length&&bt<Z.length;++Ze)au(ee.keys[Ze],Z[bt])===0&&(Je.push(Ce?ci(ee.values[Ze]):ee.values[Ze]),++bt);return Je.length===Z.length?Je:null}catch{return null}}var AB={stack:"dbcore",level:-1,create:function(Z){return{table:function(ee){var Ce=Z.table(ee);return u(u({},Ce),{getMany:function(Je){if(!Je.cache)return Ce.getMany(Je);var Ze=NI(Je.keys,Je.trans._cache,Je.cache==="clone");return Ze?As.resolve(Ze):Ce.getMany(Je).then(function(bt){return Je.trans._cache={keys:Je.keys,values:Je.cache==="clone"?ci(bt):bt},bt})},mutate:function(Je){return Je.type!=="add"&&(Je.trans._cache=null),Ce.mutate(Je)}})}}}};function lF(Z,ee){return Z.trans.mode==="readonly"&&!!Z.subscr&&!Z.trans.explicit&&Z.trans.db._options.cache!=="disabled"&&!ee.schema.primaryKey.outbound}function jO(Z,ee){switch(Z){case"query":return ee.values&&!ee.unique;case"get":return!1;case"getMany":return!1;case"count":return!1;case"openCursor":return!1}}var IB={stack:"dbcore",level:0,name:"Observability",create:function(Z){var ee=Z.schema.name,Ce=new ud(Z.MIN_KEY,Z.MAX_KEY);return u(u({},Z),{transaction:function(Je,Ze,bt){if(ko.subscr&&Ze!=="readonly")throw new yc.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(ko.querier));return Z.transaction(Je,Ze,bt)},table:function(Je){var Ze=Z.table(Je),bt=Ze.schema,Ht=bt.primaryKey,mr=bt.indexes,hr=Ht.extractKey,Jr=Ht.outbound,On=Ht.autoIncrement&&mr.filter(function(mn){return mn.compound&&mn.keyPath.includes(Ht.keyPath)}),fn=u(u({},Ze),{mutate:function(mn){var $n,Si,ea=mn.trans,zi=mn.mutatedParts||(mn.mutatedParts={}),Hi=function(Sc){var mu="idb://".concat(ee,"/").concat(Je,"/").concat(Sc);return zi[mu]||(zi[mu]=new ud)},va=Hi(""),Li=Hi(":dels"),fs=mn.type,Ws=mn.type==="deleteRange"?[mn.range]:mn.type==="delete"?[mn.keys]:mn.values.length<50?[OI(Ht,mn).filter(function(Sc){return Sc}),mn.values]:[],ws=Ws[0],ic=Ws[1],dl=mn.trans._cache;if(O(ws)){va.addKeys(ws);var so=fs==="delete"||ws.length===ic.length?NI(ws,dl):null;so||Li.addKeys(ws),(so||ic)&&DP(Hi,bt,so,ic)}else if(ws){var Us={from:($n=ws.lower)!==null&&$n!==void 0?$n:Z.MIN_KEY,to:(Si=ws.upper)!==null&&Si!==void 0?Si:Z.MAX_KEY};Li.add(Us),va.add(Us)}else va.add(Ce),Li.add(Ce),bt.indexes.forEach(function(Sc){return Hi(Sc.name).add(Ce)});return Ze.mutate(mn).then(function(Sc){return ws&&(mn.type==="add"||mn.type==="put")&&(va.addKeys(Sc.results),On&&On.forEach(function(mu){for(var ac=mn.values.map(function(fg){return mu.extractKey(fg)}),d_=mu.keyPath.findIndex(function(fg){return fg===Ht.keyPath}),pg=0,S1=Sc.results.length;pg<S1;++pg)ac[pg][d_]=Sc.results[pg];Hi(mu.name).addKeys(ac)})),ea.mutatedParts=CI(ea.mutatedParts||{},zi),Sc})}}),Ni=function(mn){var $n,Si,ea=mn.query,zi=ea.index,Hi=ea.range;return[zi,new ud(($n=Hi.lower)!==null&&$n!==void 0?$n:Z.MIN_KEY,(Si=Hi.upper)!==null&&Si!==void 0?Si:Z.MAX_KEY)]},Ba={get:function(mn){return[Ht,new ud(mn.key)]},getMany:function(mn){return[Ht,new ud().addKeys(mn.keys)]},count:Ni,query:Ni,openCursor:Ni};return w(Ba).forEach(function(mn){fn[mn]=function($n){var Si=ko.subscr,ea=!!Si,zi=lF(ko,Ze)&&jO(mn,$n),Hi=zi?$n.obsSet={}:Si;if(ea){var va=function(so){var Us="idb://".concat(ee,"/").concat(Je,"/").concat(so);return Hi[Us]||(Hi[Us]=new ud)},Li=va(""),fs=va(":dels"),Ws=Ba[mn]($n),ws=Ws[0],ic=Ws[1];if(mn==="query"&&ws.isPrimaryKey&&!$n.values?fs.add(ic):va(ws.name||"").add(ic),!ws.isPrimaryKey)if(mn==="count")fs.add(Ce);else{var dl=mn==="query"&&Jr&&$n.values&&Ze.query(u(u({},$n),{values:!1}));return Ze[mn].apply(this,arguments).then(function(so){if(mn==="query"){if(Jr&&$n.values)return dl.then(function(ac){var d_=ac.result;return Li.addKeys(d_),so});var Us=$n.values?so.result.map(hr):so.result;$n.values?Li.addKeys(Us):fs.addKeys(Us)}else if(mn==="openCursor"){var Sc=so,mu=$n.values;return Sc&&Object.create(Sc,{key:{get:function(){return fs.addKey(Sc.primaryKey),Sc.key}},primaryKey:{get:function(){var ac=Sc.primaryKey;return fs.addKey(ac),ac}},value:{get:function(){return mu&&Li.addKey(Sc.primaryKey),Sc.value}}})}return so})}}return Ze[mn].apply(this,arguments)}}),fn}})}};function DP(Z,ee,Ce,Je){function Ze(bt){var Ht=Z(bt.name||"");function mr(Jr){return Jr!=null?bt.extractKey(Jr):null}var hr=function(Jr){return bt.multiEntry&&O(Jr)?Jr.forEach(function(On){return Ht.addKey(On)}):Ht.addKey(Jr)};(Ce||Je).forEach(function(Jr,On){var fn=Ce&&mr(Ce[On]),Ni=Je&&mr(Je[On]);au(fn,Ni)!==0&&(fn!=null&&hr(fn),Ni!=null&&hr(Ni))})}ee.indexes.forEach(Ze)}function AI(Z,ee,Ce){if(Ce.numFailures===0)return ee;if(ee.type==="deleteRange")return null;var Je=ee.keys?ee.keys.length:"values"in ee&&ee.values?ee.values.length:1;if(Ce.numFailures===Je)return null;var Ze=u({},ee);return O(Ze.keys)&&(Ze.keys=Ze.keys.filter(function(bt,Ht){return!(Ht in Ce.failures)})),"values"in Ze&&O(Ze.values)&&(Ze.values=Ze.values.filter(function(bt,Ht){return!(Ht in Ce.failures)})),Ze}function FB(Z,ee){return ee.lower===void 0?!0:ee.lowerOpen?au(Z,ee.lower)>0:au(Z,ee.lower)>=0}function MB(Z,ee){return ee.upper===void 0?!0:ee.upperOpen?au(Z,ee.upper)<0:au(Z,ee.upper)<=0}function LO(Z,ee){return FB(Z,ee)&&MB(Z,ee)}function uF(Z,ee,Ce,Je,Ze,bt){if(!Ce||Ce.length===0)return Z;var Ht=ee.query.index,mr=Ht.multiEntry,hr=ee.query.range,Jr=Je.schema.primaryKey,On=Jr.extractKey,fn=Ht.extractKey,Ni=(Ht.lowLevelIndex||Ht).extractKey,Ba=Ce.reduce(function(mn,$n){var Si=mn,ea=[];if($n.type==="add"||$n.type==="put")for(var zi=new ud,Hi=$n.values.length-1;Hi>=0;--Hi){var va=$n.values[Hi],Li=On(va);if(!zi.hasKey(Li)){var fs=fn(va);(mr&&O(fs)?fs.some(function(so){return LO(so,hr)}):LO(fs,hr))&&(zi.addKey(Li),ea.push(va))}}switch($n.type){case"add":{var Ws=new ud().addKeys(ee.values?mn.map(function(so){return On(so)}):mn);Si=mn.concat(ee.values?ea.filter(function(so){var Us=On(so);return Ws.hasKey(Us)?!1:(Ws.addKey(Us),!0)}):ea.map(function(so){return On(so)}).filter(function(so){return Ws.hasKey(so)?!1:(Ws.addKey(so),!0)}));break}case"put":{var ws=new ud().addKeys($n.values.map(function(so){return On(so)}));Si=mn.filter(function(so){return!ws.hasKey(ee.values?On(so):so)}).concat(ee.values?ea:ea.map(function(so){return On(so)}));break}case"delete":var ic=new ud().addKeys($n.keys);Si=mn.filter(function(so){return!ic.hasKey(ee.values?On(so):so)});break;case"deleteRange":var dl=$n.range;Si=mn.filter(function(so){return!LO(On(so),dl)});break}return Si},Z);return Ba===Z?Z:(Ba.sort(function(mn,$n){return au(Ni(mn),Ni($n))||au(On(mn),On($n))}),ee.limit&&ee.limit<1/0&&(Ba.length>ee.limit?Ba.length=ee.limit:Z.length===ee.limit&&Ba.length<ee.limit&&(Ze.dirty=!0)),bt?Object.freeze(Ba):Ba)}function pF(Z,ee){return au(Z.lower,ee.lower)===0&&au(Z.upper,ee.upper)===0&&!!Z.lowerOpen==!!ee.lowerOpen&&!!Z.upperOpen==!!ee.upperOpen}function RB(Z,ee,Ce,Je){if(Z===void 0)return ee!==void 0?-1:0;if(ee===void 0)return 1;var Ze=au(Z,ee);if(Ze===0){if(Ce&&Je)return 0;if(Ce)return 1;if(Je)return-1}return Ze}function jB(Z,ee,Ce,Je){if(Z===void 0)return ee!==void 0?1:0;if(ee===void 0)return-1;var Ze=au(Z,ee);if(Ze===0){if(Ce&&Je)return 0;if(Ce)return-1;if(Je)return 1}return Ze}function LB(Z,ee){return RB(Z.lower,ee.lower,Z.lowerOpen,ee.lowerOpen)<=0&&jB(Z.upper,ee.upper,Z.upperOpen,ee.upperOpen)>=0}function BB(Z,ee,Ce,Je){var Ze=gS["idb://".concat(Z,"/").concat(ee)];if(!Ze)return[];var bt=Ze.queries[Ce];if(!bt)return[null,!1,Ze,null];var Ht=Je.query?Je.query.index.name:null,mr=bt[Ht||""];if(!mr)return[null,!1,Ze,null];switch(Ce){case"query":var hr=mr.find(function(fn){return fn.req.limit===Je.limit&&fn.req.values===Je.values&&pF(fn.req.query.range,Je.query.range)});if(hr)return[hr,!0,Ze,mr];var Jr=mr.find(function(fn){var Ni="limit"in fn.req?fn.req.limit:1/0;return Ni>=Je.limit&&(Je.values?fn.req.values:!0)&&LB(fn.req.query.range,Je.query.range)});return[Jr,!1,Ze,mr];case"count":var On=mr.find(function(fn){return pF(fn.req.query.range,Je.query.range)});return[On,!!On,Ze,mr]}}function qB(Z,ee,Ce,Je){Z.subscribers.add(Ce),Je.addEventListener("abort",function(){Z.subscribers.delete(Ce),Z.subscribers.size===0&&JB(Z,ee)})}function JB(Z,ee){setTimeout(function(){Z.subscribers.size===0&&Vc(ee,Z)},3e3)}var zB={stack:"dbcore",level:0,name:"Cache",create:function(Z){var ee=Z.schema.name,Ce=u(u({},Z),{transaction:function(Je,Ze,bt){var Ht=Z.transaction(Je,Ze,bt);if(Ze==="readwrite"){var mr=new AbortController,hr=mr.signal,Jr=function(On){return function(){if(mr.abort(),Ze==="readwrite"){for(var fn=new Set,Ni=0,Ba=Je;Ni<Ba.length;Ni++){var mn=Ba[Ni],$n=gS["idb://".concat(ee,"/").concat(mn)];if($n){var Si=Z.table(mn),ea=$n.optimisticOps.filter(function(mu){return mu.trans===Ht});if(Ht._explicit&&On&&Ht.mutatedParts)for(var zi=0,Hi=Object.values($n.queries.query);zi<Hi.length;zi++)for(var va=Hi[zi],Li=0,fs=va.slice();Li<fs.length;Li++){var Ws=fs[Li];c2(Ws.obsSet,Ht.mutatedParts)&&(Vc(va,Ws),Ws.subscribers.forEach(function(mu){return fn.add(mu)}))}else if(ea.length>0){$n.optimisticOps=$n.optimisticOps.filter(function(mu){return mu.trans!==Ht});for(var ws=0,ic=Object.values($n.queries.query);ws<ic.length;ws++)for(var va=ic[ws],dl=0,so=va.slice();dl<so.length;dl++){var Ws=so[dl];if(Ws.res!=null&&Ht.mutatedParts)if(On&&!Ws.dirty){var Us=Object.isFrozen(Ws.res),Sc=uF(Ws.res,Ws.req,ea,Si,Ws,Us);Ws.dirty?(Vc(va,Ws),Ws.subscribers.forEach(function(d_){return fn.add(d_)})):Sc!==Ws.res&&(Ws.res=Sc,Ws.promise=As.resolve({result:Sc}))}else Ws.dirty&&Vc(va,Ws),Ws.subscribers.forEach(function(d_){return fn.add(d_)})}}}}fn.forEach(function(mu){return mu()})}}};Ht.addEventListener("abort",Jr(!1),{signal:hr}),Ht.addEventListener("error",Jr(!1),{signal:hr}),Ht.addEventListener("complete",Jr(!0),{signal:hr})}return Ht},table:function(Je){var Ze=Z.table(Je),bt=Ze.schema.primaryKey,Ht=u(u({},Ze),{mutate:function(mr){var hr=ko.trans;if(bt.outbound||hr.db._options.cache==="disabled"||hr.explicit||hr.idbtrans.mode!=="readwrite")return Ze.mutate(mr);var Jr=gS["idb://".concat(ee,"/").concat(Je)];if(!Jr)return Ze.mutate(mr);var On=Ze.mutate(mr);return(mr.type==="add"||mr.type==="put")&&(mr.values.length>=50||OI(bt,mr).some(function(fn){return fn==null}))?On.then(function(fn){var Ni=u(u({},mr),{values:mr.values.map(function(mn,$n){var Si;if(fn.failures[$n])return mn;var ea=!((Si=bt.keyPath)===null||Si===void 0)&&Si.includes(".")?ci(mn):u({},mn);return Ks(ea,bt.keyPath,fn.results[$n]),ea})}),Ba=AI(Jr,Ni,fn);Jr.optimisticOps.push(Ba),queueMicrotask(function(){return mr.mutatedParts&&PI(mr.mutatedParts)})}):(Jr.optimisticOps.push(mr),mr.mutatedParts&&PI(mr.mutatedParts),On.then(function(fn){if(fn.numFailures>0){Vc(Jr.optimisticOps,mr);var Ni=AI(Jr,mr,fn);Ni&&Jr.optimisticOps.push(Ni),mr.mutatedParts&&PI(mr.mutatedParts)}}),On.catch(function(){Vc(Jr.optimisticOps,mr),mr.mutatedParts&&PI(mr.mutatedParts)})),On},query:function(mr){var hr;if(!lF(ko,Ze)||!jO("query",mr))return Ze.query(mr);var Jr=((hr=ko.trans)===null||hr===void 0?void 0:hr.db._options.cache)==="immutable",On=ko,fn=On.requery,Ni=On.signal,Ba=BB(ee,Je,"query",mr),mn=Ba[0],$n=Ba[1],Si=Ba[2],ea=Ba[3];if(mn&&$n)mn.obsSet=mr.obsSet;else{var zi=Ze.query(mr).then(function(Hi){var va=Hi.result;if(mn&&(mn.res=va),Jr){for(var Li=0,fs=va.length;Li<fs;++Li)Object.freeze(va[Li]);Object.freeze(va)}else Hi.result=ci(va);return Hi}).catch(function(Hi){return ea&&mn&&Vc(ea,mn),Promise.reject(Hi)});mn={obsSet:mr.obsSet,promise:zi,subscribers:new Set,type:"query",req:mr,dirty:!1},ea?ea.push(mn):(ea=[mn],Si||(Si=gS["idb://".concat(ee,"/").concat(Je)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}}),Si.queries.query[mr.query.index.name||""]=ea)}return qB(mn,ea,fn,Ni),mn.promise.then(function(Hi){return{result:uF(Hi.result,mr,Si?.optimisticOps,Ze,mn,Jr)}})}});return Ht}});return Ce}};function BO(Z,ee){return new Proxy(Z,{get:function(Ce,Je,Ze){return Je==="db"?ee:Reflect.get(Ce,Je,Ze)}})}var Kb=function(){function Z(ee,Ce){var Je=this;this._middlewares={},this.verno=0;var Ze=Z.dependencies;this._options=Ce=u({addons:Z.addons,autoOpen:!0,indexedDB:Ze.indexedDB,IDBKeyRange:Ze.IDBKeyRange,cache:"cloned"},Ce),this._deps={indexedDB:Ce.indexedDB,IDBKeyRange:Ce.IDBKeyRange};var bt=Ce.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var Ht={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pp,dbReadyPromise:null,cancelOpen:pp,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:Ce.autoOpen};Ht.dbReadyPromise=new As(function(hr){Ht.dbReadyResolve=hr}),Ht.openCanceller=new As(function(hr,Jr){Ht.cancelOpen=Jr}),this._state=Ht,this.name=ee,this.on=SP(this,"populate","blocked","versionchange","close",{ready:[fI,pp]}),this.on.ready.subscribe=Oi(this.on.ready.subscribe,function(hr){return function(Jr,On){Z.vip(function(){var fn=Je._state;if(fn.openComplete)fn.dbOpenError||As.resolve().then(Jr),On&&hr(Jr);else if(fn.onReadyBeingFired)fn.onReadyBeingFired.push(Jr),On&&hr(Jr);else{hr(Jr);var Ni=Je;On||hr(function Ba(){Ni.on.ready.unsubscribe(Jr),Ni.on.ready.unsubscribe(Ba)})}})}}),this.Collection=m_e(this),this.Table=DO(this),this.Transaction=Q7(this),this.Version=EB(this),this.WhereClause=cK(this),this.on("versionchange",function(hr){hr.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(Je.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(Je.name,"'. Closing db now to resume the delete request.")),Je.close({disableAutoOpen:!1})}),this.on("blocked",function(hr){!hr.newVersion||hr.newVersion<hr.oldVersion?console.warn("Dexie.delete('".concat(Je.name,"') was blocked")):console.warn("Upgrade '".concat(Je.name,"' blocked by other connection holding version ").concat(hr.oldVersion/10))}),this._maxKey=SI(Ce.IDBKeyRange),this._createTransaction=function(hr,Jr,On,fn){return new Je.Transaction(hr,Jr,On,Je._options.chromeTransactionDurability,fn)},this._fireOnBlocked=function(hr){Je.on("blocked").fire(hr),cg.filter(function(Jr){return Jr.name===Je.name&&Jr!==Je&&!Jr._state.vcFired}).map(function(Jr){return Jr.on("versionchange").fire(hr)})},this.use(AB),this.use(zB),this.use(IB),this.use(oF),this.use(cF);var mr=new Proxy(this,{get:function(hr,Jr,On){if(Jr==="_vip")return!0;if(Jr==="table")return function(Ni){return BO(Je.table(Ni),mr)};var fn=Reflect.get(hr,Jr,On);return fn instanceof vI?BO(fn,mr):Jr==="tables"?fn.map(function(Ni){return BO(Ni,mr)}):Jr==="_createTransaction"?function(){var Ni=fn.apply(this,arguments);return BO(Ni,mr)}:fn}});this.vip=mr,bt.forEach(function(hr){return hr(Je)})}return Z.prototype.version=function(ee){if(isNaN(ee)||ee<.1)throw new yc.Type("Given version is not a positive number");if(ee=Math.round(ee*10)/10,this.idbdb||this._state.isBeingOpened)throw new yc.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,ee);var Ce=this._versions,Je=Ce.filter(function(Ze){return Ze._cfg.version===ee})[0];return Je||(Je=new this.Version(ee),Ce.push(Je),Ce.sort(v_e),Je.stores({}),this._state.autoSchema=!1,Je)},Z.prototype._whenReady=function(ee){var Ce=this;return this.idbdb&&(this._state.openComplete||ko.letThrough||this._vip)?ee():new As(function(Je,Ze){if(Ce._state.openComplete)return Ze(new yc.DatabaseClosed(Ce._state.dbOpenError));if(!Ce._state.isBeingOpened){if(!Ce._state.autoOpen){Ze(new yc.DatabaseClosed);return}Ce.open().catch(pp)}Ce._state.dbReadyPromise.then(Je,Ze)}).then(ee)},Z.prototype.use=function(ee){var Ce=ee.stack,Je=ee.create,Ze=ee.level,bt=ee.name;bt&&this.unuse({stack:Ce,name:bt});var Ht=this._middlewares[Ce]||(this._middlewares[Ce]=[]);return Ht.push({stack:Ce,create:Je,level:Ze??10,name:bt}),Ht.sort(function(mr,hr){return mr.level-hr.level}),this},Z.prototype.unuse=function(ee){var Ce=ee.stack,Je=ee.name,Ze=ee.create;return Ce&&this._middlewares[Ce]&&(this._middlewares[Ce]=this._middlewares[Ce].filter(function(bt){return Ze?bt.create!==Ze:Je?bt.name!==Je:!1})),this},Z.prototype.open=function(){var ee=this;return Rg(tm,function(){return OB(ee)})},Z.prototype._close=function(){var ee=this._state,Ce=cg.indexOf(this);if(Ce>=0&&cg.splice(Ce,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}ee.isBeingOpened||(ee.dbReadyPromise=new As(function(Je){ee.dbReadyResolve=Je}),ee.openCanceller=new As(function(Je,Ze){ee.cancelOpen=Ze}))},Z.prototype.close=function(ee){var Ce=ee===void 0?{disableAutoOpen:!0}:ee,Je=Ce.disableAutoOpen,Ze=this._state;Je?(Ze.isBeingOpened&&Ze.cancelOpen(new yc.DatabaseClosed),this._close(),Ze.autoOpen=!1,Ze.dbOpenError=new yc.DatabaseClosed):(this._close(),Ze.autoOpen=this._options.autoOpen||Ze.isBeingOpened,Ze.openComplete=!1,Ze.dbOpenError=null)},Z.prototype.delete=function(ee){var Ce=this;ee===void 0&&(ee={disableAutoOpen:!0});var Je=arguments.length>0&&typeof arguments[0]!="object",Ze=this._state;return new As(function(bt,Ht){var mr=function(){Ce.close(ee);var hr=Ce._deps.indexedDB.deleteDatabase(Ce.name);hr.onsuccess=Ra(function(){PP(Ce._deps,Ce.name),bt()}),hr.onerror=lg(Ht),hr.onblocked=Ce._fireOnBlocked};if(Je)throw new yc.InvalidArgument("Invalid closeOptions argument to db.delete()");Ze.isBeingOpened?Ze.dbReadyPromise.then(mr):mr()})},Z.prototype.backendDB=function(){return this.idbdb},Z.prototype.isOpen=function(){return this.idbdb!==null},Z.prototype.hasBeenClosed=function(){var ee=this._state.dbOpenError;return ee&&ee.name==="DatabaseClosed"},Z.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Z.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Z.prototype,"tables",{get:function(){var ee=this;return w(this._allTables).map(function(Ce){return ee._allTables[Ce]})},enumerable:!1,configurable:!0}),Z.prototype.transaction=function(){var ee=FO.apply(this,arguments);return this._transaction.apply(this,ee)},Z.prototype._transaction=function(ee,Ce,Je){var Ze=this,bt=ko.trans;(!bt||bt.db!==this||ee.indexOf("!")!==-1)&&(bt=null);var Ht=ee.indexOf("?")!==-1;ee=ee.replace("!","").replace("?","");var mr,hr;try{if(hr=Ce.map(function(On){var fn=On instanceof Ze.Table?On.name:On;if(typeof fn!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return fn}),ee=="r"||ee===H7)mr=H7;else if(ee=="rw"||ee==mc)mr=mc;else throw new yc.InvalidArgument("Invalid transaction mode: "+ee);if(bt){if(bt.mode===H7&&mr===mc)if(Ht)bt=null;else throw new yc.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");bt&&hr.forEach(function(On){if(bt&&bt.storeNames.indexOf(On)===-1)if(Ht)bt=null;else throw new yc.SubTransaction("Table "+On+" not included in parent transaction.")}),Ht&&bt&&!bt.active&&(bt=null)}}catch(On){return bt?bt._promise(null,function(fn,Ni){Ni(On)}):ld(On)}var Jr=aF.bind(null,this,mr,hr,bt,Je);return bt?bt._promise(mr,Jr,"lock"):ko.trans?Rg(ko.transless,function(){return Ze._whenReady(Jr)}):this._whenReady(Jr)},Z.prototype.table=function(ee){if(!ye(this._allTables,ee))throw new yc.InvalidTable("Table ".concat(ee," does not exist"));return this._allTables[ee]},Z}(),WB=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",fF=function(){function Z(ee){this._subscribe=ee}return Z.prototype.subscribe=function(ee,Ce,Je){return this._subscribe(!ee||typeof ee=="function"?{next:ee,error:Ce,complete:Je}:ee)},Z.prototype[WB]=function(){return this},Z}(),qO;try{qO={indexedDB:d.indexedDB||d.mozIndexedDB||d.webkitIndexedDB||d.msIndexedDB,IDBKeyRange:d.IDBKeyRange||d.webkitIDBKeyRange}}catch{qO={indexedDB:null,IDBKeyRange:null}}function _F(Z){var ee=!1,Ce,Je=new fF(function(Ze){var bt=pf(Z);function Ht(ea){var zi=lk();try{bt&&Ua();var Hi=Sh(Z,ea);return bt&&(Hi=Hi.finally(nm)),Hi}finally{zi&&Wb()}}var mr=!1,hr,Jr={},On={},fn={get closed(){return mr},unsubscribe:function(){mr||(mr=!0,hr&&hr.abort(),Ni&&Hb.storagemutated.unsubscribe($n))}};Ze.start&&Ze.start(fn);var Ni=!1,Ba=function(){return yB(Si)};function mn(){return c2(On,Jr)}var $n=function(ea){CI(Jr,ea),mn()&&Ba()},Si=function(){if(!(mr||!qO.indexedDB)){Jr={};var ea={};hr&&hr.abort(),hr=new AbortController;var zi={subscr:ea,signal:hr.signal,requery:Ba,querier:Z,trans:null},Hi=Ht(zi);Promise.resolve(Hi).then(function(va){ee=!0,Ce=va,!(mr||zi.signal.aborted)&&(Jr={},On=ea,!wa(On)&&!Ni&&(Hb(CP,$n),Ni=!0),yB(function(){return!mr&&Ze.next&&Ze.next(va)}))},function(va){ee=!1,["DatabaseClosedError","AbortError"].includes(va?.name)||mr||yB(function(){mr||Ze.error&&Ze.error(va)})})}};return setTimeout(Ba,0),fn});return Je.hasValue=function(){return ee},Je.getValue=function(){return Ce},Je}var hS=Kb;Be(hS,u(u({},W7),{delete:function(Z){var ee=new hS(Z,{addons:[]});return ee.delete()},exists:function(Z){return new hS(Z,{addons:[]}).open().then(function(ee){return ee.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(Z){try{return xc(hS.dependencies).then(Z)}catch{return ld(new yc.MissingAPI)}},defineClass:function(){function Z(ee){q(this,ee)}return Z},ignoreTransaction:function(Z){return ko.trans?Rg(ko.transless,Z):Z()},vip:x1,async:function(Z){return function(){try{var ee=Fn(Z.apply(this,arguments));return!ee||typeof ee.then!="function"?As.resolve(ee):ee}catch(Ce){return ld(Ce)}}},spawn:function(Z,ee,Ce){try{var Je=Fn(Z.apply(Ce,ee||[]));return!Je||typeof Je.then!="function"?As.resolve(Je):Je}catch(Ze){return ld(Ze)}},currentTransaction:{get:function(){return ko.trans||null}},waitFor:function(Z,ee){var Ce=As.resolve(typeof Z=="function"?hS.ignoreTransaction(Z):Z).timeout(ee||6e4);return ko.trans?ko.trans.waitFor(Ce):Ce},Promise:As,debug:{get:function(){return ti},set:function(Z){I_(Z)}},derive:Re,extend:q,props:Be,override:Oi,Events:SP,on:Hb,liveQuery:_F,extendObservabilitySet:CI,getByKeyPath:Ir,setByKeyPath:Ks,delByKeyPath:Va,shallowClone:up,deepClone:ci,getObjectDiff:RO,cmp:au,asap:ns,minKey:im,addons:[],connections:cg,errnames:_B,dependencies:qO,cache:gS,semVer:zs,version:zs.split(".").map(function(Z){return parseInt(Z)}).reduce(function(Z,ee,Ce){return Z+ee/Math.pow(10,Ce*2)})})),hS.maxKey=SI(hS.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Hb(CP,function(Z){if(!Qb){var ee;ee=new CustomEvent(K7,{detail:Z}),Qb=!0,dispatchEvent(ee),Qb=!1}}),addEventListener(K7,function(Z){var ee=Z.detail;Qb||JO(ee)}));function JO(Z){var ee=Qb;try{Qb=!0,Hb.storagemutated.fire(Z),EI(Z,!0)}finally{Qb=ee}}var Qb=!1,yS,II=function(){};typeof BroadcastChannel<"u"&&(II=function(){yS=new BroadcastChannel(K7),yS.onmessage=function(Z){return Z.data&&JO(Z.data)}},II(),typeof yS.unref=="function"&&yS.unref(),Hb(CP,function(Z){Qb||yS.postMessage(Z)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(Z){if(!Kb.disableBfCache&&Z.persisted){ti&&console.debug("Dexie: handling persisted pagehide"),yS?.close();for(var ee=0,Ce=cg;ee<Ce.length;ee++){var Je=Ce[ee];Je.close({disableAutoOpen:!1})}}}),addEventListener("pageshow",function(Z){!Kb.disableBfCache&&Z.persisted&&(ti&&console.debug("Dexie: handling persisted pageshow"),II(),JO({all:new ud(-1/0,[[]])}))}));function UB(Z){return new jg({add:Z})}function $B(Z){return new jg({remove:Z})}function VB(Z,ee){return new jg({replacePrefix:[Z,ee]})}As.rejectionMapper=zb,I_(ti);var HB=Object.freeze({__proto__:null,Dexie:Kb,liveQuery:_F,Entity:xP,cmp:au,PropModSymbol:wP,PropModification:jg,replacePrefix:VB,add:UB,remove:$B,default:Kb,RangeSet:ud,mergeRanges:Gb,rangesOverlap:EP});return u(Kb,HB,{default:Kb}),Kb})});var a_e,gOt,YG,Nwn,Awn,Iwn,Fwn,Mwn,Rwn,jwn,Lwn,Bwn,qwn,Jwn,hOt=mi(()=>{a_e=Ea(mOt(),1),gOt=Symbol.for("Dexie"),YG=globalThis[gOt]||(globalThis[gOt]=a_e.default);if(a_e.default.semVer!==YG.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${a_e.default.semVer} and ${YG.semVer}`);({liveQuery:Nwn,mergeRanges:Awn,rangesOverlap:Iwn,RangeSet:Fwn,cmp:Mwn,Entity:Rwn,PropModSymbol:jwn,PropModification:Lwn,replacePrefix:Bwn,add:qwn,remove:Jwn}=YG)});function bOt(o,a,u,f){var d="rxdb-dexie-"+o+"--"+f.version+"--"+a,w=yh(vOt,d,()=>{var O=(async()=>{var q=Kd(u);q.autoOpen=!1;var K=new YG(d,q);u.onCreate&&await u.onCreate(K,d);var le={[ZG]:xan(f),[ban]:"++sequence, id",[yOt]:"id"};return K.version(1).stores(le),await K.open(),{dexieDb:K,dexieTable:K[ZG],dexieAttachmentsTable:K[yOt],booleanIndexes:San(f)}})();return vOt.set(d,w),s_e.set(w,0),O});return w}async function xOt(o){var a=await o,u=s_e.get(o),f=u-1;f===0?(a.dexieDb.close(),s_e.delete(o)):s_e.set(o,f)}function B7(o){var a=o.split(".");if(a.length>1)return a.map(f=>B7(f)).join(".");if(o.startsWith("|")){var u=o.substring(1);return IMe+u}else return o}function SOt(o){var a=o.split(".");if(a.length>1)return a.map(f=>SOt(f)).join(".");if(o.startsWith(IMe)){var u=o.substring(IMe.length);return"|"+u}else return o}function TOt(o,a){if(!a)return a;var u=Kd(a);return u=FMe(u),o.forEach(f=>{var d=oO(a,f),w=d?"1":"0",O=B7(f);KOe(u,O,w)}),u}function RMe(o,a){return a&&(a=Kd(a),a=MMe(a),o.forEach(u=>{var f=oO(a,u),d=f==="1";KOe(a,u,d)}),a)}function FMe(o){if(!o||typeof o=="string"||typeof o=="number"||typeof o=="boolean")return o;if(Array.isArray(o))return o.map(u=>FMe(u));if(typeof o=="object"){var a={};return Object.entries(o).forEach(([u,f])=>{typeof f=="object"&&(f=FMe(f)),a[B7(u)]=f}),a}}function MMe(o){if(!o||typeof o=="string"||typeof o=="number"||typeof o=="boolean")return o;if(Array.isArray(o))return o.map(u=>MMe(u));if(typeof o=="object"){var a={};return Object.entries(o).forEach(([u,f])=>{(typeof f=="object"||Array.isArray(o))&&(f=MMe(f)),a[SOt(u)]=f}),a}}function xan(o){var a=[],u=XT(o.primaryKey);a.push([u]),a.push(["_deleted",u]),o.indexes&&o.indexes.forEach(w=>{var O=jH(w);a.push(O)}),a.push(["_meta.lwt",u]),a.push(["_meta.lwt"]),a=a.map(w=>w.map(O=>B7(O)));var f=a.map(w=>w.length===1?w[0]:"["+w.join("+")+"]");f=f.filter((w,O,q)=>q.indexOf(w)===O);var d=f.join(", ");return d}async function jMe(o,a){var u=await o,f=await u.dexieTable.bulkGet(a);return f.map(d=>RMe(u.booleanIndexes,d))}function eK(o,a){return o+"||"+a}function San(o){var a=new Set,u=[];return o.indexes?(o.indexes.forEach(f=>{var d=jH(f);d.forEach(w=>{if(!a.has(w)){a.add(w);var O=cO(o,w);O.type==="boolean"&&u.push(w)}})}),u.push("_deleted"),Gut(u)):u}var ZG,ban,yOt,o_e,vOt,s_e,IMe,tK=mi(()=>{hOt();O_();Qw();ZG="docs",ban="changes",yOt="attachments",o_e="dexie",vOt=new Map,s_e=new Map;IMe="__"});function wOt(o){return o===S7?-1/0:o}function kOt(o,a,u){if(o.includes(a)){var f=u===x7||u===!0?"1":"0";return f}else return u}function COt(o,a,u){if(!u){if(typeof window>"u")throw new Error("IDBKeyRange missing");u=window.IDBKeyRange}var f=a.startKeys.map((O,q)=>{var K=a.index[q];return kOt(o,K,O)}).map(wOt),d=a.endKeys.map((O,q)=>{var K=a.index[q];return kOt(o,K,O)}).map(wOt),w=u.bound(f,d,!a.inclusiveStart,!a.inclusiveEnd);return w}async function LMe(o,a){var u=await o.internals,f=a.query,d=f.skip?f.skip:0,w=f.limit?f.limit:1/0,O=d+w,q=a.queryPlan,K=!1;q.selectorSatisfiedByIndex||(K=Z9(o.schema,a.query));var le=COt(u.booleanIndexes,q,u.dexieDb._options.IDBKeyRange),ye=q.index,Be=[];if(await u.dexieDb.transaction("r",u.dexieTable,async mt=>{var Re=mt.idbtrans,Ge=Re.objectStore(ZG),_r,jr;jr="["+ye.map(Oi=>B7(Oi)).join("+")+"]",_r=Ge.index(jr);var si=_r.openCursor(le);await new Promise(Oi=>{si.onsuccess=function(ys){var ns=ys.target.result;if(ns){var sn=RMe(u.booleanIndexes,ns.value);(!K||K(sn))&&Be.push(sn),q.sortSatisfiedByIndex&&Be.length===O?Oi():ns.continue()}else Oi()}})}),!q.sortSatisfiedByIndex){var ce=Cfe(o.schema,a.query);Be=Be.sort(ce)}return Be=Be.slice(d,O),{documents:Be}}async function POt(o,a){var u=await o.internals,f=a.queryPlan,d=f.index,w=COt(u.booleanIndexes,f,u.dexieDb._options.IDBKeyRange),O=-1;return await u.dexieDb.transaction("r",u.dexieTable,async q=>{var K=q.idbtrans,le=K.objectStore(ZG),ye,Be;Be="["+d.map(mt=>B7(mt)).join("+")+"]",ye=le.index(Be);var ce=ye.count(w);O=await new Promise((mt,Re)=>{ce.onsuccess=function(){mt(ce.result)},ce.onerror=Ge=>Re(Ge)})}),O}var BMe=mi(()=>{kpe();tB();tK()});async function DOt(o,a,u){var f=bOt(a.databaseName,a.collectionName,u,a.schema),d=new wan(o,a.databaseName,a.collectionName,a.schema,f,a.options,u,a.devMode);return await pOt(o_e,a,d),Promise.resolve(d)}function q7(o){if(o.closed)throw new Error("RxStorageInstanceDexie is closed "+o.databaseName+"-"+o.collectionName)}var EOt,Tan,qMe,wan,JMe=mi(()=>{EOt=Ea(q9(),1);O_();tK();BMe();Qw();ak();i_e();ng();Tan=Fb(),qMe=!1,wan=function(){function o(u,f,d,w,O,q,K,le){this.changes$=new EOt.Subject,this.instanceId=Tan++,this.storage=u,this.databaseName=f,this.collectionName=d,this.schema=w,this.internals=O,this.options=q,this.settings=K,this.devMode=le,this.primaryPath=XT(this.schema.primaryKey)}var a=o.prototype;return a.bulkWrite=async function(f,d){q7(this),!qMe&&!await Xoe()&&console.warn(["-------------- RxDB Open Core RxStorage -------------------------------","You are using the free Dexie.js based RxStorage implementation from RxDB https://rxdb.info/rx-storage-dexie.html?console=dexie ","While this is a great option, we want to let you know that there are faster storage solutions available in our premium plugins.","For professional users and production environments, we highly recommend considering these premium options to enhance performance and reliability."," https://rxdb.info/premium/?console=dexie ","If you already purchased premium access you can disable this log by calling the setPremiumFlag() function from rxdb-premium/plugins/shared.","---------------------------------------------------------------------"].join(`
|
|
`)),qMe=!0,f.forEach(ye=>{if(!ye.document._rev||ye.previous&&!ye.previous._rev)throw mo("SNH",{args:{row:ye}})});var w=await this.internals,O={error:[]};this.devMode&&(f=f.map(ye=>{var Be=j7(ye.document);return{previous:ye.previous,document:Be}}));var q=f.map(ye=>ye.document[this.primaryPath]),K;if(await w.dexieDb.transaction("rw",w.dexieTable,w.dexieAttachmentsTable,async()=>{var ye=new Map,Be=await jMe(this.internals,q);Be.forEach(Re=>{var Ge=Re;return Ge&&ye.set(Ge[this.primaryPath],Ge),Ge}),K=jCt(this,this.primaryPath,ye,f,d),O.error=K.errors;var ce=[];K.bulkInsertDocs.forEach(Re=>{ce.push(Re.document)}),K.bulkUpdateDocs.forEach(Re=>{ce.push(Re.document)}),ce=ce.map(Re=>TOt(w.booleanIndexes,Re)),ce.length>0&&await w.dexieTable.bulkPut(ce);var mt=[];K.attachmentsAdd.forEach(Re=>{mt.push({id:eK(Re.documentId,Re.attachmentId),data:Re.attachmentData.data})}),K.attachmentsUpdate.forEach(Re=>{mt.push({id:eK(Re.documentId,Re.attachmentId),data:Re.attachmentData.data})}),await w.dexieAttachmentsTable.bulkPut(mt),await w.dexieAttachmentsTable.bulkDelete(K.attachmentsRemove.map(Re=>eK(Re.documentId,Re.attachmentId)))}),K=xp(K),K.eventBulk.events.length>0){var le=xp(K.newestRow).document;K.eventBulk.checkpoint={id:le[this.primaryPath],lwt:le._meta.lwt},this.changes$.next(K.eventBulk)}return O},a.findDocumentsById=async function(f,d){q7(this);var w=await this.internals,O=[];return await w.dexieDb.transaction("r",w.dexieTable,async()=>{var q=await jMe(this.internals,f);q.forEach(K=>{K&&(!K._deleted||d)&&O.push(K)})}),O},a.query=function(f){return q7(this),LMe(this,f)},a.count=async function(f){if(f.queryPlan.selectorSatisfiedByIndex){var d=await POt(this,f);return{count:d,mode:"fast"}}else{var w=await LMe(this,f);return{count:w.documents.length,mode:"slow"}}},a.changeStream=function(){return q7(this),this.changes$.asObservable()},a.cleanup=async function(f){q7(this);var d=await this.internals;return await d.dexieDb.transaction("rw",d.dexieTable,async()=>{var w=Fb()-f,O=await d.dexieTable.where("_meta.lwt").below(w).toArray(),q=[];O.forEach(K=>{K._deleted==="1"&&q.push(K[this.primaryPath])}),await d.dexieTable.bulkDelete(q)}),!0},a.getAttachmentData=async function(f,d,w){q7(this);var O=await this.internals,q=eK(f,d);return await O.dexieDb.transaction("r",O.dexieAttachmentsTable,async()=>{var K=await O.dexieAttachmentsTable.get(q);if(K)return K.data;throw new Error("attachment missing documentId: "+f+" attachmentId: "+d)})},a.remove=async function(){q7(this);var f=await this.internals;return await f.dexieTable.clear(),this.close()},a.close=function(){return this.closed?this.closed:(this.closed=(async()=>{this.changes$.complete(),await xOt(this.internals)})(),this.closed)},o}()});function OOt(o={}){var a=new kan(o);return a}var kan,NOt=mi(()=>{tK();JMe();ak();XOe();ng();kan=function(){function o(u){this.name=o_e,this.rxdbVersion=WH,this.settings=u}var a=o.prototype;return a.createStorageInstance=function(f){if(LCt(f),f.schema.indexes){var d=f.schema.indexes.flat();d.filter(w=>!w.includes(".")).forEach(w=>{if(!f.schema.required||!f.schema.required.includes(w))throw mo("DXE1",{field:w,schema:f.schema})})}return DOt(this,f,this.settings)},o}()});var AOt=mi(()=>{NOt();JMe();tK();BMe()});var IOt=Ve((gkn,rK)=>{function Can(o){throw new TypeError('"'+o+'" is read-only')}rK.exports=Can,rK.exports.__esModule=!0,rK.exports.default=rK.exports});function cB(o,a){Object.keys(a).forEach(u=>{Pan.includes(u)||(typeof o[u]>"u"?o[u]=a[u]:lB(a[u])?cB(o[u],a[u]):o[u]=a[u])})}function lB(o){return o.toString()==="[object Object]"}var Pan,FOt=mi(()=>{Pan=["__proto__","constructor","prototype"]});function Ean(o){return Object.entries(o).map(([a,u])=>{var f=u===1?"asc":"desc",d={[a]:f};return d})}function MOt(o,a,u){if(Array.isArray(o.sort))throw Ib("MQ6",{opts:o,field:a,value:u});if(u&&u.$meta){var f=o.sort||(o.sort={});f[a]={$meta:u.$meta};return}var d=String(u||1).toLowerCase();if(!/^(?:ascending|asc|descending|desc|1|-1)$/.test(d))throw Array.isArray(u)&&(u="["+u+"]"),Ib("MQ7",{field:a,value:u});var w=o.sort||(o.sort={}),O=u.toString().replace("asc","1").replace("ascending","1").replace("desc","-1").replace("descending","-1");w[a]=parseInt(O,10)}function Dan(o,a,u){if(o.sort=o.sort||[],!Array.isArray(o.sort))throw Ib("MQ8",{opts:o,field:a,value:u});o.sort.push([a,u])}function ROt(o){return o instanceof c_e||lB(o)}function jOt(o,a){return new c_e(o,a)}var ykn,c_e,zMe,WMe,UMe=mi(()=>{ykn=Ea(IOt(),1);FOt();ng();c_e=function(){function o(u,f){if(this.options={},this._conditions={},this._fields={},this._path=f,u){var d=this;u.selector&&d.find(u.selector),u.limit&&d.limit(u.limit),u.skip&&d.skip(u.skip),u.sort&&u.sort.forEach(w=>d.sort(w))}}var a=o.prototype;return a.where=function(f,d){if(!arguments.length)return this;var w=typeof arguments[0];if(w==="string")return this._path=arguments[0],arguments.length===2&&(this._conditions[this._path]=arguments[1]),this;if(w==="object"&&!Array.isArray(arguments[0]))return this.merge(arguments[0]);throw Ib("MQ1",{path:arguments[0]})},a.equals=function(f){this._ensurePath("equals");var d=this._path;return this._conditions[d]=f,this},a.eq=function(f){this._ensurePath("eq");var d=this._path;return this._conditions[d]=f,this},a.or=function(f){var d=this._conditions.$or||(this._conditions.$or=[]);return Array.isArray(f)||(f=[f]),d.push.apply(d,f),this},a.nor=function(f){var d=this._conditions.$nor||(this._conditions.$nor=[]);return Array.isArray(f)||(f=[f]),d.push.apply(d,f),this},a.and=function(f){var d=this._conditions.$and||(this._conditions.$and=[]);return Array.isArray(f)||(f=[f]),d.push.apply(d,f),this},a.mod=function(f,d){var w,O;arguments.length===1?(this._ensurePath("mod"),w=arguments[0],O=this._path):arguments.length===2&&!Array.isArray(arguments[1])?(this._ensurePath("mod"),w=arguments.slice(),O=this._path):arguments.length===3?(w=arguments.slice(1),O=arguments[0]):(w=arguments[1],O=arguments[0]);var q=this._conditions[O]||(this._conditions[O]={});return q.$mod=w,this},a.exists=function(f,d){var w,O;arguments.length===0?(this._ensurePath("exists"),w=this._path,O=!0):arguments.length===1?typeof arguments[0]=="boolean"?(this._ensurePath("exists"),w=this._path,O=arguments[0]):(w=arguments[0],O=!0):arguments.length===2&&(w=arguments[0],O=arguments[1]);var q=this._conditions[w]||(this._conditions[w]={});return q.$exists=O,this},a.elemMatch=function(f,d){if(arguments[0]===null)throw Ib("MQ2");var w,O,q;if(typeof arguments[0]=="function")this._ensurePath("elemMatch"),O=this._path,w=arguments[0];else if(lB(arguments[0]))this._ensurePath("elemMatch"),O=this._path,q=arguments[0];else if(typeof arguments[1]=="function")O=arguments[0],w=arguments[1];else if(arguments[1]&&lB(arguments[1]))O=arguments[0],q=arguments[1];else throw Ib("MQ2");w&&(q=new o,w(q),q=q._conditions);var K=this._conditions[O]||(this._conditions[O]={});return K.$elemMatch=q,this},a.sort=function(f){if(!f)return this;var d,w=typeof f;if(Array.isArray(f)){d=f.length;for(var O=0;O<f.length;++O)Dan(this.options,f[O][0],f[O][1]);return this}if(arguments.length===1&&w==="string"){f=f.split(/\s+/),d=f.length;for(var q=0;q<d;++q){var K=f[q];if(K){var le=K[0]==="-"?-1:1;le===-1&&(K=K.substring(1)),MOt(this.options,K,le)}}return this}if(lB(f)){var ye=Object.keys(f);return ye.forEach(Be=>MOt(this.options,Be,f[Be])),this}throw Ib("MQ3",{args:arguments})},a.merge=function(f){if(!f)return this;if(!ROt(f))throw Ib("MQ4",{source:f});return f instanceof o?(f._conditions&&cB(this._conditions,f._conditions),f._fields&&(this._fields||(this._fields={}),cB(this._fields,f._fields)),f.options&&(this.options||(this.options={}),cB(this.options,f.options)),f._distinct&&(this._distinct=f._distinct),this):(cB(this._conditions,f),this)},a.find=function(f){return ROt(f)&&this.merge(f),this},a._ensurePath=function(f){if(!this._path)throw mo("MQ5",{method:f})},a.toJSON=function(){var f={selector:this._conditions};return this.options.skip&&(f.skip=this.options.skip),this.options.limit&&(f.limit=this.options.limit),this.options.sort&&(f.sort=Ean(this.options.sort)),{query:f,path:this._path}},o}();zMe=["limit","skip","maxScan","batchSize","comment"];zMe.forEach(function(o){c_e.prototype[o]=function(a){return this.options[o]=a,this}});WMe=["gt","gte","lt","lte","ne","in","nin","all","regex","size"];WMe.forEach(function(o){c_e.prototype[o]=function(){var a,u;arguments.length===1?(this._ensurePath(o),u=arguments[0],a=this._path):(u=arguments[1],a=arguments[0]);var f=this._conditions[a]===null||typeof this._conditions[a]=="object"?this._conditions[a]:this._conditions[a]={};if(o==="regex"){if(u instanceof RegExp)throw mo("QU16",{field:a,query:this._conditions});typeof u=="string"?f["$"+o]=u:(f["$"+o]=u.$regex,u.$options&&(f.$options=u.$options))}else f["$"+o]=u;return this}})});function Oan(o,a,u){var f=jOt(QT(o.mangoQuery),o.other[LOt]);f[a](u);var d=f.toJSON();return sI(o.op,d.query,o.collection,{...o.other,[LOt]:d.path})}function $Me(o,a){o[a]=function(u){if(Vp.isDevMode()&&this.op==="findByIds")throw mo("QU17",{collection:this.collection.name,query:this.mangoQuery});return Oan(this,a,u)}}var LOt,BOt,qOt=mi(()=>{UMe();UG();O_();Ab();ng();UMe();LOt="queryBuilderPath";BOt={name:"query-builder",rxdb:!0,prototypes:{RxQuery(o){["where","equals","eq","or","nor","and","mod","exists","elemMatch","sort"].forEach(a=>{$Me(o,a)}),zMe.forEach(a=>{$Me(o,a)}),WMe.forEach(a=>{$Me(o,a)})}}}});function JOt(o){return yh(Nan,o,()=>EMe(o))}function Aan(){var o=OMe(this.storage.name,this.token,this.name,this),a=this.close.bind(this);this.close=function(){return n_e(this.token,this),a()};var u=JOt(o);return u||(u=JOt(o),zOt.set(this,u)),this.leaderElector=()=>u,u}function Ian(){return this.multiInstance?this.leaderElector().isLeader:!0}function Fan(){return this.multiInstance?this.leaderElector().awaitLeadership().then(()=>!0):UOe}function Man(o){var a=zOt.get(o);a&&a.die()}var zOt,Nan,Ran,jan,WOt,UOt=mi(()=>{DMe();i_e();O_();zOt=new WeakMap,Nan=new WeakMap;Ran=!0,jan={RxDatabase:o=>{o.leaderElector=Aan,o.isLeader=Ian,o.waitForLeadership=Fan}},WOt={name:"leader-election",rxdb:Ran,prototypes:jan,hooks:{preCloseRxDatabase:{after:Man}}}});var CO,VMe=mi(()=>{"use strict";CO=globalThis.fetch||(async(o,a)=>{let u=require("https"),f=require("http"),w=new URL(o).protocol==="https:";return new Promise((O,q)=>{let K=(w?u:f).request(o,a,le=>{let ye="";le.on("data",Be=>ye+=Be),le.on("end",()=>{O({ok:le.statusCode>=200&&le.statusCode<300,status:le.statusCode,statusText:le.statusMessage,json:async()=>JSON.parse(ye),text:async()=>ye})})});K.on("error",q),a?.body&&K.write(a.body),K.end()})})});var HMe,Lan,uB,pB,l_e,$Ot=mi(()=>{"use strict";dOt();AOt();qOt();UOt();HMe=Ea(require("path"));VMe();J5e(BOt);J5e(WOt);Lan={version:0,primaryKey:"id",type:"object",properties:{id:{type:"string",maxLength:200},content:{type:"string"},title:{type:"string"},type:{type:"string",enum:["document","code","chat","note","reference"]},embedding:{type:"array",items:{type:"number"},maxItems:1536,minItems:0},metadata:{type:"object",properties:{author:{type:"string"},project:{type:"string"},language:{type:"string"},framework:{type:"string"},created:{type:"number"},updated:{type:"number"},size:{type:"number"},tokens:{type:"number"}}},references:{type:"array",ref:"documents",items:{type:"string"}},tags:{type:"array",items:{type:"string"}},searchText:{type:"string"}},required:["id","content","type"],indexes:["type","metadata.author","metadata.project",["type","metadata.project"],"metadata.created","tags"],methods:{similarity:function(o){if(!this.embedding||!o)return 0;let a=0,u=0,f=0;for(let d=0;d<this.embedding.length;d++)a+=this.embedding[d]*o[d],u+=this.embedding[d]*this.embedding[d],f+=o[d]*o[d];return u=Math.sqrt(u),f=Math.sqrt(f),u&&f?a/(u*f):0}}},uB=class{constructor(){this.model="all-MiniLM-L6-v2";this.dimension=384}async initialize(){try{try{this.ort=require("onnxruntime-node")}catch{console.warn("ONNX Runtime not available, using mock embeddings");return}let a;try{a=require("@xenova/transformers")}catch{console.warn("Transformers not available, using mock embeddings");return}let{AutoTokenizer:u}=a,f=HMe.join(__dirname,"../../models/all-MiniLM-L6-v2.onnx");this.session=await this.ort.InferenceSession.create(f),this.tokenizer=await u.from_pretrained("sentence-transformers/all-MiniLM-L6-v2"),console.log("Local embedding server initialized with all-MiniLM-L6-v2")}catch(a){console.warn("Local embedding server not available, using mock embeddings:",a)}}async embed(a){if(!this.session)return this.mockEmbed(a);let u=await this.tokenizer(a,{padding:!0,truncation:!0,return_tensors:"pt"}),f={input_ids:new this.ort.Tensor("int64",u.input_ids.data,u.input_ids.shape),attention_mask:new this.ort.Tensor("int64",u.attention_mask.data,u.attention_mask.shape)},w=(await this.session.run(f)).last_hidden_state.data,O=new Float32Array(this.dimension),q=u.input_ids.shape[1];for(let le=0;le<this.dimension;le++){let ye=0;for(let Be=0;Be<q;Be++)ye+=w[Be*this.dimension+le];O[le]=ye/q}let K=0;for(let le=0;le<O.length;le++)K+=O[le]*O[le];K=Math.sqrt(K);for(let le=0;le<O.length;le++)O[le]/=K;return Array.from(O)}async embedBatch(a){return Promise.all(a.map(u=>this.embed(u)))}mockEmbed(a){let f=require("crypto").createHash("sha256").update(a).digest(),d=new Float32Array(this.dimension);for(let w=0;w<this.dimension;w++)d[w]=f[w%f.length]/255*2-1;return Array.from(d)}},pB=class{constructor(a,u){switch(this.provider=a,this.apiKey=u,a){case"openai":this.model="text-embedding-ada-002",this.dimension=1536;break;case"cohere":this.model="embed-english-v2.0",this.dimension=4096;break;case"hanzo":this.model="hanzo-embed-v1",this.dimension=768;break}}async embed(a){return(await this.callAPI([a]))[0]}async embedBatch(a){return this.callAPI(a)}async callAPI(a){let u,f,d={"Content-Type":"application/json"};switch(this.provider){case"openai":u="https://api.openai.com/v1/embeddings",d.Authorization=`Bearer ${this.apiKey}`,f={model:this.model,input:a};break;case"cohere":u="https://api.cohere.ai/v1/embed",d.Authorization=`Bearer ${this.apiKey}`,f={model:this.model,texts:a};break;case"hanzo":u="https://api.hanzo.ai/v1/embeddings",d["X-API-Key"]=this.apiKey,f={model:this.model,inputs:a};break}let w=await CO(u,{method:"POST",headers:d,body:JSON.stringify(f)});if(!w.ok)throw new Error(`Embedding API error: ${w.statusText}`);let O=await w.json();switch(this.provider){case"openai":return O.data.map(q=>q.embedding);case"cohere":return O.embeddings;case"hanzo":return O.embeddings;default:throw new Error(`Unknown provider: ${this.provider}`)}}},l_e=class{constructor(a,u){this.dbPath=HMe.join(a,"hanzo-unified.db"),this.embeddingServer=u||new uB}async initialize(){this.embeddingServer instanceof uB&&await this.embeddingServer.initialize(),this.db=await NEt({name:this.dbPath,storage:OOt(),password:"hanzo-unified-2024",multiInstance:!0,eventReduce:!0,cleanupPolicy:{minimumDeletedTime:1e3*60*60*24*7,minimumCollectionAge:1e3*60*60*24,runEach:1e3*60*60*4}});let a=await this.db.addCollections({documents:{schema:Lan,methods:{async findSimilar(u=10){return this.embedding?(await this.collection.find().exec()).filter(w=>w.id!==this.id&&w.embedding).map(w=>({document:w,score:w.similarity(this.embedding)})).sort((w,O)=>O.score-w.score).slice(0,u):[]}}}});this.documents=a.documents,this.documents.preInsert(async u=>{!u.embedding&&u.content&&(u.embedding=await this.embeddingServer.embed(u.content)),u.searchText=`${u.title||""} ${u.content} ${(u.tags||[]).join(" ")}`.toLowerCase(),u.metadata=u.metadata||{},u.metadata.created=u.metadata.created||Date.now(),u.metadata.updated=Date.now(),u.metadata.tokens=Math.ceil(u.content.length/4)},!1),this.documents.preSave(async(u,f)=>{f&&u.content!==f.content&&(u.embedding=await this.embeddingServer.embed(u.content)),u.searchText=`${u.title||""} ${u.content} ${(u.tags||[]).join(" ")}`.toLowerCase(),u.metadata=u.metadata||{},u.metadata.updated=Date.now()},!1),console.log("Unified RxDB backend initialized with embedding support")}async query(a){let u=this.documents.find();a.type&&(u=u.where("type").eq(a.type)),a.author&&(u=u.where("metadata.author").eq(a.author)),a.project&&(u=u.where("metadata.project").eq(a.project)),a.dateRange&&(u=u.where("metadata.created").gte(a.dateRange.start).lte(a.dateRange.end)),a.orderBy&&(u=u.sort({[a.orderBy]:a.direction||"desc"})),a.limit&&(u=u.limit(a.limit));let f=await u.exec();return a.tags&&a.tags.length>0?f.filter(d=>{let w=d.tags||[];return a.tags.some(O=>w.includes(O))}):f}async vectorSearch(a,u={}){let f=await this.embeddingServer.embed(a),d=await this.documents.find().exec();return u.filter&&(d=await this.query(u.filter)),d.filter(O=>O.embedding).map(O=>({document:O,score:this.cosineSimilarity(f,O.embedding)})).filter(O=>!u.threshold||O.score>=u.threshold).sort((O,q)=>q.score-O.score).slice(0,u.limit||10)}async hybridSearch(a,u={},f=.5){let d=await this.query({...u,limit:100}),w=await this.vectorSearch(a,{limit:100}),O=new Map;d.forEach(le=>{O.set(le.id,1-f)}),w.forEach(({document:le,score:ye})=>{let Be=O.get(le.id)||0;O.set(le.id,Be+ye*f)});let q=Array.from(O.keys());return(await Promise.all(q.map(async le=>({document:await this.documents.findOne(le).exec(),score:O.get(le)})))).filter(le=>le.document).sort((le,ye)=>ye.score-le.score)}async fullTextSearch(a,u=20){let f=a.toLowerCase();return await this.documents.find().where("searchText").regex(f.split(" ").join(".*")).limit(u).exec()}async findConnected(a,u=2){let f=new Set,d=[{id:a,level:0}],w=[];for(;d.length>0;){let{id:O,level:q}=d.shift();if(f.has(O)||q>u)continue;f.add(O);let K=await this.documents.findOne(O).exec();K&&(w.push(K),K.references&&q<u&&K.references.forEach(le=>{f.has(le)||d.push({id:le,level:q+1})}))}return w}async aggregate(a){let u=await this.documents.find().exec(),f=new Map;if(a[0]?.$group){let w=a[0].$group._id;u.forEach(O=>{let q=O[w]||"null";f.has(q)||f.set(q,[]),f.get(q).push(O)})}let d=[];return f.forEach((w,O)=>{let q={_id:O};if(a[0]?.$group.count&&(q.count=w.length),a[0]?.$group.avgTokens){let K=w.reduce((le,ye)=>le+(ye.metadata?.tokens||0),0);q.avgTokens=K/w.length}d.push(q)}),d}async exportToJSON(){let a=await this.documents.find().exec();return{documents:a.map(u=>u.toJSON()),metadata:{exportDate:new Date().toISOString(),documentCount:a.length,embeddingModel:this.embeddingServer.model,embeddingDimension:this.embeddingServer.dimension}}}async importFromJSON(a){a.documents&&await this.documents.bulkInsert(a.documents)}cosineSimilarity(a,u){if(a.length!==u.length)return 0;let f=0,d=0,w=0;for(let O=0;O<a.length;O++)f+=a[O]*u[O],d+=a[O]*a[O],w+=u[O]*u[O];return d=Math.sqrt(d),w=Math.sqrt(w),d&&w?f/(d*w):0}}});var fB,GMe,KMe,nK,VOt=mi(()=>{"use strict";fB=Ea(f0());AH();Aoe();wOe();vOe();$Ot();VMe();GMe=class{constructor(a){this.llmProviders=new Map;this.context=a;let u=fB.workspace.getConfiguration("hanzo");if(this.useRxDB=u.get("useRxDB",!0),this.useRxDB){let f=this.createEmbeddingProvider();this.rxdbBackend=new l_e(a.globalStorageUri.fsPath,f),this.rxdbBackend.initialize().catch(console.error)}this.graphDb=new Gw,this.vectorStore=new S6,this.documentStore=new BL(a.globalStorageUri.fsPath),this.astIndexInstance=new LL,this.initializeProviders()}createEmbeddingProvider(){let a=fB.workspace.getConfiguration("hanzo.embedding");switch(a.get("provider","local")){case"openai":let f=a.get("openaiApiKey");if(f)return new pB("openai",f);break;case"cohere":let d=a.get("cohereApiKey");if(d)return new pB("cohere",d);break;case"hanzo":let w=a.get("apiKey")||fB.workspace.getConfiguration("hanzo").get("apiKey");if(w)return new pB("hanzo",w);break}return new uB}async initializeProviders(){await this.detectOllama(),await this.detectLMStudio(),await this.loadHanzoModels()}async detectOllama(){try{let a=await CO("http://localhost:11434/api/tags");if(a.ok){let u=await a.json();this.llmProviders.set("ollama",{name:"Ollama",type:"ollama",endpoint:"http://localhost:11434",models:u.models?.map(f=>f.name)||[]}),console.log("Ollama detected with models:",u.models)}}catch{}}async detectLMStudio(){try{let a=await CO("http://localhost:1234/v1/models");if(a.ok){let u=await a.json();this.llmProviders.set("lmstudio",{name:"LM Studio",type:"lmstudio",endpoint:"http://localhost:1234/v1",models:u.data?.map(f=>f.id)||[]}),console.log("LM Studio detected with models:",u.data)}}catch{}}async loadHanzoModels(){let a=fB.workspace.getConfiguration("hanzo").get("localModelEndpoint");a&&this.llmProviders.set("hanzo-local",{name:"Hanzo Local",type:"hanzo",endpoint:a,models:["zen1","zen1-mini","zen1-code"]})}async graphAddNode(a){this.graphDb.addNode(a)}async graphAddEdge(a){this.graphDb.addEdge(a)}async graphQuery(a){return this.graphDb.queryNodes(a)}async graphFindPath(a,u){return this.graphDb.findPath(a,u)||[]}async vectorIndex(a,u){return await this.vectorStore.addDocument(a,u)}async vectorSearch(a,u){return(await this.vectorStore.search(a,u)).map(d=>({...d.document,score:d.score}))}async vectorGetSimilar(a,u){return(await this.vectorStore.getSimilar(a,u)).map(d=>({...d.document,score:d.score}))}async documentAdd(a,u,f,d){return await this.documentStore.addDocument(a,u,f,d)}async documentSearch(a,u){return await this.documentStore.searchDocuments(a,u)}async documentGet(a){return this.documentStore.getDocument(a)}async astIndex(a){await this.astIndexInstance.indexFile(a)}async astSearch(a,u){return this.astIndexInstance.searchSymbols(a,u)}async llmComplete(a,u={}){let f=u.provider||this.getDefaultLLMProvider();if(!f)throw new Error("No LLM provider available");switch(f.type){case"ollama":return await this.ollamaComplete(a,u);case"lmstudio":return await this.lmStudioComplete(a,u);case"hanzo":return await this.hanzoComplete(a,u);default:throw new Error(`Unsupported provider: ${f.type}`)}}async llmEmbed(a){return this.embeddingProvider?await this.generateEmbedding(a,this.embeddingProvider):this.generateMockEmbedding(a)}async ollamaComplete(a,u){let f=u.model||"llama2",d=await CO("http://localhost:11434/api/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:f,prompt:a,stream:!1,options:{temperature:u.temperature||.7,max_tokens:u.maxTokens||1e3}})});if(!d.ok)throw new Error(`Ollama error: ${d.statusText}`);return(await d.json()).response}async lmStudioComplete(a,u){let f=await CO("http://localhost:1234/v1/completions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:u.model||"local-model",prompt:a,temperature:u.temperature||.7,max_tokens:u.maxTokens||1e3})});if(!f.ok)throw new Error(`LM Studio error: ${f.statusText}`);return(await f.json()).choices[0].text}async hanzoComplete(a,u){let f=this.llmProviders.get("hanzo-local");if(!f)throw new Error("Hanzo local model not configured");let d=await CO(`${f.endpoint}/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:u.model||"zen1",prompt:a,temperature:u.temperature||.7,max_tokens:u.maxTokens||1e3})});if(!d.ok)throw new Error(`Hanzo model error: ${d.statusText}`);return(await d.json()).text}async generateEmbedding(a,u){return this.generateMockEmbedding(a)}generateMockEmbedding(a){let u=[];for(let f=0;f<384;f++)u.push(Math.random()*2-1);return u}getDefaultLLMProvider(){return this.llmProviders.get("hanzo-local")||this.llmProviders.get("ollama")||this.llmProviders.get("lmstudio")}async save(){await this.documentStore.initialize()}async load(){await this.documentStore.initialize()}},KMe=class{constructor(a){this.apiKey=a.apiKey||"",this.endpoint=a.endpoint||"https://api.hanzo.ai",this.authToken=a.authToken}async request(a,u="GET",f){let d={"Content-Type":"application/json","X-API-Key":this.apiKey};this.authToken&&(d.Authorization=`Bearer ${this.authToken}`);let w=await CO(`${this.endpoint}${a}`,{method:u,headers:d,body:f?JSON.stringify(f):void 0});if(!w.ok)throw new Error(`Cloud API error: ${w.statusText}`);return await w.json()}async graphAddNode(a){await this.request("/graph/nodes","POST",a)}async graphAddEdge(a){await this.request("/graph/edges","POST",a)}async graphQuery(a){return await this.request("/graph/query","POST",a)}async graphFindPath(a,u){return await this.request("/graph/path","POST",{from:a,to:u})}async vectorIndex(a,u){return(await this.request("/vector/index","POST",{content:a,metadata:u})).id}async vectorSearch(a,u){return await this.request("/vector/search","POST",{query:a,...u})}async vectorGetSimilar(a,u){return await this.request("/vector/similar","POST",{id:a,topK:u})}async documentAdd(a,u,f,d){return(await this.request("/documents","POST",{chatId:a,content:u,type:f,metadata:d})).id}async documentSearch(a,u){return await this.request("/documents/search","POST",{query:a,...u})}async documentGet(a){return await this.request(`/documents/${a}`)}async astIndex(a){await this.request("/ast/index","POST",{filePath:a})}async astSearch(a,u){return await this.request("/ast/search","POST",{query:a,...u})}async llmComplete(a,u){return(await this.request("/llm/complete","POST",{prompt:a,...u})).text}async llmEmbed(a){return(await this.request("/llm/embed","POST",{text:a})).embedding}async save(){}async load(){}},nK=class{static create(a,u){if((u?.mode||fB.workspace.getConfiguration("hanzo").get("backendMode","local"))==="cloud"){if(!u?.apiKey)throw new Error("API key required for cloud mode");return new KMe(u)}return new GMe(a)}}});function GOt(o){let a=null,u=()=>(a||(a=nK.create(o)),a);return{name:"zen",description:"Hanzo Zen1 AI model for local private AI inference",inputSchema:{type:"object",properties:{prompt:{type:"string",description:"The prompt to send to Zen1"},model:{type:"string",enum:["zen1","zen1-mini","zen1-code"],description:"Which Zen model to use (default: zen1)"},temperature:{type:"number",description:"Sampling temperature (0-1, default: 0.7)"},maxTokens:{type:"number",description:"Maximum tokens to generate (default: 1000)"},system:{type:"string",description:"System prompt/instruction"},useCloud:{type:"boolean",description:"Force cloud usage even if local is available"}},required:["prompt"]},handler:async f=>{try{let d=HOt.workspace.getConfiguration("hanzo"),w=d.get("preferLocalAI",!0),O=f.prompt;f.system&&(O=`System: ${f.system}
|
|
|
|
User: ${f.prompt}
|
|
|
|
Assistant:`);let q=u();if((f.useCloud||!w&&d.get("backendMode")==="cloud")&&q.constructor.name==="LocalBackend"){let Be=d.get("apiKey");return Be?`[Zen1 Cloud Response]
|
|
${await nK.create(o,{mode:"cloud",apiKey:Be,endpoint:d.get("cloudEndpoint")}).llmComplete(O,{model:f.model||"zen1",temperature:f.temperature||.7,maxTokens:f.maxTokens||1e3,provider:"hanzo"})}`:"Error: Cloud mode requested but no API key configured. Set hanzo.apiKey in settings."}let le=await q.llmComplete(O,{model:f.model||"zen1",temperature:f.temperature||.7,maxTokens:f.maxTokens||1e3,provider:"hanzo"});return`[Zen1 ${q.constructor.name==="LocalBackend"?"Local":"Cloud"} Response]
|
|
${le}`}catch(d){return`Zen1 Error: ${d.message}
|
|
|
|
To use Zen1 locally:
|
|
1. Install Hanzo Local AI: https://hanzo.ai/download/local-ai
|
|
2. Start the local server
|
|
3. The extension will automatically detect and use it
|
|
|
|
To use Zen1 cloud:
|
|
1. Get an API key from https://hanzo.ai/account
|
|
2. Set hanzo.apiKey in VS Code settings
|
|
3. Use the 'useCloud: true' parameter
|
|
|
|
Benefits of local Zen1:
|
|
- Complete privacy - your data never leaves your machine
|
|
- No API costs - save on OpenAI/Anthropic usage
|
|
- Faster response times for small models
|
|
- Works offline
|
|
|
|
Available models:
|
|
- zen1: General purpose (7B parameters)
|
|
- zen1-mini: Fast, lightweight (3B parameters)
|
|
- zen1-code: Optimized for code generation (7B parameters)`}}}}var HOt,KOt=mi(()=>{"use strict";HOt=Ea(f0());VOt()});var QOt={};uH(QOt,{MCPTools:()=>tO});var u_e,tO,POe=mi(()=>{"use strict";u_e=Ea(f0());Alt();Flt();Rlt();Blt();Jlt();Wlt();Vlt();Glt();cut();uut();_ut();mut();hut();vut();kut();Eut();Nut();Mut();jut();Jut();Wut();KOt();tO=class{constructor(a){this.tools=new Map;this.enabledTools=new Set;this.context=a,this.loadEnabledTools()}async initialize(){console.log("[MCPTools] Initializing tools");let a=[...Ilt(this.context),...NH(this.context),...e7(this.context),...qlt(this.context),...zlt(this.context),...Ult(this.context),...Hlt(this.context),...out(this.context),...lut(this.context),...fut(this.context),...dut(this.context),...gut(this.context),...yut(this.context),wut(this.context),Put(this.context),Out(this.context),Iut(this.context),Fut(this.context),Rut(this.context),qut(this.context),zut(this.context),GOt(this.context)],u=Nlt(a,this.context);this.registerTools(u),console.log(`[MCPTools] Registered ${this.tools.size} tools`)}registerTools(a){for(let u of a)this.tools.set(u.name,u),this.isToolEnabled(u.name)&&this.enabledTools.add(u.name)}loadEnabledTools(){let a=u_e.workspace.getConfiguration("hanzo.mcp"),u=a.get("enabledTools",[]),f=a.get("disabledTools",[]);u.length===0?this.enabledTools=new Set(["read","write","edit","multi_edit","directory_tree","find_files","grep","search","symbols","unified_search","run_command","open","process","todo_read","todo_write","todo_unified","think","critic","config","rules","palette","graph_db","vector_index","vector_search","vector_similar","document_store","zen","batch","web_fetch"]):this.enabledTools=new Set(u);for(let d of f)this.enabledTools.delete(d)}isToolEnabled(a){let u=u_e.workspace.getConfiguration("hanzo.mcp");return(a.startsWith("write")||a==="edit"||a==="multi_edit")&&u.get("disableWriteTools",!1)||(a.includes("search")||a==="grep"||a==="symbols")&&u.get("disableSearchTools",!1)?!1:this.enabledTools.has(a)}getAllTools(){let a=[];for(let[u,f]of this.tools)this.isToolEnabled(u)&&a.push(f);return a}getTool(a){if(this.isToolEnabled(a))return this.tools.get(a)}enableTool(a){this.enabledTools.add(a),this.saveEnabledTools()}disableTool(a){this.enabledTools.delete(a),this.saveEnabledTools()}saveEnabledTools(){u_e.workspace.getConfiguration("hanzo.mcp").update("enabledTools",Array.from(this.enabledTools),!0)}getToolStats(){return{total:this.tools.size,enabled:this.enabledTools.size,disabled:this.tools.size-this.enabledTools.size,categories:{filesystem:this.countToolsInCategory(["read","write","edit","multi_edit","directory_tree"]),search:this.countToolsInCategory(["grep","search","symbols","find_files"]),shell:this.countToolsInCategory(["run_command","bash","open"]),ai:this.countToolsInCategory(["dispatch_agent","llm","consensus"]),development:this.countToolsInCategory(["todo_read","todo_write","notebook_read","notebook_edit"])}}}countToolsInCategory(a){return a.filter(u=>this.enabledTools.has(u)).length}}});var Wan={};uH(Wan,{AuthenticatedMCPServer:()=>f_e});module.exports=tDe(Wan);var ZOt=Ea(require("path"));var uOe=Ea(require("crypto")),hh=Ea(require("fs")),Soe=Ea(require("path")),koe=Ea(require("os"));function pH(o,a){return function(){return o.apply(a,arguments)}}var{toString:Tir}=Object.prototype,{getPrototypeOf:nDe}=Object,{iterator:Hse,toStringTag:Hat}=Symbol,Gse=(o=>a=>{let u=Tir.call(a);return o[u]||(o[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),$w=o=>(o=o.toLowerCase(),a=>Gse(a)===o),Kse=o=>a=>typeof a===o,{isArray:xL}=Array,fH=Kse("undefined");function wir(o){return o!==null&&!fH(o)&&o.constructor!==null&&!fH(o.constructor)&&Pb(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}var Gat=$w("ArrayBuffer");function kir(o){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(o):a=o&&o.buffer&&Gat(o.buffer),a}var Cir=Kse("string"),Pb=Kse("function"),Kat=Kse("number"),Qse=o=>o!==null&&typeof o=="object",Pir=o=>o===!0||o===!1,Vse=o=>{if(Gse(o)!=="object")return!1;let a=nDe(o);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Hat in o)&&!(Hse in o)},Eir=$w("Date"),Dir=$w("File"),Oir=$w("Blob"),Nir=$w("FileList"),Air=o=>Qse(o)&&Pb(o.pipe),Iir=o=>{let a;return o&&(typeof FormData=="function"&&o instanceof FormData||Pb(o.append)&&((a=Gse(o))==="formdata"||a==="object"&&Pb(o.toString)&&o.toString()==="[object FormData]"))},Fir=$w("URLSearchParams"),[Mir,Rir,jir,Lir]=["ReadableStream","Request","Response","Headers"].map($w),Bir=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _H(o,a,{allOwnKeys:u=!1}={}){if(o===null||typeof o>"u")return;let f,d;if(typeof o!="object"&&(o=[o]),xL(o))for(f=0,d=o.length;f<d;f++)a.call(null,o[f],f,o);else{let w=u?Object.getOwnPropertyNames(o):Object.keys(o),O=w.length,q;for(f=0;f<O;f++)q=w[f],a.call(null,o[q],q,o)}}function Qat(o,a){a=a.toLowerCase();let u=Object.keys(o),f=u.length,d;for(;f-- >0;)if(d=u[f],a===d.toLowerCase())return d;return null}var U8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xat=o=>!fH(o)&&o!==U8;function rDe(){let{caseless:o}=Xat(this)&&this||{},a={},u=(f,d)=>{let w=o&&Qat(a,d)||d;Vse(a[w])&&Vse(f)?a[w]=rDe(a[w],f):Vse(f)?a[w]=rDe({},f):xL(f)?a[w]=f.slice():a[w]=f};for(let f=0,d=arguments.length;f<d;f++)arguments[f]&&_H(arguments[f],u);return a}var qir=(o,a,u,{allOwnKeys:f}={})=>(_H(a,(d,w)=>{u&&Pb(d)?o[w]=pH(d,u):o[w]=d},{allOwnKeys:f}),o),Jir=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),zir=(o,a,u,f)=>{o.prototype=Object.create(a.prototype,f),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:a.prototype}),u&&Object.assign(o.prototype,u)},Wir=(o,a,u,f)=>{let d,w,O,q={};if(a=a||{},o==null)return a;do{for(d=Object.getOwnPropertyNames(o),w=d.length;w-- >0;)O=d[w],(!f||f(O,o,a))&&!q[O]&&(a[O]=o[O],q[O]=!0);o=u!==!1&&nDe(o)}while(o&&(!u||u(o,a))&&o!==Object.prototype);return a},Uir=(o,a,u)=>{o=String(o),(u===void 0||u>o.length)&&(u=o.length),u-=a.length;let f=o.indexOf(a,u);return f!==-1&&f===u},$ir=o=>{if(!o)return null;if(xL(o))return o;let a=o.length;if(!Kat(a))return null;let u=new Array(a);for(;a-- >0;)u[a]=o[a];return u},Vir=(o=>a=>o&&a instanceof o)(typeof Uint8Array<"u"&&nDe(Uint8Array)),Hir=(o,a)=>{let f=(o&&o[Hse]).call(o),d;for(;(d=f.next())&&!d.done;){let w=d.value;a.call(o,w[0],w[1])}},Gir=(o,a)=>{let u,f=[];for(;(u=o.exec(a))!==null;)f.push(u);return f},Kir=$w("HTMLFormElement"),Qir=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,f,d){return f.toUpperCase()+d}),Vat=(({hasOwnProperty:o})=>(a,u)=>o.call(a,u))(Object.prototype),Xir=$w("RegExp"),Yat=(o,a)=>{let u=Object.getOwnPropertyDescriptors(o),f={};_H(u,(d,w)=>{let O;(O=a(d,w,o))!==!1&&(f[w]=O||d)}),Object.defineProperties(o,f)},Yir=o=>{Yat(o,(a,u)=>{if(Pb(o)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;let f=o[u];if(Pb(f)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},Zir=(o,a)=>{let u={},f=d=>{d.forEach(w=>{u[w]=!0})};return xL(o)?f(o):f(String(o).split(a)),u},ear=()=>{},tar=(o,a)=>o!=null&&Number.isFinite(o=+o)?o:a;function rar(o){return!!(o&&Pb(o.append)&&o[Hat]==="FormData"&&o[Hse])}var nar=o=>{let a=new Array(10),u=(f,d)=>{if(Qse(f)){if(a.indexOf(f)>=0)return;if(!("toJSON"in f)){a[d]=f;let w=xL(f)?[]:{};return _H(f,(O,q)=>{let K=u(O,d+1);!fH(K)&&(w[q]=K)}),a[d]=void 0,w}}return f};return u(o,0)},iar=$w("AsyncFunction"),aar=o=>o&&(Qse(o)||Pb(o))&&Pb(o.then)&&Pb(o.catch),Zat=((o,a)=>o?setImmediate:a?((u,f)=>(U8.addEventListener("message",({source:d,data:w})=>{d===U8&&w===u&&f.length&&f.shift()()},!1),d=>{f.push(d),U8.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",Pb(U8.postMessage)),sar=typeof queueMicrotask<"u"?queueMicrotask.bind(U8):typeof process<"u"&&process.nextTick||Zat,oar=o=>o!=null&&Pb(o[Hse]),pn={isArray:xL,isArrayBuffer:Gat,isBuffer:wir,isFormData:Iir,isArrayBufferView:kir,isString:Cir,isNumber:Kat,isBoolean:Pir,isObject:Qse,isPlainObject:Vse,isReadableStream:Mir,isRequest:Rir,isResponse:jir,isHeaders:Lir,isUndefined:fH,isDate:Eir,isFile:Dir,isBlob:Oir,isRegExp:Xir,isFunction:Pb,isStream:Air,isURLSearchParams:Fir,isTypedArray:Vir,isFileList:Nir,forEach:_H,merge:rDe,extend:qir,trim:Bir,stripBOM:Jir,inherits:zir,toFlatObject:Wir,kindOf:Gse,kindOfTest:$w,endsWith:Uir,toArray:$ir,forEachEntry:Hir,matchAll:Gir,isHTMLForm:Kir,hasOwnProperty:Vat,hasOwnProp:Vat,reduceDescriptors:Yat,freezeMethods:Yir,toObjectSet:Zir,toCamelCase:Qir,noop:ear,toFiniteNumber:tar,findKey:Qat,global:U8,isContextDefined:Xat,isSpecCompliantForm:rar,toJSONObject:nar,isAsyncFn:iar,isThenable:aar,setImmediate:Zat,asap:sar,isIterable:oar};function SL(o,a,u,f,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",a&&(this.code=a),u&&(this.config=u),f&&(this.request=f),d&&(this.response=d,this.status=d.status?d.status:null)}pn.inherits(SL,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pn.toJSONObject(this.config),code:this.code,status:this.status}}});var est=SL.prototype,tst={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{tst[o]={value:o}});Object.defineProperties(SL,tst);Object.defineProperty(est,"isAxiosError",{value:!0});SL.from=(o,a,u,f,d,w)=>{let O=Object.create(est);return pn.toFlatObject(o,O,function(K){return K!==Error.prototype},q=>q!=="isAxiosError"),SL.call(O,o.message,a,u,f,d),O.cause=o,O.name=o.name,w&&Object.assign(O,w),O};var Ys=SL;var act=Ea(ict(),1),ooe=act.default;function TDe(o){return pn.isPlainObject(o)||pn.isArray(o)}function oct(o){return pn.endsWith(o,"[]")?o.slice(0,-2):o}function sct(o,a,u){return o?o.concat(a).map(function(d,w){return d=oct(d),!u&&w?"["+d+"]":d}).join(u?".":""):a}function Vsr(o){return pn.isArray(o)&&!o.some(TDe)}var Hsr=pn.toFlatObject(pn,{},null,function(a){return/^is[A-Z]/.test(a)});function Gsr(o,a,u){if(!pn.isObject(o))throw new TypeError("target must be an object");a=a||new(ooe||FormData),u=pn.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Ge,_r){return!pn.isUndefined(_r[Ge])});let f=u.metaTokens,d=u.visitor||ye,w=u.dots,O=u.indexes,K=(u.Blob||typeof Blob<"u"&&Blob)&&pn.isSpecCompliantForm(a);if(!pn.isFunction(d))throw new TypeError("visitor must be a function");function le(Re){if(Re===null)return"";if(pn.isDate(Re))return Re.toISOString();if(pn.isBoolean(Re))return Re.toString();if(!K&&pn.isBlob(Re))throw new Ys("Blob is not supported. Use a Buffer instead.");return pn.isArrayBuffer(Re)||pn.isTypedArray(Re)?K&&typeof Blob=="function"?new Blob([Re]):Buffer.from(Re):Re}function ye(Re,Ge,_r){let jr=Re;if(Re&&!_r&&typeof Re=="object"){if(pn.endsWith(Ge,"{}"))Ge=f?Ge:Ge.slice(0,-2),Re=JSON.stringify(Re);else if(pn.isArray(Re)&&Vsr(Re)||(pn.isFileList(Re)||pn.endsWith(Ge,"[]"))&&(jr=pn.toArray(Re)))return Ge=oct(Ge),jr.forEach(function(Oi,ys){!(pn.isUndefined(Oi)||Oi===null)&&a.append(O===!0?sct([Ge],ys,w):O===null?Ge:Ge+"[]",le(Oi))}),!1}return TDe(Re)?!0:(a.append(sct(_r,Ge,w),le(Re)),!1)}let Be=[],ce=Object.assign(Hsr,{defaultVisitor:ye,convertValue:le,isVisitable:TDe});function mt(Re,Ge){if(!pn.isUndefined(Re)){if(Be.indexOf(Re)!==-1)throw Error("Circular reference detected in "+Ge.join("."));Be.push(Re),pn.forEach(Re,function(jr,si){(!(pn.isUndefined(jr)||jr===null)&&d.call(a,jr,pn.isString(si)?si.trim():si,Ge,ce))===!0&&mt(jr,Ge?Ge.concat(si):[si])}),Be.pop()}}if(!pn.isObject(o))throw new TypeError("data must be an object");return mt(o),a}var y6=Gsr;function cct(o){let a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(f){return a[f]})}function lct(o,a){this._pairs=[],o&&y6(o,this,a)}var uct=lct.prototype;uct.append=function(a,u){this._pairs.push([a,u])};uct.toString=function(a){let u=a?function(f){return a.call(this,f,cct)}:cct;return this._pairs.map(function(d){return u(d[0])+"="+u(d[1])},"").join("&")};var pct=lct;function Ksr(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V8(o,a,u){if(!a)return o;let f=u&&u.encode||Ksr;pn.isFunction(u)&&(u={serialize:u});let d=u&&u.serialize,w;if(d?w=d(a,u):w=pn.isURLSearchParams(a)?a.toString():new pct(a,u).toString(f),w){let O=o.indexOf("#");O!==-1&&(o=o.slice(0,O)),o+=(o.indexOf("?")===-1?"?":"&")+w}return o}var wDe=class{constructor(){this.handlers=[]}use(a,u,f){return this.handlers.push({fulfilled:a,rejected:u,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){pn.forEach(this.handlers,function(f){f!==null&&a(f)})}},kDe=wDe;var PL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var mct=Ea(require("crypto"),1);var fct=Ea(require("url"),1),_ct=fct.default.URLSearchParams;var CDe="abcdefghijklmnopqrstuvwxyz",dct="0123456789",gct={DIGIT:dct,ALPHA:CDe,ALPHA_DIGIT:CDe+CDe.toUpperCase()+dct},Qsr=(o=16,a=gct.ALPHA_DIGIT)=>{let u="",{length:f}=a,d=new Uint32Array(o);mct.default.randomFillSync(d);for(let w=0;w<o;w++)u+=a[d[w]%f];return u},hct={isNode:!0,classes:{URLSearchParams:_ct,FormData:ooe,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:gct,generateString:Qsr,protocols:["http","https","file","data"]};var DDe={};uH(DDe,{hasBrowserEnv:()=>EDe,hasStandardBrowserEnv:()=>Xsr,hasStandardBrowserWebWorkerEnv:()=>Ysr,navigator:()=>PDe,origin:()=>Zsr});var EDe=typeof window<"u"&&typeof document<"u",PDe=typeof navigator=="object"&&navigator||void 0,Xsr=EDe&&(!PDe||["ReactNative","NativeScript","NS"].indexOf(PDe.product)<0),Ysr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zsr=EDe&&window.location.href||"http://localhost";var Fp={...DDe,...hct};function ODe(o,a){return y6(o,new Fp.classes.URLSearchParams,Object.assign({visitor:function(u,f,d,w){return Fp.isNode&&pn.isBuffer(u)?(this.append(f,u.toString("base64")),!1):w.defaultVisitor.apply(this,arguments)}},a))}function eor(o){return pn.matchAll(/\w+|\[(\w*)]/g,o).map(a=>a[0]==="[]"?"":a[1]||a[0])}function tor(o){let a={},u=Object.keys(o),f,d=u.length,w;for(f=0;f<d;f++)w=u[f],a[w]=o[w];return a}function ror(o){function a(u,f,d,w){let O=u[w++];if(O==="__proto__")return!0;let q=Number.isFinite(+O),K=w>=u.length;return O=!O&&pn.isArray(d)?d.length:O,K?(pn.hasOwnProp(d,O)?d[O]=[d[O],f]:d[O]=f,!q):((!d[O]||!pn.isObject(d[O]))&&(d[O]=[]),a(u,f,d[O],w)&&pn.isArray(d[O])&&(d[O]=tor(d[O])),!q)}if(pn.isFormData(o)&&pn.isFunction(o.entries)){let u={};return pn.forEachEntry(o,(f,d)=>{a(eor(f),d,u,0)}),u}return null}var coe=ror;function nor(o,a,u){if(pn.isString(o))try{return(a||JSON.parse)(o),pn.trim(o)}catch(f){if(f.name!=="SyntaxError")throw f}return(u||JSON.stringify)(o)}var NDe={transitional:PL,adapter:["xhr","http","fetch"],transformRequest:[function(a,u){let f=u.getContentType()||"",d=f.indexOf("application/json")>-1,w=pn.isObject(a);if(w&&pn.isHTMLForm(a)&&(a=new FormData(a)),pn.isFormData(a))return d?JSON.stringify(coe(a)):a;if(pn.isArrayBuffer(a)||pn.isBuffer(a)||pn.isStream(a)||pn.isFile(a)||pn.isBlob(a)||pn.isReadableStream(a))return a;if(pn.isArrayBufferView(a))return a.buffer;if(pn.isURLSearchParams(a))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let q;if(w){if(f.indexOf("application/x-www-form-urlencoded")>-1)return ODe(a,this.formSerializer).toString();if((q=pn.isFileList(a))||f.indexOf("multipart/form-data")>-1){let K=this.env&&this.env.FormData;return y6(q?{"files[]":a}:a,K&&new K,this.formSerializer)}}return w||d?(u.setContentType("application/json",!1),nor(a)):a}],transformResponse:[function(a){let u=this.transitional||NDe.transitional,f=u&&u.forcedJSONParsing,d=this.responseType==="json";if(pn.isResponse(a)||pn.isReadableStream(a))return a;if(a&&pn.isString(a)&&(f&&!this.responseType||d)){let O=!(u&&u.silentJSONParsing)&&d;try{return JSON.parse(a)}catch(q){if(O)throw q.name==="SyntaxError"?Ys.from(q,Ys.ERR_BAD_RESPONSE,this,null,this.response):q}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fp.classes.FormData,Blob:Fp.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pn.forEach(["delete","get","head","post","put","patch"],o=>{NDe.headers[o]={}});var EL=NDe;var ior=pn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yct=o=>{let a={},u,f,d;return o&&o.split(`
|
|
`).forEach(function(O){d=O.indexOf(":"),u=O.substring(0,d).trim().toLowerCase(),f=O.substring(d+1).trim(),!(!u||a[u]&&ior[u])&&(u==="set-cookie"?a[u]?a[u].push(f):a[u]=[f]:a[u]=a[u]?a[u]+", "+f:f)}),a};var vct=Symbol("internals");function yH(o){return o&&String(o).trim().toLowerCase()}function loe(o){return o===!1||o==null?o:pn.isArray(o)?o.map(loe):String(o)}function aor(o){let a=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,f;for(;f=u.exec(o);)a[f[1]]=f[2];return a}var sor=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function ADe(o,a,u,f,d){if(pn.isFunction(f))return f.call(this,a,u);if(d&&(a=u),!!pn.isString(a)){if(pn.isString(f))return a.indexOf(f)!==-1;if(pn.isRegExp(f))return f.test(a)}}function oor(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,u,f)=>u.toUpperCase()+f)}function cor(o,a){let u=pn.toCamelCase(" "+a);["get","set","has"].forEach(f=>{Object.defineProperty(o,f+u,{value:function(d,w,O){return this[f].call(this,a,d,w,O)},configurable:!0})})}var DL=class{constructor(a){a&&this.set(a)}set(a,u,f){let d=this;function w(q,K,le){let ye=yH(K);if(!ye)throw new Error("header name must be a non-empty string");let Be=pn.findKey(d,ye);(!Be||d[Be]===void 0||le===!0||le===void 0&&d[Be]!==!1)&&(d[Be||K]=loe(q))}let O=(q,K)=>pn.forEach(q,(le,ye)=>w(le,ye,K));if(pn.isPlainObject(a)||a instanceof this.constructor)O(a,u);else if(pn.isString(a)&&(a=a.trim())&&!sor(a))O(yct(a),u);else if(pn.isObject(a)&&pn.isIterable(a)){let q={},K,le;for(let ye of a){if(!pn.isArray(ye))throw TypeError("Object iterator must return a key-value pair");q[le=ye[0]]=(K=q[le])?pn.isArray(K)?[...K,ye[1]]:[K,ye[1]]:ye[1]}O(q,u)}else a!=null&&w(u,a,f);return this}get(a,u){if(a=yH(a),a){let f=pn.findKey(this,a);if(f){let d=this[f];if(!u)return d;if(u===!0)return aor(d);if(pn.isFunction(u))return u.call(this,d,f);if(pn.isRegExp(u))return u.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,u){if(a=yH(a),a){let f=pn.findKey(this,a);return!!(f&&this[f]!==void 0&&(!u||ADe(this,this[f],f,u)))}return!1}delete(a,u){let f=this,d=!1;function w(O){if(O=yH(O),O){let q=pn.findKey(f,O);q&&(!u||ADe(f,f[q],q,u))&&(delete f[q],d=!0)}}return pn.isArray(a)?a.forEach(w):w(a),d}clear(a){let u=Object.keys(this),f=u.length,d=!1;for(;f--;){let w=u[f];(!a||ADe(this,this[w],w,a,!0))&&(delete this[w],d=!0)}return d}normalize(a){let u=this,f={};return pn.forEach(this,(d,w)=>{let O=pn.findKey(f,w);if(O){u[O]=loe(d),delete u[w];return}let q=a?oor(w):String(w).trim();q!==w&&delete u[w],u[q]=loe(d),f[q]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){let u=Object.create(null);return pn.forEach(this,(f,d)=>{f!=null&&f!==!1&&(u[d]=a&&pn.isArray(f)?f.join(", "):f)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,u])=>a+": "+u).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...u){let f=new this(a);return u.forEach(d=>f.set(d)),f}static accessor(a){let f=(this[vct]=this[vct]={accessors:{}}).accessors,d=this.prototype;function w(O){let q=yH(O);f[q]||(cor(d,O),f[q]=!0)}return pn.isArray(a)?a.forEach(w):w(a),this}};DL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);pn.reduceDescriptors(DL.prototype,({value:o},a)=>{let u=a[0].toUpperCase()+a.slice(1);return{get:()=>o,set(f){this[u]=f}}});pn.freezeMethods(DL);var Gd=DL;function vH(o,a){let u=this||EL,f=a||u,d=Gd.from(f.headers),w=f.data;return pn.forEach(o,function(q){w=q.call(u,w,d.normalize(),a?a.status:void 0)}),d.normalize(),w}function bH(o){return!!(o&&o.__CANCEL__)}function bct(o,a,u){Ys.call(this,o??"canceled",Ys.ERR_CANCELED,a,u),this.name="CanceledError"}pn.inherits(bct,Ys,{__CANCEL__:!0});var oS=bct;function XC(o,a,u){let f=u.config.validateStatus;!u.status||!f||f(u.status)?o(u):a(new Ys("Request failed with status code "+u.status,[Ys.ERR_BAD_REQUEST,Ys.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function IDe(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function FDe(o,a){return a?o.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):o}function H8(o,a,u){let f=!IDe(a);return o&&(f||u==!1)?FDe(o,a):a}var nlt=Ea(Sct(),1),ilt=Ea(require("http"),1),alt=Ea(require("https"),1),slt=Ea(require("util"),1),olt=Ea(Jct(),1),eO=Ea(require("zlib"),1);var X8="1.10.0";function kH(o){let a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return a&&a[1]||""}var Qor=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function QDe(o,a,u){let f=u&&u.Blob||Fp.classes.Blob,d=kH(o);if(a===void 0&&f&&(a=!0),d==="data"){o=d.length?o.slice(d.length+1):o;let w=Qor.exec(o);if(!w)throw new Ys("Invalid URL",Ys.ERR_INVALID_URL);let O=w[1],q=w[2],K=w[3],le=Buffer.from(decodeURIComponent(K),q?"base64":"utf8");if(a){if(!f)throw new Ys("Blob is not supported",Ys.ERR_NOT_SUPPORT);return new f([le],{type:O})}return le}throw new Ys("Unsupported protocol "+d,Ys.ERR_NOT_SUPPORT)}var Z8=Ea(require("stream"),1);var zct=Ea(require("stream"),1);var XDe=Symbol("internals"),YDe=class extends zct.default.Transform{constructor(a){a=pn.toFlatObject(a,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(f,d)=>!pn.isUndefined(d[f])),super({readableHighWaterMark:a.chunkSize});let u=this[XDe]={timeWindow:a.timeWindow,chunkSize:a.chunkSize,maxRate:a.maxRate,minChunkSize:a.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",f=>{f==="progress"&&(u.isCaptured||(u.isCaptured=!0))})}_read(a){let u=this[XDe];return u.onReadCallback&&u.onReadCallback(),super._read(a)}_transform(a,u,f){let d=this[XDe],w=d.maxRate,O=this.readableHighWaterMark,q=d.timeWindow,K=1e3/q,le=w/K,ye=d.minChunkSize!==!1?Math.max(d.minChunkSize,le*.01):0,Be=(mt,Re)=>{let Ge=Buffer.byteLength(mt);d.bytesSeen+=Ge,d.bytes+=Ge,d.isCaptured&&this.emit("progress",d.bytesSeen),this.push(mt)?process.nextTick(Re):d.onReadCallback=()=>{d.onReadCallback=null,process.nextTick(Re)}},ce=(mt,Re)=>{let Ge=Buffer.byteLength(mt),_r=null,jr=O,si,Oi=0;if(w){let ys=Date.now();(!d.ts||(Oi=ys-d.ts)>=q)&&(d.ts=ys,si=le-d.bytes,d.bytes=si<0?-si:0,Oi=0),si=le-d.bytes}if(w){if(si<=0)return setTimeout(()=>{Re(null,mt)},q-Oi);si<jr&&(jr=si)}jr&&Ge>jr&&Ge-jr>ye&&(_r=mt.subarray(jr),mt=mt.subarray(0,jr)),Be(mt,_r?()=>{process.nextTick(Re,null,_r)}:Re)};ce(a,function mt(Re,Ge){if(Re)return f(Re);Ge?ce(Ge,mt):f(null)})}},ZDe=YDe;var clt=require("events");var Uct=Ea(require("util"),1),$ct=require("stream");var{asyncIterator:Wct}=Symbol,Xor=async function*(o){o.stream?yield*o.stream():o.arrayBuffer?yield await o.arrayBuffer():o[Wct]?yield*o[Wct]():yield o},moe=Xor;var Yor=Fp.ALPHABET.ALPHA_DIGIT+"-_",CH=typeof TextEncoder=="function"?new TextEncoder:new Uct.default.TextEncoder,Y8=`\r
|
|
`,Zor=CH.encode(Y8),ecr=2,eOe=class{constructor(a,u){let{escapeName:f}=this.constructor,d=pn.isString(u),w=`Content-Disposition: form-data; name="${f(a)}"${!d&&u.name?`; filename="${f(u.name)}"`:""}${Y8}`;d?u=CH.encode(String(u).replace(/\r?\n|\r\n?/g,Y8)):w+=`Content-Type: ${u.type||"application/octet-stream"}${Y8}`,this.headers=CH.encode(w+Y8),this.contentLength=d?u.byteLength:u.size,this.size=this.headers.byteLength+this.contentLength+ecr,this.name=a,this.value=u}async*encode(){yield this.headers;let{value:a}=this;pn.isTypedArray(a)?yield a:yield*moe(a),yield Zor}static escapeName(a){return String(a).replace(/[\r\n"]/g,u=>({"\r":"%0D","\n":"%0A",'"':"%22"})[u])}},tcr=(o,a,u)=>{let{tag:f="form-data-boundary",size:d=25,boundary:w=f+"-"+Fp.generateString(d,Yor)}=u||{};if(!pn.isFormData(o))throw TypeError("FormData instance required");if(w.length<1||w.length>70)throw Error("boundary must be 10-70 characters long");let O=CH.encode("--"+w+Y8),q=CH.encode("--"+w+"--"+Y8),K=q.byteLength,le=Array.from(o.entries()).map(([Be,ce])=>{let mt=new eOe(Be,ce);return K+=mt.size,mt});K+=O.byteLength*le.length,K=pn.toFiniteNumber(K);let ye={"Content-Type":`multipart/form-data; boundary=${w}`};return Number.isFinite(K)&&(ye["Content-Length"]=K),a&&a(ye),$ct.Readable.from(async function*(){for(let Be of le)yield O,yield*Be.encode();yield q}())},Vct=tcr;var Hct=Ea(require("stream"),1),tOe=class extends Hct.default.Transform{__transform(a,u,f){this.push(a),f()}_transform(a,u,f){if(a.length!==0&&(this._transform=this.__transform,a[0]!==120)){let d=Buffer.alloc(2);d[0]=120,d[1]=156,this.push(d,u)}this.__transform(a,u,f)}},Gct=tOe;var rcr=(o,a)=>pn.isAsyncFn(o)?function(...u){let f=u.pop();o.apply(this,u).then(d=>{try{a?f(null,...a(d)):f(null,d)}catch(w){f(w)}},f)}:o,Kct=rcr;function ncr(o,a){o=o||10;let u=new Array(o),f=new Array(o),d=0,w=0,O;return a=a!==void 0?a:1e3,function(K){let le=Date.now(),ye=f[w];O||(O=le),u[d]=K,f[d]=le;let Be=w,ce=0;for(;Be!==d;)ce+=u[Be++],Be=Be%o;if(d=(d+1)%o,d===w&&(w=(w+1)%o),le-O<a)return;let mt=ye&&le-ye;return mt?Math.round(ce*1e3/mt):void 0}}var Qct=ncr;function icr(o,a){let u=0,f=1e3/a,d,w,O=(le,ye=Date.now())=>{u=ye,d=null,w&&(clearTimeout(w),w=null),o.apply(null,le)};return[(...le)=>{let ye=Date.now(),Be=ye-u;Be>=f?O(le,ye):(d=le,w||(w=setTimeout(()=>{w=null,O(d)},f-Be)))},()=>d&&O(d)]}var Xct=icr;var ZD=(o,a,u=3)=>{let f=0,d=Qct(50,250);return Xct(w=>{let O=w.loaded,q=w.lengthComputable?w.total:void 0,K=O-f,le=d(K),ye=O<=q;f=O;let Be={loaded:O,total:q,progress:q?O/q:void 0,bytes:K,rate:le||void 0,estimated:le&&q&&ye?(q-O)/le:void 0,event:w,lengthComputable:q!=null,[a?"download":"upload"]:!0};o(Be)},u)},FL=(o,a)=>{let u=o!=null;return[f=>a[0]({lengthComputable:u,total:o,loaded:f}),a[1]]},ML=o=>(...a)=>pn.asap(()=>o(...a));var Yct={flush:eO.default.constants.Z_SYNC_FLUSH,finishFlush:eO.default.constants.Z_SYNC_FLUSH},acr={flush:eO.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:eO.default.constants.BROTLI_OPERATION_FLUSH},Zct=pn.isFunction(eO.default.createBrotliDecompress),{http:scr,https:ocr}=olt.default,ccr=/https:?/,elt=Fp.protocols.map(o=>o+":"),tlt=(o,[a,u])=>(o.on("end",u).on("error",u),a);function lcr(o,a){o.beforeRedirects.proxy&&o.beforeRedirects.proxy(o),o.beforeRedirects.config&&o.beforeRedirects.config(o,a)}function llt(o,a,u){let f=a;if(!f&&f!==!1){let d=nlt.default.getProxyForUrl(u);d&&(f=new URL(d))}if(f){if(f.username&&(f.auth=(f.username||"")+":"+(f.password||"")),f.auth){(f.auth.username||f.auth.password)&&(f.auth=(f.auth.username||"")+":"+(f.auth.password||""));let w=Buffer.from(f.auth,"utf8").toString("base64");o.headers["Proxy-Authorization"]="Basic "+w}o.headers.host=o.hostname+(o.port?":"+o.port:"");let d=f.hostname||f.host;o.hostname=d,o.host=d,o.port=f.port,o.path=u,f.protocol&&(o.protocol=f.protocol.includes(":")?f.protocol:`${f.protocol}:`)}o.beforeRedirects.proxy=function(w){llt(w,a,w.href)}}var ucr=typeof process<"u"&&pn.kindOf(process)==="process",pcr=o=>new Promise((a,u)=>{let f,d,w=(K,le)=>{d||(d=!0,f&&f(K,le))},O=K=>{w(K),a(K)},q=K=>{w(K,!0),u(K)};o(O,q,K=>f=K).catch(q)}),fcr=({address:o,family:a})=>{if(!pn.isString(o))throw TypeError("address must be a string");return{address:o,family:a||(o.indexOf(".")<0?6:4)}},rlt=(o,a)=>fcr(pn.isObject(o)?o:{address:o,family:a}),ult=ucr&&function(a){return pcr(async function(f,d,w){let{data:O,lookup:q,family:K}=a,{responseType:le,responseEncoding:ye}=a,Be=a.method.toUpperCase(),ce,mt=!1,Re;if(q){let Dt=Kct(q,ci=>pn.isArray(ci)?ci:[ci]);q=(ci,ia,js)=>{Dt(ci,ia,(li,xl,Xl)=>{if(li)return js(li);let Vc=pn.isArray(xl)?xl.map(ku=>rlt(ku)):[rlt(xl,Xl)];ia.all?js(li,Vc):js(li,Vc[0].address,Vc[0].family)})}}let Ge=new clt.EventEmitter,_r=()=>{a.cancelToken&&a.cancelToken.unsubscribe(jr),a.signal&&a.signal.removeEventListener("abort",jr),Ge.removeAllListeners()};w((Dt,ci)=>{ce=!0,ci&&(mt=!0,_r())});function jr(Dt){Ge.emit("abort",!Dt||Dt.type?new oS(null,a,Re):Dt)}Ge.once("abort",d),(a.cancelToken||a.signal)&&(a.cancelToken&&a.cancelToken.subscribe(jr),a.signal&&(a.signal.aborted?jr():a.signal.addEventListener("abort",jr)));let si=H8(a.baseURL,a.url,a.allowAbsoluteUrls),Oi=new URL(si,Fp.hasBrowserEnv?Fp.origin:void 0),ys=Oi.protocol||elt[0];if(ys==="data:"){let Dt;if(Be!=="GET")return XC(f,d,{status:405,statusText:"method not allowed",headers:{},config:a});try{Dt=QDe(a.url,le==="blob",{Blob:a.env&&a.env.Blob})}catch(ci){throw Ys.from(ci,Ys.ERR_BAD_REQUEST,a)}return le==="text"?(Dt=Dt.toString(ye),(!ye||ye==="utf8")&&(Dt=pn.stripBOM(Dt))):le==="stream"&&(Dt=Z8.default.Readable.from(Dt)),XC(f,d,{data:Dt,status:200,statusText:"OK",headers:new Gd,config:a})}if(elt.indexOf(ys)===-1)return d(new Ys("Unsupported protocol "+ys,Ys.ERR_BAD_REQUEST,a));let ns=Gd.from(a.headers).normalize();ns.set("User-Agent","axios/"+X8,!1);let{onUploadProgress:sn,onDownloadProgress:Ir}=a,Ks=a.maxRate,Va,up;if(pn.isSpecCompliantForm(O)){let Dt=ns.getContentType(/boundary=([-_\w\d]{10,70})/i);O=Vct(O,ci=>{ns.set(ci)},{tag:`axios-${X8}-boundary`,boundary:Dt&&Dt[1]||void 0})}else if(pn.isFormData(O)&&pn.isFunction(O.getHeaders)){if(ns.set(O.getHeaders()),!ns.hasContentLength())try{let Dt=await slt.default.promisify(O.getLength).call(O);Number.isFinite(Dt)&&Dt>=0&&ns.setContentLength(Dt)}catch{}}else if(pn.isBlob(O)||pn.isFile(O))O.size&&ns.setContentType(O.type||"application/octet-stream"),ns.setContentLength(O.size||0),O=Z8.default.Readable.from(moe(O));else if(O&&!pn.isStream(O)){if(!Buffer.isBuffer(O))if(pn.isArrayBuffer(O))O=Buffer.from(new Uint8Array(O));else if(pn.isString(O))O=Buffer.from(O,"utf-8");else return d(new Ys("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Ys.ERR_BAD_REQUEST,a));if(ns.setContentLength(O.length,!1),a.maxBodyLength>-1&&O.length>a.maxBodyLength)return d(new Ys("Request body larger than maxBodyLength limit",Ys.ERR_BAD_REQUEST,a))}let Ta=pn.toFiniteNumber(ns.getContentLength());pn.isArray(Ks)?(Va=Ks[0],up=Ks[1]):Va=up=Ks,O&&(sn||Va)&&(pn.isStream(O)||(O=Z8.default.Readable.from(O,{objectMode:!1})),O=Z8.default.pipeline([O,new ZDe({maxRate:pn.toFiniteNumber(Va)})],pn.noop),sn&&O.on("progress",tlt(O,FL(Ta,ZD(ML(sn),!1,3)))));let f_;if(a.auth){let Dt=a.auth.username||"",ci=a.auth.password||"";f_=Dt+":"+ci}if(!f_&&Oi.username){let Dt=Oi.username,ci=Oi.password;f_=Dt+":"+ci}f_&&ns.delete("authorization");let Vu;try{Vu=V8(Oi.pathname+Oi.search,a.params,a.paramsSerializer).replace(/^\?/,"")}catch(Dt){let ci=new Error(Dt.message);return ci.config=a,ci.url=a.url,ci.exists=!0,d(ci)}ns.set("Accept-Encoding","gzip, compress, deflate"+(Zct?", br":""),!1);let Cn={path:Vu,method:Be,headers:ns.toJSON(),agents:{http:a.httpAgent,https:a.httpsAgent},auth:f_,protocol:ys,family:K,beforeRedirect:lcr,beforeRedirects:{}};!pn.isUndefined(q)&&(Cn.lookup=q),a.socketPath?Cn.socketPath=a.socketPath:(Cn.hostname=Oi.hostname.startsWith("[")?Oi.hostname.slice(1,-1):Oi.hostname,Cn.port=Oi.port,llt(Cn,a.proxy,ys+"//"+Oi.hostname+(Oi.port?":"+Oi.port:"")+Cn.path));let __,wa=ccr.test(Cn.protocol);if(Cn.agent=wa?a.httpsAgent:a.httpAgent,a.transport?__=a.transport:a.maxRedirects===0?__=wa?alt.default:ilt.default:(a.maxRedirects&&(Cn.maxRedirects=a.maxRedirects),a.beforeRedirect&&(Cn.beforeRedirects.config=a.beforeRedirect),__=wa?ocr:scr),a.maxBodyLength>-1?Cn.maxBodyLength=a.maxBodyLength:Cn.maxBodyLength=1/0,a.insecureHTTPParser&&(Cn.insecureHTTPParser=a.insecureHTTPParser),Re=__.request(Cn,function(ci){if(Re.destroyed)return;let ia=[ci],js=+ci.headers["content-length"];if(Ir||up){let ku=new ZDe({maxRate:pn.toFiniteNumber(up)});Ir&&ku.on("progress",tlt(ku,FL(js,ZD(ML(Ir),!0,3)))),ia.push(ku)}let li=ci,xl=ci.req||Re;if(a.decompress!==!1&&ci.headers["content-encoding"])switch((Be==="HEAD"||ci.statusCode===204)&&delete ci.headers["content-encoding"],(ci.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ia.push(eO.default.createUnzip(Yct)),delete ci.headers["content-encoding"];break;case"deflate":ia.push(new Gct),ia.push(eO.default.createUnzip(Yct)),delete ci.headers["content-encoding"];break;case"br":Zct&&(ia.push(eO.default.createBrotliDecompress(acr)),delete ci.headers["content-encoding"])}li=ia.length>1?Z8.default.pipeline(ia,pn.noop):ia[0];let Xl=Z8.default.finished(li,()=>{Xl(),_r()}),Vc={status:ci.statusCode,statusText:ci.statusMessage,headers:new Gd(ci.headers),config:a,request:xl};if(le==="stream")Vc.data=li,XC(f,d,Vc);else{let ku=[],Bi=0;li.on("data",function(A_){ku.push(A_),Bi+=A_.length,a.maxContentLength>-1&&Bi>a.maxContentLength&&(mt=!0,li.destroy(),d(new Ys("maxContentLength size of "+a.maxContentLength+" exceeded",Ys.ERR_BAD_RESPONSE,a,xl)))}),li.on("aborted",function(){if(mt)return;let A_=new Ys("stream has been aborted",Ys.ERR_BAD_RESPONSE,a,xl);li.destroy(A_),d(A_)}),li.on("error",function(A_){Re.destroyed||d(Ys.from(A_,null,a,xl))}),li.on("end",function(){try{let A_=ku.length===1?ku[0]:Buffer.concat(ku);le!=="arraybuffer"&&(A_=A_.toString(ye),(!ye||ye==="utf8")&&(A_=pn.stripBOM(A_))),Vc.data=A_}catch(A_){return d(Ys.from(A_,null,a,Vc.request,Vc))}XC(f,d,Vc)})}Ge.once("abort",ku=>{li.destroyed||(li.emit("error",ku),li.destroy())})}),Ge.once("abort",Dt=>{d(Dt),Re.destroy(Dt)}),Re.on("error",function(ci){d(Ys.from(ci,null,a,Re))}),Re.on("socket",function(ci){ci.setKeepAlive(!0,1e3*60)}),a.timeout){let Dt=parseInt(a.timeout,10);if(Number.isNaN(Dt)){d(new Ys("error trying to parse `config.timeout` to int",Ys.ERR_BAD_OPTION_VALUE,a,Re));return}Re.setTimeout(Dt,function(){if(ce)return;let ia=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",js=a.transitional||PL;a.timeoutErrorMessage&&(ia=a.timeoutErrorMessage),d(new Ys(ia,js.clarifyTimeoutError?Ys.ETIMEDOUT:Ys.ECONNABORTED,a,Re)),jr()})}if(pn.isStream(O)){let Dt=!1,ci=!1;O.on("end",()=>{Dt=!0}),O.once("error",ia=>{ci=!0,Re.destroy(ia)}),O.on("close",()=>{!Dt&&!ci&&jr(new oS("Request stream has been aborted",a,Re))}),O.pipe(Re)}else Re.end(O)})};var plt=Fp.hasStandardBrowserEnv?((o,a)=>u=>(u=new URL(u,Fp.origin),o.protocol===u.protocol&&o.host===u.host&&(a||o.port===u.port)))(new URL(Fp.origin),Fp.navigator&&/(msie|trident)/i.test(Fp.navigator.userAgent)):()=>!0;var flt=Fp.hasStandardBrowserEnv?{write(o,a,u,f,d,w){let O=[o+"="+encodeURIComponent(a)];pn.isNumber(u)&&O.push("expires="+new Date(u).toGMTString()),pn.isString(f)&&O.push("path="+f),pn.isString(d)&&O.push("domain="+d),w===!0&&O.push("secure"),document.cookie=O.join("; ")},read(o){let a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};var _lt=o=>o instanceof Gd?{...o}:o;function Hw(o,a){a=a||{};let u={};function f(le,ye,Be,ce){return pn.isPlainObject(le)&&pn.isPlainObject(ye)?pn.merge.call({caseless:ce},le,ye):pn.isPlainObject(ye)?pn.merge({},ye):pn.isArray(ye)?ye.slice():ye}function d(le,ye,Be,ce){if(pn.isUndefined(ye)){if(!pn.isUndefined(le))return f(void 0,le,Be,ce)}else return f(le,ye,Be,ce)}function w(le,ye){if(!pn.isUndefined(ye))return f(void 0,ye)}function O(le,ye){if(pn.isUndefined(ye)){if(!pn.isUndefined(le))return f(void 0,le)}else return f(void 0,ye)}function q(le,ye,Be){if(Be in a)return f(le,ye);if(Be in o)return f(void 0,le)}let K={url:w,method:w,data:w,baseURL:O,transformRequest:O,transformResponse:O,paramsSerializer:O,timeout:O,timeoutMessage:O,withCredentials:O,withXSRFToken:O,adapter:O,responseType:O,xsrfCookieName:O,xsrfHeaderName:O,onUploadProgress:O,onDownloadProgress:O,decompress:O,maxContentLength:O,maxBodyLength:O,beforeRedirect:O,transport:O,httpAgent:O,httpsAgent:O,cancelToken:O,socketPath:O,responseEncoding:O,validateStatus:q,headers:(le,ye,Be)=>d(_lt(le),_lt(ye),Be,!0)};return pn.forEach(Object.keys(Object.assign({},o,a)),function(ye){let Be=K[ye]||d,ce=Be(o[ye],a[ye],ye);pn.isUndefined(ce)&&Be!==q||(u[ye]=ce)}),u}var goe=o=>{let a=Hw({},o),{data:u,withXSRFToken:f,xsrfHeaderName:d,xsrfCookieName:w,headers:O,auth:q}=a;a.headers=O=Gd.from(O),a.url=V8(H8(a.baseURL,a.url,a.allowAbsoluteUrls),o.params,o.paramsSerializer),q&&O.set("Authorization","Basic "+btoa((q.username||"")+":"+(q.password?unescape(encodeURIComponent(q.password)):"")));let K;if(pn.isFormData(u)){if(Fp.hasStandardBrowserEnv||Fp.hasStandardBrowserWebWorkerEnv)O.setContentType(void 0);else if((K=O.getContentType())!==!1){let[le,...ye]=K?K.split(";").map(Be=>Be.trim()).filter(Boolean):[];O.setContentType([le||"multipart/form-data",...ye].join("; "))}}if(Fp.hasStandardBrowserEnv&&(f&&pn.isFunction(f)&&(f=f(a)),f||f!==!1&&plt(a.url))){let le=d&&w&&flt.read(w);le&&O.set(d,le)}return a};var _cr=typeof XMLHttpRequest<"u",dlt=_cr&&function(o){return new Promise(function(u,f){let d=goe(o),w=d.data,O=Gd.from(d.headers).normalize(),{responseType:q,onUploadProgress:K,onDownloadProgress:le}=d,ye,Be,ce,mt,Re;function Ge(){mt&&mt(),Re&&Re(),d.cancelToken&&d.cancelToken.unsubscribe(ye),d.signal&&d.signal.removeEventListener("abort",ye)}let _r=new XMLHttpRequest;_r.open(d.method.toUpperCase(),d.url,!0),_r.timeout=d.timeout;function jr(){if(!_r)return;let Oi=Gd.from("getAllResponseHeaders"in _r&&_r.getAllResponseHeaders()),ns={data:!q||q==="text"||q==="json"?_r.responseText:_r.response,status:_r.status,statusText:_r.statusText,headers:Oi,config:o,request:_r};XC(function(Ir){u(Ir),Ge()},function(Ir){f(Ir),Ge()},ns),_r=null}"onloadend"in _r?_r.onloadend=jr:_r.onreadystatechange=function(){!_r||_r.readyState!==4||_r.status===0&&!(_r.responseURL&&_r.responseURL.indexOf("file:")===0)||setTimeout(jr)},_r.onabort=function(){_r&&(f(new Ys("Request aborted",Ys.ECONNABORTED,o,_r)),_r=null)},_r.onerror=function(){f(new Ys("Network Error",Ys.ERR_NETWORK,o,_r)),_r=null},_r.ontimeout=function(){let ys=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",ns=d.transitional||PL;d.timeoutErrorMessage&&(ys=d.timeoutErrorMessage),f(new Ys(ys,ns.clarifyTimeoutError?Ys.ETIMEDOUT:Ys.ECONNABORTED,o,_r)),_r=null},w===void 0&&O.setContentType(null),"setRequestHeader"in _r&&pn.forEach(O.toJSON(),function(ys,ns){_r.setRequestHeader(ns,ys)}),pn.isUndefined(d.withCredentials)||(_r.withCredentials=!!d.withCredentials),q&&q!=="json"&&(_r.responseType=d.responseType),le&&([ce,Re]=ZD(le,!0),_r.addEventListener("progress",ce)),K&&_r.upload&&([Be,mt]=ZD(K),_r.upload.addEventListener("progress",Be),_r.upload.addEventListener("loadend",mt)),(d.cancelToken||d.signal)&&(ye=Oi=>{_r&&(f(!Oi||Oi.type?new oS(null,o,_r):Oi),_r.abort(),_r=null)},d.cancelToken&&d.cancelToken.subscribe(ye),d.signal&&(d.signal.aborted?ye():d.signal.addEventListener("abort",ye)));let si=kH(d.url);if(si&&Fp.protocols.indexOf(si)===-1){f(new Ys("Unsupported protocol "+si+":",Ys.ERR_BAD_REQUEST,o));return}_r.send(w||null)})};var dcr=(o,a)=>{let{length:u}=o=o?o.filter(Boolean):[];if(a||u){let f=new AbortController,d,w=function(le){if(!d){d=!0,q();let ye=le instanceof Error?le:this.reason;f.abort(ye instanceof Ys?ye:new oS(ye instanceof Error?ye.message:ye))}},O=a&&setTimeout(()=>{O=null,w(new Ys(`timeout ${a} of ms exceeded`,Ys.ETIMEDOUT))},a),q=()=>{o&&(O&&clearTimeout(O),O=null,o.forEach(le=>{le.unsubscribe?le.unsubscribe(w):le.removeEventListener("abort",w)}),o=null)};o.forEach(le=>le.addEventListener("abort",w));let{signal:K}=f;return K.unsubscribe=()=>pn.asap(q),K}},mlt=dcr;var mcr=function*(o,a){let u=o.byteLength;if(!a||u<a){yield o;return}let f=0,d;for(;f<u;)d=f+a,yield o.slice(f,d),f=d},gcr=async function*(o,a){for await(let u of hcr(o))yield*mcr(u,a)},hcr=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}let a=o.getReader();try{for(;;){let{done:u,value:f}=await a.read();if(u)break;yield f}}finally{await a.cancel()}},rOe=(o,a,u,f)=>{let d=gcr(o,a),w=0,O,q=K=>{O||(O=!0,f&&f(K))};return new ReadableStream({async pull(K){try{let{done:le,value:ye}=await d.next();if(le){q(),K.close();return}let Be=ye.byteLength;if(u){let ce=w+=Be;u(ce)}K.enqueue(new Uint8Array(ye))}catch(le){throw q(le),le}},cancel(K){return q(K),d.return()}},{highWaterMark:2})};var yoe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hlt=yoe&&typeof ReadableStream=="function",ycr=yoe&&(typeof TextEncoder=="function"?(o=>a=>o.encode(a))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),ylt=(o,...a)=>{try{return!!o(...a)}catch{return!1}},vcr=hlt&&ylt(()=>{let o=!1,a=new Request(Fp.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!a}),glt=64*1024,nOe=hlt&&ylt(()=>pn.isReadableStream(new Response("").body)),hoe={stream:nOe&&(o=>o.body)};yoe&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!hoe[a]&&(hoe[a]=pn.isFunction(o[a])?u=>u[a]():(u,f)=>{throw new Ys(`Response type '${a}' is not supported`,Ys.ERR_NOT_SUPPORT,f)})})})(new Response);var bcr=async o=>{if(o==null)return 0;if(pn.isBlob(o))return o.size;if(pn.isSpecCompliantForm(o))return(await new Request(Fp.origin,{method:"POST",body:o}).arrayBuffer()).byteLength;if(pn.isArrayBufferView(o)||pn.isArrayBuffer(o))return o.byteLength;if(pn.isURLSearchParams(o)&&(o=o+""),pn.isString(o))return(await ycr(o)).byteLength},xcr=async(o,a)=>{let u=pn.toFiniteNumber(o.getContentLength());return u??bcr(a)},vlt=yoe&&(async o=>{let{url:a,method:u,data:f,signal:d,cancelToken:w,timeout:O,onDownloadProgress:q,onUploadProgress:K,responseType:le,headers:ye,withCredentials:Be="same-origin",fetchOptions:ce}=goe(o);le=le?(le+"").toLowerCase():"text";let mt=mlt([d,w&&w.toAbortSignal()],O),Re,Ge=mt&&mt.unsubscribe&&(()=>{mt.unsubscribe()}),_r;try{if(K&&vcr&&u!=="get"&&u!=="head"&&(_r=await xcr(ye,f))!==0){let ns=new Request(a,{method:"POST",body:f,duplex:"half"}),sn;if(pn.isFormData(f)&&(sn=ns.headers.get("content-type"))&&ye.setContentType(sn),ns.body){let[Ir,Ks]=FL(_r,ZD(ML(K)));f=rOe(ns.body,glt,Ir,Ks)}}pn.isString(Be)||(Be=Be?"include":"omit");let jr="credentials"in Request.prototype;Re=new Request(a,{...ce,signal:mt,method:u.toUpperCase(),headers:ye.normalize().toJSON(),body:f,duplex:"half",credentials:jr?Be:void 0});let si=await fetch(Re,ce),Oi=nOe&&(le==="stream"||le==="response");if(nOe&&(q||Oi&&Ge)){let ns={};["status","statusText","headers"].forEach(Va=>{ns[Va]=si[Va]});let sn=pn.toFiniteNumber(si.headers.get("content-length")),[Ir,Ks]=q&&FL(sn,ZD(ML(q),!0))||[];si=new Response(rOe(si.body,glt,Ir,()=>{Ks&&Ks(),Ge&&Ge()}),ns)}le=le||"text";let ys=await hoe[pn.findKey(hoe,le)||"text"](si,o);return!Oi&&Ge&&Ge(),await new Promise((ns,sn)=>{XC(ns,sn,{data:ys,headers:Gd.from(si.headers),status:si.status,statusText:si.statusText,config:o,request:Re})})}catch(jr){throw Ge&&Ge(),jr&&jr.name==="TypeError"&&/Load failed|fetch/i.test(jr.message)?Object.assign(new Ys("Network Error",Ys.ERR_NETWORK,o,Re),{cause:jr.cause||jr}):Ys.from(jr,jr&&jr.code,o,Re)}});var iOe={http:ult,xhr:dlt,fetch:vlt};pn.forEach(iOe,(o,a)=>{if(o){try{Object.defineProperty(o,"name",{value:a})}catch{}Object.defineProperty(o,"adapterName",{value:a})}});var blt=o=>`- ${o}`,Scr=o=>pn.isFunction(o)||o===null||o===!1,voe={getAdapter:o=>{o=pn.isArray(o)?o:[o];let{length:a}=o,u,f,d={};for(let w=0;w<a;w++){u=o[w];let O;if(f=u,!Scr(u)&&(f=iOe[(O=String(u)).toLowerCase()],f===void 0))throw new Ys(`Unknown adapter '${O}'`);if(f)break;d[O||"#"+w]=f}if(!f){let w=Object.entries(d).map(([q,K])=>`adapter ${q} `+(K===!1?"is not supported by the environment":"is not available in the build")),O=a?w.length>1?`since :
|
|
`+w.map(blt).join(`
|
|
`):" "+blt(w[0]):"as no adapter specified";throw new Ys("There is no suitable adapter to dispatch the request "+O,"ERR_NOT_SUPPORT")}return f},adapters:iOe};function aOe(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new oS(null,o)}function boe(o){return aOe(o),o.headers=Gd.from(o.headers),o.data=vH.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),voe.getAdapter(o.adapter||EL.adapter)(o).then(function(f){return aOe(o),f.data=vH.call(o,o.transformResponse,f),f.headers=Gd.from(f.headers),f},function(f){return bH(f)||(aOe(o),f&&f.response&&(f.response.data=vH.call(o,o.transformResponse,f.response),f.response.headers=Gd.from(f.response.headers))),Promise.reject(f)})}var xoe={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{xoe[o]=function(f){return typeof f===o||"a"+(a<1?"n ":" ")+o}});var xlt={};xoe.transitional=function(a,u,f){function d(w,O){return"[Axios v"+X8+"] Transitional option '"+w+"'"+O+(f?". "+f:"")}return(w,O,q)=>{if(a===!1)throw new Ys(d(O," has been removed"+(u?" in "+u:"")),Ys.ERR_DEPRECATED);return u&&!xlt[O]&&(xlt[O]=!0,console.warn(d(O," has been deprecated since v"+u+" and will be removed in the near future"))),a?a(w,O,q):!0}};xoe.spelling=function(a){return(u,f)=>(console.warn(`${f} is likely a misspelling of ${a}`),!0)};function Tcr(o,a,u){if(typeof o!="object")throw new Ys("options must be an object",Ys.ERR_BAD_OPTION_VALUE);let f=Object.keys(o),d=f.length;for(;d-- >0;){let w=f[d],O=a[w];if(O){let q=o[w],K=q===void 0||O(q,w,o);if(K!==!0)throw new Ys("option "+w+" must be "+K,Ys.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new Ys("Unknown option "+w,Ys.ERR_BAD_OPTION)}}var PH={assertOptions:Tcr,validators:xoe};var YC=PH.validators,RL=class{constructor(a){this.defaults=a||{},this.interceptors={request:new kDe,response:new kDe}}async request(a,u){try{return await this._request(a,u)}catch(f){if(f instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;let w=d.stack?d.stack.replace(/^.+\n/,""):"";try{f.stack?w&&!String(f.stack).endsWith(w.replace(/^.+\n.+\n/,""))&&(f.stack+=`
|
|
`+w):f.stack=w}catch{}}throw f}}_request(a,u){typeof a=="string"?(u=u||{},u.url=a):u=a||{},u=Hw(this.defaults,u);let{transitional:f,paramsSerializer:d,headers:w}=u;f!==void 0&&PH.assertOptions(f,{silentJSONParsing:YC.transitional(YC.boolean),forcedJSONParsing:YC.transitional(YC.boolean),clarifyTimeoutError:YC.transitional(YC.boolean)},!1),d!=null&&(pn.isFunction(d)?u.paramsSerializer={serialize:d}:PH.assertOptions(d,{encode:YC.function,serialize:YC.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),PH.assertOptions(u,{baseUrl:YC.spelling("baseURL"),withXsrfToken:YC.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let O=w&&pn.merge(w.common,w[u.method]);w&&pn.forEach(["delete","get","head","post","put","patch","common"],Re=>{delete w[Re]}),u.headers=Gd.concat(O,w);let q=[],K=!0;this.interceptors.request.forEach(function(Ge){typeof Ge.runWhen=="function"&&Ge.runWhen(u)===!1||(K=K&&Ge.synchronous,q.unshift(Ge.fulfilled,Ge.rejected))});let le=[];this.interceptors.response.forEach(function(Ge){le.push(Ge.fulfilled,Ge.rejected)});let ye,Be=0,ce;if(!K){let Re=[boe.bind(this),void 0];for(Re.unshift.apply(Re,q),Re.push.apply(Re,le),ce=Re.length,ye=Promise.resolve(u);Be<ce;)ye=ye.then(Re[Be++],Re[Be++]);return ye}ce=q.length;let mt=u;for(Be=0;Be<ce;){let Re=q[Be++],Ge=q[Be++];try{mt=Re(mt)}catch(_r){Ge.call(this,_r);break}}try{ye=boe.call(this,mt)}catch(Re){return Promise.reject(Re)}for(Be=0,ce=le.length;Be<ce;)ye=ye.then(le[Be++],le[Be++]);return ye}getUri(a){a=Hw(this.defaults,a);let u=H8(a.baseURL,a.url,a.allowAbsoluteUrls);return V8(u,a.params,a.paramsSerializer)}};pn.forEach(["delete","get","head","options"],function(a){RL.prototype[a]=function(u,f){return this.request(Hw(f||{},{method:a,url:u,data:(f||{}).data}))}});pn.forEach(["post","put","patch"],function(a){function u(f){return function(w,O,q){return this.request(Hw(q||{},{method:a,headers:f?{"Content-Type":"multipart/form-data"}:{},url:w,data:O}))}}RL.prototype[a]=u(),RL.prototype[a+"Form"]=u(!0)});var EH=RL;var sOe=class o{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(w){u=w});let f=this;this.promise.then(d=>{if(!f._listeners)return;let w=f._listeners.length;for(;w-- >0;)f._listeners[w](d);f._listeners=null}),this.promise.then=d=>{let w,O=new Promise(q=>{f.subscribe(q),w=q}).then(d);return O.cancel=function(){f.unsubscribe(w)},O},a(function(w,O,q){f.reason||(f.reason=new oS(w,O,q),u(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;let u=this._listeners.indexOf(a);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){let a=new AbortController,u=f=>{a.abort(f)};return this.subscribe(u),a.signal.unsubscribe=()=>this.unsubscribe(u),a.signal}static source(){let a;return{token:new o(function(d){a=d}),cancel:a}}},Slt=sOe;function oOe(o){return function(u){return o.apply(null,u)}}function cOe(o){return pn.isObject(o)&&o.isAxiosError===!0}var lOe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lOe).forEach(([o,a])=>{lOe[a]=o});var Tlt=lOe;function wlt(o){let a=new EH(o),u=pH(EH.prototype.request,a);return pn.extend(u,EH.prototype,a,{allOwnKeys:!0}),pn.extend(u,a,null,{allOwnKeys:!0}),u.create=function(d){return wlt(Hw(o,d))},u}var Ag=wlt(EL);Ag.Axios=EH;Ag.CanceledError=oS;Ag.CancelToken=Slt;Ag.isCancel=bH;Ag.VERSION=X8;Ag.toFormData=y6;Ag.AxiosError=Ys;Ag.Cancel=Ag.CanceledError;Ag.all=function(a){return Promise.all(a)};Ag.spread=oOe;Ag.isAxiosError=cOe;Ag.mergeConfig=Hw;Ag.AxiosHeaders=Gd;Ag.formToJSON=o=>coe(pn.isHTMLForm(o)?new FormData(o):o);Ag.getAdapter=voe.getAdapter;Ag.HttpStatusCode=Tlt;Ag.default=Ag;var DH=Ag;var{Axios:Eun,AxiosError:Dun,CanceledError:Oun,isCancel:Nun,CancelToken:Aun,VERSION:Iun,all:Fun,Cancel:Mun,isAxiosError:Run,spread:jun,toFormData:Lun,AxiosHeaders:Bun,HttpStatusCode:qun,formToJSON:Jun,getAdapter:zun,mergeConfig:Wun}=DH;var Toe=require("child_process"),woe=class{constructor(a=!1){this.isAnonymous=a,this.configDir=Soe.join(koe.homedir(),".hanzo-mcp"),hh.existsSync(this.configDir)||hh.mkdirSync(this.configDir,{recursive:!0,mode:448}),this.tokenFile=Soe.join(this.configDir,"auth.json"),this.deviceIdFile=Soe.join(this.configDir,"device.json"),this.casdoorConfig={endpoint:process.env.HANZO_IAM_ENDPOINT||"https://iam.hanzo.ai",clientId:process.env.HANZO_IAM_CLIENT_ID||"hanzo-mcp",clientSecret:process.env.HANZO_IAM_CLIENT_SECRET,applicationName:"hanzo-mcp",organizationName:"hanzo"}}getDeviceId(){try{if(hh.existsSync(this.deviceIdFile))return JSON.parse(hh.readFileSync(this.deviceIdFile,"utf-8")).deviceId}catch{}let a=uOe.randomBytes(16).toString("hex");return hh.writeFileSync(this.deviceIdFile,JSON.stringify({deviceId:a,createdAt:new Date().toISOString()})),a}async getStoredToken(){if(this.isAnonymous)return null;try{if(hh.existsSync(this.tokenFile)){let a=JSON.parse(hh.readFileSync(this.tokenFile,"utf-8"));return a.expiresAt&&Date.now()>a.expiresAt?a.refreshToken?await this.refreshToken(a.refreshToken):null:a}}catch(a){console.error("Failed to read stored token:",a)}return null}async storeToken(a){this.isAnonymous||(hh.writeFileSync(this.tokenFile,JSON.stringify(a,null,2)),hh.chmodSync(this.tokenFile,384))}async refreshToken(a){try{let u=await DH.post(`${this.casdoorConfig.endpoint}/api/refresh-token`,{grant_type:"refresh_token",refresh_token:a,client_id:this.casdoorConfig.clientId,client_secret:this.casdoorConfig.clientSecret});if(u.data?.access_token){let f={token:u.data.access_token,refreshToken:u.data.refresh_token,expiresAt:Date.now()+(u.data.expires_in||3600)*1e3};return await this.storeToken(f),f}}catch(u){console.error("Failed to refresh token:",u)}return null}async isAuthenticated(){return this.isAnonymous?!0:!!await this.getStoredToken()}async getAuthToken(){return this.isAnonymous?null:(await this.getStoredToken())?.token||null}async authenticate(){if(this.isAnonymous)return console.log("Running in anonymous mode. Some features may be limited."),!0;if(await this.isAuthenticated())return console.log("Already authenticated."),!0;console.log(`
|
|
\u{1F510} Hanzo Authentication Required
|
|
`),console.log("Please authenticate to use Hanzo MCP with full features."),console.log(`This will open your browser to complete authentication.
|
|
`);try{let a=this.getDeviceId(),u=uOe.randomBytes(16).toString("hex"),f=new URL(`${this.casdoorConfig.endpoint}/login/oauth/authorize`);f.searchParams.append("client_id",this.casdoorConfig.clientId),f.searchParams.append("response_type","code"),f.searchParams.append("redirect_uri","http://localhost:8765/callback"),f.searchParams.append("scope","read write"),f.searchParams.append("state",u),f.searchParams.append("device_id",a);let d=await this.startCallbackServer(u);console.log("Opening browser for authentication..."),this.openBrowser(f.toString());let w=await d;if(!w)return console.error("Authentication failed: No authorization code received"),!1;let O=await DH.post(`${this.casdoorConfig.endpoint}/api/login/oauth/access_token`,{grant_type:"authorization_code",code:w,client_id:this.casdoorConfig.clientId,client_secret:this.casdoorConfig.clientSecret,redirect_uri:"http://localhost:8765/callback"});if(O.data?.access_token){let q={token:O.data.access_token,refreshToken:O.data.refresh_token,expiresAt:Date.now()+(O.data.expires_in||3600)*1e3};return await this.storeToken(q),console.log(`
|
|
\u2705 Authentication successful!
|
|
`),!0}}catch(a){console.error("Authentication failed:",a)}return!1}async startCallbackServer(a){return new Promise(u=>{let f=require("http"),d=require("url"),w=f.createServer((O,q)=>{let K=d.parse(O.url,!0);if(K.pathname==="/callback"){let le=K.query.code;K.query.state===a&&le?(q.writeHead(200,{"Content-Type":"text/html"}),q.end(`
|
|
<html>
|
|
<head>
|
|
<title>Authentication Successful</title>
|
|
<style>
|
|
body { font-family: system-ui; text-align: center; padding: 50px; }
|
|
h1 { color: #10b981; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>\u2705 Authentication Successful!</h1>
|
|
<p>You can now close this window and return to your terminal.</p>
|
|
<script>window.setTimeout(() => window.close(), 3000);</script>
|
|
</body>
|
|
</html>
|
|
`),w.close(),u(le)):(q.writeHead(400,{"Content-Type":"text/html"}),q.end("<h1>Authentication Failed</h1><p>Invalid state or missing code.</p>"),w.close(),u(null))}});w.listen(8765,"localhost"),setTimeout(()=>{w.close(),u(null)},3e5)})}openBrowser(a){let u=koe.platform();try{u==="darwin"?(0,Toe.execSync)(`open "${a}"`):u==="win32"?(0,Toe.execSync)(`start "" "${a}"`):(0,Toe.execSync)(`xdg-open "${a}"`)}catch{console.error("Failed to open browser automatically."),console.log(`Please open this URL manually:
|
|
${a}`)}}async logout(){if(!this.isAnonymous)try{hh.existsSync(this.tokenFile)&&hh.unlinkSync(this.tokenFile),console.log("Logged out successfully.")}catch(a){console.error("Failed to logout:",a)}}getHeaders(){if(this.isAnonymous)return{"X-Hanzo-Mode":"anonymous","X-Hanzo-Device-Id":this.getDeviceId()};let a=hh.existsSync(this.tokenFile)?JSON.parse(hh.readFileSync(this.tokenFile,"utf-8")).token:null;return a?{Authorization:`Bearer ${a}`,"X-Hanzo-Device-Id":this.getDeviceId()}:{}}};var XOt,YOt,J7=process.argv.slice(2),p_e=J7.includes("--anon")||J7.includes("--anonymous"),Ban=J7.includes("--help")||J7.includes("-h"),qan=J7.includes("--version")||J7.includes("-v"),Jan=J7.includes("--logout");Ban&&(console.log(`
|
|
Hanzo MCP Server v1.5.4
|
|
|
|
Usage: hanzo-mcp [options]
|
|
|
|
Options:
|
|
--anon, --anonymous Run in anonymous mode (no authentication required)
|
|
--logout Log out from Hanzo account
|
|
--version, -v Show version
|
|
--help, -h Show this help message
|
|
|
|
Environment Variables:
|
|
HANZO_WORKSPACE Default workspace directory
|
|
MCP_TRANSPORT Transport method (stdio or tcp, default: stdio)
|
|
MCP_PORT Port for TCP transport (default: 3000)
|
|
HANZO_IAM_ENDPOINT IAM endpoint (default: https://iam.hanzo.ai)
|
|
|
|
Authentication:
|
|
By default, the server requires authentication with your Hanzo account.
|
|
Use --anon mode to run without authentication (limited features).
|
|
|
|
Examples:
|
|
hanzo-mcp # Run with authentication
|
|
hanzo-mcp --anon # Run in anonymous mode
|
|
HANZO_WORKSPACE=/path hanzo-mcp # Set workspace directory
|
|
`),process.exit(0));qan&&(console.log("Hanzo MCP Server v1.5.4"),process.exit(0));var zan={workspace:{workspaceFolders:process.env.HANZO_WORKSPACE?[{uri:{fsPath:process.env.HANZO_WORKSPACE}}]:void 0,getConfiguration:o=>({get:(a,u)=>{let f=`HANZO_${o.toUpperCase()}_${a.toUpperCase().replace(/\./g,"_")}`;return process.env[f]||u}}),findFiles:async()=>[]},window:{showErrorMessage:console.error,showInformationMessage:console.log,visibleTextEditors:[]},env:{openExternal:async o=>(console.log(`Opening: ${o}`),!0)},ExtensionContext:class{constructor(){this.globalState=new Map;this.extensionPath=__dirname;this.subscriptions=[]}},version:"1.0.0"};global.vscode=zan;var f_e=class{constructor(a=!1){this.authManager=new woe(a);try{XOt=(Elt(),tDe(Plt)).MCPClient,YOt=(POe(),tDe(QOt)).MCPTools}catch(d){console.error("[Hanzo MCP] Failed to load modules:",d),process.exit(1)}this.context={globalState:{get:(d,w)=>w,update:async(d,w)=>!0},extensionPath:ZOt.dirname(__dirname),subscriptions:[],getAuthHeaders:()=>this.authManager.getHeaders()},this.tools=new YOt(this.context);let u=process.env.MCP_TRANSPORT==="tcp"?"tcp":"stdio",f=parseInt(process.env.MCP_PORT||"3000");this.client=new XOt(u,{port:f})}async start(){console.error("[Hanzo MCP] Starting authenticated server...");try{Jan&&(await this.authManager.logout(),process.exit(0)),p_e?console.error("[Hanzo MCP] Running in anonymous mode. Some features may be limited."):await this.authManager.authenticate()||(console.error("[Hanzo MCP] Authentication failed. Use --anon to run without authentication."),process.exit(1)),await this.tools.initialize(),await this.client.connect();let u=this.tools.getAllTools().filter(f=>p_e?!["vector_store_insert","vector_store_query","database_query","database_schema"].includes(f.name):!0);for(let f of u)await this.client.registerTool(f),console.error(`[Hanzo MCP] Registered tool: ${f.name}`);console.error(`[Hanzo MCP] Server ready with ${u.length} tools`),p_e&&console.error("[Hanzo MCP] Note: Cloud features are disabled in anonymous mode."),process.on("SIGINT",()=>{console.error("[Hanzo MCP] Shutting down..."),this.client.disconnect(),process.exit(0)}),process.on("uncaughtException",f=>{console.error("[Hanzo MCP] Uncaught exception:",f)}),process.on("unhandledRejection",(f,d)=>{console.error("[Hanzo MCP] Unhandled rejection:",f)})}catch(a){console.error("[Hanzo MCP] Failed to start server:",a),process.exit(1)}}};require.main===module&&new f_e(p_e).start().catch(console.error);0&&(module.exports={AuthenticatedMCPServer});
|
|
/*! Bundled license information:
|
|
|
|
mime-db/index.js:
|
|
(*!
|
|
* mime-db
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
* MIT Licensed
|
|
*)
|
|
|
|
mime-types/index.js:
|
|
(*!
|
|
* mime-types
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
* MIT Licensed
|
|
*)
|
|
|
|
typescript/lib/typescript.js:
|
|
(*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
this file except in compliance with the License. You may obtain a copy of the
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
and limitations under the License.
|
|
***************************************************************************** *)
|
|
|
|
@babel/runtime/helpers/regeneratorRuntime.js:
|
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
|
|
|
|
dexie/dist/dexie.js:
|
|
(*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** *)
|
|
*/
|